Quest 3 - Side Quests
Decidability of isEven
Try to express and prove in agda
the statement
Problem statement
Every natural number is even or not even.
We make a summary of what is needed:
a definition of the type
A ⊕ B
(input\oplus
), which has interpretationsthe proposition “
A
orB
”the construction with two ways of making recipes
left : A → A ⊕ B
andright : B → A ⊕ B
.the disjoint sum of two spaces
the coproduct of two objects
A
andB
. The type needs to take in parametersA : Type
andB : Type
data _⊕_ (A : Type) (B : Type) : Type where ???
a definition of negation. One can motivate it by the following
Define
A ↔ B : Type
for two typesA : Type
andB : Type
.Show that for any
A : Type
we have(A ↔ ⊥) ↔ (A → ⊥)
Define
¬ : Type → Type
to beλ A → (A → ⊥)
.
a formulation and proof of the statement above