Theorem: MeasureTheory.tendsto_setIntegral_of_monotone
File: Mathlib/MeasureTheory/Integral/SetIntegral.lean

Proof steps:
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
hfi : IntegrableOn f (⋃ n, s n) μ
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in ⋃ n, s n, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
hfi : IntegrableOn f (⋃ n, s n) μ
hfi' : ∫⁻ (x : X) in ⋃ n, s n, ↑‖f x‖₊ ∂μ < ⊤
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in ⋃ n, s n, f x ∂μ))
tactic: have hfi' : ∫⁻ x in ⋃ n, s n, ‖f x‖₊ ∂μ < ∞ := hfi.2
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
hfi : IntegrableOn f (⋃ n, s n) μ
hfi' : ∫⁻ (x : X) in ⋃ n, s n, ↑‖f x‖₊ ∂μ < ⊤
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in ⋃ n, s n, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : ∫⁻ (x : X) in S, ↑‖f x‖₊ ∂μ < ⊤
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
tactic: set S := ⋃ i, s i
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : ∫⁻ (x : X) in S, ↑‖f x‖₊ ∂μ < ⊤
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : ∫⁻ (x : X) in S, ↑‖f x‖₊ ∂μ < ⊤
hSm : MeasurableSet S
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
tactic: have hSm : MeasurableSet S := MeasurableSet.iUnion hsm
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : ∫⁻ (x : X) in S, ↑‖f x‖₊ ∂μ < ⊤
hSm : MeasurableSet S
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : ∫⁻ (x : X) in S, ↑‖f x‖₊ ∂μ < ⊤
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
tactic: have hsub : ∀ {i}, s i ⊆ S := @(subset_iUnion s)
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : ∫⁻ (x : X) in S, ↑‖f x‖₊ ∂μ < ⊤
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : (μ.withDensity fun x => ↑‖f x‖₊) S < ⊤
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
tactic: rw [← withDensity_apply _ hSm] at hfi'
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hfi' : (μ.withDensity fun x => ↑‖f x‖₊) S < ⊤
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
tactic: set ν := μ.withDensity fun x => ‖f x‖₊ with hν
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
⊢ Tendsto (fun i => ∫ (x : X) in s i, f x ∂μ) atTop (𝓝 (∫ (x : X) in S, f x ∂μ))
state_after: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ
ε0 : 0 < ε
⊢ ∀ᶠ (x : ι) in atTop, ∫ (x : X) in s x, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ε
tactic: refine Metric.nhds_basis_closedBall.tendsto_right_iff.2 fun ε ε0 => ?_
state_before: X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ
ε0 : 0 < ε
⊢ ∀ᶠ (x : ι) in atTop, ∫ (x : X) in s x, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ε
state_after: case intro
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
⊢ ∀ᶠ (x : ι) in atTop, ∫ (x : X) in s x, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ↑ε
tactic: lift ε to ℝ≥0 using ε0.le
state_before: case intro
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
⊢ ∀ᶠ (x : ι) in atTop, ∫ (x : X) in s x, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ↑ε
state_after: case intro
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ∀ᶠ (x : ι) in atTop, ∫ (x : X) in s x, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ↑ε
tactic: have : ∀ᶠ i in atTop, ν (s i) ∈ Icc (ν S - ε) (ν S + ε) :=
    tendsto_measure_iUnion h_mono (ENNReal.Icc_mem_nhds hfi'.ne (ENNReal.coe_pos.2 ε0).ne')
state_before: case intro
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ∀ᶠ (x : ι) in atTop, ∫ (x : X) in s x, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ↑ε
state_after: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ∫ (x : X) in s i, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ↑ε
tactic: filter_upwards [this] with i hi
state_before: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ∫ (x : X) in s i, f x ∂μ ∈ Metric.closedBall (∫ (x : X) in S, f x ∂μ) ↑ε
state_after: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ↑‖∫ (x : X) in S \ s i, f x ∂μ‖₊ ≤ ↑ε
tactic: rw [mem_closedBall_iff_norm', ← integral_diff (hsm i) hfi hsub, ← coe_nnnorm, NNReal.coe_le_coe, ←
    ENNReal.coe_le_coe]
state_before: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ↑‖∫ (x : X) in S \ s i, f x ∂μ‖₊ ≤ ↑ε
state_after: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ∫⁻ (a : X) in S \ s i, ↑‖f a‖₊ ∂μ ≤ ↑ε
tactic: refine (ennnorm_integral_le_lintegral_ennnorm _).trans ?_
state_before: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ∫⁻ (a : X) in S \ s i, ↑‖f a‖₊ ∂μ ≤ ↑ε
state_after: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ν S - ν (s i) ≤ ↑ε

case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ν (s i) ≠ ⊤
tactic: rw [← withDensity_apply _ (hSm.diff (hsm _)), ← hν, measure_diff hsub (hsm _)]
state_before: case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ν S - ν (s i) ≤ ↑ε

case h
X : Type u_1
Y : Type u_2
E : Type u_3
F : Type u_4
inst✝⁴ : MeasurableSpace X
inst✝³ : NormedAddCommGroup E
inst✝² : NormedSpace ℝ E
f g : X → E
s✝ t : Set X
μ ν✝ : Measure X
l l' : Filter X
ι : Type u_5
inst✝¹ : Countable ι
inst✝ : SemilatticeSup ι
s : ι → Set X
hsm : ∀ (i : ι), MeasurableSet (s i)
h_mono : Monotone s
S : Set X := ⋃ i, s i
hfi : IntegrableOn f S μ
hSm : MeasurableSet S
hsub : ∀ {i : ι}, s i ⊆ S
ν : Measure X := μ.withDensity fun x => ↑‖f x‖₊
hfi' : ν S < ⊤
hν : ν = μ.withDensity fun x => ↑‖f x‖₊
ε : ℝ≥0
ε0 : 0 < ↑ε
this : ∀ᶠ (i : ι) in atTop, ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
i : ι
hi : ν (s i) ∈ Icc (ν S - ↑ε) (ν S + ↑ε)
⊢ ν (s i) ≠ ⊤
state_after: no goals
tactic: exacts [tsub_le_iff_tsub_le.mp hi.1,
    (hi.2.trans_lt <| ENNReal.add_lt_top.2 ⟨hfi', ENNReal.coe_lt_top⟩).ne]