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: keep the statement's numbers and guides current #73
Merged
+1 −0 KNOWN.md View file
| @@ -33,3 +33,4 @@ What is established about this problem, one fact a line, each with where it come | ||
| 33 | 33 | - Until 2026-12-02 the project was a board of exact circuit sizes with a `circuit` check. 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. |
| 34 | 34 | - 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's `circuit` check before 2026-12-02. The value was known before (Knuth); a checked 6 is a reproduction. |
| 35 | 35 | - 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). |
| 36 | +- `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). | |
+3 −1 README.md View file
| @@ -107,7 +107,9 @@ hypothesis; Mathlib at this pin states the same fact as `proof_wanted TM2Computa | ||
| 107 | 107 | [`Tests/PVersusNP/Sanity.lean`](Tests/PVersusNP/Sanity.lean) (194 lines) checks that the definitions are not degenerate. |
| 108 | 108 | **These two files are fixed**: they are the problem and the test that it means something, and `challenge` fails a |
| 109 | 109 | commit that changes them. [`Problems/PVersusNP/PolynomialHierarchy.lean`](Problems/PVersusNP/PolynomialHierarchy.lean) |
| 110 | -(152 lines, definitions only) is not fixed. Cook's text: <https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf> | |
| 110 | +(186 lines: definitions and three unfolding lemmas) is not fixed. The Chinese guide is | |
| 111 | +[`Problems/PVersusNP/GUIDE.zh.md`](Problems/PVersusNP/GUIDE.zh.md); the English reader's guide is | |
| 112 | +[`Problems/PVersusNP/GUIDE.md`](Problems/PVersusNP/GUIDE.md). Cook's text: <https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf> | |
| 111 | 113 | (SHA-256 `018f3d473d16c35e807e8cdfbd0bed3ccf7a56452e3e10c6b1d84b56eaf2cf59`, as upstream's `scripts/clay_refs.py` records it; |
| 112 | 114 | the PDF is not copied here). |
| 113 | 115 | |
+3 −1 README.zh.md View file
| @@ -87,7 +87,9 @@ V-14;从 Mathlib 的机器到 Cook 的单带机这一步,哪里都还没证 | ||
| 87 | 87 | 文件里 23 条定理(包括 P ⊆ NP)把 `ClayPVersusNP.Support.PolynomialTimeComputableComposition` 当作假设;这一版 Mathlib 把同一 |
| 88 | 88 | 事实写成 `proof_wanted TM2ComputableInPolyTime.comp`。[`Tests/PVersusNP/Sanity.lean`](Tests/PVersusNP/Sanity.lean)(194 行) |
| 89 | 89 | 检查定义不退化。**这两个文件不能改**:它们是问题本身和“问题有意义”的检验,`challenge` 不通过改了它们的提交。 |
| 90 | -[`Problems/PVersusNP/PolynomialHierarchy.lean`](Problems/PVersusNP/PolynomialHierarchy.lean)(152 行,只有定义)可以改。Cook | |
| 90 | +[`Problems/PVersusNP/PolynomialHierarchy.lean`](Problems/PVersusNP/PolynomialHierarchy.lean)(186 行:定义和三条展开引理)可以改。中文导读在 | |
| 91 | +[`Problems/PVersusNP/GUIDE.zh.md`](Problems/PVersusNP/GUIDE.zh.md),英文读者导读在 | |
| 92 | +[`Problems/PVersusNP/GUIDE.md`](Problems/PVersusNP/GUIDE.md)。Cook | |
| 91 | 93 | 原文:<https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf>(SHA-256 |
| 92 | 94 | `018f3d473d16c35e807e8cdfbd0bed3ccf7a56452e3e10c6b1d84b56eaf2cf59`,与上游 `scripts/clay_refs.py` 的记录一致;PDF 没有复制进来)。 |
| 93 | 95 | |
+6 −3 routes/maintainer-statement/README.md View file
| @@ -1,12 +1,15 @@ | ||
| 1 | 1 | --- |
| 2 | -issue: 62 | |
| 2 | +issue: 72 | |
| 3 | 3 | status: working |
| 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`. This push carries over the lines of `KNOWN.before.md` that still hold and | |
| 9 | -deletes that file (the first job the round digest names). | |
| 8 | +its pinned sources and `KNOWN.md`. This push carries the closed #63's follow-up (issue 72): the statement | |
| 9 | +numbers in both READMEs (`PolynomialHierarchy.lean` is 186 lines with three unfolding lemmas, not 152 of | |
| 10 | +definitions only), links to the two reader's guides on main, and a `KNOWN.md` line for pull 65's lemmas. The | |
| 11 | +`KNOWN.md` board section the issue also names was removed by the site's bookkeeping (commit 0b751ce, | |
| 12 | +2026-12-02) before this branch was pushed, so there is no sentence left to fix. | |
| 10 | 13 | |
| 11 | 14 | ## Next |
| 12 | 15 | |