ModernMath

LogicArtificialis

70 Monads and their algebrasTag 6021

In the tree of ModernMath: ModernMath › 18-XX Category theory; homological algebra › 18Cxx Categories and theories › 18C15 Monads (= standard construction, triple or triad), algebras for monads, homology and derived functors for monads, the subject of its primary MSC2020 code; its secondary code 18C20 Eilenberg-Moore and Kleisli constructions for monads is a cross-reference. Show it in the tree and the cross-reference graph.

Every adjunction \(F\dashv U\) with \(U\colon \mathcal{D}\to \mathcal{C}\) induces on \(\mathcal{C}\) a monad, an endofunctor with a unit and an associative multiplication. Conversely every monad arises from an adjunction, in a smallest way, through its Kleisli category, and in a largest way, through its category of algebras. A functor is monadic when its domain is the category of algebras of the induced monad; groups, rings and modules are monadic over sets, and so, less obviously, are compact Hausdorff spaces.

Definition 70.1 Monad Tag 6022

A monad on a category \(\mathcal{C}\) consists of a functor \(T\colon \mathcal{C}\to \mathcal{C}\) and natural transformations \(\eta \colon 1_{\mathcal{C}}\Rightarrow T\), the unit, and \(\mu \colon T^2\Rightarrow T\), the multiplication, such that \(\mu \circ T\mu =\mu \circ \mu T\) and \(\mu \circ T\eta =1_T=\mu \circ \eta T\) [ 229 , Definition 5.1.1 ] , [ 31 , Definition 4.1.1 ] . Thus a monad is a monoid in the category of endofunctors of \(\mathcal{C}\), with composition as product [ 229 , Remark 5.1.2 ] . A comonad on \(\mathcal{C}\) is a monad on \(\mathcal{C}^{\mathrm{op}}\) [ 229 , Definition 5.1.6 ] .

Proposition 70.2 PublishedTag 6023

An adjunction \(F\dashv U\), with \(F\colon \mathcal{C}\to \mathcal{D}\), unit \(\eta \) and counit \(\epsilon \), induces a monad \((UF,\eta ,U\epsilon F)\) on \(\mathcal{C}\) [ 229 , Lemma 5.1.3 ] .

Proof ▼

The unit laws are the triangle identities of Theorem 68.3, whiskered by \(U\) and \(F\), and associativity, \(U\epsilon F\circ UFU\epsilon F=U\epsilon F\circ U\epsilon FUF\), is the naturality of \(\epsilon \) applied to the components of \(\epsilon \) [ 229 , proof of Lemma 5.1.3 ] .

Definition 70.3 Eilenberg–Moore category Tag 6024

Let \((T,\eta ,\mu )\) be a monad on \(\mathcal{C}\). A \(T\)-algebra is a pair \((A,a)\) of an object \(A\) and a morphism \(a\colon TA\to A\) with \(a\eta _A=1_A\) and \(a\circ Ta=a\circ \mu _A\), and a morphism of \(T\)-algebras \(f\colon (A,a)\to (B,b)\) is a morphism \(f\colon A\to B\) with \(f a=b\circ Tf\). The \(T\)-algebras form the Eilenberg–Moore category \(\mathcal{C}^T\) [ 229 , Definition 5.2.4 ] . The forgetful functor \(U^T\colon \mathcal{C}^T\to \mathcal{C}\) has a left adjoint, which sends \(A\) to the free algebra \((TA,\mu _A)\), and this adjunction induces the monad \(T\) [ 229 , Lemma 5.2.8 and Definition 5.2.14 ] .

Definition 70.4 Kleisli category Tag 6025

The Kleisli category \(\mathcal{C}_T\) of a monad \((T,\eta ,\mu )\) has the objects of \(\mathcal{C}\), and a morphism \(A\to B\) of \(\mathcal{C}_T\) is a morphism \(A\to TB\) of \(\mathcal{C}\); the composite of \(f\colon A\to TB\) and \(g\colon B\to TC\) is \(\mu _C\circ Tg\circ f\), and the identity of \(A\) is \(\eta _A\) [ 229 , Definition 5.2.9 ] . There is again an adjunction between \(\mathcal{C}\) and \(\mathcal{C}_T\) that induces \(T\), and \(\mathcal{C}_T\) is equivalent to the full subcategory of free algebras in \(\mathcal{C}^T\) [ 229 , Lemmas 5.2.11 and 5.2.13 ] .

