math / data /lean /OAI /Analysis /Calculus /Current /BoundaryGaussian.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.39 kB
import OAI.Analysis.Calculus.Current.NormBounds
/-! The source's lateral boundary is separated from all small-cap velocities. -/
noncomputable section
namespace OAI.Analysis.Calculus.Current
open scoped Matrix Matrix.Norms.Elementwise
theorem fiberDefining_normalized {d : β„•} (w a : ℝ) (z : Index d β†’ β„‚) :
fiberDefining w a z = (βˆ‘ i, β€–ratio z iβ€– ^ 2) / w ^ 2 +
100 * β€–phi z / (a : β„‚)β€– ^ 2 - 1 := by
rw [fiberDefining_formula]
simp only [norm_div, Complex.norm_real, Real.norm_eq_abs, div_pow, sq_abs]
ring
theorem phaseCutoff_ne_zero_norm_lt (q : β„‚) (hq : phaseCutoff q β‰  0) :
β€–qβ€– < 1 / 20 := by
by_contra hn
exact hq (phaseCutoff_eq_zero q (le_of_not_gt hn))
theorem fiber_lateral_ratio_lower {d : β„•} (a : ℝ) (z : Index d β†’ β„‚)
(hr : fiberDefining (1 / 10) a z = 0)
(hg : phaseCutoff (phi z / (a : β„‚)) β‰  0) :
(1 : ℝ) / 400 ≀ βˆ‘ i, β€–ratio z iβ€– ^ 2 := by
rw [fiberDefining_normalized] at hr
have hq := phaseCutoff_ne_zero_norm_lt _ hg
have hqs : β€–phi z / (a : β„‚)β€– ^ 2 ≀ (1 / 20 : ℝ) ^ 2 :=
pow_le_pow_leftβ‚€ (norm_nonneg _) hq.le 2
norm_num at hr hqs
nlinarith
theorem ratio_sq_le_distance_velocity {d : β„•} (W : Fin d β†’ β„‚) (v : Fin d β†’ ℝ) :
(βˆ‘ i, β€–W iβ€– ^ 2) ≀ 2 * squaredDistance W v + 2 * βˆ‘ i, |v i| ^ 2 := by
have hi (i : Fin d) : β€–W iβ€– ^ 2 ≀ 2 * β€–W i - (v i : β„‚)β€– ^ 2 + 2 * |v i| ^ 2 := by
have hn : β€–W iβ€– ≀ β€–W i - (v i : β„‚)β€– + |v i| := by
calc
β€–W iβ€– = β€–(W i - (v i : β„‚)) + (v i : β„‚)β€– := by congr 1; ring
_ ≀ β€–W i - (v i : β„‚)β€– + β€–(v i : β„‚)β€– := norm_add_le _ _
_ = _ := by simp
have hs := pow_le_pow_leftβ‚€ (norm_nonneg _) hn 2
nlinarith [sq_nonneg (β€–W i - (v i : β„‚)β€– - |v i|)]
have hh := Finset.sum_le_sum (fun i (_ : i ∈ Finset.univ) => hi i)
simpa only [squaredDistance, Finset.sum_add_distrib, ← Finset.mul_sum] using hh
theorem lateral_squaredDistance_lower {d : β„•} (a : ℝ) (z : Index d β†’ β„‚)
(hr : fiberDefining (1 / 10) a z = 0)
(hg : phaseCutoff (phi z / (a : β„‚)) β‰  0) (v : Fin d β†’ ℝ)
(hv : (βˆ‘ i, |v i| ^ 2) ≀ 1 / 1600) :
(1 : ℝ) / 1600 ≀ squaredDistance (ratio z) v := by
have hw := fiber_lateral_ratio_lower a z hr hg
have hd := ratio_sq_le_distance_velocity (ratio z) v
linarith
theorem normalizedModeAmplitude_lateral_norm_le {d : β„•}
(a ΞΊ cR cI : ℝ) (hΞΊ : 0 < ΞΊ) (v : Fin d β†’ ℝ)
(x : Index d β†’ ℝ) (z : Index d β†’ β„‚) (hY : z none β‰  0)
(hr : fiberDefining (1 / 10) a z = 0)
(hg : phaseCutoff (phi z / (a : β„‚)) β‰  0)
(hv : (βˆ‘ i, |v i| ^ 2) ≀ 1 / 1600) :
β€–normalizedModeAmplitude ΞΊ cR cI v x zβ€– ≀
((ΞΊ / β€–z noneβ€–) ^ ((d : ℝ) / 2) *
Real.exp (-ΞΊ * β€–z noneβ€– / 3200)) * β€–(⟨cR, cI⟩ : β„‚)β€– := by
rw [normalizedModeAmplitude_norm ΞΊ cR cI hΞΊ v x z hY]
have hd := lateral_squaredDistance_lower a z hr hg v hv
have hmul := mul_le_mul_of_nonneg_left hd (show 0 ≀ ΞΊ * β€–z noneβ€– / 2 by positivity)
have he : Real.exp (-ΞΊ * β€–z noneβ€– / 2 * squaredDistance (ratio z) v) ≀
Real.exp (-ΞΊ * β€–z noneβ€– / 3200) := Real.exp_le_exp.mpr (by nlinarith)
exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left he (by positivity)) (norm_nonneg _)
end OAI.Analysis.Calculus.Current