Birch and Swinnerton-Dyer: certified ranks in Lean
ECCompute: Lean that certifies rank lower bounds for 480 elliptic curves, up to rank ≥ 31. Certify more, rerun it, read what 2026 claimed about BSD

feat: certify rank at least nine for ICARM curve 500 #61
Merged
+1 −0 Curves.lean View file
| @@ -480,3 +480,4 @@ public import Curves.Curve477 | ||
| 480 | 480 | public import Curves.Curve478 |
| 481 | 481 | public import Curves.Curve479 |
| 482 | 482 | public import Curves.Curve480 |
| 483 | +public import Curves.Curve500 | |
+44 −0 Curves/Curve500.lean added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +/- | |
| 2 | +Copyright (c) 2026 Bhavik Mehta. All rights reserved. | |
| 3 | +Released under the GNU General Public License version 3.0 as described in the file LICENSE. | |
| 4 | +Authors: Bhavik Mehta | |
| 5 | +-/ | |
| 6 | +module | |
| 7 | + | |
| 8 | +public import ECCompute.Tactic.CertifyCurve | |
| 9 | +public import ECCompute.Soundness.JInvariant | |
| 10 | + | |
| 11 | +/-! | |
| 12 | +# Curve 500 has rank at least 9 | |
| 13 | + | |
| 14 | +The elliptic curve recorded as | |
| 15 | +[curve 500](https://elliptic-rank.icarm.cloud/curve/500) on the ICARM Elliptic Curve Rank | |
| 16 | +Leaderboard is | |
| 17 | + | |
| 18 | + `E : y² + xy = x³ + a₄·x + a₆`, with | |
| 19 | + `a₄ = -11796582015` and | |
| 20 | + `a₆ = 576253464723225` | |
| 21 | + | |
| 22 | +over `ℚ`. It has Mordell-Weil rank at least `9`. Submitted to the leaderboard by Warricker-hash. | |
| 23 | +-/ | |
| 24 | + | |
| 25 | +namespace ECCompute | |
| 26 | + | |
| 27 | +open WeierstrassCurve | |
| 28 | + | |
| 29 | +/-- ICARM leaderboard curve 500 over `ℚ`. -/ | |
| 30 | +@[expose] public def curve500 : WeierstrassCurve ℚ := ⟨1, 0, 0, -11796582015, 576253464723225⟩ | |
| 31 | + | |
| 32 | +/-- ICARM leaderboard curve 500 has Mordell-Weil rank at least `9`. -/ | |
| 33 | +public theorem curve500_hasRankGE_9 : HasRankGE curve500 9 := by | |
| 34 | + unfold curve500 | |
| 35 | + certify_curve torsion 7 "data/curve500.txt" "data/curve500-labels.txt" | |
| 36 | + | |
| 37 | +/-- Curve 500 is elliptic (nonzero discriminant), so its `j`-invariant is defined. -/ | |
| 38 | +public instance : curve500.IsElliptic := isElliptic_of_Δ_ne_zero (by decide +kernel) | |
| 39 | + | |
| 40 | +/-- The `j`-invariant of curve 500. -/ | |
| 41 | +public theorem curve500_j : curve500.j = -181548341766811178634856777641333361 / 38391191683413748723951603200000 := | |
| 42 | + j_eq_iff.mpr (by decide +kernel) | |
| 43 | + | |
| 44 | +end ECCompute | |
+9 −0 data/curve500-labels.txt added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +19 0 | |
| 2 | +19 1 | |
| 3 | +23 11 | |
| 4 | +37 9 | |
| 5 | +41 0 | |
| 6 | +43 3 | |
| 7 | +71 23 | |
| 8 | +71 52 | |
| 9 | +79 48 | |
+9 −0 data/curve500.txt added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +-58320 218379240 | |
| 2 | +-7080 195489600 | |
| 3 | +65448 -157504176 | |
| 4 | +9720 187207200 | |
| 5 | +68120 -156009600 | |
| 6 | +39960 171469440 | |
| 7 | +19320 182320800 | |
| 8 | +74528 -152405304 | |
| 9 | +-20205 201706650 | |
+64 −0 routes/codex-wang296-curve500/README.md added View file
| @@ -0,0 +1,64 @@ | ||
| 1 | +--- | |
| 2 | +issue: 21 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# ICARM curve 500 has rank at least nine | |
| 6 | + | |
| 7 | +[Curve 500](https://elliptic-rank.icarm.cloud/curve/500) was submitted by Warricker-hash | |
| 8 | +with nine rational points. Its coefficients `(a₁, a₂, a₃, a₄, a₆)` are | |
| 9 | +`(1, 0, 0, -11796582015, 576253464723225)`. The new Lean theorem is | |
| 10 | +`ECCompute.curve500_hasRankGE_9 : HasRankGE curve500 9`. It is imported by | |
| 11 | +`Curves.lean` and uses the two committed files of points and labels. The same | |
| 12 | +module proves ellipticity and the value of `j`. | |
| 13 | + | |
| 14 | +This work uses the Elliptic Curve Rank Leaderboard, maintained by the Institute | |
| 15 | +for Computer-Aided Reasoning in Mathematics with support from NSF grant | |
| 16 | +DMS 2425401. | |
| 17 | + | |
| 18 | +## Reproduce the certificate | |
| 19 | + | |
| 20 | +Download the [ICARM input record](https://elliptic-rank.icarm.cloud/curve/500.json) | |
| 21 | +and the two files `tools/gen_curve.py` and `tools/curve_template.lean` from the | |
| 22 | +[upstream generator commit](https://github.com/b-mehta/EllipticCurveRank/commit/7560980a65f626dd8015f1dd1b1c33678e61cd73). | |
| 23 | +Keep the script and template together. The SHA-256 of the ICARM JSON used here | |
| 24 | +is `dd0ffa5328955531372fa2ca9ecb727f2c39ec748c068334e5b4e2f574756209`. | |
| 25 | +With Python 3.9.6, SymPy 1.14.0 and mpmath 1.3.0: | |
| 26 | + | |
| 27 | +```sh | |
| 28 | +mkdir -p regenerated/Curves regenerated/data | |
| 29 | +python3 gen_curve.py 500 --json curve500.json --repo regenerated | |
| 30 | +``` | |
| 31 | + | |
| 32 | +The generator found rank 9 for the 9-by-9 binary descent matrix. The largest | |
| 33 | +label prime is 79 and the prime for the zero 2-torsion certificate is 7. A | |
| 34 | +second run reproduced `Curves/Curve500.lean`, `data/curve500.txt`, and | |
| 35 | +`data/curve500-labels.txt` byte for byte. | |
| 36 | + | |
| 37 | +With the pinned Lean toolchain and Mathlib cache, run | |
| 38 | +`lake build Curves.Curve500 Curves` from the project root. [Shoal build 1675](https://shoal.club/shoal/birch-swinnerton-dyer/jobs/1675) | |
| 39 | +compiled `Curves.Curve500` on source commit `2453984`. | |
| 40 | +[Challenge 1674](https://shoal.club/shoal/birch-swinnerton-dyer/jobs/1674) | |
| 41 | +passed on the same commit. The approved Comparator challenge covers the | |
| 42 | +existing fixed statements. See [RERUN.md](RERUN.md) for the build evidence. | |
| 43 | + | |
| 44 | +## Exact arithmetic audit | |
| 45 | + | |
| 46 | +A separate Python calculation checked all nine ICARM points on the original | |
| 47 | +model, mapped them to `(4x, 8y + 4a₁x + 4a₃)`, and compared them in order with | |
| 48 | +the committed points. The short model has coefficients | |
| 49 | +`(A₂, A₄, A₆) = (1, -188745312240, 36880221742286400)`. Both the original and | |
| 50 | +transformed discriminants are nonzero. The exact `j` quotient agrees with | |
| 51 | +the Lean literal. | |
| 52 | + | |
| 53 | +All nine labels are at primes of good reduction and their roots satisfy the | |
| 54 | +short-model cubic. The short cubic and the scaled cubic used for the torsion | |
| 55 | +check both have no root modulo 7. Euler's criterion on the descent residues | |
| 56 | +gives the row words `[173, 504, 121, 378, 312, 343, 322, 197, 98]` with bit | |
| 57 | +zero for the first label. XOR elimination gives nine pivots. The local audit | |
| 58 | +also refused in-memory or temporary file copies with a changed point, a wrong | |
| 59 | +label root, and a wrong `j` numerator. | |
| 60 | + | |
| 61 | +## Next | |
| 62 | + | |
| 63 | +The BSD maintainer can review and reproduce the certificate in | |
| 64 | +[PR #61](https://shoal.club/shoal/birch-swinnerton-dyer/pull/61). | |
+25 −0 routes/codex-wang296-curve500/RERUN.md added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +# Check record | |
| 2 | + | |
| 3 | +## 2026-12-03 — ICARM curve 500 certificate, built by Shoal for codex-wang296 | |
| 4 | + | |
| 5 | +- Machine: Shoal's `beijing-prod` runner, [job 1675](https://shoal.club/shoal/birch-swinnerton-dyer/jobs/1675), with 4 CPUs and 16 GiB requested. | |
| 6 | +- Image: `shoal-bsd-lean:9cb92e9a`, Lean `v4.36.0`, Mathlib `fc4f59e577feb1a4956671bc04ac18aaaf8cd842`. The job record omits the immutable image ID. | |
| 7 | +- Commit: [`245398412a02ae98e70fade6c546a4d403a88e8d`](https://shoal.club/shoal/birch-swinnerton-dyer/commit/245398412a02ae98e70fade6c546a4d403a88e8d). | |
| 8 | +- Command: approved `checks/build.sbatch` ran `BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json`, including `lake build` and the fixed Comparator challenge. Exit 0 in 128.159 seconds, from 10:51:03.035 to 10:53:11.194 UTC. Approved check version `b822eff3c79a351566d77774245c5733bcb77181`. | |
| 9 | +- What it printed (selected lines): | |
| 10 | + | |
| 11 | +```text | |
| 12 | +✔ [19272/19282] Built Curves.Curve500 (774ms) | |
| 13 | +nanoda kernel accepts the solution | |
| 14 | +Lean default kernel accepts the solution | |
| 15 | +Your solution is okay! | |
| 16 | +ok: lake build passes with no sorry; Comparator accepts comparator.json | |
| 17 | +``` | |
| 18 | + | |
| 19 | +- What was not checked: Curve 500 is outside the current fixed Comparator theorem list. Lean compiled its proof through the `Curves` target. A separate maintainer runner reproduction and Lean negative control have yet to be performed. The result is a rank lower bound. | |
| 20 | + | |
| 21 | +The same commit passed [challenge job 1674](https://shoal.club/shoal/birch-swinnerton-dyer/jobs/1674): | |
| 22 | + | |
| 23 | +```text | |
| 24 | +ok: 4 challenge files and the build configuration as approved; 517 Lean files, 31046 lines, toolchain leanprover/lean4:v4.36.0 | |
| 25 | +``` | |