added Iso symbol and edits on trinitarianis/quest3

This commit is contained in:
Jlh18 2021-10-02 12:26:49 +01:00
parent 734b1a6a61
commit 12c7044889
8 changed files with 8 additions and 6 deletions

View File

@ -5,5 +5,7 @@ open import 0Trinitarianism.Preambles.P3
_+_ :
n + m = {!!}
SumOfEven : (x : Σ isEven) (y : Σ isEven) isEven (x .fst + y .fst)
SumOfEven x y = {!!}
{-
Write here you proof that the sum of
even naturals is even.
-}

View File

@ -10,13 +10,13 @@ _+'_ :
zero +' n = n
suc m +' n = suc (m +' n)
SumOfEven : (x : Σ isEven) (y : Σ isEven) isEven (x .fst + y .fst)
SumOfEven : (x y : Σ isEven) isEven (x .fst + y .fst)
SumOfEven x (zero , hy) = x .snd
SumOfEven x (suc (suc y) , hy) = SumOfEven x (y , hy)
{-
Sum'OfEven : (x : Σ isEven) (y : Σ isEven) isEven (x .fst +' y .fst)
Sum'OfEven : (x y : Σ isEven) isEven (x .fst +' y .fst)
Sum'OfEven x (zero , hy) = x .snd
Sum'OfEven x (suc (suc y) , hy) = Sum'OfEven x (y , hy)

View File

@ -2,7 +2,7 @@ module 1FundamentalGroup.Preambles.P2 where
open import Cubical.Data.Nat public
open import Cubical.Data.Int using ( ; pos ; negsuc ; -_) public
open import Cubical.Foundations.Isomorphism public
open import Cubical.Foundations.Isomorphism renaming (Iso to _≅_) public
open import Cubical.Foundations.Prelude renaming (subst to endPt) public
open import Cubical.HITs.S1 using ( ; base ; loop) public
open import 1FundamentalGroup.Quest1Solutions public

View File

@ -12,7 +12,7 @@ pred (pos zero) = negsuc zero
pred (pos (suc n)) = pos n
pred (negsuc n) = negsuc (suc n)
sucIso : Iso
sucIso :
sucIso = iso suc pred s r where
s : section suc pred

Binary file not shown.