]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/replace.ma
ported to new syntactic requirement about terms being surrounded by parens
[helm.git] / helm / matita / tests / replace.ma
index 6d62e41d19179dccd5c7cb78efe10575f42a068c..8504b6c160c78eb5298c5d276fa3cc80b2109933 100644 (file)
@@ -26,8 +26,8 @@ theorem t: \forall x:nat. x * (x + 0) = (0 + x) * (x + x * 0).
  intro.
  replace in \vdash (? ? (? ? %) (? % %)) with x.
  reflexivity.
- rewrite < mult_n_O x.
- rewrite < plus_n_O x.
+ rewrite < (mult_n_O x).
+ rewrite < (plus_n_O x).
  reflexivity.
  reflexivity.
  auto.
@@ -35,5 +35,5 @@ 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].
+ replace in match 5+? with (6 + 4); [reflexivity | reflexivity].
 qed.