Documentation

Lean.Meta.Tactic.Grind.CollectParams

Given an auto-generated grind tactic script, collect params for single shot finish or top-level grind tactic.

Note: The collector interprets the tactics that grind? and finish? generate. It must be updated whenever they generate a new kind of tactic, in particular one that instantiates theorems or performs case-splits. See Collector.collect.

@[reducible, inline]
Equations
Instances For

    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.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Lean.Meta.Grind.mkGrindOnlyTactics (cfg : TSyntax `Lean.Parser.Tactic.optConfig) (seq : List TGrind) (extraParams : Array TParam := #[]) (ematchLimit : Nat) :
      CoreM (Array (TSyntax `tactic))

      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.

      If seq performs more than ematchLimit E-matching rounds between case-splits, the suggestions set the ematch limit to that number. The search that produced seq may have performed more rounds because case-splits reset the round counter, even if they were pruned from seq.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For