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 | /-! |
| 9 | # Raw kernel primitives as notation |
| 10 | -/ |
| 11 | |
| 12 | public section |
| 13 | |
| 14 | /-- Rewrite the kernel's natural-number remainder as the usual `%` notation. -/ |
| 15 | @[simp, grind =] theorem Nat.mod_eq_mod : Nat.mod a b = a % b := rfl |
| 16 | |
| 17 | /-- Rewrite the kernel's integer subtraction as the usual infix subtraction. -/ |
| 18 | @[simp, grind =] theorem Int.sub_eq : Int.sub a b = a - b := rfl |
| 19 | |
| 20 | /-- Rewrite the kernel's integer negation as the usual prefix negation. -/ |
| 21 | @[simp, grind =] theorem Int.neg_eq : Int.neg a = -a := rfl |
| 22 | |
| 23 | /-- Rewrite the kernel's Euclidean integer remainder as `a % b`. -/ |
| 24 | @[simp, grind =] theorem Int.emod_eq : Int.emod a b = a % b := rfl |
| 25 | |
| 26 | /-- The raw natural-number equality test agrees with `a == b`. |
| 27 | It returns `true` exactly when `a = b`, as expressed by `Nat.beq_eq`. -/ |
| 28 | @[simp, grind =] |
| 29 | theorem Nat.beq_eq_beq : Nat.beq a b = (a == b) := by rw [Bool.eq_iff_iff]; simp |
| 30 | |
| 31 | attribute [grind =] Nat.add_eq Nat.mul_eq Nat.ble_eq Nat.shiftRight_eq' Nat.land_eq Nat.xor_eq |
| 32 | attribute [grind =] Int.add_def Int.mul_def |
| 33 | attribute [grind =] Bool.rec_eq |