MathFin
Map / Probability · Brownian calculus / MathFin.Probability.Brownian.SDE.OUSpectral

The OU generator on polynomials: the Hermite eigenlayer

MathFin.Probability.Brownian.SDE.OUSpectralMSC 60J60MSC 91G30JEL E43 source

The spectral route to solvability diagonalises the generator instead of diagonalising the transform. For the OU process dX = -κX dt + σ dW, the generator

L p = -(κ • X) * p' + (σ²/2) • p''

maps real polynomials to real polynomials, and on that invariant subspace the scaled Hermite polynomials He_n(x/s) (with stationary scale s² = σ²/2κ) are eigenfunctions: L He_n(x/s) = -nκ He_n(x/s) — eq. 14.16's OU case, Calc 14.14. (Since He_n(x/s) has degree n, they diagonalise L on ℝ[X]; that basis fact is not formalized here.) This file proves the eigenidentities by induction on Polynomial.hermite_succ (Mathlib/RingTheory/Polynomial/Hermite/Basic.lean), together with:

  • the commutator identities that drive the induction (ouGen_derivative, ouGen_X_mul);
  • the Gaussian stationary no-flux condition of Calc 14.13 (gaussianScore_ou, gaussianNoFlux_ou) — the one-dimensional reversibility mechanism, at eval level;
  • the two-mode weighted-average gap inequality (twoMode_rate_ge_slowest): the effective decay rate of a two-mode mixture is at least the slowest rate, so a one-exponential fit never understates mean reversion (the fit consequence itself is not formalized here).

Status

  • Proved here: every declaration in this file, no proof holes. The commutators carry the κ and σ² coefficients explicitly, and the eigeninduction closes when σ² = 2κ (only this direction is proved; the converse — that it fails off that scale — is not).
  • Not here: that ouGen is the OU process's infinitesimal generator (it is defined as the polynomial operator above; no process appears in this file); the L²(π) operator theory — self-adjointness of the generator against the stationary law (Calc 14.13's pairing, eq. 14.18), the eigenfunction expansion P_t f = Σ c_n e^{-λ_n t} φ_n (eq. 14.17), completeness of the Hermite basis, spectral-gap theory beyond the two-mode inequality, the general-diffusion no-flux statement (only the Gaussian instance is proved), the swirl as a stochastic process, and the Laguerre/Jacobi rows of the Pearson table (no Laguerre or Jacobi polynomials are available in the library).

Main definitions

  • ouGen: the operator p ↦ -(κ • X) * p' + (σ²/2) • p'' on real polynomials.
  • hermiteReal: the probabilists' Hermite polynomial He_n over ℝ.
  • scaledHermite: He_n(x/s), as hermiteReal n composed with X ↦ s⁻¹ • X.

Main results

  • ouGen_hermite: ouGen 1 (√2) (He_n) = -n • He_n.
  • ouGen_scaledHermite, eval_ouGen_scaledHermite: if 2κs² = σ² and s ≠ 0, then L He_n(x/s) = -nκ · He_n(x/s), as polynomials and pointwise.
  • ouGen_derivative, ouGen_X_mul: the commutators of ouGen with differentiation and with multiplication by X.
  • gaussianNoFlux_ou: at 2κs² = σ², σ²/2 · π'(x) = -(κx) · π(x) for π(x) = exp(-x²/(2s²)).
  • twoMode_rate_ge_slowest: for l₁ ≤ l₂ and positive weights, the effective decay rate of a two-exponential mixture is at least l₁.
  • swirl_isotropy: a symmetric 2×2 solution Σ of AΣ + ΣAᵀ = I for the swirl matrix A = [[1, θ], [-θ, 1]] equals I/2.

References

  • S. Bagaria, Notes on Fixed Income Derivative Pricing [BagariaFIDP], ch. 14 ("the chapter" throughout; eq./Calc/Ex. numbers are as there); the estimation bias is from its ch. 20.

Tags

Ornstein–Uhlenbeck process, Hermite polynomials, generator eigenfunctions, spectral decomposition, mean reversion, Vasicek model, MSC 60J60, MSC 91G30, JEL E43

Import neighbourhood

Above: what it imports. Below: what imports it.

Declarations 20

defMathFin.OUSpectral.ouGensource
ℝ → ℝ → Polynomial ℝ → Polynomial ℝ

