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 | @[simp, grind =] theorem Nat.mod_eq_mod : Nat.mod a b = a % b := rfl |
| 15 | |
| 16 | @[simp, grind =] theorem Int.sub_eq : Int.sub a b = a - b := rfl |
| 17 | |
| 18 | @[simp, grind =] theorem Int.neg_eq : Int.neg a = -a := rfl |
| 19 | |
| 20 | @[simp, grind =] theorem Int.emod_eq : Int.emod a b = a % b := rfl |
| 21 | |
| 22 | @[simp, grind =] |
| 23 | theorem Nat.beq_eq_beq : Nat.beq a b = (a == b) := by rw [Bool.eq_iff_iff]; simp |
| 24 | |
| 25 | attribute [grind =] Nat.add_eq Nat.mul_eq Nat.ble_eq Nat.shiftRight_eq' Nat.land_eq Nat.xor_eq |
| 26 | attribute [grind =] Int.add_def Int.mul_def |
| 27 | attribute [grind =] Bool.rec_eq |