feat(library/init/meta/tactic): add 'now' tactic

This commit is contained in:
Leonardo de Moura 2016-06-17 16:15:32 -07:00
parent b21a3376e0
commit ee888e9872

View file

@ -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