This commit is contained in:
Frederik Hanghøj Iversen 2018-03-06 09:45:04 +01:00
parent b6457a0b14
commit cfb7925cb5

View file

@ -264,8 +264,8 @@ module Kleisli {a b : Level} ( : Category a b) where
module R² = Functor module R² = Functor
pureT : Transformation R⁰ R pureT : Transformation R⁰ R
pureT A = pure pureT A = pure
pureTNatural : Natural R⁰ R pureT pureN : Natural R⁰ R pureT
pureTNatural {A} {B} f = begin pureN {A} {B} f = begin
pureT B R⁰.func→ f ≡⟨⟩ pureT B R⁰.func→ f ≡⟨⟩
pure f ≡⟨ sym (isNatural _) pure f ≡⟨ sym (isNatural _)
bind (pure f) pure ≡⟨⟩ bind (pure f) pure ≡⟨⟩
@ -273,8 +273,8 @@ module Kleisli {a b : Level} ( : Category a b) where
R.func→ f pureT A R.func→ f pureT A
joinT : Transformation R joinT : Transformation R
joinT C = join joinT C = join
joinTNatural : Natural R joinT joinN : Natural R joinT
joinTNatural f = begin joinN f = begin
join R².func→ f ≡⟨⟩ join R².func→ f ≡⟨⟩
bind 𝟙 R².func→ f ≡⟨⟩ bind 𝟙 R².func→ f ≡⟨⟩
R².func→ f >>> bind 𝟙 ≡⟨⟩ R².func→ f >>> bind 𝟙 ≡⟨⟩
@ -304,11 +304,11 @@ module Kleisli {a b : Level} ( : Category a b) where
pureNT : NaturalTransformation R⁰ R pureNT : NaturalTransformation R⁰ R
proj₁ pureNT = pureT proj₁ pureNT = pureT
proj₂ pureNT = pureTNatural proj₂ pureNT = pureN
joinNT : NaturalTransformation R joinNT : NaturalTransformation R
proj₁ joinNT = joinT proj₁ joinNT = joinT
proj₂ joinNT = joinTNatural proj₂ joinNT = joinN
isNaturalForeign : IsNaturalForeign isNaturalForeign : IsNaturalForeign
isNaturalForeign = begin isNaturalForeign = begin