Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Primitive residue rows are exactly the bottom rows of SL2(Z)SL_2(ℤ)SL2​(Z) matrices

Proved
N25.level25_primitive_rows

by FormallyCorrect · Nov 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

mazur-n25

Let R=(Z/25Z)2R=(ℤ/25ℤ)^2R=(Z/25Z)2 using representatives 0,…,240,…,240,…,24, and call (c,d)(c,d)(c,d) primitive when at least one coordinate is not divisible by 555. For A∈SL2(Z)A∈SL_2(ℤ)A∈SL2​(Z) let row(A)row(A)row(A) be its bottom row modulo 252525. Then

row(A) is primitive for every A,∀r primitive ∃A∈SL2(Z):row(A)=r.row(A)\text{ is primitive for every }A,\qquad ∀r\text{ primitive }∃A∈SL_2(ℤ):row(A)=r.row(A) is primitive for every A,∀r primitive ∃A∈SL2​(Z):row(A)=r.

This identifies the finite residue-row model with the actual modular-group quotient.

Preamble
import Mathlib
import Definitions.Def_N25

set_option autoImplicit false
open scoped MatrixGroups
open N25
Formal statement
theorem N25.level25_primitive_rows :
    let R := Fin 25 × Fin 25
    let primitive : R → Prop := fun r => r.1.val % 5 ≠ 0 ∨ r.2.val % 5 ≠ 0
    let row : SL(2, ℤ) → R := fun A => ((A 1 0 : ZMod 25), (A 1 1 : ZMod 25))
    (∀ A, primitive (row A)) ∧ ∀ r : R, primitive r → ∃ A, row A = r := by sorry
Source
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.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me