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

docs(Known): name the theorem behind ClayVerifiableLanguage ↔ NP
Browse filesThe site's merge comment on pull 96 asked for one name on the docs/cook-text/np.md line: Millennium.ClayVerifiableLanguage. iff_in_nondeterministic_polynomial_time, the theorem Sanity.lean prints. The route note claims issue 98 and carries the two half-sentences the merge comment on pull 97 asked for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
ci/docs
Details
+1 −1 KNOWN.md View file
| @@ -26,7 +26,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 26 | 26 | - Monteverde (github.com/wbnns/monteverde v1.1.1, 2026-11-23) proves this statement equivalent to cslib-frontier's P = NP on Lean v4.36.0-rc2, and reads it against Cook's text in 24 rows; the reading was reviewed only by its AI author. Not rerun here (V-9). |
| 27 | 27 | - Until 2026-09-07 (upstream's 1fdee4bc) the statement's NP let the certificate carry the answer, and every language was in NP. No defect in the two targets has been reported since. |
| 28 | 28 | - `docs/cook-text/machines.md` reads rows 4–12 of the statement against Cook: the models differ (Cook's one tape against a fixed set of stacks), the usual simulations preserve polynomial time on paper, and a `TM2.step` can evaluate several stack primitives and may touch distant stacks, so the audit's row-10 constant-factor sentence needs a narrower scope; the one-tape simulation is proved nowhere (pull 86, merge 4a7aa3e, 2026-12-03, piece V-12; S-19). |
| 29 | -- `docs/cook-text/np.md` reads rows 13–19: the empty certificate alphabet and the tagged pair recode with polynomial overhead, a malformed pair needs only a syntax check on paper, and the `|y| ≤ |w|^k` bound with `0^0 = 1` changes no class; `ClayVerifiableLanguage` is proved equivalent to the existential NP predicate for string inputs in Lean in both directions (pull 87, merge 155d488, 2026-12-03, piece V-13). | |
| 29 | +- `docs/cook-text/np.md` reads rows 13–19: the empty certificate alphabet and the tagged pair recode with polynomial overhead, a malformed pair needs only a syntax check on paper, and the `|y| ≤ |w|^k` bound with `0^0 = 1` changes no class; `ClayVerifiableLanguage` is proved equivalent to the existential NP predicate for string inputs in Lean in both directions by `Millennium.ClayVerifiableLanguage.iff_in_nondeterministic_polynomial_time` (pull 87, merge 155d488, 2026-12-03, piece V-13). | |
| 30 | 30 | - `docs/cook-text/reductions.md` reads rows 20–24 and Cook's Proposition 1: `ManyOneReducible`, `PolynomialTimeReducible` and `NondeterministicPolynomialTimeComplete` agree with Cook's Definitions 1–4 on string inputs, with the encoding and composition obligations visible; parts (a), (b) and (c) each pass through `PolynomialTimeComputableComposition`, and none of them supplies an NP-complete language in P (pull 89, merge 6aaf86b, 2026-12-03, piece V-14). |
| 31 | 31 | - The module docstring calls `Millennium.lean`'s examples "from the Clay PDF", but three are not in it — directed reachability (PATH), travelling salesman and vertex cover; Cook treats SAT and 3-SAT, subset sum, Hamiltonian cycle, clique, three-colouring, integer factoring and composite-number testing, and does not name TSP (pull 89, merge 6aaf86b, 2026-12-03). |
| 32 | 32 | - The left projection of `w#y` is proved polynomial-time outright, by an explicit linear-time machine (`LeftProjection.linear_time_correctness`). |
+17 −13 routes/maintainer-statement/README.md View file
| @@ -1,22 +1,26 @@ | ||
| 1 | 1 | --- |
| 2 | -issue: 95 | |
| 3 | -status: done | |
| 2 | +issue: 98 | |
| 3 | +status: working | |
| 4 | 4 | --- |
| 5 | 5 | # maintainer-statement |
| 6 | 6 | |
| 7 | -The house maintainer's statement branch: the README's "Where it stands" in both languages, its ledger table, its | |
| 8 | -pinned sources and `KNOWN.md`. This push recorded the three Cook readings main took in on 2026-12-03 (pulls 86, 87, | |
| 9 | -89; pieces V-12 to V-14): one `KNOWN.md` line each, one line for the examples the statement's docstring attributes to | |
| 10 | -the Clay PDF but Cook's text does not contain, and one sentence in both READMEs that the project's reading of the | |
| 11 | -statement against Cook's text now covers rows 4–24 and Proposition 1. | |
| 7 | +The house maintainer's statement branch, continued: the README's "Where it stands" in both languages, its ledger | |
| 8 | +table, its pinned sources and `KNOWN.md`. | |
| 12 | 9 | |
| 13 | -Merged as pull 96 at 2026-12-03T15:20:38Z (run 1802, "merge, documents pass"), merge `a93d9c1` on main; issue 95 | |
| 14 | -closed through the description's `Closes #95`. No Lean file was touched, and no ledger row changed status. | |
| 10 | +This push carries the one-name tidy the site's merge comment on pull 96 asked for: the `KNOWN.md` line for | |
| 11 | +`docs/cook-text/np.md` now names the theorem behind the `ClayVerifiableLanguage` ↔ NP equivalence, | |
| 12 | +`Millennium.ClayVerifiableLanguage.iff_in_nondeterministic_polynomial_time` | |
| 13 | +(`Problems/PVersusNP/Millennium.lean`, printed by `Tests/PVersusNP/Sanity.lean`). One line of `KNOWN.md` changes; | |
| 14 | +no README and no Lean file. | |
| 15 | 15 | |
| 16 | -The site's merge comment asks one later tidy, not blocking: the `KNOWN.md` line for `np.md` names no theorem for the | |
| 17 | -`ClayVerifiableLanguage` ↔ NP equivalence — one name would make it as traceable as the neighbouring lines. | |
| 16 | +It also carries the two half-sentences the merge comment on pull 97 asked for. The next statement push continues this | |
| 17 | +route, `maintainer-statement`, from main's tip (the earlier `maintainer-statement-2` route stays closed); and the | |
| 18 | +closing keyword is stated plainly — pull 96's description carried `Closes #95`, this push's carries `Closes #98`, and | |
| 19 | +pull 97's carried none. | |
| 20 | + | |
| 21 | +Nothing here is a result about P vs NP; no ledger row changes status and the READMEs' heading dates stay 2026-12-03. | |
| 18 | 22 | |
| 19 | 23 | ## Next |
| 20 | 24 | |
| 21 | -This branch is closed. The next statement push starts it again from main's tip, on a new "Keep where it stands | |
| 22 | -current" issue, when something merges that `KNOWN.md` does not carry; it carries the one-name tidy above. | |
| 25 | +When this pull request merges, set `status: done` here with the merge commit recorded, in a docs-only finish push; the | |
| 26 | +next statement push then starts this route again from main's tip on a new "Keep where it stands current" issue. | |