/-
Copyright (c) 2025 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
module
public import Mathlib.Analysis.Convolution
public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier
/-! # The Fourier transform of the convolution
In this file we calculate the Fourier transform of a convolution.
## Main definitions
* `SchwartzMap.convolution`: The convolution on Schwartz functions is defined via the Fourier
transform.
## Main statements
* `Real.fourier_bilin_convolution_eq`: The Fourier transform of a convolution is the bilinear map
applied to the Fourier transform of the functions.
* `Real.fourier_smul_convolution_eq`: Variant for scalar multiplication.
* `Real.fourier_mul_convolution_eq`: Variant for multiplication.
* `SchwartzMap.fourier_convolution`: The Fourier transform of the Schwartz convolution is given by
the pairing of the Fourier transformed Schwartz functions.
* `SchwartzMap.convolution_apply`: The Schwartz function convolution coincides with the convolution
for functions.
-/
@[expose] public section
variable { R E F F₁ F₂ F₃ : Type*}
namespace Real
open MeasureTheory
open scoped Convolution
variable [NontriviallyNormedField ] [NormedAddCommGroup E]
[NormedAddCommGroup F₁] [NormedAddCommGroup F₂] [NormedAddCommGroup F₃]
[InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
[NormedSpace F₁] [NormedSpace F₂] [NormedSpace F₃]
/-- The norm of the integrand of the convolution is integrable if the functions are integrable. -/
theorem integrable_prod_sub (B : F₁ →L[] F₂ →L[] F₃) {f₁ : E → F₁} {f₂ : E → F₂}
(hf₁ : Integrable f₁) (hf₂ : Integrable f₂) :
Integrable (fun (p : E × E) ↦ ‖B‖ * (‖f₁ (p.1 - p.2)‖ * ‖f₂ p.2‖)) (volume.prod volume) := by
simpa [mul_comm] using (hf₂.norm.convolution_integrand (.mul ℝ ℝ) hf₁.norm).const_mul ‖B‖
open FourierTransform
variable [NormedSpace ℂ F₃]
/-- Calculate the Fourier transform of the convolution as a symmetric integral. -/
theorem fourier_bilin_convolution_eq_integral (B : F₁ →L[] F₂ →L[] F₃) {f₁ : E → F₁} {f₂ : E → F₂}
(hf₁ : Integrable f₁) (hf₂ : Integrable f₂) (ξ : E) :
(f₁ ⋆[B] f₂) ξ = ∫ y, ∫ x, (-inner ℝ (y + x) ξ) • B (f₁ x) (f₂ y) := calc
_ = (f₂ ⋆[B.flip] f₁) ξ := by
rw [convolution_flip]
_ = ∫ x, (-inner ℝ x ξ) • ∫ y, B (f₁ (x - y)) (f₂ y) := by rfl
_ = ∫ x, ∫ y, (-inner ℝ x ξ) • B (f₁ (x - y)) (f₂ y) := by
congr
ext x
simp_rw [Circle.smul_def, integral_smul]
_ = ∫ y, ∫ x, (-inner ℝ x ξ) • B (f₁ (x - y)) (f₂ y) := by
refine integral_integral_swap ?_
have hB := hf₂.convolution_integrand B.flip hf₁
refine hB.mono ?_ ?_
· exact continuous_fourierChar.comp (by fun_prop) |>.aestronglyMeasurable.smul
hB.aestronglyMeasurable
· filter_upwards with ⟨x, y⟩ using by simp
_ = ∫ y, ∫ x, (-inner ℝ (y + x) ξ) • B (f₁ x) (f₂ y) := by
congr
ext y
-- Linear change of variables
convert! integral_sub_right_eq_self _ y (μ := volume)
congr
simp
variable [CompleteSpace F₁] [CompleteSpace F₂] [CompleteSpace F₃]
[NormedSpace ℂ F₁] [NormedSpace ℂ F₂]
open ContinuousLinearMap
/-- The Fourier transform of the convolution is given by the bilinear map applied to the Fourier
transform of the individual functions. -/
theorem fourier_bilin_convolution_eq (B : F₁ →L[ℂ] F₂ →L[ℂ] F₃) {f₁ : E → F₁} {f₂ : E → F₂}
(hf₁ : Integrable f₁) (hf₂ : Integrable f₂) (ξ : E) :
(f₁ ⋆[B] f₂) ξ = B ( f₁ ξ) ( f₂ ξ) := calc
_ = ∫ y, ∫ x, (-inner ℝ (y + x) ξ) • B (f₁ x) (f₂ y) :=
fourier_bilin_convolution_eq_integral B hf₁ hf₂ _
_ = ∫ y, ∫ x, (-inner ℝ y ξ) • (-inner ℝ x ξ) • B (f₁ x) (f₂ y) := by
simp_rw [inner_add_left, neg_add, AddChar.map_add_eq_mul, smul_smul]
_ = ∫ y, (∫ x, B ( (-inner ℝ x ξ) • f₁ x)) ( (-inner ℝ y ξ) • f₂ y) := by
congr with y
have : Integrable (fun x ↦ ( (-inner ℝ x ξ) : ℂ) • B (f₁ x)) volume := by
simpa [Circle.smul_def] using
(Real.fourierIntegral_convergent_iff ξ).2 (B.integrable_comp hf₁)
simp [Circle.smul_def, MeasureTheory.integral_smul, integral_apply this (f₂ y)]
_ = B (∫ x, (-inner ℝ x ξ) • f₁ x) (∫ y, (-inner ℝ y ξ) • f₂ y) := by
rw [← integral_comp_comm _ (by simpa using hf₂), ← integral_comp_comm _ (by simpa using hf₁)]
/-- The Fourier transform of the convolution is given by the multiplication of the Fourier transform
of the individual functions.
Version for scalar multiplication. -/
theorem fourier_smul_convolution_eq {f₁ : E → ℂ} {f₂ : E → F₁}
(hf₁ : Integrable f₁) (hf₂ : Integrable f₂) (ξ : E) :
(f₁ ⋆[lsmul ℂ ℂ] f₂) ξ = ( f₁ ξ) • ( f₂ ξ) :=
fourier_bilin_convolution_eq (lsmul ℂ ℂ) hf₁ hf₂ ξ
variable [NormedRing R] [NormedSpace ℂ R] [IsScalarTower ℂ R R] [SMulCommClass ℂ R R]
[CompleteSpace R]
/-- The Fourier transform of the convolution is given by the multiplication of the Fourier transform
of the individual functions.
Version for multiplication. -/
theorem fourier_mul_convolution_eq {f₁ : E → R} {f₂ : E → R}
(hf₁ : Integrable f₁) (hf₂ : Integrable f₂) (ξ : E) :
(f₁ ⋆[mul ℂ R] f₂) ξ = ( f₁ ξ) * ( f₂ ξ) :=
fourier_bilin_convolution_eq (mul ℂ R) hf₁ hf₂ ξ
end Real
namespace SchwartzMap
variable [RCLike ]
[NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E]
[BorelSpace E]
[NormedAddCommGroup F₁] [NormedSpace ℂ F₁] [NormedSpace F₁] [SMulCommClass ℂ F₁]
[NormedAddCommGroup F₂] [NormedSpace ℂ F₂] [NormedSpace F₂] [SMulCommClass ℂ F₂]
[NormedAddCommGroup F₃] [NormedSpace ℂ F₃] [NormedSpace F₃] [SMulCommClass ℂ F₃]
open FourierTransform
open scoped Convolution
/-- The bilinear convolution of Schwartz functions.
The continuity in the left argument is provided in `SchwartzMap.convolution_continuous_left`. -/
noncomputable
def convolution (B : F₁ →L[] F₂ →L[] F₃) : (E, F₁) →ₗ[] (E, F₂) →L[] (E, F₃) where
toFun f := fourierInvCLM (E, F₃) ∘L pairing B ( f) ∘L fourierCLM (E, F₂)
map_add' := by simp [FourierTransform.fourier_add]
map_smul' := by simp [FourierTransform.fourier_smul]
@[simp]
theorem convolution_flip (B : F₁ →L[] F₂ →L[] F₃) (f : (E, F₁)) (g : (E, F₂)) :
convolution B.flip g f = convolution B f g := rfl
/-- The convolution is continuous in the left argument.
Note that since `(E, F)` is not a normed space, uncurried and curried continuity do not
coincide. -/
@[fun_prop]
theorem convolution_continuous_left (B : F₁ →L[] F₂ →L[] F₃) (g : (E, F₂)) :
Continuous (convolution B · g) := (convolution B.flip g).continuous
variable [CompleteSpace F₃]
theorem fourier_convolution (B : F₁ →L[] F₂ →L[] F₃) (f : (E, F₁)) (g : (E, F₂)) :
(convolution B f g) = pairing B ( f) ( g) := by simp [convolution]
variable [CompleteSpace F₁] [CompleteSpace F₂]
open MeasureTheory
theorem fourier_convolution_apply (B : F₁ →L[ℂ] F₂ →L[ℂ] F₃) (f : (E, F₁)) (g : (E, F₂)) (x : E) :
(convolution B f g) x = (f ⋆[B] g) x := by
simp [fourier_convolution, fourier_coe,
Real.fourier_bilin_convolution_eq B f.integrable g.integrable]
/-- The convolution on Schwartz functions is equal to the convolution on functions. -/
theorem convolution_apply (B : F₁ →L[ℂ] F₂ →L[ℂ] F₃) (f : (E, F₁)) (g : (E, F₂)) (x : E) :
convolution B f g x = (f ⋆[B] g) x := calc
_ = ⁻ ( (convolution B f g)) x := by simp
_ = ⁻ (fun y ↦ (f ⋆[B] g) y) x := by
rw [fourierInv_coe]
apply MeasureTheory.integral_congr_ae
filter_upwards with x
rw [fourier_convolution_apply]
_ = _ := by
rw [Continuous.fourierInv_fourier_eq]
· refine BddAbove.continuous_convolution_right_of_integrable B ?_ f.integrable g.continuous
exact ⟨SchwartzMap.seminorm ℝ 0 0 g, fun x ⟨y, hy⟩ ↦ hy ▸ norm_le_seminorm ℝ g y⟩
· exact f.integrable.integrable_convolution B g.integrable
· have : Integrable (fun ξ ↦ B ( f ξ) ( g ξ)) volume := (pairing B ( f) ( g)).integrable
convert! this
rw [← fourier_convolution_apply B f g, fourier_convolution, pairing_apply_apply]
end SchwartzMap
¤ Dauer der Verarbeitung: 0.16 Sekunden
¤
*© Formatika GbR, Deutschland