# nLab module

### Context

#### Higher algebra

higher algebra

universal algebra

# Contents

## Idea

### Basic idea

The basic idea is that a module $V$ is an object equipped with an action by a monoid $A$. This is closely related to the concept of a representation of a group.

A familiar example of a module is a vector space $V$ over a field $k$: this is a module over $k$ in the category Ab of abelian groups: every element in $k$ acts on the vector space by multiplication of vectors, and this action respects the addition of vectors.

But nothing in the definition of vector space really depends on the fact that $k$ here is a field: more generally it could be any commutative ring (or even a general rig) $R$. The analog of a vector space for fields replaced by rings is that of a module over the ring $R$.

This is the traditional and maybe most common notion of modules. But the basic notion is easily much more general.

### Motivation for and role of modules: generalized vector bundles

The theory or monoids or rings and their modules, its “meaning” and usage, is naturally understood via the duality between algebra and geometry:

1. a ring $R$ is to be thought of as the ring of functions on some space,

2. an $R$-module is to be thought of as the space of sections of a vector bundle on that space.

A classical situation where this correspondence holds precisely is topology, where

1. the Gelfand duality theorem says that sending a compact topological space $X$ to its C-star algebra $C(X,\mathbb{C})$ of continuous functions with values in the complex numbers constitutes an equivalence of categories between compact topological spaces and the opposite category of commutative $C^\ast$-alegebras;

2. the Serre-Swan theorem says that sending a Hausdorff topological complex vector bundle $E \to X$ over a compact topological space to the $C(X,\mathbb{C})$-module of its continuous sections establishes an equivalence of categories between that of topological complex vector bundles over $X$ and that of finitely generated projective modules over $C(X,\mathbb{C})$.

In fact, as this example already shows, modules faithfully subsume vector bundles, but are in fact more general. In many contexts one regard modules as the canonical generalization of the notion of vector bundles, with better formal properties.

This identification of vector bundles with $R$-modules being the spaces of sections of a vector bundle on the space whose ring of functions is $R$ is can then taken as the very definition: notably in algebraic geometry Gelfand duality is taken to “hold by definition” in that an algebraic variety is essentially by defintion the formal dual of a given ring, and the Serre-Swan theore similarly becomes the statement that the space of section of a vector bundle over a variety is equivalently given by a module over that ring. (See also at quasicoherent module for more on this).

This duality between geometry and algebra allows to re-interpret many statement about modules in terms of vector bundles. For instance

• the direct sum of modules corresponds to fiberwise direct sum of vector bundles;

• the extension of scalars of a module along a ring homomorphism corresponds to pullback of vector bundles along the dual map of spaces;

• etc.

Using this disctionary for instance the notion of descent of vector bundles can be expressed in terms of monadic descent, see at Sweedler coring for discussion of this point.

### More general perspectives

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 for monoids in 2-categories: modules over monads

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 $Set$: the modules for a free algebra monad (for certain kind of algebras) on Set, which are the composition of the free algebra functor and its right adjoint forgetful functor are exactly algebras of that type. Modules over a fixed monad (in $Cat$) 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.

#### Enriched presheaves

The action $\rho$ of a monoid $A$ in a closed monoidal category $V$ may be equivalently encoded in terms of a $V$-enriched functor

$\rho : \mathbf{B}A \to V$

from the delooping one-object $V$-enriched category $\mathbf{B}A$ corresponding to $A$ to $V$ itself.

This means that more generally it makes sense to replace $\mathbf{B}A$ by any $V$-enriched category $C$ – regarded as the horizontal categorification of a monoid, a “monoid-oid” – and think of $V$-enriched functors $\rho : C \to V$$V$-presheaves – as modules for $C$.

From this perspective a $C$-$D$-bimodule is a $V$-enriched functor $C^{op}\times D \to V$, which is in this context known as a profunctor from $C$ to $D$. The notion of the bicategory $V Mod$ of $V$-enriched categories, $V$-profunctors between these and transformations between those is then a generalization of the

