Definition
A monad in a category consists of:
- A functor .
- Natural transformations (unit) and (multiplication).
- Such that the following diagrams commute in the category of endofunctors :
Associativity Law
We require that as natural transformations from to .
Unit Laws
We require that as natural transformations from to .
Comonad
A comonad is a monad in the opposite category .
Relation to Adjunctions
Given any adjunction for , defines a monad in .
See also
References
A monad or a Kleisli triple over a category is a triple where …
See capretta2005-partiality.