Created
April 11, 2017 12:49
-
-
Save NicolaiNebel/51cbdd403114306c06aadaebeb3ce86a 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 peano_equal where | |
data Nat : Set where | |
z : Nat | |
s : Nat -> Nat | |
record True where | |
constructor T | |
data False where | |
PEq : Nat -> Nat -> Set | |
PEq z z = True | |
PEq (s _) z = False | |
PEq z (s _) = False | |
PEq (s n) (s m) = PEq n m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment