This chapter describes how the library encodes the spectral theory of bounded self-adjoint
operators on a complex Hilbert space, up to the spectral theorem. It corresponds to
Section 10.2
of the blueprint, which follows the presentation of Hall's
Quantum Theory for Mathematicians. The spectral
theorem for unbounded operators and Stone's theorem, in Sections 10.3 and 10.4 of the blueprint,
build on it.
2.1. Overview🔗
As you will recall, a Hermitian matrix A has real eigenvalues \lambda_k and mutually
orthogonal eigenprojections P_k summing to \mathbf{1}, so that
A = \sum_k \lambda_k P_k, and a function of A is f(A) = \sum_k f(\lambda_k) P_k. The spectral theorem for a bounded
self-adjoint operator A on a Hilbert space H says the same with the sum over eigenvalues
replaced by an integral over the spectrum \sigma(A) against a projection-valued measure
\mu^A:
A = \int_{\sigma(A)} \lambda \, d\mu^A(\lambda),
\qquad f(A) = \int_{\sigma(A)} f \, d\mu^A.
For a unit vector \psi, \langle \psi, \mu^A(E)\psi \rangle is the probability that a
measurement of A in the state \psi gives a value in E. The integral also covers
continuous spectrum: the multiplication operator (M\psi)(x) = x\,\psi(x) on L^2([0, 1]) has
spectrum [0, 1] and no eigenvalues.
The library proves the theorem as the blueprint does, in stages:
-
Spectrum and resolvent. The spectrum of a bounded operator is compact, and nonempty when
H \neq 0; the resolvent set is open, and the resolvent is a power series near each of its
points; the spectrum of a self-adjoint operator is real.
-
The continuous functional calculus. For self-adjoint A, f \mapsto f(A) on the continuous
real functions on \sigma(A) is the unique bounded linear map that extends
p \mapsto p(A) on polynomials. It is multiplicative and isometric, f(A) is self-adjoint,
non-negative when f \ge 0, and \sigma(f(A)) = f(\sigma(A)).
-
The associated measures. By the Riesz–Markov–Kakutani theorem, for each \psi there is a
unique finite positive measure \mu_\psi on \sigma(A) with
\langle \psi, f(A)\psi \rangle = \int f \, d\mu_\psi for continuous f, of total mass
\|\psi\|^2.
-
Forms. A bounded quadratic form Q is \psi \mapsto \langle \psi, B\psi \rangle for a
unique bounded operator B. This is how operators are constructed in the rest of the section.
-
The Borel functional calculus. For a bounded Borel function f on \sigma(A),
Q_f(\psi) = \int f \, d\mu_\psi is a bounded quadratic form, and f(A) is its operator. The
map f \mapsto f(A) is linear and multiplicative, and f(A) is self-adjoint for real f.
The boundedness of Q_f and the multiplicativity are extended from continuous to Borel
functions by a monotone-class argument.
-
Projection-valued measures and their integrals. A projection-valued measure \mu gives a
measure \mu_\psi(E) = \langle \psi, \mu(E)\psi \rangle for each vector and an operator
\int f \, d\mu for each bounded measurable f, with
\langle \psi, (\int f \, d\mu)\psi \rangle = \int f \, d\mu_\psi. The integral is linear and
multiplicative, bounded by \sup |f|, and sends \bar f to the adjoint.
-
The spectral theorem. The projections \mu^A(E) = 1_E(A) form a projection-valued measure on
\sigma(A) that integrates the identity function to A, and it is the only one that does.
For bounded Borel f, f(A) = \int f \, d\mu^A.
Every statement of the section is proved in Lean. The standard results the blueprint states
without proof, such as the Heine–Borel, Riesz representation, Stone–Weierstrass and bounded
convergence theorems, are Mathlib theorems or short derivations from them. The declarations are in
the namespace Hilbert6.Spectral, written without the prefix below.
2.2. Design🔗
The conventions inherited from Mathlib, among them realCalculus as Mathlib's cfcHom, are
collected in the conventions chapter under Implementation choices.
The blueprint is the specification. Where the library departs from the blueprint's route, this
section says so; where the blueprint records the departure in a formalization note or a
convention, the section links to it.
2.2.1. Operators, adjoints and the Hilbert space🔗
A bounded operator is an element of H →L[ℂ] H, Mathlib's continuous linear maps, which is the
blueprint's \mathcal{B}(H). Mathlib supplies the operator norm, the adjoint
(ContinuousLinearMap.adjoint), self-adjointness (IsSelfAdjoint), orthogonal projections
(IsStarProjection), and a C*-algebra structure on H →L[ℂ] H. Its inner product is
conjugate-linear in the first argument, the physics convention that the blueprint fixes in
def:inner-product.
The blueprint takes H separable and nonzero, but only for convenience. No declaration assumes
separability; the convergence arguments use only completeness. Nonzero H appears as a
Nontrivial H hypothesis on just the statements that use it, such as the nonemptiness of the
spectrum
(conv:nonzero-hilbert-space).
2.2.2. Spectrum and resolvent are Mathlib's🔗
The spectrum and the resolvent set are Mathlib's spectrum ℂ A and resolventSet ℂ A. Mathlib
defines them through \lambda\mathbf{1} - A, the blueprint through A - \lambda\mathbf{1}; the
two give the same set, which mem_resolventSet_iff_isUnit_sub_smul records. Mathlib's
resolvent A λ is (\lambda\mathbf{1} - A)^{-1}, the negative of the blueprint's resolvent.
Once \sigma(A) is known to be real for self-adjoint A (spectrum_subset_real), every later
statement uses Mathlib's real spectrum spectrum ℝ A, a compact subset of \mathbb{R}, instead
of the blueprint's subset of \mathbb{C}. It is the type on which Mathlib's functional calculus
is indexed, and it carries the Borel σ-algebra of its topology as a subspace of \mathbb{R}.
Functions on the spectrum are functions on this subtype, and the identity function \lambda is
fun l => ((l : ℝ) : ℂ), which Lean prints as fun l => ↑↑l.
2.2.3. The continuous calculus is Mathlib's🔗
The blueprint builds f \mapsto f(A) by hand: polynomials first, then the extension to
continuous functions by density (the Stone–Weierstrass theorem) and the bounded linear
transformation theorem. Mathlib already has the continuous functional calculus for self-adjoint
elements of a C*-algebra, cfcHom, and the library uses it: realCalculus hA is cfcHom hA.
Its type, a *-algebra homomorphism C(spectrum ℝ A, ℝ) →⋆ₐ[ℝ] (H →L[ℂ] H), records
multiplicativity and compatibility with the adjoint, and Mathlib proves the norm identity and
spectral mapping for it. What the library adds is the blueprint's characterisation: realCalculus
is the unique bounded linear map that sends each polynomial to p(A), proved from the density
of the polynomials (formalization note of
prpstn:hall-8.3).
As in the blueprint, the continuous calculus is for real functions; the Borel calculus below takes
complex ones.
2.2.4. Measures from the Riesz–Markov–Kakutani theorem🔗
The measure \mu_\psi is Mathlib's Riesz–Markov–Kakutani measure RealRMK.rieszMeasure of the
positive functional f \mapsto \langle \psi, f(A)\psi \rangle. Mathlib states that theorem for
compactly supported functions; on the compact \sigma(A) these are all continuous functions.
Uniqueness of \mu_\psi is Mathlib's uniqueness of the representing measure, so the
associated-measure theorem is fully proved.
Two constructions in the section produce operators: the Borel calculus f(A) and the integral
\int f \, d\mu. Both go through the same lemma
(prpstn:hall-a.63):
a bounded quadratic form Q determines a unique bounded B with
Q(\psi) = \langle \psi, B\psi \rangle. The form in both cases is
Q_f(\psi) = \int f \, d\mu_\psi, so the hard work is to show that it is a bounded quadratic
form.
Sesquilinear forms are Mathlib's bundled semilinear maps: H →ₗ⋆[ℂ] H →ₗ[ℂ] ℂ, and, for bounded
ones, the continuous version H →L⋆[ℂ] H →L[ℂ] ℂ, whose continuity is the bound
|L(\varphi, \psi)| \le C\|\varphi\|\|\psi\|. A quadratic form is a property of a plain function
Q : H → ℂ (IsQuadraticForm, IsBoundedQuadraticForm): Q_f arrives as a function, and
these properties are what must be proved of it. The operator IsBoundedQuadraticForm.toOperator
comes from the polarization of Q through Mathlib's Riesz representation of bounded sesquilinear
forms.
The operators borelCalculus hA f and μ.integral f are chosen from the existence-and-uniqueness
theorems, so their properties are theorems and not definitional: linearity is borelCalculus_add,
integral_add and their scalar versions. Both are defined on all functions, with the value 0
on functions that are not bounded and measurable, so every statement takes the hypothesis
f ∈ BddMeasurable _ explicitly.
2.2.6. Bounded Borel functions and the monotone-class bootstrap🔗
The bounded measurable functions on X form the complex subspace BddMeasurable X, a Mathlib
Submodule; membership is the pair "measurable, and bounded by a constant". It is the one spelling
of "bounded Borel function" in the section.
Three results extend a property from continuous to bounded Borel functions: that Q_f is a bounded
quadratic form, that the Borel calculus is multiplicative, and that two spectral measures of
A integrate every bounded Borel function to the same operator. All three use one lemma,
IsBorelGenerating.eq_bddMeasurable: a class of bounded measurable functions that is a subspace,
contains the continuous real functions, and is closed under uniformly bounded pointwise limits, is
all of BddMeasurable X. The proof follows the blueprint. The class \mathcal{L}_0 (L0) of
sets whose indicator is a bounded pointwise limit of continuous functions contains the closed sets
(by bump functions) and is an algebra of sets, and the monotone class theorem, proved in the
library, extends it to all Borel sets. Mathlib's dominated convergence theorem gives the bounded
convergence theorem, which is what passes the limits through \int \cdot \, d\mu_\psi. Each
application then defines its class and checks the three conditions: FClass for boundedness,
F1Class and F2Class for multiplicativity.
The lemma needs a metric space with its Borel σ-algebra but not compactness. L0 omits the
blueprint's requirement that the set be measurable, since that follows
(measurableSet_of_mem_L0).
2.2.7. Projection-valued measures🔗
ProjectionValuedMeasure X H is a structure, with the blueprint's axioms as fields
(def:projection-valued-measure).
As for Mathlib's vector measures, the underlying map is defined on all subsets of X, and is
0 on non-measurable ones, so applying \mu to a set needs no measurability proof. Countable
additivity is strong: \sum_j \mu(E_j)v converges to \mu(\bigcup_j E_j)v for each vector v,
stated with Mathlib's unconditional HasSum, which for orthogonal vectors is the same as
convergence of the partial sums. \mu(\emptyset) = 0 is not a field, since it follows from
countable additivity. The blueprint's equivalence of projection-valued measures is equality.
2.2.8. Two routes to f(A) and uniqueness🔗
The section has two Borel calculi. borelCalculus hA f is built from Q_f with the measures
\mu_\psi of the Riesz–Markov–Kakutani theorem. The spectral measure is then
\mu^A(E) = 1_E(A), spectralMeasure hA, and functionalCalculus hA f is
\int f \, d\mu^A. They agree (borelCalculus_eq_integral), so f(A) is unambiguous.
The spectral theorem is stated with ∃! over projection-valued measures on spectrum ℝ A.
Uniqueness follows the blueprint: two projection-valued measures that integrate \lambda to A
agree on polynomials, then on continuous functions by the complex Stone–Weierstrass theorem, then
on bounded Borel functions by the bootstrap, and so on indicator functions, which give the
projections themselves.
2.3. Main definitions and theorems🔗
Definitions are shown with their docstrings, which give the mathematics and the blueprint entry;
theorems with their statements, as Lean prints them, and a line or two of explanation. Each
subsection opens with the blueprint entries it covers. In the printed statements, inner ℂ x y is
the inner product \langle x, y \rangle, hA : IsSelfAdjoint A is the hypothesis that A is
self-adjoint, ↑(spectrum ℝ A) is the real spectrum as a type, and fun l => ↑↑l is the function
\lambda on it. For the declarations not shown here, see the
API documentation
and the files listed at the end of the chapter. The subsections follow the order of the proof; the
blueprint introduces projection-valued measures before the continuous calculus.
2.3.1. Spectrum and resolvent🔗
Blueprint: def:bounded-operator-resolvent-and-spectrum, prpstn:hall-7.5,
prpstn:resolvent-holomorphy-and-neumann-series, prpstn:hall-7.7,
lmm:spectrum-is-compact-metric-measurable, def:spectral-radius,
thrm:gelfand-formula.
The spectrum and the resolvent set are Mathlib's. The library identifies them with the blueprint's,
in its sign convention:
open Hilbert6 Spectral in
Hilbert6.Spectral.mem_resolventSet_iff_isUnit_sub_smul.{u_1} {H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H] (A : H →L[ℂ] H) (lam : ℂ) : lam ∈ resolventSet ℂ A ↔ IsUnit (A - lam • 1)#check mem_resolventSet_iff_isUnit_sub_smul
Hilbert6.Spectral.mem_resolventSet_iff_isUnit_sub_smul.{u_1} {H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H] (A : H →L[ℂ] H) (lam : ℂ) : lam ∈ resolventSet ℂ A ↔ IsUnit (A - lam • 1)
The spectrum is compact
(isCompact_spectrum) and, for H \neq 0,
nonempty (spectrum_nonempty); the resolvent set
is open, and near each of its points the resolvent is a norm-convergent power series
(isOpen_resolventSet,
exists_hasSum_resolvent). The spectral
radius and Gelfand's formula are Mathlib's spectralRadius and
spectrum.pow_nnnorm_pow_one_div_tendsto_nhds_spectralRadius.
For a self-adjoint operator the spectrum is real:
open Hilbert6 Spectral in
Hilbert6.Spectral.spectrum_subset_real.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : spectrum ℂ A ⊆ {z | z.im = 0}#check spectrum_subset_real
Hilbert6.Spectral.spectrum_subset_real.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : spectrum ℂ A ⊆ {z | z.im = 0}
The proof takes this from Mathlib (IsSelfAdjoint.spectrumRestricts). The blueprint's estimate
behind it, \|(A - (a + ib)\mathbf{1})\psi\|^2 \ge b^2\|\psi\|^2 for real a and b, is
sq_norm_sub_smul_apply_le.
2.3.2. The continuous functional calculus🔗
Blueprint: prpstn:hall-8.3, prpstn:hall-8.4, and its parts
prpstn:cfc-multiplicative to prpstn:cfc-spectral-mapping.
🔗defHilbert6.Spectral.realCalculus.{u_1} {H : Type u_1}
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
{A : H →L[ℂ] H} (hA : IsSelfAdjoint A) :
C(↑(spectrum ℝ A), ℝ) →⋆ₐ[ℝ] H →L[ℂ] H Hilbert6.Spectral.realCalculus.{u_1}
{H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H}
(hA : IsSelfAdjoint A) :
C(↑(spectrum ℝ A), ℝ) →⋆ₐ[ℝ] H →L[ℂ] H
The real continuous functional calculus f ↦ f(A) of a self-adjoint bounded operator A.
For a continuous real function f on the spectrum σ(A), f(A) is the norm limit of p_n(A) for any
polynomials p_n converging to f uniformly on σ(A). In finite dimensions, where A has an
orthonormal eigenbasis, f(A) multiplies each eigenvector by f of its eigenvalue. The map is
linear, sends polynomials to the evident operators (realCalculus_polyOn), and is the unique
bounded linear map that does so (existsUnique_realCalculus). It is multiplicative, f(A) is
self-adjoint, f ≥ 0 gives a non-negative operator, ‖f(A)‖ = sup |f| on σ(A), and
σ(f(A)) = f(σ(A)) (realCalculus_properties).
Implementation note: the definition is Mathlib's continuous functional calculus cfcHom at the
hypothesis hA, available because Mathlib makes H →L[ℂ] H a C*-algebra; it is not
extracted from existsUnique_realCalculus. Its type, a StarAlgHom over ℝ, records that
f ↦ f(A) is a *-algebra homomorphism and not only an ℝ-linear map, which is part of
prpstn:hall-8.4. σ(A) is Mathlib's real spectrum spectrum ℝ A.
Blueprint: the map f ↦ f(A) of prpstn:hall-8.3
The blueprint's characterisation, with polyOn A p the polynomial p restricted to
\sigma(A):
open Hilbert6 Spectral in
Hilbert6.Spectral.existsUnique_realCalculus.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) :
∃! T, ∀ (p : Polynomial ℝ), T (polyOn A p) = (Polynomial.aeval A) p#check existsUnique_realCalculus
Hilbert6.Spectral.existsUnique_realCalculus.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) :
∃! T, ∀ (p : Polynomial ℝ), T (polyOn A p) = (Polynomial.aeval A) p
Here T ranges over the bounded ℝ-linear maps C(spectrum ℝ A, ℝ) →L[ℝ] (H →L[ℂ] H), and
realCalculus_polyOn says that realCalculus is the one. The properties are separate theorems,
collected in realCalculus_properties; for
example, the norm identity \|f(A)\| = \sup_{\sigma(A)} |f|:
open Hilbert6 Spectral in
Hilbert6.Spectral.norm_realCalculus.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (f : C(↑(spectrum ℝ A), ℝ)) : ‖(realCalculus hA) f‖ = ‖f‖#check norm_realCalculus
Hilbert6.Spectral.norm_realCalculus.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (f : C(↑(spectrum ℝ A), ℝ)) : ‖(realCalculus hA) f‖ = ‖f‖
2.3.3. The associated measures🔗
Blueprint: thrm:riesz-representation, prpstn:associated-measures-self-adjoint,
lmm:associated-measures-are-finite.
🔗defHilbert6.Spectral.assocMeasure.{u_1} {H : Type u_1}
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
{A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (ψ : H) :
MeasureTheory.Measure ↑(spectrum ℝ A) Hilbert6.Spectral.assocMeasure.{u_1}
{H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H}
(hA : IsSelfAdjoint A) (ψ : H) :
MeasureTheory.Measure ↑(spectrum ℝ A)
The finite positive Borel measure μ_ψ on σ(A) with ⟨ψ, f(A)ψ⟩ = ∫ f dμ_ψ for continuous real f.
For a unit vector ψ, μ_ψ is the probability distribution of the outcomes of a measurement of A in
the state ψ: μ_ψ(E) is the probability of finding a value in E. Its total mass is ‖ψ‖²
(assocMeasure_univ), the integral identity is integral_assocMeasure, and μ_ψ is the only
finite measure with that identity (existsUnique_assocMeasure). It defines the quadratic form
Q_f(ψ) = ∫ f dμ_ψ of the Borel functional calculus (borelForm).
Implementation note: the measure is Mathlib's Riesz–Markov–Kakutani measure
RealRMK.rieszMeasure of assocFunctional hA ψ, not a choice from existsUnique_assocMeasure.
Blueprint: the measure μ_ψ of prpstn:associated-measures-self-adjoint
The associated-measure theorem, existence and uniqueness:
open Hilbert6 Spectral in
Hilbert6.Spectral.existsUnique_assocMeasure.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (ψ : H) :
∃! ν,
MeasureTheory.IsFiniteMeasure ν ∧
∀ (f : C(↑(spectrum ℝ A), ℝ)), inner ℂ ψ (((realCalculus hA) f) ψ) = ↑(∫ (l : ↑(spectrum ℝ A)), f l ∂ν)#check existsUnique_assocMeasure
Hilbert6.Spectral.existsUnique_assocMeasure.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (ψ : H) :
∃! ν,
MeasureTheory.IsFiniteMeasure ν ∧
∀ (f : C(↑(spectrum ℝ A), ℝ)), inner ℂ ψ (((realCalculus hA) f) ψ) = ↑(∫ (l : ↑(spectrum ℝ A)), f l ∂ν)
Here ν ranges over the measures on spectrum ℝ A; the integral is real, and ↑ embeds it in
\mathbb{C}. The total mass is
assocMeasure_univ,
\mu_\psi(\sigma(A)) = \|\psi\|^2, stated in Mathlib's extended non-negative reals, where
measures take their values. The Riesz–Markov–Kakutani theorem itself,
for a positive functional on the continuous functions on a compact metric space, is
existsUnique_measure_of_positive_linear.
2.3.4. Sesquilinear and quadratic forms🔗
Blueprint: def:bounded-sesquilinear-form, def:bounded-quadratic-form,
prpstn:hall-a.61, prpstn:hall-a.63.
The representation theorem for bounded quadratic forms:
open Hilbert6 Spectral in
Hilbert6.Spectral.existsUnique_operator_of_isBoundedQuadraticForm.{u_1} {H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H] [CompleteSpace H] {Q : H → ℂ} (hQ : IsBoundedQuadraticForm Q) :
∃! A, ∀ (ψ : H), Q ψ = inner ℂ ψ (A ψ)#check existsUnique_operator_of_isBoundedQuadraticForm
Hilbert6.Spectral.existsUnique_operator_of_isBoundedQuadraticForm.{u_1} {H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H] [CompleteSpace H] {Q : H → ℂ} (hQ : IsBoundedQuadraticForm Q) :
∃! A, ∀ (ψ : H), Q ψ = inner ℂ ψ (A ψ)
The operator is hQ.toOperator,
and it is self-adjoint when Q is real-valued (IsBoundedQuadraticForm.isSelfAdjoint_toOperator).
The polarization formula is
polarization. To apply the theorem to a candidate
Q_f, one proves the homogeneity Q_f(c\psi) = |c|^2 Q_f(\psi), the sesquilinearity of its
polarization and a bound |Q_f(\psi)| \le C\|\psi\|^2; for the Borel calculus these are the
propositions from
prpstn:F-homogeneous
to
prpstn:F-bounded.
2.3.5. Bounded Borel functions and the bootstrap🔗
Blueprint: thrm:bounded-convergence-theorem, def:L0-class,
thrm:monotone-class-theorem, lmm:hall-prblm-8.3.3a,
lmm:hall-prblm-8.3.3b, lmm:hall-prblm-8.3.3c.
🔗def
The complex vector space of bounded measurable complex-valued functions on a measurable space X.
A function f : X → ℂ belongs to it when f is measurable and |f(x)| ≤ C for some constant C and
every x ∈ X. On the spectrum of an operator, with its Borel σ-algebra, these are the bounded Borel
functions to which the Borel functional calculus applies: indicator functions 1_E of Borel sets E
(the spectral projections), step functions, and every bounded continuous function.
Implementation note: the class is a Submodule ℂ (X → ℂ), so membership packages the two
hypotheses Measurable f and ∃ C, ∀ x, ‖f x‖ ≤ C (mem_bddMeasurable), and closure under sums
and scalar multiples is part of the structure. It is the single spelling of "bounded Borel
function" in the spectral files.
Blueprint: the bounded Borel functions of def:hall-8.8 and thrm:operator-valued-integration
🔗structure
A sequence of functions f_n : α → ℂ is bounded by b uniformly in n and converges pointwise to g.
The hypotheses are |f_n(x)| ≤ b(x) for every n and every x, and f_n(x) → g(x) for every x. The
convergence is pointwise, not uniform: its rate may depend on the point. This is the hypothesis
of the bounded convergence theorem (tendsto_integral_of_boundedPointwiseLimit), which
extends the functional calculus from continuous to bounded Borel functions.
Implementation note: the bound b is usually a constant fun _ => M; it may vary so that the
same predicate covers the quadratic bound fun φ => C * ‖φ‖ ^ 2 for sequences of quadratic forms in
Hilbert6/Spectral/Forms.lean.
Blueprint: the hypotheses of thrm:bounded-convergence-theorem
Fields
norm_le : ∀ (n : ℕ) (x : α), ‖f n x‖ ≤ b x
The sequence is dominated by b, uniformly in the index.
tendsto : ∀ (x : α), Filter.Tendsto (fun n => f n x) Filter.atTop (nhds (g x))
The sequence converges to g pointwise.
🔗structure
A class 𝒞 of bounded measurable functions that is a subspace, contains the continuous real
functions, and is closed under bounded pointwise limits.
These are the hypotheses of the bootstrap from continuous to bounded Borel functions. On a metric
space with its Borel σ-algebra such a class contains the indicator of every Borel set
(IsBorelGenerating.indicator_mem) and is in fact all bounded measurable functions
(IsBorelGenerating.eq_bddMeasurable). This is how a property known for continuous f, such as
multiplicativity of the functional calculus, is extended to every bounded Borel f: one shows that
the functions with the property form such a class (isBorelGenerating_F1Class,
isBorelGenerating_F2Class).
Implementation note: the structure assumes only a topology and a σ-algebra on X; the metric and
Borel hypotheses are on the two theorems, which do not need compactness.
Blueprint: the hypotheses (1)–(3) of lmm:hall-prblm-8.3.3b
Fields
bddMeasurable : 𝒞 ⊆ ↑(BddMeasurable X)
Every member is bounded and measurable.
smul_add_mem : ∀ (α β : ℂ) (f g : X → ℂ), f ∈ 𝒞 → g ∈ 𝒞 → α • f + β • g ∈ 𝒞
continuous_mem : ∀ (f : C(X, ℝ)), (fun x => ↑(f x)) ∈ 𝒞
𝒞 contains the continuous real-valued functions.
tendsto_mem : ∀ (f : ℕ → X → ℂ) (g : X → ℂ) (M : ℝ), (∀ (n : ℕ), f n ∈ 𝒞) → (BoundedPointwiseLimit f g fun x => M) → g ∈ 𝒞
𝒞 is closed under uniformly bounded pointwise limits.
The conclusion of the bootstrap:
open Hilbert6 Spectral in
Hilbert6.Spectral.IsBorelGenerating.eq_bddMeasurable.{u_1} {X : Type u_1} [MetricSpace X] [MeasurableSpace X]
[BorelSpace X] {𝒞 : Set (X → ℂ)} (h𝒞 : IsBorelGenerating 𝒞) : 𝒞 = ↑(BddMeasurable X)#check IsBorelGenerating.eq_bddMeasurable
Hilbert6.Spectral.IsBorelGenerating.eq_bddMeasurable.{u_1} {X : Type u_1} [MetricSpace X] [MeasurableSpace X]
[BorelSpace X] {𝒞 : Set (X → ℂ)} (h𝒞 : IsBorelGenerating 𝒞) : 𝒞 = ↑(BddMeasurable X)
Its ingredients are the class L0, an algebra of sets
containing the open sets (isSetAlgebra_L0), the
monotone class theorem
(generateFrom_subset_of_isMonotoneClass),
and the indicator step
IsBorelGenerating.indicator_mem.
2.3.6. Projection-valued measures and the operator-valued integral🔗
Blueprint: def:projection-valued-measure,
thrm:projection-valued-measures-associated-measure,
thrm:operator-valued-integration, prpstn:integral-of-indicator,
prpstn:integral-norm-bound, prpstn:integral-multiplicative,
prpstn:integral-conjugation.
🔗structure
A projection-valued measure on X: an assignment E ↦ μ(E) of orthogonal projections on H to
measurable sets, with μ(X) = 𝟙, countably additive and multiplicative on intersections.
It is the object the spectral theorem attaches to a self-adjoint operator A, with μ(E) the
spectral projection of A for the set E of possible measured values. The axioms:
each μ(E) is a self-adjoint idempotent; μ(X) = 𝟙; for pairwise disjoint measurable E_1, E_2, …
and every vector v, μ(⋃ E_j)v = Σ μ(E_j)v with convergence in the norm of H; and
μ(E ∩ F) = μ(E)μ(F), so projections of disjoint sets have orthogonal ranges. For each vector ψ,
E ↦ ⟨ψ, μ(E)ψ⟩ is then a finite positive measure (assoc), and bounded measurable functions
can be integrated against μ to give operators (integral).
Implementation note: as in Mathlib's MeasureTheory.VectorMeasure, μ is a total function
Set X → H →L[ℂ] H that is 0 on non-measurable sets, so the coercion carries no measurability
side conditions. The blueprint's μ(∅) = 0 is not a field: countable additivity for the constant
family E_j = ∅ implies it, and a field would add a derivable obligation to every constructor.
Countable additivity is stated with Mathlib's HasSum, unordered summation; since the vectors
μ(E_j)v are pairwise orthogonal, this is equivalent to convergence of the partial sums.
The blueprint's equivalence of two projection-valued measures is equality
(ProjectionValuedMeasure.ext).
Blueprint: def:projection-valued-measure
Fields
toFun : Set X → H →L[ℂ] H
The underlying assignment E ↦ μ(E) of operators to all subsets of X.
isStarProjection' : ∀ (E : Set X), IsStarProjection (self.toFun E)
Every value μ(E) is an orthogonal projection: self-adjoint and idempotent.
notMeasurable' : ∀ (E : Set X), ¬MeasurableSet E → self.toFun E = 0
Non-measurable sets are sent to 0, so μ is determined by its values on measurable sets.
univ' : self.toFun Set.univ = 1
Normalisation: μ(X) is the identity operator.
hasSum' : ∀ (E : ℕ → Set X),
(∀ (j : ℕ), MeasurableSet (E j)) →
(Pairwise fun i j => Disjoint (E i) (E j)) →
∀ (v : H), HasSum (fun j => (self.toFun (E j)) v) ((self.toFun (⋃ j, E j)) v)
Countable additivity: for pairwise disjoint measurable sets E_j and every vector v, the series
Σ μ(E_j)v converges in the norm of H to μ(⋃ E_j)v.
inter' : ∀ (E F : Set X), MeasurableSet E → MeasurableSet F → self.toFun (E ∩ F) = self.toFun E * self.toFun F
Multiplicativity: μ(E ∩ F) = μ(E)μ(F) for measurable E and F.
🔗def
The finite positive measure μ_ψ(E) = ⟨ψ, μ(E)ψ⟩ of a projection-valued measure μ and a vector ψ.
Since μ(E) is an orthogonal projection, ⟨ψ, μ(E)ψ⟩ = ‖μ(E)ψ‖² ≥ 0, and countable additivity of μ
makes E ↦ ‖μ(E)ψ‖² a measure; its total mass is ⟨ψ, ψ⟩ = ‖ψ‖², by assoc_apply with E = X.
For a unit vector ψ and the spectral measure of an observable A, μ_ψ(E) is the probability that a
measurement of A in the state ψ gives a value in E. The values on measurable sets are
assoc_apply; the operator-valued integral satisfies ⟨ψ, (∫ f dμ)ψ⟩ = ∫ f dμ_ψ
(inner_integral).
Implementation note: the measure is chosen from existsUnique_assoc, which also gives its
uniqueness and finiteness (the MeasureTheory.IsFiniteMeasure instance).
Blueprint: the measure μ_ψ of thrm:projection-valued-measures-associated-measure
🔗def
The operator-valued integral ∫ f dμ of a bounded measurable f : X → ℂ against a
projection-valued measure μ.
It is the bounded operator with ⟨ψ, (∫ f dμ)ψ⟩ = ∫ f dμ_ψ for every vector ψ
(inner_integral), where μ_ψ(E) = ⟨ψ, μ(E)ψ⟩. For a step function f = Σ c_k 1_(E_k) it is
Σ c_k μ(E_k), and in general a norm limit of such sums; the spectral theorem writes a
self-adjoint operator as A = ∫ λ dμ^A(λ). The integral of 1_E is μ(E) (integral_indicator), it
is linear (integral_add, integral_smul) and multiplicative (integral_mul), satisfies
‖∫ f dμ‖ ≤ sup |f| (norm_integral_le), and sends the complex conjugate f̄ to the adjoint
(integral_conj).
Implementation note: the operator is chosen from the unique linear map of
existsUnique_integral, built from the bounded quadratic form Q_f(ψ) = ∫ f dμ_ψ, so linearity is
recovered by integral_add and integral_smul rather than definitional. On functions that are
not bounded and measurable the integral is defined to be 0, so it is a total function.
Blueprint: the integral ∫ f dμ of thrm:operator-valued-integration
The integral comes from a unique linear map on the bounded measurable functions, characterised by
its expectation values:
open Hilbert6 Spectral in
Hilbert6.Spectral.ProjectionValuedMeasure.existsUnique_integral.{u_1, u_2} {X : Type u_1} [MeasurableSpace X]
{H : Type u_2} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (μ : ProjectionValuedMeasure X H) :
∃! T, ∀ (f : ↥(BddMeasurable X)) (ψ : H), inner ℂ ψ ((T f) ψ) = ∫ (x : X), ↑f x ∂μ.assoc ψ#check ProjectionValuedMeasure.existsUnique_integral
Hilbert6.Spectral.ProjectionValuedMeasure.existsUnique_integral.{u_1, u_2} {X : Type u_1} [MeasurableSpace X]
{H : Type u_2} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (μ : ProjectionValuedMeasure X H) :
∃! T, ∀ (f : ↥(BddMeasurable X)) (ψ : H), inner ℂ ψ ((T f) ψ) = ∫ (x : X), ↑f x ∂μ.assoc ψ
Here T ranges over the ℂ-linear maps BddMeasurable X →ₗ[ℂ] (H →L[ℂ] H), ↑f is the function
underlying an element of the subspace, and μ.assoc ψ is \mu_\psi. That
Q_f(\psi) = \int f \, d\mu_\psi is a bounded quadratic form is proved in three stages, as in the
blueprint: for indicator functions, for simple functions, and for bounded measurable functions as
uniform limits of simple ones
(isBoundedQuadraticForm_integral_bddMeasurable).
It is multiplicative, the operator form of \int fg \, d\mu = (\int f \, d\mu)(\int g \, d\mu):
open Hilbert6 Spectral in
Hilbert6.Spectral.ProjectionValuedMeasure.integral_mul.{u_1, u_2} {X : Type u_1} [MeasurableSpace X] {H : Type u_2}
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (μ : ProjectionValuedMeasure X H) {f g : X → ℂ}
(hf : f ∈ BddMeasurable X) (hg : g ∈ BddMeasurable X) : μ.integral (f * g) = μ.integral f * μ.integral g#check ProjectionValuedMeasure.integral_mul
Hilbert6.Spectral.ProjectionValuedMeasure.integral_mul.{u_1, u_2} {X : Type u_1} [MeasurableSpace X] {H : Type u_2}
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] (μ : ProjectionValuedMeasure X H) {f g : X → ℂ}
(hf : f ∈ BddMeasurable X) (hg : g ∈ BddMeasurable X) : μ.integral (f * g) = μ.integral f * μ.integral g
The bound \|\int f \, d\mu\| \le \sup_x |f(x)| is
norm_integral_le; its
proof first establishes the weaker bound 6\sup_x |f(x)|, which it uses to pass to the limit of
simple functions (formalization note of prpstn:integral-norm-bound). The identity
\int \bar f \, d\mu = (\int f \, d\mu)^* is
integral_conj. The measure
\mu_\psi exists and is unique by
existsUnique_assoc.
2.3.7. The Borel functional calculus🔗
Blueprint: def:hall-8.6, prpstn:hall-8.7, def:F-class,
def:hall-8.8, lmm:lemma-3, prpstn:hall-8.9,
def:F1-F2-classes.
Every bounded Borel function gives a bounded quadratic form, by the bootstrap applied to
FClass:
open Hilbert6 Spectral in
Hilbert6.Spectral.isBoundedQuadraticForm_borelForm.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) {f : ↑(spectrum ℝ A) → ℂ}
(hf : f ∈ BddMeasurable ↑(spectrum ℝ A)) : IsBoundedQuadraticForm (borelForm hA f)#check isBoundedQuadraticForm_borelForm
Hilbert6.Spectral.isBoundedQuadraticForm_borelForm.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) {f : ↑(spectrum ℝ A) → ℂ}
(hf : f ∈ BddMeasurable ↑(spectrum ℝ A)) : IsBoundedQuadraticForm (borelForm hA f)
🔗defHilbert6.Spectral.borelCalculus.{u_1} {H : Type u_1}
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
{A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (f : ↑(spectrum ℝ A) → ℂ) :
H →L[ℂ] H Hilbert6.Spectral.borelCalculus.{u_1}
{H : Type u_1} [NormedAddCommGroup H]
[InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H}
(hA : IsSelfAdjoint A)
(f : ↑(spectrum ℝ A) → ℂ) : H →L[ℂ] H
The bounded Borel functional calculus f ↦ f(A) of a self-adjoint bounded operator A.
For a bounded Borel function f on σ(A), f(A) is the unique bounded operator with
⟨ψ, f(A)ψ⟩ = ∫ f dμ_ψ for every vector ψ (inner_borelCalculus, existsUnique_borelCalculus).
It extends the continuous calculus to discontinuous functions; most importantly, the indicator
1_E of a Borel set E gives the spectral projection 1_E(A), from which the spectral measure is
built (spectralMeasure). The map is linear (borelCalculus_add, borelCalculus_smul) and
multiplicative, (fg)(A) = f(A)g(A) (borelCalculus_mul), and f(A) is self-adjoint for real f
(isSelfAdjoint_borelCalculus). On continuous real functions it agrees with realCalculus, and
it is the integral against the spectral measure, f(A) = ∫ f dμ^A (borelCalculus_eq_integral).
Implementation note: the operator is chosen from existsUnique_borelCalculus, whose proof takes
IsBoundedQuadraticForm.toOperator of Q_f. On functions that are not bounded and measurable
the value is defined to be 0 (borelCalculus_of_notMem). The agreement with realCalculus is
proved as a private lemma of Hilbert6/Spectral/SpectralTheorem.lean.
Blueprint: def:hall-8.8
Multiplicativity, proved by the bootstrap twice, through the classes
F1Class and
F2Class:
open Hilbert6 Spectral in
Hilbert6.Spectral.borelCalculus_mul.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) {f g : ↑(spectrum ℝ A) → ℂ}
(hf : f ∈ BddMeasurable ↑(spectrum ℝ A)) (hg : g ∈ BddMeasurable ↑(spectrum ℝ A)) :
(borelCalculus hA fun l => f l * g l) = borelCalculus hA f * borelCalculus hA g#check borelCalculus_mul
Hilbert6.Spectral.borelCalculus_mul.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) {f g : ↑(spectrum ℝ A) → ℂ}
(hf : f ∈ BddMeasurable ↑(spectrum ℝ A)) (hg : g ∈ BddMeasurable ↑(spectrum ℝ A)) :
(borelCalculus hA fun l => f l * g l) = borelCalculus hA f * borelCalculus hA g
The first application shows that the bounded Borel f with (fg)(A) = f(A)g(A) for every
continuous real g form a class satisfying IsBorelGenerating, starting from the
multiplicativity of the continuous calculus. The second does the same for the g with
(fg)(A) = f(A)g(A) for every bounded Borel f, starting from the first.
2.3.8. The spectral theorem🔗
Blueprint: thrm:hall-8.10, prpstn:mua-projection to
prpstn:mua-integrates-to-A, thrm:hall-prblm-8.3.4,
thrm:spectral-theorem-for-bounded-operators, def:functional-calculus.
🔗def
The spectral measure μ^A of a self-adjoint bounded operator A: the projection-valued measure
E ↦ 1_E(A) on the Borel sets of σ(A).
Each μ^A(E) is the spectral projection of A for the set E: in finite dimensions, the projection
onto the span of the eigenvectors whose eigenvalues lie in E. For a unit vector ψ,
⟨ψ, μ^A(E)ψ⟩ is the probability that a measurement of A in the state ψ gives a value in E. The
spectral measure integrates the identity function to A, A = ∫ λ dμ^A(λ)
(spectralMeasure_integral_id), and it is the only projection-valued measure on σ(A) that does
(existsUnique_spectralMeasure, the spectral theorem). Integrating a bounded Borel f against it
gives f(A) (borelCalculus_eq_integral).
Implementation note: the definition takes 1_E(A) = borelCalculus hA (E.indicator 1) on
measurable E and 0 otherwise (spectralMeasure_apply). The structure fields are discharged by
the propositions prpstn:mua-projection, prpstn:mua-multiplicative, prpstn:mua-empty-and-whole
and prpstn:mua-countably-additive. σ(A) is Mathlib's real spectrum spectrum ℝ A.
Blueprint: the projection-valued measure μ^A of thrm:hall-8.10
The headline theorem of the section:
open Hilbert6 Spectral in
Hilbert6.Spectral.existsUnique_spectralMeasure.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : ∃! μ, (μ.integral fun l => ↑↑l) = A#check existsUnique_spectralMeasure
Hilbert6.Spectral.existsUnique_spectralMeasure.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : ∃! μ, (μ.integral fun l => ↑↑l) = A
Here μ ranges over ProjectionValuedMeasure (spectrum ℝ A) H, and the integrand is
\lambda. The blueprint's form of the existence half, with \mu^A(E) = 1_E(A) on Borel sets,
is exists_spectralMeasure. Existence is
spectralMeasure_integral_id and
uniqueness pvm_eq_of_integral_id_eq.
The two Borel calculi agree:
open Hilbert6 Spectral in
Hilbert6.Spectral.borelCalculus_eq_integral.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) {f : ↑(spectrum ℝ A) → ℂ}
(hf : f ∈ BddMeasurable ↑(spectrum ℝ A)) : borelCalculus hA f = (spectralMeasure hA).integral f#check borelCalculus_eq_integral
Hilbert6.Spectral.borelCalculus_eq_integral.{u_1} {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
[CompleteSpace H] {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) {f : ↑(spectrum ℝ A) → ℂ}
(hf : f ∈ BddMeasurable ↑(spectrum ℝ A)) : borelCalculus hA f = (spectralMeasure hA).integral f
🔗def
The functional calculus f(A) = ∫ f dμ^A of a self-adjoint bounded operator A, for bounded Borel f
on σ(A).
This is the standard meaning of a function of an observable: in finite dimensions
f(A) = Σ_k f(λ_k) P_k. For example, the indicator of E gives the spectral projection μ^A(E), and
f(λ) = e^(iλt) gives the operator written e^(itA). By borelCalculus_eq_integral it agrees with the
operator borelCalculus obtained from the quadratic form Q_f, so the notation f(A) is
unambiguous, and the properties proved for borelCalculus (linearity, multiplicativity,
self-adjointness for real f) transfer to it through that equation.
Implementation note: the definition is (spectralMeasure hA).integral f, so it is 0 on
functions that are not bounded and measurable.
Blueprint: def:functional-calculus