]> matita.cs.unibo.it Git - helm.git/commitdiff
fact regtest
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 2 Feb 2004 14:53:48 +0000 (14:53 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 2 Feb 2004 14:53:48 +0000 (14:53 +0000)
helm/gTopLevel/tests/fix00.cic [new file with mode: 0644]

diff --git a/helm/gTopLevel/tests/fix00.cic b/helm/gTopLevel/tests/fix00.cic
new file mode 100644 (file)
index 0000000..f7b196c
--- /dev/null
@@ -0,0 +1,8 @@
+let rec fact =
+  \lambda x:nat.
+    [\lambda x:nat. nat]
+    match x:nat with
+    [ O \Rightarrow 1
+    | (S (x: nat)) \Rightarrow (mult (S x) (fact x)) ]
+in
+(fact 4)