Complete 1FundamentalGroup/Quest1.agda

This commit is contained in:
germax26 2025-07-21 17:44:34 +10:00
parent 553d41a5a4
commit e6afea6d88
Signed by: germax26
SSH Key Fingerprint: SHA256:N3w+8798IMWBt7SYH8G1C0iJlIa2HIIcRCXwILT5FvM

View File

@ -7,29 +7,44 @@ loopSpace : (A : Type) (a : A) → Type
loopSpace A a = a a loopSpace A a = a a
loop_times : loopSpace base loop_times : loopSpace base
loop n times = {!!} loop pos zero times = refl
loop pos (suc n) times = loop loop (pos n) times
loop negsuc zero times = sym loop
loop negsuc (suc n) times = sym loop loop (negsuc n) times
{-
The definition of suc goes here.
-}
{- suc :
The definition of pred goes here. suc (pos n) = pos (suc n)
-} suc (negsuc zero) = pos zero
suc (negsuc (suc n)) = negsuc n
{- pred :
The definition of sucIso goes here. pred (pos zero) = negsuc zero
-} pred (pos (suc n)) = pos n
pred (negsuc n) = negsuc (suc n)
{- sucIso :
The definition of sucPath goes here. sucIso = iso suc pred leftInv rightInv where
-}
leftInv : section suc pred
leftInv (pos zero) = refl
leftInv (pos (suc n)) = refl
leftInv (negsuc n) = refl
rightInv : retract suc pred
rightInv (pos n) = refl
rightInv (negsuc zero) = refl
rightInv (negsuc (suc n)) = refl
sucPath :
sucPath = isoToPath sucIso
helix : Type helix : Type
helix = {!!} helix base =
helix (loop i) = sucPath i
windingNumberBase : base base windingNumberBase : base base
windingNumberBase = {!!} windingNumberBase p = endPt helix p (pos zero)
windingNumber : (x : ) base x helix x windingNumber : (x : ) base x helix x
windingNumber = {!!} windingNumber x p = endPt helix p (pos zero)