fix: prefer monic rewrites in `Mon.findSimp?` Among the basis equations whose leading monomial divides `m`, `Mon.findSimp?` now prefers those whose leading coefficient divides `k`, and only then the equation with the fewest terms. A rewrite with `k₁ ≠ 1` proves only `k₁ * lhs = rhs`, which is weaker in rings without `NoNatZeroDivisors`. Picking the smallest equation alone broke `grind_sym_field_inv_numeral`, where `2 * 2⁻¹ - 1 = 0` was chosen over `a - 2 * b = 0` and the derivation ended at `2 * (a * 2⁻¹) = 2 * b`. 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.