)]}'
{
  "commit": "913b8517f55a626671aedf477ce7c9b3d8bb5a09",
  "tree": "9a2524bec3bc2adcc73a07caaea413155cc4e792",
  "parents": [
    "8e924b6e15bcc7d151f0f4a6d41ebc9da0672a52"
  ],
  "author": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Tue Nov 17 00:52:20 2026 +0000"
  },
  "committer": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Tue Nov 17 00:52:20 2026 +0000"
  },
  "message": "feat: Euclidean remainder reduction in the grind ring solver\n\nThis PR improves `grind`\u0027s ring solver on commutative rings that do not implement `NoNatZeroDivisors`, where it can now derive equalities it could not derive before. Example:\n\n```lean\nexample [CommRing α] (x y : α) (h₁ : 2*x \u003d y) (h₂ : 3*x \u003d y + 1) : x \u003d 1 :\u003d by\n  grobner\n```\n\nIn 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\u0027*m\u0027` unless `k ∣ k\u0027`. Now, when `|k| \u003c |k\u0027|`, `Poly.simpM?` performs a Euclidean remainder step instead: it subtracts `k\u0027/k` (truncated) copies of the equation and leaves `(k\u0027 % k)*m\u0027`. 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.\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d5933f2c492c6d83bd2a20b5048ab1175d52f3ae",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Arith/CommRing/EqCnstr.lean",
      "new_id": "252fb0284ad2102bca1b03c7dac0eaf95a25581a",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Arith/CommRing/EqCnstr.lean"
    },
    {
      "type": "modify",
      "old_id": "adf5fd49bfb710576479be5a37e52ff2daa5ff21",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Arith/CommRing/RingM.lean",
      "new_id": "6eabbffe4d4a35c0a6577546373f7925e4e29a81",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Arith/CommRing/RingM.lean"
    },
    {
      "type": "modify",
      "old_id": "1350d6c389ebb79b255b40817aa9e5928a691047",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Arith/CommRing/SafePoly.lean",
      "new_id": "c4942a384012cf4150ffc9561cd402cd044100dc",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Arith/CommRing/SafePoly.lean"
    },
    {
      "type": "modify",
      "old_id": "76526e702c55c9c9f4aeebffcb7d72a6e1a97f03",
      "old_mode": 33188,
      "old_path": "tests/elab/grind_ring_2.lean",
      "new_id": "c813dca60dcf97023324d31d4ead5086ace1ab6b",
      "new_mode": 33188,
      "new_path": "tests/elab/grind_ring_2.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6a4d28db11637cdcebb43995f235ff24eb2df7b7",
      "new_mode": 33188,
      "new_path": "tests/elab/grind_ring_euclid.lean"
    },
    {
      "type": "modify",
      "old_id": "603b121d07aa862c510a04b7b18806b264c10da1",
      "old_mode": 33188,
      "old_path": "tests/elab/grind_semiring.lean",
      "new_id": "69e825b159d28e00b8451818c28b2fcbf32f9324",
      "new_mode": 33188,
      "new_path": "tests/elab/grind_semiring.lean"
    }
  ]
}
