Added templates and some code done

This commit is contained in:
2026-02-08 12:32:06 +01:00
parent 8bd3e255a0
commit 0fd49a19e9
22 changed files with 448 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
module 0Trinitarianism.Quest1 where
open import 0Trinitarianism.Preambles.P1
isEven : Type
isEven zero =
isEven (suc zero) =
isEven (suc (suc n)) = isEven n
{-
This is a comment block.
Remove this comment block and formulate
'there exists an even natural' here.
-}
_×_ : Type Type Type
A × C = Σ A (λ a C)
div2 : Σ isEven
div2 (zero , snd₁) = zero
div2 (suc (suc fst₁) , snd₁) = suc (div2 (fst₁ , snd₁))