lean2/tests/lean/tactic5.lean
Leonardo de Moura f9874cd675 feat(library/tactic): add to_tactic_ext, it allows functions that return tactics to be used where a tactic is expected
For example, after this commit, we can write

simple_tac = REPEAT(ORELSE(imp_tactic, conj_tactic)) .. assumption_tactic

instead of

simple_tac = REPEAT(ORELSE(imp_tactic(), conj_tactic())) .. assumption_tactic()

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-29 09:40:21 -08:00

9 lines
No EOL
195 B
Text

(**
simple_tac = REPEAT(ORELSE(imp_tactic, conj_tactic)) .. assumption_tactic
**)
Theorem T4 (a b : Bool) : a => b => a /\ b /\ a := _.
apply simple_tac
done
Show Environment 1.