mirror of
https://git8.cs.fau.de/theses/bsc-leon-vatthauer.git
synced 2024-05-31 07:28:34 +02:00
Show that K is PreElgot
This commit is contained in:
parent
5641cb3dd7
commit
13450c1d23
1 changed files with 9 additions and 1 deletions
|
@ -11,9 +11,12 @@ module Monad.Instance.K.PreElgot {o ℓ e} (ambient : Ambient o ℓ e) (MK : MIK
|
||||||
open Ambient ambient
|
open Ambient ambient
|
||||||
open MIK ambient
|
open MIK ambient
|
||||||
open MonadK MK
|
open MonadK MK
|
||||||
|
open import Algebra.ElgotAlgebra ambient
|
||||||
|
open import Algebra.UniformIterationAlgebra ambient
|
||||||
open import Monad.ElgotMonad ambient
|
open import Monad.ElgotMonad ambient
|
||||||
open import Monad.Instance.K ambient
|
open import Monad.Instance.K ambient
|
||||||
open import Monad.Instance.K.Compositionality ambient MK
|
open import Monad.Instance.K.Compositionality ambient MK
|
||||||
|
open import Monad.Instance.K.Commutative ambient MK
|
||||||
|
|
||||||
open Equiv
|
open Equiv
|
||||||
open HomReasoning
|
open HomReasoning
|
||||||
|
@ -24,9 +27,14 @@ open M C
|
||||||
# K is a pre-Elgot monad
|
# K is a pre-Elgot monad
|
||||||
|
|
||||||
```agda
|
```agda
|
||||||
|
open kleisliK using (extend)
|
||||||
|
-- TODO fix global declarations on Commutative.lagda.md
|
||||||
|
-- open Elgot-Algebra-on using (#-Compositionality)
|
||||||
|
_# = λ {A} {X} f → Uniform-Iteration-Algebra._# (algebras A) {X = X} f
|
||||||
|
|
||||||
preElgot : IsPreElgot monadK
|
preElgot : IsPreElgot monadK
|
||||||
preElgot = record
|
preElgot = record
|
||||||
{ elgotalgebras = λ {X} → elgot X
|
{ elgotalgebras = λ {X} → elgot X
|
||||||
; assoc = {!!}
|
; assoc = λ f h → sym (extend-preserve h f)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue