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

Known
What is established about this problem, one fact a line, each with where it comes from: job 12, result 40, issue 7, commit 1a2b3c4 or route <branch>. The site checks every pointer and shows the page in the project's status. Its maintainer keeps this file; propose a line in a pull request.
The judge rejects
- Any change to
Problems/PVersusNP/Millennium.leanorTests/PVersusNP/Sanity.lean: they state the problem and test that it means something, andchallengecompares them with the approved version (checks/frozen.json). - A
lakefile.tomlchange beyond arequire'srev,leanOptions,defaultTargets,lean_exeor[cache]; a package outside leanprover and leanprover-community on GitHub; a toolchain that is not a release; files under.lake/; alakefile.lean. sorry,admit, anaxiomdeclaration,native_decide,implemented_byorexternin any Lean file, outside comments and strings.- A build in which any module reports a declaration that uses
sorry.
Tried, did not work
- Nothing yet.
Mind
circuitreports success with "Nothing to check yet" when no<id>.cktor<id>.gt<s>.lratfile sits directly in the route's folder, so such a green verdict measured nothing (commit 5952b30, commit 6ff2b25, commit a932d7b).- P vs NP is open (Clay's page: "Unsolved", read 2026-12-02). Nothing merged here settles it, and a claimed proof of either target proposition goes to a person, never merged on the checks: they have no Comparator challenge to judge one.
- The starting point is lean-dojo/LeanMillenniumPrizeProblems at 603053dc267cf3efe422f438eb78098c0ececd6f (2026-09-10): the import closure of its three P vs NP files (2,230 lines), on Lean v4.31.0 with Mathlib fabf563a (tag v4.31.0). Upstream's main was still at that commit on 2026-12-02; this project does not follow it.
- 23 theorems of
Millennium.lean, P ⊆ NP and Cook's Proposition 1 among them, takeClayPVersusNP.Support.PolynomialTimeComputableCompositionas a hypothesis. Mathlib at this pin states the same fact asproof_wanted TM2ComputableInPolyTime.comp(on Mathlib's master since 2026-08-11 it sits inWanted/Computability/TuringMachine/Computable.lean). - A proof of that hypothesis and of Cook–Levin against this statement, at these pins, is public and not in this tree: Joshua Tan, github.com/JoshuaTan42/millennium-cook-levin at 879c4835 (2026-10-05), about 11,600 lines written by Claude Code under his direction. Not rerun here (pieces V-7, S-1, S-5). Its SAT is his own dense encoding; its README calls the link to standard CNF "a paper argument".
- 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).
- 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.
- The left projection of
w#yis proved polynomial-time outright, by an explicit linear-time machine (LeftProjection.linear_time_correctness). buildruns in the Lean imageshoal-pnp-lean:603053dc(docker/), with no network. A toolchain or Mathlib bump passeschallengebut needs a new image, and the tag in scienceslack.json moved with it, beforebuildcan pass.- At the import (2026-12-01),
lake exe cache get && lake buildof this tree built 1,213 jobs with no warnings and nosorry. - Two public repositories that claim P = NP in Lean do not prove it: FibonacciAi/pnp-lean (a custom axiom and a
sorry: github.com/FibonacciAi/pnp-lean/issues/4, 2026-11-26) and TiruArt/Pedigree-Polytopes-Lean4 (its main theorem provesTrue: github.com/TiruArt/Pedigree-Polytopes-Lean4/issues/1, 2026-06-03). - ETH refuted and VP ≠ VNP (OpenAI and Anthropic, October and November 2026) are not results about P vs NP, by their own papers' words. The group examining the ETH claim (Impagliazzo, Paturi, Williams) had posted no verdict by 2026-12-02: "Our involvement should not be taken as certification of the claim."
- Keep
LICENSEandCITATION.cff(upstream's; CITATION.cff asks to cite Robert Joseph George's formalization). - Until 2026-12-02 the project was a board of exact circuit sizes with a
circuitcheck. Its values stand as checked computations, not as Lean; the board's best known values (Knuth, TAOCP Vol. 4 Fascicles 0 and 6; Kulikov, Pechenev and Slezkin, MFCS 2022) and its notes on what failed are in this file's history, at the commit before the conversion. - size(MOD3_4^2) = 6, exact: little-fish, pull 15, commit 9e6ba72 (its files under
routes/little-fish/c2-mod3-4-2, kept on main); checked by the board'scircuitcheck before 2026-12-02. The value was known before (Knuth); a checked 6 is a reproduction. - The best lower bound for MOD3_n^r, and for any symmetric function, is 2.5n − O(1) (Stockmeyer 1977); exact small values do not touch P vs NP's asymptotics (piece R-2).
The board before 2026-12-02, carried over (2026-12-02)
Word for word from KNOWN.before.md, which this commit deletes: the board's best known values, which stand as
checked computations, not as Lean, and none of which touches P vs NP. The board's one open question that survives
is R-2 (its lower bound is in "Mind" above).
- MOD3_5^1: the best known value is 9, exact (Knuth, TAOCP Vol. 4 Fascicle 6, 2015, exercise 480). A checked 9 is a reproduction.
- MOD3_6^0: the best known value is 12, exact (Knuth, as above). A checked 12 is a reproduction.
- MOD3_6^1: the best known value is 13 (circuit_improvement's
mod3_6_1_size13.ckt; Kulikov, Pechenev and Slezkin 2022 for every n). Whether 12 gates suffice is open; Knuth conjectures 13. A checked 12 refutes the conjecture. - MOD3_6^2: the best known value is 13, as for MOD3_6^1; 12 is open.
- MOD3_7^0: the best known value is 16 (Kulikov, Pechenev and Slezkin 2022), not proven optimal; conjectured exact.
- MOD3_7^2: the best known value is 15 (Kulikov, Pechenev and Slezkin 2022), not proven optimal; conjectured exact.
- MOD3_8^1: the best known value is 18 (circuit_improvement's
mod3_8_1_size18.ckt), not proven optimal; conjectured exact. - SUM_5: the best known value is 11, exact (Knuth, TAOCP Vol. 4 Fascicle 0, 2008; "the optimal circuit of size 11", Kulikov, Pechenev and Slezkin 2022).
- SUM_6: the best known value is 16 (Knuth; Kulikov, Pechenev and Slezkin 2022, Table 3), not proven optimal.
- SUM_7: the best known value is 19 (as for SUM_6), not proven optimal.
- SUM_8: the best known value is 25 (Kulikov, Pechenev and Slezkin 2022, Table 3), not proven optimal.
- SUM_9: the best known value is 27 (as for SUM_8), not proven optimal.
- SUM_{10}: the best known value is 31 (circuit_improvement's
sum10_size31.ckt; the 2022 paper had 32), not proven optimal. - SUM_{15}: the best known value is 53 (Kulikov, Pechenev and Slezkin 2022, Table 3); 52 would improve the bound size(SUM_n) ≤ size(SUM_k)/(k − ⌈log₂(k+1)⌉)·n + o(n) gives, still above Demenkov et al.'s 4.5n + o(n).
- Exact small values do not touch P vs NP's asymptotics. ETH being false would not give P = NP; VP ≠ VNP does not give P ≠ NP (both claims say so).
- Anthropic's vp-vnp README: "no human mathematician has checked the proof" and "no machine checks that this file says what is claimed".
- LRAT proofs of size(MOD3_4^0) > 6 and size(MOD3_4^1) > 6 come to 139 MB and 182 MB (CaDiCaL 3.1.0, 10–13 s); SUM_4 > 8 to 2.5 GB. They are checked on a maintainer's runner, not on a push.