theorem extracted_formal_statement_326.{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 :
    MemLp (fun ω => ⨆ i, |∑ k, (f i (X (ω.1 k)) - f i (X (ω.2 k)))|) 1
      ((Measure.pi fun x => μ).prod (Measure.pi fun x => μ))) :
  ∀ᵐ (x : (Fin n → Ω) × (Fin n → Ω)) ∂(Measure.pi fun x => μ).prod (Measure.pi fun x => μ),
    ‖⨆ i, |∑ k, (f i (X (x.1 k)) - f i (X (x.2 k)))|‖ ≤ ↑n * (b + b) := sorry

State before:
Ω : 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
⊢ MemLp (fun ω => ⨆ i, |∑ k, (f i (X (ω.1 k)) - f i (X (ω.2 k)))|) 1
    ((Measure.pi fun x => μ).prod (Measure.pi fun x => μ))

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

State after:
[Ω : 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
 ⊢ ∀ᵐ (x : (Fin n → Ω) × (Fin n → Ω)) ∂(Measure.pi fun x => μ).prod (Measure.pi fun x => μ),
     ‖⨆ i, |∑ k, (f i (X (x.1 k)) - f i (X (x.2 k)))|‖ ≤ ↑n * (b + b)]

Relevant lemmas:
extracted_5_aux : ∀ {Ω : Type u} [inst : MeasurableSpace Ω] {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  {X : Ω → Z} [inst_3 : Countable ι],
  (∀ (i : ι), Measurable (f i ∘ X)) → Measurable fun ω => ⨆ i, |∑ k, (f i (X (ω.1 k)) - f i (X (ω.2 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 μ