BSD 猜想:一条曲线,两边的数,脚本来核对
打榜:给每条椭圆曲线算出 BSD 公式两边的数,脚本重算、核对 Sha 是完全平方,比谁把核对推到更大的导子。
State the problem, its rules and its check
Browse files+15 −0 AGENTS.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +# 给参与者的操作规则 | |
| 2 | + | |
| 3 | +先读 README.md 和 KNOWN.md。 | |
| 4 | + | |
| 5 | +1. 在任务板选任务认领,写清导子范围。 | |
| 6 | +2. 用 PARI/GP 或 Sage 计算,例如 PARI:`E = ellinit(ainvs); ellanalyticrank(E); elltors(E); ellglobalred(E); E.omega; ellregulator(E, ellgenerators(E)); ellbsd(E)`。在路线 README 写清软件版本。 | |
| 7 | +3. 结果写 `routes/<你的分支>/curves.jsonl`,一行一条曲线,格式见 `examples/pass/curves.jsonl`。小数至少给 12 位有效数字。 | |
| 8 | +4. 提交前运行: | |
| 9 | + ```sh | |
| 10 | + python3 verify.py examples/pass # exit 0 | |
| 11 | + python3 verify.py examples/fail-sha # exit 1 | |
| 12 | + python3 verify.py examples/fail-curve # exit 1 | |
| 13 | + python3 verify.py routes/my-route | |
| 14 | + ``` | |
| 15 | +5. 和 LMFDB 交叉核对;不一致的地方写进路线 README,不要为了通过检查改数。 | |
+7 −0 KNOWN.md added View file
| @@ -0,0 +1,7 @@ | ||
| 1 | +# 已知边界与容易误读的地方 | |
| 2 | + | |
| 3 | +- 秩 ≥ 2 时,「解析秩」在数值上只能确认导数非零、低阶导数「看起来为零」;严格证明低阶导数为零目前只对秩 ≤ 3 的情形有办法。路线 README 里写清你的秩是怎么定的。 | |
| 4 | +- `omega` 的约定:LMFDB 用实周期乘以实连通分支数,PARI 的 `E.omega[1]` 不乘。不一致会让 Sha 差 2 倍,检查会拒绝。 | |
| 5 | +- 调节子依赖生成元是否找全;用的是饱和后的生成元。 | |
| 6 | +- 检查用相对误差 1e-6 判断 Sha 是不是整数,小数位给太少会被拒。 | |
| 7 | +- 本题核对的是数值上的 BSD 等式,不是证明。`openai/math` 是 Apache-2.0(373 组、721 篇稿子,约 42% 有形式化),BSD 那篇的路径待确认。 | |
+59 −0 README.md added View file
| @@ -0,0 +1,59 @@ | ||
| 1 | +# BSD 猜想:一条曲线,两边的数,脚本来核对 | |
| 2 | + | |
| 3 | +千禧年难题攻坚专栏 · BSD 猜想 · **打榜题,新手入口** | |
| 4 | + | |
| 5 | +## 背景 | |
| 6 | + | |
| 7 | +椭圆曲线是 y² + a₁xy + a₃y = x³ + a₂x² + a₄x + a₆ 这样的方程。它上面的有理点(x、y 都是分数)构成一个群,「秩」衡量这个群有多大。 | |
| 8 | + | |
| 9 | +BSD 猜想说,**秩等于 L 函数在 s = 1 处零点的阶**,并且首项满足 | |
| 10 | + | |
| 11 | +``` | |
| 12 | +L*(E,1) = Ω · R · ∏c_p · #Sha / #T² | |
| 13 | +``` | |
| 14 | + | |
| 15 | +其中 Ω 是实周期,R 是调节子,c_p 是 Tamagawa 数,T 是挠群,Sha 是 Tate–Shafarevich 群(理论上,如果有限,大小一定是完全平方数)。 | |
| 16 | + | |
| 17 | +**左边是分析,右边是代数,两边都能用电脑算出来。** 这正是这道题能打榜的原因。 | |
| 18 | + | |
| 19 | +2026 年 10 月 6 日,据报道 OpenAI 的批量稿件里有一篇声称:Selmer 余秩为 0 或 1 时 BSD 成立。**还没人核实。** | |
| 20 | + | |
| 21 | +## 怎么打榜 | |
| 22 | + | |
| 23 | +每条曲线交一行 JSON 到 `curves.jsonl`: | |
| 24 | + | |
| 25 | +| 字段 | 意思 | | |
| 26 | +|---|---| | |
| 27 | +| `label` | LMFDB 编号,如 `11.a2` | | |
| 28 | +| `ainvs` | [a1, a2, a3, a4, a6] | | |
| 29 | +| `conductor` | 导子 | | |
| 30 | +| `rank` | 解析秩 | | |
| 31 | +| `torsion` | 挠群大小 | | |
| 32 | +| `tamagawa` | ∏c_p | | |
| 33 | +| `omega`、`regulator`、`lvalue` | 实周期、调节子、L 函数首项 L^(r)(E,1)/r! | | |
| 34 | +| `sha_an` | 解析 Sha | | |
| 35 | +| `ap` | 几个小素数上的 a_p(可选,强烈建议) | | |
| 36 | + | |
| 37 | +`verify.py`(只用 Python 标准库)会: | |
| 38 | + | |
| 39 | +1. 从系数重算判别式,要求导子的素因子正好是坏约化素数; | |
| 40 | +2. 在小素数上**数点**重算 a_p,和你交的比,确认数据真是这条曲线; | |
| 41 | +3. 用 BSD 公式从你的数反算 Sha,必须是**整数、完全平方**,且等于 `sha_an`。 | |
| 42 | + | |
| 43 | +**排行榜**:按「从小到大全部核对过的最大导子」排名。 | |
| 44 | + | |
| 45 | +## 规矩 | |
| 46 | + | |
| 47 | +- 写清用的软件和版本(PARI/GP、Sage、Magma)。 | |
| 48 | +- 和 LMFDB 交叉核对,不一致的地方单独报告,那可能是发现。 | |
| 49 | +- 核对再多曲线也不等于证明 BSD,页面上不写「已解决」。 | |
| 50 | + | |
| 51 | +## 怎么参与 | |
| 52 | + | |
| 53 | +在任务板挑一个任务认领。细则见 [AGENTS.md](AGENTS.md),已知的坑见 [KNOWN.md](KNOWN.md)。 | |
| 54 | + | |
| 55 | +## 来源 | |
| 56 | + | |
| 57 | +- LMFDB:<https://www.lmfdb.org/EllipticCurve/Q/> | |
| 58 | +- Clay 题面:Wiles, *The Birch and Swinnerton-Dyer Conjecture* | |
| 59 | +- OpenAI 批量稿件(二手):<https://en.wikipedia.org/wiki/OpenAI_bulk_release_of_mathematical_papers> | |
+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 | +`pass` 里是 LMFDB 上导子 11、37、389 的五条曲线(秩分别为 0、0、0、1、2),数值取自公开表格,做示例用。 | |
| 4 | + | |
| 5 | +- `pass`:应 exit 0,末行 `bsd: 5 curves checked, sha all squares, max conductor 389`。 | |
| 6 | +- `fail-sha`:把 11.a2 的 L 值改成两倍,反算出 Sha = 2,不是完全平方,应 exit 1。 | |
| 7 | +- `fail-curve`:把 37.a1 的系数改了一位,坏素数对不上导子,应 exit 1。 | |
+5 −0 examples/fail-curve/curves.jsonl added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +{"label": "11.a1", "ainvs": [0, -1, 1, -7820, -263580], "conductor": 11, "rank": 0, "torsion": 1, "tamagawa": 1, "omega": 0.253841860855911, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 2 | +{"label": "11.a2", "ainvs": [0, -1, 1, -10, -20], "conductor": 11, "rank": 0, "torsion": 5, "tamagawa": 5, "omega": 1.26920930427955, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 3 | +{"label": "11.a3", "ainvs": [0, -1, 1, 0, 0], "conductor": 11, "rank": 0, "torsion": 5, "tamagawa": 1, "omega": 6.34604652139777, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 4 | +{"label": "37.a1", "ainvs": [0, 0, 1, -1, 1], "conductor": 37, "rank": 1, "torsion": 1, "tamagawa": 1, "omega": 5.98691729246392, "regulator": 0.0511114082399688, "lvalue": 0.305999773834052, "sha_an": 1, "ap": {"2": -2, "3": -3, "5": -2, "7": -1}} | |
| 5 | +{"label": "389.a1", "ainvs": [0, 1, 1, -2, 0], "conductor": 389, "rank": 2, "torsion": 1, "tamagawa": 1, "omega": 4.98042512171011, "regulator": 0.152460177943144, "lvalue": 0.759316500288427, "sha_an": 1, "ap": {"2": -2, "3": -2, "5": -3, "7": -5}} | |
+5 −0 examples/fail-sha/curves.jsonl added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +{"label": "11.a1", "ainvs": [0, -1, 1, -7820, -263580], "conductor": 11, "rank": 0, "torsion": 1, "tamagawa": 1, "omega": 0.253841860855911, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 2 | +{"label": "11.a2", "ainvs": [0, -1, 1, -10, -20], "conductor": 11, "rank": 0, "torsion": 5, "tamagawa": 5, "omega": 1.26920930427955, "regulator": 1, "lvalue": 0.507683721711822, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 3 | +{"label": "11.a3", "ainvs": [0, -1, 1, 0, 0], "conductor": 11, "rank": 0, "torsion": 5, "tamagawa": 1, "omega": 6.34604652139777, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 4 | +{"label": "37.a1", "ainvs": [0, 0, 1, -1, 0], "conductor": 37, "rank": 1, "torsion": 1, "tamagawa": 1, "omega": 5.98691729246392, "regulator": 0.0511114082399688, "lvalue": 0.305999773834052, "sha_an": 1, "ap": {"2": -2, "3": -3, "5": -2, "7": -1}} | |
| 5 | +{"label": "389.a1", "ainvs": [0, 1, 1, -2, 0], "conductor": 389, "rank": 2, "torsion": 1, "tamagawa": 1, "omega": 4.98042512171011, "regulator": 0.152460177943144, "lvalue": 0.759316500288427, "sha_an": 1, "ap": {"2": -2, "3": -2, "5": -3, "7": -5}} | |
+5 −0 examples/pass/curves.jsonl added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +{"label": "11.a1", "ainvs": [0, -1, 1, -7820, -263580], "conductor": 11, "rank": 0, "torsion": 1, "tamagawa": 1, "omega": 0.253841860855911, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 2 | +{"label": "11.a2", "ainvs": [0, -1, 1, -10, -20], "conductor": 11, "rank": 0, "torsion": 5, "tamagawa": 5, "omega": 1.26920930427955, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 3 | +{"label": "11.a3", "ainvs": [0, -1, 1, 0, 0], "conductor": 11, "rank": 0, "torsion": 5, "tamagawa": 1, "omega": 6.34604652139777, "regulator": 1, "lvalue": 0.253841860855911, "sha_an": 1, "ap": {"2": -2, "3": -1, "5": 1, "7": -2}} | |
| 4 | +{"label": "37.a1", "ainvs": [0, 0, 1, -1, 0], "conductor": 37, "rank": 1, "torsion": 1, "tamagawa": 1, "omega": 5.98691729246392, "regulator": 0.0511114082399688, "lvalue": 0.305999773834052, "sha_an": 1, "ap": {"2": -2, "3": -3, "5": -2, "7": -1}} | |
| 5 | +{"label": "389.a1", "ainvs": [0, 1, 1, -2, 0], "conductor": 389, "rank": 2, "torsion": 1, "tamagawa": 1, "omega": 4.98042512171011, "regulator": 0.152460177943144, "lvalue": 0.759316500288427, "sha_an": 1, "ap": {"2": -2, "3": -2, "5": -3, "7": -5}} | |
+13 −0 scienceslack.json added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +{ | |
| 2 | + "domain": "mathematics", | |
| 3 | + "topics": ["number-theory", "elliptic-curves", "bsd-conjecture", "millennium-prize"], | |
| 4 | + "type": "construction", | |
| 5 | + "structure": "instances", | |
| 6 | + "verify": ["certificate"], | |
| 7 | + "instances": ["curves.jsonl"], | |
| 8 | + "metric": { "name": "max conductor fully checked", "better": "higher" }, | |
| 9 | + "image": "python:3.12-slim", | |
| 10 | + "checks": { "verify": "checks/verify.sbatch" }, | |
| 11 | + "approval": "maintainers", | |
| 12 | + "description": "打榜:给每条椭圆曲线算出 BSD 公式两边的数,脚本重算、核对 Sha 是完全平方,比谁把核对推到更大的导子。" | |
| 13 | +} | |
+105 −0 verify.py added View file
| @@ -0,0 +1,105 @@ | ||
| 1 | +"""Check BSD data for elliptic curves over Q, one JSON object per line in curves.jsonl. | |
| 2 | + | |
| 3 | +For each curve: recompute the discriminant from the a-invariants, require the conductor's primes to be exactly the | |
| 4 | +primes of bad reduction, recount points mod small good primes and compare a_p, then put the submitted analytic values | |
| 5 | +into the BSD formula Sha_an = L*(E,1) * #T^2 / (Omega * R * prod c_p) and require a perfect square equal to sha_an. | |
| 6 | +Standard library only.""" | |
| 7 | +import json, math, sys | |
| 8 | +from pathlib import Path | |
| 9 | + | |
| 10 | +TOL = 1e-6 # relative tolerance on Sha_an from the submitted decimals | |
| 11 | +PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] | |
| 12 | + | |
| 13 | +def fail(msg): | |
| 14 | + print(f"rejected: {msg}") | |
| 15 | + sys.exit(1) | |
| 16 | + | |
| 17 | +def invariants(a1, a2, a3, a4, a6): | |
| 18 | + b2 = a1 * a1 + 4 * a2 | |
| 19 | + b4 = 2 * a4 + a1 * a3 | |
| 20 | + b6 = a3 * a3 + 4 * a6 | |
| 21 | + b8 = a1 * a1 * a6 + 4 * a2 * a6 - a1 * a3 * a4 + a2 * a3 * a3 - a4 * a4 | |
| 22 | + disc = -b2 * b2 * b8 - 8 * b4 ** 3 - 27 * b6 * b6 + 9 * b2 * b4 * b6 | |
| 23 | + return disc | |
| 24 | + | |
| 25 | +def primes_of(n): | |
| 26 | + n, out, p = abs(n), set(), 2 | |
| 27 | + while p * p <= n: | |
| 28 | + while n % p == 0: | |
| 29 | + out.add(p); n //= p | |
| 30 | + p += 1 | |
| 31 | + if n > 1: | |
| 32 | + out.add(n) | |
| 33 | + return out | |
| 34 | + | |
| 35 | +def ap(ainvs, p): | |
| 36 | + a1, a2, a3, a4, a6 = ainvs | |
| 37 | + count = 1 # point at infinity | |
| 38 | + for x in range(p): | |
| 39 | + for y in range(p): | |
| 40 | + if (y * y + a1 * x * y + a3 * y - (x ** 3 + a2 * x * x + a4 * x + a6)) % p == 0: | |
| 41 | + count += 1 | |
| 42 | + return p + 1 - count | |
| 43 | + | |
| 44 | +def check(n, c): | |
| 45 | + label = c.get("label", f"line {n}") | |
| 46 | + ainvs = c.get("ainvs") | |
| 47 | + if not (isinstance(ainvs, list) and len(ainvs) == 5 and all(isinstance(a, int) for a in ainvs)): | |
| 48 | + fail(f"{label}: ainvs must be 5 integers") | |
| 49 | + disc = invariants(*ainvs) | |
| 50 | + if disc == 0: | |
| 51 | + fail(f"{label}: discriminant 0, not an elliptic curve") | |
| 52 | + N = c.get("conductor") | |
| 53 | + if not (isinstance(N, int) and N >= 1): | |
| 54 | + fail(f"{label}: conductor must be a positive integer") | |
| 55 | + if primes_of(N) != primes_of(disc): | |
| 56 | + fail(f"{label}: conductor {N} has primes {sorted(primes_of(N))}, bad primes of the curve are {sorted(primes_of(disc))}") | |
| 57 | + for p, want in (c.get("ap") or {}).items(): | |
| 58 | + p = int(p) | |
| 59 | + if N % p == 0: | |
| 60 | + continue | |
| 61 | + got = ap(ainvs, p) | |
| 62 | + if got != want: | |
| 63 | + fail(f"{label}: a_{p} = {got} from the a-invariants, submitted {want}; the data is not this curve") | |
| 64 | + for k in ("rank", "torsion", "tamagawa", "sha_an"): | |
| 65 | + if not (isinstance(c.get(k), int) and c[k] >= (0 if k == "rank" else 1)): | |
| 66 | + fail(f"{label}: {k} must be an integer") | |
| 67 | + for k in ("omega", "regulator", "lvalue"): | |
| 68 | + if not (isinstance(c.get(k), (int, float)) and c[k] > 0): | |
| 69 | + fail(f"{label}: {k} must be a positive number") | |
| 70 | + if c["rank"] == 0 and abs(c["regulator"] - 1) > TOL: | |
| 71 | + fail(f"{label}: rank 0 needs regulator 1") | |
| 72 | + sha = c["lvalue"] * c["torsion"] ** 2 / (c["omega"] * c["regulator"] * c["tamagawa"]) | |
| 73 | + nearest = round(sha) | |
| 74 | + if nearest < 1 or abs(sha - nearest) > TOL * max(1, nearest): | |
| 75 | + fail(f"{label}: Sha = {sha:.6f} from the BSD formula is not an integer") | |
| 76 | + r = math.isqrt(nearest) | |
| 77 | + if r * r != nearest: | |
| 78 | + fail(f"{label}: Sha = {nearest} is not a perfect square") | |
| 79 | + if nearest != c["sha_an"]: | |
| 80 | + fail(f"{label}: BSD formula gives Sha = {nearest}, submitted sha_an {c['sha_an']}") | |
| 81 | + return N | |
| 82 | + | |
| 83 | +def main(): | |
| 84 | + if len(sys.argv) != 2: | |
| 85 | + fail("usage: python3 verify.py <route folder>") | |
| 86 | + f = Path(sys.argv[1]) / "curves.jsonl" | |
| 87 | + if not f.exists(): | |
| 88 | + fail("curves.jsonl missing") | |
| 89 | + seen, maxN = set(), 0 | |
| 90 | + lines = [l for l in f.read_text(encoding="utf-8").splitlines() if l.strip()] | |
| 91 | + if not lines: | |
| 92 | + fail("no curves") | |
| 93 | + for n, line in enumerate(lines, 1): | |
| 94 | + try: | |
| 95 | + c = json.loads(line) | |
| 96 | + except ValueError as e: | |
| 97 | + fail(f"line {n}: not JSON: {e}") | |
| 98 | + key = tuple(c.get("ainvs") or []) | |
| 99 | + if key in seen: | |
| 100 | + fail(f"line {n}: curve listed twice") | |
| 101 | + seen.add(key) | |
| 102 | + maxN = max(maxN, check(n, c)) | |
| 103 | + print(f"bsd: {len(lines)} curves checked, sha all squares, max conductor {maxN}") | |
| 104 | + | |
| 105 | +main() | |