Worked solution: Wiles's modularity proof via the Taylor–Wiles method (1994)
All the pieces now lock together. Suppose for contradiction that had a positive integer solution for some . By Step 1, since (Fermat) and (Euler) have no solutions, there would have to be a coprime solution for some prime .
By Steps 2 and 3, that solution builds a semistable elliptic curve . By Wiles's modularity theorem (Steps 7–10), every semistable elliptic curve over is modular, so must be modular. By Ribet's theorem (Step 6), cannot be modular. This direct contradiction proves that no solution exists, settling Fermat's 1637 marginal claim after 358 years.
Combining Theorem 0.4 of Wiles (1995, p. 448: every semistable elliptic curve over is modular) with Ribet's theorem (Step 6) immediately yields Theorem 0.5 of Wiles (1995, p. 448): if with and prime , then . Equivalently, there are no nonzero integers and integer such that (Qiu et al. 2025, Section 3.1.3).
Let us trace the complete logical chain one last time: (1) any counterexample for reduces to (ruled out by Fermat), (ruled out by Euler), or a pairwise coprime counterexample for a prime ; (2) a coprime counterexample for produces the semistable Frey curve of conductor ; (3) by Langlands–Tunnell at , the – switch, and the theorem proved via Taylor–Wiles patching, every semistable elliptic curve over is modular, so is modular; (4) by Ribet's level-lowering theorem, modularity of forces a nonzero weight- cusp form in , a contradiction.
Following the publication of Wiles's and Taylor–Wiles's papers in the May 1995 issue of the Annals of Mathematics, the methods they introduced transformed number theory: Breuil, Conrad, Diamond, and Taylor proved the full Modularity Theorem for all elliptic curves over in 1999, Khare and Wintenberger proved Serre's full modularity conjecture in 2004–2008 (giving a second modern route to FLT), and an ongoing project led by Kevin Buzzard (begun in 2024) is formalizing the complete proof in the Lean theorem prover (Qiu et al. 2025, Section 2.3).
- Modularity Theorem (formerly Taniyama–Shimura–Weil conjecture)
- The theorem that every elliptic curve over is modular—proved for all semistable curves by Wiles and Taylor–Wiles (1995) and extended to all elliptic curves over by Breuil, Conrad, Diamond, and Taylor (1999).
- Serre's modularity conjecture (Khare–Wintenberger theorem)
- Jean-Pierre Serre's 1973–1975 conjecture that every odd irreducible mod- Galois representation arises from a modular form of prescribed minimal weight and level; proved by Chandrashekhar Khare and Jean-Pierre Wintenberger in 2004–2008.