theorem extracted_formal_statement_98.{w, v, u} {Z : Type w} {ι : Type v} {f : ι → Z → ℝ} {Ω : Type u}
  [inst : MeasurableSpace Ω] {X : Ω → Z} {μ : Measure Ω} [inst_1 : IsProbabilityMeasure μ] {n : ℕ}
  [inst_2 : Countable ι] [inst_3 : Nonempty ι] (h𝓕 : ∀ (I : ι), Measurable (f I ∘ X)) {b : ℝ}
  (h𝓕' : ∀ (I : ι) (z : Z), |f I z| ≤ b) {c : ι → ℝ} {C : ℝ} (hC : ∀ (I : ι), |c I| ≤ C)
  (σ : Fin n → { x // x ∈ {-1, 1} }) (a : σ ∈ Finset.univ) (I : ι)
  (h_original_goal : Measurable fun b => ∑ i, ↑↑(σ i) * (f I (X (b i).1) - f I (X (b i).2)) + c I) :
  Measurable fun x => ∑ i, ↑↑(σ i) * (f I (X (x i).1) - f I (X (x i).2)) := sorry

State before:
case left.hf.hf.hf
Z : Type w
ι : Type v
f : ι → Z → ℝ
Ω : Type u
inst✝³ : MeasurableSpace Ω
X : Ω → Z
μ : Measure Ω
inst✝² : IsProbabilityMeasure μ
n : ℕ
inst✝¹ : Countable ι
inst✝ : Nonempty ι
h𝓕 : ∀ (I : ι), Measurable (f I ∘ X)
b : ℝ
h𝓕' : ∀ (I : ι) (z : Z), |f I z| ≤ b
c : ι → ℝ
C : ℝ
hC : ∀ (I : ι), |c I| ≤ C
σ : Fin n → { x // x ∈ {-1, 1} }
a✝ : σ ∈ Finset.univ
I : ι
⊢ Measurable fun b => ∑ i, ↑↑(σ i) * (f I (X (b i).1) - f I (X (b i).2)) + c I

Tactic: apply Measurable.add_const

State after:
[case left.hf.hf.hf.hf
 Z : Type w
 ι : Type v
 f : ι → Z → ℝ
 Ω : Type u
 inst✝³ : MeasurableSpace Ω
 X : Ω → Z
 μ : Measure Ω
 inst✝² : IsProbabilityMeasure μ
 n : ℕ
 inst✝¹ : Countable ι
 inst✝ : Nonempty ι
 h𝓕 : ∀ (I : ι), Measurable (f I ∘ X)
 b : ℝ
 h𝓕' : ∀ (I : ι) (z : Z), |f I z| ≤ b
 c : ι → ℝ
 C : ℝ
 hC : ∀ (I : ι), |c I| ≤ C
 σ : Fin n → { x // x ∈ {-1, 1} }
 a✝ : σ ∈ Finset.univ
 I : ι
 ⊢ Measurable fun x => ∑ i, ↑↑(σ i) * (f I (X (x i).1) - f I (X (x i).2))]

Relevant lemmas:
Measurable.add_const : ∀ {M : Type u_2} {α : Type u_3} [inst : MeasurableSpace M] [inst_4 : Add M]
  {m : MeasurableSpace α} {f : α → M} [inst_5 : MeasurableAdd M], Measurable f → ∀ (c : M), Measurable fun x => f x + c