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 .

T3T2T2TT¹¹T¹¹

Unit Laws

We require that as natural transformations from to .

TT2T2TT´´T1T¹¹

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.