Download data/lean/OAI/Analysis/Fourier/SquareFunction/Basic.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/Basic.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Fourier/SquareFunction/Basic.lean
-
curl -L -o Basic.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/Basic.lean
4.4 kB
| import Mathlib | |
| /-! | |
| Scalar identities underlying Section `stein_square.tex`. | |
| The integral below is the exact constant occurring after spatial Plancherel | |
| and the change of variables `u = |ΞΎ|Β²/rΒ²` in the `p = 2` argument. | |
| -/ | |
| namespace OAI.Analysis.Fourier.SquareFunction | |
| open _root_.MeasureTheory intervalIntegral | |
| /-- The beta integral needed for Stein's square function. -/ | |
| theorem beta_integral {a : β} (ha : -1 < a) : | |
| (β« u : β in (0 : β)..1, u * (1 - u) ^ a) = | |
| 1 / ((a + 1) * (a + 2)) := by | |
| have hs : (β« u : β in (0 : β)..1, u * (1 - u) ^ a) = | |
| β« u : β in (0 : β)..1, (1 - u) * u ^ a := by | |
| simpa only [sub_zero, sub_self, sub_sub_cancel] using | |
| (integral_comp_sub_left (fun u : β => u * (1 - u) ^ a) 1 | |
| (a := (0 : β)) (b := 1)).symm | |
| rw [hs] | |
| have he : (β« u : β in (0 : β)..1, (1 - u) * u ^ a) = | |
| β« u : β in (0 : β)..1, (u ^ a - u ^ (a + 1)) := by | |
| apply integral_congr_Ioo_of_le zero_le_one | |
| intro u hu | |
| dsimp | |
| rw [Real.rpow_add_one (ne_of_gt hu.1)] | |
| ring | |
| rw [he, integral_sub (intervalIntegrable_rpow' ha) | |
| (intervalIntegrable_rpow' (by linarith : -1 < a + 1)), | |
| integral_rpow (Or.inl ha), | |
| integral_rpow (Or.inl (by linarith : -1 < a + 1))] | |
| have h1 : a + 1 β 0 := by linarith | |
| have h2 : a + 1 + 1 β 0 := by linarith | |
| simp only [Real.one_rpow, Real.zero_rpow h1, Real.zero_rpow h2, sub_zero] | |
| have h3 : a + 2 β 0 := by linarith | |
| field_simp [h1, h2, h3] | |
| ; ring | |
| /-- Exact square of the `LΒ²` operator constant in the source. -/ | |
| theorem square_function_constant {Ξ± : β} (hΞ± : 1 / 2 < Ξ±) : | |
| 2 * Ξ± ^ 2 * (β« u : β in (0 : β)..1, u * (1 - u) ^ (2 * Ξ± - 2)) = | |
| Ξ± / (2 * Ξ± - 1) := by | |
| rw [beta_integral (by linarith : -1 < 2 * Ξ± - 2)] | |
| have h1 : 2 * Ξ± - 1 β 0 := by linarith | |
| have h2 : 2 * Ξ± - 2 + 1 β 0 := by linarith | |
| have h3 : 2 * Ξ± - 2 + 2 β 0 := by linarith | |
| rw [mul_one_div] | |
| apply (div_eq_div_iff (mul_ne_zero h2 h3) h1).2 | |
| ring | |
| /-- The summability threshold in the final shell decomposition. -/ | |
| theorem threshold_identity (n p : β) : | |
| 1 / 2 + max (n * (1 / 2 - 1 / p) - 1 / 2) 0 = | |
| max (1 / 2) (n * (1 / 2 - 1 / p)) := by | |
| rw [add_max, max_comm] | |
| congr 1 <;> ring | |
| theorem shell_decay_positive_iff (n p Ξ± : β) : | |
| 0 < Ξ± - 1 / 2 - max (n * (1 / 2 - 1 / p) - 1 / 2) 0 β | |
| max (1 / 2) (n * (1 / 2 - 1 / p)) < Ξ± := by | |
| rw [β threshold_identity] | |
| constructor <;> intro h <;> linarith | |
| /-- Exponential shell decay absorbs any real power of the dyadic index. -/ | |
| theorem summable_shell_weights {d : β} (hd : 0 < d) (A : β) : | |
| Summable (fun j : β => (2 : β) ^ (-(j : β) * d) * (1 + (j : β)) ^ A) := by | |
| obtain β¨k, hkβ© := exists_nat_gt A | |
| let r : β := 2 ^ (-d) | |
| have hrpos : 0 < r := Real.rpow_pos_of_pos (by norm_num) _ | |
| have hr : βrβ < 1 := by | |
| rw [Real.norm_eq_abs, abs_of_pos hrpos] | |
| exact Real.rpow_lt_one_of_one_lt_of_neg (by norm_num) (by linarith) | |
| have hbase : Summable (fun j : β => (j : β) ^ k * r ^ j) := | |
| summable_pow_mul_geometric_of_norm_lt_one k (r := r) hr | |
| have hsum : Summable (fun j : β => ((j + 1 : β) : β) ^ k * r ^ (j + 1)) := | |
| (summable_nat_add_iff (f := fun j : β => (j : β) ^ k * r ^ j) 1).2 hbase | |
| have hmajor : Summable (fun j : β => (1 + (j : β)) ^ k * r ^ j) := by | |
| convert hsum.mul_right rβ»ΒΉ using 1 | |
| ext j | |
| simp only [Nat.cast_add, Nat.cast_one, pow_succ] | |
| field_simp | |
| ; ring | |
| apply Summable.of_nonneg_of_le (fun j => by positivity) _ hmajor | |
| intro j | |
| have he : (2 : β) ^ (-(j : β) * d) = r ^ j := by | |
| rw [show -(j : β) * d = (-d) * (j : β) by ring] | |
| exact Real.rpow_mul_natCast (by norm_num) (-d) j | |
| rw [he, mul_comm] | |
| apply mul_le_mul_of_nonneg_right _ (pow_nonneg (le_of_lt hrpos) j) | |
| rw [β Real.rpow_natCast] | |
| exact Real.rpow_le_rpow_of_exponent_le | |
| (by have := Nat.cast_nonneg (Ξ± := β) j; linarith) hk.le | |
| /-- Precisely the summability used at the end of the Stein square-function proof. -/ | |
| theorem summable_stein_shell_weights {n p Ξ± : β} | |
| (hΞ± : max (1 / 2) (n * (1 / 2 - 1 / p)) < Ξ±) (A : β) : | |
| Summable (fun j : β => | |
| (2 : β) ^ (-(j : β) * | |
| (Ξ± - 1 / 2 - max (n * (1 / 2 - 1 / p) - 1 / 2) 0)) * | |
| (1 + (j : β)) ^ A) := | |
| summable_shell_weights ((shell_decay_positive_iff n p Ξ±).2 hΞ±) A | |
| end OAI.Analysis.Fourier.SquareFunction | |