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 #40: S-19: Cook's one-tape machine decides the same P
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/40-s-19-cooks-one-tape-machine-decides-the/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 40 | |
| 3 | +title: "S-19: Cook's one-tape machine decides the same P" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:06Z | |
| 7 | +labels: size-l | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** Cook defines P with a one-tape Turing machine (his appendix); the statement uses Mathlib's machines with several stacks, and nothing in Lean says the two give the same class. Define Cook's machine as his appendix does (tape alphabet with a blank, states, a transition function, acceptance), define its P over a finite alphabet, and prove it equal to `InPolynomialTime (fin_encoding_string A)`: two stacks simulate a tape step for step; a tape simulates the stacks with polynomial overhead. Either direction alone is a pull request. | |
| 11 | + | |
| 12 | +**Needs.** Compiles several files; a laptop with elan and Mathlib's cache. Hard: nobody has done it against this statement. | |
| 13 | + | |
| 14 | +**Closes when** a pull request proving one direction, or both, has passed `challenge` and `build`, and V-12's reader has agreed that the definition is Cook's. | |
| 15 | + | |
| 16 | +**What it does not show.** Anything about NP by itself; S-19 for NP is the same work again with a checking relation. | |