)]}'
{
  "commit": "2f9359c2acda6b46a12491aab39b2365341c62a6",
  "tree": "286e09c69298229889f98004012ccdf88c5af0f5",
  "parents": [
    "d477721790777b33c68925f25a92ee9112386dae"
  ],
  "author": {
    "name": "Sebastian Graf",
    "email": "sgraf1337@gmail.com",
    "time": "Mon Jun 15 09:32:08 2026 +0000"
  },
  "committer": {
    "name": "Sebastian Graf",
    "email": "sgraf1337@gmail.com",
    "time": "Mon Jun 15 09:32:08 2026 +0000"
  },
  "message": "refactor: clean up the Std.Internal.Do weakest-precondition library\n\nThis PR refactors the internal `Std.Internal.Do` specification library. The weakest-precondition application lemmas are renamed to follow the naming convention: the transformer lemmas `\u003cT\u003e.apply_wp` become `\u003cT\u003e.wp_apply_eq`, and the `WPMonad.\u003cop\u003e_\u003cinst\u003e_wp` family becomes `WPMonad.wp_\u003cop\u003e_\u003cinst\u003e_apply_eq` when the conclusion is an equality and `WPMonad.le_wp_\u003cop\u003e_\u003cinst\u003e_apply` when it is an entailment. The `Triple` entailment field is renamed from `rel_wp` to `le_wp`. The loop-invariant types `Invariant`, `StringInvariant`, and `StringSliceInvariant` take their cursor and accumulator arguments curried rather than as a single tuple.\n\nThe precondition-generic monad spec lemmas (`Spec.pure\u0027`, `Spec.bind\u0027`, `Spec.map\u0027`, `Spec.seq\u0027`) are removed in favour of the `Triple` rules: `Triple.map` and `Triple.seq` are added alongside the existing `Triple.pure` and `Triple.bind`, and the `@[spec]` lemmas `Spec.pure`/`bind`/`map`/`seq` derive from them.\n\nIt also adds supporting `Prop`- and function-lattice order lemmas (`le_of_right`, `le_of_imp_top_le`, `true_le_of_top_le`, `le_of_forall_le`, `top_le_of_forall_top_le`), `while`-loop specifications (`WhileInvariant`, `WhileVariant`, `Spec.whileM`, `Spec.forIn_loop`), and the early-return invariant combinators `Invariant.withEarlyReturnNewDo`, `StringInvariant.withEarlyReturnNewDo`, and `StringSliceInvariant.withEarlyReturnNewDo`.\n\nCo-authored-by: volodeyka \u003cvovaglad00@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bc526e5b6dcd63ac651c5173383717df43703297",
      "old_mode": 33188,
      "old_path": "src/Lean/Elab/Tactic/Do/Attr.lean",
      "new_id": "38fabe5d51b3cda46f5593ab95304d1f6651db49",
      "new_mode": 33188,
      "new_path": "src/Lean/Elab/Tactic/Do/Attr.lean"
    },
    {
      "type": "modify",
      "old_id": "826e717ab2df3ac5781223537a5ec7e446832ba5",
      "old_mode": 33188,
      "old_path": "src/Std/Internal/Do/Order/Basic.lean",
      "new_id": "6d0b715e15fbdd69eccc938415ce110f5ae2584e",
      "new_mode": 33188,
      "new_path": "src/Std/Internal/Do/Order/Basic.lean"
    },
    {
      "type": "modify",
      "old_id": "054da1fb0fe3a243585f277b98540a679b38da56",
      "old_mode": 33188,
      "old_path": "src/Std/Internal/Do/Triple/Basic.lean",
      "new_id": "e4e05d63a573be2f7538a83abae50937302f85be",
      "new_mode": 33188,
      "new_path": "src/Std/Internal/Do/Triple/Basic.lean"
    },
    {
      "type": "modify",
      "old_id": "6bcce3178acdb248d92fa7fbc17c8b393c9f069a",
      "old_mode": 33188,
      "old_path": "src/Std/Internal/Do/Triple/SpecLemmas.lean",
      "new_id": "3fa6b37102694af07e5baadd7483b91ce000809c",
      "new_mode": 33188,
      "new_path": "src/Std/Internal/Do/Triple/SpecLemmas.lean"
    },
    {
      "type": "modify",
      "old_id": "970b765d526f82cf77672477a8cda7019865a068",
      "old_mode": 33188,
      "old_path": "src/Std/Internal/Do/WP/Basic.lean",
      "new_id": "2f42f396fc5fe338e8a061ef7ee467658da0f2dd",
      "new_mode": 33188,
      "new_path": "src/Std/Internal/Do/WP/Basic.lean"
    },
    {
      "type": "modify",
      "old_id": "e48ff0d22d888b6a794929c7f4a4b2e785c57d11",
      "old_mode": 33188,
      "old_path": "src/Std/Internal/Do/WP/Lemmas.lean",
      "new_id": "67ad26f6986ead3b136b85314e949ae96f7b27a1",
      "new_mode": 33188,
      "new_path": "src/Std/Internal/Do/WP/Lemmas.lean"
    }
  ]
}
