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