Skip to content

Commit 4d2b82e

Browse files
committed
feat(Integral.Bochnet.Set): add tendsto_setIntegral_of_monotone₀
1 parent 48ddb08 commit 4d2b82e

1 file changed

Lines changed: 31 additions & 13 deletions

File tree

  • Mathlib/MeasureTheory/Integral/Bochner

Mathlib/MeasureTheory/Integral/Bochner/Set.lean

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,25 @@ theorem setIntegral_congr_fun (hs : MeasurableSet s) (h : EqOn f g s) :
7777
theorem setIntegral_congr_set (hst : s =ᵐ[μ] t) : ∫ x in s, f x ∂μ = ∫ x in t, f x ∂μ := by
7878
rw [Measure.restrict_congr_set hst]
7979

80-
theorem integral_union_ae (hst : AEDisjoint μ s t) (ht : NullMeasurableSet t μ)
80+
theorem setIntegral_union₀ (hst : AEDisjoint μ s t) (ht : NullMeasurableSet t μ)
8181
(hfs : IntegrableOn f s μ) (hft : IntegrableOn f t μ) :
8282
∫ x in s ∪ t, f x ∂μ = ∫ x in s, f x ∂μ + ∫ x in t, f x ∂μ := by
8383
simp only [Measure.restrict_union₀ hst ht, integral_add_measure hfs hft]
8484

85+
@[deprecated (since := "2025-12-22")] alias integral_union_ae := setIntegral_union₀
86+
8587
theorem setIntegral_union (hst : Disjoint s t) (ht : MeasurableSet t) (hfs : IntegrableOn f s μ)
8688
(hft : IntegrableOn f t μ) : ∫ x in s ∪ t, f x ∂μ = ∫ x in s, f x ∂μ + ∫ x in t, f x ∂μ :=
87-
integral_union_ae hst.aedisjoint ht.nullMeasurableSet hfs hft
89+
setIntegral_union₀ hst.aedisjoint ht.nullMeasurableSet hfs hft
8890

89-
theorem integral_diff (ht : MeasurableSet t) (hfs : IntegrableOn f s μ) (hts : t ⊆ s) :
91+
theorem integral_diff (ht : NullMeasurableSet t μ) (hfs : IntegrableOn f s μ) (hts : t ⊆ s) :
9092
∫ x in s \ t, f x ∂μ = ∫ x in s, f x ∂μ - ∫ x in t, f x ∂μ := by
91-
rw [eq_sub_iff_add_eq, ← setIntegral_union, diff_union_of_subset hts]
92-
exacts [disjoint_sdiff_self_left, ht, hfs.mono_set diff_subset, hfs.mono_set hts]
93+
rw [eq_sub_iff_add_eq, ← setIntegral_union₀, diff_union_of_subset hts]
94+
exacts [disjoint_sdiff_self_left.aedisjoint, ht, hfs.mono_set diff_subset, hfs.mono_set hts]
95+
96+
theorem integral_diff (ht : MeasurableSet t) (hfs : IntegrableOn f s μ) (hts : t ⊆ s) :
97+
∫ x in s \ t, f x ∂μ = ∫ x in s, f x ∂μ - ∫ x in t, f x ∂μ :=
98+
integral_diff₀ ht.nullMeasurableSet hfs hts
9399

94100
theorem integral_inter_add_diff₀ (ht : NullMeasurableSet t μ) (hfs : IntegrableOn f s μ) :
95101
∫ x in s ∩ t, f x ∂μ + ∫ x in s \ t, f x ∂μ = ∫ x in s, f x ∂μ := by
@@ -139,7 +145,7 @@ theorem setIntegral_univ : ∫ x in univ, f x ∂μ = ∫ x, f x ∂μ := by rw
139145
theorem integral_add_compl₀ (hs : NullMeasurableSet s μ) (hfi : Integrable f μ) :
140146
∫ x in s, f x ∂μ + ∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ := by
141147
rw [
142-
integral_union_ae disjoint_compl_right.aedisjoint hs.compl hfi.integrableOn hfi.integrableOn,
148+
setIntegral_union₀ disjoint_compl_right.aedisjoint hs.compl hfi.integrableOn hfi.integrableOn,
143149
union_compl_self, setIntegral_univ]
144150

145151
theorem integral_add_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
@@ -150,6 +156,10 @@ theorem setIntegral_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
150156
∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ - ∫ x in s, f x ∂μ := by
151157
rw [← integral_add_compl (μ := μ) hs hfi, add_sub_cancel_left]
152158

