X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=advanced_topics%2Fmonads_in_category_theory.mdwn;h=588d1a30f237dcad0f82b0a26d875af84b9459da;hp=deb5bace5b8656474b48d69a80d985c9bf5c493d;hb=c0a6070f7c11da38419b5e5da90afeddc6520b95;hpb=4bc7f125d288c543b0d22f9f8e69775dc9460317 diff --git a/advanced_topics/monads_in_category_theory.mdwn b/advanced_topics/monads_in_category_theory.mdwn index deb5bace..588d1a30 100644 --- a/advanced_topics/monads_in_category_theory.mdwn +++ b/advanced_topics/monads_in_category_theory.mdwn @@ -233,7 +233,8 @@ If φ is a natural transformation from `F` to `M(1C)` and = (((join 1C) G') -v- ((M unit) G') -v- (φ G')) = ((join (1C G')) -v- (M (unit G')) -v- γ) = ((join G') -v- (M (unit G')) -v- γ) - since (unit G') is a natural transformation to MG', this satisfies the definition for <=<: + since (unit G') is a natural transformation to MG', + this satisfies the definition for <=<: = (unit G') <=< γ @@ -247,17 +248,33 @@ Similarly, if ρ is a natural transformation from `1C` to `MR'`, = (((join R') -v- (M ρ) -v- unit) G) = (((join R') G) -v- ((M ρ) G) -v- (unit G)) = ((join (R'G)) -v- (M (ρ G)) -v- (unit G)) - since γ = (ρ G) is a natural transformation to MR'G, this satisfies the definition for <=<: + since γ = (ρ G) is a natural transformation to MR'G, + this satisfies the definition <=<: = γ <=< (unit G) where as we said γ is a natural transformation from `G` to some `MR'G`. +Summarizing then, the monad laws can be expressed as: +
+	For all ρ, γ, φ in T for which ρ <=< γ and γ <=< φ are defined:
+
+	    (i) γ <=< φ etc are also in T
 
+	   (ii) (ρ <=< γ) <=< φ  =  ρ <=< (γ <=< φ)
 
-The standard category-theory presentation of the monad laws
------------------------------------------------------------
+	(iii.1) (unit G') <=< γ  =  γ
+	        when γ is a natural transformation from some FG' to MG'
+
+	(iii.2)                     γ  =  γ <=< (unit G)
+	        when γ is a natural transformation from G to some MR'G
+
+ + + +Getting to the standard category-theory presentation of the monad laws +---------------------------------------------------------------------- In category theory, the monad laws are usually stated in terms of `unit` and `join` instead of `unit` and `<=<`.