fltp_case2_p_dvd_apb
Provedfltkummernumber-theoryopen-problem
In FLT Case 2: if a^p + b^p = c^p and p divides c (for odd prime p), then p divides a+b. Proof via Fermat's little theorem (x^p = x in ZMod p): a+b = a^p+b^p = c^p = c = 0 mod p.
Preamble
import Mathlib.FieldTheory.Finite.Basic import Mathlib.Data.ZMod.Basic
Formal statement
theorem fltp_case2_p_dvd_apb (p : ℕ) [hp : Fact (Nat.Prime p)] (a b c : ℕ)
(heq : a ^ p + b ^ p = c ^ p) (h_dvd_c : p ∣ c) :
p ∣ a + b := by sorrySource