{
 "notes": "Episode 4 of 5. Entry count 38 of 50 items; the 12 left are spawned now (7 batches), so the goal's size is spent. Episode 5: read the results, set finish true, spawn nothing.\n\nTHE GOAL. https://pequalnp.com/join.txt asks agents to prove posted Lean 4 steps of https://github.com/brilliant-hq/pequalnp-proofs. A step counts only when the project's checker accepts a one-file pull request for a step still posted in https://data.pequalnp.com/data/desk/gaps.json. P vs NP is not solved by any of this; the write-up must say so. Nothing of ours has been submitted upstream: a pull request needs the requester's own GitHub sign-in. Keep three states apart: checked locally, submitted (none), accepted upstream (none).\n\nDESK, read by me at updated_at 2026-11-24T00:29:38.226Z: every id below was under gaps, none under checked or withdrawn, each with pr_open 0. Steps close without notice when another author's proof lands, so the write-up must tell the requester to look each id up again before sending (join.txt steps 4 to 6: fork, add the one file at its path, one commit, one pull request).\n\nMY OWN LINT, this episode, of all 17 full files: each contains the desk statement exactly (whitespace apart), and each passes the forbidden-word rule and the own-namespace rule of .github/scripts/outside-guard.mjs as main had it at 00:30Z, except L-gct-122, whose line 106 begins with add_mul (main refuses a line that begins with a name starting add_). The guard is newer than commit e3b1828, where the workers ran the checker, so a verdict there does not cover it.\n\nFILES. sha = first 12 hex of the sha256 of the result's source field, which is the whole file; path is lean/PEqualNP/Outside/L_<id with underscores>.lean.\nA. Checker ACCEPTED (node tools/check-lean.mjs, commit e3b1828, Lean 4.36.0, Mathlib fc4f59e5) by an independent reviewer, file unchanged from its author's: L-meta-448 structural-proof-review/l-meta-448 a476a4a3e06a; L-meta-452 structural-proof-review/l-meta-452 dc76b2cc3301; L-meta-457 structural-proof-review/l-meta-457 3d745aa71d03.\nB. Checker ACCEPTED once, by the author only: L-meta-449 subdivision-paths/l-meta-449 4b5c0e4c6db3; L-meta-451 subdivision-paths/l-meta-451 c37dfbba01a0 (says passed, gives no verdict line); L-meta-469 subdivision-paths/l-meta-469 f8fb1f70acb1; L-meta-461 net-size-and-rank/l-meta-461 b9d52d404e1f; L-meta-462 net-size-and-rank/l-meta-462 8ad2895941f5; L-meta-467 structural-proof-review/l-meta-467 e5217a4aff9b (author's checklemma ACCEPTED at 605dc84; the reviewer could only read it); L-gct-122 net-size-and-rank/l-gct-122 d8f7f2d3d353 (ACCEPTED, but line 106 must change before sending: see size-checker-verdict/l-gct-122).\nC. Built with Mathlib by the author, exact statement and axioms confirmed, no checker verdict: L-meta-455 structural-proof-review/l-meta-455 41c3555b02d0 (reviewer read it, no Lean there); L-meta-1207 witness-proof-review/l-meta-1207 40789c98c0e9 (the reviewer's checker compiled it and was killed for memory at the final replay; circuit replayed on 256 inputs).\nD. Never compiled with Mathlib at entry, each given two independent runs now: L-meta-1208 (6739443ffc44, changed by its reviewer), L-gct-194 (9c04dcb633dd, rewritten by its reviewer), L-meta-456 (0ed42ae8e6d1), L-meta-764 (21e6c9bbd56a), L-meta-765 (85aa4bfa949c).\nNo file: L-meta-464 (cycle length at least 6k+3): no proof written.\n\nNOT PROVABLE AS POSTED (nothing to send; the desk still lists them): L-meta-969 contradicts checked L-meta-970, L-meta-1005 contradicts checked L-meta-1004, L-meta-1023 contradicts checked L-meta-1022, L-meta-949 contradicts checked L-meta-950 (small-circuit-search/l-meta-969, l-meta-1005, l-meta-1023; frontier-cases/l-meta-949). L-meta-618 (prism) and L-meta-619 (wheel with five spokes): exhaustive searches found no AND/OR circuit of at most 8 gates, so each statement seems false; computation only, no Lean refutation.\nRESTRICTED RESULTS, all rows still open: frontier-cases/l-meta-1415 (first mask 0x80000000 of shard 01, built in Lean; nine masks left); frontier-cases/l-gct-219 (built in Lean: P = 120 + 24 F1 + 6 F2 + 2 F3 + F4, and the degree-one and degree-two forms alone vanish on a 9-dimensional space, so the row's sketched route cannot prove it); frontier-cases/l-gct-195 (two-supported-row slice of L-gct-195 and 196, built in Lean); frontier-cases/l-meta-582 (computation and a hand proof only: a 27-gate circuit, none of 26 in two families).\nCLOSED BEFORE WE COULD SEND: L-meta-1406 (our independent proof passed checklemma; another author's file was accepted upstream first); L-gct-228 (withdrawn upstream; our partial result agrees). Both in frontier-subproblems.\n\nDECIDED NOW (12 items). Each item runs the project's checker on main as it stands, holds the file to main's guard, mends what Lean refuses and returns the whole final file in source with localCheck accepted, rejected or not-run.\n- witness-checker-verdict and witness-second-run, paired by item with witness-proof-review: l-meta-1208, l-gct-194.\n- size-checker-verdict (l-meta-764, l-meta-765, l-gct-122) and size-second-run (l-meta-764, l-meta-765), paired with net-size-and-rank.\n- subdivision-checker-verdict and subdivision-second-run, paired with subdivision-paths: l-meta-456.\n- closing-term: l-meta-1389, a new step whose row calls its proof one term (a checked conditional row applied to its checked cuts); its imports were all on main.\nSecond runs exist because about half of the Lean items of episode 3 landed on machines with under 1 GB of free disk and returned no verdict; that is the plane's most common cause of an incomplete result here, not the briefs. I gave L-meta-455, 467 and 1207 no further run: they already built with Mathlib and pass my lint. L-meta-472 and 464 were left: each is a long formalization with small odds in one run.\n\nEPISODE 5. For each of 1208, 194, 764, 765, 456 take the run whose localCheck is accepted (if both are, the one with guard pass and the smaller change); a file is ready only with accepted on exactly the returned source. For 122 use the size-checker-verdict file if accepted, else say the old file needs line 106 reflowed. Look every id up in gaps.json once more if you can. Then finish true. Write-up: a table of gap id, file path, the result holding the full source, its sha256, local state (A, B, C or accepted this episode) and desk state; the files in sending order (A, then newly accepted, then B, then C); each ready file reproduced in full from its result; the requester's steps from join.txt; the not-provable and restricted results with what they do and do not show; and plainly that nothing was submitted or accepted upstream and that no step here is P vs NP itself. The read list holds all 12 new results and the 18 older ones the write-up cites; the drafts of group D are in witness-proof-review, subdivision-paths and net-size-and-rank if a new run returns nothing.",
 "spawn": [
  {
   "name": "witness-checker-verdict",
   "brief": "Get the verdict of the project's own checker on the Lean proof file for {{id}}, mending the file wherever Lean or the project's rules refuse it. Start from the `source` field of the paired result, {{after.result}} (also among your inputs): the whole candidate file. It belongs at {{path}}, its one theorem {{module}} last. What is known: {{known}}\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json. Its `statement` is the exact text the theorem must prove, and its `imports` are the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`). Where Lean rejects a step, mend the proof and leave the statement exactly as posted. {{focus}}\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from the handed one); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: what you changed and why, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-1208",
     "vars": {
      "id": "L-meta-1208",
      "path": "lean/PEqualNP/Outside/L_meta_1208.lean",
      "module": "PEqualNP.Outside.L_meta_1208",
      "known": "Lean has never elaborated it. It follows the checked sibling lean/PEqualNP/Outside/L_meta_1206.lean: lemma keval decided on eight Booleans, then List.ofFn rewritten by simp. Its ten-gate circuit matched all 256 inputs outside Lean.",
      "focus": "Keep the circuit; if the decision is too slow, split it by cases on the inputs as the sibling file does."
     }
    },
    {
     "key": "l-gct-194",
     "vars": {
      "id": "L-gct-194",
      "path": "lean/PEqualNP/Outside/L_gct_194.lean",
      "module": "PEqualNP.Outside.L_gct_194",
      "known": "Lean has never elaborated it. The identity (the sum is 120) was confirmed outside Lean. Lemma main expands 625 terms and closes with ring1; the file carries fallback tactics.",
      "focus": "Begin with lemma main and the entry lemmas e00 to e34, the likeliest to fail, and compare with the checked lean/PEqualNP/Outside/L_gct_193.lean and L_gct_215.lean."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "after": {
    "batch": "witness-proof-review",
    "pairing": "item"
   },
   "minutes": 110
  },
  {
   "name": "size-checker-verdict",
   "brief": "Get the verdict of the project's own checker on the Lean proof file for {{id}}, mending the file wherever Lean or the project's rules refuse it. Start from the `source` field of the paired result, {{after.result}} (also among your inputs): the whole candidate file. It belongs at {{path}}, its one theorem {{module}} last. What is known: {{known}}\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json. Its `statement` is the exact text the theorem must prove, and its `imports` are the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`). Where Lean rejects a step, mend the proof and leave the statement exactly as posted. {{focus}}\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from the handed one); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: what you changed and why, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-764",
     "vars": {
      "id": "L-meta-764",
      "path": "lean/PEqualNP/Outside/L_meta_764.lean",
      "module": "PEqualNP.Outside.L_meta_764",
      "known": "It compiled with core Lean against a stub of the L100 and L153 modules only, never with Mathlib and the project's real Circuit type.",
      "focus": "Expect small elaboration repairs in fun_eq and key; the plan (L153 with k = 3, then L100) is the row's own sketch."
     }
    },
    {
     "key": "l-meta-765",
     "vars": {
      "id": "L-meta-765",
      "path": "lean/PEqualNP/Outside/L_meta_765.lean",
      "module": "PEqualNP.Outside.L_meta_765",
      "known": "It was written by hand and Lean has never run on it.",
      "focus": "The part for size 2 and above follows the row's sketch (L153 with k = 4, then L112). Lemma dep (a circuit with at most one gate depends on at most two inputs) and the pigeonhole in lemma small are the likeliest to need rework."
     }
    },
    {
     "key": "l-gct-122",
     "vars": {
      "id": "L-gct-122",
      "path": "lean/PEqualNP/Outside/L_gct_122.lean",
      "module": "PEqualNP.Outside.L_gct_122",
      "known": "Its author's run of the checker ended ACCEPTED at commit e3b1828, but line 106 begins with add_mul inside a simp list, and main's guard now refuses a line that begins so.",
      "focus": "Join that line to the one above or reorder the list, change nothing else unless a check asks for it, and run the checker on the changed file."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "after": {
    "batch": "net-size-and-rank",
    "pairing": "item"
   },
   "minutes": 110
  },
  {
   "name": "subdivision-checker-verdict",
   "brief": "Get the verdict of the project's own checker on the Lean proof file for {{id}}, mending the file wherever Lean or the project's rules refuse it. Start from the `source` field of the paired result, {{after.result}} (also among your inputs): the whole candidate file. It belongs at {{path}}, its one theorem {{module}} last. What is known: {{known}}\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json. Its `statement` is the exact text the theorem must prove, and its `imports` are the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`). Where Lean rejects a step, mend the proof and leave the statement exactly as posted. {{focus}}\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from the handed one); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: what you changed and why, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-456",
     "vars": {
      "id": "L-meta-456",
      "path": "lean/PEqualNP/Outside/L_meta_456.lean",
      "module": "PEqualNP.Outside.L_meta_456",
      "known": "It compiled with core Lean against a stand-in for SimpleGraph and SimpleGraph.Walk, never with Mathlib.",
      "focus": "Expect repairs where Mathlib's Walk induction and simp lemmas differ from the stand-in, above all in the induction that gives pot(end) at most pot(start) plus the length."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "after": {
    "batch": "subdivision-paths",
    "pairing": "item"
   },
   "minutes": 110
  },
  {
   "name": "witness-second-run",
   "brief": "Get the verdict of the project's own checker on the Lean proof file for {{id}}, mending the file wherever Lean or the project's rules refuse it. Start from the `source` field of the paired result, {{after.result}} (also among your inputs): the whole candidate file. It belongs at {{path}}, its one theorem {{module}} last. What is known: {{known}}\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json. Its `statement` is the exact text the theorem must prove, and its `imports` are the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`). Where Lean rejects a step, mend the proof and leave the statement exactly as posted. {{focus}}\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from the handed one); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: what you changed and why, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-1208",
     "vars": {
      "id": "L-meta-1208",
      "path": "lean/PEqualNP/Outside/L_meta_1208.lean",
      "module": "PEqualNP.Outside.L_meta_1208",
      "known": "Lean has never elaborated it. It follows the checked sibling lean/PEqualNP/Outside/L_meta_1206.lean: lemma keval decided on eight Booleans, then List.ofFn rewritten by simp. Its ten-gate circuit matched all 256 inputs outside Lean.",
      "focus": "Keep the circuit; if the decision is too slow, split it by cases on the inputs as the sibling file does."
     }
    },
    {
     "key": "l-gct-194",
     "vars": {
      "id": "L-gct-194",
      "path": "lean/PEqualNP/Outside/L_gct_194.lean",
      "module": "PEqualNP.Outside.L_gct_194",
      "known": "Lean has never elaborated it. The identity (the sum is 120) was confirmed outside Lean. Lemma main expands 625 terms and closes with ring1; the file carries fallback tactics.",
      "focus": "Begin with lemma main and the entry lemmas e00 to e34, the likeliest to fail, and compare with the checked lean/PEqualNP/Outside/L_gct_193.lean and L_gct_215.lean."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "after": {
    "batch": "witness-proof-review",
    "pairing": "item"
   },
   "minutes": 110
  },
  {
   "name": "size-second-run",
   "brief": "Get the verdict of the project's own checker on the Lean proof file for {{id}}, mending the file wherever Lean or the project's rules refuse it. Start from the `source` field of the paired result, {{after.result}} (also among your inputs): the whole candidate file. It belongs at {{path}}, its one theorem {{module}} last. What is known: {{known}}\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json. Its `statement` is the exact text the theorem must prove, and its `imports` are the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`). Where Lean rejects a step, mend the proof and leave the statement exactly as posted. {{focus}}\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from the handed one); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: what you changed and why, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-764",
     "vars": {
      "id": "L-meta-764",
      "path": "lean/PEqualNP/Outside/L_meta_764.lean",
      "module": "PEqualNP.Outside.L_meta_764",
      "known": "It compiled with core Lean against a stub of the L100 and L153 modules only, never with Mathlib and the project's real Circuit type.",
      "focus": "Expect small elaboration repairs in fun_eq and key; the plan (L153 with k = 3, then L100) is the row's own sketch."
     }
    },
    {
     "key": "l-meta-765",
     "vars": {
      "id": "L-meta-765",
      "path": "lean/PEqualNP/Outside/L_meta_765.lean",
      "module": "PEqualNP.Outside.L_meta_765",
      "known": "It was written by hand and Lean has never run on it.",
      "focus": "The part for size 2 and above follows the row's sketch (L153 with k = 4, then L112). Lemma dep (a circuit with at most one gate depends on at most two inputs) and the pigeonhole in lemma small are the likeliest to need rework."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "after": {
    "batch": "net-size-and-rank",
    "pairing": "item"
   },
   "minutes": 110
  },
  {
   "name": "subdivision-second-run",
   "brief": "Get the verdict of the project's own checker on the Lean proof file for {{id}}, mending the file wherever Lean or the project's rules refuse it. Start from the `source` field of the paired result, {{after.result}} (also among your inputs): the whole candidate file. It belongs at {{path}}, its one theorem {{module}} last. What is known: {{known}}\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json. Its `statement` is the exact text the theorem must prove, and its `imports` are the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`). Where Lean rejects a step, mend the proof and leave the statement exactly as posted. {{focus}}\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from the handed one); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: what you changed and why, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-456",
     "vars": {
      "id": "L-meta-456",
      "path": "lean/PEqualNP/Outside/L_meta_456.lean",
      "module": "PEqualNP.Outside.L_meta_456",
      "known": "It compiled with core Lean against a stand-in for SimpleGraph and SimpleGraph.Walk, never with Mathlib.",
      "focus": "Expect repairs where Mathlib's Walk induction and simp lemmas differ from the stand-in, above all in the induction that gives pot(end) at most pot(start) plus the length."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "after": {
    "batch": "subdivision-paths",
    "pairing": "item"
   },
   "minutes": 110
  },
  {
   "name": "closing-term",
   "brief": "Write the one-file Lean proof of the posted step {{id}} and get the verdict of the project's own checker on it.\n\nSetup. Clone https://github.com/brilliant-hq/pequalnp-proofs at its main branch as it stands when you start, and note the commit. In lean/, install the pinned toolchain and fetch Mathlib's prebuilt cache with `lake exe cache get`. Lean with Mathlib needs about 10 GB of disk, so remove the downloaded cache archives once they are unpacked. The checker needs a writable temporary directory.\n\nThe statement. Read the row for {{id}} in https://data.pequalnp.com/data/desk/gaps.json: its `statement` is the exact text to prove, its `file` ({{path}}) the one file to write, its `module` the name of the one theorem, and its `imports` the only project modules the file may import beside Mathlib. If the id is under `checked` or `withdrawn`, or not under `gaps`, the step is closed: say so and stop.\n\nThe proof. {{plan}} The file is the import lines, then any helpers inside `namespace {{module}}` ... `end {{module}}`, then the one theorem {{module}}, last.\n\nThe check. Save the row's statement to a file and run, from the repository root, `node tools/check-lean.mjs <lean file> <statement file> check`. A time limit of your tools or a killed process is not a verdict: run it again with more time. Hold the file as well to CONTRIBUTING.md and to the rules of .github/scripts/outside-guard.mjs on main (forbidden words, imports, own namespace; one refuses any line that begins with a name starting `add_`).\n\nResult: one JSON object with `gap`; `path`; `module`; `mainCommit`; `deskStatus` (open or closed, with the list's updated_at); `changed` (true when your file differs from a first draft that failed); `localCheck`, one of `accepted` (the checker ended ACCEPTED on exactly the `source` you return), `rejected` (with the checker's reason in your own words) or `not-run` (Lean or Mathlib could not be installed, or the check never finished: say which); `axioms`, the list the checker reports; `guard` (pass, or the rule broken); `source`, the complete final file, even when unchanged or still failing; and `reasoning`: which import gives the conditional statement and which discharges each hypothesis, and for anything still failing, the first Lean error in your own words and the lemma missing.",
   "items": [
    {
     "key": "l-meta-1389",
     "vars": {
      "id": "L-meta-1389",
      "path": "lean/PEqualNP/Outside/L_meta_1389.lean",
      "module": "PEqualNP.Outside.L_meta_1389",
      "plan": "The row's note says the proof is one term: a checked conditional row applied to its checked cuts. At 2026-11-24T00:29Z the ten PEqualNP.Outside modules among its imports were checked and on main, with its two PEqualNP.MetaComplexity imports. Read the final theorem of each imported file, find the one that concludes this statement under hypotheses, and discharge each hypothesis with the import that proves it; where the two differ in form, prove the bridge as a helper lemma."
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 60000
   },
   "minutes": 110
  }
 ],
 "read": [
  "witness-checker-verdict/l-meta-1208",
  "witness-checker-verdict/l-gct-194",
  "size-checker-verdict/l-meta-764",
  "size-checker-verdict/l-meta-765",
  "size-checker-verdict/l-gct-122",
  "subdivision-checker-verdict/l-meta-456",
  "witness-second-run/l-meta-1208",
  "witness-second-run/l-gct-194",
  "size-second-run/l-meta-764",
  "size-second-run/l-meta-765",
  "subdivision-second-run/l-meta-456",
  "closing-term/l-meta-1389",
  "structural-proof-review/l-meta-448",
  "structural-proof-review/l-meta-452",
  "structural-proof-review/l-meta-455",
  "structural-proof-review/l-meta-457",
  "structural-proof-review/l-meta-467",
  "witness-proof-review/l-meta-1207",
  "subdivision-paths/l-meta-449",
  "subdivision-paths/l-meta-451",
  "subdivision-paths/l-meta-469",
  "net-size-and-rank/l-meta-461",
  "net-size-and-rank/l-meta-462",
  "net-size-and-rank/l-gct-122",
  "frontier-cases/l-meta-1415",
  "frontier-cases/l-gct-219",
  "frontier-cases/l-gct-195",
  "frontier-cases/l-meta-582",
  "small-circuit-search/l-meta-618",
  "small-circuit-search/l-meta-619"
 ],
 "cancel": [],
 "wake": {
  "batches": [
   "witness-checker-verdict",
   "size-checker-verdict",
   "subdivision-checker-verdict",
   "witness-second-run",
   "size-second-run",
   "subdivision-second-run",
   "closing-term"
  ],
  "afterMinutes": 300
 },
 "finish": false
}
