zzhisthebest/LeanBenchmark huggingface dataset:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_23.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {X : Ω → Z} {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω × Ω) (σ : Signs n)
  (a : σ ∈ Finset.univ) (i : ι)
  (h_original_goal :
    ∑ k, ↑↑(σ k) * (f i (X (ω k).1) - f i (X (ω k).2)) =
      ∑ k, ↑↑(σ k) * f i (X (ω k).1) - ∑ k, ↑↑(σ k) * f i (X (ω k).2)) :
  ∑ k, ↑↑(σ k) * (f i (X (ω k).1) - f i (X (ω k).2)) =
    ∑ x, (↑↑(σ x) * f i (X (ω x).1) - ↑↑(σ x) * f i (X (ω x).2)) := sorry

Tactic state before:
case h.e'_3.h.e'_4
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
σ : Signs n
a✝ : σ ∈ Finset.univ
i : ι
⊢ ∑ k, ↑↑(σ k) * (f i (X (ω k).1) - f i (X (ω k).2)) = ∑ k, ↑↑(σ k) * f i (X (ω k).1) - ∑ k, ↑↑(σ k) * f i (X (ω k).2)

Tactic:
rw [← Finset.sum_sub_distrib]

Tactic state after:
[case h.e'_3.h.e'_4
 Ω : Type u
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 inst✝ : Nonempty ι
 X : Ω → Z
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω × Ω
 σ : Signs n
 a✝ : σ ∈ Finset.univ
 i : ι
 ⊢ ∑ k, ↑↑(σ k) * (f i (X (ω k).1) - f i (X (ω k).2)) = ∑ x, (↑↑(σ x) * f i (X (ω x).1) - ↑↑(σ x) * f i (X (ω x).2))]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_24.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {X : Ω → Z} {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω × Ω) (σ : Signs n)
  (a : σ ∈ Finset.univ) (i : ι) (k : Fin n) :
  ↑↑(σ k) * (f i (X (ω k).1) - f i (X (ω k).2)) = ↑↑(σ k) * f i (X (ω k).1) - ↑↑(σ k) * f i (X (ω k).2) := sorry

Tactic state before:
case h.e'_3.h.e'_4.e_f.h
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
σ : Signs n
a✝ : σ ∈ Finset.univ
i : ι
k : Fin n
⊢ ↑↑(σ k) * (f i (X (ω k).1) - f i (X (ω k).2)) = ↑↑(σ k) * f i (X (ω k).1) - ↑↑(σ k) * f i (X (ω k).2)

Tactic:
exact mul_sub_left_distrib ((σ k : ℝ)) (f i (X (ω k).1)) (f i (X (ω k).2))

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_25.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {X : Ω → Z} {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω × Ω) (σ : Signs n)
  (a : σ ∈ Finset.univ)
  (h_original_goal :
    ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)| + |∑ k, ↑↑(σ k) * f i (X (ω k).2)| ≤
      (⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)|) + ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).2)|) :
  BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).1)|) := sorry

Tactic state before:
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
σ : Signs n
a✝ : σ ∈ Finset.univ
⊢ ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)| + |∑ k, ↑↑(σ k) * f i (X (ω k).2)| ≤
    (⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)|) + ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).2)|

Tactic:
apply ciSup_add_le_add_ciSup

Tactic state after:
[case hg
 Ω : Type u
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 inst✝ : Nonempty ι
 X : Ω → Z
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω × Ω
 σ : Signs n
 a✝ : σ ∈ Finset.univ
 ⊢ BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).1)|),
 case hh
 Ω : Type u
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 inst✝ : Nonempty ι
 X : Ω → Z
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω × Ω
 σ : Signs n
 a✝ : σ ∈ Finset.univ
 ⊢ BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).2)|)]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_26.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {X : Ω → Z} {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω × Ω) (σ : Signs n)
  (a : σ ∈ Finset.univ)
  (h_original_goal :
    ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)| + |∑ k, ↑↑(σ k) * f i (X (ω k).2)| ≤
      (⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)|) + ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).2)|) :
  BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).2)|) := sorry

Tactic state before:
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
σ : Signs n
a✝ : σ ∈ Finset.univ
⊢ ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)| + |∑ k, ↑↑(σ k) * f i (X (ω k).2)| ≤
    (⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).1)|) + ⨆ i, |∑ k, ↑↑(σ k) * f i (X (ω k).2)|

Tactic:
apply ciSup_add_le_add_ciSup

