feat(library/init/meta/tactic): add 'now' tactic
This commit is contained in:
parent
b21a3376e0
commit
ee888e9872
1 changed files with 5 additions and 0 deletions
|
|
@ -202,4 +202,9 @@ meta_definition all_goals (tac : tactic unit) : tactic unit :=
|
|||
do gs ← get_goals,
|
||||
all_goals_core tac gs []
|
||||
|
||||
meta_definition now : tactic unit :=
|
||||
do n ← num_goals,
|
||||
if n = 0 then skip
|
||||
else fail "now tactic failed, there are unsolved goals"
|
||||
|
||||
end tactic
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue