This commit is contained in:
Frederik Hanghøj Iversen 2018-02-24 20:41:47 +01:00
parent 9d09363f78
commit a447cd9c7c

View file

@ -119,7 +119,7 @@ module Kleisli {a b : Level} ( : Category a b) where
-- (>>=) : m a -> (a -> m b) -> m b -- (>>=) : m a -> (a -> m b) -> m b
-- (>=>) : (a -> m b) -> (b -> m c) -> a -> m c -- (>=>) : (a -> m b) -> (b -> m c) -> a -> m c
_>=>_ : {A B C : Object} [ A , RR B ] [ B , RR C ] [ A , RR C ] _>=>_ : {A B C : Object} [ A , RR B ] [ B , RR C ] [ A , RR C ]
f >=> g = [ rr g f ] f >=> g = rr g f
-- fmap id ≡ id -- fmap id ≡ id
IsIdentity = {X : Object} IsIdentity = {X : Object}
@ -182,7 +182,7 @@ module _ {a b : Level} { : Category a b} where
ζ {X} = η X ζ {X} = η X
rr : {X Y : Object} [ X , RR Y ] [ RR X , RR Y ] rr : {X Y : Object} [ X , RR Y ] [ RR X , RR Y ]
rr {X} {Y} f = [ μ Y func→ R f ] rr {X} {Y} f = μ Y func→ R f
forthRaw : K.RawMonad forthRaw : K.RawMonad
Kraw.RR forthRaw = RR Kraw.RR forthRaw = RR
@ -198,7 +198,7 @@ module _ {a b : Level} { : Category a b} where
isIdentity {X} = begin isIdentity {X} = begin
rr ζ ≡⟨⟩ rr ζ ≡⟨⟩
rr (η X) ≡⟨⟩ rr (η X) ≡⟨⟩
[ μ X func→ R (η X) ] ≡⟨ proj₂ isInverse μ X func→ R (η X) ≡⟨ proj₂ isInverse
𝟙 𝟙
module R = Functor R module R = Functor R