Math Labs

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

Step 1 of 11: What FLT says and reduction to prime exponents p≥5p \ge 5
In plain words

For squares, 32+42=523^2 + 4^2 = 5^2 has infinitely many whole-number solutions, which are the familiar Pythagorean triples. Fermat claimed in 1637 that the moment the exponent rises to 3,4,53, 4, 5 or higher, not a single whole-number solution exists.

Instead of checking infinitely many exponents one by one, a simple algebraic regrouping shows that any counterexample for a composite exponent automatically creates one for n=4n = 4 or for an odd prime pp. Because Fermat himself handled n=4n = 4 and Leonhard Euler handled p=3p = 3, the entire 350-year problem boils down to odd primes p≥5p \ge 5.

xn+yn=zn  (n≥3)  ⟺  ap+bp=cp  (p≥5 prime, gcd⁡(a,b,c)=1)x^n + y^n = z^n \; (n \ge 3) \iff a^p + b^p = c^p \; (p \ge 5 \text{ prime},\, \gcd(a,b,c)=1)
The exponent reduction tree separates the fourth-power case from odd prime exponents.
Detailed analysis

Fermat's Last Theorem asserts that xn+yn=znx^n + y^n = z^n has no solution in nonzero integers once n≥3n \ge 3. The proof by contradiction begins with a purely elementary normalization: it suffices to rule out the exponents n=4n = 4 and odd primes p≥5p \ge 5, with the solution taken pairwise coprime (Wiles 1995, p. 443).

Indeed, every integer n>2n > 2 is divisible either by 44 or by an odd prime pp. Writing n=4mn = 4m or n=pmn = pm, a putative solution xn+yn=znx^n + y^n = z^n rewrites as (xm)4+(ym)4=(zm)4(x^m)^4 + (y^m)^4 = (z^m)^4 or (xm)p+(ym)p=(zm)p(x^m)^p + (y^m)^p = (z^m)^p, so any counterexample transports to one of these exponents. Fermat settled n=4n = 4 around 1660 by infinite descent — a hypothetical solution generates a strictly smaller one, contradicting the well-ordering of the positive integers — and Euler settled p=3p = 3 by 1770 through descent in Z[−3]\mathbb{Z}[\sqrt{-3}] (with a gap later repaired by Legendre). Coprimality costs nothing: any prime qq dividing two of a,b,ca, b, c divides the third, so dividing the triple through by gcd⁡(a,b,c)p\gcd(a,b,c)^p produces a pairwise coprime solution of the same equation.

The surviving data — a prime p≥5p \ge 5 and pairwise coprime nonzero a,b,ca, b, c with ap+bp=cpa^p + b^p = c^p — are exactly the input that Frey's construction in Step 2 requires: the condition p≥5p \ge 5 will be essential when Serre's irreducibility theorem is invoked for ρ‾E,p\overline{\rho}_{E,p}, and coprimality is what forces the discriminant computation of Step 3 into its rigid 2p2p-th-power shape.

Terms in this step
Pairwise coprime integers
Integers a,b,ca, b, c are pairwise coprime if no two of them share any prime factor (gcd⁡(a,b)=gcd⁡(b,c)=gcd⁡(a,c)=1\gcd(a,b) = \gcd(b,c) = \gcd(a,c) = 1). In ap+bp=cpa^p + b^p = c^p, any prime factor shared by two terms automatically divides the third, so dividing out common factors always leaves a pairwise coprime triple.
Infinite descent
A proof technique invented by Fermat in which a hypothetical positive integer solution is used to construct a strictly smaller positive integer solution. Because positive integers cannot decrease forever, no solution can exist in the first place.
Knowledge used in this step