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