Fermat's Last Theorem for exponent 7
ProvedfermatLastTheoremSevenThe assertion is FermatLastTheoremFor 7, Mathlib's predicate which unfolds to: for all natural numbers , , with , and , one has . There are no further hypotheses and no parameters: the statement is a closed proposition about the natural numbers, phrased entirely in Mathlib terms (no project-specific definition is involved). Note that the quantification is over with the three variables required only to be nonzero — no coprimality or ordering assumption is imposed, and the statement is about the single exponent rather than about all exponents or all odd primes.
This is the classical case of Fermat's Last Theorem, first settled by Lamé (1839); the route taken here is instead Kummer's theorem for regular primes together with the fact that the -th cyclotomic field has class number . Within the formalisation it is not used as a step in the Frey–Serre–Ribet–Wiles argument but to dispose of a small exponent: it is cited by FreyPackage.frey_no_cofixed_small, which covers the exponents by noting that no Frey package with such exists, so the conclusion about Galois-stable cofixed lines holds vacuously.
import Mathlib set_option maxHeartbeats 4000000 set_option synthInstance.maxHeartbeats 400000 set_option backward.isDefEq.respectTransparency.types false
theorem fermatLastTheoremSeven : FermatLastTheoremFor 7 := by sorry