5 Monads

Suppose we have CGFD, (FG). How much of the adjunction can we describe in terms of C (supposing we can’t know anything about D, or know very little about it)?

We have:

From the triangular identities of Theorem 3.7, we obtain the commutative triangles:

             T       TT          T       T T


(1) :      T1μηT        T(2) :      ηT1Tμ        T
and from naturality of 𝜀 we obtain
               T TT      TT


(3) :       TμμμμT T T       T

Definition 5.1 (Monad). A monad on a category C is a triple (T,η,μ)=𝕋 where T:CC, and η:1CT and μ:TTT satisfy the commutative diagrams

  T       TT


T1μηT        T
  T       TT


η1μTT        T
   TT T      TT

TμμμμT TT        T

Example 5.2.

  • (a) Let M be a monoid. The functor M×():SetSet has a monad structure: ηA:AM×A is a(1,a) and μA:M×M×AM×A sends (m,m,a) to (mm,a). The three diagrams ‘are’ the unit and associative laws in M.
  • (b) The functor P:SetSet has a monad structure: the unit ηA:APA is the mapping a{a} (Example 1.7(c)) and the multiplication μA:PPAPA sends a set of subsets of A to their union.

Does every monad come from an adjunction?

Answered by Eilenberg-Moore and by Kleisli (1965).

Note that the monad of Example 5.2(a) is induced by SetUM×()[M,Set] and that of Example 5.2(b) is induced by SetUPCSLatt, where CSLatt is the category of complete semilattices (posets, with arbitrary joins). The free complete semilattice on A is P(A): every f:AUS extends uniquely to f¯:P(A)S where f¯(A)={f(a)|aA}.

An M-set (respectively a complete semilattice) is a set A equipped with a suitable mapping M×AA (respectively P(A)A).

Definition 5.3 (Eilenberg-Moore algebra). Let 𝕋=(T,η,μ) be a monad on C. By an Eilenberg-Moore algebra for 𝕋 we mean a pair (A,α) where AobC and α:TAA satisfies

            A        TA             TTA      T A


(4) :      ηA1Aα         A(5) :        TμαααA TA       A
A homomorphism f:(A,α)(B,β) is a morphism f:AB satisfying
              TA       TB

(6) :      Tαβff A        B
We write C𝕋 for the category of 𝕋-algebras and homomorphisms.

Proposition 5.4. Assuming that:

Then the forgetful functor C𝕋G𝕋C has a left adjoint F𝕋, and the adjunction induces the monad 𝕋.

Proof. We define F𝕋A=(TA,μA) (an algebra by (2) and (3)) and F𝕋(AfB)=Tf (a homomorphism by naturality of μ). Clearly, F𝕋 is functorial and G𝕋F𝕋=T.

We establish the adjunction using Theorem 3.7: its unit is η, and the counit 𝜀(A,α) is just α (a homomorphism F𝕋A(A,α), by (5), and natural by (6)).

The triangular identity

  F 𝕋        F 𝕋G𝕋F 𝕋

               𝕋
1            F
is just (1), and
  G 𝕋        G 𝕋F𝕋G 𝕋


1            G 𝕋
is (4).

Finally, G𝜀F𝕋A=μ by definition of F𝕋A. So the adjunction induces (T,η,μ).

Note: CGFD induces 𝕋, we can replace D by its full subcategory on objects FA.

So in trying to construct D, we may assume F is surjective (indeed, bijective) on objects. The morphisms FAFB in D must correspond to morphisms AGFB=TB in C.

Definition 5.5 (Kleisli category). Let 𝕋 be a monad on C. The Kleisli category C𝕋 is defined by obC𝕋=obC, morphsims AfB in C𝕋 are morphisms AfTB in C. The identity AA is AηATA, and the composite of AfBgC is AfTBTgTTCμCTC.

For the unit and associative laws, consider the diagrams

  A       TB        TT B


fT1μηTBBB                 TB
  A         T A


  T B       T TB


μfTη1μAfTTBBB         T B
  A       TB        TTC        TT TD      T TD


fTTμTμμTμgTCμTDhDhDD                 TC         TT D       T D

Proposition 5.6. Assuming that:

Then there is an adjunction CG𝕋F𝕋C𝕋 inducing the monad 𝕋.

