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