Positive-definite functions sit at a crossroads of harmonic analysis, probability, and machine learning. A function is positive-definite if, for every finite family of points and complex coefficients , the Hermitian quadratic form is real and nonnegative. This single algebraic condition is exactly what makes realizable as: the covariance kernel of a stationary stochastic process; the characteristic function of a random variable (up to normalization); a valid Mercer/RBF kernel in machine learning; or a valid random-features/spectral density in random-feature kernel approximation methods.
Bochner's theorem (1932) is the structural reason all of these examples work: it says positive-definiteness is not merely a necessary condition for such a representation, but exactly characterizes it. A continuous, normalized () function is positive-definite if and only if it is the Fourier–Stieltjes transform of some probability measure on — i.e. is the characteristic function of a random variable. This mission asks for a machine-checked proof of that theorem, together with its most useful corollary: the case where is additionally Lebesgue-integrable, so that has an explicit continuous density given directly by the ordinary Fourier transform of .
Fix IsPositiveDefinite f as above, for (not restricted to real-valued kernels — the standard, fully general statement). A positive-definite function is automatically Hermitian-symmetric, (IsPositiveDefinite.conj_neg), which is exactly what makes a representation by a genuine (positive) probability measure possible, rather than a signed or complex one. The theorem works with f continuous and normalized. No further hypothesis (in particular, no integrability of f) is assumed for the general representation theorem: the representing measure need not be absolutely continuous (e.g. for a periodic , is a discrete measure supported on the harmonics of the period — this is Herglotz's 1911 theorem, the periodic special case). Under the extra hypothesis that f is Lebesgue-integrable, the representing measure becomes absolutely continuous with a continuous density: this density is fourierTransform f, the (real part of the) Fourier transform of f — automatically real-valued, again by Hermitian symmetry — and Fourier inversion recovers f from it.
The central representation theorem: no integrability hypothesis on , so may be any probability measure, not necessarily a density.
L¹ (density) caseThe special case where the representing measure of the goal theorem is absolutely continuous with an explicit density — the form most directly usable in applications. Provable independently of the general goal theorem via classical Fourier-inversion machinery, so it is a natural, self-contained first target.
Bochner's theorem is one of the load-bearing structural results of 20th-century harmonic analysis: it underlies Bochner–Minlos-type theorems for random fields, the entire theory of stationary Gaussian processes, kernel methods in statistics and machine learning, and (via its periodic specialization, Herglotz's theorem) the spectral theory of stationary time series. Formalizing it gives the platform a reusable, general-purpose characterization of positive-definite functions that any future mission on kernel methods, random features, or characteristic functions can build on directly.
The general representation theorem is the harder target: the standard proof (see the Wikipedia article linked below) constructs, from f, a strongly continuous unitary representation of on a Hilbert space via a GNS-type construction, then invokes Stone's theorem and the spectral theorem to extract the representing measure — a substantial functional-analytic argument, since f need not be integrable and need not have a density. The L¹ milestone is comparatively more tractable: it can be attacked directly via Mathlib's existing Fourier-transform and Fourier-inversion machinery for integrable functions, plus the elementary fact (already available for reuse: IsPositiveDefinite.conj_neg) that a positive-definite function is Hermitian-symmetric.
IsPositiveDefinite is formalized exactly as the finite Hermitian-form condition above, over Fin n → ℝ point families and Fin n → ℂ coefficients, matching the standard convention in the literature, with f : ℝ → ℂ — the fully general, complex-valued statement, not restricted to real-valued kernels. fourierTransform f ξ is defined as the real part of ∫ Complex.exp(-i2πξ x) * f(x) dx; this is provably the exact (not merely real-part-of) Fourier transform once f is positive-definite, since Hermitian symmetry forces the integral to be real already.
import Mathlib
import Definitions.Def_PositiveDefinite
namespace Bochner
open MeasureTheory
/-- **Bochner's theorem** (Bochner–Herglotz representation theorem). If `f : ℝ → ℂ` is
continuous, positive-definite, and normalized (`f 0 = 1`), then `f` is the Fourier–Stieltjes
transform of a probability measure `ν` on `ℝ`: there exists a probability measure `ν` such that
`f x = ∫ e^{i2πξx} dν(ξ)` for every `x`. No integrability hypothesis on `f` itself is needed
here — this is the general representation theorem, of which the `L¹` case (where `f` is
additionally Lebesgue-integrable, so that `ν` has a continuous density given directly by the
Fourier transform of `f`) is a corollary. -/
theorem bochner_theorem
(f : ℝ → ℂ) (hf_cont : Continuous f) (hf_pd : IsPositiveDefinite f) (hf0 : f 0 = 1) :
∃ ν : Measure ℝ, IsProbabilityMeasure ν ∧
∀ x : ℝ, f x = ∫ ξ, Complex.exp (2 * Real.pi * Complex.I * ξ * x) ∂ν := by
sorry
end Bochner
Bochner's theorem (Bochner–Herglotz representation theorem).
Let be continuous, positive-definite (IsPositiveDefinite), and normalized (). The theorem asserts that is the Fourier–Stieltjes transform of a probability measure on : there exists a probability measure such that
No integrability hypothesis on is assumed: this is the fully general representation theorem, of which the case (Bochner.bochner_L1_case, where is additionally Lebesgue-integrable and has a continuous density) is a corollary.
Formalization Note is complex-valued (not restricted to real-valued kernels): this is the standard, fully general statement of Bochner's theorem. A positive-definite is automatically Hermitian-symmetric (, IsPositiveDefinite.conj_neg), which is what makes the representation with a genuine probability measure (rather than a signed or complex one) possible.
No open leaves. Every sub-goal is proved or awaiting decomposition.