Documentation

Lean.Meta.KExprMap

structure Lean.Meta.KExprMap (α : Type) :

A mapping that identifies definitionally equal expressions. We implement it as a mapping from HeadIndex to AssocList Expr α.

Remark: this map may be quite inefficient if there are many HeadIndex collisions.

Instances For
Equations
def Lean.Meta.KExprMap.find? {α : Type} (m : KExprMap α) (e : Expr) :

Return some v if there is an entry e ↦ v in m.

Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.KExprMap.insert {α : Type} (m : KExprMap α) (e : Expr) (v : α) :

Insert e ↦ v into m

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