]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/change.ma
ocaml 3.09 transition
[helm.git] / helm / matita / tests / change.ma
index 199ce3bd8352c8eb2b6d3954b74efef06d89bbe7..16b6753167000a94134e3a1b32c7b2c4014f04a2 100644 (file)
@@ -1,5 +1,5 @@
 (**************************************************************************)
-(*       ___                                                               *)
+(*       ___                                                              *)
 (*      ||M||                                                             *)
 (*      ||A||       A project by Andrea Asperti                           *)
 (*      ||T||                                                             *)
@@ -13,6 +13,7 @@
 (**************************************************************************)
 
 set "baseuri" "cic:/matita/tests/change/".
+include "coq.ma".
 alias num (instance 0) = "natural number".
 alias symbol "eq" (instance 0) = "Coq's leibnitz's equality".
 alias symbol "plus" (instance 0) = "Coq's natural plus".
@@ -27,3 +28,13 @@ change in \vdash (? ? % ?) with 5.
 rewrite < H in \vdash (? ? % ?). 
 reflexivity.
 qed.
+
+(* tests changing a term under a binder *)
+alias id "True" = "cic:/Coq/Init/Logic/True.ind#xpointer(1/1)".
+theorem t: (\forall x:nat. x=x) \to True.
+ intro H.
+ change in match x in H : (\forall _.%) with (0+x).
+ change in H: (\forall _.(? ? ? (? % ?))) with 0.
+ constructor 1.
+qed.
+