Documentation

Lightlike.Oscillatory.GaussFourierTests

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}:

theorem Lightlike.Oscillatory.integral_gaussLin_one {n : ℕ} (c : Fin n → ℂ) :
∫ (x : Fin n → ℝ), gaussLin 1 c x = ↑((2 * Real.pi) ^ (↑n / 2)) * Complex.exp (c ⬝ᵥ c / 2)

Known value: ∫ e^{-|x|²/2 + ⟨c, x⟩} dx = (2π)^{n/2} e^{⟨c, c⟩/2}.

theorem Lightlike.Oscillatory.fourier_gauss_one {n : ℕ} (ξ : Fin n → ℝ) :
∫ (x : Fin n → ℝ), gaussLin 1 (fun (i : Fin n) => 2 * ↑Real.pi * Complex.I * ↑(ξ i)) x = ↑((2 * Real.pi) ^ (↑n / 2)) * Complex.exp (-(2 * ↑Real.pi ^ 2 * ∑ i : Fin n, ↑(ξ i) ^ 2))

Known value, the Fourier transform of the standard Gaussian: ∫ e^{-|x|²/2} e^{2πi⟨ξ, x⟩} dx = (2π)^{n/2} e^{-2π²|ξ|²}.

theorem Lightlike.Oscillatory.gaussLin_diagonal {n : ℕ} (b c : Fin n → ℂ) (x : Fin n → ℝ) :
gaussLin (Matrix.diagonal b) c x = Complex.exp (-∑ i : Fin n, b i / 2 * ↑(x i) ^ 2 + ∑ i : Fin n, c i * ↑(x i))

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 → ℂ) :

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)) :
a = 1 / 2

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.