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