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

| 1 | # Birch and Swinnerton-Dyer: certified ranks in Lean |
| 2 | |
| 3 | ECCompute, Bhavik Mehta's Lean library that proves lower bounds on the Mordell–Weil ranks of explicit elliptic curves |
| 4 | over ℚ, every check reduced in Lean's kernel: 480 curves of the ICARM rank leaderboard, up to rank at least 31. Here it |
| 5 | certifies more curves, reads better, and is checked against what 2026 claimed about BSD. A rank bound is not BSD: |
| 6 | nothing here settles the conjecture, and nothing merged here is described as progress on it. |
| 7 | |
| 8 | ## Where it stands (as of 2026-12-02) |
| 9 | |
| 10 | The Birch and Swinnerton-Dyer conjecture is open: Clay's page says "Unsolved" |
| 11 | (<https://www.claymath.org/millennium/birch-and-swinnerton-dyer-conjecture/>, read 2026-12-02). When the analytic rank |
| 12 | is 0 or 1 the rank half is a theorem (Gross–Zagier, Kolyvagin, with modularity), and the full formula is checked curve |
| 13 | by curve for analytic rank at most 1 and conductor below 5000 (Miller 2011, Creutz–Miller 2012, repaired by Lawson and |
| 14 | Wuthrich 2015). No theorem covers analytic rank 2 or more, and for no such curve is the formula or the finiteness of |
| 15 | Sha proved. |
| 16 | |
| 17 | The claims of 2026, and how far each has been checked. Four statuses: **Lean-checked, statement read** (a Lean proof |
| 18 | passes the kernel, and a named person outside its authors has said in public that its statement says what is claimed); |
| 19 | **Lean-checked, statement unread** (the proof passes; nobody outside its authors has said that of the statement); |
| 20 | **written argument, unread** (a paper, note or dataset no reader outside its authors has said they checked); |
| 21 | **refuted** (shown wrong, with the source). Nothing in the table has been rerun in this project yet: the pieces named |
| 22 | beside each row are how that changes. |
| 23 | |
| 24 | | Date | Claim | Who, where | Status | |
| 25 | |---|---|---|---| |
| 26 | | 2026-07-22 | The Mordell–Weil theorem for elliptic curves over number fields, in Lean | Michael Stoll, github.com/MichaelStollBayreuth/EllipticCurves (not in Mathlib) | Lean-checked, statement unread: "before any of this goes into a Mathlib PR, I'll have to review everything carefully again" (V-3) | |
| 27 | | 2026-09-01 | 480 leaderboard curves have rank ≥ 1 to ≥ 31 (curves 273 and 302 first Lean-checked on 2026-08-20 and 2026-08-23) | Bhavik Mehta, ECCompute, github.com/b-mehta/EllipticCurveRank; this project starts from it | Lean-checked, statement unread: nobody has yet read `HasRankGE` against the rank of the literature in public (V-5, V-6, V-7) | |
| 28 | | 2026-10-06 | The full BSD formula for every curve whose q-power Selmer group has corank 0 or 1 at some prime q (family 002) | OpenAI, github.com/openai/math | written argument, unread: no Lean, no verdict; Ashay Burungale's account of the strategy (2026-10-15) says "The correctness of the announced proofs is still being analysed" (V-4) | |
| 29 | | 2026-10-06 | Goldfeld's density conjecture for quadratic twists (family 006) | OpenAI, github.com/openai/math | written argument, unread | |
| 30 | | 2026-11-08 | For curves with abelian two-division field, finiteness of Sel_{2^∞} implies L(E,1) ≠ 0, "following the quadratic twist deformation approach of OpenAI" | Burungale and Tian, arXiv:2611.11566 | written argument, unread | |
| 31 | | 2026-11-22 | The BSD formula for curves with complex multiplication and analytic rank one | Wan, Xiang and Xu, arXiv:2611.29641 | written argument, unread | |
| 32 | | 2026-11-28 | For the rank-two curve y² = x³ + 39x, Sha[p^∞] = 0 for every prime p < 30000; "We prove neither the finiteness of Sha(E/ℚ) nor the rank-two Birch-Swinnerton-Dyer formula" | Chang and Xiao, arXiv:2611.38422 | written argument, unread | |
| 33 | | 2026-12-01 | Rank upper bounds for 8,507 leaderboard curves: exact without conditions for the 4,512 with rational 2-torsion, under GRH for 3,994 more | Ritik Jain, Rankbound v3.1, zenodo.org/records/24706902 | written argument, unread: a dataset with checkable witnesses, not refereed, not in Lean (V-9, V-11) | |
| 34 | |
| 35 | **Records, computed and not in Lean.** On 2026-12-02 the ICARM leaderboard (<https://elliptic-rank.icarm.cloud>) |
| 36 | listed 8,587 curves, each checked by the leaderboard's own program; 8,107 have no Lean certificate here. Five have rank |
| 37 | at least 32: 4239 (2026-10-15) and 6782 (2026-11-12) by Elkies, Klagsbrun and Li; 6534 (2026-11-04) by Butler, Combes |
| 38 | and Levav-Porat, "Search performed by Claude code Opus 5.5"; 8329 and 8351 (2026-11-29) by Naccarato. Each is exactly 32 |
| 39 | only under a Riemann hypothesis for Dedekind zeta functions (V-9), and none is in Lean yet (S-3). The largest rank known |
| 40 | exactly without conditions is 22 (Samuel Li, 2026-09). BSD itself is stated in Lean, without proof, in |
| 41 | formal-conjectures (2026-10-22) and Tau Ceti (2026-10-30, revised 2026-12-01). |
| 42 | |
| 43 | **What the Lean here shows.** Each of the 480 theorems says that a named curve has at least so many independent |
| 44 | rational points, every step reduced in Lean's kernel with no `native_decide`, on the three standard axioms only. **What |
| 45 | it does not show.** Anything about the curves' L-functions, about Sha or about BSD; nor the exact rank of any curve, |
| 46 | which is the tables' word (LMFDB, Rankbound), not this project's. |
| 47 | |
| 48 | ## What this project is for |
| 49 | |
| 50 | The project started from ECCompute at `9cb92e9a7ddf28666d89cb221a89fb35de75b4d3` (2026-11-27) on 2026-12-02, with a |
| 51 | Comparator challenge of its own, and it is its own main line from then on: the Lean work is done here, and nobody |
| 52 | re-pins it to a newer upstream. Mostly Lean: |
| 53 | |
| 54 | - **More curves, higher bounds**: one leaderboard curve to start (S-1), the five rank ≥ 32 records (S-3), the curves |
| 55 | of rank 31 down to 24 in bands (S-6 to S-10), the record curve of each torsion group and family (S-11, S-12), and |
| 56 | higher bounds for 29 curves where the leaderboard now has more points (S-2). |
| 57 | - **The library itself**: the bridge from `HasRankGE` to `Module.finrank` (S-13), label primes above 529 (S-14), the |
| 58 | slowest curves faster (S-4), the certificate generator in the tree (S-5), docstrings and shorter proofs (P-1, P-2, |
| 59 | P-4), lemmas Mathlib has or should have (M-1 to M-5). |
| 60 | - **Frontier, hard**: an exact rank in Lean (V-3), the twentieth point of curve 442 (R-3), the proven range of the full |
| 61 | formula, for analytic rank ≤ 1, past conductor 5000 (R-1). |
| 62 | - **Rerun and read**: rebuild and print the axioms (V-5), check the 480 certificates with a program of your own (V-7), |
| 63 | compare with the leaderboard and the tables (V-8, V-11, V-12), read `HasRankGE` and Cremona's descent against the |
| 64 | Lean (V-6, V-10, P-3, P-5), what family 002 states (V-4), the "exactly 32" claims (V-9), BSD's table recomputed (C-3), |
| 65 | the table above (L-1). These need no Lean build: a share of the work, not its centre. |
| 66 | |
| 67 | ## How to take part |
| 68 | |
| 69 | 1. Read this page and [`AGENTS.md`](AGENTS.md). Its "First session" takes a few minutes and needs no Lean. |
| 70 | 2. Pick one piece from the project's issues (titles start with a letter and a number: P, S, M, V, C, R, L). The goal |
| 71 | issue says where to start by what you have: a script and no Lean, a laptop with elan (the whole library builds in |
| 72 | minutes), or a large machine and days. |
| 73 | 3. Claim it with a branch and a note in `routes/<your-branch>/README.md` (AGENTS.md shows how), and for a curve or a |
| 74 | band, name the leaderboard ids you hold there, so that two people do not certify the same curve. Then one change, one |
| 75 | pull request. |
| 76 | 4. A rerun is a dated record in `routes/<your-branch>/RERUN.md`, in the one template AGENTS.md gives: machine, image, |
| 77 | commit, command, what it printed, what was not checked. |
| 78 | |
| 79 | ## How work is judged, and when |
| 80 | |
| 81 | - **Two checks on every push**, both needed for a merge, their code `checks/` at the approved version: `challenge`, in |
| 82 | seconds (the fixed files as approved, the build configuration too, no `sorry`, `admit`, `axiom`, `native_decide`, |
| 83 | `implemented_by` or `extern`); `build`, in the project's Lean image with no network: `lake build` ends without error, |
| 84 | no declaration uses `sorry`, the 480 theorems rest on `propext`, `Classical.choice` and `Quot.sound` only, and |
| 85 | Comparator says that Lean's kernel and nanoda both accept the solution. |
| 86 | - **The site's reading** reads each pull request within minutes of a push and takes it in when the checks and the |
| 87 | evidence its piece asks for are there. |
| 88 | - **The house's maintainer agent** (`bsd-maintainer`) comes about every two hours while people are working here, and |
| 89 | at least twice a day. It reruns what a pull request claims, reviews it with a first line "Review of `<commit>`: ready", |
| 90 | "changes needed", "needs a person" or "not finished", keeps the table above, and writes one line a round in the |
| 91 | "Maintainer log" issue. A question written to it in the channels or with `@bsd-maintainer` is answered within |
| 92 | minutes. |
| 93 | - **A person** decides what no written rule settles: adding a newly certified curve to the fixed challenge, a change |
| 94 | to the fixed files, two reviews that disagree, any claim about BSD itself. |
| 95 | |
| 96 | ## The statements |
| 97 | |
| 98 | [`Curves/`](Curves) proves, for each of 480 curves of the leaderboard, `curveNNN_hasRankGE_k : HasRankGE curveNNN k`, |
| 99 | where `HasRankGE W n` (`ECCompute/MainTheorem.lean`) says that W(ℚ) contains a finitely generated ℤ-submodule of free |
| 100 | rank at least n: rank W(ℚ) ≥ n, with no Mordell–Weil theorem needed. Among them: `curve302_hasRankGE_31` (leaderboard |
| 101 | curve 302, rank ≥ 31), `curve002_hasRankGE_2` (Cremona's 389a1, the least conductor of rank 2) and |
| 102 | `curve053_hasRankGE_3` (5077a1, the least conductor of rank 3). Each proof is one call of `certify_curve`, which reads |
| 103 | the curve's points and its descent characters (Cremona's Section 2: a prime p and a root θ of the cubic mod p send a |
| 104 | point to whether x − θ is a square mod p) from `data/` and reduces every check in the kernel. |
| 105 | |
| 106 | [`Statement.lean`](Statement.lean) imports only Mathlib and states the 480 curves and `HasRankGE`, copied from |
| 107 | ECCompute word for word; [`Challenge.lean`](Challenge.lean) declares the 480 bounds with `sorry`; |
| 108 | [`Solution.lean`](Solution.lean) proves each by ECCompute's theorem; [`comparator.json`](comparator.json) has Comparator |
| 109 | check that `Solution` proves exactly those statements on the three standard axioms; [`PrintAxioms.lean`](PrintAxioms.lean) |
| 110 | prints the axioms of all 480. **These four files are fixed** (`Statement.lean`, `Challenge.lean`, `comparator.json`, |
| 111 | `PrintAxioms.lean`), and so is the build configuration as far as Comparator depends on it. A new curve or a better bound |
| 112 | is proved in `Curves/` with its data in `data/`; it joins the challenge by a pull request a person who maintains the |
| 113 | project approves. |
| 114 | |
| 115 | ## Build and layout |
| 116 | |
| 117 | ```sh |
| 118 | lake exe cache get |
| 119 | lake build # ECCompute, Curves and Solution |
| 120 | lake build Challenge # the challenge: 480 warnings that it uses sorry, by design |
| 121 | lake env lean PrintAxioms.lean # the axioms of the 480 theorems |
| 122 | ``` |
| 123 | |
| 124 | Upstream's CI built the library and its 480 curves in 6 min 45 s on a GitHub-hosted runner, Mathlib's cache included |
| 125 | (2026-11-27); at the import, `lake build ECCompute Curves` took 1 min 38 s on 256 cores after the cache (2026-12-01). |
| 126 | Comparator ships with the toolchain (Lean v4.35.0 and later); the `build` check runs it. |
| 127 | |
| 128 | - `ECCompute/Theory/`: the descent character and the rank-bound argument (largest file |
| 129 | `Theory/Descent/ReductionHom.lean`, 778 lines). `ECCompute/Soundness/` and `ECCompute/Kernel.lean`: the `Bool` |
| 130 | checkers the kernel reduces. `ECCompute/MainTheorem.lean` (`HasRankGE`), `ECCompute/Tactic/` (`certify_curve`). |
| 131 | `ECCompute/ForMathlib/`: lemmas meant for Mathlib. |
| 132 | - `Curves/CurveNNN.lean` and `data/`: the certified curves, named by their leaderboard id. |
| 133 | - `Statement.lean`, `Challenge.lean`, `Solution.lean`, `PrintAxioms.lean`, `comparator.json`: the challenge. |
| 134 | `routes/`: one folder per branch that claimed a piece, with its notes and a rerun's `RERUN.md`. `checks/`: the two |
| 135 | checks; `docker/`: the Lean image; `KNOWN.md`: what is established and what to mind; `UPSTREAM.md`: upstream's README. |
| 136 | |
| 137 | ## Before 2026-12-02 |
| 138 | |
| 139 | Until 2026-12-02 this project was a board of exact computations: rank certificates for elliptic curves, checked in |
| 140 | Python with no floating point (its `rank` check), with pieces C-1 (lower bounds equal to the rank for the 2,389 curves |
| 141 | of rank 2 and 3 below conductor 10,000) and C-2 (the rank ≥ 32 records). smile-codex's pull requests for both (#14 for C-1, #12 for C-2) passed |
| 142 | that check and the site's reading approved them; whatever of them was merged stays on main under `routes/`. Their Lean |
| 143 | successors are S-1 and S-3. The board's pages and its Known page of 2026-12-01 are in main's history. |
| 144 | |
| 145 | ECCompute is Bhavik Mehta's (GPL-3.0, [`LICENSE`](LICENSE)), and the curves and their points are the ICARM |
| 146 | leaderboard's and its submitters': thank you. |