Pure Lean 4 · No Mathlib
MediumNatural Numbers
36. Divisibility of Linear Combinations
Prove that if `d` divides both `a` and `b`, then `d` divides any linear combination `x * a + y * b`. Unpack the witnesses for `a` and `b`, construct the quotient `q = x * k + y * m`, and factor out `d`.
Target Theorem
theorem div_linear_comb (d a b x y : Nat) (ha : ∃ k, a = d * k) (hb : ∃ m, b = d * m) : ∃ q, x * a + y * b = d * qHints (0/3)
Stuck? Reveal hints one step at a time without spoiling the full proof.
Symbols:
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).