I'm reading a paper by Eugenio Moggi entitled "Notions of Computation and Monads". It introduces the concept of a “Kleisli triple” on a category $\mathcal C$, which is $(T, \eta, -^*)$, where:
- $T$ is an object map on $\mathcal C$,
- $\eta_A : A \to TA$,
- For $f : A \to TB$, $f^* : TA \to TB$;
satisfying laws:
- $\eta_A^* = 1_{TA}$
- $f^* \circ \eta_A = f$
- $f^* \circ g^* = (f^* \circ g)^*$
It then goes on to claim that these definitions give a monad. However, there doesn't seem to be anything requiring even $\eta$ to be a natural transformation, let alone the $\mu$ that you can define from the triple. Furthermore, when I searched around for more on Kleisli triples, this seems to be a common theme – no-one is concerned with naturality.
Are the naturality conditions all just implicit? Are they too obvious to write down? Or are they truly unnecessary?
Here's another approach: (I write composition from left to right.)
Consider first the subcategory $\tilde{\mathcal C}\subseteq \mathcal C$ with objects $TA$ for all $A$ and with all arrows of the form $f^*$ (for $f:A\to TB$).
Then, consider the category $\mathcal T$ which consist of the disjoint union of $\mathcal C$ and $\tilde{\mathcal C}$, plus arrows from the left to the right, $A\dashrightarrow TX$ as original arrows of $\mathcal C$. All compositions are coming from $\mathcal C$. (It is (the collage of) a profunctor $\mathcal C\not\to\tilde{\mathcal C}$.)
If $T$ was also given on the arrows, then, for any $f:A\to B$ we should have a commutative diagram (also to ensure naturality of $\eta$) $$\matrix{A &\overset{\eta_A}\longrightarrow &TA \\ \!\!\!f\downarrow &&\ \,\ \downarrow Tf \\ B &\underset{\eta_B}\longrightarrow &TB } $$
The main thing is that $\eta_A$ will be a reflection of $A$ to $TA$ on the right side (that's why we had to take the subcategory $\tilde{\mathcal C}$), in particular will be epimorphism. Now, the above diagram can define $Tf$ as $$Tf:=(f\eta_B)^* $$ The universal property (i.e. reflections) guarantee that it will be indeed a functor. All the other details can be seen similarly. Note that for $h:A\to TB$, the $\eta_A h^*=h$ is heavily used.
For naturality of $\mu\ $ (defined as $\mu_A:=(1_{TA})^*:TTA\to TA$), you can apply that $\eta_A$ is epimorphic (in $\mathcal T$, that is, w.r.t. $\tilde{\mathcal C}$), and so $$ \matrix{A &\overset{\alpha}\longrightarrow &TX \\ \!\!\!f\downarrow &\scriptstyle\#&\ \,\ \downarrow h^* \\ B &\underset{\beta}\longrightarrow &TY } \ \implies \quad \matrix{TA &\overset{\alpha^*}\longrightarrow &TX \\ \!\!\!\!\!Tf\downarrow &\scriptstyle\#&\ \,\ \downarrow h^* \\ TB &\underset{\beta^*}\longrightarrow &TY } $$ Now apply this to $X=A,\ Y=B,\ u:A\to B,\ h^*=Tu=f,$ and $\alpha=1_{TA},\ \beta=1_{TB}$.