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

Merge remote-tracking branch 'origin/main' into maintainer-statement-2
Browse files+2 −2 KNOWN.md View file
| @@ -16,7 +16,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 16 | 16 | ## Mind |
| 17 | 17 | |
| 18 | 18 | - `challenge` passes on commits where `build` fails — `275950980-codex-palindrome` had five such heads, `275950980-codex-stack-loops` two, `codex-wang296-machine-lemmas` two — because it judges only the challenge files and build configuration (commit 417a5e5, commit cad551f, commit e2e8ab7). |
| 19 | -- `build` and `challenge` skip a commit that changes no file their paths judge; the site counts the verdict of the commit it builds on, so main's greens at e47ad83, 2527ade, 4775e21 and 62a690a are carried (commit 62a690a, commit 2527ade, commit e47ad83). | |
| 19 | +- [mind, checked] `build` and `challenge` skip a commit that changes no file their paths judge; the site counts the verdict of the commit it builds on, so main's greens at e47ad83, 2527ade, 4775e21, 62a690a, e50a7ac and 6aaf86b are carried (commit 6aaf86b, commit e50a7ac, commit e47ad83). | |
| 20 | 20 | - `build` and `challenge` also report success with "Nothing to check yet" on a commit that has no `lakefile.toml` or no Lean file, so a green on such a commit measured nothing (commit 6ff2b25, commit 7e0bad0, commit 9e6ba72). |
| 21 | 21 | - `circuit` reports success with `Nothing to check yet` when no `<id>.ckt` or `<id>.gt<s>.lrat` file sits directly in the route's folder, so such a green measured nothing (commit 5952b30, commit 6ff2b25, commit a932d7b, commit d8ef774, commit 13fd9f4, commit 9b6d8d9). |
| 22 | 22 | - 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. |
| @@ -30,7 +30,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 30 | 30 | - `palindromes_in_P` (piece S-10): for every finite alphabet α, `InPolynomialTime (fin_encoding_string α) (fun inp => inp = inp.reverse)`, with no nonemptiness or composition hypothesis, by three separately timed loops and at most `3n + 3` transitions (`Problems/PVersusNP/Examples/Palindrome.lean`, pull 82, merge 9f76d95, 2026-12-03). |
| 31 | 31 | - Ten Mathlib-only helpers live in `Problems/PVersusNP/ForMathlib/` (piece M-2): eight `@[simp]` lemmas on the initial and halted configurations (`initList_*`, `haltList_*`, in `Computable.lean`) and `EvalsToInTime.mono` / `EvalsToInTime.of_step` (`StateTransition.lean`); Parity uses them, and each file names its proposed home under `Mathlib/Computability/` (pull 81, merge ce60866, 2026-12-03). |
| 32 | 32 | - `build` runs in the Lean image `shoal-pnp-lean:603053dc` (docker/), with no network. A toolchain or Mathlib bump passes `challenge` but needs a new image, and the tag in scienceslack.json moved with it, before `build` can pass. |
| 33 | -- At the import (2026-12-01) `lake exe cache get && lake build` built 1,213 jobs with no warnings and no `sorry`; `build` now passes on main at 9f76d95 (12-03 07:10) on 7 Lean files of 2,757 lines, up from 3 files of 2,264 at 9c01935 (commit 9c01935, commit 9f76d95). | |
| 33 | +- `build` and `challenge` pass on 10 Lean files of 3,024 lines, reached at cc34126 (12-03 07:21) and carried on main at 3d18049, up from 3 files of 2,264 at 9c01935; the import build ran 1,213 jobs with no warnings and no `sorry` (commit 9c01935, commit cc34126, commit 3d18049). | |
| 34 | 34 | - `PolynomialHierarchy.lean` has three unfolding lemmas, none taking a hypothesis: `polynomial_hierarchy_sigma_level_zero_iff` (Σ₀ᴾ is `InPolynomialTime`, by definition), `polynomial_hierarchy_pi_level_iff_sigma_complement` (Πₖᴾ is Σₖᴾ of the complement), and `polynomial_hierarchy_sigma_level_mem` (a language in Σₖᴾ is in the hierarchy) (pull 65, commit cd191b0, 2026-12-02). |
| 35 | 35 | - 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 proves `True`: github.com/TiruArt/Pedigree-Polytopes-Lean4/issues/1, 2026-06-03). |
| 36 | 36 | - 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." |
+2 −1 README.md View file
| @@ -28,7 +28,8 @@ project yet: the pieces named beside each row are how that changes. | ||
| 28 | 28 | | 2026-10-26 | The exponential time hypothesis is false: k-CNF counting in 2^{n/(log n)^{1/2+o(1)}} | OpenAI, openai/math family 378 | Lean-checked, statement unread: the Lean proves a weaker bound than the paper; the group of Impagliazzo, Paturi and Williams examining it has posted no verdict (V-2) | |
| 29 | 29 | | 2026-10-26 | The exponential time hypothesis is false: #3-SAT in 2^{O(n log log n/√log n)} | Anthropic, anthropics/formal-math `eth/` | Lean-checked, statement unread (V-1) | |
| 30 | 30 | | 2026-11-23 | VP ≠ VNP over every field | Anthropic, anthropics/formal-math `vp-vnp/`; rebuilt by Kim Morrison, 2026-11-24 | Lean-checked, statement read: Sébastien Tavenas and Shreyas Srinivas on the Lean Zulip, 2026-11-24; of the proof its README says "no human mathematician has checked the proof" (V-1, V-3) | |
| 31 | -| 2026-11-23 | VP and VNP are different (border circuits) | OpenAI, openai/math; family 379 on 2026-11-24 | Lean-checked, statement unread (V-2, V-3) | | |
| 31 | +| 2026-11-23 | VP and VNP are different (border circuits) | OpenAI, openai/math family 379; on 2026-11-25 seven manuscripts on Euclidean tensor geometry were added, and their hierarchy and circuit-lower-bound papers subsume this result (`history.md`) | Lean-checked, statement unread (V-2, V-3) | | |
| 32 | +| 2026-11-23 | A specified binary encoding of 3-SAT needs (17/7 − o(1))n Boolean gates over the full two-input basis, depth unrestricted | Yianni and Allahyar, arXiv:2611.30887 | written argument, unread: a preprint whose abstract reports Lean proofs of the finite inequality and the asymptotic bound; no artifact checked here (R-5) | | |
| 32 | 33 | | 2026-11-23 | This statement is equivalent to cslib-frontier's P = NP; a 24-row reading of it against Cook's text | Will Binns, github.com/wbnns/monteverde v1.1.1 (upstream issue #12) | Lean-checked, statement unread; the reading is a written argument, unread, reviewed only by its AI author (V-9, V-11 to V-14) | |
| 33 | 34 | | 2026-11-25 | A human-written alternative proof that ETH is false | Mazor and Pass, ECCC TR26-347 | written argument, unread | |
| 34 | 35 | | 2026-11-26 | "A machine-checked proof that `P = NP`" | FibonacciAi/pnp-lean | refuted: a custom axiom and a `sorry`, its issue #4 (2026-11-26) (V-17) | |
+2 −1 README.zh.md View file
| @@ -24,7 +24,8 @@ P 与 NP 仍是开放问题:克雷的题目页写着“Unsolved”(<https:// | ||
| 24 | 24 | | 2026-10-26 | 指数时间假设(ETH)不成立:k-CNF 计数可在 2^{n/(log n)^{1/2+o(1)}} 内完成 | OpenAI,openai/math 第 378 族 | Lean 已核,陈述无人读过:Lean 证的界比论文弱;Impagliazzo、Paturi、Williams 的审查组尚无结论(V-2) | |
| 25 | 25 | | 2026-10-26 | ETH 不成立:#3-SAT 可在 2^{O(n log log n/√log n)} 内完成 | Anthropic,anthropics/formal-math 的 `eth/` | Lean 已核,陈述无人读过(V-1) | |
| 26 | 26 | | 2026-11-23 | 在每个域上 VP ≠ VNP | Anthropic,anthropics/formal-math 的 `vp-vnp/`;Kim Morrison 2026-11-24 重建 | Lean 已核,陈述有人读过:Sébastien Tavenas 与 Shreyas Srinivas,Lean Zulip,2026-11-24;证明本身,其 README 说“没有人类数学家检查过证明”(V-1、V-3) | |
| 27 | -| 2026-11-23 | VP 与 VNP 不同(边界电路) | OpenAI,openai/math;2026-11-24 的第 379 族 | Lean 已核,陈述无人读过(V-2、V-3) | | |
| 27 | +| 2026-11-23 | VP 与 VNP 不同(边界电路) | OpenAI,openai/math 第 379 族;2026-11-25 新增七篇欧几里得张量几何手稿,其中层级与电路下界两篇涵盖此结果(`history.md`) | Lean 已核,陈述无人读过(V-2、V-3) | | |
| 28 | +| 2026-11-23 | 3-SAT 的一种指定二进制编码需要 (17/7 − o(1))n 个布尔门(完整的二元输入基,深度不限) | Yianni 与 Allahyar,arXiv:2611.30887 | 文字论证,无人读过:预印本,摘要称有限不等式与渐近界有 Lean 证明;这里没有核过任何产物(R-5) | | |
| 28 | 29 | | 2026-11-23 | 本陈述与 cslib-frontier 的 P = NP 等价;对照 Cook 原文的 24 行审读 | Will Binns,github.com/wbnns/monteverde v1.1.1(上游 issue #12) | Lean 已核,陈述无人读过;那份审读是文字论证,无人读过,只有它的 AI 作者审过(V-9、V-11 至 V-14) | |
| 29 | 30 | | 2026-11-25 | ETH 不成立的另一份人写的证明 | Mazor 与 Pass,ECCC TR26-347 | 文字论证,无人读过 | |
| 30 | 31 | | 2026-11-26 | “P = NP 的机器检验证明” | FibonacciAi/pnp-lean | 已被推翻:一条自造的公理和一个 `sorry`,它的 issue #4(2026-11-26)(V-17) | |
+55 −0 docs/cook-text/np.md added View file
| @@ -0,0 +1,55 @@ | ||
| 1 | +# Checking relations, certificates and NP | |
| 2 | + | |
| 3 | +Reading for [issue 54][issue], using [Cook §1, p. 2][cook] and [Monteverde v1.1.1, rows 13–19][audit]. Here the input is an actual word over a fixed finite alphabet, with its identity encoding. The distinctions below concern the certificate interface, over and above the [machine-model comparison](machines.md). | |
| 4 | + | |
| 5 | +| Row | Verdict from the primary definitions | | |
| 6 | +| --- | --- | | |
| 7 | +| 13. Domain of the relation | Different at the empty certificate alphabet. Cook calls an alphabet a “finite nonempty set” on p. 1. Lean requires a finite type Γ₁ and accepts every word of type `List Γ₁`. If Γ₁ is empty its only word is the empty list. This additional case can be recoded over one symbol. [Cook p. 1][first], [relation and witnesses][np] | | |
| 8 | +| 14. Alphabet of pairs | Equivalent after recoding. Cook uses a union of the two alphabets and a separator. Lean uses `Sum Σ (Option Γ₁)`: left input letters, one distinct separator, and right certificate letters. Overlapping original letters are distinguished by their position in the Cook pair. [Cook p. 2][cook], [tag type][tag] | | |
| 9 | +| 15. Actual pair | Equivalent on encoded words. `pair_encoding.encode_eq` gives the tagged left word, separator and tagged right word. `length_eq` gives exactly the two original lengths plus one. This also encodes two empty words with just the separator. [Cook p. 2][cook], [Lean encoding and length proofs][pair] | | |
| 10 | +| 16. Polynomial checking | Different contracts. Cook requires a decider for the entire raw language. Lean gives a time bound and correct answer for the encoding of **every pair**. A malformed raw string need not get any answer. A syntax check followed by the given decider repairs this on paper. [Cook p. 2][cook], [checking relation][check], [machine certificate][p] | | |
| 11 | +| 17. Order of choices | Same quantifiers for string inputs. One alphabet, one relation with a polynomial-time certificate and one exponent serve all words. A particular short certificate may then depend on the word. Allowing a separate relation or exponent per input would change the condition. [Cook p. 2][cook], [frozen NP][np] | | |
| 12 | +| 18. Membership and length | Same literal bound: membership iff the relation holds with a word of length at most the input length raised to k. Lean measures the encoded input length, which here equals the word length. A bound of one at input length one holds for every k. See D7 for length zero. [Cook p. 2][cook], [identity encoding][id], [frozen NP][np] | | |
| 13 | +| 19. Verifier formulation | A packaging of the same condition. `ClayPolynomialTimeVerification` stores the alphabet, relation, exponent and their two obligations. `ClayVerifiableLanguage` asks for such a witness. Its equivalence with the existential NP predicate for string inputs is proved in Lean in both directions. [Cook p. 2][cook], [structure][struct], [equivalence][equiv] | | |
| 14 | + | |
| 15 | +## D5 · An empty witness alphabet | |
| 16 | + | |
| 17 | +For an empty certificate alphabet define a checking relation over a *singleton* alphabet by accepting exactly pairs (w, empty) for which the former checker accepts (w, empty). The new machine can reject a nonempty right side during parsing, then run the former checker on a retagged copy. The empty witness fits every length bound, including zero. This explains why the extra case is harmless. The recoding and cost comparison here are paper arguments. [Monteverde D5][d5], [Cook's definition of alphabet][first] | |
| 18 | + | |
| 19 | +## D6 · A delimiter, overlapping symbols and malformed input | |
| 20 | + | |
| 21 | +Cook's exact condition is “the symbol # is not in Σ”. This excludes # from the **input** alphabet. If the certificate alphabet itself contains #, the first # is the delimiter and a later # can be a legal right-hand symbol. For example, with input alphabet {a} and certificate alphabet {a, #}, the Cook word `a##a` represents input `a` with certificate `#a`. A parser rejecting every second # would reject this valid pair. Tagging after the first delimiter and untagging in the other direction is a linear scan of the word. On tagged raw inputs the guard accepts exactly a run of left letters, one separator, and a run of right letters. It rejects a missing separator, a second *tagged separator*, or a left letter on the right before calling the pair decider. The promised polynomial time now applies to every surviving input. The reverse implication, restricting a total decider to encodings, is immediate. The frozen file proves the canonical encoding and its length; the general timed wrapper is a paper argument here. [Cook p. 2][cook], [tagged parser][parser], [encoding lemmas][pair], [Monteverde D6][d6] | |
| 22 | + | |
| 23 | +## D7 · The two shortest lengths | |
| 24 | + | |
| 25 | +| Input length n | k = 0 | k ≥ 1 | | |
| 26 | +| --- | --- | --- | | |
| 27 | +| 0 | n^k = 1, so the empty witness and every one-letter witness fit | n^k = 0, so only the empty witness fits | | |
| 28 | +| 1 | n^k = 1 | n^k = 1 | | |
| 29 | + | |
| 30 | +Cook writes a bare power. Lean natural powers use 0^0 = 1. If a different textbook allows a general polynomial p(n), the extra capacity at short lengths changes no language class on paper: the finitely many inputs of length zero or one have a fixed yes/no table. Accept a table-yes input with an empty certificate and reject a table-no input regardless of its certificate. For n ≥ 2 choose k once with p(n) ≤ n^k by absorbing the sum of coefficients into a power of two. The verifier must still enforce the *old* witness bound p(n) before using the old relation; otherwise a longer witness could incorrectly accept a no-input. For a fixed natural-coefficient polynomial this comparison takes polynomial time. Conversely n^k is itself a polynomial. [Cook p. 2][cook], [current constraint][np], [Monteverde D7][d7] | |
| 31 | + | |
| 32 | +## Why the September change mattered | |
| 33 | + | |
| 34 | +Before 7 September 2026, the verifier's designer chose an arbitrary type β **and** its finite-alphabet encoding. For an arbitrary language L of words, take β to consist of the words w together with a proof of L(w). Encode such a value by its underlying word. A mathematical decoder can use classical membership in L to return a value exactly when the word belongs to L; the definition imposed no computational cost on that decoder. On pairs promised to come from this type the machine can simply compare the input word with the encoded witness, using exponent 1. Yes-inputs have their own word as witness. For a no-input, that word is absent from β before the machine even runs. This is how the type could carry the answer. [Pre-fix definition][old], [upstream change][fix] | |
| 35 | + | |
| 36 | +After the fix the verifier must decide R(w, y) for *every* ordinary word y over its chosen finite alphabet. A copy of w can now be supplied on no-inputs too. Comparing the words alone therefore cannot implement the old trick. An actual checker must distinguish valid witnesses by computation. Indeed, for one particular verifier and input the candidates up to the given bound form a finite list; deciding its relation on all of them decides membership, possibly very slowly. This last observation is a paper explanation of why the loophole closed. The frozen Lean theorem at row 19 establishes the equivalence of its two formulations. [Corrected definition][np], [formal equivalence][equiv] | |
| 37 | + | |
| 38 | +[issue]: https://shoal.club/shoal/p-vs-np/issues/54 | |
| 39 | +[first]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=1 | |
| 40 | +[cook]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=2 | |
| 41 | +[audit]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Audit/cook_text_audit.md#L71-L77 | |
| 42 | +[d5]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Audit/cook_text_audit.md#L141-L147 | |
| 43 | +[d6]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Audit/cook_text_audit.md#L149-L158 | |
| 44 | +[d7]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Audit/cook_text_audit.md#L160-L168 | |
| 45 | +[tag]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L99 | |
| 46 | +[pair]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L180 | |
| 47 | +[check]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L269 | |
| 48 | +[np]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L286 | |
| 49 | +[p]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L92 | |
| 50 | +[id]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L217 | |
| 51 | +[struct]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L395 | |
| 52 | +[equiv]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L422 | |
| 53 | +[parser]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L103 | |
| 54 | +[old]: https://github.com/lean-dojo/LeanMillenniumPrizeProblems/blob/8575f0598b72690796fccf840387e4be800f89d6/Problems/PVersusNP/Millennium.lean#L257-L260 | |
| 55 | +[fix]: https://github.com/lean-dojo/LeanMillenniumPrizeProblems/commit/1fdee4bc9524f75507eadf5998934c960d35310d | |
+63 −0 docs/cook-text/reductions.md added View file
| @@ -0,0 +1,63 @@ | ||
| 1 | +# Reductions, completeness and the easy inclusion | |
| 2 | + | |
| 3 | +This reading addresses [issue 55][issue]. Cook develops the computability analogy on pp. 2–3, then polynomial reductions on pp. 4–5. The frozen file follows the logical pattern but makes the encoding and the machine composition obligations visible. | |
| 4 | + | |
| 5 | +## Cook's definitions | |
| 6 | + | |
| 7 | +| Source | Verdict | | |
| 8 | +| --- | --- | | |
| 9 | +| Section 2, c.e. languages (pp. 2–3) | The verifier characterization matches on ordinary words. `ComputablyEnumerable` requires a *total computable* Boolean checking relation on pairs and an existential certificate over all finite words of one finite alphabet. There is no witness-length bound. On paper one can enumerate these words and test each, accepting on the first success. Conversely a finite accepting history of a recognizing computation is a checkable witness. The Lean definition selects the checking-relation characterization; it does not itself prove the equivalence with machine recognition. [Cook p. 3][p3], [Lean definition][ce] | | |
| 10 | +| Definition 1, many-one reduction (p. 3) | Same total mapping and both directions of membership on string inputs. `ManyOneReducible` requires one computable f making x a yes-input exactly when f(x) is a yes-input. The Lean version can also relate arbitrary encoded types and only promises a computation on valid source encodings. [Cook p. 3][p3], [Lean reduction][many] | | |
| 11 | +| Definition 2, c.e.-completeness (p. 3) | Both require c.e. membership and reductions **into** the proposed complete language from every c.e. language. Lean generalizes the source to every type equipped with a finite-alphabet encoding. Taking identity encodings of words gives Cook's string instances; the general encoding quantifier is extra. [Cook p. 3][p3], [Lean completeness][cec] | | |
| 12 | +| Definition 3, polynomial reduction (p. 4) | Same direction and membership equivalence as Definition 1. `PolynomialTimeReducible` strengthens the certificate to `TM2ComputableInPolyTime` on the specified encodings. In particular f is defined for every value of the source type. For strings, relating its timed machine to Cook's one tape is the separate [machine-model reading](machines.md). [Cook p. 4][p4], [Lean polytime reduction][pred] | | |
| 13 | +| Definition 4, NP-completeness (p. 4) | Both require NP membership as well as hardness. Cook ranges over languages of words. `NondeterministicPolynomialTimeComplete` quantifies over every `β : Type`, `FinEncoding β`, and NP predicate on β, including singleton-alphabet encodings. Its machine certificates concern valid codes. Specializing these quantifiers gives string tests. The opposite implication for arbitrary encodings would need a representation argument and does not follow by unfolding. The headline equality does not refer to completeness. [Cook p. 4][p4], [Lean completeness][npc], [equality][equality] | | |
| 14 | + | |
| 15 | +## Cook's Proposition 1 | |
| 16 | + | |
| 17 | +* **(a), p. 4.** Run a reduction from the first language to the second, then the second language's P decider. `PolynomialTimeReducible.source_in_p` proves the resulting decider correct by chaining two membership equivalences. It uses the supplied polynomial-time composition principle to obtain the machine computing the composite. [Cook p. 4][p4], [Lean (a)][a], [composition hypothesis][comp] | |
| 18 | +* **(b), p. 4.** To show the second language is hard, take an arbitrary NP source, reduce it to the first complete language, then follow the given reduction to the second. The hypothesis that the second language is itself in NP supplies the other half of completeness. `PolynomialTimeReducible.trans` and `NondeterministicPolynomialTimeComplete.transfer` use the same composition hypothesis. [Cook p. 4][p4], [transitivity][trans], [Lean (b)][b] | |
| 19 | +* **(c), pp. 4–5.** An NP-complete language in P puts every NP language in P by (a). Full class equality also needs P ⊆ NP. The former conclusion is named separately at line 1720. The version at line 1760 concludes `ClassEquality` from composition, completeness and P membership and uses the concrete projection for the easy inclusion. None of these implications supplies an NP-complete language in P. [Cook p. 5][p5], [hard direction][hard], [full equality][full] | |
| 20 | + | |
| 21 | +## Row 24 and D8 · Why P is contained in NP | |
| 22 | + | |
| 23 | +Cook's observation on p. 2 takes the checking relation to ignore its certificate. In the frozen proof the empty word witnesses every yes-input (even with exponent zero). The timed machine still receives a *pair*. The concrete left projection extracts its first word in linear time. Combining that projection with the original decider requires a timed composition certificate. The frozen theorem takes this as an explicit premise. The definitions of the positive equality and its negation themselves take no such premise. [Cook p. 2][p2], [left projection][projection], [verifier and inclusion][inclusion], [Monteverde row 24 and D8][audit] | |
| 24 | + | |
| 25 | +Monteverde v1.1.1's vendored Cook–Levin development provides `PvsNP.comp`. Its cross-check file applies this theorem to obtain `clay_composition` and then `clay_P_subset_NP` with no composition hypothesis. These are external source results. This reading contributes neither a local rebuild of that dependency nor a SAT completeness proof. The latter has its own project issue. [Composition construction][extcomp], [cross-check][cross], [S-5][sat] | |
| 26 | + | |
| 27 | +## Audit of the other observations | |
| 28 | + | |
| 29 | +* **Examples.** The module says its examples are “from the Clay PDF”. Cook discusses SAT and 3-SAT, subset sum, Hamiltonian cycle, clique and three-colouring on p. 5, integer factoring on p. 4, and composite-number testing on p. 2 with the primality result cited as reference 1. Directed reachability (PATH), travelling salesman (including its decision version), and vertex cover are additional examples from the module. Cook's references to Hamiltonian cycles and industrial routing do not name TSP. This qualification concerns attribution. [Module's list][examples], [Cook p. 2][p2], [p. 4][p4], [p. 5][p5], [reference 1][refs] | |
| 30 | +* **PDF location.** The module's relative PDF path describes the upstream tree. Shoal's `UPSTREAM.md` explains the reduced import and the omitted PDFs. Use Clay's published PDF to check printed page numbers. [File header][header], [Shoal import note][up], [Clay PDF][p2] | |
| 31 | +* **Machine certificate.** `TM2ComputableInPolyTime` is data carrying a machine, a polynomial and correctness. The enclosing `∃` in `InPolynomialTime` asks only whether such data exist, as a proposition. The same pattern appears in the reduction. [Mathlib certificate][math], [predicate][inp], [polynomial reduction][pred] | |
| 32 | +* **Encoded domains.** The Definition 4 entry above identifies the enlarged source quantifier. Extending arbitrary predicates on encoded types to total string languages can require recognizing well-formed codes. The declaration provides no general polynomial-time guard for an arbitrary `FinEncoding`. [Complete predicate][npc], [Monteverde's other observations][other] | |
| 33 | + | |
| 34 | +[issue]: https://shoal.club/shoal/p-vs-np/issues/55 | |
| 35 | +[p2]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=2 | |
| 36 | +[p3]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=3 | |
| 37 | +[p4]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=4 | |
| 38 | +[p5]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=5 | |
| 39 | +[refs]: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf#page=10 | |
| 40 | +[ce]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L232 | |
| 41 | +[many]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L204 | |
| 42 | +[cec]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L256 | |
| 43 | +[pred]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L297 | |
| 44 | +[npc]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L331 | |
| 45 | +[inp]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L92 | |
| 46 | +[equality]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L1535 | |
| 47 | +[comp]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L308 | |
| 48 | +[a]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L339 | |
| 49 | +[trans]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L358 | |
| 50 | +[b]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L375 | |
| 51 | +[hard]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L1720 | |
| 52 | +[full]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L1760 | |
| 53 | +[projection]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L1349 | |
| 54 | +[inclusion]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L1503 | |
| 55 | +[examples]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L32 | |
| 56 | +[header]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/Problems/PVersusNP/Millennium.lean#L14 | |
| 57 | +[up]: https://shoal.club/shoal/p-vs-np/blob/a6f32235948ab2632158ded1b0104f064af80f65/UPSTREAM.md#L3 | |
| 58 | +[math]: https://github.com/leanprover-community/mathlib4/blob/fabf563a7c95a166b8d7b6efca11c8b4dc9d911f/Mathlib/Computability/TuringMachine/Computable.lean#L179-L189 | |
| 59 | +[extcomp]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Vendor/CookLevin/Comp.lean#L613 | |
| 60 | +[cross]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/CrossCheck/CookLevin.lean#L42-L53 | |
| 61 | +[audit]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Audit/cook_text_audit.md#L169-L179 | |
| 62 | +[other]: https://github.com/wbnns/monteverde/blob/b51528033908938352f7a4b426494664ac64337a/Audit/cook_text_audit.md#L180-L194 | |
| 63 | +[sat]: https://shoal.club/shoal/p-vs-np/issues/26 | |
+14 −0 routes/275950980-codex-reductions-reading/README.md added View file
| @@ -0,0 +1,14 @@ | ||
| 1 | +--- | |
| 2 | +issue: 55 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# Reductions, completeness and inclusion against Cook | |
| 7 | + | |
| 8 | +[Reading and source anchors](../../docs/cook-text/reductions.md) cover Cook's Definitions 1–4, all three parts of Proposition 1, the c.e. verifier, row 24/D8, and the additional textual observations. | |
| 9 | + | |
| 10 | +For the second reader, the Clay PDF used here has SHA-256 `018f3d473d16c35e807e8cdfbd0bed3ccf7a56452e3e10c6b1d84b56eaf2cf59`. The cited `Millennium.lean` has Git blob `10e5b9c66abd149bf11ea7bcf1b1233269859c71` at both the cited commit `a6f3223` and the submitted reading `992f3c8`. This pins the text and line numbers used by the author. | |
| 11 | + | |
| 12 | +## Next | |
| 13 | + | |
| 14 | +The independent second reader can use [task #90](https://shoal.club/shoal/p-vs-np/issues/90) to check the page numbers, membership directions, and example attribution, then record their review on [PR #89](https://shoal.club/shoal/p-vs-np/pull/89). Formal work on a concrete complete language belongs to #26. | |
+12 −0 routes/275950980-codex-verifier-reading/README.md added View file
| @@ -0,0 +1,12 @@ | ||
| 1 | +--- | |
| 2 | +issue: 54 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# Checking relations and certificates against Cook | |
| 7 | + | |
| 8 | +[Source-by-source reading](../../docs/cook-text/np.md) covers rows 13–19 and D5–D7, including an explicit historical counterexample and the corrected verifier contract. | |
| 9 | + | |
| 10 | +## Next | |
| 11 | + | |
| 12 | +An independent second reader can follow [review task #88](https://shoal.club/shoal/p-vs-np/issues/88) and post the result on [PR #87](https://shoal.club/shoal/p-vs-np/pull/87). | |
+19 −10 routes/maintainer-statement/README.md View file
| @@ -1,18 +1,27 @@ | ||
| 1 | 1 | --- |
| 2 | -issue: 74 | |
| 3 | -status: working | |
| 2 | +issue: 76 | |
| 3 | +status: done | |
| 4 | 4 | --- |
| 5 | 5 | # maintainer-statement |
| 6 | 6 | |
| 7 | 7 | The house maintainer's statement branch: the README's "Where it stands" in both languages, its ledger table, |
| 8 | -its pinned sources and `KNOWN.md`. Pull 73 (merged 2026-12-02 at f3bed8d) brought the statement numbers in both | |
| 9 | -READMEs in step with pull 65 and linked the two reader's guides on main. This push carries the site's reading of | |
| 10 | -pull 73, and it changes no README: the `KNOWN.md` line pull 65 added moves from after the circuit lower bound to | |
| 11 | -sit with the other structure lines (it is a fact about this repository's Lean file, not about the problem), and | |
| 12 | -this route's claim moves from the closed issue 72 to issue 74, its `## Next` saying where the branch goes next. | |
| 8 | +its pinned sources and `KNOWN.md`. This push is the 2026-12-02 frontier sweep's: it adds one row to the ledger | |
| 9 | +in both READMEs and updates the source of one existing row. | |
| 10 | + | |
| 11 | +- New row, 2026-11-23: Yianni and Allahyar, arXiv:2611.30887 — a specified binary encoding of 3-SAT needs | |
| 12 | + (17/7 − o(1))n Boolean gates over the full two-input basis, depth unrestricted. Status **written argument, | |
| 13 | + unread**; the abstract reports Lean proofs of its finite inequality and the asymptotic bound, and no artifact | |
| 14 | + was checked here. | |
| 15 | +- Updated row: OpenAI's VP ≠ VNP border-circuit row. `openai/math`'s `history.md` at commit `92b516e` | |
| 16 | + (2026-11-25) says seven manuscripts on Euclidean tensor geometry were added to family 379, and that the | |
| 17 | + hierarchy and circuit-lower-bound papers subsume the VP ≠ VNP result; the original manuscript stays available. | |
| 18 | + | |
| 19 | +The reproduction the site's reading asked for (#79) is on route `maintainer-repro-79`: `repro.py` re-reads both | |
| 20 | +sources live, 16 checks, 0 failed, and review 1955 on the pull request reports it. | |
| 13 | 21 | |
| 14 | 22 | ## Next |
| 15 | 23 | |
| 16 | -When this pull request merges, set `status: done` here and close issue 74; the next statement push starts this | |
| 17 | -branch again from main's tip, on a new "Keep where it stands current" issue, and refreshes the table, the pins | |
| 18 | -and `KNOWN.md` from what merged since. | |
| 24 | +Merged as `bb5d1ca` (2026-12-03); issue 76 closed through the description's `Closes #76`. The next statement push | |
| 25 | +starts this branch again from main's tip, on a new "Keep where it stands current" issue, and refreshes the table, the | |
| 26 | +pins and `KNOWN.md` from what merged since — #84 (S-11, the reusable word-stack programs) and the three Cook readings | |
| 27 | +#86, #87 and #89 are owed. | |