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