Worked solution: Wiles's modularity proof via the Taylor–Wiles method (1994)
If the Frey curve were modular, it would correspond to a cusp form of weight and level . Because the discriminant is a perfect -th power at every odd prime factor , the curve's mod- arithmetic is artificially smooth at .
Jean-Pierre Serre conjectured (the -conjecture, 1985) and Ken Ribet proved in the summer of 1986 (published 1990) that you can strip away one such prime factor after another from the level without changing the mod- shadow of the modular form. Stripping away every odd prime factor of drives the level all the way down to —forcing a nonzero weight- cusp form of level to exist, when the space is known to be completely empty.
In 1985, Jean-Pierre Serre formulated the precise mechanism linking Frey's curve to the Taniyama–Shimura–Weil conjecture as the -conjecture, and Ken Ribet proved it in the summer of 1986 (Ribet, Inventiones Mathematicae 100, 1990; Wiles 1995, p. 443 and p. 448; Qiu et al. 2025, Section 2.2 and Section 3.2.3).
Ribet's level-lowering theorem states that if is a weight- eigenform of square-free level , and the mod- Galois representation is irreducible and unramified (finite flat) at an odd prime , then there is another weight- eigenform of level whose mod- representation is isomorphic to (using a theorem of Mazur when ; see Qiu et al. 2025, Section 3.2.3). For the Frey curve with , the exponent of every odd prime in the minimal discriminant is a multiple of , which makes finite flat at every odd prime . Iterating Ribet's theorem removes every odd prime from , leaving a weight- eigenform of level .
By a classical dimension calculation on the modular curve , the space of weight- cusp forms at level has dimension . Therefore cannot be modular. Since is semistable (Step 3), Ribet's theorem reduces Fermat's Last Theorem to a single statement about elliptic curves: prove that every semistable elliptic curve over is modular (Wiles 1995, Theorem 0.4 Theorem 0.5, p. 448).
- Serre's -conjecture (Ribet's theorem)
- The theorem proved by Ken Ribet (1986, published 1990) showing that if the mod- Galois representation of a weight- modular form of level is unramified at a prime , the level can be lowered from to . Applied to the Frey curve, it lowers the level to , where no weight- cusp form exists.