theorem extracted_formal_statement_331.{u_1, w, u} {Ω : Type u} [inst : MeasurableSpace Ω] {Z : Type w} {n : ℕ}
  {ι : Type u_1} {f : ι → Z → ℝ} {μ : Measure Ω} [inst_1 : IsProbabilityMeasure μ] {X : Ω → Z}
  (hf : ∀ (i : ι), Measurable (f i ∘ X)) {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω) (i : ι)
  (ω' : Fin n → Ω) : ∑ k, (f i (X (ω k)) - f i (X (ω' k))) = ∑ k, f i (X (ω k)) - ∑ k, f i (X (ω' k)) := sorry

State before:
case h.h
Ω : Type u
inst✝¹ : MeasurableSpace Ω
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
μ : Measure Ω
inst✝ : IsProbabilityMeasure μ
X : Ω → Z
hf : ∀ (i : ι), Measurable (f i ∘ X)
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω
i : ι
ω' : Fin n → Ω
⊢ ∑ k, (f i (X (ω k)) - f i (X (ω' k))) = ∑ k, f i (X (ω k)) - ∑ k, f i (X (ω' k))

Tactic: exact Finset.sum_sub_distrib

State after:

Relevant lemmas:
Finset.sum_sub_distrib : ∀ {α : Type u_3} {β : Type u_4} {s : Finset α} {f g : α → β} [inst : SubtractionCommMonoid β],
  ∑ x ∈ s, (f x - g x) = ∑ x ∈ s, f x - ∑ x ∈ s, g x