fix: missing zero check when propagating implied equalities in `grind ring` This PR fixes a panic in `grind ring` when propagating implied equalities in rings without `NoNatZeroDivisors`, such as `BitVec n`. `propagateEqs` treats `a` and `b` as candidates for `a = b` when `k*a` and `k*b` simplify to the same polynomial. It then simplified `a - b` but never checked that the result was `0`. In `BitVec 2` with `2*x = 0`, `x` and `x + 2` are such candidates, but `(x + 2) - x = 2`. The fix skips the pair unless `a - b` reduces to `0`. Closes #15525 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.