]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/coercions.ma
Big commit to let Ferruccio try the merge_coercion patch.
[helm.git] / helm / matita / tests / coercions.ma
index ae69759bf4c083fe6ccaf5c4acb2325631d5e69d..aec51ae8b5f699ea51ff97b06bf17fa2adced7fc 100644 (file)
@@ -45,3 +45,20 @@ definition fst \def \lambda x,y:int.x.
 theorem a: fst O one = fst (positive O) (next one).
 reflexivity.
 qed.
+
+definition double: 
+  \forall f:int \to int. pos \to int 
+\def 
+  \lambda f:int \to int. \lambda x : pos .f (nat2int x).
+  
+definition double1: 
+  \forall f:int \to int. pos \to int 
+\def 
+  \lambda f:int \to int. \lambda x : pos .f (pos2nat x).
+
+definition double2: 
+  \forall f:int \to int. pos \to int 
+\def 
+  \lambda f:int \to int. \lambda x : pos .f (nat2int (pos2nat x)).
+  
+  
\ No newline at end of file