added side quest on different defs of empty

This commit is contained in:
Jlh18 2021-09-27 14:01:09 +01:00
parent 3fe0981c07
commit 166142b14c
4 changed files with 54 additions and 0 deletions

View 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 = {!!}

View 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)