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