Documentation

Lean.Meta.Tactic.Grind.EMatch

This module implements a simple E-matching procedure as a backtracking search.

We represent an E-matching problem as a list of constraints.

Instances For

    Choice point for the backtracking search. The state of the procedure contains a stack of choices.

    Instances For

      Context for the E-matching monad.

      Instances For

        State for the E-matching monad

        Instances For
          Equations
          • x.run' = (x { useMT := true, thm := default }).run' { choiceStack := [] }
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              When using the mod-time optimization with multi-patterns, we must start ematching at each different pattern. That is, if we have [p₁, p₂, p₃], we must execute

              Equations
              Instances For

                Performs one round of E-matching, and returns new instances.

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

                  Performs one round of E-matching, and assert new instances.

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