TheHoTTGame/Trinitarianism/Quest1Solutions.agda
2021-07-28 18:02:29 +01:00

20 lines
450 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 Cubical.Core.Everything
open import Cubical.Data.Unit renaming (Unit to )
open import Cubical.Data.Empty
open import Cubical.Data.Nat hiding (isEven)
isEven : Type
isEven zero =
isEven (suc zero) =
isEven (suc (suc n)) = isEven n
existsEven : Σ isEven
existsEven = 4 , tt
div2 : Σ isEven
div2 (0 , tt) = 0
div2 (suc (suc n) , hn) = suc (div2 (n , hn))