Let \(F\dashv U\) be an adjunction, with \(U\colon \mathcal{D}\to \mathcal{C}\), inducing the monad \(T\). There are unique functors \(\mathcal{C}_T\to \mathcal{D}\) and \(K\colon \mathcal{D}\to \mathcal{C}^T\) that commute with the left adjoints and with the right adjoints; thus the Kleisli adjunction is initial and the Eilenberg–Moore adjunction is terminal among the adjunctions inducing \(T\) [ 229 , Proposition 5.2.12 ] . The comparison functor \(K\) sends \(d\) to \((Ud,U\epsilon _d)\) [ 229 , pp. 164–165 ] .

Definition 70.6 Monadic functor Tag 6027

An adjunction is monadic if its comparison functor \(K\) is an equivalence of categories, and a functor is monadic if it has a left adjoint and the adjunction is monadic [ 229 , Definition 5.3.1 ] . For instance, the inclusion of a reflective subcategory is monadic [ 229 , Proposition 5.3.3 ] .

Definition 70.7 Split coequaliser Tag 6028

A split coequaliser consists of morphisms \(f,g\colon x\to y\), \(h\colon y\to z\), \(s\colon z\to y\) and \(t\colon y\to x\) with \(hf=hg\), \(hs=1_z\), \(gt=1_y\) and \(ft=sh\); then \(h\) is a coequaliser of \(f\) and \(g\), and every functor preserves this coequaliser [ 229 , Definition 5.4.5 and Lemma 5.4.6 ] . For a functor \(U\colon \mathcal{D}\to \mathcal{C}\), a \(U\)-split pair is a pair \(f,g\colon x\to y\) in \(\mathcal{D}\) whose image under \(U\) extends to a split coequaliser in \(\mathcal{C}\), and \(U\) creates coequalisers of \(U\)-split pairs if every such pair has a coequaliser in \(\mathcal{D}\) that \(U\) sends to a coequaliser isomorphic to the given split one, and every fork in \(\mathcal{D}\) on such a pair whose image under \(U\) is isomorphic to the given split one is a coequaliser [ 229 , Definition 5.4.8 ] .

Theorem 70.8 Beck’s monadicity theorem CertifiedTag 6029

A functor \(U\colon \mathcal{D}\to \mathcal{C}\) that has a left adjoint is monadic if and only if it creates coequalisers of \(U\)-split pairs [ 229 , Theorem 5.5.1 ] . Riehl attributes this version of the monadicity theorem to Beck [ 229 , p. 173 ] ; Borceux gives characterisations of monadic functors in [ 31 , Section 4.4 ] .

  1. The forgetful functors to \(\mathbf{Set}\) from monoids, groups, abelian groups, rings, modules over a ring, lattices, pointed sets and \(G\)-sets are monadic [ 229 , Corollary 5.5.3 ] .

  2. The underlying set functor from compact Hausdorff spaces to sets is monadic [ 229 , Corollary 5.5.6 ] , [ 31 , Proposition 4.6.6 ] ; Riehl gives a proof due to Paré. The induced monad sends a set to the underlying set of the Stone–Čech compactification of the discrete space on it, which is the set of ultrafilters on the set [ 229 , Example 5.1.4 ] .

  3. The forgetful functor from topological spaces to sets has a left adjoint but is not monadic: a monadic functor reflects isomorphisms, and a continuous bijection need not be a homeomorphism (Proposition 70.10 and Example 61.7).

Proposition 70.10 PublishedTag 602B

Let \(U\colon \mathcal{A}\to \mathcal{C}\) be monadic.

  1. \(U\) reflects isomorphisms [ 229 , Lemma 5.6.1 ] ; hence a bijective continuous map between compact Hausdorff spaces is a homeomorphism, and a bijective homomorphism of groups is an isomorphism [ 229 , Corollaries 5.6.2 and 5.6.4 ] .

  2. \(U\) creates all limits that \(\mathcal{C}\) has, and the colimits that \(\mathcal{C}\) has and that \(T\) and \(T^2\) preserve [ 229 , Theorem 5.6.5 ] ; in particular, every category monadic over \(\mathbf{Set}\) is complete [ 229 , Corollary 5.6.7 ] .

  3. If \(T\) is a finitary monad on a locally small, complete and cocomplete category, then the category of \(T\)-algebras is complete and cocomplete [ 229 , Theorem 5.6.12 ] .