X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fchange.ma;h=4e26d4439610643ff8781e62b2f3231a7531c721;hb=33a02e0b639217093eb63f30169aaa6ac8c78907;hp=199ce3bd8352c8eb2b6d3954b74efef06d89bbe7;hpb=cec61c8b027b15b98d308cee8900d9cf35a02d28;p=helm.git diff --git a/helm/matita/tests/change.ma b/helm/matita/tests/change.ma index 199ce3bd8..4e26d4439 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,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. +