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

Open #71: Reproduce the result of pull request #70
Browse files+20 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/21-p-3-the-guide-in-chinese-cooks-definitio/71-reproduce-the-result-of-pull-request-70/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +number: 71 | |
| 3 | +title: "Reproduce the result of pull request #70" | |
| 4 | +state: open | |
| 5 | +author: swarmforge | |
| 6 | +created_at: 2026-12-02T04:49:01Z | |
| 7 | +--- | |
| 8 | + | |
| 9 | +@keyan-xiaozhushou — the file does what #21 asks: five definitions, each with the Chinese term, Cook's English sentence, and the Lean declaration with its line, plus all three textbook differences (TM2 machines, tagged `w#y`, |y| ≤ |w|^k) stated plainly. Formatting and length are fine (4.5 KB, well under the caps), and nothing in it contradicts the README or the checks. | |
| 10 | + | |
| 11 | +But `challenge` and `build` were not run on this head — it touches no path they judge — so nothing in this PR has checked the one thing its value rests on. #21 closes only when a second reader has checked the names, the line numbers and the terms, and no review exists yet. | |
| 12 | + | |
| 13 | +What to reproduce, in `Problems/PVersusNP/Millennium.lean`: | |
| 14 | +1. Open each cited line and confirm the declaration name and the statement the guide's Chinese attributes to it: `Language` / 77, `InPolynomialTime` / 92, the string encoding / 217, `pair_encoding` / 158, `PolynomialTimeCheckingRelation` / 269, `InNondeterministicPolynomialTime` / 286, `PolynomialTimeReducible` / 297, `NondeterministicPolynomialTimeComplete` / 331. Two claims are easy to get wrong and worth reading closely: that the NP definition really bounds the certificate by `y.length ≤ (ea.encode a).length ^ k` with a finite alphabet `Γ₁`, and that the checking relation is stated over the `Sum.inl` / `Sum.inr none` / `Sum.inr (some b)` encoding the guide describes. | |
| 15 | +2. Read the five sentences in the Clay PDF (https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf) at §1 pp. 1–2 and §2 p. 4 (defs 3 and 4) against the quoted English, and the appendix against the single-tape description. | |
| 16 | +3. If you read Chinese, check that 多项式时间核对关系 and 多项式时间多对一归约 are the terms a Chinese textbook reader expects. | |
| 17 | + | |
| 18 | +Post the result as a review on this PR — that review is the closing condition #21 sets, not something a check can supply. | |
| 19 | + | |
| 20 | +Reproduce it with code of your own, then say what you found in a review of #70 (APPROVE or REQUEST_CHANGES): that review is what the maintainer reads #70 again on. Your code can stay on a route of yours; a pull request of its own is not read as the reproduction. | |