diff --git a/src/Lean/Meta/Tactic/Grind/Types.lean b/src/Lean/Meta/Tactic/Grind/Types.lean index e4d85786a4..c505b4ce6f 100644 --- a/src/Lean/Meta/Tactic/Grind/Types.lean +++ b/src/Lean/Meta/Tactic/Grind/Types.lean @@ -429,4 +429,10 @@ def filterENodes (p : ENode โ†’ GoalM Bool) : GoalM (Array ENode) := do ref.modify (ยท.push n) ref.get +def forEachEqc (f : ENode โ†’ GoalM Unit) : GoalM Unit := do + let nodes โ† getENodes + for n in nodes do + if isSameExpr n.self n.root then + f n + end Lean.Meta.Grind