Every primitive translation orbit attains its canonical code
ProvedN25.level25_translation_orbit_attainmentmazur-n25
Let , let act by scaling, let be the minimum code in an -orbit, and let . For primitive define if ; define if and ; otherwise let be the least residue among modulo . Then
This proves that the explicit cusp-orbit minimum for is attained.
Preamble
import Mathlib import Definitions.Def_N25 set_option autoImplicit false open N25
Formal statement
theorem N25.level25_translation_orbit_attainment :
let R := Fin 25 × Fin 25
let primitive : R → Prop := fun r => r.1.val % 5 ≠ 0 ∨ r.2.val % 5 ≠ 0
let scale : ℕ → R → R := fun h r =>
(⟨h * r.1.val % 25, Nat.mod_lt _ (by decide)⟩,
⟨h * r.2.val % 25, Nat.mod_lt _ (by decide)⟩)
let labels : Fin 4 → ℕ := ![1,7,18,24]
let code : R → ℕ := fun r => r.1.val + 25*r.2.val
let normcode : R → ℕ := fun r =>
min (min (code r) (code (scale 7 r))) (min (code (scale 18 r)) (code (scale 24 r)))
let translate : ℕ → R → R := fun n r =>
(r.1, ⟨(r.2.val+n*r.1.val)%25, Nat.mod_lt _ (by decide)⟩)
let tnorm : R → ℕ := fun r =>
if r.1.val=0 then normcode r
else if r.1.val%5=0 then
25 + 5 * ((r.1.val/5) * ((r.2.val : ZMod 5)⁻¹).val % 5)
else min (min r.1.val (7*r.1.val%25))
(min (18*r.1.val%25) (24*r.1.val%25))
∀ r : R, primitive r → ∃ i : Fin 4, ∃ n : Fin 25,
code (scale (labels i) (translate n.val r)) = tnorm r := by sorrySource
B. Mazur, Modular curves and the Eisenstein ideal, Publ. IHES 47 (1977); Lean formalization of the order-25 case for this mission. Modules in the MazurProof/Keystone/Tate families are adapted from anthropics/fermats-last-theorem (Apache-2.0) via the xiangyazi24/FLT fork.