Documentation

Lean.Elab.Tactic.Try

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.

    def Lean.Elab.Tactic.Try.checkTactic (savedState : SavedState) (tac : TSyntax `tactic) :

    Executes tac in the saved state. This function is used to validate a tactic before suggesting it.

    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          @[reducible, inline]
          abbrev Lean.Elab.Tactic.Try.withNonTerminal {α : Type} (x : M α) :
          M α
          Equations
          Instances For
            @[reducible, inline]
            abbrev Lean.Elab.Tactic.Try.focus {α : Type} (x : M α) :
            M α
            Equations
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[extern lean_eval_suggest_tactic]
                opaque Lean.Elab.Tactic.Try.evalSuggest (tac : TSyntax `tactic) :
                M (TSyntax `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.
                  Instances For