| 1 |
(* Test that adding notations that overlap with the tactic grammar does not |
| 2 |
* interfere with Ltac parsing. *) |
| 3 |
|
| 4 |
Module test1. |
| 5 |
Notation "x [ y ]" := (fst (id x, id y)) (at level 11). |
| 6 |
|
| 7 |
Goal True \/ (exists x : nat, True /\ True) -> True. |
| 8 |
Proof. |
| 9 |
intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]]. |
| 10 |
Qed. |
| 11 |
End test1. |
| 12 |
|
| 13 |
Module test2. |
| 14 |
Notation "x [ y ]" := (fst (id x, id y)) (at level 100). |
| 15 |
Goal True \/ (exists x : nat, True /\ True) -> True. |
| 16 |
Proof. |
| 17 |
intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]]. |
| 18 |
Qed. |
| 19 |
End test2. |
| 20 |
|
| 21 |
Module test3. |
| 22 |
Notation "x [ y ]" := (fst (id x, id y)) (at level 1). |
| 23 |
Goal True \/ (exists x : nat, True /\ True) -> True. |
| 24 |
Proof. |
| 25 |
intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]]. |
| 26 |
Qed. |
| 27 |
End test3. |
| 28 |
|
| 29 |
Module test1'. |
| 30 |
Notation "x [ [ y ] ] " := (fst (id x, id y)) (at level 11). |
| 31 |
|
| 32 |
Goal True \/ (exists x : nat, True /\ True) -> True. |
| 33 |
Proof. |
| 34 |
intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]]. |
| 35 |
Qed. |
| 36 |
End test1'. |
| 37 |
|
| 38 |
Module test2'. |
| 39 |
Notation "x [ [ y ] ]" := (fst (id x, id y)) (at level 100). |
| 40 |
Goal True \/ (exists x : nat, True /\ True) -> True. |
| 41 |
Proof. |
| 42 |
intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]]. |
| 43 |
Qed. |
| 44 |
End test2'. |
| 45 |
|
| 46 |
Module test3'. |
| 47 |
Notation "x [ [ y ] ]" := (fst (id x, id y)) (at level 1). |
| 48 |
Goal True \/ (exists x : nat, True /\ True) -> True. |
| 49 |
Proof. |
| 50 |
intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]]. |
| 51 |
Qed. |
| 52 |
End test3'. |