Home |
Github |
Goal selectors are a category of tacticals that apply a tactic to a specific goal or goals.
There are a number of goal selectors:
all
: Applies the tactic to all goals in focus
in series!
: If only one goal is in focus, apply the tactic. If
not, this tactic failspar
: Applies the tactic to all goals in focus
in parallel. The tactic provided must solve all goals
or do nothing, otherwise this tactic failsn-m
: Applies the tactic to goals with indices between
n
and m
, inclusiveall: simpl.
par: simpl; reflexivity; auto.
!: discriminate.
2-3: auto.
Before
=========================
1/2
True
=========================
2/2
True
all: exact I.
(* or *)
1-2: exact I.
After
No more goals.
Alternatively,
!: exact I.
Error: Expected a single focused goal but 2 goals are focused.