cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /Detector /GaussianLogWindow.lean
cfahlgren1's picture
download
raw
6.78 kB
import OAI.NumberTheory.DirichletL.Detector.GaussianFlow
namespace OAI
noncomputable section
open scoped Classical ContDiff Topology SchwartzMap FourierTransform
open Filter Set MeasureTheory
namespace SevenEighths.ProbePhysical
lemma gaussianFlow_real_smooth (R : ℝ) : ContDiff ℝ ∞ (fun s : ℝ=>gaussianFlow R (s:ℂ)) := by
rw [contDiff_iff_contDiffAt]
intro s
have hf : ContDiffAt ℂ ∞ (gaussianFlow R) (s:ℂ) := (gaussianFlow_analytic R _).contDiffAt
exact (hf.restrict_scalars ℝ).comp s Complex.ofRealCLM.contDiff.contDiffAt
def gaussianLogWindow (V : SchwartzMap ℝ ℂ) (hV : HasCompactSupport (V:ℝ→ℂ)) (R : ℝ) : SchwartzMap ℝ ℂ :=
(hV.mul_right (f':=fun s : ℝ=>gaussianFlow R (s:ℂ))).toSchwartzMap
(V.smooth'.mul (gaussianFlow_real_smooth R))
@[simp] lemma gaussianLogWindow_apply (V : SchwartzMap ℝ ℂ) (hV : HasCompactSupport (V:ℝ→ℂ))
(R s : ℝ) : gaussianLogWindow V hV R s=V s*gaussianFlow R (s:ℂ) := rfl
lemma gaussianLogWindow_derivative_outside (V : SchwartzMap ℝ ℂ) (hV : HasCompactSupport (V:ℝ→ℂ))
(L : ℝ) (hbox : ∀s,V s≠0→|s|≤L) (R y : ℝ) (hy : L < |y|) (n : ℕ) :
iteratedDeriv n (gaussianLogWindow V hV R) y=0 := by
have he : (gaussianLogWindow V hV R:ℝ→ℂ)=ᶠ[𝓝 y](fun _=>0) := by
have hu : {x : ℝ | L < |x|}∈𝓝 y := (isOpen_lt continuous_const continuous_abs).mem_nhds hy
filter_upwards [hu] with x hx
have hv : V x=0 := by by_contra h; exact (not_lt_of_ge (hbox x h)) hx
simp only [gaussianLogWindow_apply,hv,zero_mul]
rw [he.iteratedDeriv_eq n]
simp
lemma gaussianLogWindow_derivative_bound (V : SchwartzMap ℝ ℂ) (hV : HasCompactSupport (V:ℝ→ℂ))
(L : ℝ) (hL : 0≤L) (a : ℝ) (n : ℕ) :
∃C : ℝ,0<C ∧ ∀R : ℝ,0<R→∀y : ℝ,|y|≤L→
‖iteratedDeriv n (gaussianLogWindow V hV R) y‖≤C*R^(-a) := by
choose B hB hbound using fun i : ℕ=>gaussianFlow_derivative_bound a L hL i
let A (i : ℕ) := SchwartzMap.seminorm ℝ 0 i V
let C := ∑i∈Finset.range (n+1),(n.choose i:ℝ)*A i*B (n-i)
have hA (i : ℕ) : 0≤A i := apply_nonneg _ _
have hC : 0≤C := Finset.sum_nonneg (fun i _=>mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (hA i)) (hB _).le)
refine ⟨C+1,by positivity,?_⟩
intro R hR y hy
change ‖iteratedDeriv n (fun s : ℝ=>V s*gaussianFlow R (s:ℂ)) y‖≤_
rw [iteratedDeriv_fun_mul (f:=(V:ℝ→ℂ)) (g:=fun s : ℝ=>gaussianFlow R (s:ℂ))
(V.smooth'.contDiffAt.of_le (by simp))
((gaussianFlow_real_smooth R).contDiffAt.of_le (by simp))]
calc
_ ≤ ∑i∈Finset.range (n+1),‖(n.choose i:ℂ)*iteratedDeriv i V y*
iteratedDeriv (n-i) (fun s : ℝ=>gaussianFlow R (s:ℂ)) y‖ := norm_sum_le _ _
_ ≤ ∑i∈Finset.range (n+1),((n.choose i:ℝ)*A i)*(B (n-i)*R^(-a)) := by
apply Finset.sum_le_sum
intro i hi
rw [norm_mul,norm_mul,Complex.norm_natCast]
have hv : ‖iteratedDeriv i V y‖≤A i := by
simpa only [pow_zero,one_mul] using SchwartzMap.le_seminorm' ℝ 0 i V y
exact mul_le_mul (mul_le_mul_of_nonneg_left hv (Nat.cast_nonneg _))
(hbound _ R hR y hy) (norm_nonneg _) (mul_nonneg (Nat.cast_nonneg _) (hA i))
_ = C*R^(-a) := by simp only [C,Finset.sum_mul]; apply Finset.sum_congr rfl; intros; ring
_ ≤ (C+1)*R^(-a) := by nlinarith [Real.rpow_pos_of_pos hR (-a)]
theorem gaussianLogWindow_seminorm (V : SchwartzMap ℝ ℂ) (hV : HasCompactSupport (V:ℝ→ℂ))
(L : ℝ) (hL : 0≤L) (hbox : ∀s,V s≠0→|s|≤L) (a : ℝ) (k n : ℕ) :
∃C : ℝ,0<C ∧ ∀R : ℝ,0<R→
SchwartzMap.seminorm ℝ k n (gaussianLogWindow V hV R)≤C*R^(-a) := by
obtain ⟨B,hB,hbound⟩ := gaussianLogWindow_derivative_bound V hV L hL a n
refine ⟨(1+L^k)*B,by positivity,?_⟩
intro R hR
apply SchwartzMap.seminorm_le_bound' ℝ k n _ (by positivity)
intro y
by_cases hy : |y|≤L
· calc
_ ≤ L^k*(B*R^(-a)) := mul_le_mul (pow_le_pow_left₀ (abs_nonneg _) hy k)
(hbound R hR y hy) (norm_nonneg _) (pow_nonneg hL _)
_ ≤ _ := by nlinarith [mul_pos hB (Real.rpow_pos_of_pos hR (-a))]
· rw [gaussianLogWindow_derivative_outside V hV L hbox R y (lt_of_not_ge hy) n,norm_zero,mul_zero]
positivity
theorem gaussianLogWindow_fourier_moment (V : SchwartzMap ℝ ℂ) (hV : HasCompactSupport (V:ℝ→ℂ))
(L : ℝ) (hL : 0≤L) (hbox : ∀s,V s≠0→|s|≤L) (a : ℝ) (J : ℕ) :
∃C : ℝ,0<C ∧ ∀R : ℝ,0<R→
(∫t : ℝ,(1+‖t‖)^J*‖(𝓕 (gaussianLogWindow V hV R)) t‖)≤C*R^(-a) := by
let p := (MeasureTheory.volume : MeasureTheory.Measure ℝ).integrablePower
let K := J+p
choose B hB hb using fun q : ℕ×ℕ=>gaussianLogWindow_seminorm V hV L hL hbox a q.1 q.2
let C := (∑i∈Finset.range (K+1),(B (0,i)+B (p,i)))+1
have hC : 0<C := by
have hh : 0≤∑i∈Finset.range (K+1),(B (0,i)+B (p,i)) :=
Finset.sum_nonneg (fun i _=>add_nonneg (hB _).le (hB _).le)
dsimp only [C]; linarith
let D := (2:ℝ)^J*(FourierBridge.coefficientMomentBound 0 C+FourierBridge.coefficientMomentBound J C)
have hD : 0≤D := mul_nonneg (by positivity)
(add_nonneg (FourierBridge.coefficientMomentBound_nonneg _ _ hC.le)
(FourierBridge.coefficientMomentBound_nonneg _ _ hC.le))
refine ⟨D+1,by positivity,?_⟩
intro R hR
have hcancel : R^a*R^(-a)=1 := by rw [←Real.rpow_add hR]; simp
have hsource (i : ℕ) (hi : i≤J+(MeasureTheory.volume : MeasureTheory.Measure ℝ).integrablePower) :
R^a*(SchwartzMap.seminorm ℝ 0 i (gaussianLogWindow V hV R)+
SchwartzMap.seminorm ℝ p i (gaussianLogWindow V hV R))≤C := by
have hbi : B (0,i)+B (p,i)≤C := by
have hh := Finset.single_le_sum (s:=Finset.range (K+1)) (a:=i)
(f:=fun i=>B (0,i)+B (p,i))
(fun i _=>add_nonneg (hB _).le (hB _).le) (Finset.mem_range.mpr (by dsimp only [K,p]; omega))
dsimp only [C]; linarith
calc
_ ≤ R^a*(B (0,i)*R^(-a)+B (p,i)*R^(-a)) :=
mul_le_mul_of_nonneg_left (add_le_add (hb (0,i) R hR) (hb (p,i) R hR)) (by positivity)
_ = B (0,i)+B (p,i) := by rw [←add_mul]; calc
_=(B (0,i)+B (p,i))*(R^a*R^(-a)) := by ring
_=_ := by rw [hcancel,mul_one]
_ ≤ C := hbi
have hh := FourierBridge.uniform_fourier_one_plus_moment (gaussianLogWindow V hV R) J
(R^a) C (by positivity) hC.le hsource
change R^a*(∫t : ℝ,(1+‖t‖)^J*‖(𝓕 (gaussianLogWindow V hV R)) t‖)≤D at hh
have hp := mul_le_mul_of_nonneg_left hh (Real.rpow_pos_of_pos hR (-a)).le
have hc' : R^(-a)*R^a=1 := by rw [mul_comm,hcancel]
rw [←mul_assoc,hc',one_mul] at hp
exact hp.trans (by nlinarith [Real.rpow_pos_of_pos hR (-a)])
end SevenEighths.ProbePhysical
end
end OAI

Xet Storage Details

Size:
6.78 kB
·
Xet hash:
9079403d182ceb001636c99862d56525eb2bc276bc70084db9bb2c2ab7f5c189

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.