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

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

Tactic: apply MemLp.of_bound (measurable_aux5 hf ω).aestronglyMeasurable (n * (b + b))

State after:
[Ω : Type u
 inst✝³ : MeasurableSpace Ω
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 μ : Measure Ω
 inst✝² : IsProbabilityMeasure μ
 inst✝¹ : Nonempty ι
 inst✝ : Countable ι
 X : Ω → Z
 hf : ∀ (i : ι), Measurable (f i ∘ X)
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω
 ⊢ ∀ᵐ (x : Fin n → Ω) ∂Measure.pi fun x => μ, ‖‖⨆ i, |∑ k, (f i (X (ω k)) - f i (X (x k)))|‖‖ ≤ ↑n * (b + b)]

Relevant lemmas:
measurable_aux5 : ∀ {Ω : Type u} [inst : MeasurableSpace Ω] {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst_4 : Countable ι] {X : Ω → Z},
  (∀ (i : ι), Measurable (f i ∘ X)) →
    ∀ (ω : Fin n → Ω), Measurable fun ω' => ‖⨆ i, |∑ k, (f i (X (ω k)) - f i (X (ω' k)))|‖
MeasureTheory.MemLp.of_bound : ∀ {α : Type u_1} {E : Type u_4} {m0 : MeasurableSpace α} {p : ℝ≥0∞} {μ : Measure α}
  [inst : NormedAddCommGroup E] [inst_4 : IsFiniteMeasure μ] {f : α → E},
  AEStronglyMeasurable f μ → ∀ (C : ℝ), (∀ᵐ (x : α) ∂μ, ‖f x‖ ≤ C) → MemLp f p μ