Created
June 5, 2015 08:01
-
-
Save juxtin/2a9602c2193cc0a3dbbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module LearnYouAn where | |
data ℕ : Set where | |
zero : ℕ | |
suc : ℕ → ℕ | |
_+_ : ℕ → ℕ → ℕ | |
zero + zero = zero | |
zero + n = n | |
(suc n) + n′ = suc (n + n′) | |
data _even : ℕ → Set where | |
ZERO : zero even | |
STEP : ∀ x → x even → suc (suc x) even | |
proof₁ : suc (suc (suc (suc zero))) even | |
proof₁ = STEP (suc (suc zero)) (STEP zero ZERO) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment