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