theorem extracted_formal_statement_270.{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 → Ω) × (Fin n → Ω))
  (h_original_goal : |∑ σ, ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω.1 k))|| ≤ ↑n * b * 2 ^ n) :
  |∑ σ, ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω.1 k))|| ≤ 2 ^ n * (↑n * b) := sorry

State before:
case h
Ω : 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 → Ω) × (Fin n → Ω)
⊢ |∑ σ, ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω.1 k))|| ≤ ↑n * b * 2 ^ n

Tactic: rw [mul_comm (↑n * b)]

State after:
[case h
 Ω : 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 → Ω) × (Fin n → Ω)
 ⊢ |∑ σ, ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω.1 k))|| ≤ 2 ^ n * (↑n * b)]

Relevant lemmas:
mul_comm : ∀ {G : Type u_1} [inst : CommMagma G] (a b : G), a * b = b * a