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