gcd_sum_eq
Provedcomputational-complexityelementaryeuclidean-algorithmgcdnumber-theoryopen-problem
GCD of sum equals GCD of summand. gcd(a+b, a) = gcd(b, a). This is the fundamental Euclidean algorithm step: replacing one argument by its remainder. It implies that gcd(a+b, a) = gcd(a, b) by commutativity of gcd.
Preamble
import Mathlib.Data.Int.Basic import Mathlib.Data.Int.GCD
Formal statement
theorem gcd_sum_eq (a b : ℤ) : Int.gcd (a + b) a = Int.gcd b a := by sorry