Proof. We define F𝕋A=A and F𝕋(AfB)=AfBηBTB. F𝕋 preserves identities by definintion, and preserves composition by

  A      B        TB

         C        TC       T TC


fg1gTηT1μfBgC1TCCC                        T C
We define G𝕋A=TA, and G𝕋(AfB)=TATfTTBμBTB. G𝕋 preserves identities by (1), and preserves composites by
  T A       TT B       T TTC      T TC


TTμTμμTμfTBμTCgCgCC         TB         T TC       T C
We verify the adjunction using Theorem 3.7: G𝕋F𝕋(f)=Tf by (1) so G𝕋F𝕋=T and we take η as unit of the adjunction.

We define TA𝜀AA to be TA1TATA. To verify the naturality square

  TA       TB

F𝜀𝜀f𝕋ABAG𝕋f      B
the lower composite is TATfTTBμBTB and the upper one is TATfTTBμBTBηTBTTBμBTB, which agree since (2) tells us that μBηTB=1B.

The triangular identities become

F𝜀𝕋FηAFA 𝕋A        F= GF A     FA        ηTηT1TηTATTATAAA        TTA        TTT A      TT A
and
ηGG𝜀GAAA         G=F GA     GA  η1ηTTTTAAA A       T TA      TA
Finally, G𝕋𝜀F𝕋A=μA, so (F𝕋G𝕋) induces the monad 𝕋.

Given a monad 𝕋 on C, we write Adj(𝕋) for the category whose objects are adjunctions (CGFD) inducing 𝕋, and morphisms (CGFD)(CGFD) are functors DKD satisfying KF=F and GK=G.

