nLab
monad

This entry is about the notion of monad in category theory. For other notions see monad (disambiguation).


Context

Higher algebra

2-Category theory

Contents

The entry is about monads in the sense of category theory, for another concept see also monad in nonstandard analysis.

Idea

A monad is a structure that is a lot like a monoid, but that lives in a bicategory rather than a monoidal category. In other words, the concept of a monad is the horizontal categorification of that of a monoid.

Monads are among the most pervasive structures in category theory and its applications: for example, they are central to the category-theoretic account of universal algebra, as well as underlying the theory of simplicial objects and thus, via the Dold–Kan correspondence, much of homological algebra.

Definition

A monad in a bicategory K is given by

such that the diagrams

t ηt tt tη t μ t ttt μt tt tμ μ tt μ t\array{ t & \stackrel{\eta t}{\to} & t t & \stackrel{t \eta}{\leftarrow} & t \\ & \searrow & \downarrow \mathrlap{\mu} & \swarrow & \\ & & t & & } \qquad \qquad \array{ t t t & \stackrel{\mu t}{\to} & t t \\ \mathllap{t \mu} \downarrow & & \downarrow \mathrlap{\mu} \\ t t & \stackrel{\mu}{\to} & t }

commute (where certain coherence isomorphisms have been omitted).

The name “monad” and the terms “unit”, “multiplication” and “associativity” bear a clear analogy with monoids. Indeed, one can define a monad on an object a of a bicategory K as just a monoid in the endomorphism category K(a,a). Alternatively, monads can be taken as more fundamental, and a monoid in a monoidal category C can be defined as a monad in BC, the one-object bicategory corresponding to C.

A third and somewhat less obvious definition says that a monad in K is a lax 2-functor from the terminal bicategory 1 to K: the unique object * of 1 is sent to the object a, the morphism 1 a becomes t, and η and μ arise from the coherent 2-cells expressing lax functoriality. Among higher-category theorists, it’s tempting to suggest that this is the most fundamental definition, and the most basic reason for the ubiquity and importance of monads. Regardless of this, however, the earlier more elementary definitions are both practically and pedagogically essential.

We can picture a monad in K as an image of the third oriental in K. See the remarks at monoidal category.

The data of and axioms for a monad can be expressed graphically as string diagrams. Writing T:CC,η,μ for the monad in question (this notation being the standard one when K=Cat), these data can be represented as

String diagrams of the monad data (for "Monad")

Thanks to the distinctive shapes, one can usually omit the labels:

String diagrams of the monad data, unlabeled (for "Monad")

The axioms then appear as:

String diagrams of the monad axioms, unlabeled (for "Monad")

Monads in Cat are sometimes, mostly in older literature, also called triples (alluding to the triple of data (A,μ,i)), following Eilenberg and Moore. In even older literature, they are also referred to as standard constructions, the original term used by Godement when he introduced the idea. For terminological remarks by Ross Street see category-list here.

The bicategory Mnd(K)

Given the equivalence between monads in K and lax functors 1K it is straightforward to define the bicategory Mnd(K) of monads in K to be the lax functor category [1,K] , which consists of lax functors, lax transformations and modifications.

Spelling this out, we see that an object of Mnd(K) is a monad (a,t,η,μ) in K. A morphism of monads (a,t)(b,s) is given by 1-cell x:ab together with a 2-cell λ:sxxt satisfying

x η sx sx xη t λ xt 1 xtssx sλ sxt λt xtt μ sx xμ t sx λ xt\array{ x & \stackrel{\eta^s x}{\to} & s x \\ \mathllap{x \eta^t} \downarrow & & \downarrow \mathrlap{\lambda} \\ x t & \stackrel{1}{\to} & x t }\qquad \qquad \array{ s s x & \stackrel{s \lambda}{\to} & s x t & \stackrel{\lambda t}{\to} & x t t \\ \mathllap{\mu^s x} \downarrow & & & & \downarrow \mathrlap{x \mu^t} \\ s x & & \stackrel{\lambda}{\to} & & x t }

Finally, a 2-cell (x,λ)(y,κ) is given by a 2-cell m:xy satisfying

sx sm sy λ κ xt mt yt\array{ s x & \stackrel{s m}{\to} & s y \\ \mathllap{\lambda} \downarrow & & \downarrow \mathrlap{\kappa} \\ x t & \stackrel{m t}{\to} & y t }

Examples

Monads in Cat

Monads are often considered in the 2-category Cat where they are given by endofunctors with a monoid structure on them. In particular, monads in Cat on Set are equivalent to the equational theories studied in universal algebra. In this context, a monad abstracts the concept of an algebraic theory (such as “group” or “ring”), giving a general notion of extra structure on an object of a category.

Classically, if T is an algebraic theory (e.g. the theory of groups), a T-structure on a set tells us how to interpret various terms (e.g. (ac)) formed from elements of the set, subject to certain axioms (e.g. (a(bc))=((ab)c)). A monad collects this up into a functor T. For a set X, TX is the set of all terms of the theory formed from elements of X, with terms identified if axioms force them to be equal. For groups, TX is thus the (underlying set of the) free group of formal words abs from X; the fact that T gives free structures turns out to be typical.

To capture the theory fully, we need to include a little more data: a natural map η X:XTX recording how each aX gives a trivial term a, and a map μ X:TTXTX recording how further terms built from terms are already present as terms in TX.

Other examples

Algebras/modules over a monad

Given that a monad in a bicategory is nothing but a monoid in a hom-category (a,a), it is natural to consider a module over this monoid: a module for a monad. This notion of module is more general than a module in a monoidal category, however, since it need not live in (a,a) but can be in (b,a) (for left modules) or (a,c) (for right modules).

In a Cat-like bicategory, left modules over a monad are usually called algebras over the monad. This terminology is confusing from the point of view of monads as monoids, but is justified because in Cat itself, such algebras with domain 1 are just algebras for a monad in the classical sense. Such algebras are a powerful tool to encode general algebraic structures; this is the topic of universal algebra. The algebras over a monad form its Eilenberg-Moore category, which is characterized by a universal property.

Some monads arise from operads, in which case algebras for the monad are the same as algebras for the operad. A Lawvere theory is another special sort of monad in Cat.

Monads in higher category theory

There is a vertical categorification of monads to (∞,1)-categories. See (∞,1)-monad.

in section 3 of

References

Introductions:

Detailed accounts:

Relation to universal algebra:

  • Martin Hyland and John Power, The category theoretic understanding of universal algebra: Lawvere theories and monads (pdf).

  • Anthony Voutas, The basic theory of monads and their connection to universal algebra (pdf)

In higher category theory:

Revised on January 9, 2013 12:25:43 by Urs Schreiber (89.204.153.84)