theorem extracted_formal_statement_48.{u_1, w, u} {Ω : Type u} [inst : MeasurableSpace Ω] {Z : Type w} {n : ℕ}
  {ι : Type u_1} {f : ι → Z → ℝ} {μ : Measure Ω} [inst_1 : IsProbabilityMeasure μ] {X : Ω → Z} [inst_2 : Nonempty ι]
  [inst_3 : Countable ι] (hf : ∀ (i : ι), Measurable (f i ∘ X)) {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b)
  (h_original_goal :
    Measurable fun ω => ∫ (x : Fin n → Ω), ⨆ i, |∑ k, (f i (X (ω k)) - f i (X (x k)))| ∂Measure.pi fun x => μ) :
  Measurable (Function.uncurry fun x ω => ⨆ i, |∑ k, (f i (X (ω k)) - f i (X (x k)))|) := sorry

State before:
case refine_1.hf
Ω : Type u
inst✝¹ : MeasurableSpace Ω
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
μ : Measure Ω
inst✝ : IsProbabilityMeasure μ
X : Ω → Z
inst_2 : Nonempty ι
inst_3 : Countable ι
hf : ∀ (i : ι), Measurable (f i ∘ X)
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
⊢ Measurable fun ω => ∫ (x : Fin n → Ω), ⨆ i, |∑ k, (f i (X (ω k)) - f i (X (x k)))| ∂Measure.pi fun x => μ

Tactic: apply StronglyMeasurable.measurable
    refine StronglyMeasurable.integral_prod_left ?_
    apply Measurable.stronglyMeasurable

State after:
[case refine_1.hf.hf.hf
 Ω : Type u
 inst✝¹ : MeasurableSpace Ω
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 μ : Measure Ω
 inst✝ : IsProbabilityMeasure μ
 X : Ω → Z
 inst_2 : Nonempty ι
 inst_3 : Countable ι
 hf : ∀ (i : ι), Measurable (f i ∘ X)
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ⊢ Measurable (Function.uncurry fun x ω => ⨆ i, |∑ k, (f i (X (ω k)) - f i (X (x k)))|)]

Relevant lemmas:
MeasureTheory.StronglyMeasurable.measurable : ∀ {α : Type u_1} {β : Type u_2} {f : α → β} {x : MeasurableSpace α}
  [inst : TopologicalSpace β] [inst_4 : TopologicalSpace.PseudoMetrizableSpace β] [inst_5 : MeasurableSpace β]
  [inst_6 : BorelSpace β], StronglyMeasurable f → Measurable f
Measurable.stronglyMeasurable : ∀ {α : Type u_1} {β : Type u_2} {f : α → β} {mα : MeasurableSpace α}
  [inst : MeasurableSpace β] [inst_4 : TopologicalSpace β] [inst_5 : TopologicalSpace.PseudoMetrizableSpace β]
  [inst_6 : SecondCountableTopology β] [inst_7 : OpensMeasurableSpace β], Measurable f → StronglyMeasurable f
MeasureTheory.StronglyMeasurable.integral_prod_left : ∀ {α : Type u_1} {β : Type u_2} {E : Type u_3}
  [inst : MeasurableSpace α] [inst_4 : MeasurableSpace β] {μ : Measure α} [inst_5 : NormedAddCommGroup E]
  [inst_6 : NormedSpace ℝ E] [inst_7 : SFinite μ] ⦃f : α → β → E⦄,
  StronglyMeasurable (Function.uncurry f) → StronglyMeasurable fun y => ∫ (x : α), f x y ∂μ