Talk:Kleisli category

Non-monadic definition
Hi. I have an alternative description of a Kleisli category which does not rely on monads.

Given a category C , and a mapping T from ObjC to ObjC (so T is not a functor as it does not go from a category to another one), a Kleisli category over  is a category  (so it shares the same objects than C, and its morphisms are defined from those of C) such that ∀ f g h. compK(f, compC(g, h)) = compC(compK(f, g), h).

From that, we can extend T to a functor and define (η X) as (idK X) and (μ X) as (compK(idC (T (T X)), idC (T X))), and show that the monad laws are verified (I did it in the Coq proof assistant).

Sedrikov (talk) 8 January 2013‎

Kleisli monoid
In particular, the Kleisli construction can be applied to monoids. If $$M$$ is a monoid, $$T\colon M\to M$$ is a monoid homomorphism, $$\eta, \mu \in M$$, $$\forall x \in M \eta * x = T(x) * \eta$$, $$\forall x \in M \mu * T(T(x)) = T(x) * \mu$$, $$\mu * \eta = \mu * T(\eta) = 1$$, and $$\mu^2 = \mu * T(\mu)$$, the Kleisli monoid has the same underlying set as $$M$$ but with identity $$\eta$$ and multiplication $$ x *_T y := \mu * T(x) * y$$. GeoffreyT2000 (talk) 03:10, 17 May 2015 (UTC)
 * By monoid you mean a category with 1 object? --Beroal (talk) 18:39, 17 May 2015 (UTC)