A monad is an endofunctor with natural transformations and satisfyingIts Kleisli category has the same objects as , with , identity , and compositeThe unit laws follow from naturality of and the two monad unit laws. For , the two triple composites reduce, using naturality of , tothey agree by the monad associativity law. Thus this is a category.
Define the free functor into a Kleisli category and the right-hand functor byThe identity and composition formulas for areFor , , andwhere the last step is naturality of . Hence both mappings are functors. The hom-set identity gives the adjunction . Its unit is , and its counit at is the Kleisli arrow represented by . Applying to that counit gives , so the induced monad is the specified one.
For any inducing this same monad, with counit , define the Kleisli comparison functorThe triangular identities give , and naturality of the counit together with gives . Explicitly, naturality moves past , then moves the resulting counit past , reducing the composite to . Thus is a functor, with and , and it sends the Kleisli counit to .
An adjunction morphism here is required to commute with the left and right adjoints and preserve their adjunction structure. Such a morphism must have the above object map; every Kleisli arrow factors as its counit after , so its arrow map is forced as well. This proves initiality of the Kleisli adjunction:
For inducing , the Kleisli comparison functor is always full and faithful, since the adjunction givesTherefore it is part of an equivalence of categories if and only if every object of is isomorphic to for some .
For an idempotent monad, multiplication is invertible. The unit laws imply . If is an algebra for a monad, then , while naturality of givesThus is an isomorphism with inverse . The algebra law says that is a morphism of algebras for a monad from the free algebra to , so every object of the Eilenberg-Moore category is isomorphic to a free algebra. The criterion above yields
Use , as required by the formula at zero, and composition of functions as multiplication in . The displayed preserves identities, and for ,both sides send zero to zero. Thus is a functor on the one-object category.
For the shift monad on order-preserving maps of natural numbers, setThese are order-preserving functions. The equations and hold pointwise, giving the required natural transformations. For the second equation, both sides are zero at , and are for . The two unit laws are . Associativity is checked byConsequently these maps define a monad. It is not an idempotent monad, since , so cannot be invertible.
An algebra for a monad is a map with and . The first equation forces ; monotonicity then forces . Thus , which satisfies the second equation by the monad associativity law. The Eilenberg-Moore category therefore has exactly one object. Its endomorphisms satisfy , and this equation holds precisely when : evaluate at zero for necessity, and at both sides equal .
The Kleisli comparison functor takes its only object to this only algebra and sends toIt is a bijection from the Kleisli arrows to the algebra endomorphisms, with inverse . It preserves identities and composition by the comparison construction; directly, and . Bijectivity on objects and arrows makes it an isomorphism of categories:
Articles by others on the same topic
There are currently no matching articles.