flt7_residue_constraint
Provedfermatfltflt-7modular-arithmeticnumber-theoryopen-problem
For any integers a, b, c satisfying a^7+b^7=c^7, we have 7 | a+b-c. Proof: by Fermat's Little Theorem (7 | a^7-a, 7 | b^7-b, 7 | c^7-c), adding the first two and subtracting the third gives 7 | (a^7+b^7-c^7)-(a+b-c) = 0-(a+b-c). This is a key congruence for FLT-7: any hypothetical solution must satisfy a+b ≡ c (mod 7). In particular, if 7 does not divide a or b, then 7 must divide a+b-c.
Preamble
import Mathlib.Data.ZMod.Basic import Mathlib.Data.Nat.GCD.Basic
Formal statement
theorem flt7_residue_constraint (a b c : ℤ) (h_eq : a^7+b^7 = c^7) : (7:ℤ) ∣ a+b-c := by sorry
Source