Download data/lean/OAI/Analysis/Fourier/SquareFunction/CommonInput.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.17 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/CommonInput.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Fourier/SquareFunction/CommonInput.lean
-
curl -L -o CommonInput.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/CommonInput.lean
6.17 kB
| import OAI.Analysis.Fourier.SquareFunction.CubeOscillation | |
| open OAI.Analysis.Fourier.Wave | |
| /-! The low and far-high vector estimates when every kernel acts on one | |
| common input. Their maximal envelope is that of the single input, not of | |
| its repeated finite vector. -/ | |
| namespace OAI.Analysis.Fourier.SquareFunction | |
| open _root_.MeasureTheory Set Metric | |
| open scoped ENNReal | |
| theorem low_cube_common_input {n : β} {H : Type*} | |
| [NormedAddCommGroup H] [NormedSpace β H] [CompleteSpace H] | |
| (s : Finset β€) (Q : BoxIntegral.Box (Fin n)) {d q C : β} | |
| (hd : 0 < d) (hside : β i, Q.upper i - Q.lower i = d) | |
| (hq : (n : β) < q) (hC : 0 β€ C) | |
| (K : s β Space n β H) (f : Space n β β) | |
| (hKd : β i, Differentiable β (K i)) | |
| (hK : β i u, βfderiv β (K i) uβ β€ C * (((2 : β) ^ i.val) ^ n * (2 : β) ^ i.val) * | |
| ((2 : β) ^ i.val * βuβ + 1) ^ (-q)) | |
| (hB : β i, BddAbove (range fun x => βK i xβ)) | |
| (hfm : Measurable f) (hfi : Integrable f) | |
| {j L : β€} (hL : 0 β€ L) (hj : (2 : β) ^ j * (2 * (((n : β) + 1) * d)) β€ 1) | |
| {x z : Space n} (hx : x β euclideanBox Q) (hz : z β euclideanBox Q) | |
| (hM : ballMaximal volume (fun y => βf yββ) z β β) : | |
| vectorNorm (lowScaleDifference Subtype.val j L | |
| (fun i => convolveKernel (K i) f x) | |
| (fun i => convolveKernel (K i) f (cubeCorner Q))) β€ | |
| scaleKernelConstant n q q C L * (ballMaximal volume (fun y => βf yββ) z).toReal := by | |
| classical | |
| let M := ballMaximal volume (fun y => βf yββ) z | |
| have hv : vectorNorm (lowScaleDifference Subtype.val j L | |
| (fun i => convolveKernel (K i) f x) (fun i => convolveKernel (K i) f (cubeCorner Q))) β€ | |
| Real.sqrt (4 / 3) * (2 : β) ^ (-L) * (C * 2 ^ q * (polynomialKernelMass n q).toReal * M.toReal) := by | |
| apply low_scale_vector_le s (j := j) (L := L) _ (by positivity) | |
| intro i | |
| by_cases hi : i.val β€ j - L | |
| Β· have hij : i.val β€ j := by omega | |
| have ha : 0 < (2 : β) ^ i.val := zpow_pos (by norm_num) _ | |
| have has : (2 : β) ^ i.val * (2 * (n : β) * d) β€ 1 := by | |
| apply le_trans _ (reference_scale_unit hj hij) | |
| apply mul_le_mul_of_nonneg_left _ ha.le | |
| nlinarith | |
| have hfactor : (2 : β) ^ i.val * ((n : β) * d) β€ (2 : β) ^ (i.val - j) := by | |
| apply le_trans _ (reference_scale_upper hj i.val) | |
| apply mul_le_mul_of_nonneg_left _ ha.le | |
| nlinarith [mul_nonneg (Nat.cast_nonneg n) hd.le] | |
| have hh := low_convolution_on_cube Q hd hside ha (lt_of_le_of_lt (Nat.cast_nonneg n) hq) | |
| hC has (hKd i) (hK i) (hB i) hfm hfi hx hz | |
| have hh' : βconvolveKernel (K i) f x - convolveKernel (K i) f (cubeCorner Q)ββ β€ | |
| ENNReal.ofReal (C * 2 ^ q * (2 : β) ^ (i.val - j)) * (polynomialKernelMass n q * M) := by | |
| apply hh.trans | |
| apply mul_le_mul_left | |
| apply ENNReal.ofReal_le_ofReal | |
| nlinarith [mul_le_mul_of_nonneg_left hfactor (show 0 β€ C * 2 ^ q by positivity)] | |
| have hn := norm_le_of_enorm_product (by positivity : 0 β€ C * 2 ^ q * (2 : β) ^ (i.val - j)) | |
| (polynomialKernelMass_lt_top hq).ne hM hh' | |
| simp only [lowScaleDifference, hi, ite_true] | |
| convert hn using 1 ; ring | |
| Β· simp only [lowScaleDifference, hi, ite_false, norm_zero, zero_mul, le_refl] | |
| convert hv using 1 | |
| unfold scaleKernelConstant | |
| ring | |
| theorem high_cube_common_input {n : β} {H : Type*} | |
| [NormedAddCommGroup H] [NormedSpace β H] [CompleteSpace H] | |
| (s : Finset β€) (Q : BoxIntegral.Box (Fin n)) {d q C : β} | |
| (hd : 0 < d) (hside : β i, Q.upper i - Q.lower i = d) | |
| (hq : (n : β) + 1 < q) (hC : 0 β€ C) | |
| (K : s β Space n β H) (f : Space n β β) | |
| (hK : β i u, βK i uβ β€ C * ((2 : β) ^ i.val) ^ n * | |
| ((2 : β) ^ i.val * βuβ + 1) ^ (-q)) | |
| (hfm : Measurable f) | |
| {j L : β€} (hj : 1 / 2 < (2 : β) ^ j * (2 * (((n : β) + 1) * d))) | |
| {x z : Space n} (hx : x β euclideanBox Q) (hz : z β euclideanBox Q) | |
| (hM : ballMaximal volume (fun y => βf yββ) z β β) : | |
| vectorNorm (highScaleTerm Subtype.val j L (fun i => convolveKernel (K i) | |
| ((ball (cubeCorner Q) (8 * (((n : β) + 1) * d)))αΆ.indicator f) x)) β€ | |
| scaleKernelConstant n q (q - 1) C L * (ballMaximal volume (fun y => βf yββ) z).toReal := by | |
| classical | |
| let M := ballMaximal volume (fun y => βf yββ) z | |
| have hv : vectorNorm (highScaleTerm Subtype.val j L (fun i => convolveKernel (K i) | |
| ((ball (cubeCorner Q) (8 * (((n : β) + 1) * d)))αΆ.indicator f) x)) β€ | |
| Real.sqrt (4 / 3) * (2 : β) ^ (-L) * (C * 2 ^ q * (polynomialKernelMass n (q - 1)).toReal * M.toReal) := by | |
| apply high_scale_vector_le s (j := j) (L := L) _ (by positivity) | |
| intro i | |
| by_cases hi : j + L β€ i.val | |
| Β· have ha : 0 < (2 : β) ^ i.val := zpow_pos (by norm_num) _ | |
| have hr : 0 < q - 1 := by linarith [Nat.cast_nonneg (Ξ± := β) n] | |
| have hfactor : ((2 : β) ^ i.val * (4 * (((n : β) + 1) * d)))β»ΒΉ β€ | |
| (2 : β) ^ (-(i.val - j)) := by | |
| convert reference_tail_inverse hj i.val using 1 ; congr 2 ; ring | |
| have hh := tail_convolution_on_cube Q hd hside ha hr (by linarith : q - 1 β€ q) | |
| hC (hK i) hfm hx hz | |
| rw [show q - 1 - q = (-1 : β) by ring, Real.rpow_neg_one] at hh | |
| have hh' : βconvolveKernel (K i) | |
| ((ball (cubeCorner Q) (8 * (((n : β) + 1) * d)))αΆ.indicator f) xββ β€ | |
| ENNReal.ofReal (C * 2 ^ q * (2 : β) ^ (-(i.val - j))) * | |
| (polynomialKernelMass n (q - 1) * M) := by | |
| apply hh.trans | |
| apply mul_le_mul_left | |
| exact ENNReal.ofReal_le_ofReal (mul_le_mul_of_nonneg_left hfactor (by positivity)) | |
| have hn := norm_le_of_enorm_product (by positivity : 0 β€ C * 2 ^ q * (2 : β) ^ (-(i.val - j))) | |
| (polynomialKernelMass_lt_top (show (n : β) < q - 1 by linarith)).ne hM hh' | |
| simp only [highScaleTerm, hi, ite_true] | |
| convert hn using 1 ; ring | |
| Β· simp only [highScaleTerm, hi, ite_false, norm_zero, zero_mul, le_refl] | |
| convert hv using 1 | |
| unfold scaleKernelConstant | |
| ring | |
| end OAI.Analysis.Fourier.SquareFunction | |