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