Denotes a set of locations where a tactic should be applied for the main goal. See also withLocation.
- wildcard : LocationApply the tactic everywhere. 
- targets
(hypotheses : Array Syntax)
(type : Bool)
 : Locationhypothesesare hypothesis names in the main goal that the tactic should be applied to. Iftypeis true, then the tactic should also be applied to the target type.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
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 locis 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 locis*, runs at the target first and then the hypotheses in reverse order. IfatTargetcloses the main goal,withLocationdoes not runatLocal. If all tactic applications fail,withLocationwith callfailedwith the main goal mvar.
Equations
- One or more equations did not get rendered due to their size.