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