cfahlgren1's picture
download
raw
3.82 kB
import OAI.NumberTheory.DirichletL.Detector.GaussianSummation
namespace OAI
noncomputable section
open scoped Classical ContDiff Topology
open Filter Set Metric
namespace SevenEighths.ProbePhysical
def gaussianFlow (R : ℝ) (z : ℂ) : ℂ :=
((1/(2*Real.pi):ℝ):ℂ)*(Real.pi:ℂ)^(1/2:ℂ)*
Complex.exp (-((Real.log R:ℂ)+z)^2/4)
lemma gaussianFlow_analytic (R : ℝ) (z : ℂ) : AnalyticAt ℂ (gaussianFlow R) z := by
unfold gaussianFlow
fun_prop
lemma gaussianFlow_real (R : ℝ) (hR : 0<R) (s : ℝ) :
gaussianFlow R (s:ℂ)=gaussianMellinProfile (R*Real.exp s) := by
unfold gaussianFlow gaussianMellinProfile
rw [←Complex.ofReal_log (mul_pos hR (Real.exp_pos _)).le,Real.log_mul hR.ne' (Real.exp_pos _).ne',Real.log_exp,
Complex.ofReal_add]
lemma iteratedDeriv_restrict_real (f : ℂ→ℂ)
(hf : ∀x : ℝ,AnalyticAt ℂ f (x:ℂ)) (n : ℕ) (x : ℝ) :
iteratedDeriv n (fun y : ℝ=>f (y:ℂ)) x=iteratedDeriv n f (x:ℂ) := by
induction n generalizing f with
| zero => rfl
| succ n ih =>
rw [iteratedDeriv_succ',iteratedDeriv_succ']
have he : deriv (fun y : ℝ=>f (y:ℂ))=(fun y : ℝ=>deriv f (y:ℂ)) := by
funext y
exact (hf y).differentiableAt.hasDerivAt.comp_ofReal.deriv
rw [he]
exact ih (deriv f) (fun y=>(hf y).deriv)
lemma gaussianFlow_disk_bound (a L : ℝ) (_hL : 0≤L) :
∃C : ℝ,0<C ∧ ∀R : ℝ,0<R→∀y : ℝ,|y|≤L→
∀z∈Metric.closedBall (y:ℂ) 1,‖gaussianFlow R z‖≤C*R^(-a) := by
let c := ‖((1/(2*Real.pi):ℝ):ℂ)*(Real.pi:ℂ)^(1/2:ℂ)‖
let B := Real.exp (a^2+1/4+|a| *(L+1))
have hc : 0≤c := norm_nonneg _
have hB : 0<B := Real.exp_pos _
refine ⟨(c+1)*B,by positivity,?_⟩
intro R hR y hy z hz
have hd : ‖z-(y:ℂ)‖≤1 := by simpa only [Metric.mem_closedBall,dist_eq_norm] using hz
have hzr := (Complex.abs_re_le_norm (z-(y:ℂ))).trans hd
have hzi := (Complex.abs_im_le_norm (z-(y:ℂ))).trans hd
simp only [Complex.sub_re,Complex.sub_im,Complex.ofReal_re,Complex.ofReal_im,sub_zero] at hzr hzi
have hre : |z.re|≤L+1 := by
have h := abs_add_le (z.re-y) y
have he : z.re-y+y=z.re := by ring
rw [he] at h
linarith
have hsq : z.im^2≤1 := by nlinarith [(abs_le.mp hzi).1,(abs_le.mp hzi).2]
have hmul : -(a*z.re)≤|a| *(L+1) := by
calc
_ ≤ |a*z.re| := neg_le_abs _
_ = |a| *|z.re| := abs_mul _ _
_ ≤ _ := mul_le_mul_of_nonneg_left hre (abs_nonneg _)
have he : (-((Real.log R:ℂ)+z)^2/4).re=(z.im^2-(Real.log R+z.re)^2)/4 := by
simp [pow_two,Complex.mul_re]
unfold gaussianFlow
rw [norm_mul,Complex.norm_exp,he]
have hb : Real.exp ((z.im^2-(Real.log R+z.re)^2)/4)≤B*R^(-a) := by
rw [Real.rpow_def_of_pos hR,←Real.exp_add]
apply Real.exp_le_exp.mpr
nlinarith [sq_nonneg ((Real.log R+z.re)/2-a)]
calc
_ ≤ c*(B*R^(-a)) := mul_le_mul_of_nonneg_left hb hc
_ ≤ (c+1)*B*R^(-a) := by nlinarith [mul_pos hB (Real.rpow_pos_of_pos hR (-a))]
lemma gaussianFlow_derivative_bound (a L : ℝ) (hL : 0≤L) (n : ℕ) :
∃C : ℝ,0<C ∧ ∀R : ℝ,0<R→∀y : ℝ,|y|≤L→
‖iteratedDeriv n (fun s : ℝ=>gaussianFlow R (s:ℂ)) y‖≤C*R^(-a) := by
obtain ⟨B,hB,hbound⟩ := gaussianFlow_disk_bound a L hL
refine ⟨(n.factorial:ℝ)*B,by positivity,?_⟩
intro R hR y hy
rw [iteratedDeriv_restrict_real _ (fun x=>gaussianFlow_analytic R (x:ℂ)) n y]
have hf : Differentiable ℂ (gaussianFlow R) := fun z=>(gaussianFlow_analytic R z).differentiableAt
have h := Complex.norm_iteratedDeriv_le_of_forall_mem_sphere_norm_le n
(by norm_num : (0:ℝ)<1) hf.diffContOnCl
(fun z hz=>hbound R hR y hy z (Metric.sphere_subset_closedBall hz))
simpa only [one_pow,div_one,mul_assoc] using h
end SevenEighths.ProbePhysical
end
end OAI

Xet Storage Details

Size:
3.82 kB
·
Xet hash:
7df3f3639a7c9b84b9cb8596a95e85be955cce307b01ba67224e046ce3cd931e

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