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 391 has rank at least 28 |
| 13 | |
| 14 | The elliptic curve recorded as |
| 15 | [curve 391](https://elliptic-rank.icarm.cloud/curve/391) on the ICARM Elliptic Curve Rank |
| 16 | Leaderboard is |
| 17 | |
| 18 | `E : y² + xy = x³ + a₄·x + a₆`, with |
| 19 | `a₄ = -253358083066972965014377893305253723955166094643129094555` and |
| 20 | `a₆ = 1581891748619190376056299653607794133364757942527274090543772455710877264718` |
| 21 | ` 525507025` |
| 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 391 over `ℚ`. -/ |
| 31 | @[expose] public def curve391 : WeierstrassCurve ℚ := |
| 32 | ⟨1, 0, 0, -253358083066972965014377893305253723955166094643129094555, |
| 33 | 1581891748619190376056299653607794133364757942527274090543772455710877264718525507025⟩ |
| 34 | |
| 35 | /-- ICARM leaderboard curve 391 has Mordell-Weil rank at least `28`. -/ |
| 36 | public theorem curve391_hasRankGE_28 : HasRankGE curve391 28 := by |
| 37 | unfold curve391 |
| 38 | certify_curve torsion 19 "data/curve391.txt" "data/curve391-labels.txt" |
| 39 | |
| 40 | /-- Curve 391 is elliptic (nonzero discriminant), so its `j`-invariant is defined. -/ |
| 41 | public instance : curve391.IsElliptic := isElliptic_of_Δ_ne_zero (by decide +kernel) |
| 42 | |
| 43 | /-- The `j`-invariant of curve 391. -/ |
| 44 | public theorem curve391_j : curve391.j = -818649401371543207243745332008487833430344030697331332345161580344276001816171118204404757480947046134810842636244096946781019907114774163569723298864661849043594971445293 / 18292265299058070625282765849390356407281102553060534335453130063736852706852899913915887716975081285924728295357867512931561770691034655440239562746058646697472000000 := |
| 45 | j_eq_iff.mpr (by decide +kernel) |
| 46 | |
| 47 | end ECCompute |