← Wonderland

Fermat's Last Theorem

A one-line note scribbled in the margin of a Greek textbook in the 1630s; 358 years and an unexpected detour through elliptic curves before anyone could finish the sentence.

Sometime in the late 1630s, a French magistrate named Pierre de Fermat was reading his copy of Diophantus' Arithmetica — the ancient Greek manual of equations that asked, again and again, for whole-number solutions. In the margin next to Problem II.8, which discusses how to split a square into two smaller squares, Fermat wrote a single sentence.

It claimed that the obvious generalisation — splitting a cube into two cubes, or a fourth power into two fourth powers, or any higher power at all — is impossible. He added, infuriatingly, that he had found a truly marvellous proof, which the margin was too narrow to contain.

He never wrote it down anywhere else. The margin was the only place it ever lived. And it took the rest of mathematics three and a half centuries to catch up.

The conjecture, and why the “3 or more” matters

Strip away the marginalia and the claim is this: the equation

an + bn = cn

has no solutions in positive whole numbers when the exponent n is 3 or greater. For n = 2, of course, solutions are everywhere — the Pythagorean triples. 3, 4, 5. 5, 12, 13. 8, 15, 17. An infinite family. Every right triangle with whole-number sides is one. Hop the exponent up by one, to n = 3, and the well is supposed to run completely dry. Forever. For every higher exponent too.

n = 2: 3² + 4² = 5² (and infinitely many more) n ≥ 3: no whole-number solutions at all an + bn = cn the same equation, two completely different worlds

For the exponent 2 the integers are generous; bump the exponent by one and they refuse to cooperate, forever.

It is a statement about nothing — the absence of any solution — which is a peculiar thing to try to prove. You cannot exhibit a counterexample to no-counterexamples-exist. You have to rule out an infinite set of triples and an infinite set of exponents in one breath.

Three centuries of partial answers

Mathematicians, taking the claim seriously, chipped away one exponent at a time. Fermat himself left a complete proof for n = 4, by his own method of infinite descent: assume a solution exists, then construct from it a strictly smaller solution, ad infinitum — impossible inside the positive integers. Euler handled n = 3 in 1770, though his original argument had a gap that took further work to plug. Sophie Germain, writing under a male pseudonym to get her work read at all, opened up a whole class of prime exponents in the early 1800s. Dirichlet and Legendre did n = 5; Lamé did n = 7.

Each victory was hard. Each was specific. None scaled. The problem with Fermat's claim was structural: there are infinitely many exponents, and the technique that killed one didn't generalise to the next.

In the mid-1800s, Ernst Kummer tried an audacious move. Recast the equation in a richer number system — not just ordinary integers, but the “cyclotomic integers” built from roots of unity — and the left-hand side factors. If the factors are coprime and their product is a perfect power, each factor must be a power too. That would crack the equation.

Except: in those richer systems, unique factorisation can fail. The number 6 = 2 × 3 = (1 + √−5)(1 − √−5) refuses to commit to a single splitting. Kummer salvaged the approach by inventing “ideal numbers” — a precursor to modern ideal theory — and proved the theorem for a large class of primes (the “regular” ones). But the rest sat there, unmoved. By the late twentieth century, computers had verified the theorem for every exponent up to four million. Computers cannot prove infinitely many cases. Something deeper was needed.

It seems to be one of those problems that needs a tool no one has yet built. The tool turned out to be in a different country of mathematics altogether.

The unexpected bridge: elliptic curves and modular forms

In 1955, two Japanese mathematicians, Yutaka Taniyama and Goro Shimura, made a conjecture that on the face of it had nothing to do with Fermat. It said that every elliptic curve — a smooth cubic curve of the form y² = x³ + ax + b — is secretly the same thing, in a precise technical sense, as a modular form, a kind of highly symmetric function on the upper half of the complex plane. Two universes — the geometry of curves and the analysis of symmetric functions — were, the conjecture said, just two faces of the same object.

This had nothing visibly to do with Fermat. The link arrived in 1985. Gerhard Frey noticed something disturbing: if a counterexample to Fermat's theorem existed — some forbidden triple ap + bp = cp — you could use it to build a particular elliptic curve, now called the Frey curve. And that curve, Frey argued, would have to be so pathologically strange that no modular form could correspond to it. Ken Ribet made this rigorous in 1986. The verdict: if Taniyama–Shimura is true, Fermat is true. A solution to Fermat's equation would force a curve to exist that broke the Taniyama–Shimura conjecture.

Fermat's Last Theorem no an+bn=cn Frey curve y² = x(x − ap)(x + bp) would have to exist Taniyama– Shimura elliptic ↔ modular Frey Ribet The bridge that made the proof possible prove Taniyama–Shimura (enough of it) ⇒ Fermat falls

Frey's curve and Ribet's level-lowering theorem chained Fermat to a far more general conjecture about elliptic curves.

Andrew Wiles, an English mathematician at Princeton, had been quietly obsessed with Fermat since he was a ten-year-old in a Cambridge library. When he heard about Ribet's result, he saw a path: not to attack Fermat directly, but to prove enough of Taniyama–Shimura to capture every elliptic curve a hypothetical Fermat counterexample could produce. He told almost no one. He worked alone, in his attic, for seven years.

The proof, and what it cost

In June 1993, at a conference in Cambridge, Wiles gave three lectures whose final slide simply stated Fermat's Last Theorem as a corollary. The room understood what had just happened. The journalists arrived within hours.

Then, that autumn, a referee found a gap. One step in the long chain of inequalities did not quite close. For a year, Wiles — eventually with the help of his former student Richard Taylor — tried to patch it. He nearly gave up. The fix, when it came, was an act of mathematical jiu-jitsu: an earlier approach Wiles had abandoned turned out to fill exactly the hole his later approach had left behind. The complete proof, in two papers totalling over a hundred dense pages, appeared in 1995. Three hundred and fifty-eight years after Fermat's marginal note, the sentence was finished.

The proof does not use anything Fermat could have had. It uses elliptic curves, modular forms, Galois representations, deformation theory — cathedrals of twentieth-century mathematics that Fermat could not have begun to anticipate. The honest verdict is that Fermat almost certainly did not have a proof. He probably had a flawed argument he later spotted the hole in, and never bothered to update the margin.

But the marginal note did something extraordinary anyway. By being so simple to state and so impossible to prove, it acted as a kind of gravitational well. Generations of mathematicians, trying to crack it, built the tools — ideal theory, algebraic number theory, the whole machinery linking geometry and analysis — that turned out to matter for reasons far beyond Fermat. The wrong question, posed well enough, can be more productive than the right one. And occasionally, three and a half centuries later, somebody answers it.


Further reading

  1. Singh, S. (1997). Fermat's Last Theorem. Fourth Estate. The definitive popular account.
  2. Wiles, A. (1995). Modular Elliptic Curves and Fermat's Last Theorem. Annals of Mathematics, 141(3).
  3. Taylor, R. & Wiles, A. (1995). Ring-Theoretic Properties of Certain Hecke Algebras. Annals of Mathematics, 141(3).
  4. Ribet, K. (1990). On Modular Representations of Gal(Q̄/Q) Arising from Modular Forms. Inventiones Mathematicae, 100.
  5. Edwards, H. M. (1977). Fermat's Last Theorem: A Genetic Introduction to Algebraic Number Theory. Springer.