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