X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Freplace.ma;h=b5d1eb355514bec21c75b0775e3bfffd01c82b8e;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=d70a7af600a7c08909f87f2e2683cef65ad44e5e;hpb=cec61c8b027b15b98d308cee8900d9cf35a02d28;p=helm.git diff --git a/helm/matita/tests/replace.ma b/helm/matita/tests/replace.ma index d70a7af60..b5d1eb355 100644 --- a/helm/matita/tests/replace.ma +++ b/helm/matita/tests/replace.ma @@ -1,4 +1,19 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + set "baseuri" "cic:/matita/tests/replace/". +include "coq.ma". alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)". alias num (instance 0) = "natural number". alias symbol "eq" (instance 0) = "Coq's leibnitz's equality". @@ -11,8 +26,8 @@ theorem t: \forall x:nat. x * (x + 0) = (0 + x) * (x + x * 0). intro. replace in \vdash (? ? (? ? %) (? % %)) with x. reflexivity. - rewrite < mult_n_O x. - rewrite < plus_n_O x. + rewrite < (mult_n_O x). + rewrite < (plus_n_O x). reflexivity. reflexivity. auto. @@ -20,5 +35,5 @@ qed. (* This test tests "replace in match t" where t contains some metavariables *) theorem t2: 2 + (3 * 4) = (5 + 5) + 2 * 2. - replace in match 5+? with 6 + 4; [reflexivity | reflexivity]. + replace in match (5+?) with (6 + 4); [reflexivity | reflexivity]. qed.