math / data /lean /OAI /Analysis /Fourier /LocalSmoothing /Sharpness /PhaseIntegral.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.85 kB
import OAI.Analysis.Fourier.LocalSmoothing.Sharpness.Profile
noncomputable section
namespace OAI.Analysis.Fourier.LocalSmoothing.Sharpness
open Set Filter _root_.MeasureTheory
open scoped Topology ContDiff
def phase (v : ℝ) : β„‚ := Complex.exp (Complex.I * (v : β„‚))
@[simp] theorem norm_phase (v : ℝ) : β€–phase vβ€– = 1 :=
Complex.norm_exp_I_mul_ofReal v
theorem phase_mul (u v : ℝ) : phase u * phase v = phase (u+v) := by
unfold phase
rw [← Complex.exp_add]
congr 1
push_cast
ring
theorem integrable_phase_weight {g : ℝ β†’ ℝ} (hg : Continuous g)
(hc : HasCompactSupport g) (t : ℝ) {K : ℝ β†’ β„‚} (hK : Continuous K) :
Integrable (fun Οƒ => phase (-t*Οƒ) * (g Οƒ : β„‚) * K Οƒ) := by
have hp : Continuous (fun Οƒ : ℝ => phase (-t*Οƒ)) := by unfold phase; fun_prop
have hcg : Continuous (fun Οƒ => (g Οƒ : β„‚)) := Complex.continuous_ofReal.comp hg
have hsc0 : HasCompactSupport (fun Οƒ => (g Οƒ : β„‚)) := by
apply hc.mono'
intro σ hσ
apply subset_tsupport g
intro hz
apply hσ
simp only [hz,Complex.ofReal_zero]
have hsc1 : HasCompactSupport (fun Οƒ => phase (-t*Οƒ) * (g Οƒ : β„‚)) := hsc0.mul_left
have hsc : HasCompactSupport (fun Οƒ => phase (-t*Οƒ) * (g Οƒ : β„‚) * K Οƒ) := hsc1.mul_right
exact ((hp.mul hcg).mul hK).integrable_of_hasCompactSupport hsc
theorem integral_two_phases {g : ℝ β†’ ℝ} (hg : Continuous g)
(hc : HasCompactSupport g) (c : β„‚) (r t : ℝ) :
(∫ Οƒ : ℝ, phase (-t*Οƒ) * (g Οƒ : β„‚) *
(c * phase (r*Οƒ) + star c * phase (-r*Οƒ))) =
c * radialProfile g (r-t) + star c * radialProfile g (-(r+t)) := by
have hi (v : ℝ) : Integrable (fun Οƒ : ℝ => phase (v*Οƒ) * (g Οƒ : β„‚)) := by
simpa only [neg_neg,mul_one] using
integrable_phase_weight hg hc (-v) (K := fun _ => (1:β„‚)) continuous_const
have he (Οƒ : ℝ) :
phase (-t*Οƒ) * (g Οƒ : β„‚) * (c*phase (r*Οƒ)+star c*phase (-r*Οƒ)) =
c*(phase ((r-t)*Οƒ)*(g Οƒ:β„‚)) + star c*(phase ((-(r+t))*Οƒ)*(g Οƒ:β„‚)) := by
calc
_ = c*(phase (-t*Οƒ)*phase (r*Οƒ))*(g Οƒ:β„‚) +
star c*(phase (-t*Οƒ)*phase (-r*Οƒ))*(g Οƒ:β„‚) := by ring
_ = _ := by
rw [phase_mul,phase_mul]
rw [show -t*Οƒ+r*Οƒ=(r-t)*Οƒ by ring,
show -t*Οƒ + -r*Οƒ=(-(r+t))*Οƒ by ring]
ring
simp_rw [he]
rw [integral_add ((hi _).const_mul c) ((hi _).const_mul (star c)),
integral_const_mul,integral_const_mul]
rfl
/-- Integrating a pointwise two-phase expansion against a compact radial
amplitude preserves its explicit error. -/
theorem integral_two_phase_error {g : ℝ β†’ ℝ} (hg : Continuous g)
(hc : HasCompactSupport g) {K : ℝ β†’ β„‚} (hK : Continuous K)
(c : β„‚) (r t E : ℝ) (_ : 0 ≀ E)
(herr : βˆ€ Οƒ ∈ tsupport g,
β€–K Οƒ - (c*phase (r*Οƒ)+star c*phase (-r*Οƒ))β€– ≀ E) :
β€–(∫ Οƒ : ℝ, phase (-t*Οƒ)*(g Οƒ:β„‚)*K Οƒ) -
(c*radialProfile g (r-t)+star c*radialProfile g (-(r+t)))β€– ≀
E * ∫ Οƒ, β€–g Οƒβ€– := by
let Q : ℝ β†’ β„‚ := fun Οƒ => c*phase (r*Οƒ)+star c*phase (-r*Οƒ)
have hQ : Continuous Q := by unfold Q phase; fun_prop
rw [← integral_two_phases hg hc c r t,
← integral_sub (integrable_phase_weight hg hc t hK)
(integrable_phase_weight hg hc t hQ), ← integral_const_mul]
apply norm_integral_le_of_norm_le ((hg.integrable_of_hasCompactSupport hc).norm.const_mul E)
filter_upwards [] with Οƒ
change β€–phase (-t*Οƒ)*(g Οƒ:β„‚)*K Οƒ - phase (-t*Οƒ)*(g Οƒ:β„‚)*Q Οƒβ€– ≀ E*β€–g Οƒβ€–
rw [← mul_sub,norm_mul,norm_mul,norm_phase,one_mul,Complex.norm_real]
by_cases hs : Οƒ ∈ tsupport g
Β· exact (mul_le_mul_of_nonneg_left (herr Οƒ hs) (norm_nonneg _)).trans_eq (mul_comm _ _)
Β· rw [image_eq_zero_of_notMem_tsupport hs]
simp
end OAI.Analysis.Fourier.LocalSmoothing.Sharpness