]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/letrec.ma
Using the top-level syntax for let-rec definitions.
[helm.git] / helm / matita / tests / letrec.ma
index 6712765aa4a2d2e2013c60929084890302be345e..464f7fa21524f9be0f97feccdb1e176609bf51e7 100644 (file)
@@ -1,9 +1,9 @@
 
-definition plus: nat \to nat \to nat \def
-  let rec plus (n,m:nat) \def
-    match n with
-    [ O \Rightarrow m
-    | (S x) \Rightarrow S (plus x m) ]
-  in
-  plus.
+alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
+alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)".
+alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
 
+let rec plus n m : nat \def
+ match n with
+  [ O \Rightarrow m
+  | (S x) \Rightarrow S (plus x m) ].