test-suite/success/GenerateGoalNames.v
raw| 1 | (* -*- mode: coq -*- *) |
| 2 | |
| 3 | Set Generate Goal Names. |
| 4 | |
| 5 | Axiom A : forall (x : nat) P, x = x -> P. |
| 6 | |
| 7 | (* eapply *) |
| 8 | Goal 0 = 0. |
| 9 | Proof. |
| 10 | eapply A. |
| 11 | [x]: exact 0. |
| 12 | reflexivity. |
| 13 | Qed. |
| 14 | |
| 15 | (* destruct *) |
| 16 | Goal forall A, A \/ A -> A. |
| 17 | Proof. |
| 18 | intros A H. |
| 19 | destruct H. |
| 20 | [or_introl]: assumption. |
| 21 | [or_intror]: assumption. |
| 22 | Qed. |
| 23 | |
| 24 | (* induction *) |
| 25 | Goal forall x : list nat, x = x. |
| 26 | Proof. |
| 27 | induction x. |
| 28 | [nil]: reflexivity. |
| 29 | [cons]: reflexivity. |
| 30 | Qed. |