Download data/lean/OAI/Analysis/Fourier/SquareFunction/LocalizedL2.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.44 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/LocalizedL2.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Fourier/SquareFunction/LocalizedL2.lean
-
curl -L -o LocalizedL2.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/LocalizedL2.lean
7.44 kB
| import OAI.Analysis.Fourier.SquareFunction.LocalSquare | |
| import OAI.Analysis.Fourier.Radial.Kernel | |
| import OAI.Analysis.Fourier.SquareFunction.CubeGeometry | |
| open OAI.Analysis.Fourier.Wave | |
| /-! The localized high-frequency term in the combining-dilates argument. | |
| Only the individual, global `LΒ²` operator bounds are used; the vector bound | |
| comes from finite summation, Cauchy--Schwarz, and actual ball averages. -/ | |
| namespace OAI.Analysis.Fourier.SquareFunction | |
| open _root_.MeasureTheory Set Metric | |
| open scoped ENNReal | |
| theorem enorm_vectorNorm_sq {I H : Type*} [Fintype I] [NormedAddCommGroup H] | |
| (v : I β H) : | |
| ENNReal.ofReal (vectorNorm v) ^ (2 : β) = β i, βv iββ ^ (2 : β) := by | |
| rw [ENNReal.rpow_two, β ENNReal.ofReal_pow (vectorNorm_nonneg v), vectorNorm_sq, | |
| ENNReal.ofReal_sum_of_nonneg (fun i _ => sq_nonneg βv iβ)] | |
| apply Finset.sum_congr rfl | |
| intro i hi | |
| rw [ENNReal.ofReal_pow (norm_nonneg _), ofReal_norm, ENNReal.rpow_two] | |
| theorem measurable_vectorNorm {X I H : Type*} [MeasurableSpace X] [Fintype I] | |
| [NormedAddCommGroup H] [MeasurableSpace H] [BorelSpace H] | |
| (v : I β X β H) (hv : β i, Measurable (v i)) : | |
| Measurable (fun x => vectorNorm (fun i => v i x)) := by | |
| simp only [vectorNorm_eq_sqrt] | |
| exact Real.continuous_sqrt.measurable.comp | |
| (Finset.measurable_sum Finset.univ (fun i _ => (hv i).norm.pow_const 2)) | |
| theorem localized_vector_L2_moment {X I H : Type*} [MeasurableSpace X] [Fintype I] | |
| [NormedAddCommGroup H] [MeasurableSpace H] [BorelSpace H] | |
| (ΞΌ : Measure X) (u : I β X β H) (f : I β X β β) | |
| (hu : β i, AEStronglyMeasurable (u i) ΞΌ) (hf : β i, Measurable (f i)) | |
| {P : Set X} (hP : MeasurableSet P) {B : ββ₯0β} | |
| (h2 : β i, eLpNorm (u i) 2 ΞΌ β€ B * eLpNorm (P.indicator (f i)) 2 ΞΌ) : | |
| (β«β» x, β i, βu i xββ ^ (2 : β) βΞΌ) β€ | |
| B ^ (2 : β) * β«β» x in P, β i, βf i xββ ^ (2 : β) βΞΌ := by | |
| rw [lintegral_finsetSum' Finset.univ (fun i _ => (hu i).enorm.pow_const 2), | |
| lintegral_finsetSum Finset.univ (fun i _ => (hf i).enorm.pow_const 2), Finset.mul_sum] | |
| apply Finset.sum_le_sum | |
| intro i hi | |
| have h := moment_le_of_eLpNorm_le ΞΌ (hu i) ((hf i).indicator hP).aestronglyMeasurable | |
| (by norm_num : (0 : β) < 2) (by simpa using h2 i) | |
| have he : (fun x => βP.indicator (f i) xββ ^ (2 : β)) = | |
| P.indicator (fun x => βf i xββ ^ (2 : β)) := by | |
| ext x | |
| by_cases hx : x β P <;> simp [hx] | |
| rw [he, lintegral_indicator hP] at h | |
| exact h | |
| /-- An actual localized vector estimate for any ball containing the input | |
| support and the comparison point. `D` records only the ball-to-cube volume | |
| ratio, so the bound is independent of the number of vector components. -/ | |
| theorem localized_vector_average_le_maximal {n : β} {I H : Type*} [Fintype I] | |
| [NormedAddCommGroup H] [MeasurableSpace H] [BorelSpace H] [SecondCountableTopology H] | |
| (u : I β Space n β H) (f : I β Space n β β) | |
| (hu : β i, Measurable (u i)) (hf : β i, Measurable (f i)) | |
| {Q P : Set (Space n)} (hQ0 : volume Q β 0) (hQtop : volume Q β β) | |
| (hP : MeasurableSet P) {c z : Space n} {R : β} | |
| (hPball : P β ball c R) (hz : z β ball c R) {B D : ββ₯0β} | |
| (hvol : volume (ball c R) β€ D * volume Q) | |
| (h2 : β i, eLpNorm (u i) 2 volume β€ B * eLpNorm (P.indicator (f i)) 2 volume) : | |
| (β«β» x in Q, ENNReal.ofReal (vectorNorm (fun i => u i x))) / volume Q β€ | |
| B * (D * ballMaximal volume (fun x => β i, βf i xββ ^ (2 : β)) z) ^ (1 / 2 : β) := by | |
| let F : Space n β ββ₯0β := fun x => β i, βf i xββ ^ (2 : β) | |
| let M := ballMaximal volume F z | |
| have hball := euclidean_ball_finite_pos c (nonempty_ball.mp β¨z, hzβ©) | |
| have havg : (β«β» x in ball c R, F x) β€ M * volume (ball c R) := by | |
| apply (ENNReal.div_le_iff_le_mul (.inl hball.1) (.inl hball.2)).mp | |
| exact le_iSup_of_le (c, R) (le_iSup_of_le hz le_rfl) | |
| have hmoment : (β«β» x in Q, ENNReal.ofReal (vectorNorm (fun i => u i x)) ^ (2 : β)) β€ | |
| B ^ (2 : β) * (M * (D * volume Q)) := by | |
| simp_rw [enorm_vectorNorm_sq] | |
| calc | |
| _ β€ β«β» x, β i, βu i xββ ^ (2 : β) := | |
| lintegral_mono' Measure.restrict_le_self le_rfl | |
| _ β€ B ^ (2 : β) * β«β» x in P, F x := | |
| localized_vector_L2_moment volume u f (fun i => (hu i).aestronglyMeasurable) hf hP h2 | |
| _ β€ B ^ (2 : β) * β«β» x in ball c R, F x := | |
| mul_le_mul_right (lintegral_mono' (Measure.restrict_mono_set _ hPball) le_rfl) _ | |
| _ β€ B ^ (2 : β) * (M * volume (ball c R)) := mul_le_mul_right havg _ | |
| _ β€ _ := mul_le_mul_right (mul_le_mul_right hvol _) _ | |
| calc | |
| _ β€ ((β«β» x in Q, ENNReal.ofReal (vectorNorm (fun i => u i x)) ^ (2 : β)) / | |
| volume Q) ^ (1 / 2 : β) := | |
| set_average_le_square_root volume _ (measurable_vectorNorm u hu).ennreal_ofReal Q hQ0 hQtop | |
| _ β€ ((B ^ (2 : β) * (M * (D * volume Q))) / volume Q) ^ (1 / 2 : β) := | |
| ENNReal.rpow_le_rpow (ENNReal.div_le_div_right hmoment _) (by positivity) | |
| _ = _ := by | |
| have he : B ^ (2 : β) * (M * (D * volume Q)) = | |
| (B ^ (2 : β) * (D * M)) * volume Q := by ac_rfl | |
| rw [he, ENNReal.mul_div_cancel_right hQ0 hQtop, | |
| ENNReal.mul_rpow_of_nonneg _ _ (by norm_num : (0 : β) β€ 1 / 2), | |
| β ENNReal.rpow_mul] | |
| norm_num [M, F] | |
| noncomputable def cubeBallRatio (n : β) : ββ₯0β := | |
| ENNReal.ofReal ((8 * ((n : β) + 1)) ^ n) * volume (ball (0 : Space n) 1) | |
| theorem cubeBallRatio_lt_top (n : β) : cubeBallRatio n < β := | |
| ENNReal.mul_lt_top ENNReal.ofReal_lt_top measure_ball_lt_top | |
| /-- The localized high-frequency estimate on a genuine Euclidean cube, with | |
| the dimensional volume constant fully supplied. -/ | |
| theorem localized_cube_vector_average {n : β} {I H : Type*} [Fintype I] | |
| [NormedAddCommGroup H] [MeasurableSpace H] [BorelSpace H] [SecondCountableTopology H] | |
| (Q : BoxIntegral.Box (Fin n)) {s : β} (hs : 0 < s) | |
| (hside : β i, Q.upper i - Q.lower i = s) | |
| (u : I β Space n β H) (f : I β Space n β β) | |
| (hu : β i, Measurable (u i)) (hf : β i, Measurable (f i)) {B : ββ₯0β} | |
| (h2 : β i, eLpNorm (u i) 2 volume β€ B * eLpNorm | |
| ((ball (cubeCorner Q) (8 * (((n : β) + 1) * s))).indicator (f i)) 2 volume) | |
| {z : Space n} (hz : z β euclideanBox Q) : | |
| (β«β» x in euclideanBox Q, ENNReal.ofReal (vectorNorm (fun i => u i x))) / | |
| volume (euclideanBox Q) β€ | |
| B * (cubeBallRatio n * ballMaximal volume | |
| (fun x => β i, βf i xββ ^ (2 : β)) z) ^ (1 / 2 : β) := by | |
| have hzball : z β ball (cubeCorner Q) (8 * (((n : β) + 1) * s)) := by | |
| have hz0 := euclideanBox_subset_ball Q hs hside hz | |
| have hr : 0 < ((n : β) + 1) * s := by positivity | |
| exact mem_ball.mpr ((mem_ball.mp hz0).trans_le (by linarith)) | |
| apply localized_vector_average_le_maximal u f hu hf | |
| (P := ball (cubeCorner Q) (8 * (((n : β) + 1) * s))) | |
| (c := cubeCorner Q) (R := 8 * (((n : β) + 1) * s)) | |
| (by rw [volume_euclideanBox]; exact volume_box_ne_zero Q) | |
| (by rw [volume_euclideanBox]; exact (Q.measure_coe_lt_top volume).ne) | |
| isOpen_ball.measurableSet (Subset.refl _) hzball | |
| Β· exact (by simpa only [cubeBallRatio, mul_assoc] using | |
| (volume_enlarged_cube_ball Q hs (show 0 < 8 * ((n : β) + 1) by positivity) hside).le) | |
| Β· exact h2 | |
| end OAI.Analysis.Fourier.SquareFunction | |