succ str on N x fib, closes #37

This commit is contained in:
Michael Zhang 2024-10-28 20:20:57 -05:00
parent 4c435f3764
commit 1eb6441aa0

View file

@ -27,8 +27,23 @@ module _ where
open import Data.Fin
open import Data.Product
inc-k-inv : {k : } ( × Fin k) ( × Fin k)
inc-k-inv {k} (n , zero) = (suc n) , opposite zero
inc-k-inv {k} (n , suc k1) = n , inject₁ k1
inc : {k : } ( × Fin k) ( × Fin k)
inc {k} (n , k1) =
let result = inc-k-inv (n , opposite k1) in
(fst result) , opposite (snd result)
_ : inc {k = 3} (5 , from 2) (6 , zero)
_ = refl
-- _ : inc {k = 3} (5 , inject₁ (from 1)) ≡ (6 , zero)
-- _ = {! refl !}
_ : inc {k = 5} (5 , from 4) (6 , zero)
_ = refl
-k-SuccStr : (k : ) ( × Fin k) ( × Fin k)
-k-SuccStr k = SuccStr ( × Fin k) inc where
inc : ( × Fin k) ( × Fin k)
inc (n , k) with suc k
inc (n , k) | x = {! !}
-k-SuccStr k = SuccStr ( × Fin k) inc