The basic idea is that a module is an object equipped with an action by a monoid . This is closely related to the concept of a representation of a group.
A familiar example of a module is a vector space over a field : this is a module over in the category Ab of abelian groups. But nothing in the definition of vector space really depends on the fact that here is a field: more generally it could be any ring . The analog of a vector space for fields replaced by rings is that of a module over the ring .
The notion of monoid in a monoidal category generalizes directly to that of a monoid in a 2-category, where it is called a monad. Accordingly the notion of module generalizes to this more general case, where however it is called an algebra over a monad . For more on this see Modules for monoids in 2-categories: algebras over monads below.
Apart from this direct generalization, there are two distinct and separately important perspective on the notion of module from the nPOV:
modules may usefully be thought of in the context of enriched category theory (and the enrichment may be over a 2-category);
modules may usefully be thought of in terms of abelianization/stabilization of overcategories.
The notion of monoid generalizes straightforwardly from monoids in a monoidal category to monoids in a 2-category: for the 2-category Cat, and more generally for arbitrary 2-categories, these are called monads.
A module over a monad (see there for more details) is defined essentially exactly as that of module over a monoid. For historical reasons, a module over a monad in Cat is called an algebra over a monad, because the algebras in the sense of universal algebra can be obtained as algebras/modules over a finitary monad in : the modules for a free algebra monad (for certain kind of algebras) on Set, which are the composition of the free alegbra functor and its right adjoint forgetful functor are exactly algebras of that type. Modules over a fixed monad (in ) are the objects of the Eilenberg-Moore category of the monad; in arbitrary bicategory, this category generalized to Eilenberg-Moore objects which may or may not exist.
The action of a monoid in a monoidal category may be equivalently encoded in terms of a -enriched functor
from the delooping one-object -enriched category corresponding to to itself.
This means that more generally it makes sense to replace by any -enriched category – regarded as the horizontal categorification of a monoid, a “monoid-oid” – and think of -enriched functors – -presheaves – as modules for .
From this perspective a --bimodule is a -enriched functor , which is in this context known as a profunctor from to . The notion of the bicategory of -enriched categories, -profunctors between these and transformations between those is then a generalization of the
A module over a (commutative, unital) ring may be encoded in another ring: the one that as an abelian group is the direct sum and whose product is defined by the formulas
This is a square-0 extension of . It is canonically equipped with a ring homomorphism which is the identity on and sends all elements of to 0. As such, is an object in the overcategory . But a special such object: it is in fact canonically an abelian group object in , where the group operation (over !) is given by addition of elements in .
From this perspective, it makes sense for general categories to think of the abelianization of their overcategories as categories of modules over the object .
Taken all together, this makes the fiberwise abelianization of their codomain fibration the category of all possible modules over all objects of .
This general perspective has a nice vertical categorification to the context of (∞,1)-categories: abelianization becomes stabilization in this context, and the fiberwise stabilization of the codomain fibration of any (∞,1)-category is the tangent (∞,1)-category .
For instance for the (∞,1)-category of simplicial algebras over a ground field of characteristic 0, we have that the stabilization of the over (∞,1)-category over is equivalent to the -category of -modules.
We spell out details of the definition of module for
the classical case of modules over rings;
the generalized case of modules as presheaves in enriched category theory;
the generalized case of modules as objects in stabilized overcategories.
A (right) module over a monoid internal to a monoidal category is an object of equipped with a morphism
in which satisfies the usual axioms of an action.
The category of all modules over commutative rings is Mod. It is a bifibration
over CRing.
A ring is a monoid in Ab. Hence a module over a ring is first of all an object in Ab, hence an abelian group. Moreover, it is equipped with a morphism
in Ab. On the left we have the tensor product of abelian groups. So this is a morphism that sends
such that
and
Moreover, this morphism respects the monoid structure on , in that the diagram
commutes. In formulas this means that
Finally the unit axioms says that the identity element of acts as the identity on .
Saying the same fully in terms of enriched category theory:
Write for the Ab-enriched category with a single object and . A module is an -functor
The category has -modules as objects and -module homomorphisms as morphisms. More abstractly, this is the Ab-enriched functor category .
Classically the notion of module is always regarded internal to Ab, so that a module is always an abelian group with extra structure. But noticing that such abelian ring modules are just enriched presheaves in Ab-enriched category theory, it makes sense to consider enriched presheaves in general -enriched category theory as a natural generalization of the notion of module.
For that generalization the case of Set-enriched category theory plays a special basic role:
a group (with no extra structre, i.e. just a set with group structure) is a monoid in Set. A module over in the sense of Set-enriched functor (just an ordinary functor)
is nothing but a -set: a set equipped with a -action:
is the small category that is the delooping groupoid of , which has a single object and . The functor takes the single object to some set and takes each morphism to an automorphism of that set, such that composition is respected. This is just a representation of on the set .
Of course for this story to work, need not be a group, but could be any monoid.
Equivalently, regarding the monoid as a one-object -enriched category , the module together with its action are given by a -enriched functor
Correspondingly, a left module over is a functor
In this language the concept directly generalizes to the horizontal categorification of monoids . Let be any -enriched category, then -functors give right modules and functors give left modules over . Accordingly, for and two -enriched categories one says that -functors
are --bimodules, also known as profunctors or distributors from to .
The ordinary case of modules over rings is phrased in terms of stabilized overcategories by the following observation, wich apparently goes back to Quillen.
Let be a commutative ring. Then there is a canonical equivalence between the category of -modules and the category of abelian group objects in the overcategory of over
Unwind the structure encoded in an abelian group object in the overcaregory .
The unit of the abelian group object in is a diagram
This diagram identifies with a ring of the form in which for and we have .
The product of with itself in the overcategory is the fiber product over in the original category, hence is .
The addition operation on the abelian group object is therefore a morphism
With the above unit, the unit axiom on this operation says that this morphism is
Since the ring product in the direct product ring between two elements in the two copies of vanishes, it therefore has to vanish between two elements in the same copy, too.
This says that is a square-0 extension of . Conversely, for every square-0-extension we obtain an abelian group object this way.
For instance the square-0-extension of a ring corresponding to the canonical -module structure on itself is the ring of dual numbers for .
Let (or for short) be the (∞,1)-category of commutative simplicial algebras over a base field .
For there is generally a functor
from the stable (∞,1)-category of -modules to the stabilization of the overcategory of . But in general this functor is neither essentially surjective nor full. If however has characteristic 0, then this is an equivalence.
A vector space is a vector bundle over the point. For every vector bundle over a space , its collection of sections is a module over the monoid/ring of functions on . When is a ringed space, is usefully thought of as a sheaf of modules over the structure sheaf of :
For describing vector bundles and their generalization it turns out that this perspective of encoding them in terms of their modules of sections is useful. For instance the category of vector bundles on a space typically fails to be an abelian category. But if instead of looking just as sheaves of modules on that arise as sections of vector bundles one generalizes to coherent sheaves of modules then one obtains an abelian category, something like the completion of to an abelian category. If one further demands that the category be closed under push-forward operations, such as to obtain a bifibration of generalized vctor bundles over spaces, one arrives at the notion of quasicoherent sheaves of modules over the structure sheaf.
But it turns out that the category of quasicoherent sheaves over a test space (see there for details) is equivalent simply to the category of all modules over the (functions on) this test space. This means that quasicoherent sheaves of modules have a nice description in terms of the general-abstract-nonsense characterization of modules discussed above:
For our (∞,1)-category of of test spaces (hence the opposite category our (∞,1)-category of “functions rings” on test spaces), by the above the assignment of all modules over a test space is given by
Then for any space regarded as an ∞-stack on , a “quasicorent -stack of modules” on is a morphism
By the above discussion, this procedure yieelds the expected notions of modules in particular for the choice of simplicial algebras over a ground ring of characteristic 0. The theory of quasicoherent sheaves of modules in this case is discussed in great detail at geometric ∞-function theory. Some more general remarks along these lines are at ∞-vector bundle.
See also the references at enriched category theory and at profunctor.
The observation that the category of modules over a ring is equivalent to the category of abelian group objects in the overcategory was used by Quillen:
A more ‘classical’ references include Jon Beck’s thesis
The fully abstract higher categorical concept in terms of stabilized overcategories and the tangent (∞,1)-category appears in
An earlier version of this entry led to the following discussion.
Eric: The wikipedia page distinguishes left -modules as covariant functors and right -modules as contravariant functors. Is that distinction important?
John: Yes, very — but I didn’t have the energy to get into that yet. For any ring there’s a ring in which is redefined to be . I defined a left -module above; a right -module is the same as a left -module. Eventually we’ll have to discuss all this stuff, which becomes vastly more important when we start talking about bimodules. If we want to show off, we’ll do it all not just for rings, which are monoids in Ab, but more generally for monoids in any symmetric monoidal category. For any monoid in a symmetric monoidal category we can define a new monoid , and we can define left and right -modules, and a right -module is the same as a left -module.
Sridhar: Given that left modules on rings are the covariant functors while right modules on rings are the contravariant functors, why does the above definition of a module on a monoid make the left modules the contravariant functors and the right modules the covariant functors? Is this actually the conflicting convention?
Toby: One problem is that this mixes with the conventions that one adopts for composition. What one person thinks is left multiplication, another will think is right multiplication. I would rather talk about left/right modules for monoids or rings, then talk about covariant/contravariant functors from categories or additive categories.