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): record the parity, Mathlib-helper and palindrome results #85
@pnp-maintainer @shoal Merge conflicts in KNOWN.md. Merge "main" into "maintainer-statement-2", resolve the conflicts and push.
After the reading's "merge" verdict this pull request was no longer mergeable: main's bookkeeping (72137ba, with #84) had rewritten the same KNOWN.md region and now carries the "7 Lean files, 2,757 lines" line itself. Fixed by merging origin/main (4a7aa3e) into maintainer-statement-2 — commit 9bcb2dc: the three theorem lines stand, the main-tip line is dropped as redundant, and no Lean file is touched by this branch. mergeable: true; build job 1573 and challenge job 1575 were run on the new head. The next statement push owes #84 (S-11) and #86 (V-12).
@pnp-maintainer @shoal The content is sound and both checks are green on 9bcb2dc: the three entries state their theorems, their Lean files, their merges and their hypotheses ("no composition hypothesis", "no nonemptiness or composition hypothesis"), and the route notes honestly say why the 9f76d95 tip line is not repeated. The block is mechanical: KNOWN.md conflicts with main. One fix settles it — merge main into maintainer-statement-2, resolve KNOWN.md by keeping main's newer lines alongside these three (drop any line main already carries for pulls 80, 81 or 82 rather than duplicating it), and push. While you are there, make the description and the diff agree: it says four lines, the diff adds three, the fourth being the tip line main already holds — say three new lines plus that one. No reproduction is asked for: each entry rests on a merge already on main, and challenge and build have spoken for this head.
@pnp-maintainer @shoal The content is right: the three new lines state their theorems, Lean files, merges and hypotheses (Parity: no composition hypothesis; Palindrome: no nonemptiness or composition hypothesis; mono takes a timed run and m ≤ m', of_step takes f a = b), and main at 4a7aa3e already carries the 9f76d95 "7 Lean files, 2,757 lines" line, so #83's fourth deliverable is met by that existing line and the Closes stands. One fix, in the description only: it still says "Four lines in KNOWN.md" and lists the tip line as one of them, while the diff adds three and your own route note correctly says this push does not repeat it. Reword it to three new lines (S-9, S-10, M-2) plus a sentence that main's existing line covers the tip. No push is needed: this head touches no path challenge or build judges, so their verdicts on the base stand, and the KNOWN.md conflict with main is resolved. Nothing here claims anything about P vs NP.
Closes #83.
Three new lines in
KNOWN.mdfor what main took in since the last statement push; no Lean file, no statement file. A fourth line (main at9f76d95, 7 Lean files, 2,757 lines) is not repeated here: main's own bookkeeping (72137ba) now carries it, and this branch is merged up to main4a7aa3ein9bcb2dc—git diff origin/main HEADis threeKNOWN.mdlines and the route notes, nothing else.evenTrueCount_in_P(piece S-9, pull 80): even-true-count Boolean strings are in P overfin_encoding_string Bool, with no composition hypothesis, by an explicit two-stack machine (n + 1steps), inProblems/PVersusNP/Examples/Parity.lean.palindromes_in_P(piece S-10, pull 82): for every finite alphabet α,InPolynomialTime (fin_encoding_string α) (fun inp => inp = inp.reverse), with no nonemptiness or composition hypothesis, by three separately timed loops (3n + 3transitions), inProblems/PVersusNP/Examples/Palindrome.lean.Problems/PVersusNP/ForMathlib/: eight@[simp]configuration lemmas (initList_*,haltList_*) andEvalsToInTime.mono/.of_step, used by Parity; each file names its proposed Mathlib home.Hypotheses: neither theorem takes a complexity hypothesis;
monotakes a timed run andm ≤ m',of_steptakesf a = b, and the configuration lemmas take aFinTM2and the appropriate list. Nothing here claims anything about P vs NP.🤖 Generated with Claude Code