X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Funfold.ma;h=d63dd50d46d8a6a8027234ff691815f4a71c537b;hb=6d1af82b714e5c6a7f33534d6832598e72cb23c3;hp=c91ff18636999638c233c9844a8481c1b3a6f776;hpb=6531c263da005e25ea2f58f9ee960acba7857ff6;p=helm.git diff --git a/helm/matita/tests/unfold.ma b/helm/matita/tests/unfold.ma index c91ff1863..d63dd50d4 100644 --- a/helm/matita/tests/unfold.ma +++ b/helm/matita/tests/unfold.ma @@ -14,6 +14,8 @@ set "baseuri" "cic:/matita/unfold". +include "coq.ma". + alias symbol "plus" (instance 0) = "Coq's natural plus". definition myplus \def \lambda x,y. x+y. @@ -27,4 +29,11 @@ theorem trivial: \forall n. S (myplus n n) = myplus (S n) n. unfold myplus. rewrite > lem. reflexivity. -qed. \ No newline at end of file +qed. + +(* This test needs to parse "uno" in the context of the hypothesis H, + not in the context of the goal. *) +theorem t: let uno \def S O in uno + uno = S uno \to uno=uno. + intros. unfold uno in H. + reflexivity. +qed.