feat: Euclidean remainder reduction in the grind ring solver This PR improves `grind`'s ring solver on commutative rings that do not implement `NoNatZeroDivisors`, where it can now derive equalities it could not derive before. Example: ```lean example [CommRing α] (x y : α) (h₁ : 2*x = y) (h₂ : 3*x = y + 1) : x = 1 := by grobner ``` In these rings, simplification must not multiply an equation by a constant `k ≠ ±1`, so an equation with leading term `k*m` was skipped when rewriting a monomial `k'*m'` unless `k ∣ k'`. Now, when `|k| < |k'|`, `Poly.simpM?` performs a Euclidean remainder step instead: it subtracts `k'/k` (truncated) copies of the equation and leaves `(k' % k)*m'`. The equation is never multiplied by a constant, so the rewrite is safe both when replacing basis equations and in disequality derivations. `Mon.findSimp?` uses the same condition. This is the reduction half of a strong Gröbner basis over `Int`; gcd-polynomials are not added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.