Debian Codegraph @

test-suite/success/BracketsWithGoalSelector.v

raw
1 Goal forall A B, B \/ A -> A \/ B.
2 Proof.
3 intros * [HB | HA].
4 2: {
5 left.
6 exact HA.
7 Fail right. (* No such goal. Try unfocusing with "}". *)
8 }
9 Fail 2: { (* Non-existent goal. *)
10 idtac. (* The idtac is to get a dot, so that IDEs know to stop there. *)
11 1:{ (* Syntactic test: no space before bracket. *)
12 right.
13 exact HB.
14 Fail Qed.
15 }
16 Qed.
17
18 Lemma foo (n: nat) (P : nat -> Prop):
19 P n.
20 Proof.
21 intros.
22 refine (nat_ind _ ?[Base] ?[Step] _).
23 [Base]: { admit. }
24 [Step]: { admit. }
25 Abort.