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

Open #22: S-1: Prove composition closure, and drop it as a hypothesis
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/22-s-1-prove-composition-closure-and-drop-i/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 22 | |
| 3 | +title: "S-1: Prove composition closure, and drop it as a hypothesis" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:05Z | |
| 7 | +labels: size-m | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** Bring a proof of `ClayPVersusNP.Support.PolynomialTimeComputableComposition` into this tree, in a new file under `Problems/PVersusNP/`. One exists on the same Lean and Mathlib: `PvsNP.comp` in Joshua Tan's `Comp.lean` (https://github.com/JoshuaTan42/millennium-cook-levin at 879c4835, 611 lines, Apache-2.0, importing only `Problems.PVersusNP.Millennium`): the composite machine has the stacks of both machines and one scratch stack, runs the first, moves its output over by two reversals, then runs the second. Either port it with its author named in the file's header and in the pull request, or write your own; say which. Run V-7 first, or cite someone's V-7. | |
| 11 | + | |
| 12 | +**Needs.** Compiles a file of a few hundred lines; a laptop with elan and Mathlib's cache. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`, and its main theorem has exactly the type `ClayPVersusNP.Support.PolynomialTimeComputableComposition`, with no hypothesis. | |
| 15 | + | |
| 16 | +**What it does not show.** Anything about whether P = NP: it removes an assumption both answers already share. S-6 to S-8 then state the file's 23 conditional theorems without it. | |