]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/unfold.ma
bugfix: avoid losing attributes on boxes which have a single children
[helm.git] / helm / matita / tests / unfold.ma
index c91ff18636999638c233c9844a8481c1b3a6f776..4af22f1b97c03796db9dc34dc34fd94099bc16b5 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,9 @@ 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.