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