Created
March 8, 2015 06:20
-
-
Save mbrcknl/9e606afc1f41d780d376 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
data bool : Set where | |
tt : bool | |
ff : bool | |
data ℕ : Set where | |
zero : ℕ | |
succ : ℕ → ℕ | |
_+_ : ℕ → ℕ → ℕ | |
zero + n = n | |
succ m + n = succ (m + n) | |
_<_ : ℕ → ℕ → bool | |
m < zero = ff | |
zero < succ n = tt | |
succ m < succ n = m < n | |
data _≡_ {A : Set} (x : A) : A → Set where | |
refl : x ≡ x | |
widen : ∀ m n p → (m < n) ≡ tt → (m < (n + p)) ≡ tt | |
widen m zero p () | |
widen zero (succ n) p refl = refl | |
widen (succ m) (succ n) p e = widen m n p e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment