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