#### Stabilized overcategories

A module $N$ over a (commutative, unital) ring $R$ may be encoded in another ring: the one that as an abelian group is the direct sum $R \oplus N$ and whose product is defined by the formulas

$(r_1, n_1) \cdot (r_2,n_2) := (r_1 r_2, r_1 n_1 + r_2 n_2) \,.$

This is a square-0 extension of $R$. It is canonically equipped with a ring homomorphism $R \oplus N \to R$ which is the identity on $R$ and sends all elements of $N$ to 0. As such, $R \oplus N \to R$ is an object in the overcategory $CRing/R$. But a special such object: it is in fact canonically an abelian group object in $CRing/R$, where the group operation (over $R$!) is given by addition of elements in $N$.

From this perspective, it makes sense for general categories $C$ to think of the abelianization of their overcategories $C/A$ as categories of modules over the object $A$.

Taken all together, this makes the fiberwise abelianization of their codomain fibration $cod : [I,C] \to C$ the category of all possible modules over all objects of $C$.

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 $C$ is the tangent (∞,1)-category $T_C \to C$.

For instance for $sAlg_k$ the (∞,1)-category of simplicial algebras over a ground field $k$ of characteristic 0, we have that the stabilization $Stab(sAlgk/A)$ of the over (∞,1)-category over $A$ is equivalent to the $(\infty,1)$-category $A Mod$ of $A$-modules.

## Definition

We spell out the definition of module for

with the special classical cases of

and

Then we give more general definitions

### Modules over a monoid in a monoidal category

Let $(\mathcal{V}, \otimes, I)$ be a monoidal category and $A$ a monoid object in $\mathcal{V}$, hence an object $A \in \mathcal{V}$ equipped with a multiplication morphism

$\cdot : A \otimes A \to A$

and a unit element

$e : I \to A$

satisfying the associativity law and the unit law.

###### Definition

A (left) module over $A$ in $(\mathcal{V}, \otimes, I)$ is

• an object $N \in \mathcal{V}$

• equipped with a morphism

$\rho : A \otimes N \to N$

in $\mathcal{V}$

such that this satisfies the axioms of an action, in that the following are commuting diagrams in $\mathcal{V}$:

$\array{ A \otimes A \otimes N &\stackrel{id_A \otimes \rho}{\to}& A \otimes N \\ \downarrow^{\mathrlap{\cdot \otimes id_n}} && \downarrow^{\mathrlap{\rho}} \\ A \otimes N &\stackrel{\rho}{\to}& N }$

and

$\array{ I \otimes N &&\stackrel{i \otimes id_N}{\to}&& A \otimes N \\ & \searrow && \swarrow_{\mathrlap{\rho}} \\ && N } \,.$

#### Modules over a ring

A ring is (as discused there) equivalently a monoid object in the category Ab of abelian groups turned into a monoidal category by means of the tensor product of abelian groups $\otimes$. Accordingly a module over $R$ is a module in $(Ab,\otimes)$ accordin to def. 1.

We unwind what this means in terms of abelian groups regarded as sets with extra structure:

###### Definition

A module $N$ over a ring $R$ is

1. an object $N \in$ Ab, hence an abelian group;

2. equipped with a morphism

$\alpha : R \otimes N \to N$

in Ab; hence a function of the underlying sets that sends elements

$(r,n) \mapsto r n \coloneqq \alpha(r,n)$

and which is a bilinear function in that it satisfies

$(r, n_1 + n_2) \mapsto r n_1 + r n_2$

and

$(r_1 + r_2, n) \mapsto r_1 n + r_2 n$

for all $r, r_1, r_2 \in R$ and $n,n_1, n_2 \in N$;

3. such that the diagram

