Formatting

This commit is contained in:
Frederik Hanghøj Iversen 2018-03-23 10:08:28 +01:00
parent 73c3b35631
commit 96fb1d3a3b

View file

@ -72,12 +72,12 @@ module voe {a b : Level} ( : Category a b) where
} }
field field
isMnd : IsMonad rawMnd isMonad : IsMonad rawMnd
toMonad : Monad toMonad : Monad
toMonad = record toMonad = record
{ raw = rawMnd { raw = rawMnd
; isMonad = isMnd ; isMonad = isMonad
} }
record §2 : Set where record §2 : Set where
@ -94,36 +94,30 @@ module voe {a b : Level} ( : Category a b) where
} }
field field
isMnd : IsMonad rawMnd isMonad : IsMonad rawMnd
toMonad : Monad toMonad : Monad
toMonad = record toMonad = record
{ raw = rawMnd { raw = rawMnd
; isMonad = isMnd ; isMonad = isMonad
} }
§1-fromMonad : (m : M.Monad) §2-3.§1 (M.Monad.Romap m) (λ {X} M.Monad.pureT m X) §1-fromMonad : (m : M.Monad) §2-3.§1 (M.Monad.Romap m) (λ {X} M.Monad.pureT m X)
-- voe-2-3-1-fromMonad : (m : M.Monad) → voe.§2-3.§1 (M.Monad.Romap m) (λ {X} → M.Monad.pureT m X)
§1-fromMonad m = record §1-fromMonad m = record
{ fmap = Functor.fmap R { fmap = Functor.fmap R
; RisFunctor = Functor.isFunctor R ; RisFunctor = Functor.isFunctor R
; pureN = pureN ; pureN = pureN
; join = λ {X} joinT X ; join = λ {X} joinT X
; joinN = joinN ; joinN = joinN
; isMnd = M.Monad.isMonad m ; isMonad = M.Monad.isMonad m
} }
where where
raw = M.Monad.raw m open M.Monad m
R = M.RawMonad.R raw
pureT = M.RawMonad.pureT raw
pureN = M.RawMonad.pureN raw
joinT = M.RawMonad.joinT raw
joinN = M.RawMonad.joinN raw
§2-fromMonad : (m : K.Monad) §2-3.§2 (K.Monad.omap m) (K.Monad.pure m) §2-fromMonad : (m : K.Monad) §2-3.§2 (K.Monad.omap m) (K.Monad.pure m)
§2-fromMonad m = record §2-fromMonad m = record
{ bind = K.Monad.bind m { bind = K.Monad.bind m
; isMnd = K.Monad.isMonad m ; isMonad = K.Monad.isMonad m
} }
-- | In the following we seek to transform the equivalence `Monoidal≃Kleisli` -- | In the following we seek to transform the equivalence `Monoidal≃Kleisli`