Monads - Overview

Summary

A monad is the “shadow” cast by an adjunction on the category serving as the codomain of its right adjoint: from only the composite endofunctor , the unit, and a whiskered counit are visible. Abstractly, a monad packages an endofunctor with a unit and a multiplication satisfying associativity and unit laws — i.e. a monoid in the category of endofunctors. Monads encode “syntactic” algebraic structure on a category; their algebras (the Eilenberg–Moore category) recover the structured objects, and Beck’s Monadicity Theorem characterizes exactly when a category is the category of algebras for a monad.

Overview

Riehl’s Chapter 5 develops the theory in six movements, all organized around one slogan: a monad is the part of an adjunction that survives when you forget the “other” category. Consider an adjunction

Viewed from (“home”), in ignorance of (“abroad”), what remains visible is the endofunctor , the unit , and a whiskered version of the counit. This triple of data is a monad on .

The remarkable converse — that the category can often be reconstructed from the monad on — is the heart of the chapter. When it can, objects of are represented as algebras for the monad, and a monad is “a syntactic presentation of algebraic structure that is potentially borne by objects in the category on which it acts.”

The five notes in this folder cover:

  1. Monads and the Monad Laws — the abstract definition: endofunctor , unit , multiplication , and the associativity & unit coherence laws (Definition 5.1.1).
  2. Adjunctions Induce Monads — every adjunction yields a monad with (Lemma 5.1.3).
  3. Algebras for a Monad - Eilenberg-Moore and Kleisli — the Eilenberg–Moore category of all algebras, the Kleisli category of free algebras, and the comparison functor (§5.2).
  4. Beck’s Monadicity Theoremmonadic adjunctions and the precise characterization via split coequalizers (Theorem 5.5.1), plus what monadicity buys you for limits and colimits (§5.6).

Main Content

The big picture

  • Definition: a monad is a monoid object in the strict monoidal category of endofunctors of , with composition as tensor and as unit. (Wadler’s joke: “a monad is a monoid in the category of endofunctors, what’s the problem?“)
  • Source: every adjunction gives a monad (Adjunctions Induce Monads). The dual (“shadow” on the codomain of the left adjoint) is a comonad.
  • Converse: every monad arises from an adjunction — in (at least) two universal ways. The Kleisli adjunction is initial; the Eilenberg–Moore adjunction is terminal, among all adjunctions inducing .
  • Recognition: Beck’s theorem says a right adjoint is monadic iff it creates coequalizers of -split pairs — i.e. iff is equivalent to the category of algebras.
  • Payoff: monadic functors create all limits and reflect isomorphisms, so categories monadic over (groups, rings, modules, lattices, compact Hausdorff spaces, …) are automatically complete.

Examples

The categories that are monadic over form the chapter’s running motivation (Corollary 5.5.3):

  • , , , , commutative rings, , , affine spaces ;
  • (sets with a -action), , pointed sets ;
  • compact Hausdorff spaces (Corollary 5.5.6, via the ultrafilter/Stone–Čech monad).

By contrast, fields do not form a category monadic over — which “explains why the category of fields shares few of the properties common to the categories just described.” Likewise and are not monadic over (Lemma 5.6.1 / Corollary 5.6.4: there are bijective continuous maps that are not homeomorphisms).

Concrete monads to keep in mind (see Monads and the Monad Laws for details): the list/free-monoid monad , the maybe monad , the (covariant) power-set monad , and the double power-set monad .

Connections

  • Builds on adjunctions: requires Adjoint Functors and especially the counit (triangle identity) formulation — the triangle identities are exactly what make a monad.
  • Feeds into algebraic universal algebra: finitary monads ↔ Lawvere theories ↔ categories of models for an algebraic theory (§5.5).
  • Limits & colimits: monadicity transfers completeness/cocompleteness; connects to Adjoint Functor Theorems (the construction of free algebras and of colimits of algebras uses the General Adjoint Functor Theorem).
  • Cartesian closure: cartesian closed structure underlies the continuation monads and the self-adjointness of the contravariant power-set functor (used to prove is monadic, Theorem 5.5.9).

See Also