import OAI.RepresentationTheory.Weil.Local.ArchimedeanTestSpace import OAI.RepresentationTheory.Weil.Local.RealFourierLp import OAI.RepresentationTheory.Weil.Local.FourierTensor /-! # Complex Fourier Standard -/ namespace OAI.RepresentationTheory.Weil.Local.ComplexFourierStandard.Construction noncomputable section section /-! Exact reference-set Fourier normalization for the standard complex character. -/ open _root_.MeasureTheory open scoped FourierTransform ComplexConjugate NNReal theorem scalarFourierIntegral_complex_standard (f : β„‚ β†’ β„‚) (x : β„‚) : FourierTensor.Construction.scalarFourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume f x = 𝓕 f (conj x) := by rw [Real.fourier_eq] unfold FourierTensor.Construction.scalarFourierIntegral apply integral_congr_ae exact Filter.Eventually.of_forall fun t => by have hi : @inner ℝ β„‚ _ t (conj x) = (x * t).re := by rw [real_inner_eq_re_inner (π•œ := β„‚), RCLike.inner_apply] simp [Complex.mul_re, mul_comm] dsimp only rw [hi] change f t * Gaussian.Construction.realCharacter 1 (-(x * t)).re = (Real.fourierChar (-(x * t).re) : β„‚) β€’ f t simp only [Complex.neg_re, Gaussian.Construction.realCharacter, MonoidHom.compAddChar_apply, AddChar.mulShift_apply, one_mul, Function.comp_apply, smul_eq_mul] exact mul_comm _ _ theorem scalarFourierIntegral_indicator {k : Type} [Field k] [MeasurableSpace k] (ψ : AddChar k β„‚) (ΞΌ : Measure k) (S : Set k) (hS : MeasurableSet S) (x : k) : FourierTensor.Construction.scalarFourierIntegral ψ ΞΌ (S.indicator (fun _ => (1 : β„‚))) x = ∫ t in S, ψ (-(x * t)) βˆ‚ΞΌ := by rw [FourierTensor.Construction.scalarFourierIntegral, ← integral_indicator hS] apply integral_congr_ae exact Filter.Eventually.of_forall fun t => by by_cases ht : t ∈ S <;> simp [ht] theorem referenceFourier_complex_standard (x : β„‚) : FunctionsMetaplectic.Construction.referenceFourier β„‚ ArchimedeanTestSpace.Construction.complexStandardCharacter x = (ArchimedeanTestSpace.Construction.complexReferenceHaarFactor : β„‚) * 𝓕 ((FunctionsMetaplectic.Construction.referenceCompact β„‚ : Set β„‚).indicator (fun _ => (1 : β„‚))) (conj x) := by rw [FunctionsMetaplectic.Construction.referenceFourier, Measure.isAddLeftInvariant_eq_smul_of_regular (Measure.addHaar : Measure β„‚) volume, Measure.restrict_smul, integral_smul_nnreal_measure] change (ArchimedeanTestSpace.Construction.complexReferenceHaarFactor : β„‚) * _ = _ congr 1 rw [← scalarFourierIntegral_indicator _ _ _ (FunctionsMetaplectic.Construction.referenceCompact β„‚).isCompact.measurableSet, scalarFourierIntegral_complex_standard] theorem fourierHaarScaleSquared_complex_standard : FunctionsMetaplectic.Construction.fourierHaarScaleSquared β„‚ ArchimedeanTestSpace.Construction.complexStandardCharacter = (ArchimedeanTestSpace.Construction.complexReferenceHaarFactor : ℝ) ^ 2 := by let r : ℝ := ArchimedeanTestSpace.Construction.complexReferenceHaarFactor let S : Set β„‚ := FunctionsMetaplectic.Construction.referenceCompact β„‚ have hr : r β‰  0 := (show 0 < r from ArchimedeanTestSpace.Construction.complexReferenceHaarFactor_pos).ne' have hSpos : 0 < volume.real S := by apply ENNReal.toReal_pos Β· exact (Measure.measure_pos_of_nonempty_interior volume (FunctionsMetaplectic.Construction.referenceCompact β„‚).interior_nonempty).ne' Β· exact (FunctionsMetaplectic.Construction.referenceCompact β„‚).isCompact.measure_ne_top have hhaar : (Measure.addHaar : Measure β„‚) = ArchimedeanTestSpace.Construction.complexReferenceHaarFactor β€’ volume := Measure.isAddLeftInvariant_eq_smul_of_regular _ _ have hconj : (∫ x : β„‚, ‖𝓕 (S.indicator (fun _ => (1 : β„‚))) (conj x)β€– ^ 2) = ∫ x : β„‚, ‖𝓕 (S.indicator (fun _ => (1 : β„‚))) xβ€– ^ 2 := by simpa using! Complex.conjLIE.measurePreserving.integral_comp Complex.conjLIE.toHomeomorph.measurableEmbedding (fun x => ‖𝓕 (S.indicator (fun _ => (1 : β„‚))) xβ€– ^ 2) have hS : volume.real S β‰  0 := hSpos.ne' unfold FunctionsMetaplectic.Construction.fourierHaarScaleSquared simp_rw [referenceFourier_complex_standard, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg ArchimedeanTestSpace.Construction.complexReferenceHaarFactor.coe_nonneg, mul_pow] rw [hhaar, integral_smul_nnreal_measure, measureReal_nnreal_smul_apply] simp only [NNReal.smul_def, smul_eq_mul] rw [integral_const_mul, hconj, RealFourierLp.Construction.real_indicator_fourier_norm_sq (FunctionsMetaplectic.Construction.referenceCompact β„‚).isCompact.measurableSet (FunctionsMetaplectic.Construction.referenceCompact β„‚).isCompact.measure_ne_top] change (r * (r ^ 2 * volume.real S)) / (r * volume.real S) = r ^ 2 field_simp theorem selfDualMeasure_complex_standard : FunctionsMetaplectic.Construction.selfDualMeasure β„‚ ArchimedeanTestSpace.Construction.complexStandardCharacter = volume := by have hr : ArchimedeanTestSpace.Construction.complexReferenceHaarFactor β‰  0 := ArchimedeanTestSpace.Construction.complexReferenceHaarFactor_pos.ne' rw [FunctionsMetaplectic.Construction.selfDualMeasure, fourierHaarScaleSquared_complex_standard, Real.sqrt_sq ArchimedeanTestSpace.Construction.complexReferenceHaarFactor.coe_nonneg] rw [Measure.isAddLeftInvariant_eq_smul_of_regular (Measure.addHaar : Measure β„‚) volume] change ENNReal.ofReal ((ArchimedeanTestSpace.Construction.complexReferenceHaarFactor : ℝ)⁻¹) β€’ (ArchimedeanTestSpace.Construction.complexReferenceHaarFactor β€’ volume) = volume rw [← NNReal.coe_inv, ENNReal.ofReal_coe_nnreal, ← ENNReal.smul_def, smul_smul, inv_mul_cancelβ‚€ hr, one_smul] end /-! Complex Fourier analysis in arbitrary rank. Haar uniqueness first gives an explicit scalar; a tensor test determines that scalar exactly. -/ open _root_.MeasureTheory open scoped FourierTransform ComplexConjugate NNReal SchwartzMap ContDiff section Twist variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] def twistedSchwartzFourier (J : E ≃ₗᡒ[ℝ] E) (f : SchwartzMap E β„‚) : SchwartzMap E β„‚ := SchwartzMap.compCLMOfContinuousLinearEquiv β„‚ J.toContinuousLinearEquiv (𝓕 f) theorem twistedSchwartzFourier_apply (J : E ≃ₗᡒ[ℝ] E) (f : SchwartzMap E β„‚) (x : E) : twistedSchwartzFourier J f x = 𝓕 (f : E β†’ β„‚) (J x) := by exact congrFun (SchwartzMap.fourier_coe f) (J x) theorem realSchwartz_fourier_square (f : SchwartzMap E β„‚) (x : E) : 𝓕 (𝓕 (f : E β†’ β„‚)) x = f (-x) := by have h := congrArg (fun g : SchwartzMap E β„‚ => g (-x)) ((FourierTransform.fourierEquiv β„‚ (SchwartzMap E β„‚)).symm_apply_apply f) change 𝓕⁻ (𝓕 f : SchwartzMap E β„‚) (-x) = f (-x) at h simp only [SchwartzMap.fourierInv_coe, SchwartzMap.fourier_coe] at h rwa [Real.fourierInv_eq_fourier_neg, neg_neg] at h theorem twistedSchwartzFourier_square (J : E ≃ₗᡒ[ℝ] E) (hJ : Function.Involutive J) (f : SchwartzMap E β„‚) (x : E) : twistedSchwartzFourier J (twistedSchwartzFourier J f) x = f (-x) := by rw [twistedSchwartzFourier_apply] have hf : (twistedSchwartzFourier J f : E β†’ β„‚) = 𝓕 (f : E β†’ β„‚) ∘ J := funext (twistedSchwartzFourier_apply J f) rw [hf, Real.fourier_comp_linearIsometry, hJ, realSchwartz_fourier_square] end Twist theorem scalarFourierIntegral_complex_standard_square (f : SchwartzMap β„‚ β„‚) (x : β„‚) : FourierTensor.Construction.scalarFourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume (FourierTensor.Construction.scalarFourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume f) x = f (-x) := by have hf : FourierTensor.Construction.scalarFourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume f = (twistedSchwartzFourier Complex.conjLIE f : β„‚ β†’ β„‚) := by funext y rw [scalarFourierIntegral_complex_standard, twistedSchwartzFourier_apply] rfl rw [hf, scalarFourierIntegral_complex_standard] exact twistedSchwartzFourier_square Complex.conjLIE (fun _ => star_star _) f x def complexL2Coordinates (n : β„•) : EuclideanSpace β„‚ (Fin n) ≃L[ℝ] FunctionsMetaplectic.Construction.Position β„‚ n := PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin n => β„‚) def complexPositionHaar (n : β„•) : Measure (EuclideanSpace β„‚ (Fin n)) := (volume : Measure (FunctionsMetaplectic.Construction.Position β„‚ n)).map (complexL2Coordinates n).symm instance complexPositionHaar_isAddHaarMeasure (n : β„•) : (complexPositionHaar n).IsAddHaarMeasure := (complexL2Coordinates n).symm.isAddHaarMeasure_map volume def complexPositionHaarFactor (n : β„•) : ℝβ‰₯0 := Measure.addHaarScalarFactor (complexPositionHaar n) volume theorem complexPositionHaar_eq (n : β„•) : complexPositionHaar n = complexPositionHaarFactor n β€’ volume := Measure.isAddLeftInvariant_eq_smul_of_regular _ _ def complexConjugation (n : β„•) : EuclideanSpace β„‚ (Fin n) ≃ₗᡒ[ℝ] EuclideanSpace β„‚ (Fin n) := LinearIsometryEquiv.piLpCongrRight 2 (fun _ : Fin n => Complex.conjLIE) theorem complexConjugation_involutive (n : β„•) : Function.Involutive (complexConjugation n) := by intro x ext i exact star_star (x i) theorem complex_inner_conjugation (n : β„•) (x y : EuclideanSpace β„‚ (Fin n)) : @inner ℝ (EuclideanSpace β„‚ (Fin n)) _ y (complexConjugation n x) = (FunctionsMetaplectic.Construction.dot (complexL2Coordinates n x) (complexL2Coordinates n y)).re := by rw [PiLp.inner_apply] change (βˆ‘ i, @inner ℝ β„‚ _ (y i) (conj (x i))) = (βˆ‘ i, x i * y i).re rw [Complex.re_sum] apply Finset.sum_congr rfl intro i _ rw [real_inner_eq_re_inner (π•œ := β„‚), RCLike.inner_apply] simp [Complex.mul_re] theorem complex_fourier_coordinates (n : β„•) (f : FunctionsMetaplectic.Construction.Position β„‚ n β†’ β„‚) (x : FunctionsMetaplectic.Construction.Position β„‚ n) : FunctionsMetaplectic.Construction.fourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume f x = (complexPositionHaarFactor n : β„‚) * 𝓕 (f ∘ complexL2Coordinates n) (complexConjugation n ((complexL2Coordinates n).symm x)) := by have hmap := integral_map_equiv (ΞΌ := (volume : Measure (FunctionsMetaplectic.Construction.Position β„‚ n))) (complexL2Coordinates n).symm.toHomeomorph.toMeasurableEquiv (fun y => f (complexL2Coordinates n y) * ArchimedeanTestSpace.Construction.complexStandardCharacter (-(FunctionsMetaplectic.Construction.dot x (complexL2Coordinates n y)))) have heq : FunctionsMetaplectic.Construction.fourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume f x = ∫ y, f (complexL2Coordinates n y) * ArchimedeanTestSpace.Construction.complexStandardCharacter (-(FunctionsMetaplectic.Construction.dot x (complexL2Coordinates n y))) βˆ‚ complexPositionHaar n := by simpa [FunctionsMetaplectic.Construction.fourierIntegral, complexPositionHaar] using! hmap.symm rw [heq, complexPositionHaar_eq, integral_smul_nnreal_measure] change (complexPositionHaarFactor n : β„‚) * _ = _ congr 1 rw [Real.fourier_eq] apply integral_congr_ae exact Filter.Eventually.of_forall fun y => by dsimp only [Function.comp_apply] rw [complex_inner_conjugation, ContinuousLinearEquiv.apply_symm_apply] change f (complexL2Coordinates n y) * Gaussian.Construction.realCharacter 1 (-(FunctionsMetaplectic.Construction.dot x (complexL2Coordinates n y))).re = _ simp only [Complex.neg_re, Gaussian.Construction.realCharacter, MonoidHom.compAddChar_apply, AddChar.mulShift_apply, one_mul, Function.comp_apply, Circle.smul_def, smul_eq_mul] exact mul_comm _ _ def complexSchwartzFourier (n : β„•) (f : SchwartzMap (FunctionsMetaplectic.Construction.Position β„‚ n) β„‚) : SchwartzMap (FunctionsMetaplectic.Construction.Position β„‚ n) β„‚ := (complexPositionHaarFactor n : β„‚) β€’ SchwartzMap.compCLMOfContinuousLinearEquiv β„‚ (complexL2Coordinates n).symm (twistedSchwartzFourier (complexConjugation n) (SchwartzMap.compCLMOfContinuousLinearEquiv β„‚ (complexL2Coordinates n) f)) theorem complexSchwartzFourier_apply (n : β„•) (f : SchwartzMap (FunctionsMetaplectic.Construction.Position β„‚ n) β„‚) (x : FunctionsMetaplectic.Construction.Position β„‚ n) : complexSchwartzFourier n f x = FunctionsMetaplectic.Construction.fourierIntegral ArchimedeanTestSpace.Construction.complexStandardCharacter volume f x := by rw [complex_fourier_coordinates] change (complexPositionHaarFactor n : β„‚) * _ = _ congr 1 theorem complexSchwartzFourier_square (n : β„•) (f : SchwartzMap (FunctionsMetaplectic.Construction.Position β„‚ n) β„‚) (x : FunctionsMetaplectic.Construction.Position β„‚ n) : complexSchwartzFourier n (complexSchwartzFourier n f) x = (complexPositionHaarFactor n : β„‚) ^ 2 * f (-x) := by let e := complexL2Coordinates n let g := SchwartzMap.compCLMOfContinuousLinearEquiv β„‚ e f have he : SchwartzMap.compCLMOfContinuousLinearEquiv β„‚ e (complexSchwartzFourier n f) = (complexPositionHaarFactor n : β„‚) β€’ twistedSchwartzFourier (complexConjugation n) g := by ext y change (complexPositionHaarFactor n : β„‚) * twistedSchwartzFourier (complexConjugation n) g (e.symm (e y)) = (complexPositionHaarFactor n : β„‚) * twistedSchwartzFourier (complexConjugation n) g y rw [ContinuousLinearEquiv.symm_apply_apply] change (complexPositionHaarFactor n : β„‚) * twistedSchwartzFourier (complexConjugation n) (SchwartzMap.compCLMOfContinuousLinearEquiv β„‚ e (complexSchwartzFourier n f)) (e.symm x) = _ rw [he] simp only [twistedSchwartzFourier, FourierTransform.fourier_smul, map_smul, smul_apply, smul_eq_mul] change (complexPositionHaarFactor n : β„‚) * ((complexPositionHaarFactor n : β„‚) * twistedSchwartzFourier (complexConjugation n) (twistedSchwartzFourier (complexConjugation n) g) (e.symm x)) = _ rw [twistedSchwartzFourier_square _ (complexConjugation_involutive n)] change (complexPositionHaarFactor n : β„‚) * ((complexPositionHaarFactor n : β„‚) * f (e (-e.symm x))) = _ rw [map_neg, ContinuousLinearEquiv.apply_symm_apply] ring end end OAI.RepresentationTheory.Weil.Local.ComplexFourierStandard.Construction