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