Theorem 5.7. The Kleisli adjunction (CC𝕋) is an initial object of Adj(𝕋), and the Eilenberg-Moore adjunction (CC𝕋 is terminal.

Proof. Suppose given (CGFD) in Adj(𝕋). We define K:DC𝕋 by KB=(GB,G𝜀B) (an algebra by one of the triangular identities for η and 𝜀, and naturality of 𝜀), K(BgB)=Gg (a homomorphism by naturality of 𝜀). K is functorial since G is, G𝕋K=G is obvious, and KFA=(GFA,G𝜀FA)=(TA,μA)=F𝕋A.

So K is a morphism of Adj(𝕋).

Suppose K:DC𝕋 is another such: then we must have KB=(GB,βB) where β:GFGG is a natural transformation since Kg=Gg is a homomorphism KBKB for all g:BB. Also, since KF=F𝕋, we have βFA=μA=G𝜀FA for all A.

For any B, we have naturality squares

     GF GF GB      GF GB


GGβGβGF𝜀F𝜀B𝜀GFGBB𝜀GBBBGF GB         GB
whose left edges are equal, and whose top edge is split epic, so we obtain G𝜀B=βB for all B. So K=K.

We define H:C𝕋D by HA=FA and H(AfB)=FAFfFGFB𝜀FBFB. H preserves identities and satisfies HF𝕋=F, by the first triangular identity for η and 𝜀.

H preserves the composite AfBgC by

  F A        FGF B         FGF GF C     F GF C


FF𝜀F𝜀𝜀F𝜀fGFGFFgFFB𝜀GCCFFgCC        FB            FGF C        F C
Also GHA=GFA=TA=G𝕋A and

GH(AfB)=(TATfTTBμBTB)=G𝕋(AfB).

So H is a morphism of Adj(𝕋). Note that H is full and faithful, since it sends AfGFB to its traspose across (FG).

If H:C𝕋D is any morphism of Adj(𝕋), we must have HA=FA=HA for all A, and since GH=G𝕋 and the adjunctions have the same unit, H must send the transpose AfB of AfGFB to its transpose across (FG). So H=H.

C𝕋 has coproducts if C does, but has few other limits or colimits. In contrast, we have:

Proposition 5.8. Assuming that:

Then

Proof.

  • (i) Suppose given D:JC𝕋; write D(j)=(GD(j),δj), and let (L,(λj:LGD(j)|jobJ)) be a limit for GD. The composites TLTλjTGD(j)δjGD(j) form a cone over GB. So they induce a unique λ:TLL. And λ is a 𝕋-algebra structure on L, since the identities ληL=1L and λ(Tλ)=λμL follow from uniqueness of factorisations through limits and it’s the unique lifting of the limit cone in C to a cone in C𝕋. The fact that it’s a limit cone is straightforward.
  • (ii) If G𝕋 creates colimits then it preserves them, but so does F𝕋 since it’s a left adjoint, so T preserves them too.

    Conversely, given D:JC𝕋 and a colimit cone (GD(j)λjL|jobJ) under GD, we need to know that (TGD(j)TλjTL|jobJ) is a colimit cone to obtain TLλL (and that TTL is a colimit to verify that λ is a 𝕋-algebra structure). Otherwise, the argument is as before.

Given (CGFD), (FG), how can we tell when K:DC𝕋 is part of an equivalence?

Note: H:C𝕋D is an equivalence if and only if F is essentially surjective.

We call (FF) (or the functor G) monadic if K:DC𝕋 is part of an equivalence.

Lemma 5.9. Assuming that:

  • CGFD is an adjunction inducing the monad 𝕋 on C

  • for every 𝕋 algebra (A,α), the pair FGFA𝜀FAFαFA has a coequaliser in D

Then K:DC𝕋 has a left adjoint L.

Proof. Write FAλ(A,α)L(A,α) for the coequaliser. For any homomorphism f:(A,α)(B,β) the two left hand squares in

    FGF A     F A        L (A, α)


F𝜀FFλFLF𝜀FλαAG(AffβB(BF,,fα)β)FGF B     F B        L (B, β)
commute, so we get a unique Lf making the right hand square commute. As usual, uniqueness implies functoriality of L.

For any BobD, morphisms L(A,α)B correspond to morphisms FAfB satisfying f(Fα)=f𝜀FA. If f¯:AGB is the transpose of f across (FG), then f(Fα) transposes to f¯α:GFAGB, whereas f𝜀FA transposes to Gf. But we can write f=𝜀B(Ff¯) by the proof of Theorem 3.7, so Gf=(G𝜀B)(GFf¯). So f(Fα)=f𝜀FA if and only if

   GF A       GF GB


GαGfF𝜀fBA          GB
commutes, which happens if and only if f¯:(A,α)KB in C𝕋.

Naturality of the bijection follows from that of ff¯.

Note that since G𝕋K=G, we have LF𝕋F by Corollary 3.6, and L preserves coequalisers.

Definition 5.10 (Reflexive / split coequaliser diagram / G-split).

  • (a)
    We say a parallel pair AgfB is reflexive if there exists r:BA with fr=gr=1B. Note that FGFA𝜀FAFαFA is reflexive, with common right inverse FAFηAFGFA.
  • (b)
    By a split coequaliser diagram, we mean a diagram
    fghts A       B      C
    satisfying hf=hg, hs=1C, gt=1B and ft=sh. If these hold, then h is a coequaliser of (f,g) since if BkD satisfies kf=kg then k=kgt=kft=ksh, so k factors through h, and the factorisation is unique since h is (split) epic. Note that any functor preserves split coequalisers.
  • (c)
    Given G:DC, we say a pair AgfB in D is G-split if there’s a split coequaliser diagram
    GGhtsfg GA       GB      C
    in C. The pair (Fα,𝜀FA) in Lemma 5.9 is G-split, since
    GGαηηFGA𝜀FFαAA GF GF A     GF A     A
    is a split coequaliser diagram in C.

Theorem 5.11 (Precise Monadicity Theorem). A functor G:DC is monadic if and only if G has a left adjoint and creates coequaliser of G-split pairs in D.

Theorem 5.12 (Crude Monadicity Theorem). Assuming that:

Then G is monadic.

Proof.

  • (5.11, ) Necessity of FG is obvious. For the other condition, it’s enough to show that G𝕋:C𝕋C creates coequalisers of G𝕋-split pairs. This is a re-run of Proposition 5.8(ii): if (A,α)gf(B,β) are such that
    fghts A      B       C
    is a split coequaliser diagram, the coequaliser is preserved by T and by TT, so C acquires a unique algebra structure TCγC making h a homomorphism, and h is a coequaliser in C𝕋.
  • (5.11 and 5.12) Either set of hypotheses implies that D has the coequalisers needed for Lemma 5.9, so K has a left adjoint L. So we need to show that the unit and counit of (LK) are isomorphisms.

    The unit (A,α)KL(A,α) is the factorisation of Gλ(A,α):GFAGL(A,α) through the (G𝕋-split) coequaliser GFAαA of GFGFAG𝜀FAGFαGFA. But either set of hypothesis implies that G preserves the equaliser of (Fα,𝜀FA), so this factorisation is an isomorphism.

    The counit LKBB is the factorisation of FGB𝜀BB through the coequaliser of FGFGB𝜀FGBFG𝜀BFGB. The hypotheses of Theorem 5.11 imply that 𝜀B is a coequaliser of this pair, so the counit is an isomorphism. Those of Theorem 5.12 imply that the factorisation is mapped to an isomorphism by G, so it’s an isomorphism.

Remark 5.13.

Example 5.14.

  • (a) The forgetful functor GpSet is monadic, and satisfies the hypotheses of Theorem 5.12. If GgfH is a reflexive pair in Gp, with coequaliser HhK in Set, then G×GH×HK×K is a coequaliser, so the multiplication H×HH induces a binary operation K×KK, which is the unique group multiplication on K making h a homomorphism, and it makes h into a coequaliser in Gp.

    The same argument works for AbGp, Rng, Lat, DLat, ….

    It doesn’t work for categories like CSLat or CLat, but here we can use Theorem 5.11 provided the forgetful functor has a left adjoint.

  • (b) Any reflection is monadic: this can be proved using Theorem 5.11. If DC is a reflective subcategory, and AgfB is a pair in D for which there exists
    fghts A       B      C
    in C satisfying the equaitions of Definition 5.10(b), then tmorD since D is full, so ft=sh is in D, but D is closed under splittings of idempotents by Example 4.7(d), so h belongs to it.
  • (c) Consider the composite adjunction
    FLGI  Set       AbGp         tfAbGp
    where (LI) is the adjunction of Example 3.11(b). The two factors are monadic, but the composite isn’t since free abelian groups are torsion free, so GILFGF and its category of algebras is AbGp.
  • (d) The contravariant power-set functor P:SetopSet is monadic, and satisfies the hypotheses of Theorem 5.12. Its left adjoint is P:SetSetop by Example 3.2(i), and it reflects isomorphisms by Example 2.9(a).

    Let EeAgfB be a coreflexive equaliser diagram in Set. Then

      E       A


eefg A       B
    is a pullback by Remark 5.13(c), so
      P E       PA


PPPPe∗f∗Peg A       PB
    commutes. But we also have (Pe)(Pe)=1PE and (Pf)(Pf)=1PB since e and f are injective, so
      ∗∗∗           ∗
PPPPP gfefePA       P  B      PE
    is a split coequaliser diagram.

  • (e) The fogetful functor TopUSet is not monadic; the monad on Set induced by (DU) is (1Set,11Set,11Set) so its category of algebras is Set.
  • (f) The composite adjunction
    DBUI  Set      Top         KHaus
    is monadic. We’ll prove this using Theorem 5.11: suppose given XgfY in KHaus and a split coequaliser
    UUhtsfg UX       U Y      Z
    in Set. The quotient topology on Z is the unique topology making h into a coequaliser in Top, and it’s compact, so h will be a coequaliser in KHaus provided Z is Hausdorff. It is also the unique topology that could make h into a morphism of KHaus.

    But, given an equivalence relation S on a compact Hausdorff space Y, YS is Hausdorff if and only if S is closed in Y×Y.

    In our case, if (y1,y2)S (i.e. h(y1)=h(y2)) then x1=t(y1) and x=t(y2) satisfy g(t1)=y1, g(x2)=y2 and f(x1)=f(x2).

    Conversely, if we have x1 and x2 as above, then h(y1)=h(y2), so S=g×g(R) where RX×X is {(x1,x2)|f(x1)=f(x2)}. But R is closed in X×X since it’s the equaliser of X×Xfπ2fπ1Y. So R is compact, so S is compact, so S is closed in Y×Y.

Definition 5.15 (Monadic tower). Let CGFD be an adjunction where D has reflexive coequalisers. The monadic tower of (FG) is the diagram

           ..
           .

           (𝒞𝕋)𝕊


  𝒟        𝒞𝕋


GKLF          𝒞
where 𝕋 is the monad induced by (FG), and K and L are as in Theorem 5.7 and Lemma 5.9, and 𝕊 is the monad induced by (LK) and so on.

We say (FG) has monadic length n if we reach an equivalence after n steps.