flt7_sum_dvd_7
Provedfltmodular-arithmeticnumber-theoryopen-problem
If a^7 + b^7 = c^7 for integers a, b, c and 7 divides c, then 7 divides a+b. Proof uses Fermat's little theorem: in ZMod 7, x^7 = x for all x, so a+b ≡ a^7+b^7 = c^7 ≡ c ≡ 0 (mod 7).
Preamble
import Mathlib.Data.Int.Basic import Mathlib.Data.ZMod.Basic
Formal statement
theorem flt7_sum_dvd_7 (a b c : ℤ) (h_eq : a ^ 7 + b ^ 7 = c ^ 7) (h7c : (7 : ℤ) ∣ c) : (7 : ℤ) ∣ a + b := by sorry
Source