A very simple try?
tactic implementation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
evalSuggest
is a evalTactic
variant that returns suggestions after executing a tactic built using
combinatiors such as first
, attempt_all
, <;>
, ;
, and try
.
Executes tac
in the saved state. This function is used to validate a tactic before suggesting it.
Equations
- Lean.Elab.Tactic.Try.checkTactic savedState tac = do let currState ← Lean.saveState savedState.restore tryFinally (Lean.Elab.Tactic.evalTactic tac.raw) currState.restore
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible, inline]
Equations
Instances For
- root : TSyntax `tactic
- terminal : Bool
- config : Try.Config
Instances For
@[reducible, inline]
Instances For
Equations
- One or more equations did not get rendered due to their size.
@[reducible, inline]
Equations
- Lean.Elab.Tactic.Try.withNonTerminal x = withReader (fun (c : Lean.Elab.Tactic.Try.Ctx) => { root := c.root, terminal := false, config := c.config }) x
Instances For
@[reducible, inline]
Equations
- Lean.Elab.Tactic.Try.focus x ctx = Lean.Elab.Tactic.focus (x ctx)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[extern lean_eval_suggest_tactic]
evalAndSuggest
frontend
def
Lean.Elab.Tactic.Try.evalAndSuggest
(tk : Syntax)
(tac : TSyntax `tactic)
(config : Try.Config :=
{ main := true, name := true, targetOnly := false, max := 8, missing := false, only := true, harder := false,
merge := true })
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Helper functions
grind
tactic syntax generator based on collected information.
Other generators
Function induction generators
Main code
Equations
- One or more equations did not get rendered due to their size.