Documentation

Lean.Meta.DiscrTree.Basic

@[instance_reducible]
Equations
@[reducible, inline]

A chain or node, as returned by Trie.force.

Equations
Instances For
    @[inline]

    The node t stands for as a chain or node: merges a lazy node and unfolds the first key of a suffix.

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

          Helper function for converting an entry (i.e., Array Key) to the discrimination tree into MessageData that is more user-friendly. We use this function to implement diagnostic information.

          Equations
          Instances For
            def Lean.Meta.DiscrTree.insertKeyValue {α : Type} [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) :
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def Lean.Meta.DiscrTree.moduleRootsOf {α : Type} [BEq α] (entries : Array (Array Key × α)) :

              Inserts the given entries in order and returns the root of the resulting tree in the form expected by ofModuleRoots, e.g. for storing the tree of a single module in its olean. Root keys are listed in the order of their last insertion.

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

                Merges per-module trees, given as moduleRootsOf in module order, into a tree equal to the one obtained by inserting the entries of all modules in this order, down to the iteration order of its root. Only the root is built eagerly: subtrees occurring in a single module are shared with the given tries, and nodes occurring in several modules are merged on first access.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[deprecated Lean.Meta.DiscrTree.insertKeyValue (since := "2026-01-02")]
                  def Lean.Meta.DiscrTree.insertCore {α : Type} [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) :
                  Equations
                  Instances For

                    Returns all entries that have exactly the provided key sequence.

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