Given an auto-generated grind tactic script, collect params for
single shot finish or top-level grind tactic.
Given a grind tactic sequence, extracts parameters and builds a terminal finish only tactic.
The extraParams are additional parameters (e.g., from the original finish? call) that
should always be included.
Instances For
def Lean.Meta.Grind.mkGrindOnlyTactics (cfg : TSyntax `Lean.Parser.Tactic.optConfig) (seq : List TGrind) (extraParams : Array TParam := #[]) :
Given a grind tactic sequence, extracts parameters and builds a grind only tactics.
It returns at most two. The first tactic uses anchors to restrict the search if applicable.
The second does not restrict the search using anchors. The second option is included only if there
are anchors.
The extraParams are additional parameters (e.g., term arguments from the original grind? call)
that should always be included in the suggestion.