X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Ftests%2Frewrite.ma;h=1321be02ca09cabf1208d7053ae98d8f39dc63aa;hb=66929b8edb58d468a134b648466f3e9c45ba5c0e;hp=580ad13ed524bba3bbf99b98a578879e8b270491;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/matita/tests/rewrite.ma b/helm/software/matita/tests/rewrite.ma index 580ad13ed..1321be02c 100644 --- a/helm/software/matita/tests/rewrite.ma +++ b/helm/software/matita/tests/rewrite.ma @@ -13,7 +13,7 @@ (**************************************************************************) set "baseuri" "cic:/matita/tests/rewrite/". -include "legacy/coq.ma". +include "../legacy/coq.ma". alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)". alias num (instance 0) = "natural number". @@ -62,3 +62,10 @@ theorem test_rewrite_in_hyp2: rewrite < plus_n_O in H H1 \vdash (? ? %). split; [ exact H | exact H1]. qed. + +alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)". +theorem test_rewrite_under_pi: \forall x,y. x = O \to y = O \to x = x \to O = x. +intros 3. +rewrite > H in \vdash (? \to ? ? % % \to ? ? ? %). +intros. reflexivity. +qed.