Download data/lean/OAI/Analysis/DiskMaximal/AbsoluteContinuity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 31.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DiskMaximal/AbsoluteContinuity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/DiskMaximal/AbsoluteContinuity.lean
-
curl -L -o AbsoluteContinuity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DiskMaximal/AbsoluteContinuity.lean
31.4 kB
| import OAI.Analysis.DiskMaximal.Localization | |
| namespace OAI | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal Topology ContDiff | |
| open scoped RealInnerProductSpace | |
| open MeasureTheory Set Filter | |
| open scoped Topology ENNReal | |
| open scoped Real RealInnerProductSpace | |
| open MeasureTheory Set Filter | |
| open scoped Topology RealInnerProductSpace ContDiff | |
| open MeasureTheory Set Filter | |
| open scoped Topology Interval NNReal | |
| open MeasureTheory Set Filter | |
| open scoped Topology NNReal Real | |
| open MeasureTheory Set Metric | |
| open scoped ENNReal NNReal Topology | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal Topology | |
| open MeasureTheory Set Metric | |
| open scoped ENNReal NNReal | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal | |
| open Finset | |
| open scoped RealInnerProductSpace | |
| open MeasureTheory Set Metric | |
| open scoped ENNReal NNReal Topology | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal RealInnerProductSpace | |
| open MeasureTheory Set | |
| open scoped ENNReal NNReal Topology | |
| open MeasureTheory Set Metric | |
| open scoped ENNReal NNReal RealInnerProductSpace | |
| open scoped RealInnerProductSpace | |
| open scoped RealInnerProductSpace | |
| open scoped ContDiff | |
| open Finset | |
| open MeasureTheory Set Metric Filter | |
| open scoped ENNReal NNReal RealInnerProductSpace ContDiff Topology | |
| open MeasureTheory MeasureTheory.Measure Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace ContDiff | |
| open MeasureTheory Set Metric Filter Finset | |
| open scoped ENNReal NNReal RealInnerProductSpace ContDiff Topology | |
| open MeasureTheory Set | |
| open scoped RealInnerProductSpace | |
| noncomputable section | |
| namespace SobolevBand | |
| open WeakSobolev DiskMaximalTools DiskMoments | |
| lemma high_dyadic (n : β) : high n=2*((2:β)^(2*n)*low n) := by | |
| have he : 2*n=n+n := by omega | |
| rw [high,low,he,pow_add] | |
| field_simp | |
| lemma small_dyadic {L n : β} (hn : Lβ€n) : 2*low L=2*((2:β)^(n-L)*low n) := by | |
| have hp : (2:β)^n=2^(n-L)*2^L := by rw [β pow_add,Nat.sub_add_cancel hn] | |
| rw [low,low,hp] | |
| field_simp | |
| lemma small_le_high (L n : β) : 2*low Lβ€high n := by | |
| have hl : low Lβ€1 := (inv_le_oneβ (by positivity : (0:β)<2^L)).mpr (one_le_powβ (by norm_num)) | |
| have hh : (1:β)β€2^n := one_le_powβ (by norm_num) | |
| unfold high | |
| nlinarith | |
| lemma gradient_error_restrict {u : β β β β β} {g : β β β} | |
| (hu : β n, ContDiff β 1 (u n) β§ HasCompactSupport (u n)) (hg : Integrable g) | |
| (ht : Tendsto (fun n => β« x, βgradient (u n) x-g xβ) atTop (π 0)) (S : Set β) : | |
| Tendsto (fun n => β« x in S, βgradient (u n) xβ) atTop (π (β« x in S, βg xβ)) := by | |
| have hi n : Integrable (gradient (u n)) := (continuous_gradient (hu n).1).integrable_of_hasCompactSupport (gradient_hasCompactSupport (hu n).2) | |
| apply integral_norm_converges hg.integrableOn (fun n => (hi n).integrableOn) | |
| apply squeeze_zero (fun n => integral_nonneg (fun x => norm_nonneg _)) _ ht | |
| intro n | |
| exact integral_mono_measure Measure.restrict_le_self (ae_of_all _ (fun x => norm_nonneg _)) ((hi n).sub hg).norm | |
| lemma exists_diagonal_smooth {f : β β β} {g : β β β} | |
| (hf : Integrable f) (hg : Integrable g) (hw : HasGradient (ΞΌ := volume) f g) : | |
| β u : β β β β β, (β n, ContDiff β 1 (u n) β§ HasCompactSupport (u n)) β§ | |
| (β n, (β« x,βgradient (u n) xβ) β€ (β« x,βg xβ)+1) β§ | |
| Tendsto (fun n => β« x,βgradient (u n) x-g xβ) atTop (π 0) β§ | |
| (β n x, βband (u n) (low n) (high n) x-band f (low n) (high n) xβ β€ 1/((n:β)+1)) := by | |
| have he (n : β) : 0 < min (1/((n:β)+1)) (Real.pi*(low n)^2/((n:β)+1)) := by | |
| have := low_pos n | |
| apply lt_min <;> positivity | |
| choose u hu hc he1 he2 using fun n => exists_smooth_compact_approx hf hg hw (he n) | |
| have hi (n) : Integrable (u n) := (hu n).continuous.integrable_of_hasCompactSupport (hc n) | |
| have h1 n : ContDiff β 1 (u n) := (hu n).of_le (by simp) | |
| refine β¨u,fun n => β¨h1 n,hc nβ©,?_,?_,?_β© | |
| Β· intro n | |
| apply (gradient_integral_le (h1 n) (hc n) hg).trans | |
| gcongr | |
| have hn : 1/((n:β)+1)β€1 := (div_le_one (by positivity)).mpr (by linarith [Nat.cast_nonneg (Ξ± := β) n]) | |
| exact ((he2 n).le.trans (min_le_left _ _)).trans hn | |
| Β· apply squeeze_zero (fun n => integral_nonneg (fun x => norm_nonneg _)) | |
| (fun n => (he2 n).le.trans (min_le_left _ _)) | |
| (tendsto_one_div_add_atTop_nhds_zero_nat (π := β)) | |
| Β· intro n x | |
| rw [Real.norm_eq_abs] | |
| apply (band_sub_le (hi n) hf (low_pos n) (low_le_high n) x).trans | |
| have := low_pos n | |
| apply (div_le_iffβ (by positivity : 0<Real.pi*(low n)^2)).mpr | |
| have h := (he1 n).le.trans (min_le_right _ _) | |
| simpa only [div_eq_mul_inv,mul_comm,mul_left_comm,mul_assoc,one_mul] using h | |
| lemma smooth_diagonal_local_L1 {f : β β β} {g : β β β} {u : β β β β β} | |
| (hf : Integrable f) (hg : Integrable g) (hw : HasGradient (ΞΌ := volume) f g) | |
| (hu : β n, ContDiff β 1 (u n) β§ HasCompactSupport (u n)) | |
| (he : β n x, βband (u n) (low n) (high n) x-band (fun y => |f y|) (low n) (high n) xβ β€ 1/((n:β)+1)) | |
| {K : Set β} (hK : IsCompact K) : | |
| Tendsto (fun n => β« x in K, βband (u n) (low n) (high n) x-maximalComplexReal f xβ) atTop (π 0) := by | |
| let H := fun n => band (u n) (low n) (high n) | |
| let A := fun n => band (fun y => |f y|) (low n) (high n) | |
| have hUi n : Integrable (u n) := (hu n).1.continuous.integrable_of_hasCompactSupport (hu n).2 | |
| have hGi n : Integrable (gradient (u n)) := (continuous_gradient (hu n).1).integrable_of_hasCompactSupport (gradient_hasCompactSupport (hu n).2) | |
| have hH n : Continuous (H n) := (band_lipschitz (hUi n) (hGi n) (contDiff_hasGradient (hu n).1) (low_pos n) (low_le_high n)).continuous | |
| have hA n : Continuous (A n) := (band_lipschitz hf.abs (abs_gradient_bound hf hg).1 (hw.abs hf hg) (low_pos n) (low_le_high n)).continuous | |
| have hM := (locallyIntegrable_maximal hf hg hw).integrableOn_isCompact hK | |
| have hHi n : IntegrableOn (H n) K := (hH n).continuousOn.integrableOn_compact hK | |
| have hAi n : IntegrableOn (A n) K := (hA n).continuousOn.integrableOn_compact hK | |
| have : IsFiniteMeasure (volume.restrict K) := β¨by simpa using hK.measure_lt_topβ© | |
| have hb (n : β) : (β« x in K, βH n x-maximalComplexReal f xβ) β€ | |
| (1/((n:β)+1))*volume.real K+(β« x in K,βA n x-maximalComplexReal f xβ) := by | |
| have hcst : (β« _ : β in K,(1/((n:β)+1)))=(1/((n:β)+1))*volume.real K := by simp only [setIntegral_const,smul_eq_mul,mul_comm] | |
| have hdiff : IntegrableOn (fun x => βA n x-maximalComplexReal f xβ) K := ((hAi n).sub hM).norm | |
| have hconst : IntegrableOn (fun _ : β => (1/((n:β)+1))) K := integrable_const _ | |
| rw [β hcst,β integral_add hconst hdiff] | |
| apply integral_mono ((hHi n).sub hM).norm ((integrable_const _).add ((hAi n).sub hM).norm) | |
| intro x | |
| change βH n x-maximalComplexReal f xβ β€ 1/((n:β)+1)+βA n x-maximalComplexReal f xβ | |
| exact (norm_sub_le_norm_sub_add_norm_sub (H n x) (A n x) (maximalComplexReal f x)).trans (add_le_add (he n x) le_rfl) | |
| have hlim : Tendsto (fun n : β => (1/((n:β)+1))*volume.real K+(β« x in K,βA n x-maximalComplexReal f xβ)) atTop (π 0) := by | |
| simpa only [zero_mul,zero_add] using | |
| ((tendsto_one_div_add_atTop_nhds_zero_nat (π := β)).mul_const (volume.real K)).add (diagonal_local_L1 hf hg hw hK) | |
| exact squeeze_zero (fun n => integral_nonneg (fun x => norm_nonneg _)) hb hlim | |
| end SobolevBand | |
| namespace WeakCompact | |
| variable {X : Type*} [TopologicalSpace X] [T2Space X] [MeasurableSpace X] [BorelSpace X] | |
| [LocallyCompactSpace X] {ΞΌ : Measure X} | |
| lemma densityLimit_compact_bound_limit (w : β β X β β) (hw : β n, Integrable (w n) ΞΌ) | |
| (h0 : β n, βα΅ x βΞΌ,0β€w n x) {B : β} (hb : β n,(β« x,w n x βΞΌ)β€B) | |
| {D : β} {a : β β β} {K O : Set X} (hK : IsCompact K) (hO : IsOpen O) (hKO : KβO) | |
| (ha : βαΆ n in atTop,(β« x in O,w n x βΞΌ)β€a n) (ht : Tendsto a atTop (π D)) : | |
| densityLimit w hw h0 hb K β€ ENNReal.ofReal D := by | |
| have he (Ξ΅ : β) (hΞ΅ : 0<Ξ΅) : densityLimit w hw h0 hb K β€ ENNReal.ofReal (D+Ξ΅) := by | |
| apply densityLimit_compact_bound w hw h0 hb hK hO hKO | |
| filter_upwards [ha,ht.eventually (gt_mem_nhds (by linarith : D<D+Ξ΅))] with n hn hn' | |
| exact hn.trans hn'.le | |
| apply le_of_tendsto_of_tendsto (tendsto_const_nhds (x := densityLimit w hw h0 hb K)) | |
| (ENNReal.continuous_ofReal.continuousAt.tendsto.comp | |
| (show Tendsto (fun n : β => D+1/((n:β)+1)) atTop (π D) by | |
| simpa only [add_zero] using tendsto_const_nhds.add (tendsto_one_div_add_atTop_nhds_zero_nat (π := β)))) | |
| exact Eventually.of_forall (fun n => he _ (by positivity)) | |
| end WeakCompact | |
| namespace NullLocalization | |
| open SobolevBand DiskMoments PhysicalCells | |
| lemma thickening_null_integral {K : Set β} (hK : IsCompact K) (hK0 : volume K=0) | |
| {G : β β β} (hG : Integrable G) : | |
| Tendsto (fun L => β« x in Metric.thickening (12*(2*low L)) K,G x) atTop (π 0) := by | |
| let s := fun L => Metric.thickening (12*(2*low L)) K | |
| have hm : Antitone s := fun i j hij => Metric.thickening_mono (by gcongr; exact low_antitone hij) K | |
| have he : (β L,s L)=K := by | |
| apply subset_antisymm | |
| Β· intro x hx | |
| apply hK.isClosed.closure_eq βΈ (show xβclosure K from ?_) | |
| rw [Metric.mem_closure_iff] | |
| intro Ξ΅ hΞ΅ | |
| have ht : Tendsto (fun L => 12*(2*low L)) atTop (π 0) := by | |
| simpa only [mul_zero] using (low_tendsto.const_mul 2).const_mul 12 | |
| obtain β¨L,hLβ© := (ht.eventually (gt_mem_nhds hΞ΅)).exists | |
| obtain β¨y,hy,hxyβ© := Metric.mem_thickening_iff.mp (mem_iInter.mp hx L) | |
| exact β¨y,hy,hxy.trans hLβ© | |
| Β· exact subset_iInter (fun L => Metric.self_subset_thickening (by have := low_pos L; positivity) K) | |
| have ht := tendsto_setIntegral_of_antitone (fun L => Metric.isOpen_thickening.measurableSet) hm β¨0,hG.integrableOnβ© | |
| rw [he,setIntegral_measure_zero _ hK0] at ht | |
| exact ht | |
| lemma local_split_bound : β C : β, 0<C β§ β {u : β β β β β}, | |
| (β n, ContDiff β 1 (u n) β§ HasCompactSupport (u n)) β β (L : β) {O K : Set β}, | |
| MeasurableSet O β volume O<β€ β OβMetric.thickening (2*low L) K β | |
| βαΆ n in atTop, | |
| (β« x in O,βgradient (band (u n) (low n) (high n)) xβ) β€ | |
| C*(β« x in Metric.thickening (12*(2*low L)) K,βgradient (u n) xβ)+ | |
| ((β« x,βgradient (u n) xβ)/(Real.pi*(2*low L)^2))*volume.real O := by | |
| obtain β¨C,hC,hlocalβ© := smooth_small_local_budget | |
| refine β¨C,hC,?_β© | |
| intro u hu L O K hO hOf hOK | |
| have : IsFiniteMeasure (volume.restrict O) := β¨by simpa using hOfβ© | |
| filter_upwards [eventually_ge_atTop L] with n hn | |
| have hat : low nβ€2*low L := (low_antitone hn).trans (by have := low_pos L; linarith) | |
| have hfi := smooth_band_integrable_gradient (hu n).1 (hu n).2 (low_pos n) (low_le_high n) | |
| have hsi := smooth_band_integrable_gradient (hu n).1 (hu n).2 (low_pos n) hat | |
| have hcon : IntegrableOn (fun _ : β => (β« y,βgradient (u n) yβ)/(Real.pi*(2*low L)^2)) O := integrable_const _ | |
| have hb := integral_mono_ae (hfi.norm.integrableOn (s := O)) (hsi.norm.integrableOn.add hcon) | |
| (ae_restrict_of_ae (split_gradient (hu n).1 (hu n).2 (low_pos n) hat (small_le_high L n))) | |
| simp only [Pi.add_apply] at hb | |
| rw [integral_add hsi.norm.integrableOn hcon,setIntegral_const] at hb | |
| simp only [smul_eq_mul,mul_comm (volume.real O)] at hb | |
| apply hb.trans | |
| gcongr | |
| have hh := hlocal (hu n).1 (hu n).2 (low_pos n) (n-L) (K := K) hO | |
| rw [β small_dyadic hn] at hh | |
| exact hh hOK | |
| lemma diagonal_density_limit_ac {u : β β β β β} {g : β β β} | |
| (hu : β n, ContDiff β 1 (u n) β§ HasCompactSupport (u n)) (hg : Integrable g) | |
| (ht : Tendsto (fun n => β« x,βgradient (u n) x-g xβ) atTop (π 0)) | |
| (w : β β β β β) (hw : β n, Integrable (w n)) (h0 : β n,βα΅ x,0β€w n x) | |
| {B A : β} (hb : β n,(β« x,w n x)β€B) (hA : 0β€A) | |
| (hdom : β n,βα΅ x,w n xβ€A*βgradient (band (u n) (low n) (high n)) xβ) : | |
| WeakCompact.densityLimit w hw h0 hb βͺ volume := by | |
| have := WeakCompact.densityLimit_regular w hw h0 hb | |
| apply WeakCompact.absolutelyContinuous_of_compact_null | |
| intro K hK hK0 | |
| obtain β¨C,hC,hlocalβ© := local_split_bound | |
| let Ξ½ := WeakCompact.densityLimit w hw h0 hb | |
| let V := β« x,βg xβ | |
| have hi n : Integrable (gradient (u n)) := (continuous_gradient (hu n).1).integrable_of_hasCompactSupport (gradient_hasCompactSupport (hu n).2) | |
| have hv := WeakSobolev.integral_norm_converges hg hi ht | |
| have hL (L : β) : Ξ½ Kβ€ENNReal.ofReal (A*C*(β« x in Metric.thickening (12*(2*low L)) K,βg xβ)) := by | |
| have he (Ξ΅ : β) (hΞ΅ : 0<Ξ΅) : Ξ½ Kβ€ENNReal.ofReal | |
| (A*C*(β« x in Metric.thickening (12*(2*low L)) K,βg xβ)+A*(V/(Real.pi*(2*low L)^2))*Ξ΅) := by | |
| obtain β¨U,hKU,hU,hUfβ© := K.exists_isOpen_lt_of_lt (ΞΌ := (volume : Measure β)) (ENNReal.ofReal Ξ΅) (by simpa only [hK0] using ENNReal.ofReal_pos.mpr hΞ΅) | |
| let O := Uβ©Metric.thickening (2*low L) K | |
| have hO : IsOpen O := hU.inter Metric.isOpen_thickening | |
| have hKO : KβO := subset_inter hKU (Metric.self_subset_thickening (by have := low_pos L; positivity) K) | |
| have hOM : volume Oβ€ENNReal.ofReal Ξ΅ := (measure_mono inter_subset_left).trans hUf.le | |
| have hOf : volume O<β€ := hOM.trans_lt ENNReal.ofReal_lt_top | |
| have hOB : volume.real Oβ€Ξ΅ := by | |
| exact (ENNReal.toReal_mono ENNReal.ofReal_ne_top hOM).trans_eq (ENNReal.toReal_ofReal hΞ΅.le) | |
| have hgi n : Integrable (fun x => βgradient (band (u n) (low n) (high n)) xβ) := | |
| (smooth_band_integrable_gradient (hu n).1 (hu n).2 (low_pos n) (low_le_high n)).norm | |
| have hd n : (β« x in O,w n x)β€A*(β« x in O,βgradient (band (u n) (low n) (high n)) xβ) := by | |
| rw [β integral_const_mul] | |
| exact integral_mono_ae (hw n).integrableOn ((hgi n).integrableOn.const_mul A) (ae_restrict_of_ae (hdom n)) | |
| have hh : Ξ½ Kβ€ENNReal.ofReal (A*(C*(β« x in Metric.thickening (12*(2*low L)) K,βg xβ)+(V/(Real.pi*(2*low L)^2))*volume.real O)) := by | |
| apply WeakCompact.densityLimit_compact_bound_limit w hw h0 hb hK hO hKO | |
| (a := fun n => A*(C*(β« x in Metric.thickening (12*(2*low L)) K,βgradient (u n) xβ)+((β« x,βgradient (u n) xβ)/(Real.pi*(2*low L)^2))*volume.real O)) | |
| Β· filter_upwards [hlocal hu L hO.measurableSet hOf inter_subset_right] with n hn | |
| exact (hd n).trans (mul_le_mul_of_nonneg_left hn hA) | |
| Β· exact ((gradient_error_restrict hu hg ht _).const_mul C |>.add ((hv.div_const _).mul_const _)).const_mul A | |
| apply hh.trans (ENNReal.ofReal_le_ofReal ?_) | |
| have hv0 : 0β€V := integral_nonneg (fun x => norm_nonneg (g x)) | |
| have hcoef : 0β€A*(V/(Real.pi*(2*low L)^2)) := by positivity | |
| nlinarith [mul_le_mul_of_nonneg_left hOB hcoef] | |
| apply le_of_tendsto_of_tendsto (tendsto_const_nhds (x := Ξ½ K)) | |
| (ENNReal.continuous_ofReal.continuousAt.tendsto.comp | |
| (show Tendsto (fun n : β => A*C*(β« x in Metric.thickening (12*(2*low L)) K,βg xβ)+A*(V/(Real.pi*(2*low L)^2))*(1/((n:β)+1))) atTop | |
| (π (A*C*(β« x in Metric.thickening (12*(2*low L)) K,βg xβ))) by | |
| simpa only [mul_zero,add_zero] using tendsto_const_nhds.add ((tendsto_one_div_add_atTop_nhds_zero_nat (π := β)).const_mul _))) | |
| exact Eventually.of_forall (fun n => he _ (by positivity)) | |
| apply le_antisymm _ bot_le | |
| have ht' := ENNReal.continuous_ofReal.continuousAt.tendsto.comp ((thickening_null_integral hK hK0 hg.norm).const_mul (A*C)) | |
| have hb' := le_of_tendsto_of_tendsto (tendsto_const_nhds (x := Ξ½ K)) ht' (Eventually.of_forall hL) | |
| change Ξ½ K β€ 0 | |
| simpa only [mul_zero,ENNReal.ofReal_zero] using hb' | |
| end NullLocalization | |
| namespace WeakCompact | |
| open CompactlySupported CompactlySupportedContinuousMap | |
| lemma densityLimit_rn (w : β β β β β) (hw : β n,Integrable (w n)) | |
| (h0 : β n,βα΅ x,0β€w n x) {B D : β} (hb : β n,(β« x,w n x)β€B) (hB : 0β€B) | |
| (hac : densityLimit w hw h0 hb βͺ volume) | |
| (hm : densityLimit w hw h0 hb univβ€ENNReal.ofReal D) (hD : 0β€D) : | |
| β d : β β β, Integrable d β§ (β x,0β€d x) β§ (β« x,d x)β€D β§ | |
| β Ο : C_c(β,β), Tendsto (fun n => β« x,w n x*Ο x) (hyperfilter β) (π (β« x,d x*Ο x)) := by | |
| let Ξ½ := densityLimit w hw h0 hb | |
| have : IsFiniteMeasure Ξ½ := densityLimit_finite w hw h0 hb hB | |
| let d := fun x => (Ξ½.rnDeriv volume x).toReal | |
| have hi : Integrable d := by | |
| have h := Measure.integrableOn_toReal_rnDeriv (ΞΌ := Ξ½) (Ξ½ := volume) (s := univ) (measure_ne_top Ξ½ univ) | |
| simpa only [integrableOn_univ] using h | |
| refine β¨d,hi,fun x => ENNReal.toReal_nonneg,?_,?_β© | |
| Β· rw [show (β« x,d x)=Ξ½.real univ from Measure.integral_toReal_rnDeriv hac] | |
| exact (ENNReal.toReal_mono ENNReal.ofReal_ne_top hm).trans_eq (ENNReal.toReal_ofReal hD) | |
| Β· intro Ο | |
| rw [show (β« x,d x*Ο x)=(β« x,Ο x βΞ½) from integral_toReal_rnDeriv_mul hac] | |
| exact densityLimit_integral w hw h0 hb Ο | |
| end WeakCompact | |
| namespace WeakSobolev | |
| lemma local_L1_test_converges {F : β β β} {u : β β β β β} | |
| (hF : LocallyIntegrable F) (hu : β n,LocallyIntegrable (u n)) | |
| (ht : β K : Set β, IsCompact K β Tendsto (fun n => β« x in K,βu n x-F xβ) atTop (π 0)) | |
| {Ο : β β β} (hΟ : Continuous Ο) (hc : HasCompactSupport Ο) : | |
| Tendsto (fun n => β« x,u n x*Ο x) atTop (π (β« x,F x*Ο x)) := by | |
| let K := tsupport Ο | |
| have hK : IsCompact K := hc | |
| have hFm : IntegrableOn F K := hF.integrableOn_isCompact hK | |
| have hum n : IntegrableOn (u n) K := (hu n).integrableOn_isCompact hK | |
| obtain β¨B,hBβ© := hc.exists_bound_of_continuous hΟ | |
| have hlim := bounded_smul_converges hFm hum (ht K hK) hΟ.aestronglyMeasurable.restrict (ae_of_all _ hB) | |
| have hi n : IntegrableOn (fun x => Ο x*u n x) K := (hum n).bdd_smul B hΟ.aestronglyMeasurable.restrict (ae_of_all _ hB) | |
| have hf : IntegrableOn (fun x => Ο x*F x) K := hFm.bdd_smul B hΟ.aestronglyMeasurable.restrict (ae_of_all _ hB) | |
| have hh := integral_converges_norm hf hi hlim | |
| have he (v : β β β) : (β« x in K,Ο x*v x)=(β« x,v x*Ο x) := by | |
| rw [β integral_indicator hK.measurableSet] | |
| apply integral_congr_ae | |
| exact ae_of_all _ (fun x => by | |
| by_cases hx : xβK | |
| Β· rw [indicator_of_mem hx,mul_comm] | |
| Β· rw [indicator_of_notMem hx] | |
| simp only [image_eq_zero_of_notMem_tsupport hx,mul_zero]) | |
| simpa only [he,smul_eq_mul] using hh | |
| end WeakSobolev | |
| namespace SobolevBand | |
| open WeakSobolev WeakCompact CompactlySupported CompactlySupportedContinuousMap DiskMoments | |
| /-- Positive directional densities share a single ultrafilter, so their differences | |
| retain the distributional identities. Absolute continuity is proved by local | |
| small-radius cutoff estimates, rather than assumed as a BV compactness upgrade. -/ | |
| lemma positive_direction_limit : β C : β, 0<C β§ | |
| β {u : β β β β β} {g : β β β}, | |
| (β n, ContDiff β 1 (u n) β§ HasCompactSupport (u n)) β Integrable g β | |
| (β n, (β« x,βgradient (u n) xβ)β€(β« x,βg xβ)+1) β | |
| Tendsto (fun n => β« x,βgradient (u n) x-g xβ) atTop (π 0) β | |
| β v : β, βvββ€1 β β d : β β β, Integrable d β§ (β x,0β€d x) β§ | |
| (β« x,d x)β€2*C*(β« x,βg xβ) β§ | |
| β Ο : C_c(β,β), Tendsto | |
| (fun n => β« x,(βgradient (band (u n) (low n) (high n)) xβ+ | |
| βͺgradient (band (u n) (low n) (high n)) x,vβ«)*Ο x) | |
| (hyperfilter β) (π (β« x,d x*Ο x)) := by | |
| obtain β¨C,hC,hboundβ© := smooth_dyadic_bound | |
| refine β¨C,hC,?_β© | |
| intro u g hu hg hV ht v hv | |
| let q := fun n => gradient (band (u n) (low n) (high n)) | |
| let w := fun n x => βq n xβ+βͺq n x,vβ« | |
| let V := β« x,βg xβ | |
| have hV0 : 0β€V := integral_nonneg (fun x => norm_nonneg _) | |
| have hqi n : Integrable (q n) := smooth_band_integrable_gradient (hu n).1 (hu n).2 (low_pos n) (low_le_high n) | |
| have hwi n : Integrable (w n) := (hqi n).norm.add ((hqi n).inner_const (π := β) v) | |
| have hinner n x : |βͺq n x,vβ«|β€βq n xβ := | |
| (abs_real_inner_le_norm (q n x) v).trans (mul_le_of_le_one_right (norm_nonneg _) hv) | |
| have hw0 n : βα΅ x,0β€w n x := ae_of_all _ (fun x => by | |
| dsimp only [w] | |
| have := (abs_le.mp (hinner n x)).1 | |
| linarith) | |
| have hdom n : βα΅ x,w n xβ€2*βq n xβ := ae_of_all _ (fun x => by | |
| dsimp only [w] | |
| have := (abs_le.mp (hinner n x)).2 | |
| linarith) | |
| have hmass n : (β« x,w n x)β€2*C*(β« x,βgradient (u n) xβ) := by | |
| have h := hbound (hu n).1 (hu n).2 (low_pos n) (2*n) | |
| rw [β high_dyadic n] at h | |
| calc | |
| (β« x,w n x) β€ β« x,2*βq n xβ := integral_mono_ae (hwi n) ((hqi n).norm.const_mul 2) (hdom n) | |
| _ = 2*(β« x,βq n xβ) := integral_const_mul _ _ | |
| _ β€ 2*(C*(β« x,βgradient (u n) xβ)) := mul_le_mul_of_nonneg_left h (by norm_num) | |
| _ = _ := by ring | |
| have hb n : (β« x,w n x)β€2*C*(V+1) := | |
| (hmass n).trans (mul_le_mul_of_nonneg_left (hV n) (by positivity)) | |
| have hac := NullLocalization.diagonal_density_limit_ac hu hg ht w hwi hw0 hb (by norm_num : (0:β)β€2) hdom | |
| have hi n : Integrable (gradient (u n)) := (continuous_gradient (hu n).1).integrable_of_hasCompactSupport (gradient_hasCompactSupport (hu n).2) | |
| have hsharp := densityLimit_sharp_mass w hwi hw0 hb hmass | |
| ((integral_norm_converges hg hi ht).const_mul (2*C)) | |
| exact densityLimit_rn w hwi hw0 hb (by positivity) hac hsharp (by positivity) | |
| end SobolevBand | |
| namespace WeakSobolev | |
| open CompactlySupported CompactlySupportedContinuousMap | |
| lemma direction_identity_limit {F : β β β} {H : β β β β β} {q : β β β β β} | |
| (hF : LocallyIntegrable F) (hH : β n, LocallyIntegrable (H n)) | |
| (hqi : β n, Integrable (q n)) (hw : β n, HasGradient (ΞΌ := volume) (H n) (q n)) | |
| (ht : β K : Set β, IsCompact K β Tendsto (fun n => β« x in K,βH n x-F xβ) atTop (π 0)) | |
| {d e : β β β} (hd : Integrable d) (he : Integrable e) (v : β) | |
| (hv : β Ο : C_c(β,β), Tendsto (fun n => β« x,(βq n xβ+βͺq n x,vβ«)*Ο x) | |
| (hyperfilter β) (π (β« x,d x*Ο x))) | |
| (h0 : β Ο : C_c(β,β), Tendsto (fun n => β« x,(βq n xβ+βͺq n x,(0:β)β«)*Ο x) | |
| (hyperfilter β) (π (β« x,e x*Ο x))) : | |
| β Ο : β β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| (β« x,F x*fderiv β Ο x v) = -β« x,(d x-e x)*Ο x := by | |
| intro Ο hΟ hc | |
| let Ο' : C_c(β,β) := β¨β¨Ο,hΟ.continuousβ©,hcβ© | |
| have hn n : Integrable (fun x => βq n xβ*Ο x) := | |
| (hqi n).norm.locallyIntegrable.integrable_smul_right_of_hasCompactSupport hΟ.continuous hc | |
| have hp n : Integrable (fun x => (βq n xβ+βͺq n x,vβ«)*Ο x) := | |
| ((hqi n).norm.add ((hqi n).inner_const (π := β) v)).locallyIntegrable.integrable_smul_right_of_hasCompactSupport hΟ.continuous hc | |
| have hd' : Integrable (fun x => d x*Ο x) := hd.locallyIntegrable.integrable_smul_right_of_hasCompactSupport hΟ.continuous hc | |
| have he' : Integrable (fun x => e x*Ο x) := he.locallyIntegrable.integrable_smul_right_of_hasCompactSupport hΟ.continuous hc | |
| have hvn n : (β« x,(βq n xβ+βͺq n x,vβ«)*Ο x)-(β« x,(βq n xβ+βͺq n x,(0:β)β«)*Ο x) = | |
| β« x,βͺq n x,vβ«*Ο x := by | |
| simp only [inner_zero_right,add_zero] | |
| rw [β integral_sub (hp n) (hn n)] | |
| apply integral_congr_ae | |
| exact ae_of_all _ (fun x => by ring) | |
| have hde : (β« x,d x*Ο x)-(β« x,e x*Ο x) = β« x,(d x-e x)*Ο x := by | |
| rw [β integral_sub hd' he'] | |
| apply integral_congr_ae | |
| exact ae_of_all _ (fun x => by ring) | |
| have hlim : Tendsto (fun n => β« x,H n x*fderiv β Ο x v) (hyperfilter β) | |
| (π (-β« x,(d x-e x)*Ο x)) := by | |
| have h := ((hv Ο').sub (h0 Ο')).neg | |
| change Tendsto (fun n => -((β« x,(βq n xβ+βͺq n x,vβ«)*Ο x)-(β« x,(βq n xβ+βͺq n x,(0:β)β«)*Ο x))) | |
| (hyperfilter β) (π (-((β« x,d x*Ο x)-(β« x,e x*Ο x)))) at h | |
| simp only [hvn,hde,β hw _ Ο hΟ hc v] at h | |
| exact h | |
| exact tendsto_nhds_unique | |
| ((local_L1_test_converges hF hH ht ((hΟ.continuous_fderiv (by simp)).clm_apply continuous_const) | |
| (hc.fderiv_apply β v)).mono_left Nat.hyperfilter_le_atTop) hlim | |
| lemma complex_inner_one (z : β) : βͺz,(1:β)β«=(z.re:β) := by | |
| simp [real_inner_eq_re_inner, RCLike.inner_apply] | |
| lemma complex_inner_I (z : β) : βͺz,Complex.Iβ«=(z.im:β) := by | |
| simp [real_inner_eq_re_inner, RCLike.inner_apply] | |
| lemma complex_hasGradient_of_coordinates {F : β β β} {G : β β β} | |
| (hF : LocallyIntegrable F) (hG : Integrable G) | |
| (h1 : β Ο : β β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| (β« x,F x*fderiv β Ο x 1) = -β« x,(G x).re*Ο x) | |
| (hI : β Ο : β β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| (β« x,F x*fderiv β Ο x Complex.I) = -β« x,(G x).im*Ο x) : | |
| HasGradient (ΞΌ := volume) F G := by | |
| intro Ο hΟ hc v | |
| have hv : v=v.re β’ (1:β)+v.im β’ Complex.I := by simp only [Complex.real_smul, mul_one, Complex.re_add_im] | |
| have hh w : Integrable (fun x => F x*fderiv β Ο x w) := | |
| hF.integrable_smul_right_of_hasCompactSupport ((hΟ.continuous_fderiv (by simp)).clm_apply continuous_const) (hc.fderiv_apply β w) | |
| have hg1 : Integrable (fun x => (G x).re*Ο x) := | |
| (hG.inner_const (π := β) (1:β)).locallyIntegrable.integrable_smul_right_of_hasCompactSupport hΟ.continuous hc |>.congr (ae_of_all _ (fun x => by simp only [complex_inner_one,smul_eq_mul])) | |
| have hgI : Integrable (fun x => (G x).im*Ο x) := | |
| (hG.inner_const (π := β) Complex.I).locallyIntegrable.integrable_smul_right_of_hasCompactSupport hΟ.continuous hc |>.congr (ae_of_all _ (fun x => by simp only [complex_inner_I,smul_eq_mul])) | |
| have hfder x : F x*fderiv β Ο x v=v.re*(F x*fderiv β Ο x 1)+v.im*(F x*fderiv β Ο x Complex.I) := by | |
| conv_lhs => rw [hv] | |
| simp only [map_add,map_smul,smul_eq_mul] | |
| ring | |
| have hinner x : βͺG x,vβ«*Ο x=v.re*((G x).re*Ο x)+v.im*((G x).im*Ο x) := by | |
| conv_lhs => rw [hv] | |
| rw [inner_add_right,real_inner_smul_right,real_inner_smul_right,complex_inner_one,complex_inner_I] | |
| ring | |
| simp_rw [hfder,hinner] | |
| rw [integral_add ((hh 1).const_mul _) ((hh Complex.I).const_mul _), | |
| integral_add (hg1.const_mul _) (hgI.const_mul _)] | |
| simp only [integral_const_mul,h1 Ο hΟ hc,hI Ο hΟ hc] | |
| ring | |
| end WeakSobolev | |
| namespace SobolevBand | |
| open WeakSobolev DiskMaximalTools DiskMoments | |
| /-- The all-radius absolute endpoint on the isometric complex model of the plane. | |
| No smoothness, sign, compact support, or boundedness remains on the input. -/ | |
| lemma complex_endpoint : β C : β, 0<C β§ β (f : β β β) (g : β β β), | |
| Integrable f β Integrable g β HasGradient (ΞΌ := volume) f g β | |
| LocallyIntegrable (maximalComplexReal f) β§ β G : β β β, | |
| Integrable G β§ HasGradient (ΞΌ := volume) (maximalComplexReal f) G β§ | |
| (β« x,βG xβ)β€C*(β« x,βg xβ) := by | |
| obtain β¨C,hC,hlimβ© := positive_direction_limit | |
| refine β¨8*C,by positivity,?_β© | |
| intro f g hf hg hw | |
| let a := fun x => absCoefficient (f x) β’ g x | |
| have ha : Integrable a := (abs_gradient_bound hf hg).1 | |
| obtain β¨u,hu,hV,ht,heβ© := exists_diagonal_smooth hf.abs ha (hw.abs hf hg) | |
| let H := fun n => band (u n) (low n) (high n) | |
| let q := fun n => gradient (H n) | |
| have hqi n : Integrable (q n) := smooth_band_integrable_gradient (hu n).1 (hu n).2 (low_pos n) (low_le_high n) | |
| have hH n : LocallyIntegrable (H n) := (smooth_band_lipschitz (hu n).1 (hu n).2 (low_pos n) (low_le_high n)).continuous.locallyIntegrable | |
| have hwH n : HasGradient (ΞΌ := volume) (H n) (q n) := | |
| lipschitz_hasGradient (smooth_band_lipschitz (hu n).1 (hu n).2 (low_pos n) (low_le_high n)) | |
| have hF := locallyIntegrable_maximal hf hg hw | |
| have htH (K : Set β) (hK : IsCompact K) : | |
| Tendsto (fun n => β« x in K,βH n x-maximalComplexReal f xβ) atTop (π 0) := | |
| smooth_diagonal_local_L1 hf hg hw hu he hK | |
| obtain β¨d0,hd0,h0pos,h0mass,h0limβ© := hlim hu ha hV ht 0 (by simp) | |
| obtain β¨d1,hd1,h1pos,h1mass,h1limβ© := hlim hu ha hV ht 1 (by simp) | |
| obtain β¨dI,hdI,hIpos,hImass,hIlimβ© := hlim hu ha hV ht Complex.I (by simp) | |
| let G := fun x => ((d1 x-d0 x : β):β)+((dI x-d0 x : β):β)*Complex.I | |
| have hG : Integrable G := ((hd1.sub hd0).ofReal).add (((hdI.sub hd0).ofReal).mul_const Complex.I) | |
| have hGre x : (G x).re=d1 x-d0 x := by simp [G] | |
| have hGim x : (G x).im=dI x-d0 x := by simp [G] | |
| refine β¨hF,G,hG,?_,?_β© | |
| Β· apply complex_hasGradient_of_coordinates hF hG | |
| Β· simpa only [hGre] using direction_identity_limit hF hH hqi hwH htH hd1 hd0 1 h1lim h0lim | |
| Β· simpa only [hGim] using direction_identity_limit hF hH hqi hwH htH hdI hd0 Complex.I hIlim h0lim | |
| Β· have hb x : βG xββ€d1 x+dI x+2*d0 x := by | |
| have h := Complex.norm_le_abs_re_add_abs_im (G x) | |
| rw [hGre,hGim] at h | |
| have h1 : |d1 x-d0 x| β€ d1 x+d0 x := by | |
| exact abs_le.mpr β¨by linarith [h1pos x,h0pos x],by linarith [h1pos x,h0pos x]β© | |
| have hI : |dI x-d0 x| β€ dI x+d0 x := by | |
| exact abs_le.mpr β¨by linarith [hIpos x,h0pos x],by linarith [hIpos x,h0pos x]β© | |
| linarith | |
| have hi := integral_mono hG.norm ((hd1.add hdI).add (hd0.const_mul 2)) hb | |
| simp only [Pi.add_apply] at hi | |
| rw [integral_add (f := fun x => d1 x+dI x) (hd1.add hdI) (hd0.const_mul 2),integral_add hd1 hdI,integral_const_mul] at hi | |
| have hba : (β« x,βa xβ)β€β« x,βg xβ := (abs_gradient_bound hf hg).2 | |
| have hh : (β« x,βG xβ)β€8*C*(β« x,βa xβ) := by linarith | |
| exact hh.trans (mul_le_mul_of_nonneg_left hba (by positivity)) | |
| end SobolevBand | |
| namespace WeakSobolev | |
| variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| [NormedAddCommGroup F] [InnerProductSpace β F] | |
| [FiniteDimensional β E] [FiniteDimensional β F] | |
| [MeasurableSpace E] [BorelSpace E] [MeasurableSpace F] [BorelSpace F] | |
| lemma HasGradient.comp_isometry {f : F β β} {g : F β F} | |
| (hw : HasGradient (ΞΌ := volume) f g) (e : E ββα΅’[β] F) : | |
| HasGradient (ΞΌ := volume) (fun x => f (e x)) (fun x => e.symm (g (e x))) := by | |
| intro Ο hΟ hc v | |
| let Ο := Ο β e.symm | |
| have hΟ : ContDiff β β Ο := hΟ.comp e.symm.contDiff | |
| have hΟc : HasCompactSupport Ο := hc.comp_homeomorph e.symm.toHomeomorph | |
| have hd x : fderiv β Ο (e x) (e v)=fderiv β Ο x v := by | |
| rw [fderiv_comp (e x) (hΟ.differentiable (by simp) _) (e.symm.differentiableAt),e.symm.fderiv] | |
| change fderiv β Ο (e.symm (e x)) (e.symm (e v))=fderiv β Ο x v | |
| simp only [e.symm_apply_apply] | |
| have hi x : βͺe.symm (g (e x)),vβ«=βͺg (e x),e vβ« := by | |
| simpa only [e.apply_symm_apply] using (e.inner_map_map (e.symm (g (e x))) v).symm | |
| have h := hw Ο hΟ hΟc (e v) | |
| rw [β e.measurePreserving.integral_comp e.toMeasurableEquiv.measurableEmbedding (fun y => f y*fderiv β Ο y (e v)), | |
| β e.measurePreserving.integral_comp e.toMeasurableEquiv.measurableEmbedding (fun y => βͺg y,e vβ«*Ο y)] at h | |
| simpa only [hd,β hi,Ο,Function.comp_apply,e.symm_apply_apply] using h | |
| end WeakSobolev | |
| end | |
| end OAI | |