Home |
Github |
The repeat
tactical repeatedly executes a tactic until
it either fails or causes no change in the goal. If the tactic provided
succeeds, it will be recursively applied to each generated subgoal.
Be careful: if the input tactic never fails, repeat
will
cause an infinite loop! For example, repeat symmetry
or
repeat idtac
will always result in an infinite loop.
(* Simple usage *)
repeat split.
Before
P, Q, R, S: Prop
=========================
1/1
P /\ Q /\ R /\ S
repeat split.
After
P, Q, R, S: Prop
=========================
1/4
P
=========================
2/4
Q
=========================
3/4
R
=========================
4/4
S