introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.49 kB
import Mathlib
namespace OAI
section
open Set MeasureTheory Measure Filter Module
open Set Filter MeasureTheory Measure ContinuousLinearMap
open scoped Topology Convolution NNReal
open Set Filter MeasureTheory Measure Metric
open scoped Topology ContDiff
open Set Filter Metric
open Filter Set
open Set Filter MeasureTheory TopologicalSpace
open scoped Topology ENNReal
open Set MeasureTheory
open scoped RealInnerProductSpace
open Matrix
open scoped RealInnerProductSpace MatrixOrder
open Set Filter MeasureTheory
open scoped Topology ENNReal NNReal
open MeasureTheory Filter Set Metric
open scoped Topology Pointwise NNReal
open scoped Topology NNReal
open Set MeasureTheory Filter
open scoped ENNReal NNReal Topology
namespace SharpIntegralFillings.Slicing
variable {X : Type*} [MeasurableSpace X] (ΞΌ : Measure X) [IsFiniteMeasure ΞΌ]
{u : X β†’ ℝ}
noncomputable def stripMass (u : X β†’ ℝ) (a : ℝβ‰₯0) (t : ℝ) : ℝβ‰₯0∞ :=
(a:ℝβ‰₯0∞) * ΞΌ {x | t ≀ u x ∧ u x ≀ t+(a:ℝ)⁻¹}
lemma measurable_stripMass (hu : Measurable u) (a : ℝβ‰₯0) :
Measurable (stripMass ΞΌ u a) := by
have hset : MeasurableSet {p : ℝ Γ— X | p.1 ≀ u p.2 ∧ u p.2 ≀ p.1+(a:ℝ)⁻¹} :=
(measurableSet_le measurable_fst (hu.comp measurable_snd)).inter
(measurableSet_le (hu.comp measurable_snd) (measurable_fst.add_const _))
let f : ℝ β†’ X β†’ ℝβ‰₯0∞ := fun t x =>
if t ≀ u x ∧ u x ≀ t+(a:ℝ)⁻¹ then (a:ℝβ‰₯0∞) else 0
have hf : Measurable (Function.uncurry f) := by
exact Measurable.ite hset measurable_const measurable_const
have heq : stripMass ΞΌ u a = fun t => ∫⁻ x, f t x βˆ‚ΞΌ := by
funext t
have h : MeasurableSet {x | t ≀ u x ∧ u x ≀ t+(a:ℝ)⁻¹} :=
(measurableSet_le measurable_const hu).inter
(measurableSet_le hu measurable_const)
simpa only [stripMass,Set.indicator_apply,Set.mem_ofPred_eq,lintegral_const,
Measure.restrict_apply_univ,f] using
(lintegral_indicator h (fun _ => (a:ℝβ‰₯0∞))).symm
rw [heq]
exact hf.lintegral_prod_right
lemma lintegral_stripMass (hu : Measurable u) {a : ℝβ‰₯0} (ha : 0 < a) :
∫⁻ t : ℝ, stripMass ΞΌ u a t = ΞΌ univ := by
have hset : MeasurableSet {p : ℝ Γ— X | p.1 ≀ u p.2 ∧ u p.2 ≀ p.1+(a:ℝ)⁻¹} :=
(measurableSet_le measurable_fst (hu.comp measurable_snd)).inter
(measurableSet_le (hu.comp measurable_snd) (measurable_fst.add_const _))
let f : ℝ β†’ X β†’ ℝβ‰₯0∞ := fun t x =>
if t ≀ u x ∧ u x ≀ t+(a:ℝ)⁻¹ then (a:ℝβ‰₯0∞) else 0
have hf : Measurable (Function.uncurry f) :=
Measurable.ite hset measurable_const measurable_const
have heq : βˆ€ t, stripMass ΞΌ u a t = ∫⁻ x, f t x βˆ‚ΞΌ := by
intro t
have h : MeasurableSet {x | t ≀ u x ∧ u x ≀ t+(a:ℝ)⁻¹} :=
(measurableSet_le measurable_const hu).inter
(measurableSet_le hu measurable_const)
simpa only [stripMass,Set.indicator_apply,Set.mem_ofPred_eq,lintegral_const,
Measure.restrict_apply_univ,f] using
(lintegral_indicator h (fun _ => (a:ℝβ‰₯0∞))).symm
simp_rw [heq]
rw [lintegral_lintegral_swap hf.aemeasurable]
have ht : βˆ€ x, ∫⁻ t : ℝ, f t x = 1 := by
intro x
have heq' : (fun t => f t x) = (Icc (u x-(a:ℝ)⁻¹) (u x)).indicator (fun _ => (a:ℝβ‰₯0∞)) := by
funext t
have hequiv : (t ≀ u x ∧ u x ≀ t+(a:ℝ)⁻¹) ↔
t ∈ Icc (u x-(a:ℝ)⁻¹) (u x) := by
simp only [mem_Icc]; constructor <;> intro h <;> constructor <;> linarith [h.1,h.2]
simp only [f,Set.indicator_apply,hequiv]
rw [heq',lintegral_indicator measurableSet_Icc,lintegral_const,Measure.restrict_apply_univ,
Real.volume_Icc]
simp only [sub_sub_cancel]
rw [ENNReal.ofReal_inv_of_pos (show 0 < (a:ℝ) from ha),ENNReal.ofReal_coe_nnreal]
exact ENNReal.mul_inv_cancel (by exact_mod_cast ne_of_gt ha) ENNReal.coe_ne_top
simp_rw [ht]
simp
lemma ae_finite_strip_liminf (hu : Measurable u) :
βˆ€α΅ t : ℝ, liminf (fun n : β„• => stripMass ΞΌ u ((n:ℝβ‰₯0)+1) t) atTop < (⊀ : ℝβ‰₯0∞) := by
have hmeas := fun n : β„• => measurable_stripMass ΞΌ hu ((n:ℝβ‰₯0)+1)
have hbound : (∫⁻ t : ℝ, liminf (fun n : β„• => stripMass ΞΌ u ((n:ℝβ‰₯0)+1) t) atTop) ≀ ΞΌ univ := by
have h := lintegral_liminf_le (ΞΌ := volume) (u := atTop) hmeas
have hi : βˆ€ n : β„•, ∫⁻ t : ℝ, stripMass ΞΌ u ((n:ℝβ‰₯0)+1) t = ΞΌ univ :=
fun n => lintegral_stripMass ΞΌ hu (by positivity)
simpa only [hi,liminf_const] using h
exact ae_lt_top (Measurable.liminf hmeas) (ne_top_of_le_ne_top (measure_ne_top ΞΌ univ) hbound)
lemma ae_bounded_strip_subsequence (hu : Measurable u) :
βˆ€α΅ t : ℝ, βˆƒ (j : β„• β†’ β„•) (M : ℝβ‰₯0), Tendsto j atTop atTop ∧
βˆ€ n, stripMass ΞΌ u ((j n:ℝβ‰₯0)+1) t ≀ M := by
filter_upwards [ae_finite_strip_liminf ΞΌ hu] with t ht
let r := liminf (fun n : β„• => stripMass ΞΌ u ((n:ℝβ‰₯0)+1) t) atTop
let M : ℝβ‰₯0 := r.toNNReal+1
have hr : r < (M:ℝβ‰₯0∞) := by
change r < ((r.toNNReal+1:ℝβ‰₯0):ℝβ‰₯0∞)
rw [ENNReal.coe_add,ENNReal.coe_toNNReal ht.ne]
exact ENNReal.lt_add_right ht.ne (by simp)
have hf := frequently_lt_of_liminf_lt (u := fun n : β„• => stripMass ΞΌ u ((n:ℝβ‰₯0)+1) t) (h := hr)
choose j hj hbound using frequently_atTop.mp hf
refine ⟨j,M,?_,fun n => (hbound n).le⟩
exact tendsto_atTop_mono hj tendsto_id
end SharpIntegralFillings.Slicing
end
end OAI