Cosmetics

This commit is contained in:
Frederik Hanghøj Iversen 2018-03-05 17:31:13 +01:00
parent 9ec6ce9eba
commit f8e08288a0

View file

@ -523,6 +523,8 @@ module _ {a b : Level} { : Category a b} where
module _ (m : M.Monad) where
open M.RawMonad (M.Monad.raw m)
Romap = Functor.func* R
Rfmap = Functor.func→ R
rawEq* : Functor.func* (K.Monad.R (forth m)) Functor.func* R
rawEq* = refl
left = Functor.raw (K.Monad.R (forth m))
@ -533,22 +535,35 @@ module _ {a b : Level} { : Category a b} where
Set _
P _ eq fmap' = (λ i Fmap (eq i))
[ RawFunctor.func→ left fmap' ]
-- rawEq→ : (λ i → Fmap (refl i)) [ Functor.func→ (K.Monad.R (forth m)) ≡ Functor.func→ R ]
rawEq→ : P (RawFunctor.func* right) refl (RawFunctor.func→ right)
-- rawEq→ : (fmap' : Fmap {!!}) → RawFunctor.func→ left ≡ fmap'
module KM = K.Monad (forth m)
rawEq→ : (λ i Fmap (refl i)) [ Functor.func→ (K.Monad.R (forth m)) Functor.func→ R ]
-- aka:
--
-- rawEq→ : P (RawFunctor.func* right) refl (RawFunctor.func→ right)
rawEq→ = begin
(λ f RawFunctor.func→ left f) ≡⟨⟩
(λ f KM.fmap f) ≡⟨⟩
(λ f KM.bind (f >>> KM.pure)) ≡⟨ {!!}
(λ f Rfmap f) ≡⟨⟩
(λ f RawFunctor.func→ right f)
where
module KM = K.Monad (forth m)
-- destfmap =
source = (Functor.raw (K.Monad.R (forth m)))
-- p : (fmap' : Fmap (RawFunctor.func* source)) → (λ i → Fmap (refl i)) [ func→ source ≡ fmap' ]
-- p = {!!}
-- This goal is more general than the above goal which I also don't know
-- how to close.
p : (fmap' : Fmap (RawFunctor.func* left))
(λ i Fmap Romap) [ RawFunctor.func→ left fmap' ]
-- aka:
--
-- p : P (RawFunctor.func* left) refl
p fmap' = begin
(λ f RawFunctor.func→ left f) ≡⟨⟩
(λ f KM.fmap f) ≡⟨⟩
(λ f KM.bind (f >>> KM.pure)) ≡⟨ {!!}
(λ f fmap' f)
rawEq : Functor.raw (K.Monad.R (forth m)) Functor.raw R
rawEq = RawFunctor≡ {x = left} {right} refl λ fmap' {!rawEq→!}
rawEq = RawFunctor≡ {x = left} {right} (λ _ Romap) p
Req : M.RawMonad.R (backRaw (forth m)) R
Req = Functor≡ rawEq