In category theory, a comonad is a structure dual to that of the monad .
definition
A comonade is a triple consisting of
- an endofector ,
- a natural transformation and
- a natural transformation ,
that meets the following conditions:
-
and
-
.
Explicitly at the level of morphisms of this means that for each object from true
-
and
-
.
Coalgebras
A koalgebra for a comonad on a category is a pair consisting of an object of and a morphism such that and . A homomorphism of coalgebras is a morphism in that satisfies. The koalgebras form a category .
There is a canonical functor that is on objects . He is right adjoint to the forget functor .
Comonad to an adjoint functor pair
Let there be categories and , functors, so that it is right adjoint to . One or Koeins of the adjunction are or . Then a comonade is on .
One obtains an induced functor such that and holds. The functor is called comonadic if there is an equivalence of categories . The Monadizitätssatz of Jonathan Mock Beck 's criteria for when a functor is komonadisch.
If a comonad is on a category , then the comonad associated with the adjoint functor pair is again .
example
In the set category , the endofunctor is that of the formation of -indicated sequences, i.e. H. for every set is , and for sets and as well as mappings is given by .
Let the natural transformations and be through the families of maps and ,
given for arbitrary quantities .
The triple is now a comonade in set .
The Koalgebras for are figures that satisfy and . With , is , and one can identify the coalgebras with pairs with any map .
Is any amount then correspond Komonadenstrukturen on bijektiv the Monoidstrukturen on . The multiplication on is . For a monoid , the structural mapping of a koalgebra can be identified with other mappings under the power law :
- a figure which is an algebra of the Monad is
- a monoid homomorphism , d. H. an operation from on .
literature
- Saunders Mac Lane, Categories for the Working Mathematician . Springer-Verlag, Berlin 1971. ISBN 3-540-90035-7