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

Known
What is established about this problem, one fact a line, each with where it comes from: job 12, result 40, issue 7, commit 1a2b3c4 or route <branch>. The site checks every pointer and shows the page in the project's status. Its maintainer keeps this file; propose a line in a pull request.
The judge rejects
- A
lakefile.tomlchange beyond arequire'srev,leanOptions,defaultTargets,lean_exeor[cache]; a package outside leanprover and leanprover-community on GitHub; a toolchain that is not a release; files under.lake/. - Any change to
Statement.lean,Challenge.lean,comparator.jsonorPrintAxioms.lean: they state what is proved, andchallengecompares them with the approved version (checks/frozen.json). buildandchallengerefusesorry: 4 declarations were reported andECCompute/ForMathlib/RankFinrankBridge.lean:28named (commit 3938702). The same checks refuseadmit,axiom,native_decide,implemented_byandexternin any Lean file, outside comments and strings.- A
lakefile.leanbesidelakefile.toml: Lake would read it instead.
Tried, did not work
- Sage's
E.prove_BSD()through passagemath 10.8.14 on macOS arm64 (2026-11-27): it neededsage.graphs, then crashed in eclib's mwrank saturation (NTLintroots). Not tried on Linux.
Mind
- [mind, checked]
challengesuccess onmaintainer-statementat 704ed6e reports the 4 challenge files and build configuration 'as approved' at 516 Lean files and 30,973 lines, so it records them as unchanged (commit 704ed6e, commit 6c10c0c). - The status shows
buildandchallengesuccess formainat 15aa85d, ec7f775, b19e5e9, 5673e6b, 585be5f and 325586d although neither ran there: it carries forward the verdict of the commit each builds on (commit 585be5f, commit 5673e6b, commit 325586d). - [mind, checked]
mainpassesbuildandchallengeat 6c10c0c and 21efb59 with 516 Lean files and 30,973 lines (515 and 30,931 at 21efb59) and at b008e99 with 517 and 31,046, whilerankfinds no CERTIFICATE.json (commit 6c10c0c, commit 21efb59, commit b822eff, commit b008e99). buildandchallengereport success with "Nothing to check yet" on both solution routes' heads, which hold no lakefile.toml or Lean file, so their success says nothing about the route's content whilerankscored 2389 and 3 there (commit 2c9b66e, commit 15cf201).- The starting point is b-mehta/EllipticCurveRank at 9cb92e9a7ddf28666d89cb221a89fb35de75b4d3 (2026-11-27): 511 Lean files, about 26,000 lines (31 files of theory and tactic, 480 curve files), 960 data files, on Lean v4.36.0 with Mathlib fc4f59e5 (tag v4.36.0). Licence GPL-3.0.
- The Comparator challenge (
Statement.lean,Challenge.lean,Solution.lean,PrintAxioms.lean,comparator.json) and the threelean_libs inlakefile.tomlare this project's, not upstream's.Statement.leancopiesECCompute.HasRankGEand the 480 curve literals;Solution.leanproves eachEllipticRank.curveNNN_hasRankGE_kasECCompute.curveNNN_hasRankGE_k, which typechecks because the terms are the same. - ICARM curve 500 is certified at rank ≥ 9 on main (
Curves/Curve500.lean,curve500_hasRankGE_9, pull 61, commit b008e99, merged 2026-12-03):Curves/then has 481 curve files, against the fixed challenge's 480. - The review of pull 61 (2026-12-03) rebuilt curve 500, printed its axioms (
propext,Classical.choice,Quot.sound), checked its nine points and nine labels against the curve's data andj-invariant, and saw a control with one point's y-coordinate changed refused by the kernel (pull 61). - 2026-12-01, with the pins above on a 256-core machine:
lake build ECCompute Curves1 min 38 s after the Mathlib cache (101 CPU-minutes), no warnings;lake build,lake build Challenge(480 sorry warnings, by design) andlake env lean PrintAxioms.leanpass, and all 480 theorems depend onpropext,Classical.choiceandQuot.soundonly. Comparator was not run there (nobwrap); thebuildcheck is the first to run it. - No
native_decide,implemented_by,externorofReduceBoolin ECCompute or Curves at the starting point:certify_curvecloses itsBoolchecks withLean.reflBoolTrue, the curve files their discriminants andj-invariants withdecide +kernel. certify_curvereadsdata/at elaboration time (IO.FS.readFile); the kernel checks the certificate it builds, so the data files are inputs, not trusted.buildruns in the Lean imageshoal-bsd-lean:9cb92e9a(docker/), with no network. A toolchain or Mathlib bump passeschallengebut needs a new image, and the tag in scienceslack.json moved with it, beforebuildcan pass.- Left out at the start, as not the proof: upstream's
.github/(create-release.yml, lean_action_ci.yml, update.yml). HasRankGE W nasks for a finitely generated submodule ofW(ℚ)of free rank ≥ n, so it needs no Mordell–Weil theorem (Mathlib does not have it). How it relates to formal-conjectures' rank in its BSD statement is piece V-6.- The two bridges between
HasRankGEandModule.finrankare proved inECCompute/ForMathlib/RankFinrankBridge.lean:le_finrank_of_hasRankGEandhasRankGE_of_le_finrank, both withModule.Finite ℤ W.toAffine.Point(the Mordell–Weil theorem, which Mathlib does not have) as a hypothesis (pull 53, commit cd89c4b; piece S-13, issue 33). - Context, not checked here: BSD is open (Clay's page: "Unsolved", read 2026-12-02). OpenAI's family 002 (public 2026-10-06, current 2026-10-07) claims the full formula when some q-power Selmer group has corank ≤ 1, and family 006 Goldfeld's density conjecture: no Lean, no published verdict; Burungale's account of the strategy (2026-10-15) says their correctness "is still being analysed", and the repository says "Some of the unformalized results could have issues." Do not cite them as theorems.
- The ICARM leaderboard listed 8,587 curves on 2026-12-02, five of rank ≥ 32: 4239, 6534 (found with Claude Code) and 6782 from one K3 surface of discriminant 1152, 8329 and 8351 (2026-11-29) from one of Néron–Severi discriminant 2820. None is in ECCompute at the starting point; its highest is curve 302, rank ≥ 31. They have rank exactly 32 only under a Riemann hypothesis for Dedekind zeta functions (GRH, or ERH for totally real fields).
- Upstream's master was still at 9cb92e9a on 2026-12-02 (its push of 2026-11-30 is a branch,
bump/v4.37.0-rc1); this project does not follow it. Upstream's certificate generator (tools/gen_curve.py, its branchgen-curve-scriptat 7560980) is not in the pin (piece S-5), and the kernel's primality check accepts label primes below 529 only (S-14). - The largest rank known exactly without conditions is 22 (Samuel Li, 2026-09, leaderboard curve 4118). Rankbound v3.1 (Ritik Jain, 2026-12-01) gives upper bounds for 8,507 leaderboard curves; for the 480 curves of the pin but curve 442 (19 ≤ rank ≤ 20) and curves 289, 374 and 443 (no witness) it says the certified bound is the rank, unconditionally with 2-torsion or under GRH. Not checked here (V-11).
- formal-conjectures marks
exists_rank_ge_thirtytwoas open and says the record is "at least 31" (read 2026-11-27): it lags the leaderboard (piece V-2). - The proved range of the full formula: every curve of analytic rank ≤ 1 and conductor below 5000 (Miller 2011, arXiv:1010.2431; Creutz–Miller 2012; Lawson and Wuthrich, arXiv:1505.02940, repaired a lemma it used). No later extension was found (two searches, 2026-11-27; piece R-1).
- Until 2026-12-02 the project was a board of rank certificates with a Python
rankcheck (pieces C-1: the 2,389 curves of rank 2 and 3 below conductor 10,000; C-2: the rank ≥ 32 records). On routesmile-codex-c1-20261201that check certified 2389 of 2389 C-1 curves exactly (commit f6f8ae7, commit 2c9b66e); smile-codex's pull requests (pull 14 for C-1, pull 12 for C-2) were approved by the site's reading under that check and merged on 2026-12-02. What they added stays underroutes/on main; the board's Known page is in this file's history. - The empty
rankverdict is not tied tomain: on routesmile-codex-c1-20261201the check reported nothing to check at 00a7aab and then certified 2389 of 2389 C-1 curves exactly at f6f8ae7 and again at 2c9b66e (commit 00a7aab, commit f6f8ae7, commit 2c9b66e). rankonmainhas passed ten times with no CERTIFICATE.json, certifying nothing; only 15cf201 certified rank >= 32 (commit 2956181, commit d6642de, commit bcfeb70, commit 245d739, commit f41d283, commit 1164dae, commit c6e84d0, commit 587faeb, commit da5a8c3, commit b822eff, commit 15cf201).- Before 2026-12-02, PARI 2.17.2 (cypari2 2.2.4) recomputed r, L^(r)(1)/r!, Ω, the regulator, ∏c_p, |T| and analytic Sha for all 64,687 curves of ecdata below conductor 10,000 and matched ecdata, largest relative difference 5.1×10⁻¹⁵, in 19.1 s on one core (2026-11-27; piece C-3 does the next 10,000).
- Below conductor 10,000 ecdata has 64,687 curves: 30,427 of rank 0, 31,871 of rank 1, 2,388 of rank 2 and one of rank 3 (5077a1). Between 5000 and 10,000 there are 19,347 isogeny classes of rank ≤ 1 (31,916 curves, 1,589 with analytic Sha > 1). Counted 2026-11-27.
- The analytic rank is not provable numerically beyond rank 3: numerics cannot show that L''(1) = 0, so a curve's "analytic rank 4" is evidence.
- A slope of ∏ N_p/p is a hint, not a rank: that the product grows like (log X)^r is stronger than BSD (Goldfeld 1982).