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