Formal Definition
If is a category, a monad on consists of a functor together with two natural transformations: (where denotes the identity functor on ) and (where is the functor from to ). These are required to fulfill the following conditions (sometimes called coherence conditions):
- (as natural transformations );
- (as natural transformations ; here denotes the identity transformation from to ).
We can rewrite these conditions using following commutative diagrams:
See the article on natural transformations for the explanation of the notations and, or see below the commutative diagrams not using these notions:
The first axiom is akin to the associativity in monoids, the second axiom to the existence of an identity element. Indeed, a monad on can alternatively be defined as a monoid in the category whose objects are the endofunctors of and whose morphisms are the natural transformations between them, with the monoidal structure induced by the composition of endofunctors.
Read more about this topic: Monad (category Theory)
Famous quotes containing the words formal and/or definition:
“On every formal visit a child ought to be of the party, by way of provision for discourse.”
—Jane Austen (17751817)
“It is very hard to give a just definition of love. The most we can say of it is this: that in the soul, it is a desire to rule; in the spirit, it is a sympathy; and in the body, it is but a hidden and subtle desire to possessafter many mysterieswhat one loves.”
—François, Duc De La Rochefoucauld (16131680)