math / data /lean /OAI /MeasureTheory /FalconerCompletion /Shells /ShellEffectiveScale.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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