Download data/lean/OAI/Geometry/CAT0Fillings/Slicing/ProfileIntegral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.63 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Slicing/ProfileIntegral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CAT0Fillings/Slicing/ProfileIntegral.lean
-
curl -L -o ProfileIntegral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Slicing/ProfileIntegral.lean
5.63 kB
Lean 4 Β· 4
declarations fullstatements
| import Mathlib | |
| import OAI.Geometry.CAT0Fillings.Slicing.Profiles | |
| 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 ENNReal NNReal Topology | |
| open Set MeasureTheory Filter | |
| open scoped Topology NNReal | |
| namespace CAT0Fillings.SmoothCutoff | |
| open Set MeasureTheory Filter Metric | |
| open scoped Topology NNReal | |
| lemma dprofile_integrable {a : ββ₯0} (ha : 0 < a) (t : β) : | |
| Integrable (dprofile a t) := by | |
| obtain β¨C,hCβ© := exists_profile_bounds | |
| have hc := (hC a t).2.1.continuous | |
| apply hc.integrable_of_hasCompactSupport | |
| apply HasCompactSupport.intro isCompact_Icc | |
| exact fun x hx => dprofile_zero ha hx | |
| lemma integral_dprofile {a : ββ₯0} (ha : 0 < a) (t : β) : | |
| (β« x : β, dprofile a t x) = 1 := by | |
| have ha' : 0 < (a:β) := ha | |
| obtain β¨C,hCβ© := exists_profile_bounds | |
| have hc := (hC a t).2.1.continuous | |
| rw [βsetIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => dprofile_zero ha hx), | |
| integral_Icc_eq_integral_Ioc, | |
| βintervalIntegral.integral_of_le (show t β€ t+(a:β)β»ΒΉ from le_add_of_nonneg_right (inv_nonneg.mpr ha'.le)), | |
| intervalIntegral.integral_eq_sub_of_hasDerivAt (fun x _ => profile_hasDerivAt a t x) | |
| (hc.intervalIntegrable _ _)] | |
| simp [profile,ha'.ne',Real.smoothTransition.one_of_one_le] | |
| lemma dprofile_mul_integrable {f : β β β} (hf : Integrable f) (a : ββ₯0) (t : β) : | |
| Integrable (fun x => dprofile a t x * f x) := by | |
| obtain β¨C,hCβ© := exists_profile_bounds | |
| exact hf.bdd_mul (hC a t).2.1.continuous.aestronglyMeasurable | |
| (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using (hC a t).2.2 x) | |
| theorem ae_tendsto_dprofile_integral {f : β β β} (hf : Integrable f) : | |
| βα΅ t : β, Tendsto (fun n : β => β« x : β, | |
| dprofile ((n:ββ₯0)+1) t x * f x) atTop (π (f t)) := by | |
| obtain β¨C,hCβ© := exists_profile_bounds | |
| let a : β β ββ₯0 := fun n => (n:ββ₯0)+1 | |
| let r : β β β := fun n => ((a n:β))β»ΒΉ | |
| have hap n : 0 < a n := by dsimp [a]; positivity | |
| have harp n : 0 < (a n:β) := hap n | |
| have hrp n : 0 < r n := inv_pos.mpr (harp n) | |
| have hrt : Tendsto r atTop (π[>] 0) := by | |
| apply tendsto_nhdsWithin_iff.mpr | |
| refine β¨?_,Eventually.of_forall fun n => hrp nβ© | |
| exact tendsto_inv_atTop_zero.comp | |
| (show Tendsto (fun n : β => (a n:β)) atTop atTop from by | |
| simpa only [a,NNReal.coe_add,NNReal.coe_natCast,NNReal.coe_one] using | |
| tendsto_atTop_add_const_right atTop 1 (tendsto_natCast_atTop_atTop (R := β))) | |
| filter_upwards [IsUnifLocDoublingMeasure.ae_tendsto_average_norm_sub volume hf.locallyIntegrable 0] | |
| with t ht | |
| have hav := ht (fun _ : β => t) r hrt | |
| (Eventually.of_forall fun n => by simp only [zero_mul]; exact mem_closedBall_self le_rfl) | |
| have hbound n : β(β« x : β, dprofile (a n) t x * f x)-f tβ β€ | |
| (2*(C:β)) * (β¨ x in closedBall t (r n), βf x-f tβ) := by | |
| have hk := dprofile_integrable (hap n) t | |
| have hprod := dprofile_mul_integrable hf (a n) t | |
| have heq : (β« x : β, dprofile (a n) t x * f x)-f t = | |
| β« x : β, dprofile (a n) t x * (f x-f t) := by | |
| simp only [mul_sub,integral_sub hprod (hk.mul_const _),integral_mul_const, | |
| integral_dprofile (hap n),one_mul] | |
| rw [heq] | |
| have herr : Integrable (fun x : β => dprofile (a n) t x * (f x-f t)) := by | |
| apply (hprod.sub (hk.mul_const (f t))).congr | |
| filter_upwards [] with x | |
| exact (mul_sub _ _ _).symm | |
| have hnz (x : β) (hx : x β closedBall t (r n)) : dprofile (a n) t x = 0 := by | |
| apply dprofile_zero (hap n) | |
| intro hi | |
| apply hx | |
| rw [Real.closedBall_eq_Icc] | |
| change t-r n β€ x β§ x β€ t+r n | |
| exact β¨by linarith [hi.1,hrp n],hi.2β© | |
| have hloc : IntegrableOn (fun x : β => βf x-f tβ) (closedBall t (r n)) := | |
| (hf.integrableOn.sub (integrableOn_const (measure_closedBall_lt_top.ne))).norm | |
| calc | |
| ββ« x : β, dprofile (a n) t x * (f x-f t)β β€ | |
| β« x : β, βdprofile (a n) t x * (f x-f t)β := norm_integral_le_integral_norm _ | |
| _ = β« x in closedBall t (r n), βdprofile (a n) t x * (f x-f t)β := | |
| (setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => by rw [hnz x hx,zero_mul,norm_zero])).symm | |
| _ β€ β« x in closedBall t (r n), ((C:β)*(a n:β)) * βf x-f tβ := by | |
| apply setIntegral_mono_on herr.norm.integrableOn (hloc.const_mul _) isClosed_closedBall.measurableSet | |
| intro x _ | |
| rw [norm_mul] | |
| apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) | |
| simpa only [Real.norm_eq_abs,NNReal.coe_mul] using (hC (a n) t).2.2 x | |
| _ = (2*(C:β)) * (β¨ x in closedBall t (r n), βf x-f tβ) := by | |
| rw [integral_const_mul,setAverage_eq,Real.volume_real_closedBall (hrp n).le, | |
| smul_eq_mul] | |
| dsimp [r] | |
| field_simp | |
| have hzero := squeeze_zero_norm hbound (by simpa only [mul_zero] using hav.const_mul (2*(C:β))) | |
| simpa only [sub_add_cancel,zero_add] using hzero.add_const (f t) | |
| end CAT0Fillings.SmoothCutoff | |
| end | |
| end OAI | |
Outline