$\array{ R \otimes R \otimes N &\stackrel{\cdot_R \otimes Id_N}{\to}& R \otimes N \\ {}^{\mathllap{Id_R \otimes \alpha}}\downarrow && \downarrow^{\mathrlap{\alpha}} \\ R \otimes N &\to& N }$

commutes in Ab, which means that for all elements as before we have

$(r_1 \cdot r_2) n = r_1 (r_2 n) \,.$
4. such that the diagram

$\array{ 1 \otimes N &&\stackrel{1 \otimes id_N}{\to}&& R \otimes N \\ & \searrow && \swarrow_{\mathrlap{\alpha}} \\ && N }$

commutes, which means that on elements as above

$1 \cdot n = n \,.$
###### Remark

The category of all modules over all commutative rings is Mod. It is a bifibration

$Mod \to CRing$

over CRing.

This fibration may be characterized intrinsically, which gives yet another way of defining $R$-modules. This we turn to below.

#### $G$-sets

Simpler than the traditionally default notion of a module in $(Ab,\otimes)$, as above is that of a module in Set, equipped with its cartesian monoidal structure. (These days one may want to think of this as a notion of modules over F1.)

A monoid object in $(Set,\times)$ is just a monoid, for instance a discrete group $G$. A $G$-module in $(Set,\times)$ is simpy an action, say a group action.

###### Definition

For $S \in$ Set and $G$ a discrete group, a $G$-action of $G$ on $S$ is a function

$\rho \colon G \times S \to S$

such that

1. the neutral element acts trivially

$\array{ * \times S &&\stackrel{\simeq}{\to}&& S \\ & {}_{(e,id_S)}\searrow && \nearrow_{\mathrlap{\rho}} \\ && G \times S }$
2. the action property holds: for all $g_1, g_2 \in G$ and $s \in S$ we have $\rho(g_1,\rho(g_2, s)) = \rho(g_1 \cdot g_2, s)$.

More on this below.

#### Abelian groups with $G$-action as modules over the group ring

If a discrete group acts, as in def. 3, on the set underlying an abelian group and acts by linear maps (abelian group homomorphisms), then this action is equivalently a module over the group ring $\mathbb{Z}[G]$ as in def. 2.

###### Definition

For $G$ a discrete group, write $\mathbb{Z}[G] \in$ Ring for the ring

1. whose underlying abelian group is the free abelian group on the set underlying $G$;

2. whose multiplication is given on basis elements by the group operation in $G$.

###### Remark

For $G$ a finite group an element $r$r of $\mathbb{Z}[G]$ is for the form

$r = \sum_{g \in G} r_g g$

with $r_g \in \mathbb{Z}$. Addition is given by addition of the coefficients $r_g$ and multiplication is given by the formula

\begin{aligned} r \cdot \tilde r & = \sum_{g \in G} \sum_{\tilde g \in G} (r_g \tilde r_{\tilde g}) g \cdot \tilde g \\ & = \sum_{q \in G} \left( \sum_{g \tilde g = q} r_g \tilde r_{\tilde g} \right) q \end{aligned} \,.
###### Proposition

For $A \in$ Ab an abelian group with underlying set $U(A)$, $G$-actions $\rho \colon G \times U(A) \to U(A)$ such that for each element $g \in G$ the function $\rho(g,-) \colon U(A) \to U(A)$ is an abelian group homomorphism are equivalently $\mathbb{Z}[G]$-module structures on $A$.

###### Proof

Since the underlying abelian group of $\mathbb{Z}[G]$ is a free by definition, a bilinear map $\mathbb{Z}[G] \times A \to A$ is equivalently for each basis element $g \in G$ a linear map $A \to A$. Similarly the module property is determined on basis elements, where it reduces manifestly to the action property of $G$ on $U(A)$.

###### Remark

This reformulation of linear $G$-actions in terms of modules allows to treat $G$-actions in terms of homological algebra. See at Ext – Relation to group cohomology.

### Presheaves in enriched category theory

