X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fchange.ma;h=16b6753167000a94134e3a1b32c7b2c4014f04a2;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=ea894c28e2aacb3726fcc8c4f2ee8dbbd52e4f6c;hpb=0e10d3bcb924a36596134edfa3d82431c7794e09;p=helm.git diff --git a/helm/matita/tests/change.ma b/helm/matita/tests/change.ma index ea894c28e..16b675316 100644 --- a/helm/matita/tests/change.ma +++ b/helm/matita/tests/change.ma @@ -1,5 +1,5 @@ (**************************************************************************) -(* ___ *) +(* ___ *) (* ||M|| *) (* ||A|| A project by Andrea Asperti *) (* ||T|| *) @@ -13,9 +13,10 @@ (**************************************************************************) set "baseuri" "cic:/matita/tests/change/". +include "coq.ma". alias num (instance 0) = "natural number". -alias symbol "eq" (instance 0) = "leibnitz's equality". -alias symbol "plus" (instance 0) = "natural plus". +alias symbol "eq" (instance 0) = "Coq's leibnitz's equality". +alias symbol "plus" (instance 0) = "Coq's natural plus". alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)". theorem stupid: @@ -26,4 +27,14 @@ intros. change in \vdash (? ? % ?) with 5. rewrite < H in \vdash (? ? % ?). reflexivity. -qed. \ No newline at end of file +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. +