]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/unfold.ma
removed debug saving of "foo.conf.xml"
[helm.git] / helm / matita / tests / unfold.ma
index c91ff18636999638c233c9844a8481c1b3a6f776..d63dd50d46d8a6a8027234ff691815f4a71c537b 100644 (file)
@@ -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.