mirror of
https://git8.cs.fau.de/theses/bsc-leon-vatthauer.git
synced 2024-05-31 07:28:34 +02:00
minor
This commit is contained in:
parent
af3b6ee7c3
commit
7cf428e05c
1 changed files with 5 additions and 7 deletions
|
@ -48,16 +48,12 @@ module _ {c ℓ' : Level} where
|
|||
open Equiv
|
||||
-- open Setoid
|
||||
|
||||
private
|
||||
variable
|
||||
a : Level
|
||||
|
||||
data Maybe (A : Set a) : Set a where
|
||||
data Maybe {a} (A : Set a) : Set a where
|
||||
nothing : Maybe A
|
||||
just : A → Maybe A
|
||||
|
||||
maybeSetoid : ∀ (A : Set a) → Setoid' a a
|
||||
maybeSetoid A = record { Carrier = Maybe A ; _≈_ = eq ; isEquivalence = record { refl = refl' ; sym = sym' ; trans = trans' } }
|
||||
maybeSetoid : ∀ {a} (A : Set a) → Setoid' a a
|
||||
maybeSetoid {a} A = record { Carrier = Maybe A ; _≈_ = eq ; isEquivalence = record { refl = refl' ; sym = sym' ; trans = trans' } }
|
||||
where
|
||||
eq : Maybe A → Maybe A → Set a
|
||||
eq nothing nothing = ⊤ₚ
|
||||
|
@ -83,6 +79,8 @@ module _ {c ℓ' : Level} where
|
|||
trans' {just x} {just y} {just z} = trans-≡
|
||||
|
||||
-- maybe-η :
|
||||
lift-maybe : ∀ {a} (A : Set a) (x : A) → Maybe A
|
||||
lift-maybe {a} A x = just x
|
||||
|
||||
-- TODO this is completely wrong...
|
||||
maybe : Monad Setoids
|
||||
|
|
Loading…
Reference in a new issue