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 #39: S-18: One alphabet is enough: P = NP over Bool gives it over every alphabet
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/39-s-18-one-alphabet-is-enough-p-np-over-bo/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 39 | |
| 3 | +title: "S-18: One alphabet is enough: P = NP over Bool gives it over every alphabet" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:06Z | |
| 7 | +labels: size-l | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** `ClayPVersusNP` quantifies over every finite alphabet with at least two symbols; Cook fixes one and remarks that the answer does not depend on it. The statement file does not prove that remark. Monteverde does, but through cslib-frontier's multi-tape machines, a package this project's build does not take. Prove it here, in this model alone: `ClayPVersusNP ↔ (∀ L, InPolynomialTime (fin_encoding_string Bool) L ↔ InNondeterministicPolynomialTime (fin_encoding_string Bool) L)`, by coding each symbol of a finite alphabet as a block of bits, with machines that encode and decode in polynomial time. | |
| 11 | + | |
| 12 | +**Needs.** Compiles several files of machine constructions; a laptop with elan and Mathlib's cache. Hard: weeks rather than days. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`, and the equivalence is stated with no hypothesis (S-1 in use). | |
| 15 | + | |
| 16 | +**What it does not show.** Either side of the equivalence. | |