GaloisRepIsIrreducible (Definitions/Def_FLTPrelim_GaloisRep.lean) is basis-free: the p-torsion of
EP(Q) is nontrivial and its only Galois-stable Z/p-submodules are 0 and everything. The
proof module first splits off the case a≡3(mod8), which has its own argument at the prime 2
(FreyPackage.Mazur_Frey_of_a_mod_eight), and otherwise argues by contradiction: a reducible EP[p] 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 EP[p] is fixed or cofixed, using that EP[p] is unramified away from 2p and that EP
has no rational point of order p), and a cofixed line is ruled out separately in three ranges of p:
p = 11 — FreyPackage.frey_no_cofixed_eleven, and p ∈ {5, 7, 13} — FreyPackage.frey_no_cofixed_small. These
are not arguments about elliptic curves: each is discharged by proving Fermat's Last Theorem for that exponent
outright (fermatLastTheoremFive, …Seven, …Eleven, …Thirteen, each of type FermatLastTheoremFor n), so that no
Frey package with that p exists and the conclusion holds vacuously.
fermatLastTheoremFive is a self-contained 2,000-line descent in Z[21+5] citing only Mathlib.
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.
Theorems named in this section (11; statement as in the tree, numbers from the import graph)
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.