File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Authors: Gabriel Ebner
55-/
66module
77
8+ public meta import Lean.Meta.DiscrTree.Util
89public meta import Lean.Meta.Tactic.Simp.Main
910public meta import Batteries.Tactic.Lint.Basic
1011public meta import Batteries.Tactic.OpenPrivate
@@ -101,13 +102,9 @@ def isSimpTheorem (declName : Name) : MetaM Bool := do
101102
102103open Lean.Meta.DiscrTree in
103104/-- Returns the list of elements in the discrimination tree. -/
105+ @[deprecated Lean.Meta.DiscrTree.values (since := " 2026-08-25" )]
104106partial def _root_.Lean.Meta.DiscrTree.elements (d : DiscrTree α) : Array α :=
105- d.root.foldl (init := #[]) fun arr _ => trieElements arr
106- where
107- /-- Returns the list of elements in the trie. -/
108- trieElements (arr)
109- | Trie.node vs children =>
110- children.foldl (init := arr ++ vs) fun arr (_, child) => trieElements arr child
107+ d.values
111108
112109/-- Add message `msg` to any errors thrown inside `k`. -/
113110def decorateError (msg : MessageData) (k : MetaM α) : MetaM α := do
You can’t perform that action at this time.
0 commit comments