Download data/lean/OAI/Analysis/Fourier/LocalSmoothing/Sharpness/PhaseIntegral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.85 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/LocalSmoothing/Sharpness/PhaseIntegral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Fourier/LocalSmoothing/Sharpness/PhaseIntegral.lean
-
curl -L -o PhaseIntegral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/LocalSmoothing/Sharpness/PhaseIntegral.lean
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 | |