Documentation

Mathlib.Lean.Meta.DiscrTree

Additions to Lean.Meta.DiscrTree #

Inserts a new key into a discrimination tree, but only if it is not of the form #[*] or #[=, *, *, *].

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

    Find keys which match the expression, or some subexpression.

    Note that repeated subexpressions will be visited each time they appear, making this operation potentially very expensive. It would be good to solve this problem!

    Implementation: we reverse the results from getMatch, so that we return lemmas matching larger subexpressions first, and amongst those we return more specific lemmas first.

    partial def Lean.Meta.DiscrTree.Trie.mapArraysM {m : TypeType} [Monad m] {α : Type} {s : Bool} {β : Type} (t : Lean.Meta.DiscrTree.Trie α s) (f : Array αm (Array β)) :

    Apply a monadic function to the array of values at each node in a DiscrTree.

    def Lean.Meta.DiscrTree.mapArraysM {m : TypeType} [Monad m] {α : Type} {s : Bool} {β : Type} (d : Lean.Meta.DiscrTree α s) (f : Array αm (Array β)) :

    Apply a monadic function to the array of values at each node in a DiscrTree.

    Equations
    Instances For
      def Lean.Meta.DiscrTree.mapArrays {α : Type} {s : Bool} {β : Type} (d : Lean.Meta.DiscrTree α s) (f : Array αArray β) :

      Apply a function to the array of values at each node in a DiscrTree.

      Equations
      Instances For