Comonad 2026-10-06
A comonad is an endofunctor with natural transformations and satisfying and . It is the categorical dual of a monad. Its coalgebras for a comonad carry compatible maps into their image under .
For an adjunction with unit and counit of an adjunction , the monad induced by an adjunction is , with multiplication . Its Eilenberg-Moore comparison functor is
Here is the Eilenberg-Moore category. If has reflexive coequalizers, the Left adjoint to the Eilenberg-Moore comparison functor is defined on an algebra for a monad by
where the last arrow is a coequalizer. The parallel pair has common section , so it is a reflexive pair. The coequalizer property induces on algebra morphisms and gives .
Starting with , iterate this construction: if , put and let be its comparison. The monadic length is the least for which is an equivalence of categories. Thus an equivalence has length zero, and an already monadic adjunction whose right adjoint is not an equivalence has length one. The assumed reflexive coequalizers ensure the needed left adjoints; in the example we identify them explicitly.
For the nested partial unary operation category , write
For the empty list of operations, take and . We use positive chain indices for new points, so the index zero already labels the copy of . This makes the free-object hint independent of the convention for .
For , the free extension of nested partial unary operations has underlying set
Keep the old operations on the zero layer. On new points define only
and leave every , , undefined there. Define the new top operation by
and leave it undefined elsewhere. These are precisely the permitted domains: the first unary operation on every new point moves it, so none of the higher operations is defined there. When , take with . In either case the unit is .
For , let its operations be . Any morphism extends uniquely to
The value is defined because preserves the previous fixed-point equations. The extension respects the top operation at old fixed points and respects the first operation along each new chain; there are no other defined operations on those chains to check. Uniqueness follows from the same forced formulas. For the formula is . These extensions are natural and prove
On a morphism the free functor sends to .
Crucially, the top operation of has no fixed points: its defined old values move to new points, and it has no defined new values when ; for it is the shift. The next free extension therefore adds no points and equips the object with an everywhere-undefined next operation. The same remains true at every subsequent free extension. Hence, for , the composite left adjoint has the same first operations and underlying set as .
This agreement includes the monad structure, not just its underlying endofunctor. The units are the same zero-layer inclusions. The composite counit on an object of is the same forced extension formula, depending only on its first operations. Applying the composite forgetful functor therefore gives the same multiplication . Thus
Next prove creation of the required split coequalizers. Suppose are arrows in and their images have a split coequalizer in . Choose the splitting orientation
with , morphisms in . Denote the top operations on by . For define
Since preserves the lower operations, and this value exists. For , , so preservation by gives
Thus respects the top operation. The splitting and also show that this is the unique operation on its prescribed domain for which is a morphism. For all these domains mean the whole underlying set.
If is a morphism equalizing , its unique factor in satisfies, on ,
where is the top operation of . Hence is a morphism. This proves creates coequalizers of -split pairs.
Moreover, reflects isomorphisms: an isomorphism of the first operations reflects their fixed-point conditions, hence the domain of the next operation; the inverse of a bijective top-operation-preserving map then preserves that operation too. The Beck monadicity theorem now gives
Under this equivalence, the first Eilenberg-Moore comparison functor for the long composite is exactly forgetting all operations after the st: its algebra structure is the top-operation extension formula already computed. Repeating the argument identifies its monadic tower with the successive categories
At each stage the corresponding comparison has the remaining composite of the already constructed free extensions as a left adjoint.
No earlier stage can be an equivalence of categories. For , take the two-point set with its first operations all identities. One extension to has every later operation the identity; another has its st operation interchange the two points, and all subsequent operations undefined. Both have the same image in , but the identity function between those images is not a morphism between the extensions. Thus forgetting from to is not full. The final comparison at is an equivalence. This proves the monadic tower for nested partial unary operations has