Documentation

Mathlib.Lean.Meta.DiscrTree

Additions to Lean.Meta.DiscrTree #

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.

Check if a keys : Array DiscTree.Key is "specific", i.e. something other than [*] or [=, *, *, *].

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