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