Tactic state after:
[case hg
 Ω : Type u
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 inst✝ : Nonempty ι
 X : Ω → Z
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω × Ω
 σ : Signs n
 a✝ : σ ∈ Finset.univ
 ⊢ BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).1)|),
 case hh
 Ω : Type u
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 inst✝ : Nonempty ι
 X : Ω → Z
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω × Ω
 σ : Signs n
 a✝ : σ ∈ Finset.univ
 ⊢ BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).2)|)]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_27.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {X : Ω → Z} {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω × Ω) (σ : Signs n)
  (a : σ ∈ Finset.univ) : BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).1)|) := sorry

Tactic state before:
case hg
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
σ : Signs n
a✝ : σ ∈ Finset.univ
⊢ BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).1)|)

Tactic:
apply extracted_1_aux' hf'

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_28.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {X : Ω → Z} {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) (ω : Fin n → Ω × Ω) (σ : Signs n)
  (a : σ ∈ Finset.univ) : BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).2)|) := sorry

Tactic state before:
case hh
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
σ : Signs n
a✝ : σ ∈ Finset.univ
⊢ BddAbove (Set.range fun i => |∑ k, ↑↑(σ k) * f i (X (ω k).2)|)

Tactic:
apply extracted_1_aux' hf'

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_29.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b)
  (h_original_goal : 0 ≤ (↑(Fintype.card (Signs n)))⁻¹) : 0 ≤ ↑(Fintype.card (Signs n)) := sorry

Tactic state before:
case a0
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
⊢ 0 ≤ (↑(Fintype.card (Signs n)))⁻¹

Tactic:
apply inv_nonneg_of_nonneg

Tactic state after:
[case a0.a
 Ω : Type u
 Z : Type w
 n : ℕ
 ι : Type u_1
 f : ι → Z → ℝ
 inst✝ : Nonempty ι
 X : Ω → Z
 b : ℝ
 hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
 ω : Fin n → Ω × Ω
 ⊢ 0 ≤ ↑(Fintype.card (Signs n))]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_30.{u_1, w, u} {Ω : Type u} {Z : Type w} {n : ℕ} {ι : Type u_1} {f : ι → Z → ℝ}
  [inst : Nonempty ι] {b : ℝ} (hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b) : 0 ≤ ↑(Fintype.card (Signs n)) := sorry

Tactic state before:
case a0.a
Ω : Type u
Z : Type w
n : ℕ
ι : Type u_1
f : ι → Z → ℝ
inst✝ : Nonempty ι
X : Ω → Z
b : ℝ
hf' : ∀ (i : ι) (z : Z), |f i z| ≤ b
ω : Fin n → Ω × Ω
⊢ 0 ≤ ↑(Fintype.card (Signs n))

Tactic:
exact Nat.cast_nonneg' (Fintype.card (Signs n))

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_31.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (i : ι) (x : α) : f i x < ⊤ := sorry

Tactic state before:
case h
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
i : ι
x : α
⊢ f i x < ⊤

Tactic:
exact lt_top_of_lt (hf_le i x)

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_32.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤)
  (h_original_goal : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤) : ⨆ i, ∫⁻ (a : α), f i a ∂μ < ⊤ := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
⊢ ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤

Tactic:
rw [← lt_top_iff_ne_top]

Tactic state after:
[α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 ⊢ ⨆ i, ∫⁻ (a : α), f i a ∂μ < ⊤]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_33.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤)
  (h_original_goal : ⨆ i, ∫⁻ (a : α), f i a ∂μ < ⊤) : ∃ b < ⊤, ∀ (i : ι), ∫⁻ (a : α), f i a ∂μ ≤ b := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
⊢ ⨆ i, ∫⁻ (a : α), f i a ∂μ < ⊤

Tactic:
rw [iSup_lt_iff]

Tactic state after:
[α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 ⊢ ∃ b < ⊤, ∀ (i : ι), ∫⁻ (a : α), f i a ∂μ ≤ b]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_34.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤)
  (h_original_goal : ∫⁻ (a : α), b ∂μ ≤ b * μ Set.univ) : b * μ Set.univ ≤ b * μ Set.univ := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
i : ι
⊢ ∫⁻ (a : α), b ∂μ ≤ b * μ Set.univ

Tactic:
simp only [lintegral_const]

Tactic state after:
[α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 i : ι
 ⊢ b * μ Set.univ ≤ b * μ Set.univ]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_35.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) : b * μ Set.univ ≤ b * μ Set.univ := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
i : ι
⊢ b * μ Set.univ ≤ b * μ Set.univ

Tactic:
apply le_refl

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_36.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) (hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤)
  (h_original_goal : ∫⁻ (a : α), ⨆ i, f i a ∂μ ≠ ⊤) : ∫⁻ (a : α), ⨆ i, f i a ∂μ < ⊤ := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
