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