159+
theorem setIntegral_compl₀ (hs : NullMeasurableSet s μ) (hfi : Integrable f μ) :
160+
∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ - ∫ x in s, f x ∂μ := by
161+
rw [← integral_add_compl₀ (μ := μ) hs hfi, add_sub_cancel_left]
162+
153163
/-- For a function `f` and a measurable set `s`, the integral of `indicator s f`
154164
over the whole space is equal to `∫ x in s, f x ∂μ` defined as `∫ x, f x ∂(μ.restrict s)`. -/
155165
theorem integral_indicator (hs : MeasurableSet s) :
@@ -246,31 +256,39 @@ theorem integral_piecewise [DecidablePred (· ∈ s)] (hs : MeasurableSet s) (hf
246256
integral_add' (hf.integrable_indicator hs) (hg.integrable_indicator hs.compl),
247257
integral_indicator hs, integral_indicator hs.compl]
248258

249-
theorem tendsto_setIntegral_of_monotone
259+
theorem tendsto_setIntegral_of_monotone
250260
{ι : Type*} [Preorder ι] [(atTop : Filter ι).IsCountablyGenerated]
251-
{s : ι → Set X} (hsm : ∀ i, MeasurableSet (s i)) (h_mono : Monotone s)
261+
{s : ι → Set X} (hsm : ∀ i, NullMeasurableSet (s i) μ) (h_mono : Monotone s)
252262
(hfi : IntegrableOn f (⋃ n, s n) μ) :
253263
Tendsto (fun i => ∫ x in s i, f x ∂μ) atTop (𝓝 (∫ x in ⋃ n, s n, f x ∂μ)) := by
254264
refine .of_neBot_imp fun hne ↦ ?_
255265
have := (atTop_neBot_iff.mp hne).2
256266
have hfi' : ∫⁻ x in ⋃ n, s n, ‖f x‖₊ ∂μ < ∞ := hfi.2
257267
set S := ⋃ i, s i
258-
have hSm : MeasurableSet S := MeasurableSet.iUnion_of_monotone h_mono hsm
268+
have hSm : NullMeasurableSet S μ := MeasurableSet.iUnion_of_monotone h_mono hsm
259269
have hsub {i} : s i ⊆ S := subset_iUnion s i
260-
rw [← withDensity_apply _ hSm] at hfi'
270+
rw [← withDensity_apply _ hSm] at hfi'
261271
set ν := μ.withDensity (‖f ·‖ₑ) with
262272
refine Metric.nhds_basis_closedBall.tendsto_right_iff.2 fun ε ε0 => ?_
263273
lift ε to ℝ≥0 using ε0.le
264274
have : ∀ᶠ i in atTop, ν (s i) ∈ Icc (ν S - ε) (ν S + ε) :=
265275
tendsto_measure_iUnion_atTop h_mono (ENNReal.Icc_mem_nhds hfi'.ne (ENNReal.coe_pos.2 ε0).ne')
266276
filter_upwards [this] with i hi
267-
rw [mem_closedBall_iff_norm', ← integral_diff (hsm i) hfi hsub, ← coe_nnnorm, NNReal.coe_le_coe,
268-
ENNReal.coe_le_coe]
277+
rw [mem_closedBall_iff_norm', ← integral_diff (hsm i) hfi hsub, ← coe_nnnorm, NNReal.coe_le_coe,
278+
ENNReal.coe_le_coe]
269279
refine (enorm_integral_le_lintegral_enorm _).trans ?_
270-
rw [← withDensity_apply _ (hSm.diff (hsm _)), ← hν, measure_diff hsub (hsm _).nullMeasurableSet]
280+
have hsm' : NullMeasurableSet (s i) ν := (hsm i).mono_ac (withDensity_absolutelyContinuous ..)
281+
rw [← withDensity_apply₀ _ (hSm.diff (hsm _)), ← hν, measure_diff hsub hsm']
271282
exacts [tsub_le_iff_tsub_le.mp hi.1,
272283
(hi.2.trans_lt <| ENNReal.add_lt_top.2 ⟨hfi', ENNReal.coe_lt_top⟩).ne]
273284

285+
theorem tendsto_setIntegral_of_monotone
286+
{ι : Type*} [Preorder ι] [(atTop : Filter ι).IsCountablyGenerated]
287+
{s : ι → Set X} (hsm : ∀ i, MeasurableSet (s i)) (h_mono : Monotone s)
288+
(hfi : IntegrableOn f (⋃ n, s n) μ) :
289+
Tendsto (fun i => ∫ x in s i, f x ∂μ) atTop (𝓝 (∫ x in ⋃ n, s n, f x ∂μ)) :=
290+
tendsto_setIntegral_of_monotone₀ (hsm · |>.nullMeasurableSet) h_mono hfi
291+
274292
theorem tendsto_setIntegral_of_antitone
275293
{ι : Type*} [Preorder ι] [(atTop : Filter ι).IsCountablyGenerated]
276294
{s : ι → Set X} (hsm : ∀ i, MeasurableSet (s i)) (h_anti : Antitone s)

0 commit comments

Comments
 (0)