Denotes a set of locations where a tactic should be applied for the main goal. See also withLocation
.
Equations
- One or more equations did not get rendered due to their size.
Equations
def
Lean.Elab.Tactic.withLocation
(loc : Location)
(atLocal : FVarId → TacticM Unit)
(atTarget : TacticM Unit)
(failed : MVarId → TacticM Unit)
:
Runs the given atLocal
and atTarget
methods on each of the locations selected by the given loc
.
- If
loc
is a list of locations, runs at each specified hypothesis (and finally the goal if⊢
is included), and fails if any of the tactic applications fail. - If
loc
is*
, runs at the target first and then the hypotheses in reverse order. IfatTarget
closes the main goal,withLocation
does not runatLocal
. If all tactic applications fail,withLocation
with callfailed
with the main goal mvar.
Equations
- One or more equations did not get rendered due to their size.