added side quest on different defs of empty
This commit is contained in:
parent
3fe0981c07
commit
166142b14c
24
1FundamentalGroup/Quest0SideQuests/Empty.agda
Normal file
24
1FundamentalGroup/Quest0SideQuests/Empty.agda
Normal file
@ -0,0 +1,24 @@
|
||||
module 1FundamentalGroup.Quest0SideQuests.Empty where
|
||||
|
||||
open import Cubical.Foundations.Prelude
|
||||
open import Cubical.Data.Empty renaming (rec to ⊥Rec)
|
||||
open import Cubical.Foundations.Isomorphism renaming (Iso to _≅_)
|
||||
|
||||
toEmpty : (A : Type) → Type
|
||||
toEmpty A = {!!}
|
||||
|
||||
-- why Type₁
|
||||
pathEmpty : (A : Type) → Type₁
|
||||
pathEmpty A = {!!}
|
||||
|
||||
isoEmpty : (A : Type) → Type
|
||||
isoEmpty A = {!!}
|
||||
|
||||
toEmpty→isoEmpty : (A : Type) → toEmpty A → isoEmpty A
|
||||
toEmpty→isoEmpty A f = {!!}
|
||||
|
||||
isoEmpty→pathEmpty : (A : Type) → isoEmpty A → pathEmpty A
|
||||
isoEmpty→pathEmpty A = {!!}
|
||||
|
||||
pathEmpty→toEmpty : (A : Type) → pathEmpty A → toEmpty A
|
||||
pathEmpty→toEmpty A p = {!!}
|
30
1FundamentalGroup/Quest0SideQuests/EmptySolutions.agda
Normal file
30
1FundamentalGroup/Quest0SideQuests/EmptySolutions.agda
Normal file
@ -0,0 +1,30 @@
|
||||
module 1FundamentalGroup.Quest0SideQuests.EmptySolutions where
|
||||
|
||||
open import Cubical.Foundations.Prelude
|
||||
open import Cubical.Data.Empty renaming (rec to ⊥Rec)
|
||||
open import Cubical.Foundations.Isomorphism renaming (Iso to _≅_)
|
||||
|
||||
toEmpty : (A : Type) → Type
|
||||
toEmpty A = A → ⊥
|
||||
|
||||
-- why Type₁
|
||||
pathEmpty : (A : Type) → Type₁
|
||||
pathEmpty A = A ≡ ⊥
|
||||
|
||||
isoEmpty : (A : Type) → Type
|
||||
isoEmpty A = A ≅ ⊥
|
||||
|
||||
toEmpty→isoEmpty : (A : Type) → toEmpty A → isoEmpty A
|
||||
toEmpty→isoEmpty A f = iso f ⊥Rec rightInv leftInv where
|
||||
|
||||
rightInv : section f ⊥Rec
|
||||
rightInv ()
|
||||
|
||||
leftInv : retract f ⊥Rec
|
||||
leftInv x = ⊥Rec (f x)
|
||||
|
||||
isoEmpty→pathEmpty : (A : Type) → isoEmpty A → pathEmpty A
|
||||
isoEmpty→pathEmpty A = isoToPath
|
||||
|
||||
pathEmpty→toEmpty : (A : Type) → pathEmpty A → toEmpty A
|
||||
pathEmpty→toEmpty A p = J (λ B q → toEmpty B) (λ x → x) (sym p)
|
BIN
_build/2.6.2/agda/1FundamentalGroup/Quest0SideQuests/Empty.agdai
Normal file
BIN
_build/2.6.2/agda/1FundamentalGroup/Quest0SideQuests/Empty.agdai
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user