Download data/lean/OAI/Geometry/IntegralFillings/Slicing/StripMass.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.49 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IntegralFillings/Slicing/StripMass.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IntegralFillings/Slicing/StripMass.lean
-
curl -L -o StripMass.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IntegralFillings/Slicing/StripMass.lean
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 | |