Download data/lean/OAI/MeasureTheory/FalconerCompletion/Shells/ShellEffectiveScale.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.3 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Shells/ShellEffectiveScale.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/FalconerCompletion/Shells/ShellEffectiveScale.lean
-
curl -L -o ShellEffectiveScale.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Shells/ShellEffectiveScale.lean
7.3 kB
| import Mathlib | |
| import OAI.MeasureTheory.FalconerCompletion.Recursion.MaskScale | |
| namespace OAI | |
| /-! Dyadic shells and prefix decompositions. -/ | |
| section | |
| section | |
| open Set MeasureTheory | |
| open scoped ComplexConjugate RealInnerProductSpace | |
| namespace GraphLiteralSupport | |
| namespace Attempt4FullFar | |
| open Filter Real | |
| open scoped Topology | |
| noncomputable def shellEffectiveScaleND (l : β) (R Ο : β) : β := | |
| R^Ο*sourceMaskScaleND l R Ο | |
| lemma dyadic_half_sqND (q : β) : ((2:β)^(q/2))^2=(2:β)^q := by | |
| rw [β Real.rpow_natCast ((2:β)^(q/2)) 2,β Real.rpow_mul (by norm_num : (0:β)β€2)] | |
| congr 1 | |
| norm_num | |
| lemma shell_effective_scale_upperND {R Ο q : β} (l : β) (hR : 0<R) | |
| (hl : (2:β)^l β€ (2:β)^(q/2)*R^Ο) : | |
| shellEffectiveScaleND l R Ο β€ max (R^Ο) ((2:β)^(q/2)*R^(-48*Ο)) := by | |
| unfold shellEffectiveScaleND sourceMaskScaleND | |
| rw [mul_max_of_nonneg _ _ (Real.rpow_nonneg hR.le _),mul_one] | |
| apply max_le_max_left | |
| calc | |
| _ β€ R^Ο*(((2:β)^(q/2)*R^Ο)*R^(-50*Ο)) := by gcongr | |
| _ = (2:β)^(q/2)*(R^Ο*R^Ο*R^(-50*Ο)) := by ring | |
| _ = _ := by rw [β Real.rpow_add hR,β Real.rpow_add hR]; congr 2; ring | |
| lemma shell_effective_scale_sqND {R Ο q : β} (l : β) (hR : 0<R) | |
| (hl : (2:β)^l β€ (2:β)^(q/2)*R^Ο) : | |
| (shellEffectiveScaleND l R Ο)^2 β€ max (R^(2*Ο)) ((2:β)^q*R^(-96*Ο)) := by | |
| have hu := shell_effective_scale_upperND l hR hl | |
| have hn : 0 β€ shellEffectiveScaleND l R Ο := | |
| mul_nonneg (Real.rpow_nonneg hR.le _) (sourceMaskScaleND_pos l R Ο).le | |
| have heβ : (R^Ο)^2=R^(2*Ο) := by | |
| rw [β Real.rpow_natCast (R^Ο) 2,β Real.rpow_mul hR.le] | |
| congr 1 | |
| norm_num | |
| ring | |
| have heβ : ((2:β)^(q/2)*R^(-48*Ο))^2=(2:β)^q*R^(-96*Ο) := by | |
| rw [mul_pow,dyadic_half_sqND,β Real.rpow_natCast (R^(-48*Ο)) 2,β Real.rpow_mul hR.le] | |
| congr 2 | |
| norm_num | |
| ring | |
| rcases le_total (R^Ο) ((2:β)^(q/2)*R^(-48*Ο)) with h | h | |
| Β· rw [max_eq_right h] at hu | |
| exact (pow_le_pow_leftβ hn hu 2).trans (by rw [heβ]; exact le_max_right _ _) | |
| Β· rw [max_eq_left h] at hu | |
| exact (pow_le_pow_leftβ hn hu 2).trans (by rw [heβ]; exact le_max_left _ _) | |
| lemma shell_scale_regimeND {R Ο q c Ξ : β} (l : β) | |
| (hR : 1 β€ R) (hΟ : 0 β€ Ο) (hΟβ : Ο β€ 1) (hc : 0<c) | |
| (hl : (2:β)^l β€ (2:β)^(q/2)*R^Ο) | |
| (hqlo : R^(20*Ο) β€ (2:β)^q) (hqup : (2:β)^q β€ R^2) | |
| (hΞ : c*(2:β)^q β€ Ξ) : | |
| 1 β€ shellEffectiveScaleND l R Ο β§ shellEffectiveScaleND l R Ο β€ R^2 β§ | |
| c*R^(20*Ο) β€ Ξ β§ (shellEffectiveScaleND l R Ο)^2/Ξ β€ cβ»ΒΉ*R^(-18*Ο) β§ | |
| (2:β)^(-q)*(sourceMaskScaleND l R Ο)^2 β€ 1 := by | |
| have hRp : 0<R := zero_lt_one.trans_le hR | |
| have hQp : 0<(2:β)^q := Real.rpow_pos_of_pos (by norm_num) _ | |
| have hΞp : 0<Ξ := (mul_pos hc hQp).trans_le hΞ | |
| have hRs : 1β€R^Ο := Real.one_le_rpow hR hΟ | |
| have hu := shell_effective_scale_upperND l hRp hl | |
| have hsquare := shell_effective_scale_sqND l hRp hl | |
| have hhalf : (2:β)^(q/2) β€ R := by | |
| nlinarith [dyadic_half_sqND q, Real.rpow_nonneg (by norm_num : (0:β)β€2) (q/2)] | |
| have hle (u : β) (hu : u β€ 0) : R^u β€ 1 := by | |
| simpa using Real.rpow_le_rpow_of_exponent_le hR hu | |
| have hnorm : (shellEffectiveScaleND l R Ο)^2 β€ (2:β)^q*R^(-18*Ο) := by | |
| apply hsquare.trans | |
| apply max_le | |
| Β· calc | |
| R^(2*Ο) = R^(20*Ο)*R^(-18*Ο) := by rw [β Real.rpow_add hRp]; congr 1; ring | |
| _ β€ _ := mul_le_mul_of_nonneg_right hqlo (Real.rpow_nonneg hRp.le _) | |
| Β· exact mul_le_mul_of_nonneg_left | |
| (Real.rpow_le_rpow_of_exponent_le hR (by linarith)) hQp.le | |
| refine β¨?_,?_,?_,?_,?_β© | |
| Β· exact one_le_mul_of_one_le_of_one_le hRs (sourceMaskScaleND_one_le l R Ο) | |
| Β· apply hu.trans | |
| apply max_le | |
| Β· simpa using Real.rpow_le_rpow_of_exponent_le hR (show Ο β€ (2:β) by linarith) | |
| Β· calc | |
| _ β€ (2:β)^(q/2) := mul_le_of_le_one_right (by positivity) (hle (-48*Ο) (by linarith)) | |
| _ β€ R := hhalf | |
| _ β€ R^2 := by nlinarith | |
| Β· exact (mul_le_mul_of_nonneg_left hqlo hc.le).trans hΞ | |
| Β· calc | |
| _ β€ ((2:β)^q*R^(-18*Ο))/(c*(2:β)^q) := | |
| div_le_divβ (by positivity) hnorm (mul_pos hc hQp) hΞ | |
| _ = _ := by field_simp | |
| Β· have hQle : sourceMaskScaleND l R Ο β€ shellEffectiveScaleND l R Ο := by | |
| exact le_mul_of_one_le_left (sourceMaskScaleND_pos l R Ο).le hRs | |
| have hsq : (sourceMaskScaleND l R Ο)^2 β€ (2:β)^q := | |
| (pow_le_pow_leftβ (sourceMaskScaleND_pos l R Ο).le hQle 2).trans | |
| (hnorm.trans (mul_le_of_le_one_right hQp.le (hle (-18*Ο) (by linarith)))) | |
| rw [Real.rpow_neg (by norm_num : (0:β)β€2)] | |
| exact (inv_mul_le_oneβ hQp).mpr hsq | |
| theorem shell_scale_regime_eventuallyND {Ο c : β} (hΟ : 0<Ο) (hΟβ : Οβ€1) (hc : 0<c) : | |
| βαΆ R : β in atTop, β (l : β) (q Ξ : β), | |
| (2:β)^l β€ (2:β)^(q/2)*R^Ο β R^(20*Ο) β€ (2:β)^q β (2:β)^q β€ R^2 β | |
| c*(2:β)^q β€ Ξ β | |
| 1 β€ shellEffectiveScaleND l R Ο β§ shellEffectiveScaleND l R Ο β€ R^2 β§ | |
| R^Ο β€ Ξ β§ (shellEffectiveScaleND l R Ο)^2/Ξ β€ R^(-Ο) β§ | |
| (2:β)^(-q)*(sourceMaskScaleND l R Ο)^2 β€ 1 := by | |
| filter_upwards [eventually_ge_atTop (1:β), | |
| (tendsto_rpow_atTop (by linarith : (0:β)<17*Ο)).eventually_ge_atTop cβ»ΒΉ] with R hR hlarge | |
| intro l q Ξ hl hqlo hqup hΞ | |
| have hRp : 0<R := zero_lt_one.trans_le hR | |
| obtain β¨hβ,hβ,hβ,hβ,hβ β© := shell_scale_regimeND l hR hΟ.le hΟβ hc hl hqlo hqup hΞ | |
| refine β¨hβ,hβ,?_,?_,hβ β© | |
| Β· have hcR : 1 β€ c*R^(17*Ο) := by simpa only [mul_comm] using (inv_le_iff_one_le_mulβ hc).mp hlarge | |
| have hRs : R^Ο β€ R^(3*Ο) := Real.rpow_le_rpow_of_exponent_le hR (by linarith) | |
| apply le_trans _ hβ | |
| calc | |
| _ β€ R^(3*Ο) := hRs | |
| _ β€ (c*R^(17*Ο))*R^(3*Ο) := le_mul_of_one_le_left (Real.rpow_nonneg hRp.le _) hcR | |
| _ = _ := by rw [mul_assoc,β Real.rpow_add hRp]; congr 2; ring | |
| Β· apply hβ.trans | |
| calc | |
| _ β€ R^(17*Ο)*R^(-18*Ο) := mul_le_mul_of_nonneg_right hlarge (Real.rpow_nonneg hRp.le _) | |
| _ = _ := by rw [β Real.rpow_add hRp]; congr 1; ring | |
| lemma shell_source_exponentsND {N l : β} {Ο q : β} | |
| (hl : (l:β) β€ q/2+Ο*N) (hqlo : 20*Ο*N β€ q) (hqup : q β€ 2*N) : | |
| (2:β)^l β€ (2:β)^(q/2)*((2:β)^N)^Ο β§ | |
| ((2:β)^N)^(20*Ο) β€ (2:β)^q β§ (2:β)^q β€ ((2:β)^N)^2 := by | |
| have hβ : ((2:β)^N)^Ο=(2:β)^((N:β)*Ο) := by | |
| rw [β Real.rpow_natCast (2:β) N,β Real.rpow_mul (by norm_num : (0:β)β€2)] | |
| have hβ : ((2:β)^N)^(20*Ο)=(2:β)^((N:β)*(20*Ο)) := by | |
| rw [β Real.rpow_natCast (2:β) N,β Real.rpow_mul (by norm_num : (0:β)β€2)] | |
| have hβ : ((2:β)^N)^2=(2:β)^((N:β)*2) := by | |
| rw [β Real.rpow_natCast (2:β) N,β Real.rpow_natCast ((2:β)^(N:β)) 2, | |
| β Real.rpow_mul (by norm_num : (0:β)β€2)] | |
| norm_num | |
| rw [hβ,hβ,hβ,β Real.rpow_add (by norm_num : (0:β)<2),β Real.rpow_natCast (2:β) l] | |
| exact β¨Real.rpow_le_rpow_of_exponent_le (by norm_num) (by nlinarith), | |
| Real.rpow_le_rpow_of_exponent_le (by norm_num) (by nlinarith), | |
| Real.rpow_le_rpow_of_exponent_le (by norm_num) (by nlinarith)β© | |
| end Attempt4FullFar | |
| end GraphLiteralSupport | |
| end | |
| end | |
| end OAI | |