PhyslibAlpha.AlgebraicFramework.CStarAlgebra.SpectralMeasure
The probability measure of an observable in a state
A state `ω` and an observable `a` together fix a probability measure `μ_{ω,a}` on `ℝ`: the one against which integrating `f` gives `ω(f(a))`, so it's what you integrate against for `a`'s expectation, variance, or any other statistic in the preparation `ω`. `μ_{ω,a}` is supported on `a`'s spectrum and is the unique measure with this property.
Restricting `ω` to the observables of the continuous functional calculus of `a` (`UnitalPositiveLinearMap.onObservables`, `Observable.lean`) turns `ω, a` into one positive, normalized functional on `C(σ_ℝ(a), ℝ)` — exactly the input to Riesz–Markov–Kakutani, which Mathlib already supplies. Pushing the result forward along `σ_ℝ(a) ↪ ℝ` gives `μ_{ω,a}`.
This is the concrete payoff of the whole measurement layer built on top of `OrderUnit/` (`OVERVIEW.md` §9): `μ_{ω,a}` *is* the outcome distribution of measuring the single observable `a` in the preparation `ω`. The "Connection to the abstract measurement layer" section below makes this precise at every isolated point of `a`'s spectrum — a genuine eigenvalue with a spectral gap — where CFC already supplies the spectral projection needed to state it as a bona fide `Measurement`, matching `Measurement.outcomeDistribution` (`Measurement/Basic.lean`) exactly. Doing this at every Borel set at once, recovering `μ_{ω,a}` as a full `EffectValuedMeasure ℝ (selfAdjoint A)` (a PVM), would need a projection for every Borel set — the measurable functional calculus underlying the spectral theorem — which this codebase does not yet have; only continuous functional calculus (`cfc`, `cfcHom`) is available, and that reaches exactly the clopen (isolated-point) subsets of the spectrum and no further.
Main definitions
- `spectralMeasure`, `realSpectralMeasure` : `μ_{ω,a}`, first on `a`'s spectrum, then on `ℝ`. - `realSpectralMeasure_integral` : `ω(f(a)) = ∫ f dμ_{ω,a}`. - `realSpectralMeasure_unique` : `μ_{ω,a}` is the only probability measure on `ℝ`, concentrated on `a`'s spectrum, reproducing `ω(f(a))` this way. - `eigenEffect`, `eigenMeasurement` : the two-outcome measurement "does `a` read out `x`?" at an isolated spectral point `x`, and `eigenMeasurement_outcomeDistribution_true` : its outcome distribution in `ω` matches `μ_{ω,a}({x})`.
Connection to the abstract measurement layer
An isolated point `x` of `a`'s spectrum — one for which `{x}` is clopen in the subspace topology, i.e. a genuine eigenvalue with a spectral gap around it — is exactly where continuous functional calculus already reaches: the indicator function of `{x}` is continuous there (clopen sets have continuous indicators, `IsClopen.continuous_indicator`), so CFC turns it into an honest spectral projection `eigenEffect`. Pairing that projection with its complement is a two-outcome `Measurement` (`Measurement/Basic.lean`) — "does `a` read out `x`, or not?" — and its outcome distribution in `ω` is exactly `μ_{ω,a}` evaluated at `{x}` and its complement (`eigenMeasurement_outcomeDistribution_true`): the abstract POVM layer's Born rule and the concrete spectral measure built above agree at every point either can see.
What is not attempted: doing this simultaneously at every Borel subset of the spectrum, so that `x ↦ eigenEffect` extends to a full projection-valued `EffectValuedMeasure ℝ (selfAdjoint A)` agreeing with `realSpectralMeasure` on every Borel set (not just clopen singletons), needs a projection for every Borel set — the *measurable* functional calculus underlying the spectral theorem for self-adjoint operators. That is a substantially larger piece of infrastructure than continuous functional calculus, and this codebase does not have it yet.
22 declarations
Spectral functional
Given a state and an observable , the spectral functional is the positive linear map from the space of continuous real-valued functions on the spectrum of , denoted , to , defined by the assignment , where is the result of the continuous functional calculus.
Spectral functional on
Given a state and an observable , this definition provides the positive linear map from the space of compactly supported continuous real-valued functions on the spectrum of , denoted , to . It maps each function to , where is the result of the continuous functional calculus applied to . This specific construction on compactly supported functions is used to satisfy the requirements of the Riesz–Markov–Kakutani representation theorem to produce the spectral measure.
Spectral measure on the spectrum
Given a state and an observable , the spectral measure is the unique Borel measure on the spectrum obtained via the Riesz–Markov–Kakutani representation theorem from the positive linear functional . For any continuous real-valued function on the spectrum, the integral of with respect to this measure satisfies , where is defined by the continuous functional calculus.
The Spectral Measure is Finite
For any state and observable in a -algebra, the spectral measure defined on the spectrum is a finite measure.
The Spectral Functional Evaluated at equals
Let be a state on a -algebra and be an observable. Let denote the spectrum of . The spectral functional associated with and is the positive linear map from the space of continuous real-valued functions on the spectrum to defined by . This theorem states that evaluating this functional at the constant function yields the value .
The spectral measure is a probability measure
Let be a state and be an observable in a -algebra . Let denote the spectrum of . The spectral measure associated with and , which is defined on , is a probability measure (meaning its total mass is , consistent with the property that ).
Let be a state on a -algebra and be an observable in with spectrum . For any continuous real-valued function , the expectation value of the observable (constructed via the continuous functional calculus) in the state is equal to the integral of with respect to the spectral measure on the spectrum:
Spectral measure on
Given a state and an observable , the real spectral measure is the probability measure on obtained by pushing forward the spectral measure (initially defined on the spectrum ) along the inclusion map . This measure is characterized by the property that for any suitable function , its integral with respect to yields the expectation value .
is a probability measure
Let be a state and be an observable in a -algebra . The real spectral measure on associated with the preparation and observable is a probability measure.
Let be a state and be an observable. Let be the real spectral measure associated with and , and let denote the spectrum of . Then the measure of the complement of the spectrum is zero: This signifies that the probability measure is concentrated on the spectrum of the observable .
Expectation equals the integral of against the real spectral measure
Let be a state and be an observable with spectrum . For any function that is continuous on the spectrum , the expectation value of the observable (defined via the continuous functional calculus) in the state is given by the integral of with respect to the real spectral measure :
Continuous functions on extend to with continuity preserved on the spectrum
Let be an observable and be its spectrum. For any continuous function defined on the spectrum, there exists a function that is continuous on and satisfies for all .
The integral of the pullback of a representing measure equals the integral of the spectral measure
Let be a state and be an observable with spectrum . Let be a measure on and be the inclusion map. Suppose the following conditions hold: 1. For every function that is continuous on , the expectation of the observable (defined via continuous functional calculus) in state is given by the integral of against : 2. The measure is concentrated on the spectrum, such that the pushforward of its pullback along the inclusion recovers the original measure: . Then, for any continuous function , the integral of with respect to the pullback measure is equal to the integral of with respect to the spectral measure :
Uniqueness of the Real Spectral Measure
Let be a state and be an observable with spectrum . Suppose is a probability measure on satisfying the following conditions: 1. is concentrated on the spectrum of , i.e., . 2. For every function that is continuous on , the integral of against recovers the expectation value of the observable in the state : Then is equal to the real spectral measure .
Continuous indicator function of an isolated point
Given an observable and a point in its real spectrum that is isolated (specifically, the singleton set is clopen in the subspace topology of the spectrum), `eigenIndicator` is the continuous function which maps to if and to otherwise.
Evaluation of the eigen-indicator function at a point
For an observable and a point in its real spectrum such that the singleton set is clopen (i.e., is an isolated point), the continuous indicator function evaluated at any point is equal to the set-theoretic indicator function , which takes the value if and otherwise.
Spectral projection for an isolated point
Given an observable and a point in its real spectrum that is isolated (specifically, the singleton set is clopen in the subspace topology of the spectrum), the `eigenEffect` is the spectral projection obtained by applying the continuous functional calculus of to the indicator function . This operator is an effect—meaning it satisfies —and is idempotent, making it a genuine projection in the operator-algebraic sense that represents the measurement of whether takes the value .
for an isolated point in the spectrum
Let be an observable and let be a point in its real spectrum such that the singleton set is clopen in the subspace topology (i.e., is an isolated point of the spectrum). Then the continuous indicator function , which maps to and all other points in the spectrum to , is idempotent under multiplication:
for an isolated spectral point
Let be an observable and let be a point in its spectrum such that the singleton set is clopen in the subspace topology (i.e., is an isolated point of the spectrum). Then the spectral projection (the `eigenEffect`), obtained by applying the continuous functional calculus to the indicator function of , is an idempotent element:
The spectral effect at an isolated point is sharp
Let be an observable and let be an isolated point in its real spectrum (such that the singleton set is clopen in the subspace topology of the spectrum). Then the corresponding spectral effect is sharp, meaning it is a projection.
Measurement of an isolated eigenvalue
Given an observable and an isolated point in its real spectrum (such that the singleton set is clopen in the subspace topology of the spectrum), the `eigenMeasurement` is a measurement with two possible outcomes, `true` and `false`. The effect associated with the outcome `true` is the spectral projection (the `eigenEffect`), and the effect associated with the outcome `false` is its complement . This measurement represents the binary question: "Does the observable result in the value ?"
The outcome probability of `eigenMeasurement` is
For a state and an observable , let be an isolated point in the real spectrum (specifically, such that the singleton set is clopen in the subspace topology of the spectrum). The probability of obtaining the `true` outcome in the binary measurement `eigenMeasurement` (which represents the question "does the measurement of result in ?") when the system is in state is equal to the value of the real spectral measure evaluated at the singleton set .
