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 #26: S-5: Cook–Levin: SAT is NP-complete in this model
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/26-s-5-cooklevin-sat-is-np-complete-in-this/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 26 | |
| 3 | +title: "S-5: Cook–Levin: SAT is NP-complete in this model" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:05Z | |
| 7 | +labels: size-l | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** Bring a proof of `NondeterministicPolynomialTimeComplete (fin_encoding_string Bool) SAT` into this tree. Joshua Tan's is on the same Lean and Mathlib (https://github.com/JoshuaTan42/millennium-cook-levin at 879c4835; `PvsNP.cook_levin` in `Pkg.lean`, over `Prog`, `CookLevin`, `Sit`, `D3Fam`, `D3Shift`, `D3Acc`, `D3Init`, `Emb`, `Asm`, `Pre`: about 11,000 lines beside `Comp.lean`). Port it in steps that each merge on their own, in import order, the first being the SAT definition with `sat_in_np`; keep its author named in every file. Leave out its `SatInP.lean` and `Solution.lean`, which state SAT ∈ P with `sorry`: `challenge` fails them, and they are the open problem. Open a route note that lists the steps, and one pull request per step. Needs S-1, and V-7 and V-8 read. | |
| 11 | + | |
| 12 | +**Needs.** A full build of about 11,000 lines of machine constructions; say in your notes how long it took and on what. | |
| 13 | + | |
| 14 | +**Closes when** a pull request stating `NondeterministicPolynomialTimeComplete` for SAT has passed `challenge` and `build`; each step closes its own sub-issue. | |
| 15 | + | |
| 16 | +**What it does not show.** That SAT is or is not in P. With Cook's Proposition 1(c) in the statement file, SAT in P would give P = NP; this piece does not touch that. SAT here is one dense encoding (V-8, S-20). | |