Equivalently (in the case where $V$ is a closed monoidal category, where $V$ is regarded as enriched in itself), if we regard the monoid $A$ as a one-object $\mathcal{V}$-enriched category $\mathbf{B}A$, the module together with its action are given by a $V$-enriched functor

$\rho : \mathbf{B}A \to V \,.$

Correspondingly, a left module over $A$ is a functor

$\rho : (\mathbf{B}A)^{\mathrm{op}} \to V \,.$

In this language the concept directly generalizes to the horizontal categorification of monoids $A$. Let $K$ be any $V$-enriched category, then $V$-functors $\rho : K \to V$ give right modules and functors $\rho : K^{\mathrm{op}} \to V$ give left modules over $K$. Accordingly, for $K$ and $L$ two $V$-enriched categories one says that $V$-functors

$K^{op} \otimes L \to V$

are $K$-$L$-bimodules, also known as profunctors or distributors from $K$ to $L$.

#### Modules over a ring

For $R$ a ring, write $\mathbf{B}R$ for the Ab-enriched category with a single object and hom-object $R = \mathbf{B}R(\bullet, \bullet)$.

Then a left $R$-module $N$ is equivalently an Ab-enriched functor

$N : \mathbf{B}R \to Ab \,.$

This makes manifest that the category $R$Mod is an Ab-enriched category, namely the Ab-enriched functor category

$R Mod \simeq [\mathbf{B}R,Ab] \,.$

The right $R$-modules can be considered as $Ab$-functors $\mathbf{B}R^{op}\to Ab$. Then the usual tensor product (over $\mathbb{Z}$) $M\otimes N$ of a right and left $R$-modules can be considered as a functor $\mathbf{B}R^{op}\otimes \mathbf{B}R\to Ab$. The coend $\int^R M\otimes N$ computes then to $M\otimes_R N$.

#### $G$-Sets

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 $V$-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 $G$ (with no extra structre, i.e. just a set with group structure) is a monoid in Set. A module over $G$ in the sense of Set-enriched functor (just an ordinary functor)

$\mathbf{B}G \to Set$

is nothing but a $G$-set: a set equipped with a $G$-action:

$\mathbf{B}G$ is the small category that is the delooping groupoid of $G$, which has a single object and $Hom_{\mathbf{B}G}(\bullet,\bullet) = G$. The functor $\mathbf{B}G \to Set$ takes the single object to some set $S$ and takes each morphism $(\bullet \stackrel{g}{\to} \bullet)$ to an automorphism $\rho(g) : S \to S$ of that set, such that composition is respected. This is just a representation of $G$ on the set $S$.

Of course for this story to work, $G$ need not be a group, but could be any monoid.

### In terms of stabilized overcategories

There is a general definition of modules in terms of stabilized slice-categories of the category of monoids: tangent (infinity,1)-categories.

#### Modules over a ring

The ordinary case of modules over rings is phrased in terms of stabilized overcategories by the following observation, which goes back at least to Jon Beck’s 1967 thesis, and is found in the important paper of Daniel Quillen; both listed below.

###### Proposition

Let $R \in CRing$ be a commutative ring. Then there is a canonical equivalence between the category $R Mod$ of $R$-modules and the category $Ab(CRing/R)$ of abelian group objects in the overcategory of $CRing$ over $R$

$R Mod \simeq Ab(CRing/R) \,.$
###### Proof

We first unwind what the structure of an abelian group object $(p: K \to R)$ in the overcaregory $CRing/R$ is explicitly

The unit of the abelian group object in $CRing/R$ is a diagram

$\array{ R &&\to&& K \\ & {}_{\mathllap{Id}}\searrow && \swarrow_{\mathrlap{p}} \\ && R } \,.$

This diagram identifies $K$ with a ring whose underlying abelian group is the direct sum $R \oplus ker(p)$ of some ring $R$ with the kernel of $p$ such that for $r \in R$ and $n \in ker(p)$ we have $r\cdot n \in ker(p)$.

The product of $R \oplus N \to R$ with itself in the overcategory is the fiber product over $R$ in the original category, hence is $R \oplus N \oplus N$.

The addition operation on the abelian group object is therefore a morphism

$\array{ R \oplus N \oplus N &&\to&& R \oplus N \\ & \searrow && \swarrow \\ && R } \,.$

With the above unit, the unit axiom on this operation together with the fact that the top morphism is a ring homomorphism says that this morphism is

$R \oplus N \oplus N \stackrel{Id \oplus (Id + Id)}{\to} R \oplus N \,.$

Since the ring product in the direct product ring $R \oplus N \oplus N$ between two elements in the two copies of $N$ vanishes, it therefore has to vanish between two elements in the same copy, too.

This says that $R \oplus N$ is a square-0 extension of $R$. Conversely, for every square-0-extension we obtain an abelian group object this way.

For instance the square-0-extension of a ring $R$ corresponding to the canonical $R$-module structure on $R$ itself is the ring of dual numbers for $R$.

#### Modules over a group

Let $G$ be a group. Taking together the above desriptions

one finds:

###### Proposition

The category of $G$-modules is equivalent to the category of abelian group objects in the slice of Ring over the group ring

$G Mod \simeq Ab(Ring_{/\mathbb{Z}[G]}) \,.$

But there is also a more direct characterization along these lines, not involving the auxiliary construction of group rings.

###### Proposition

The category of $G$-modules is equivalent to the category of abelian group objects in the slice category of groups over $G$

$G Mod \simeq Ab(Grp_{/G}) \,.$
###### Proof

The proof is analogous to that of prop. 2. One checks that a group homomorphism $\hat G \to G$ with the structure of an abelian group object over $G$ is a central extension of $G$ by some abelian group $A$ which more over is a split extension (the is the neutral element of the abelian group object) and hence is a semidirect product group $\hat G \simeq G \ltimes A$. By the discussion there these are equivalently given by actions of $G$ on $A$ by group automorphisms. This is precisely what it means for $A$ to carry a $G$-module structure.

This construction generalizes to ∞-groups. See at ∞-action the section ∞-action – G-modules.

#### Modules over a simplicial ring

Let $sAlg_k$ (or $sAlg$ for short) be the (∞,1)-category of commutative simplicial algebras over a base field $k$.

For $A \in sAlg_k$ there is generally a functor

$A Mod \to Stab(sAlg_k/A)$

from the stable (∞,1)-category of $A$-modules to the stabilization of the overcategory of $sAlg$. But in general this functor is neither essentially surjective nor full. If however $k$ has characteristic 0, then this is an equivalence.

### Modules over an algebra over an operad

There is a notion of algebra over an operad. The corresponding notion of modules is described at module over an algebra over an operad.

## Examples

### Of modules over a ring

Let $R$ be a commutative ring.

###### Example

The ring $R$ is naturally a module over itself, by regarding its multiplication map $R \otimes R \to R$ as a module action $R \otimes N \to N$ with $N \coloneqq R$.

###### Example

More generally, for $n \in \mathbb{N}$ the $n$-fold direct sum of the abelian group underlying $R$ is naturally a module over $R$

$R^n \coloneqq R^{\oplus_n} \coloneqq \underbrace{R \oplus R \oplus \cdots \oplus R}_{n\;summands} \,.$

The module action is componentwise:

$r \cdot (r_1, r_2, \cdots, r_n) = (r \cdot r_1, r\cdot r_2, \cdot r \cdot r_n) \,.$
###### Example

Even more generally, for $I \in$ Set any set, the direct sum $\oplus_{i \in I} R$ is an $R$-module.

This is the free module (over $R$) on the set $S$.

The set $I$ serves as the basis of a free module: a general element $v \in \oplus_i R$ is a formal linear combination of elements of $I$ with coefficients in $R$.

For special cases of the ring $R$, the notion of $R$-module is equivalent to other notions:

