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