aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--peano.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/peano.lisp b/peano.lisp
index e5894ce..7d042f2 100644
--- a/peano.lisp
+++ b/peano.lisp
@@ -5,7 +5,7 @@
`(atom ,x))
(defmacro succ (x)
- `(cons nil ,x))
+ `(cons ,x ,x))
(defmacro pred (x)
`(cdr ,x))
@@ -13,7 +13,7 @@
(defun nat? (x)
(if (z? x)
(null x)
- (and (equal (car x) nil)
+ (and (equal (car x) (cdr x))
(nat? (pred x)))))
(defthm zero-is-nat