aboutsummaryrefslogtreecommitdiff
path: root/peano.lisp
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-08-07 15:13:20 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-08-07 15:13:20 +0900
commit3d0dc785b63534feb515d3b8eb8dbb25abbfaced (patch)
treeca8de16987c6b15ba193357a4f5b80ca9582354e /peano.lisp
parentb60a5fa9bfd8570bb5878492db85a9814f71e028 (diff)
peano: Add nat< function.
Diffstat (limited to 'peano.lisp')
-rw-r--r--peano.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/peano.lisp b/peano.lisp
index 7d042f2..8fedc56 100644
--- a/peano.lisp
+++ b/peano.lisp
@@ -44,6 +44,12 @@
(equal (nat= x y)
(equal x y))))
+(defmacro nat< (x y)
+ `(member-equal ,x ,y))
+
+(defthm nat<-succ
+ (nat< x (succ x)))
+
(defun nat+ (x y)
(if (z? y)
x