nLab
module over a monad

Context

2-Category theory

Higher algebra

Contents

Idea

Just as the notion of a monad in a bicategory K generalizes that of a monoid in a monoidal category, modules over monoids generalize easily to modules over monads.

Modules over monads, especially in Cat, are also often called algebras for the monad; see below.

Definition

Let K be a bicategory and t:aa a monad in K with structure 2-cells μ:ttt and η:1 at. Then a left t-module is given by a 1-cell x:ba and a 2-cell λ:txx, where

ttx μx tx tλ λ tx λ xx ηx tx 1 λ x\array{ t t x & \overset{\mu x}{\to} & t x \\ t\lambda\downarrow & & \downarrow \lambda \\ t x & \underset{\lambda}{\to} & x } \qquad \qquad \array{ x & \overset{\eta x}{\to} & t x \\ & 1\searrow & \downarrow \lambda \\ & & x }

commute. Similarly, a right t-module is given by a 1-cell y:ac and a 2-cell ρ:yty, with commuting diagrams as above with y on the left instead of x on the right.

Clearly, a right t-module in K is the same thing as a left t-module in K op. A left t-comodule or coalgebra is then a left t-module in K co, and a right t-comodule is a left t-module in K coop.

A t-module of any of these sorts is a fortiori an algebra over the underlying endomorphism t.

Bimodules

Given monads s on b and t on a, an s,t-bimodule is given by a 1-cell x:ba, together with the structures of a right s-module ρ:xsx and a left t-module λ:txx that are compatible in the sense that the diagram

txs tρ tx λs λ xs ρ x\array{ t x s & \overset{t\rho}{\to} & t x \\ \lambda s \downarrow & & \downarrow \lambda \\ x s & \underset{\rho}{\to} & x }

commutes. Such a bimodule may be written as x:st.

A morphism of left t-modules (x,λ)(x,λ) is given by a 2-cell α:xx such that λtα=αλ. Similarly, a morphism of right t-modules (y,ρ)(y,ρ) is β:yy such that ραs=αρ. A morphism of bimodules (x,λ,ρ)(x,λ,ρ) is given by α:xx that is a morphism of both left and right modules.

More abstractly, the monads s and t in K give rise to ordinary monads s * and t * on the hom-category K(b,a), by pre- and post-composition. The associativity isomorphism of K then gives rise to an invertible distributive law between these, so that the composite s *t *t *s *:xtxs is again a monad. Then the category Mod K(s,t) of bimodules from s to t is the ordinary Eilenberg--Moore category K(b,a) s *t *.

Algebras for monads in Cat

If K=Cat and (T,η,μ) is a monad on a category C, then a left T-module A:1C, where 1 is the terminal category, is usually called a T-algebra: it is given by an object AC together with a morphism α:TAA, such that

T(T(A)) μ A T(A) T(α) α T(A) α A\array { T(T(A)) & \stackrel{\mu_A}\rightarrow & T(A) \\ T(\alpha) \downarrow & & \downarrow \alpha \\ T(A) & \stackrel{\alpha}\rightarrow & A }

and

A η A T(A) id A α A\array { A & \stackrel{\eta_A}\rightarrow & T(A) \\ & id_A \searrow & \downarrow \alpha \\ & & A }

commute.

In particular, every algebra over a monad (T,η,μ) in Cat has the structure of an algebra over the underlying endofunctor T.

T-algebras can also be defined as left modules over T qua monoid in End(C). There the object A is represented by the constant endofunctor at A.

The Eilenberg-Moore category of T is the category of these algebras. It has a universal property that allows the notion of Eilenberg-Moore object to be defined in any bicategory.

Tensor product

Given bimodules x:rs and x:st, where r,s,t are monads on c,b,a respectively, we may be able to form the tensor product x sx:rt just as in the case of bimodules over rings. If the hom-categories of the bicategory K have reflexive coequalizers that are preserved by composition on both sides, then the tensor product is given by the reflexive coequalizer in K(c,a)

xsx xx x sx\array{ x s x' & \overset{\to}{\to} & x x' & \to x \otimes_s x' }

where the parallel arrows are the two induced actions ρx and xλ on s. Indeed, under the hypothesis on K the forgetful functor Mod K(r,t)=K(c,a) r *t *K(c,a) reflects reflexive coequalizers, because the monad r *t * preserves them, and so x sx is an r,t-bimodule.

If K satisfies the above conditions then there is a bicategory Mod(K) consisting of monads, bimodules and bimodule morphisms in K. The identity module on a monad t is t itself, and the unit and associativity conditions follow from the universal property of the above coequalizer. There is a lax forgetful functor Mod(K)K, with comparison morphisms 1 at the unit of t, and xxx sx the coequalizer map.

Examples

If K=Span(Set), the bicategory of spans of sets, then a monad in K is precisely a small category. Then Mod(K)=Prof, the category of small categories, profunctors and natural transformations.

More generally, Mod(Span(C)), for C any category with coequalizers and pullbacks that preserve them, consists of internal categories in C, together with internal profunctors between them and transformations between those.

References

  • John Isbell, Generic algebras Transactions of the AMS, vol 275, number 2 (pdf)

Discussion of model category structures on categories of coalgebras over comonads is in

Revised on December 11, 2012 12:21:52 by Finn Lawler (86.41.39.109)