-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port MeasureTheory.Integral.LebesgueNormedSpace (#4189)
- Loading branch information
1 parent
b079bbf
commit 60fa900
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/- | ||
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Sébastien Gouëzel | ||
! This file was ported from Lean 3 source module measure_theory.integral.lebesgue_normed_space | ||
! leanprover-community/mathlib commit bf6a01357ff5684b1ebcd0f1a13be314fc82c0bf | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.MeasureTheory.Integral.Lebesgue | ||
import Mathlib.Analysis.NormedSpace.Basic | ||
|
||
/-! # A lemma about measurability with density under scalar multiplication in normed spaces -/ | ||
|
||
|
||
open MeasureTheory Filter ENNReal Set | ||
|
||
open NNReal ENNReal | ||
|
||
variable {α β γ δ : Type _} {m : MeasurableSpace α} {μ : MeasureTheory.Measure α} | ||
|
||
theorem aemeasurable_withDensity_iff {E : Type _} [NormedAddCommGroup E] [NormedSpace ℝ E] | ||
[TopologicalSpace.SecondCountableTopology E] [MeasurableSpace E] [BorelSpace E] {f : α → ℝ≥0} | ||
(hf : Measurable f) {g : α → E} : | ||
AEMeasurable g (μ.withDensity fun x => (f x : ℝ≥0∞)) ↔ | ||
AEMeasurable (fun x => (f x : ℝ) • g x) μ := by | ||
constructor | ||
· rintro ⟨g', g'meas, hg'⟩ | ||
have A : MeasurableSet { x : α | f x ≠ 0 } := (hf (measurableSet_singleton 0)).compl | ||
refine' ⟨fun x => (f x : ℝ) • g' x, hf.coe_nnreal_real.smul g'meas, _⟩ | ||
apply @ae_of_ae_restrict_of_ae_restrict_compl _ _ _ { x | f x ≠ 0 } | ||
· rw [EventuallyEq, ae_withDensity_iff hf.coe_nnreal_ennreal] at hg' | ||
rw [ae_restrict_iff' A] | ||
filter_upwards [hg'] | ||
intro a ha h'a | ||
have : (f a : ℝ≥0∞) ≠ 0 := by simpa only [Ne.def, coe_eq_zero] using h'a | ||
rw [ha this] | ||
· filter_upwards [ae_restrict_mem A.compl] | ||
intro x hx | ||
simp only [Classical.not_not, mem_setOf_eq, mem_compl_iff] at hx | ||
simp [hx] | ||
· rintro ⟨g', g'meas, hg'⟩ | ||
refine' ⟨fun x => (f x : ℝ)⁻¹ • g' x, hf.coe_nnreal_real.inv.smul g'meas, _⟩ | ||
rw [EventuallyEq, ae_withDensity_iff hf.coe_nnreal_ennreal] | ||
filter_upwards [hg'] | ||
intro x hx h'x | ||
rw [← hx, smul_smul, _root_.inv_mul_cancel, one_smul] | ||
simp only [Ne.def, coe_eq_zero] at h'x | ||
simpa only [NNReal.coe_eq_zero, Ne.def] using h'x | ||
#align ae_measurable_with_density_iff aemeasurable_withDensity_iff |