Fermat's Last Theorem in Lean 4

3. Irreducibility of the mod-p representation of the Frey curve

theorem FreyPackage.Mazur_Frey (P : FreyPackage) : GaloisRepIsIrreducible (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p

GaloisRepIsIrreducible (Definitions/Def_FLTPrelim_GaloisRep.lean) is basis-free: the -torsion of is nontrivial and its only Galois-stable -submodules are and everything. The proof module first splits off the case , which has its own argument at the prime 2 (FreyPackage.Mazur_Frey_of_a_mod_eight), and otherwise argues by contradiction: a reducible has a Galois-stable line with trivial Galois action on the quotient — a cofixed line, HasGaloisStableCofixedLine (Definitions/Def_FLTPrelim_CofixedLine.lean) — by FreyPackage.frey_reducible_hasCofixedLine (Serre's observation that a stable line in is fixed or cofixed, using that is unramified away from and that has no rational point of order ), and a cofixed line is ruled out separately in three ranges of :

§2 The Frey package and the four-way contradiction · §4 Modularity of semistable elliptic curves

How the theorems of this step depend on each other

Green cards are the landmarks named in this section; dashed white cards are landmarks of neighbouring steps they connect to. Premises above conclusions; an arrow may pass through unnamed intermediate theorems. Click a card for its page.

L n0 Irreducibility of the mod-p torsion module of the Frey curve FreyPackage.Mazur_Frey n1 Irreducibility of E_P[p] when a ≡ 3 (mod 8) FreyPackage.Mazur_Frey_of_a_mod_eight n1->n0 n2 No Galois-stable cofixed line at p=11 FreyPackage.frey_no_cofixed_eleven n2->n0 n3 Mazur at p≥ 17: no cofixed line FreyPackage.frey_no_cofixed_large n3->n0 n4 No Galois-stable cofixed line for p∈{5,7,13} FreyPackage.frey_no_cofixed_small n4->n0 n5 Reducible Frey representation yields a Galois-stable cofixed line FreyPackage.frey_reducible_hasCofixedLine n5->n1 n6 Frey p-torsion is unramified outside {2,p} FreyPackage.freyGaloisRep_isUnramifiedAt n6->n5 n7 Weight-two cusp forms of level one vanish ModularForm.S2_Gamma0_one_eq_zero n12 Finiteness of the Galois invariants of the Eisenstein quotient of J₀(p) ModularCurve.eisensteinQuotientInvariantsFin… n7->n12 n8 Mazur's Step 3 at one multiplicative prime ℓ WeierstrassCurve.mazurStepThree_not_inZeroCo… n8->n3 n9 Fermat's Last Theorem for the exponent 5 fermatLastTheoremFive n9->n4 n10 Fermat's Last Theorem for exponent 7 fermatLastTheoremSeven n10->n4 n11 The ring of integers of ℚ(ζ₇) is principal Rat.seven_pid n11->n10 n12->n8 n13 Specialisation of the Eisenstein quotient away from p ModularCurve.mazurQuotientSpecialization_hec… n13->n8 n14 Kummer's theorem: Fermat's Last Theorem for regular primes flt_regular n14->n2 n14->n10

Theorems named in this section (11; statement as in the tree, numbers from the import graph)

Irreducibility of when FreyPackage.Mazur_Frey_of_a_mod_eight
open WeierstrassCurve WeierstrassCurve.Affine WeierstrassCurve.Affine.Point
theorem FreyPackage.Mazur_Frey_of_a_mod_eight (P : FreyPackage)
    (h8 : (P.a : ZMod 8) = 3) :
    GaloisRepIsIrreducible (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p
104 theorems below · cites 2 · cited by 1 · depth 5 · proof 8 lines, 0 helpers
Reducible Frey representation yields a Galois-stable cofixed line FreyPackage.frey_reducible_hasCofixedLine
open WeierstrassCurve WeierstrassCurve.Affine WeierstrassCurve.Affine.Point
open CuspForm ModularFormClass UpperHalfPlane
theorem FreyPackage.frey_reducible_hasCofixedLine (P : FreyPackage) (hred : ¬ GaloisRepIsIrreducible (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p) : HasGaloisStableCofixedLine (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p
82 theorems below · cites 4 · cited by 2 · depth 5 · proof 33 lines, 0 helpers
Mazur at : no cofixed line FreyPackage.frey_no_cofixed_large
open WeierstrassCurve WeierstrassCurve.Affine WeierstrassCurve.Affine.Point
open CuspForm ModularFormClass UpperHalfPlane
theorem FreyPackage.frey_no_cofixed_large (P : FreyPackage) (hp : 17P.p) : ¬ HasGaloisStableCofixedLine (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p
5,377 theorems below · cites 43 · cited by 1 · depth 5 · proof 1,260 lines, 15 helpers
Mazur's Step 3 at one multiplicative prime WeierstrassCurve.mazurStepThree_not_inZeroComponentAt
open WeierstrassCurve WeierstrassCurve.Affine
theorem WeierstrassCurve.mazurStepThree_not_inZeroComponentAt
    {p : ℕ} (hp : p.Prime) (hp' : p ∉ ({2, 3, 5, 7, 13} : Finset ℕ))
    (W : WeierstrassCurve ℤ) (hΔ : W.Δ ≠ 0)
    (Q : ((W.map (Int.castRingHom ℚ))⁄(AlgebraicClosure ℚ)).Point)
    (hQfix : ∀ σ : AlgebraicClosure ℚ ≃ₐ[ℚ] AlgebraicClosure ℚ, σ • Q = Q)
    (hQord : addOrderOf Q = p)
    (h2Δ : (2 : ℤ) ∣ W.Δ) (h2c₄ : ¬ (2 : ℤ) ∣ W.c₄)
    (h2 : ∀ A : ValuationSubring (AlgebraicClosure ℚ), A.LiesOverPrime 2 → ¬ W.InZeroComponentAt A Q)
    (h3Δ : (3 : ℤ) ∣ W.Δ) (h3c₄ : ¬ (3 : ℤ) ∣ W.c₄)
    (h3 : ∀ A : ValuationSubring (AlgebraicClosure ℚ), A.LiesOverPrime 3 → ¬ W.InZeroComponentAt A Q)
    {ℓ : ℕ} (hℓ : ℓ.Prime) (hℓp : ℓ ≠ p) (hℓΔ : (ℓ : ℤ) ∣ W.Δ) (hℓc₄ : ¬ (ℓ : ℤ) ∣ W.c₄)
    (A : ValuationSubring (AlgebraicClosure ℚ)) (hA : A.LiesOverPrime ℓ) :
    ¬ W.InZeroComponentAt A Q
5,253 theorems below · cites 10 · cited by 1 · depth 6 · proof 218 lines, 10 helpers
Finiteness of the Galois invariants of the Eisenstein quotient of ModularCurve.eisensteinQuotientInvariantsFiniteAt_heckeModuleBar
open ModularCurve AlgebraicCurve
theorem ModularCurve.eisensteinQuotientInvariantsFiniteAt_heckeModuleBar (p : ℕ) [Fact p.Prime]
    (hcomm : HeckeOperatorsCommuteBar p) :
    EisensteinQuotientInvariantsFiniteAt p (heckeModuleBar p)
5,128 theorems below · cites 5 · cited by 1 · depth 7 · proof 15 lines, 1 helpers
Specialisation of the Eisenstein quotient away from ModularCurve.mazurQuotientSpecialization_heckeModuleBar
open ModularCurve AlgebraicCurve
theorem ModularCurve.mazurQuotientSpecialization_heckeModuleBar (p : ℕ) [Fact p.Prime]
    (hcomm : HeckeOperatorsCommuteBar p) :
    MazurQuotientSpecialization p (heckeModuleBar p)
2,179 theorems below · cites 3 · cited by 1 · depth 7 · proof 16 lines, 1 helpers
No Galois-stable cofixed line at FreyPackage.frey_no_cofixed_eleven
open WeierstrassCurve WeierstrassCurve.Affine WeierstrassCurve.Affine.Point
open CuspForm ModularFormClass UpperHalfPlane
theorem FreyPackage.frey_no_cofixed_eleven (P : FreyPackage) (hp : P.p = 11) : ¬ HasGaloisStableCofixedLine (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p
3 theorems below · cites 1 · cited by 1 · depth 5 · proof 15 lines, 1 helpers
No Galois-stable cofixed line for FreyPackage.frey_no_cofixed_small
open WeierstrassCurve WeierstrassCurve.Affine WeierstrassCurve.Affine.Point
open CuspForm ModularFormClass UpperHalfPlane
theorem FreyPackage.frey_no_cofixed_small (P : FreyPackage) (hp : P.p = 5P.p = 7P.p = 13) : ¬ HasGaloisStableCofixedLine (K := AlgebraicClosure ℚ) ℚ P.freyCurve P.p
6 theorems below · cites 3 · cited by 1 · depth 5 · proof 18 lines, 1 helpers
Fermat's Last Theorem for the exponent fermatLastTheoremFive
theorem fermatLastTheoremFive : FermatLastTheoremFor 5
0 theorems below · cites 0 · cited by 1 · depth 6 · proof 1,758 lines, 121 helpers
Fermat's Last Theorem for exponent fermatLastTheoremSeven
theorem fermatLastTheoremSeven : FermatLastTheoremFor 7
2 theorems below · cites 2 · cited by 1 · depth 6 · proof 8 lines, 0 helpers
The ring of integers of is principal IsCyclotomicExtension.Rat.seven_pid
open scoped NumberField
theorem IsCyclotomicExtension.Rat.seven_pid (K : Type*) [Field K] [NumberField K] [IsCyclotomicExtension {7} ℚ K] : IsPrincipalIdealRing (𝓞 K)
0 theorems below · cites 0 · cited by 1 · depth 7 · proof 63 lines, 5 helpers

Definition modules named here

3,508 theorems of the tree are first reached through this step, in the sense that the first landmark met on a shortest citation path up to fermat_last_theorem is one named in this section. That is a reading aid, not a classification: the infrastructure below modularity and level lowering is largely shared.

§2 The Frey package and the four-way contradiction · §4 Modularity of semistable elliptic curves