This commit is contained in:
Leon Vatthauer 2023-11-14 19:04:50 +01:00
parent c11ad1998c
commit 5641cb3dd7
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
2 changed files with 33 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,7 +1,7 @@
*.agdai *.agdai
*.pdf *.pdf
*.log *.log
src/Everything.agda Everything.agda
public/ public/
.direnv .direnv
.DS_Store .DS_Store

View file

@ -0,0 +1,32 @@
<!--
```agda
open import Level
open import Category.Instance.AmbientCategory
import Monad.Instance.K as MIK
```
-->
```agda
module Monad.Instance.K.PreElgot {o e} (ambient : Ambient o e) (MK : MIK.MonadK ambient) where
open Ambient ambient
open MIK ambient
open MonadK MK
open import Monad.ElgotMonad ambient
open import Monad.Instance.K ambient
open import Monad.Instance.K.Compositionality ambient MK
open Equiv
open HomReasoning
open MR C
open M C
```
# K is a pre-Elgot monad
```agda
preElgot : IsPreElgot monadK
preElgot = record
{ elgotalgebras = λ {X} → elgot X
; assoc = {!!}
}
```