X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2Ftest.ma;h=ff017315c685abc8b3b177565e65e8fe9eb93b23;hb=5d0d8107649b9264ebe7d8ff2c69bf777179b0d2;hp=e1c496ca3a028bcfce377f65cb8cbb94bca3f2c3;hpb=1859726f40a0a14c2e1b4f1b44041ce1e552f729;p=helm.git diff --git a/helm/software/components/ng_kernel/test.ma b/helm/software/components/ng_kernel/test.ma index e1c496ca3..ff017315c 100644 --- a/helm/software/components/ng_kernel/test.ma +++ b/helm/software/components/ng_kernel/test.ma @@ -12,12 +12,33 @@ (* *) (**************************************************************************) -include "nat/nat.ma". +include "nat/plus.ma". +(* let rec f n := match n with [ O => O | S m => let rec g x := match x with [ O => f m - | S q => g q] in g m]. \ No newline at end of file + | S q => + let rec h y := + match y with + [ O => f m + g q + | S w => h w] + in + h q] + in + g m]. +*) + +let rec f n := + match n with + [ O => O + | S m => g m + ] +and g m := + match m with + [ O => O + | S n => f n + ]. \ No newline at end of file