The OU generator as a map on real polynomials (Calc 14.4's operator): L p = -(κ • X) * p.derivative + (σ²/2) • p.derivative.derivative — drift term -κx·p' plus diffusion term (σ²/2)·p''. Polynomial algebra only: on Polynomial ℝ this map is triangular degree by degree (the drift preserves degree, the diffusion lowers it by two; not stated as a lemma here) — which is why the chapter's polynomial moment ladder (not formalized here) sees its diagonal eigenvalues before any eigenvectors exist.

theoremMathFin.OUSpectral.ouGen_subsource
∀ (κ σ : ℝ) (p q : Polynomial ℝ), ouGen κ σ (p - q) = ouGen κ σ p - ouGen κ σ q

ouGen preserves subtraction (used by the eigeninduction: He_{n+1} = X·He_n - He_n').

used by 1: ouGen_hermite
theoremMathFin.OUSpectral.ouGen_derivativesource
∀ (κ σ : ℝ) (p : Polynomial ℝ), ouGen κ σ (Polynomial.derivative p) = Polynomial.derivative (ouGen κ σ p) + κ • Polynomial.derivative p

Commutator with the derivative. L p' = (L p)' + κ • p': differentiating and generating commute up to the drift coefficient κ re-supplied to the derivative term.

used by 1: ouGen_hermite
theoremMathFin.OUSpectral.ouGen_X_mulsource
∀ (κ σ : ℝ) (p : Polynomial ℝ), ouGen κ σ (Polynomial.X * p) = Polynomial.X * ouGen κ σ p + σ ^ 2 • Polynomial.derivative p - κ • (Polynomial.X * p)

Commutator with multiplication by X. L (X p) = X * L p + σ² • p' - κ • (X p): multiplying by X and generating commute up to the creation term σ² • p' (the diffusion coefficient acting on one derivative) minus the drift acting on the new factor.

used by 1: ouGen_hermite
defMathFin.OUSpectral.hermiteRealsource
ℕ → Polynomial ℝ

The n-th probabilists' Hermite polynomial over ℝ: hermite n (native to ℤ[X], Hermite/Basic.lean) mapped through the integer cast. At a real point x its value is He_n(x).

theoremMathFin.OUSpectral.hermiteReal_zerosource
hermiteReal 0 = 1

He₀ = 1.

theoremMathFin.OUSpectral.hermiteReal_succsource
∀ (n : ℕ), hermiteReal (n + 1) = Polynomial.X * hermiteReal n - Polynomial.derivative (hermiteReal n)

The Hermite recursion transported to ℝ: He_{n+1} = X·He_n - He_n'.

used by 1: ouGen_hermite
theoremMathFin.OUSpectral.ouGen_hermitesource
∀ (n : ℕ), ouGen 1 (√2) (hermiteReal n) = -↑n • hermiteReal n

The Hermite eigenidentity (eq. 14.16's OU case / Calc 14.14 at κ = 1, s = 1). The unit-normalized OU generator ouGen 1 (Real.sqrt 2) = -X·d/dx + d²/dx² (stationary scale σ² = 2κ = 2) maps He_n to -n • He_n: the Hermite polynomials are eigenfunctions of the OU generator with eigenvalues -n — the eigenvalues the chapter's triangular moment ladder (not formalized here) finds on the diagonal, now with their eigenvectors. Induction on hermite_succ; the commutators supply the two terms and the induction closes because σ² = 2κ (here 2 = 2).

defMathFin.OUSpectral.scaledHermitesource
ℝ → ℕ → Polynomial ℝ

The scaled Hermite polynomial q_n(x) = He_n(x/s): hermiteReal n composed with the scaling X ↦ s⁻¹ • X.

theoremMathFin.OUSpectral.scaledHermite_evalsource
∀ (n : ℕ) (x s : ℝ), Polynomial.eval x (scaledHermite s n) = Polynomial.eval (x / s) (hermiteReal n)

q_n(x) = He_n(x/s), pointwise.

theoremMathFin.OUSpectral.ouGen_sqrt2source
∀ (f : Polynomial ℝ), ouGen 1 (√2) f = -(Polynomial.X * Polynomial.derivative f) + Polynomial.derivative (Polynomial.derivative f)

The unit generator spelled out: at κ = 1, σ² = 2 the OU generator is the operator p ↦ -(X * p') + p'' — the classical Hermite ODE operator.

used by 1: ouGen_comp_smulX
theoremMathFin.OUSpectral.ouGen_comp_smulXsource
∀ (κ σ s : ℝ), s ≠ 0 → 2 * κ * s ^ 2 = σ ^ 2 → ∀ (f : Polynomial ℝ), ouGen κ σ (f.comp (s⁻¹ • Polynomial.X)) = κ • (ouGen 1 (√2) f).comp (s⁻¹ • Polynomial.X)

The scaling conjugation (the chain rule for x ↦ x/s). Composing with the scaling X ↦ s⁻¹ • X conjugates the general generator into κ times the unit one: the drift coefficient survives, and the diffusion coefficient σ²/2 divided by the s² that the two chain-rule factors contribute is exactly κ (this is where the stationary-scale identity 2κs² = σ² enters).

theoremMathFin.OUSpectral.ouGen_scaledHermitesource
∀ {κ σ s : ℝ}, s ≠ 0 → 2 * κ * s ^ 2 = σ ^ 2 → ∀ (n : ℕ), ouGen κ σ (scaledHermite s n) = (-↑n * κ) • scaledHermite s n

The scaled eigenidentity, polynomial level (Calc 14.14 / Pearson-table OU row). At the stationary scale s² = σ²/2κ, the generator maps the scaled Hermite polynomial q_n = He_n(x/s) to -(nκ) • q_n. The eigenvalue is -nκ — the OU row of the eigenvalue table, and the diagonal of the chapter's moment ladder (not formalized here).

theoremMathFin.OUSpectral.eval_ouGen_scaledHermitesource
∀ {κ σ s : ℝ}, s ≠ 0 → 2 * κ * s ^ 2 = σ ^ 2 → ∀ (n : ℕ) (x : ℝ), Polynomial.eval x (ouGen κ σ (scaledHermite s n)) = -↑n * κ * Polynomial.eval x (scaledHermite s n)

The scaled eigenidentity, eval level. For q_n(x) = He_n(x/s): eval x (L q_n) = -(nκ) · eval x q_n at every point x.

theoremMathFin.OUSpectral.hermiteReal_twosource
hermiteReal 2 = Polynomial.X * Polynomial.X - 1

He₂ = X² - 1 over ℝ.

theoremMathFin.OUSpectral.eval_ouGen_scaledHermite_twosource
∀ {κ σ s : ℝ}, s ≠ 0 → 2 * κ * s ^ 2 = σ ^ 2 → ∀ (x : ℝ), Polynomial.eval x (ouGen κ σ (scaledHermite s 2)) = -2 * κ * ((x / s) ^ 2 - 1)

The n = 2 mechanism of Calc 14.14. With f = (x/s)² - 1 (the evaluated He_2(x/s)), the generator output evaluates to -(2κ) · f — the drift term preserves the degree (the chapter's text says it "lowers" it, a slip), the diffusion term supplies exactly the constant that closes the polynomial back on itself, and the arithmetic uses σ²/s² = 2κ (via the stationary-scale hypothesis).

theoremMathFin.OUSpectral.gaussianScore_ousource
∀ (s x : ℝ), deriv (fun y => Real.exp (-(y ^ 2 / (2 * s ^ 2)))) x = -(x / s ^ 2) * Real.exp (-(x ^ 2 / (2 * s ^ 2)))

The Gaussian score (Calc 14.13's derivative, eval level). The unnormalized Gaussian density π(x) = exp(-x²/(2s²)) satisfies π'(x) = -(x/s²)·π(x): the log-density is -(x/s)²/2, whose gradient -(x/s²) is the score. deriv_exp + the chain rule. (That π is the OU stationary density at s² = σ²/2κ is not proved here.)

theoremMathFin.OUSpectral.gaussianNoFlux_ousource
∀ {κ σ s : ℝ}, s ≠ 0 → 2 * κ * s ^ 2 = σ ^ 2 → ∀ (x : ℝ), σ ^ 2 / 2 * deriv (fun y => Real.exp (-(y ^ 2 / (2 * s ^ 2)))) x = -(κ * x) * Real.exp (-(x ^ 2 / (2 * s ^ 2)))

The no-flux condition (Calc 14.13, stationary Gaussian instance). At the stationary scale s² = σ²/2κ, the drift flux -κx·π balances the diffusion flux (σ²/2)·π': the condition μπ = ½(σ²π)' that yields the divergence form (14.19) and hence the generator's symmetry (the symmetry itself is not proved here).

theoremMathFin.OUSpectral.twoMode_rate_ge_slowestsource
∀ {l₁ l₂ c₁ c₂ t : ℝ}, l₁ ≤ l₂ → 0 < c₁ → 0 < c₂ → l₁ ≤ (l₁ * c₁ * Real.exp (-(l₁ * t)) + l₂ * c₂ * Real.exp (-(l₂ * t))) / (c₁ * Real.exp (-(l₁ * t)) + c₂ * Real.exp (-(l₂ * t)))

The two-mode gap inequality. For rates l₁ ≤ l₂, positive mode weights 0 < c₁, c₂ and any t, the effective decay rate of the two-mode mixture — the weighted average of the rates, weighted by the surviving mode masses — is at least the slowest rate l₁. The gap l₂ - l₁ shows up as the excess carried by the fast mode; the chapter's one-exponential-fit warning is a consequence of this pointwise bound (not proved here).

theoremMathFin.OUSpectral.swirl_isotropysource
∀ (θ a b d : ℝ), !![1, θ; -θ, 1] * !![a, b; b, d] + !![a, b; b, d] * !![1, -θ; θ, 1] = 1 → !![a, b; b, d] = !![1 / 2, 0; 0, 1 / 2]

The swirl's stationary covariance is isotropic. Any symmetric Σ solving the stationary-covariance equation AΣ + ΣAᵀ = I for the swirl matrix A = [[1, θ], [-θ, 1]] is ½I: the solution does not depend on the rotation θ, so the snapshot carries no trace of the circulation. In the chapter's argument (Ex. 14.2) this is why a stationary snapshot alone cannot detect that the drift is non-reversible for θ ≠ 0 — that non-reversibility conclusion itself is not formalized here.