Trust checks for the Fourier transform of a complex Gaussian #
For integral_gaussLin, ∫ e^{-⟨B x, x⟩/2 + ⟨c, x⟩} dx = G(B) e^{⟨B⁻¹ c, c⟩/2}:
- Known value (
integral_gaussLin_one): forB = 1,∫ e^{-|x|²/2 + ⟨c, x⟩} dx = (2π)^{n/2} e^{⟨c, c⟩/2}. - Known value, the Fourier transform (
fourier_gauss_one): withc = 2πiξthis is the classical∫ e^{-|x|²/2} e^{2πi⟨ξ, x⟩} dx = (2π)^{n/2} e^{-2π²|ξ|²}. - Independent cross-check (
integral_gaussLin_diagonal_mathlib): for diagonalB = diag(b)withRe bᵢ > 0and everyc ∈ ℂⁿ, the right-hand side ofintegral_gaussLinis shown to equal the integral computed from Mathlib's product formulaGaussianFourier.integral_cexp_neg_sum_mul_add, without the ODE argument. - Wrong constant (
integral_gaussLin_wrong_constant): ife^{⟨B⁻¹ c, c⟩/2}is replaced bye^{a ⟨B⁻¹ c, c⟩}with reala, the formula holds forB = 1,c = 1onℝ¹only whena = 1/2.
Known value, the Fourier transform of the standard Gaussian:
∫ e^{-|x|²/2} e^{2πi⟨ξ, x⟩} dx = (2π)^{n/2} e^{-2π²|ξ|²}.
The integrand of integral_gaussLin for a diagonal matrix, in the form of Mathlib's
GaussianFourier.integral_cexp_neg_sum_mul_add.
theorem
Lightlike.Oscillatory.integral_gaussLin_diagonal_mathlib
{n : ℕ}
(b : Fin n → ℂ)
(hb : ∀ (i : Fin n), 0 < (b i).re)
(c : Fin n → ℂ)
:
(∫ (x : Fin n → ℝ), Complex.exp (-qform (Matrix.diagonal b) x / 2)) * Complex.exp (c ⬝ᵥ (Matrix.diagonal b)⁻¹.mulVec c / 2) = ∫ (x : Fin n → ℝ), gaussLin (Matrix.diagonal b) c x
Independent cross-check for diagonal matrices: for Re bᵢ > 0 and every c, the
right-hand side of integral_gaussLin equals the integral as computed from Mathlib's product
formula GaussianFourier.integral_cexp_neg_sum_mul_add. The proof does not use
integral_gaussLin.
theorem
Lightlike.Oscillatory.integral_gaussLin_wrong_constant
(a : ℝ)
(h :
∫ (x : Fin 1 → ℝ), gaussLin 1 (fun (x : Fin 1) => 1) x = (∫ (x : Fin 1 → ℝ), Complex.exp (-qform 1 x / 2)) * Complex.exp (↑a * (fun (x : Fin 1) => 1) ⬝ᵥ 1⁻¹.mulVec fun (x : Fin 1) => 1))
:
Wrong constant: on ℝ¹ with B = 1 and c = 1, the factor e^{⟨B⁻¹ c, c⟩/2} of
integral_gaussLin cannot be replaced by e^{a ⟨B⁻¹ c, c⟩} for any real a ≠ 1/2.