X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Freplace.ma;h=6d62e41d19179dccd5c7cb78efe10575f42a068c;hb=91a095f0686ee569ba035e4e30c7d071588cb8e7;hp=7117d5b8210b29f4b64d34628eba978f6999d96e;hpb=b27b5d3efc902b2bc1ffddfb7b9dbd724741c661;p=helm.git diff --git a/helm/matita/tests/replace.ma b/helm/matita/tests/replace.ma index 7117d5b82..6d62e41d1 100644 --- a/helm/matita/tests/replace.ma +++ b/helm/matita/tests/replace.ma @@ -1,9 +1,24 @@ +(**************************************************************************) +(* ___ *) +(* ||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) = "leibnitz's equality". -alias symbol "plus" (instance 0) = "natural plus". -alias symbol "times" (instance 0) = "natural times". +alias symbol "eq" (instance 0) = "Coq's leibnitz's equality". +alias symbol "plus" (instance 0) = "Coq's natural plus". +alias symbol "times" (instance 0) = "Coq's natural times". alias id "mult_n_O" = "cic:/Coq/Init/Peano/mult_n_O.con". alias id "plus_n_O" = "cic:/Coq/Init/Peano/plus_n_O.con". @@ -17,3 +32,8 @@ theorem t: \forall x:nat. x * (x + 0) = (0 + x) * (x + x * 0). reflexivity. auto. 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]. +qed.