Fermat's Last Theorem for the exponent 5
ProvedfermatLastTheoremFiveThe theorem asserts FermatLastTheoremFor 5, Mathlib's predicate for Fermat's Last Theorem at a fixed exponent, instantiated at . Unfolded, this says: for all natural numbers , , , if , and , then . There are no further variables, hypotheses or typeclass assumptions: the statement is a closed proposition about the natural numbers, with the exponent given as the literal rather than as a variable satisfying some condition. Equivalently (and this is the form actually proved before transport along Mathlib's fermatLastTheoremFor_iff_int), the equation has no solution in integers with ; the statement over is the one recorded here. Nothing is asserted about exponents other than , and no rational or real solutions are considered.
This is the classical theorem of Dirichlet and Legendre (1825) settling the quintic case of Fermat's equation. Within the present development it is not obtained as a specialisation of Kummer's theorem for regular primes but by a self-contained descent in the ring , citing only Mathlib. Its role in the route to the general theorem is to make the exponent vacuous: it is used, together with the corresponding results for and , by FreyPackage.frey_no_cofixed_small, which rules out a Galois-stable line with trivial action on the quotient for the Frey curve when simply because no Frey package with such exists.
import Mathlib set_option maxHeartbeats 4000000 set_option synthInstance.maxHeartbeats 400000 set_option backward.isDefEq.respectTransparency.types false
theorem fermatLastTheoremFive : FermatLastTheoremFor 5 := by sorry