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 | /- |
| 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 400 has rank at least 28 |
| 13 | |
| 14 | The elliptic curve recorded as |
| 15 | [curve 400](https://elliptic-rank.icarm.cloud/curve/400) on the ICARM Elliptic Curve Rank |
| 16 | Leaderboard is |
| 17 | |
| 18 | `E : y² + xy = x³ + a₄·x + a₆`, with |
| 19 | `a₄ = -2847874483810983397135985687546115504035875512904930` and |
| 20 | `a₆ = 5863572094560733325227696745989482992866153015698157430026855716216140568890` |
| 21 | ` 0` |
| 22 | |
| 23 | over `ℚ`. It has Mordell-Weil rank at least `28`. Submitted to the leaderboard by NDElkies. |
| 24 | -/ |
| 25 | |
| 26 | namespace ECCompute |
| 27 | |
| 28 | open WeierstrassCurve |
| 29 | |
| 30 | /-- ICARM leaderboard curve 400 over `ℚ`. -/ |
| 31 | @[expose] public def curve400 : WeierstrassCurve ℚ := |
| 32 | ⟨1, 0, 0, -2847874483810983397135985687546115504035875512904930, |
| 33 | 58635720945607333252276967459894829928661530156981574300268557162161405688900⟩ |
| 34 | |
| 35 | /-- ICARM leaderboard curve 400 has Mordell-Weil rank at least `28`. -/ |
| 36 | public theorem curve400_hasRankGE_28 : HasRankGE curve400 28 := by |
| 37 | unfold curve400 |
| 38 | certify_curve torsion 59 "data/curve400.txt" "data/curve400-labels.txt" |
| 39 | |
| 40 | /-- Curve 400 is elliptic (nonzero discriminant), so its `j`-invariant is defined. -/ |
| 41 | public instance : curve400.IsElliptic := isElliptic_of_Δ_ne_zero (by decide +kernel) |
| 42 | |
| 43 | /-- The `j`-invariant of curve 400. -/ |
| 44 | public theorem curve400_j : curve400.j = -19600711737340767304288459746432757739234884166585359113045472471831472218851230852454819678973320927957846652371235395016530064436511753445538311041584401 / 54082998607154326540304542174041830004035093037632269656999561270139165468667949739950022203221233657912677019623272103774809531076287997909504000000 := |
| 45 | j_eq_iff.mpr (by decide +kernel) |
| 46 | |
| 47 | end ECCompute |