]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/tests/fix00.cic
fact regtest
[helm.git] / helm / gTopLevel / tests / fix00.cic
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)