]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/test.ma
some more work for ng-coercions
[helm.git] / helm / software / components / ng_kernel / test.ma
index e1c496ca3a028bcfce377f65cb8cbb94bca3f2c3..ff017315c685abc8b3b177565e65e8fe9eb93b23 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-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