把「代数版 P ≠ NP」的机器证明审清楚、读懂
把 2026 年 11 月 AI 发布的「代数版 P ≠ NP」(VP ≠ VNP)Lean 证明审清楚、读懂:先由人逐条核对题面,再写成人能读的证明和科普。
State the problem, its rules and its check
Browse files+16 −0 AGENTS.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +# 给参与者的操作规则 | |
| 2 | + | |
| 3 | +先读 README.md 和 KNOWN.md。 | |
| 4 | + | |
| 5 | +1. 在任务板选任务并认领,写清范围。 | |
| 6 | +2. Lean 来源的具体位置还没确认(2026-11-28 在 `anthropics/formal-math` 顶层没看到 vp-vnp 目录)。维护者确认来源仓库和提交号之前,先不要开始审题面;确认后在路线 README 里写明。两家的仓库都是 Apache-2.0,注明出处可以引用。 | |
| 7 | +3. 题面人审交 `statement-review.json`,格式见 `examples/pass/`: | |
| 8 | + - `items`:每条有 `lean`(Lean 名字)、`plain`(人话)、`reference`(教科书出处)、`verdict`(`match` 或 `differs`),`differs` 必须有 `note`。 | |
| 9 | + - `author`:作者;`signatures`:至少两个,不能是作者本人。 | |
| 10 | +4. 提交前运行: | |
| 11 | + ```sh | |
| 12 | + python3 verify.py examples/pass # exit 0 | |
| 13 | + python3 verify.py examples/fail-one-signature # exit 1 | |
| 14 | + python3 verify.py routes/my-route | |
| 15 | + ``` | |
| 16 | +5. 自动检查只查格式和签字人数,不代替数学审查。维护者确认专家签字前,标注「尚未经专家审阅」。 | |
+9 −0 KNOWN.md added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +# 已知边界与容易误读的地方 | |
| 2 | + | |
| 3 | +- 证的是 **VP ≠ VNP**(代数电路、特征 0 的域上),不是 P ≠ NP。不要写成「P vs NP 已解决」。 | |
| 4 | +- VP 的定义有几种常见版本(多项式次数是否受限、是否允许常数、域的特征)。审题面时要写清 Lean 用的是哪一种。 | |
| 5 | +- VNP 完全性通常用积和式或哈密顿圈多项式来刻画,要核对 Lean 用的是哪一个,以及约化的种类(p-projection)。 | |
| 6 | +- 两份证明下界指数据报道为 4/3 和 5/4,未核对原文。 | |
| 7 | +- 10 月两家关于推翻 ETH 的声称,是另一件事,不在本题范围。 | |
| 8 | +- `anthropics/formal-math`(Apache-2.0)在 2026-11-28 顶层只有 3sum-apsp、eth、zeta23,没看到 vp-vnp;「vp-vnp 目录、7.3 万行」只来自新闻。`openai/math` 是 Apache-2.0。 | |
| 9 | +- 其余数字来自二手报道,引用前打开原仓库核对。 | |
+47 −0 README.md added View file
| @@ -0,0 +1,47 @@ | ||
| 1 | +# 把「代数版 P ≠ NP」的机器证明审清楚、读懂 | |
| 2 | + | |
| 3 | +千禧年难题攻坚专栏 · P vs NP | |
| 4 | + | |
| 5 | +## 背景 | |
| 6 | + | |
| 7 | +P vs NP 问:**能很快检查答案的问题,是不是都能很快算出答案?** 它是七道千禧年大奖难题之一,50 多年没有解决。 | |
| 8 | + | |
| 9 | +Valiant 1979 年提出了它的**代数版**:VP vs VNP。只问「用加法和乘法搭的电路」能不能高效算出某些多项式。 | |
| 10 | + | |
| 11 | +- **VP**:小电路能算的多项式,代表是**行列式**。 | |
| 12 | +- **VNP**:容易描述的多项式,代表是**积和式**(permanent:行列式去掉正负号)。 | |
| 13 | +- 猜想 VP ≠ VNP:积和式没有小电路。一般认为这是走向 P ≠ NP 的一步,但**不等于** P ≠ NP。 | |
| 14 | + | |
| 15 | +2026 年 11 月 23 日,据报道 Anthropic 和 OpenAI 隔几个小时各发布了一份 VP ≠ VNP 的证明,都带 Lean 形式化: | |
| 16 | + | |
| 17 | +| | Anthropic | OpenAI | | |
| 18 | +|---|---|---| | |
| 19 | +| 论文 | 约 70 页 | 约 30 页 | | |
| 20 | +| Lean | 约 7.3 万行(报道数字);`anthropics/formal-math` 里暂未看到 vp-vnp 目录,**位置待确认** | `openai/math`,具体路径待确认 | | |
| 21 | +| 许可 | 仓库 Apache-2.0 | 仓库 Apache-2.0 | | |
| 22 | + | |
| 23 | +**现在缺什么**:Lean 只保证「从这些定义推出了这个结论」。这些定义是不是教科书里的 VP、VNP,目前只有 AI 审过,没有人审过。原版 P vs NP 没有人碰。 | |
| 24 | + | |
| 25 | +## 我们要做什么 | |
| 26 | + | |
| 27 | +1. **题面人审(现在开放)**:把 Lean 题面文件逐条翻成人话,对照教科书,两位懂行的人签字。 | |
| 28 | +2. **科普**:写清楚代数版 P vs NP 是什么、离原题还有多远。 | |
| 29 | +3. **两份证明对照、重新编译、分章节**:之后每章一个任务,一人写、两人审。 | |
| 30 | + | |
| 31 | +## 规矩 | |
| 32 | + | |
| 33 | +- 不写「P vs NP 已解决」。 | |
| 34 | +- 每句数学判断指向 Lean 声明或文献。 | |
| 35 | +- 没有人类专家签字的内容,标注「尚未经专家审阅」。 | |
| 36 | +- 不收「我证明了 P ≠ NP」。 | |
| 37 | + | |
| 38 | +## 怎么参与 | |
| 39 | + | |
| 40 | +在任务板上挑一个任务认领。操作细则在 [AGENTS.md](AGENTS.md),已知的坑在 [KNOWN.md](KNOWN.md)。 | |
| 41 | + | |
| 42 | +## 来源(二手报道,原文待核对) | |
| 43 | + | |
| 44 | +- <https://vibemathlab.com/news/anthropic-vp-vnp-claim-2026-11> | |
| 45 | +- <https://kingy.ai/blog/p-vs-np-race-tracker/> | |
| 46 | +- Clay 题面:Cook, *The P versus NP Problem* | |
| 47 | +- Valiant (1979), *Completeness classes in algebra* | |
+5 −0 checks/verify.sbatch added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +#SBATCH --job-name=verify | |
| 3 | +#SBATCH --time=5:00 | |
| 4 | +# Approved code only; offline checks of route files, no downloads. | |
| 5 | +python3 verify.py "$SS_INPUT/$SS_ROUTE_DIR" | |
+7 −0 examples/README.md added View file
| @@ -0,0 +1,7 @@ | ||
| 1 | +# 虚构示例 | |
| 2 | + | |
| 3 | +这里的 Lean 名字(`Toy.*`)、作者和签字人全是虚构,不来自真实代码。 | |
| 4 | + | |
| 5 | +- `pass`:`python3 verify.py examples/pass` 应 exit 0,末行 `statement: 6 items reviewed, 2 signatures ok`。 | |
| 6 | +- `fail-one-signature`:只有一位签字人,应 exit 1。 | |
| 7 | +- `fail-verdict`:标了 `differs` 却没写差在哪,应 exit 1。 | |
+47 −0 examples/fail-one-signature/statement-review.json added View file
| @@ -0,0 +1,47 @@ | ||
| 1 | +{ | |
| 2 | + "example": true, | |
| 3 | + "source": "FICTIONAL-EXAMPLE", | |
| 4 | + "author": "fictional-writer", | |
| 5 | + "items": [ | |
| 6 | + { | |
| 7 | + "lean": "Toy.ArithCircuit", | |
| 8 | + "plain": "算术电路:输入是变量和常数,门是加法和乘法", | |
| 9 | + "reference": "Bürgisser 2000, §2.1", | |
| 10 | + "verdict": "match" | |
| 11 | + }, | |
| 12 | + { | |
| 13 | + "lean": "Toy.VP", | |
| 14 | + "plain": "多项式族,次数和电路大小都是 n 的多项式", | |
| 15 | + "reference": "Bürgisser 2000, §2.1", | |
| 16 | + "verdict": "match" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "lean": "Toy.VNP", | |
| 20 | + "plain": "VP 族对布尔立方体求和得到的族", | |
| 21 | + "reference": "Bürgisser 2000, §2.2", | |
| 22 | + "verdict": "match" | |
| 23 | + }, | |
| 24 | + { | |
| 25 | + "lean": "Toy.permanent", | |
| 26 | + "plain": "积和式:所有排列上乘积之和,不带正负号", | |
| 27 | + "reference": "Valiant 1979", | |
| 28 | + "verdict": "match" | |
| 29 | + }, | |
| 30 | + { | |
| 31 | + "lean": "Toy.hamCycle", | |
| 32 | + "plain": "哈密顿圈多项式", | |
| 33 | + "reference": "Bürgisser 2000, §3.1", | |
| 34 | + "verdict": "differs", | |
| 35 | + "note": "示例:Lean 版本只对有向图定义" | |
| 36 | + }, | |
| 37 | + { | |
| 38 | + "lean": "Toy.main", | |
| 39 | + "plain": "积和式族不在 VP 里", | |
| 40 | + "reference": "Valiant 1979 猜想", | |
| 41 | + "verdict": "match" | |
| 42 | + } | |
| 43 | + ], | |
| 44 | + "signatures": [ | |
| 45 | + "fictional-reviewer-one" | |
| 46 | + ] | |
| 47 | +} | |
+47 −0 examples/fail-verdict/statement-review.json added View file
| @@ -0,0 +1,47 @@ | ||
| 1 | +{ | |
| 2 | + "example": true, | |
| 3 | + "source": "FICTIONAL-EXAMPLE", | |
| 4 | + "author": "fictional-writer", | |
| 5 | + "items": [ | |
| 6 | + { | |
| 7 | + "lean": "Toy.ArithCircuit", | |
| 8 | + "plain": "算术电路:输入是变量和常数,门是加法和乘法", | |
| 9 | + "reference": "Bürgisser 2000, §2.1", | |
| 10 | + "verdict": "match" | |
| 11 | + }, | |
| 12 | + { | |
| 13 | + "lean": "Toy.VP", | |
| 14 | + "plain": "多项式族,次数和电路大小都是 n 的多项式", | |
| 15 | + "reference": "Bürgisser 2000, §2.1", | |
| 16 | + "verdict": "match" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "lean": "Toy.VNP", | |
| 20 | + "plain": "VP 族对布尔立方体求和得到的族", | |
| 21 | + "reference": "Bürgisser 2000, §2.2", | |
| 22 | + "verdict": "match" | |
| 23 | + }, | |
| 24 | + { | |
| 25 | + "lean": "Toy.permanent", | |
| 26 | + "plain": "积和式:所有排列上乘积之和,不带正负号", | |
| 27 | + "reference": "Valiant 1979", | |
| 28 | + "verdict": "match" | |
| 29 | + }, | |
| 30 | + { | |
| 31 | + "lean": "Toy.hamCycle", | |
| 32 | + "plain": "哈密顿圈多项式", | |
| 33 | + "reference": "Bürgisser 2000, §3.1", | |
| 34 | + "verdict": "differs" | |
| 35 | + }, | |
| 36 | + { | |
| 37 | + "lean": "Toy.main", | |
| 38 | + "plain": "积和式族不在 VP 里", | |
| 39 | + "reference": "Valiant 1979 猜想", | |
| 40 | + "verdict": "match" | |
| 41 | + } | |
| 42 | + ], | |
| 43 | + "signatures": [ | |
| 44 | + "fictional-reviewer-one", | |
| 45 | + "fictional-reviewer-two" | |
| 46 | + ] | |
| 47 | +} | |
+14 −0 examples/pass/statement-review.json added View file
| @@ -0,0 +1,14 @@ | ||
| 1 | +{ | |
| 2 | + "example": true, | |
| 3 | + "source": "FICTIONAL-EXAMPLE", | |
| 4 | + "author": "fictional-writer", | |
| 5 | + "items": [ | |
| 6 | + {"lean": "Toy.ArithCircuit", "plain": "算术电路:输入是变量和常数,门是加法和乘法", "reference": "Bürgisser 2000, §2.1", "verdict": "match"}, | |
| 7 | + {"lean": "Toy.VP", "plain": "多项式族,次数和电路大小都是 n 的多项式", "reference": "Bürgisser 2000, §2.1", "verdict": "match"}, | |
| 8 | + {"lean": "Toy.VNP", "plain": "VP 族对布尔立方体求和得到的族", "reference": "Bürgisser 2000, §2.2", "verdict": "match"}, | |
| 9 | + {"lean": "Toy.permanent", "plain": "积和式:所有排列上乘积之和,不带正负号", "reference": "Valiant 1979", "verdict": "match"}, | |
| 10 | + {"lean": "Toy.hamCycle", "plain": "哈密顿圈多项式", "reference": "Bürgisser 2000, §3.1", "verdict": "differs", "note": "示例:Lean 版本只对有向图定义"}, | |
| 11 | + {"lean": "Toy.main", "plain": "积和式族不在 VP 里", "reference": "Valiant 1979 猜想", "verdict": "match"} | |
| 12 | + ], | |
| 13 | + "signatures": ["fictional-reviewer-one", "fictional-reviewer-two"] | |
| 14 | +} | |
+12 −0 scienceslack.json added View file
| @@ -0,0 +1,12 @@ | ||
| 1 | +{ | |
| 2 | + "domain": "computer-science", | |
| 3 | + "topics": ["computational-complexity", "p-vs-np", "lean", "blueprint", "millennium-prize"], | |
| 4 | + "type": "proof", | |
| 5 | + "structure": "subproblems", | |
| 6 | + "verify": ["formal"], | |
| 7 | + "image": "python:3.12-slim", | |
| 8 | + "data": "Public route evidence; external Lean sources are identified by URL and commit.", | |
| 9 | + "checks": { "verify": "checks/verify.sbatch" }, | |
| 10 | + "approval": "maintainers", | |
| 11 | + "description": "把 2026 年 11 月 AI 发布的「代数版 P ≠ NP」(VP ≠ VNP)Lean 证明审清楚、读懂:先由人逐条核对题面,再写成人能读的证明和科普。" | |
| 12 | +} | |
+50 −0 verify.py added View file
| @@ -0,0 +1,50 @@ | ||
| 1 | +"""Check a statement-review route: every item translated, sourced and judged; two signatures other than the author.""" | |
| 2 | +import json, sys | |
| 3 | +from pathlib import Path | |
| 4 | + | |
| 5 | +VERDICTS = {"match", "differs"} | |
| 6 | + | |
| 7 | +def fail(msg): | |
| 8 | + print(f"rejected: {msg}") | |
| 9 | + sys.exit(1) | |
| 10 | + | |
| 11 | +def main(): | |
| 12 | + if len(sys.argv) != 2: | |
| 13 | + fail("usage: python3 verify.py <route folder>") | |
| 14 | + f = Path(sys.argv[1]) / "statement-review.json" | |
| 15 | + if not f.exists(): | |
| 16 | + fail("statement-review.json missing") | |
| 17 | + try: | |
| 18 | + d = json.loads(f.read_text(encoding="utf-8")) | |
| 19 | + except ValueError as e: | |
| 20 | + fail(f"statement-review.json is not JSON: {e}") | |
| 21 | + if d.get("example"): | |
| 22 | + print("EXAMPLE ONLY: fictional names and signatures; not evidence") | |
| 23 | + items = d.get("items") | |
| 24 | + if not isinstance(items, list) or not items: | |
| 25 | + fail("items must be a nonempty list") | |
| 26 | + seen = set() | |
| 27 | + for i, it in enumerate(items, 1): | |
| 28 | + for k in ("lean", "plain", "reference", "verdict"): | |
| 29 | + if not isinstance(it.get(k), str) or not it[k].strip(): | |
| 30 | + fail(f"item {i}: {k} missing") | |
| 31 | + if it["lean"] in seen: | |
| 32 | + fail(f"item {i}: {it['lean']} listed twice") | |
| 33 | + seen.add(it["lean"]) | |
| 34 | + if it["verdict"] not in VERDICTS: | |
| 35 | + fail(f"item {i}: verdict must be match or differs") | |
| 36 | + if it["verdict"] == "differs" and not str(it.get("note", "")).strip(): | |
| 37 | + fail(f"item {i}: {it['lean']} differs but the note saying how is missing") | |
| 38 | + author = str(d.get("author", "")).strip() | |
| 39 | + if not author: | |
| 40 | + fail("author missing") | |
| 41 | + sigs = {s.strip() for s in d.get("signatures", []) if isinstance(s, str) and s.strip()} | |
| 42 | + sigs.discard(author) | |
| 43 | + if len(sigs) < 2: | |
| 44 | + fail(f"need 2 signatures other than the author, found {len(sigs)}") | |
| 45 | + differs = sum(it["verdict"] == "differs" for it in items) | |
| 46 | + if differs: | |
| 47 | + print(f"note: {differs} item(s) differ from the textbook; see their notes") | |
| 48 | + print(f"statement: {len(items)} items reviewed, {len(sigs)} signatures ok") | |
| 49 | + | |
| 50 | +main() | |