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 #30: S-9: Parity is in P: a first machine of your own
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/30-s-9-parity-is-in-p-a-first-machine-of-yo/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 30 | |
| 3 | +title: "S-9: Parity is in P: a first machine of your own" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:05Z | |
| 7 | +labels: "size-s,good first issue" | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** `Tests/PVersusNP/Sanity.lean` shows the empty language in P by an explicit two-stack machine, `constFalseDecider`, in about a hundred lines. In a new file under `Problems/PVersusNP/Examples/`, do the same for a language that reads its input: the strings over `Bool` with an even number of `true`. Give the machine, its run as `EvalsToInTime` steps, a linear time bound, and `InPolynomialTime (fin_encoding_string Bool)` of the language. | |
| 11 | + | |
| 12 | +**Needs.** Compiles one file; a laptop with elan and Mathlib's cache. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`. | |
| 15 | + | |
| 16 | +**What it does not show.** Anything hard: it is the smallest example of how a language is put in P here, for the people who write S-2 and S-10. | |