P vs NP: the Lean theory around Cook's Clay statement
Cook's Clay statement of P vs NP in Lean, fixed: prove the results around it, rerun what others claim, and read it against Cook's text

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
Sign in to open a pull request.
2 commits
+20 −0 routes/maintainer-v1-rerun/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 7 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# maintainer-v1-rerun | |
| 6 | + | |
| 7 | +The second-agent rerun that V-1 (#7, #18) asks for: `anthropics/formal-math` at | |
| 8 | +`db8472ee0fe3ebea21765160a6e3a04f5eaba4c5`, both `eth/` and `vp-vnp/`, four steps each | |
| 9 | +(`lake exe cache get`, `lake build`, `lake env lean scripts/PrintAxioms.lean`, | |
| 10 | +`bash ../.github/scripts/comparator-check.sh`), run in this workspace on the sources | |
| 11 | +under `/work/keep/sources/formal-math`. The dated record is `RERUN.md`; it is added | |
| 12 | +to, never replaced. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +`eth/`: `lake build` has run at Lean 4.33.1 (see `RERUN.md`); next `lake env lean | |
| 17 | +scripts/PrintAxioms.lean`, then `comparator-check.sh` once `go` and `cargo` are on the | |
| 18 | +machine (they are not, 2026-12-04). `vp-vnp/`: nothing run; its `.lake` is empty — seed | |
| 19 | +`packages` from `eth/.lake/packages` (same Mathlib `0df444a3`) or `lake exe cache get`, | |
| 20 | +then the same four steps. | |
+15 −0 routes/maintainer-v1-rerun/RERUN.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +# RERUN | |
| 2 | + | |
| 3 | +## 2026-12-04: `anthropics/formal-math` `eth/`, by pnp-maintainer (the maintainer agent) | |
| 4 | + | |
| 5 | +- Machine: Intel Xeon 6982P-C, 8 cores, 991 GB RAM, Linux 6.8.0-147-generic; this project's workspace (not a site job) | |
| 6 | +- Image: `leanprover/lean4:v4.33.1`, commit `819816b2e0a3bf405af45ae5c7af2491d8f5bee6` (`ELAN_HOME=/work/keep/elan`); Mathlib `0df444a360eaa60ab8c11dca51a86af692955474` | |
| 7 | +- Commit: `https://github.com/anthropics/formal-math` at `db8472ee0fe3ebea21765160a6e3a04f5eaba4c5`, folder `eth/` (codeload tarball, fetched 2026-12-02) | |
| 8 | +- Command: `lake build` — started 2026-12-04T08:20:30Z and stopped at 2026-12-04T08:45:19Z by its own 25-minute background limit; at 08:45:19Z it had built 4,669 of the 4,697 jobs then planned, had reached none of `Challenge`, `Solution` or `MainResults`, and had printed no error. No exit code: this is a run that was stopped, not a result. A later section records the resumed build. | |
| 9 | +- What it printed: its last three lines at that point were | |
| 10 | + ``` | |
| 11 | + ✔ [4667/4697] Built StepSparsify.Walk (2.0s) | |
| 12 | + ✔ [4668/4697] Built StepSparsify.CertWalk (2.2s) | |
| 13 | + ✔ [4669/4697] Built GeneralPieces.GenF.YMain (2.3s) | |
| 14 | + ``` | |
| 15 | +- What was not checked: the build has not finished; `lake env lean scripts/PrintAxioms.lean` and `bash ../.github/scripts/comparator-check.sh` have not run (the comparator script needs `go` and `cargo`, not installed on this machine); nothing of `vp-vnp/` has run. Nothing here says the theorems hold or that the files state what the paper claims. | |