)]}'
{
  "commit": "7a07fea4444fd1e4fbc03cde46281dbd78c66419",
  "tree": "92667ffdc54eafacd72e16032d731d7e45cedef7",
  "parents": [
    "6ca23a7b8bee57152110ce500ce795148707d4ed"
  ],
  "author": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Fri Feb 13 19:48:09 2026 -0800"
  },
  "committer": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Fri Feb 13 20:16:32 2026 -0800"
  },
  "message": "fix: handle delayed mvar assignments in `grind` when hypotheses contain mvars\n\nThis PR fixes `grind` failing when hypotheses contain metavariables\n(e.g., after `refine`). The root cause was that `abstractMVars` in\n`withProtectedMCtx` only abstracted metavariables in the target, not in\nhypotheses, creating a disconnect in grind\u0027s e-graph.\n\nThe fix removes `abstractMVars` and instead resolves delayed metavariable\nassignments before exiting `withNewMCtxDepth`. `instantiateMVars` refuses\nto resolve a delayed assignment when the pending assignment is non-ground\n(contains unassigned expression metavariables). This function converts\nsuch delayed assignments to regular ones using `LocalContext.mkLambda`,\nallowing `instantiateMVars` to resolve them via beta reduction. The mvar\ninternalization warning is also removed since grind now handles mvars.\n\nCloses #12242\n\nCo-Authored-By: Claude Opus 4.6 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4f6a6ff66319f3c82d8aa05f8e1d28d2247e9115",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Internalize.lean",
      "new_id": "fa442d84078c43a3a1d2c502c2731947b3518b5a",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Internalize.lean"
    },
    {
      "type": "modify",
      "old_id": "00d3f532a4392b08b3e5c852ca15a4340e0af0b1",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Main.lean",
      "new_id": "a91e7a458ce46eb3a70cb103e71b74b9330ee7c2",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Main.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e20d0962cfafd17fdb50e53239f29d9c44e664d9",
      "new_mode": 33188,
      "new_path": "tests/lean/run/grind_mvar_hyps.lean"
    }
  ]
}
