MathLabs

Worked solution: Wiles's modularity proof via the Taylor–Wiles method (1994)

Step 11 of 11: Conclusion: contradiction closes Fermat's Last Theorem
In plain words

All the pieces now lock together. Suppose for contradiction that xn+yn=znx^n + y^n = z^n had a positive integer solution for some n≥3n \ge 3. By Step 1, since n=4n = 4 (Fermat) and p=3p = 3 (Euler) have no solutions, there would have to be a coprime solution ap+bp=cpa^p + b^p = c^p for some prime p≥5p \ge 5.

By Steps 2 and 3, that solution builds a semistable elliptic curve Ea,b,c/QE_{a,b,c}/\mathbb{Q}. By Wiles's modularity theorem (Steps 7–10), every semistable elliptic curve over Q\mathbb{Q} is modular, so Ea,b,cE_{a,b,c} must be modular. By Ribet's theorem (Step 6), Ea,b,cE_{a,b,c} cannot be modular. This direct contradiction proves that no solution exists, settling Fermat's 1637 marginal claim after 358 years.

Wiles (1995): Ea,b,c is modular  ∧  Ribet (1990): Ea,b,c is not modular  ⟹  ∄ (x,y,z∈Z>0),  xn+yn=zn  (n≥3)\text{Wiles (1995): } E_{a,b,c} \text{ is modular} \;\wedge\; \text{Ribet (1990): } E_{a,b,c} \text{ is not modular} \implies \nexists\, (x,y,z \in \mathbb{Z}_{>0}),\; x^n + y^n = z^n \; (n \ge 3)
Detailed analysis

Combining Theorem 0.4 of Wiles (1995, p. 448: every semistable elliptic curve over Q\mathbb{Q} is modular) with Ribet's theorem (Step 6) immediately yields Theorem 0.5 of Wiles (1995, p. 448): if up+vp+wp=0u^p + v^p + w^p = 0 with u,v,w∈Qu, v, w \in \mathbb{Q} and prime p≥3p \ge 3, then uvw=0uvw = 0. Equivalently, there are no nonzero integers x,y,zx, y, z and integer n>2n > 2 such that xn+yn=znx^n + y^n = z^n (Qiu et al. 2025, Section 3.1.3).

Let us trace the complete logical chain one last time: (1) any counterexample for n>2n > 2 reduces to n=4n = 4 (ruled out by Fermat), p=3p = 3 (ruled out by Euler), or a pairwise coprime counterexample ap+bp=cpa^p + b^p = c^p for a prime p≥5p \ge 5; (2) a coprime counterexample for p≥5p \ge 5 produces the semistable Frey curve Ea,b,c:y2=x(x−ap)(x+bp)E_{a,b,c}: y^2 = x(x - a^p)(x + b^p) of conductor N=rad⁡(abc)N = \operatorname{rad}(abc); (3) by Langlands–Tunnell at p=3p = 3, the 33–55 switch, and the RΣ≅TΣR_{\Sigma} \cong \mathbb{T}_{\Sigma} theorem proved via Taylor–Wiles patching, every semistable elliptic curve over Q\mathbb{Q} is modular, so Ea,b,cE_{a,b,c} is modular; (4) by Ribet's level-lowering theorem, modularity of Ea,b,cE_{a,b,c} forces a nonzero weight-22 cusp form in S2(Γ0(2))={0}S_2(\Gamma_0(2)) = \{0\}, 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 Q\mathbb{Q} 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).

Terms in this step
Modularity Theorem (formerly Taniyama–Shimura–Weil conjecture)
The theorem that every elliptic curve over Q\mathbb{Q} is modular—proved for all semistable curves by Wiles and Taylor–Wiles (1995) and extended to all elliptic curves over Q\mathbb{Q} 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-pp Galois representation ρ‾:Gal⁡(Q‾/Q)→GL⁡2(F‾p)\overline{\rho}: \operatorname{Gal}(\overline{\mathbb{Q}}/\mathbb{Q}) \to \operatorname{GL}_2(\overline{\mathbb{F}}_p) arises from a modular form of prescribed minimal weight and level; proved by Chandrashekhar Khare and Jean-Pierre Wintenberger in 2004–2008.
Knowledge used in this step