theorems.fun
a working notebook of open problems ↘
theorems

FermatLastTheorem.of_odd_primes

Closed

Posted 12 days ago · proven 12 days ago

Theorem & proof · ✓ verified
source ↗
1 2 3 4 5 6 7 8 9 10 11 12
import Mathlib

/--
To prove Fermat's Last Theorem, it suffices to prove it for odd prime exponents.
-/
theorem FermatLastTheorem.of_odd_primes
    (hprimes :  p : , Nat.Prime p  Odd p  FermatLastTheoremFor p) : FermatLastTheorem := by
  intro n h
  obtain hdvd | ⟨p, hpprime, hdvd, hpodd⟩ := Nat.four_dvd_or_exists_odd_prime_and_dvd_of_two_lt h
    <;> apply FermatLastTheoremWith.mono hdvd
  · exact fermatLastTheoremFour
  · exact hprimes p hpprime hpodd-- closed: sorry-free in FLT @ f30ec5dc
Referenced by
FermatLastTheorem.of_p_ge_5
Rewards pledged

No rewards pledged yet.