###### Example

For $R = \mathbb{Z}$ the integers, an $R$-module is equivalently just an abelian group.

###### Example

A $\mathbb{Z}$-module, hence an abelian group, is not a free module if it has a non-trivial torsion subgroup.

###### Example

For $R = k$ a field, an $R$-module is equivalently a vector space over $k$.

Every finitely generated free $k$-module is a free module, hence everey finite dimensional vector space has a basis. For infinite dimensions this is true if the axiom of choice holds.

###### Example

For $f : S \to R$ a homomorphism of rings, restriction of scalars produces $R$-modules $f_* N$ from $S$-modules $N$ and extension of scalars produces $S$-modules $f_! N$ from $R$-modules $N$.

###### Example

For $N$ a module and $\{n_i\}_{i \in I}$ a set of elements, the linear span

$\langle n_i\rangle_{i \in I} \hookrightarrow N \,,$

(hence the completion of this set under addition in $N$ and multiplication by $R$) is a submodule of $N$.

###### Example

Consider example 8 for the case that the module is $N = R$, the ring itself, as in example 1. Then a submodule is equivalently (called) an ideal of $R$.

###### Example

Let $X$ be a topological space and let

$R \coloneqq C(X,\mathbb{C})$

be the ring of continuous functions on $X$ with values in the complex numbers.

Given a complex vector bundle $E \to X$ on $X$, write $\Gamma(E)$ for its set of continuous sections. Since for each point $x \in X$ the fiber $E_x$ of $E$ over $x$ is a $\mathbb{C}$-module (by example 6), $\Gamma(X)$ is a $C(X,\mathbb{C})$-module.

By the Serre-Swan theorem if $X$ is Hausdorff and compact, then $\Gamma(X)$ is a projective $C(X,\mathbb{C})$-module and indeed there is an equivalence between projective $C(X,\mathbb{C})$-modules and complex vector bundles over $X$.

More on this below in Vector bundle and modules.

### Vector bundles and modules

A vector space is a vector bundle over the point. For every vector bundle $E \to X$ over a space $X$, its collection $\Gamma(E)$ of sections is a module over the monoid/ring of functions on $X$. When $X$ is a ringed space, $\Gamma(X)$ is usefully thought of as a sheaf of modules over the structure sheaf of $X$:

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 $X$ 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 $Vect(X)$ 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 $C$ our (∞,1)-category of of test spaces (hence the opposite category $C^{op}$ our (∞,1)-category of “functions rings” on test spaces), by the above the assignment of all modules over a test space is given by

$Mod : C^{op} \to (\infty,1)Cat$
$Mod : U \mapsto Stab( C/U ) \,.$

Then for $X$ any space regarded as an ∞-stack on $C$, a “quasicorent $\infty$-stack of modules” on $X$ is a morphism

$X \to Mod \,.$

## References

### General

A standard textbook is

• F.W. Anderson, K.R. Fuller, Rings and Categories of Modules, Graduate Texts in Mathematics, Vol. 13, Springer-Verlag, New York, (1992)

Lectures notes on sheaves of modules / modules over a ringed space are in

Lecture notes with an eye towards physics are in

### On modules as stabilized overcategories

The observation that the category of modules over a ring $R$ is equivalent to the category of abelian group objects in the overcategory $CRing/R$ was used by Quillen:

• Daniel G. Quillen, On the (co-)homology of commutative rings, in Proc. Symp. on Categorical Algebra, 65 – 87, American Math. Soc., 1970.

More ‘classical’ references for this include Jon Beck’s thesis

• Jon M. Beck, Triples, algebras and cohomology, thesis.

The fully abstract higher categorical concept in terms of stabilized overcategories and the tangent (∞,1)-category appears in

(∞,1)-modules over A-∞ algebras are discussed in section 4.2 of

Revised on August 29, 2013 22:50:19 by Urs Schreiber (89.204.139.41)