TheHoTTGame/Trinitarianism/Quest1Solutions.agda
2021-07-30 12:22:22 +01:00

19 lines
382 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Trinitarianism.Quest1Solutions where
open import Trinitarianism.Preambles.P1
isEven : Type
isEven zero =
isEven (suc zero) =
isEven (suc (suc n)) = isEven n
existsEven : Σ isEven
existsEven = 4 , tt
_×_ : Type Type Type
A × C = Σ A (λ a C)
div2 : Σ isEven
div2 (0 , tt) = 0
div2 (suc (suc n) , hn) = suc (div2 (n , hn))