Around 1637 Pierre de Fermat wrote, in the margin of his copy of Diophantus' Arithmetica, that no -th power with splits as a sum of two like powers, and that he had a proof the margin was too narrow to hold. The claim resisted every generation of number theorists that attacked it, and the machinery built during those attacks — cyclotomic fields, ideal theory, class numbers, elliptic curves, modular forms, Galois representations — became a large part of modern algebraic number theory. The statement itself is elementary enough to explain to a schoolchild; nothing about its proof is.
Timeline. Fermat himself proved the case by infinite descent, as a corollary of the fact that the area of a right triangle with integer sides is never a perfect square. Euler treated in his Vollständige Anleitung zur Algebra (1770), by a descent in that assumed a unique-factorization property later supplied by others. Dirichlet and Legendre settled between 1825 and 1830, Dirichlet added in 1832, and Lamé published in 1839. In 1847 Kummer made the decisive structural step: introducing ideal numbers to repair the failure of unique factorization in , he proved the theorem for every regular prime exponent — those not dividing the class number of , a condition he characterized by divisibility of Bernoulli numerators. Irregular primes were left open, and the elementary programme stalled there for over a century.
The route that closed the problem came from a different direction. The modularity conjecture of Taniyama (1955), refined by Shimura and given conceptual support by Weil (1967), predicted that every elliptic curve over arises from a modular form. Hellegouarch and then Frey (1985) attached to a hypothetical solution the curve , whose ramification behaviour is too tame for a curve of its conductor. Serre made this precise as the epsilon conjecture, and Ribet proved it in 1986: modularity of semistable elliptic curves over implies Fermat's Last Theorem. Wiles proved that modularity statement, with the key Hecke-algebra input supplied jointly with Taylor, in two 1995 Annals of Mathematics papers. Breuil, Conrad, Diamond and Taylor removed the semistability hypothesis in 2001.
Fix a natural number and natural numbers . A Fermat triple of exponent is a triple of strictly positive naturals with
For such triples are everywhere, and for they are the Pythagorean triples, parametrized by . The assertion at issue is that from upward there are none at all: the hypothesis and the positivity hypotheses , , are exactly what is needed, since and the degenerate triples with a zero entry both produce solutions.
Two standard reductions organize any attack. First, if is a triple of exponent and , then is a triple of exponent ; since every is divisible by or by an odd prime , the general statement follows from the cases and an odd prime. Second, for a prime exponent one may assume , and the classical literature then splits on whether (case I) or (case II).
This is the mission's single goal, referenced as the published platform theorem fermat_last_theorem. It fixes no exponent, no congruence class, and no auxiliary structure: any complete argument, classical or modern, discharges it.
The result itself. As a Diophantine statement, Fermat's Last Theorem is a closed case; its value now lies in what proving it required. The proof established the modularity of semistable elliptic curves over , made modularity lifting ("") a standard technique, and turned Galois deformation theory into a working tool. Those consequences — not the non-existence of Fermat triples — are what the surrounding mathematics uses daily; the Fermat statement is the compact certificate that the machinery works.
Formalizing it. The theorem is proved but not formally verified end to end, and that gap is the mission. Machine-checked proofs exist for the small exponents and for Kummer's regular-prime case: Mathlib carries the general statement together with the cases and , and the flt-regular project verified the regular-prime theorem in Lean 4. No formal proof of the full theorem exists in any system; Buzzard's ongoing FLT project at Imperial College is building one by reducing the statement to results known to experts by the late 1980s. Contributions here need not follow that route — a complete Lean proof of any single case not yet covered, or of any structural ingredient (level lowering, modularity lifting, the properties of the Frey curve), is a genuine advance, and the platform's sketch mechanism is the natural way to record such a reduction.
The naive attacks fail for identifiable reasons, and a solver should rule them out before spending time on them. Congruence and descent arguments of the kind that settle depend on the arithmetic of a specific small ring and do not generalize: the descent step needs unique factorization in or a substitute, and unique factorization fails there for all but finitely many . Kummer's ideal-theoretic repair recovers the argument exactly when is regular, and no argument in that family is known to handle irregular primes; the irregular primes are moreover infinite in number, so no finite computation closes them. Parity, size, and modular-arithmetic obstructions have all been shown insufficient, since the equation has solutions modulo every prime power for suitable triples. The only known complete proof passes through modularity, which means the formal development needs elliptic curves over , their Galois representations, modular forms and Hecke algebras, level-lowering, and a modularity lifting theorem — none of which is a shortcut around the difficulty, all of which is where the difficulty actually lives.
The target is stated over , so no truncated subtraction enters the statement and no sign analysis is hidden in it; the equivalent formulations over and over follow by clearing denominators and moving terms, and a solver who prefers to work over must supply that bridge. Exponentiation is Monoid.npow on , and plays no role because . The hypotheses , , are all load-bearing and none of them is vacuous, so the statement admits no trivializing reading: dropping any one makes it false, and every hypothesis is satisfiable, so the conclusion cannot be reached by contradiction from the assumptions alone. Mathlib does not contain Fermat's Last Theorem, so the goal cannot be discharged by citing a library lemma.
A complete development will want: the reduction from general to and odd prime exponents; the coprimality normalization; cyclotomic fields, class groups, and the regularity criterion for the Kummer line of attack; and, for the modular route, Weierstrass curves over , conductors and minimal models, Galois representations attached to torsion points, modular forms and Hecke operators, and the level-lowering and modularity-lifting statements. Most of that infrastructure is reusable well beyond this mission and is welcome as separate published theorems and definitions. Partial contributions are welcome in either style: a direct proof of a single exponent, or a sketch that reduces the goal to child lemmas with statements that stand on their own.
flt-regular), Lean 4 formalization. https://github.com/leanprover-community/flt-regulartheorem fermat_last_theorem (n : ℕ) (hn : 3 ≤ n) (a b c : ℕ) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) : a ^ n + b ^ n ≠ c ^ n := by sorry
Fermat's Last Theorem. For every integer , the equation has no solutions in positive integers .
Proved by Andrew Wiles (with Richard Taylor) in 1994–1995 for an odd prime, combined with Fermat's own 1640 proof for .
No open leaves. Every sub-goal is proved or awaiting decomposition.