Church numerals added
authornipkow
Fri, 15 Jun 2007 09:09:06 +0200
changeset 23396 6d72ababc58f
parent 23395 15fb6637690e
child 23397 2cc3352f6c3c
Church numerals added
src/HOL/ex/NormalForm.thy
--- a/src/HOL/ex/NormalForm.thy	Thu Jun 14 23:04:40 2007 +0200
+++ b/src/HOL/ex/NormalForm.thy	Fri Jun 15 09:09:06 2007 +0200
@@ -116,4 +116,10 @@
 normal_form "(f o id) x"
 normal_form "\<lambda>x. x"
 
+(* Church numerals: *)
+
+normal_form "(%m n f x. m f (n f x)) (%f x. f(f(f(x)))) (%f x. f(f(f(x))))"
+normal_form "(%m n f x. m (n f) x) (%f x. f(f(f(x)))) (%f x. f(f(f(x))))"
+normal_form "(%m n. n m) (%f x. f(f(f(x)))) (%f x. f(f(f(x))))"
+
 end