⊢ ∫⁻ (a : α), ⨆ i, f i a ∂μ ≠ ⊤

Tactic:
rw [← lt_top_iff_ne_top]

Tactic state after:
[α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
 ⊢ ∫⁻ (a : α), ⨆ i, f i a ∂μ < ⊤]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_37.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) (hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤)
  (h_original_goal : ∫⁻ (a : α), ⨆ i, f i a ∂μ ≤ ∫⁻ (a : α), b ∂μ) : (fun a => ⨆ i, f i a) ≤ fun a => b := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
⊢ ∫⁻ (a : α), ⨆ i, f i a ∂μ ≤ ∫⁻ (a : α), b ∂μ

Tactic:
apply lintegral_mono

Tactic state after:
[case hfg
 α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
 ⊢ (fun a => ⨆ i, f i a) ≤ fun a => b]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_38.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) (hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤)
  (a : α) (h_original_goal : (fun a => ⨆ i, f i a) a ≤ (fun a => b) a) (i : ι) : f i a ≤ b := sorry

Tactic state before:
case hfg
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
a : α
⊢ (fun a => ⨆ i, f i a) a ≤ (fun a => b) a

Tactic:
simp only [iSup_le_iff]

Tactic state after:
[case hfg
 α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
 a : α
 ⊢ ∀ (i : ι), f i a ≤ b]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_39.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) (hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤)
  (a : α) (i : ι) : f i a ≤ b := sorry

Tactic state before:
case hfg
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
a : α
i : ι
⊢ f i a ≤ b

Tactic:
exact hf i a

Tactic state after:
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_40.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) (hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤)
  (h_original_goal : ∫⁻ (a : α), b ∂μ ≤ b * μ Set.univ) : b * μ Set.univ ≤ b * μ Set.univ := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
⊢ ∫⁻ (a : α), b ∂μ ≤ b * μ Set.univ

Tactic:
simp only [lintegral_const]

Tactic state after:
[α : Type u_2
 inst✝² : MeasurableSpace α
 μ : Measure α
 inst✝¹ : IsFiniteMeasure μ
 ι : Sort u_3
 inst✝ : Countable ι
 f : ι → α → ℝ≥0∞
 hfm : ∀ (i : ι), Measurable (f i)
 b : ℝ≥0∞
 hb : b ≠ ⊤
 hf : ∀ (i : ι) (x : α), f i x ≤ b
 hf_le : ∀ (i : ι) (x : α), f i x < ⊤
 hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
 hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
 hb' : b * μ Set.univ < ⊤
 hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
 ⊢ b * μ Set.univ ≤ b * μ Set.univ]
import Mathlib
import FoML


open MeasureTheory ProbabilityTheory Real

open scoped ENNReal

theorem extracted_formal_statement_41.{u_3, u_2} {α : Type u_2} [inst : MeasurableSpace α] (μ : Measure α)
  [inst_1 : IsFiniteMeasure μ] {ι : Sort u_3} [inst_2 : Countable ι] (f : ι → α → ℝ≥0∞)
  (hfm : ∀ (i : ι), Measurable (f i)) {b : ℝ≥0∞} (hb : b ≠ ⊤) (hf : ∀ (i : ι) (x : α), f i x ≤ b)
  (hf_le : ∀ (i : ι) (x : α), f i x < ⊤) (hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤)
  (hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤) (hb' : b * μ Set.univ < ⊤) (hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤) :
  b * μ Set.univ ≤ b * μ Set.univ := sorry

Tactic state before:
α : Type u_2
inst✝² : MeasurableSpace α
μ : Measure α
inst✝¹ : IsFiniteMeasure μ
ι : Sort u_3
inst✝ : Countable ι
f : ι → α → ℝ≥0∞
hfm : ∀ (i : ι), Measurable (f i)
b : ℝ≥0∞
hb : b ≠ ⊤
hf : ∀ (i : ι) (x : α), f i x ≤ b
hf_le : ∀ (i : ι) (x : α), f i x < ⊤
hfle : ∀ (i : ι), ∀ᵐ (x : α) ∂μ, f i x < ⊤
hfne : ∀ᵐ (x : α) ∂μ, ∀ (i : ι), f i x ≠ ⊤
hb' : b * μ Set.univ < ⊤
hf_nebot : ⨆ i, ∫⁻ (a : α), f i a ∂μ ≠ ⊤
⊢ b * μ Set.univ ≤ b * μ Set.univ

Tactic:
apply le_refl

Tactic state after: