diff options
-rw-r--r-- | peano.lisp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |