Documentation

Lightlike.Oscillatory.Gaussian

The Gaussian model integral with a complex symmetric quadratic form #

For a complex symmetric n × n matrix A whose quadratic form has positive real part on nonzero real vectors (equivalently, Re A is positive definite), the Gaussian integral

G(A) = ∫_{ℝⁿ} e^{-⟨A x, x⟩ / 2} dx

satisfies G(A)² · det A = (2π)ⁿ (integral_gauss_sq_mul_det) and, with the branch fixed,

G(A) = (2π)^{n/2} · invSqrtDet A (integral_gauss_eq_invSqrtDet),

where invSqrtDet A is the product of the principal roots λ^{-1/2} over the eigenvalues λ of A. This is the model integral of the stationary phase method: Hörmander, The Analysis of Linear Partial Differential Operators I (2nd ed., 1990), §7.6, Theorem 7.6.1 at ξ = 0, which writes it as (2π)^{n/2} (det A)^{-1/2}, with the branch obtained by continuity from real positive definite A. That branch is the eigenvalue product, not the principal root of det A: the two differ in sign for A = (1 + 2i) · I₃ (see invSqrtDet).

Proof #

Induction on n by completing the square in the first variable:

Integrability on ℝⁿ (needed for Fubini) follows from the coercivity bound μ ∑ xᵢ² ≤ Re ⟨A x, x⟩ (exists_coercive), obtained from the minimum on the unit sphere.

The branch #

Along the segment A_t = (1 - t) • 1 + t • A, t ∈ [0, 1]:

def Lightlike.Oscillatory.qform {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (x : Fin n → ℝ) :

The quadratic form x ↦ ∑ᵢⱼ Aᵢⱼ xᵢ xⱼ of a complex square matrix, evaluated on real vectors.

Equations
Instances For
    noncomputable def Lightlike.Oscillatory.schur0 {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) :
    Matrix (Fin n) (Fin n) ℂ

    The Schur complement of the entry A₀₀: Sᵢⱼ = A_{i+1, j+1} - A_{i+1, 0} A_{0, j+1} / A₀₀.

    Equations
    Instances For
      theorem Lightlike.Oscillatory.qform_zero {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) :
      qform A 0 = 0

      The quadratic form vanishes at the origin.

      theorem Lightlike.Oscillatory.qform_smul {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (t : ℝ) (x : Fin n → ℝ) :
      qform A (t • x) = ↑t ^ 2 * qform A x

      The quadratic form is homogeneous of degree two.

      The quadratic form is continuous.

      theorem Lightlike.Oscillatory.qform_cons {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (hA : A.IsSymm) (s : ℝ) (w : Fin n → ℝ) :
      qform A (Fin.cons s w) = A 0 0 * ↑s ^ 2 + (2 * ∑ j : Fin n, A 0 j.succ * ↑(w j)) * ↑s + qform (A.submatrix Fin.succ Fin.succ) w

      Splitting off the first variable: for symmetric A, ⟨A (s, w), (s, w)⟩ = A₀₀ s² + 2 (∑ⱼ A_{0, j+1} wⱼ) s + ⟨A' w, w⟩, where A' is the lower right block.

      theorem Lightlike.Oscillatory.qform_cons_zero {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (hA : A.IsSymm) (s : ℝ) :
      qform A (Fin.cons s 0) = A 0 0 * ↑s ^ 2

      The quadratic form on the first coordinate axis: ⟨A (s, 0), (s, 0)⟩ = A₀₀ s².

      theorem Lightlike.Oscillatory.qform_schur0 {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (hA : A.IsSymm) (w : Fin n → ℝ) :
      qform (schur0 A) w = qform (A.submatrix Fin.succ Fin.succ) w - (∑ j : Fin n, A 0 j.succ * ↑(w j)) ^ 2 / A 0 0

      The quadratic form of the Schur complement is the reduced form after completing the square: ⟨S w, w⟩ = ⟨A' w, w⟩ - (∑ⱼ A_{0, j+1} wⱼ)² / A₀₀ for symmetric A.

      theorem Lightlike.Oscillatory.schur0_isSymm {n : ℕ} {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hA : A.IsSymm) :

      The Schur complement of a symmetric matrix is symmetric.

      theorem Lightlike.Oscillatory.re_pivot_pos {n : ℕ} {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hA : A.IsSymm) (hpos : ∀ (x : Fin (n + 1) → ℝ), x ≠ 0 → 0 < (qform A x).re) :
      0 < (A 0 0).re

      Under positivity of the real part, the pivot A₀₀ has positive real part.

      theorem Lightlike.Oscillatory.neg_sq_div_eq (a β : ℂ) (ha : a ≠ 0) :
      -(β ^ 2 / a) = a * ↑(-β / a).re ^ 2 + 2 * β * ↑(-β / a).re + a * ↑(-β / a).im ^ 2

      The algebraic identity behind schur0_pos: with z = -β / a, -β² / a = a (Re z)² + 2 β Re z + a (Im z)².

      theorem Lightlike.Oscillatory.schur0_pos {n : ℕ} {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hA : A.IsSymm) (hpos : ∀ (x : Fin (n + 1) → ℝ), x ≠ 0 → 0 < (qform A x).re) (w : Fin n → ℝ) :
      w ≠ 0 → 0 < (qform (schur0 A) w).re

      The Schur complement inherits positivity of the real part: if Re ⟨A x, x⟩ > 0 for every nonzero real x and A is symmetric, the same holds for schur0 A. The proof writes ⟨S w, w⟩ = ⟨A x, x⟩ + ⟨A y, y⟩ with x = (Re z, w), y = (Im z, 0), z = -β(w)/A₀₀.

      theorem Lightlike.Oscillatory.det_eq_mul_det_schur0 {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (ha : A 0 0 ≠ 0) :
      A.det = A 0 0 * (schur0 A).det

      Expansion of the determinant along the first column after one step of Gaussian elimination: det A = A₀₀ · det (schur0 A) when A₀₀ ≠ 0.

      theorem Lightlike.Oscillatory.exists_coercive {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) :
      ∃ μ > 0, ∀ (x : Fin n → ℝ), μ * ∑ i : Fin n, x i ^ 2 ≤ (qform A x).re

      Coercivity: if Re ⟨A x, x⟩ > 0 for every nonzero real x, then μ ∑ᵢ xᵢ² ≤ Re ⟨A x, x⟩ for some μ > 0. The constant comes from the minimum of Re ⟨A x, x⟩ on the unit sphere of the sup norm.

      theorem Lightlike.Oscillatory.integrable_gauss {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) :

      The Gaussian e^{-⟨A x, x⟩ / 2} is integrable on ℝⁿ when Re ⟨A x, x⟩ > 0 for every nonzero real x.

      theorem Lightlike.Oscillatory.integral_fin_succ_cons {n : ℕ} (f : (Fin (n + 1) → ℝ) → ℂ) (hf : MeasureTheory.Integrable f MeasureTheory.volume) :
      ∫ (x : Fin (n + 1) → ℝ), f x = ∫ (w : Fin n → ℝ) (s : ℝ), f (Fin.cons s w)

      Fubini over the first coordinate: ∫_{ℝⁿ⁺¹} f = ∫_{ℝⁿ} ∫_ℝ f (s, w) ds dw for integrable f.

      theorem Lightlike.Oscillatory.integral_gauss_succ {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (hA : A.IsSymm) (hpos : ∀ (x : Fin (n + 1) → ℝ), x ≠ 0 → 0 < (qform A x).re) :
      ∫ (x : Fin (n + 1) → ℝ), Complex.exp (-qform A x / 2) = (↑Real.pi / (A 0 0 / 2)) ^ (1 / 2) * ∫ (w : Fin n → ℝ), Complex.exp (-qform (schur0 A) w / 2)

      One step of the induction: integrating out the first variable, G(A) = (π / (A₀₀ / 2))^{1/2} · G(schur0 A), where G(A) = ∫ e^{-⟨A x, x⟩ / 2}.

      theorem Lightlike.Oscillatory.integral_gauss_sq_mul_det {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (hA : A.IsSymm) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) :
      (∫ (x : Fin n → ℝ), Complex.exp (-qform A x / 2)) ^ 2 * A.det = (2 * ↑Real.pi) ^ n

      The Gaussian model integral (Hörmander, ALPDO I, §7.6, Theorem 7.6.1 at ξ = 0, squared): for a complex symmetric matrix A with Re ⟨A x, x⟩ > 0 for every nonzero real x, (∫_{ℝⁿ} e^{-⟨A x, x⟩ / 2} dx)² · det A = (2π)ⁿ.

      The branch: G(A) = (2π)^{n/2} invSqrtDet A #

      noncomputable def Lightlike.Oscillatory.invSqrtDet {n : ℕ} (M : Matrix (Fin n) (Fin n) ℂ) :

      det(M)^{-1/2} with the branch that the Gaussian integral selects: the product, over the eigenvalues λ of M (the roots of the characteristic polynomial, with algebraic multiplicity), of their principal inverse square roots λ^{-1/2}.

      For M as in integral_gauss_eq_invSqrtDet, every eigenvalue has positive real part (re_pos_of_mem_roots), so each factor is the root that is continuous on the right half-plane.

      The principal root of det M itself is not this branch from n = 3 on. Take M = (1 + 2i) · I₃. The integral factorizes, G(M) = (2π / (1 + 2i))^{3/2}, with each one-dimensional factor a principal root. The eigenvalue arguments sum to 3 arctan 2 ≈ 3.32 > π, so det M = (1 + 2i)³ = -11 - 2i lies just across the negative real axis, and (2π)^{3/2} (det M)^{-1/2} = -G(M) (proved in cpow_det_diagonal_wrong_branch). The same happens for diag(1 + 2i, 1 + 2.5i, 1 + 3i) and its rotations, whose arguments sum to about 3.55 (control (b) of scripts/oscillatory/gauss_check.py). For n ≤ 2 the arguments sum to less than π in absolute value, and the two branches agree. This is why G(A) is identified along the path (1 - t) • 1 + t • A rather than through det A.

      Equations
      Instances For
        theorem Lightlike.Oscillatory.re_qform_nonneg {n : ℕ} {A : Matrix (Fin n) (Fin n) ℂ} (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) (x : Fin n → ℝ) :
        0 ≤ (qform A x).re

        Under the positivity hypothesis, the real part of the quadratic form is nonnegative everywhere.

        theorem Lightlike.Oscillatory.sum_sq_pos {n : ℕ} {x : Fin n → ℝ} (hx : x ≠ 0) :
        0 < ∑ i : Fin n, x i ^ 2

        A nonzero real vector has positive squared length.

        theorem Lightlike.Oscillatory.sum_star_mul_mulVec {n : ℕ} {A : Matrix (Fin n) (Fin n) ℂ} (hA : A.IsSymm) (p q : Fin n → ℝ) :
        ∑ i : Fin n, star (↑(p i) + ↑(q i) * Complex.I) * A.mulVec (fun (j : Fin n) => ↑(p j) + ↑(q j) * Complex.I) i = qform A p + qform A q

        For symmetric A and v = p + i q with p, q real, the Hermitian form ∑ᵢ v̄ᵢ (A v)ᵢ is ⟨A p, p⟩ + ⟨A q, q⟩: the cross terms cancel by symmetry.

        theorem Lightlike.Oscillatory.re_pos_of_mem_roots {n : ℕ} {A : Matrix (Fin n) (Fin n) ℂ} (hA : A.IsSymm) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) {μ : ℂ} (hμ : μ ∈ A.charpoly.roots) :
        0 < μ.re

        Every eigenvalue of a complex symmetric matrix with positive definite real part has positive real part.

        theorem Lightlike.Oscillatory.eval_charpoly_smul_one_add_smul {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (c t z : ℂ) :
        Polynomial.eval z (c • 1 + t • A).charpoly = (Multiset.map (fun (a : ℂ) => z - a) (Multiset.map (fun (μ : ℂ) => c + t * μ) A.charpoly.roots)).prod

        The characteristic polynomial of c • 1 + t • A, evaluated at z: its roots are c + t λ for the eigenvalues λ of A.

        theorem Lightlike.Oscillatory.roots_charpoly_smul_one_add_smul {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (c t : ℂ) :
        (c • 1 + t • A).charpoly.roots = Multiset.map (fun (μ : ℂ) => c + t * μ) A.charpoly.roots

        The eigenvalues of c • 1 + t • A are c + t λ for the eigenvalues λ of A, with multiplicity.

        theorem Lightlike.Oscillatory.invSqrtDet_smul_one_add_smul {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (c t : ℂ) :
        invSqrtDet (c • 1 + t • A) = (Multiset.map (fun (μ : ℂ) => (c + t * μ) ^ (-(1 / 2))) A.charpoly.roots).prod

        invSqrtDet along the segment c • 1 + t • A.

        theorem Lightlike.Oscillatory.invSqrtDet_sq_mul_det {n : ℕ} (M : Matrix (Fin n) (Fin n) ℂ) (h : ∀ μ ∈ M.charpoly.roots, μ ≠ 0) :
        invSqrtDet M ^ 2 * M.det = 1

        invSqrtDet M is a square root of (det M)⁻¹ when no eigenvalue vanishes.

        theorem Lightlike.Oscillatory.invSqrtDet_diagonal {n : ℕ} (d : Fin n → ℂ) :
        invSqrtDet (Matrix.diagonal d) = ∏ i : Fin n, d i ^ (-(1 / 2))

        For a diagonal matrix, invSqrtDet (diagonal d) = ∏ᵢ dᵢ^{-1/2}: the eigenvalues are the diagonal entries (Matrix.charpoly_diagonal).

        theorem Lightlike.Oscillatory.qform_smul_one_add_smul {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (c t : ℂ) (x : Fin n → ℝ) :
        qform (c • 1 + t • A) x = c * ∑ i : Fin n, ↑(x i) ^ 2 + t * qform A x

        The quadratic form of c • 1 + t • A.

        theorem Lightlike.Oscillatory.re_qform_path {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (t : ℝ) (x : Fin n → ℝ) :
        (qform (↑(1 - t) • 1 + ↑t • A) x).re = (1 - t) * ∑ i : Fin n, x i ^ 2 + t * (qform A x).re

        The real part of the quadratic form along the segment (1 - t) • 1 + t • A, t real.

        theorem Lightlike.Oscillatory.coercive_path {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) {μ : ℝ} (hcoer : ∀ (x : Fin n → ℝ), μ * ∑ i : Fin n, x i ^ 2 ≤ (qform A x).re) {t : ℝ} (ht : t ∈ Set.Icc 0 1) (x : Fin n → ℝ) :
        min 1 μ * ∑ i : Fin n, x i ^ 2 ≤ (qform (↑(1 - t) • 1 + ↑t • A) x).re

        A uniform coercivity bound along the segment (1 - t) • 1 + t • A, t ∈ [0, 1].

        The norm of the Gaussian integrand.

        theorem Lightlike.Oscillatory.re_qform_ofReal_smul_one {n : ℕ} (m : ℝ) (x : Fin n → ℝ) :
        (qform (↑m • 1) x).re = m * ∑ i : Fin n, x i ^ 2

        The real part of the quadratic form of m • 1, m real.

        theorem Lightlike.Oscillatory.continuousOn_integral_gauss_path {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) :
        ContinuousOn (fun (t : ℝ) => ∫ (x : Fin n → ℝ), Complex.exp (-qform (↑(1 - t) • 1 + ↑t • A) x / 2)) (Set.Icc 0 1)

        The Gaussian integral is continuous along the segment (1 - t) • 1 + t • A, t ∈ [0, 1] (dominated convergence with the uniform coercivity bound).

        theorem Lightlike.Oscillatory.continuousOn_invSqrtDet_path {n : ℕ} {A : Matrix (Fin n) (Fin n) ℂ} (hA : A.IsSymm) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) :
        ContinuousOn (fun (t : ℝ) => invSqrtDet (↑(1 - t) • 1 + ↑t • A)) (Set.Icc 0 1)

        invSqrtDet is continuous along the segment (1 - t) • 1 + t • A, t ∈ [0, 1]: its factors are (1 - t + t λ)^{-1/2}, and 1 - t + t λ stays in the right half-plane.

        theorem Lightlike.Oscillatory.rpow_half_sq {x : ℝ} (hx : 0 ≤ x) (n : ℕ) :
        (x ^ (↑n / 2)) ^ 2 = x ^ n

        (x^{n/2})² = xⁿ for x ≥ 0.

        theorem Lightlike.Oscillatory.integral_gauss_eq_invSqrtDet {n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) (hA : A.IsSymm) (hpos : ∀ (x : Fin n → ℝ), x ≠ 0 → 0 < (qform A x).re) :
        ∫ (x : Fin n → ℝ), Complex.exp (-qform A x / 2) = ↑((2 * Real.pi) ^ (↑n / 2)) * invSqrtDet A

        The Gaussian model integral with its branch (Hörmander, ALPDO I, §7.6, Theorem 7.6.1 at ξ = 0): for a complex symmetric A with positive definite real part, ∫_{ℝⁿ} e^{-⟨A x, x⟩ / 2} dx = (2π)^{n/2} · invSqrtDet A, where invSqrtDet A is the product of the principal roots λ^{-1/2} over the eigenvalues λ of A (all in the right half-plane).

        The proof follows the segment A_t = (1 - t) • 1 + t • A, t ∈ [0, 1]. Both sides are continuous and nonvanishing on it, their squares agree (integral_gauss_sq_mul_det and invSqrtDet_sq_mul_det), and they agree at t = 0, where A_0 = 1. So their ratio is a continuous function with values ±1 that equals 1 at t = 0, hence everywhere.