/-
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.Topology.Algebra.Module.Equiv.Basic
/-! # Type classes for the Fourier transform
In this file we define type classes for the Fourier transform and the inverse Fourier transform.
We introduce the notation `` and `⁻` in these classes to denote the Fourier transform and
the inverse Fourier transform, respectively.
Moreover, we provide type-classes that encode the linear structure and the Fourier inversion
theorem.
-/
@[expose] public section
universe u v w
variable {ι R E F : Type*}
/--
The notation typeclass for the Fourier transform.
While the Fourier transform is a linear operator, the notation is for the function `E → F` without
any additional properties. This makes it possible to use the notation for functions where
integrability is an issue.
Moreover, including a scalar multiplication causes problems for inferring the notation type class.
-/
class FourierTransform (E : Type u) (F : outParam (Type v)) where
/-- ` f` is the Fourier transform of `f`. The meaning of this notation is type-dependent. -/
fourier : E → F
/--
The notation typeclass for the inverse Fourier transform.
While the inverse Fourier transform is a linear operator, the notation is for the function `E → F`
without any additional properties. This makes it possible to use the notation for functions where
integrability is an issue.
Moreover, including a scalar multiplication causes problems for inferring the notation type class.
-/
class FourierTransformInv (E : Type u) (F : outParam (Type v)) where
/-- `⁻ f` is the inverse Fourier transform of `f`. The meaning of this notation is
type-dependent. -/
fourierInv : E → F
namespace FourierTransform
export FourierTransformInv (fourierInv)
@[inherit_doc] scoped notation "" => fourier
@[inherit_doc] scoped notation "⁻" => fourierInv
end FourierTransform
section Module
open scoped FourierTransform
/-- A `FourierAdd` is a function space on which the Fourier transform is additive. -/
class FourierAdd (E : Type*) (F : outParam (Type*)) [Add E] [Add F] [FourierTransform E F] where
fourier_add : ∀ (f g : E), (f + g) = f + g
/-- A `FourierSMul` is a function space on which the Fourier transform is homogeneous. -/
class FourierSMul (R : Type*) (E : Type*) (F : outParam (Type*)) [SMul R E] [SMul R F]
[FourierTransform E F] where
fourier_smul : ∀ (r : R) (f : E), (r • f) = r • f
/-- The Fourier transform is continuous. -/
class ContinuousFourier (E : Type*) (F : outParam (Type*))
[TopologicalSpace E] [TopologicalSpace F] [FourierTransform E F] where
continuous_fourier : Continuous ( : E → F)
/-- A `FourierInvAdd` is a function space on which the inverse Fourier transform is additive. -/
class FourierInvAdd (E : Type*) (F : outParam (Type*)) [Add E] [Add F] [FourierTransformInv E F]
where
fourierInv_add : ∀ (f g : E), ⁻ (f + g) = ⁻ f + ⁻ g
/-- A `FourierInvSMul` is a function space on which the inverse Fourier transform is homogeneous. -/
class FourierInvSMul (R : Type*) (E : Type*) (F : outParam (Type*)) [SMul R E] [SMul R F]
[FourierTransformInv E F] where
fourierInv_smul : ∀ (r : R) (f : E), ⁻ (r • f) = r • ⁻ f
/-- The inverse Fourier transform is continuous. -/
class ContinuousFourierInv (E : Type*) (F : outParam (Type*))
[TopologicalSpace E] [TopologicalSpace F] [FourierTransformInv E F] where
continuous_fourierInv : Continuous (⁻ : E → F)
namespace FourierTransform
export FourierAdd (fourier_add)
export FourierSMul (fourier_smul)
export ContinuousFourier (continuous_fourier)
export FourierInvAdd (fourierInv_add)
export FourierInvSMul (fourierInv_smul)
export ContinuousFourierInv (continuous_fourierInv)
attribute [simp] fourier_add
attribute [simp] fourier_smul
attribute [simp] fourierInv_add
attribute [simp] fourierInv_smul
attribute [fun_prop] continuous_fourier
attribute [fun_prop] continuous_fourierInv
section fourier
variable [AddCommGroup E] [AddCommGroup F] [FourierTransform E F] [FourierAdd E F]
@[simp]
theorem fourier_zero : (0 : E) = 0 :=
map_zero (AddMonoidHom.mk' fourier_add)
@[simp]
theorem fourier_neg (f : E) : (-f) = - f :=
map_neg (AddMonoidHom.mk' fourier_add) f
@[simp]
theorem fourier_sub (f g : E) : (f - g) = f - g :=
map_sub (AddMonoidHom.mk' fourier_add) f g
@[simp]
theorem fourier_sum (f : ι → E) (s : Finset ι) : (∑ i ∈ s, f i) = ∑ i ∈ s, (f i) :=
map_sum (AddMonoidHom.mk' fourier_add) f s
end fourier
section fourierInv
variable [AddCommGroup E] [AddCommGroup F] [FourierTransformInv E F] [FourierInvAdd E F]
@[simp]
theorem fourierInv_zero : ⁻ (0 : E) = 0 :=
map_zero (AddMonoidHom.mk' ⁻ fourierInv_add)
@[simp]
theorem fourierInv_neg (f : E) : ⁻ (-f) = - ⁻ f :=
map_neg (AddMonoidHom.mk' ⁻ fourierInv_add) f
@[simp]
theorem fourierInv_sub (f g : E) : ⁻ (f - g) = ⁻ f - ⁻ g :=
map_sub (AddMonoidHom.mk' ⁻ fourierInv_add) f g
@[simp]
theorem fourierInv_sum (f : ι → E) (s : Finset ι) : ⁻ (∑ i ∈ s, f i) = ∑ i ∈ s, ⁻ (f i) :=
map_sum (AddMonoidHom.mk' ⁻ fourierInv_add) f s
end fourierInv
variable [Semiring R] [AddCommMonoid E] [AddCommMonoid F] [Module R E] [Module R F]
section fourierCLM
variable [FourierTransform E F] [FourierAdd E F] [FourierSMul R E F]
variable (R E) in
/-- The Fourier transform as a linear map. -/
def fourierₗ : E →ₗ[R] F where
toFun :=
map_add' := fourier_add
map_smul' := fourier_smul
@[simp]
lemma fourierₗ_apply (f : E) : fourierₗ R E f = f := rfl
variable [TopologicalSpace E] [TopologicalSpace F] [ContinuousFourier E F]
variable (R E) in
/-- The Fourier transform as a continuous linear map. -/
def fourierCLM : E →L[R] F where
__ := fourierₗ R E
@[simp]
lemma fourierCLM_apply (f : E) : fourierCLM R E f = f := rfl
end fourierCLM
section fourierInvCLM
variable [FourierTransformInv E F] [FourierInvAdd E F] [FourierInvSMul R E F]
variable (R E) in
/-- The inverse Fourier transform as a linear map. -/
def fourierInvₗ : E →ₗ[R] F where
toFun := ⁻
map_add' := fourierInv_add
map_smul' := fourierInv_smul
@[simp]
lemma fourierInvₗ_apply (f : E) : fourierInvₗ R E f = ⁻ f := rfl
variable [TopologicalSpace E] [TopologicalSpace F] [ContinuousFourierInv E F]
variable (R E) in
/-- The inverse Fourier transform as a continuous linear map. -/
def fourierInvCLM : E →L[R] F where
toFun := ⁻
map_add' := fourierInv_add
map_smul' := fourierInv_smul
@[simp]
lemma fourierInvCLM_apply (f : E) : fourierInvCLM R E f = ⁻ f := rfl
end fourierInvCLM
end FourierTransform
end Module
section Pair
open FourierTransform
/-- A `FourierPair` is a pair of spaces `E` and `F` such that `⁻ ∘ = id` on `E`. -/
class FourierPair (E F : Type*) [FourierTransform E F] [FourierTransformInv F E] where
fourierInv_fourier_eq : ∀ (f : E), ⁻ ( f) = f
/-- A `FourierInvPair` is a pair of spaces `E` and `F` such that ` ∘ ⁻ = id` on `E`. -/
class FourierInvPair (E F : Type*) [FourierTransform F E] [FourierTransformInv E F] where
fourier_fourierInv_eq : ∀ (f : E), (⁻ f) = f
namespace FourierTransform
export FourierPair (fourierInv_fourier_eq)
export FourierInvPair (fourier_fourierInv_eq)
attribute [simp] fourierInv_fourier_eq
attribute [simp] fourier_fourierInv_eq
variable {R E F : Type*} [Semiring R] [AddCommMonoid E] [AddCommMonoid F] [Module R E] [Module R F]
[FourierTransform E F] [FourierAdd E F] [FourierSMul R E F]
[FourierTransformInv F E]
[FourierPair E F] [FourierInvPair F E]
variable (R E) in
/-- The Fourier transform as a linear equivalence. -/
def fourierEquiv : E ≃ₗ[R] F where
__ := fourierₗ R E
invFun := ⁻
left_inv := fourierInv_fourier_eq
right_inv := fourier_fourierInv_eq
@[simp]
lemma fourierEquiv_apply (f : E) : fourierEquiv R E f = f := rfl
@[simp]
lemma fourierEquiv_symm_apply (f : F) : (fourierEquiv R E).symm f = ⁻ f := rfl
variable [TopologicalSpace E] [TopologicalSpace F]
[ContinuousFourier E F] [ContinuousFourierInv F E]
variable (R E) in
/-- The Fourier transform as a continuous linear equivalence. -/
def fourierCLE : E ≃L[R] F where
__ := fourierEquiv R E
@[simp]
lemma fourierCLE_apply (f : E) : fourierCLE R E f = f := rfl
@[simp]
lemma fourierCLE_symm_apply (f : F) : (fourierCLE R E).symm f = ⁻ f := rfl
end FourierTransform
end Pair
¤ Dauer der Verarbeitung: 0.9 Sekunden
¤
*© Formatika GbR, Deutschland