High-Dimensional Statistics XI: The Moore-Aronszajn TheoremTextbook
Motivation
Many statistical problems — nonparametric regression, density estimation, dimension reduction, testing — are naturally posed as optimization over a space of functions rather than a finite-dimensional parameter vector. Hilbert spaces provide the right generality: they carry an inner product and a norm, so notions of projection, orthogonality and least-squares fitting all make sense, exactly as in ordinary Euclidean space, even though the "vectors" are now functions. Reproducing kernel Hilbert spaces (RKHSs) are the particular class of function-valued Hilbert spaces that make this program computationally tractable: they are generated by a single bivariate kernel function, and every RKHS computation reduces to evaluating that kernel, never to manipulating an infinite-dimensional object directly (the "kernel trick"). Wainwright's High-Dimensional Statistics (2019), Chapter 12, develops the foundational correspondence between kernels and Hilbert spaces that makes this possible, and this mission formalizes its two central theorems.
Setting
A Hilbert space is a complete inner product space (Definitions 12.1–12.2); this mission
uses Mathlib's own NormedAddCommGroup/InnerProductSpace ℝ/CompleteSpace typeclasses for
this notion throughout. A linear functional is bounded if
for some and all ; the Riesz representation theorem
(Theorem 12.5) says every such functional is for a unique .
A bivariate function is a positive semidefinite (PSD) kernel (Definition 12.6) if it is symmetric and every finite Gram matrix is positive semidefinite — the natural generalization of a PSD matrix to a (possibly infinite) index set , with no topological structure on required. A reproducing kernel Hilbert space (RKHS) for a kernel is a Hilbert space of functions on such that, for every , the function belongs to and
— the reproducing property. Equivalently (Definition 12.12), is an RKHS exactly when every evaluation functional is bounded on .
Formalization targets
Goal (Theorem 12.11, the Moore-Aronszajn theorem)
Given any PSD kernel function on any set , there is a Hilbert space (embedded into functions on ) in which satisfies the reproducing property (12.3) — and this Hilbert space is unique: any two Hilbert spaces with this property for the same are linearly isometric via an isometry intertwining their embeddings into functions on .
Milestones
- Theorem 12.5 (Riesz representation). Every bounded linear functional on a Hilbert space has a unique representer : for all . Used inside the proof of Theorem 12.13 to produce the representer of each evaluation functional.
- Theorem 12.13 (the converse correspondence). Given any Hilbert space of functions on in which every evaluation functional is bounded, there is a unique PSD kernel satisfying the reproducing property for — completing the Moore-Aronszajn equivalence between PSD kernels and Hilbert spaces with bounded evaluation functionals.
- Theorem 12.20 (Mercer's theorem). Under compactness of , continuity of , and the Hilbert-Schmidt condition , the integral operator has an orthonormal eigenbasis of with non-negative eigenvalues , and , with the series converging absolutely and uniformly.
Significance
Theorem 12.11 is the theorem that makes the entire RKHS apparatus well-posed: every time a statistician writes down a kernel — linear, polynomial, Gaussian — Theorem 12.11 guarantees that a canonical Hilbert space of functions exists in which that kernel reproduces, so that optimizing over "the RKHS associated with " is a well-defined problem, not merely a suggestive shorthand. Theorem 12.13's converse shows the correspondence is exact — the class of kernel-generated Hilbert spaces is exactly the class of function spaces with bounded evaluation, the class relevant to any statistical application that samples a function at finitely many points. Together, these two results are the foundation the book's own later chapters build directly on: Chapter 13's nonparametric least-squares oracle inequality, and Chapter 14's kernel density estimation, both work by optimizing over an RKHS and are only well-posed because of this correspondence. Mercer's theorem, in turn, is what connects the RKHS viewpoint back to the earlier feature-map viewpoint of Chapter 12.2.2 (Eq. 12.2): the eigenfunctions give an explicit feature map into realizing , and its expansion is what later underlies the book's discussion of kernel PCA and of RKHS balls as ellipsoids in -coordinates.
Difficulty
The formalization difficulty is concentrated in getting the type of the existence-and-
uniqueness claim right, not in any single hypothesis. A Hilbert space is not naturally a
subtype of a fixed ambient space in Lean, so "the Hilbert space " of Theorem 12.11 is
formalized as an abstract type together with its own NormedAddCommGroup/InnerProductSpace ℝ/CompleteSpace instances, connected to "a space of functions on " via an injective
linear embedding into — and uniqueness must then be stated as an isometric
equivalence between any two witnessing Hilbert spaces that respects this embedding, the
faithful rendering of the book's own proof, which literally shows two candidate Hilbert spaces
are equal as sets of functions. A second subtlety is keeping Theorem 12.11's hypotheses
(a bare PSD kernel, no topology on ) cleanly separated from Mercer's theorem's additional
compactness, continuity and measure-theoretic apparatus — the two theorems are frequently
conflated informally, but the book is explicit that Theorem 12.11 needs none of Mercer's
structure.
Formalization scope
is an unconstrained Type* for Theorem 12.5, 12.11 and 12.13 — no topology, matching the
book's own generality. Mercer's theorem (Theorem 12.20) additionally requires [MetricSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] and a finite measure P, matching its
own compactness/continuity/measure-theoretic hypotheses exactly, never applied outside that
scope. The integral operator of Eq. (12.11a) is presented as an abstract linear map on
Lp ℝ 2 P tied to the defining integral formula via an explicit hypothesis, rather than
constructed as a def, since constructing it as a genuine well-defined operator (needing
integrability and a.e.-measurability arguments) is proof content, not definitional content,
and this mission's definitions file is sorry-free by convention. Mercer's orthonormal-basis
index type is existentially quantified over a countable ι (∃ (ι : Type) (_ : Countable ι), ...) rather than fixed to ℕ, since L²(X;P) can be finite-dimensional for finite X
(Example 12.18/12.21), where no infinite orthonormal basis exists; the uniform-convergence
conjunct is correspondingly quantified over every bijection e : ℕ ≃ ι (vacuous when ι is
finite, a genuine order-independent claim when ι is countably infinite). A trivializing formalization
of this chapter would state only existence in Theorem 12.11 and drop uniqueness (explicitly
warned against by this chapter's own brief), or state Mercer's convergence merely pointwise
or in rather than absolutely and uniformly; this mission avoids both. Out of scope: the
constructive proof detail of Theorem 12.11 (the explicit span-and-complete construction is proof
content, not part of the statement), the chapter's worked kernel examples (linear, polynomial,
Gaussian kernels, Examples 12.7–12.9), and the further consequences of Mercer's theorem
(Corollary 12.26 on RKHS-ball ellipsoids, the feature-map connection of Eq. 12.14) — all natural
follow-on work for a future mission on kernel-based nonparametric regression (Chapter 13,
mission 13-nonparametric-ls), which restates whatever RKHS objects it needs locally rather
than importing this mission's draft, per this book's series-wide convention.
Selected references
- Wainwright, M. J. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge University Press, 2019. Chapter 12. DOI: 10.1017/9781108627771.
- Aronszajn, N. "Theory of reproducing kernels." Transactions of the American Mathematical Society, 68(3), 1950, 337–404.
- Mercer, J. "Functions of positive and negative type, and their connection with the theory of integral equations." Philosophical Transactions of the Royal Society A, 209, 1909, 415–446.