)]}'
{
  "commit": "74e33e876bc7b47f714a166eac1cf9e56a36d43c",
  "tree": "206641ad47460262a14a44a29275915dabb50773",
  "parents": [
    "43906412f3dd8fdb91afe99c2cabc8394ea92470"
  ],
  "author": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Sat Nov 07 22:20:56 2026 +0000"
  },
  "committer": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Sat Nov 07 22:20:56 2026 +0000"
  },
  "message": "fix: classify negative literals in grind by their syntactic type\n\nThis PR fixes the `grind` internal error \"linarith term has not been internalized\" on negative numerals such as `-1 : T`, where `T` unfolds to `Int` and has an ordered `IntModule` instance but no `CommRing` instance.\n\n`getLitKind` unfolded `T` with `whnfD`, so it classified `-1 : T` as a literal and `internalize` skipped the inner `1`. `linarith` reifies `-1 : T` as the negation of `1` and needs that `1`. A negative literal\u0027s type must now be literally `Int`, `Int8`, `Int16`, `Int32`, or `Int64`, as in `isInterpreted`. The `Int8`..`Int64` goals from #16286 already succeed since #16298 and are included as regression tests.\n\nCloses #16286\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a97e0bba154fef9e6260627c562fd19c9ede9143",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Types.lean",
      "new_id": "2571eaba64971129701e3c83a23a8ab10ddc60eb",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Types.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f2fdef2dbe1ead7aa4e6ef98e1298a9d7eb13889",
      "new_mode": 33188,
      "new_path": "tests/elab/16286.lean"
    }
  ]
}
