X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fletrec.ma;h=e8e81fa014e0d0df11cefecbcfb015339894de04;hb=5709e333b5abda18a16f83d26f3dc2911b394e28;hp=6712765aa4a2d2e2013c60929084890302be345e;hpb=fa12508ec9af00a9182e30d747884c0425a807c3;p=helm.git diff --git a/helm/matita/tests/letrec.ma b/helm/matita/tests/letrec.ma index 6712765aa..e8e81fa01 100644 --- a/helm/matita/tests/letrec.ma +++ b/helm/matita/tests/letrec.ma @@ -1,9 +1,11 @@ +set "baseuri" "cic:/matita/tests/letrec/". -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 \def + match n with + [ O \Rightarrow m + | (S x) \Rightarrow S (plus x m) ].