Physlib

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

definition

Spectral functional f↦ω(f(a))f \mapsto \omega(f(a))

Given a state ω\omega and an observable aa, the spectral functional is the positive linear map from the space of continuous real-valued functions on the spectrum of aa, denoted C(σ(a),R)C(\sigma(a), \mathbb{R}), to R\mathbb{R}, defined by the assignment f↦ω(f(a))f \mapsto \omega(f(a)), where f(a)f(a) is the result of the continuous functional calculus.

definition

Spectral functional on Cc(σ(a),R)C_c(\sigma(a), \mathbb{R})

Given a state ω\omega and an observable aa, this definition provides the positive linear map from the space of compactly supported continuous real-valued functions on the spectrum of aa, denoted Cc(σ(a),R)C_c(\sigma(a), \mathbb{R}), to R\mathbb{R}. It maps each function ff to ω(f(a))\omega(f(a)), where f(a)f(a) is the result of the continuous functional calculus applied to aa. 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.

definition

Spectral measure μω,a\mu_{\omega, a} on the spectrum σ(a)\sigma(a)

Given a state ω\omega and an observable aa, the spectral measure is the unique Borel measure μω,a\mu_{\omega, a} on the spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R} obtained via the Riesz–Markov–Kakutani representation theorem from the positive linear functional f↦ω(f(a))f \mapsto \omega(f(a)). For any continuous real-valued function ff on the spectrum, the integral of ff with respect to this measure satisfies ∫σ(a)f dμω,a=ω(f(a))\int_{\sigma(a)} f \, d\mu_{\omega, a} = \omega(f(a)), where f(a)f(a) is defined by the continuous functional calculus.

instance

The Spectral Measure μω,a\mu_{\omega, a} is Finite

For any state ω\omega and observable aa in a C∗C^*-algebra, the spectral measure μω,a\mu_{\omega, a} defined on the spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R} is a finite measure.

theorem

The Spectral Functional Evaluated at 11 equals 11

Let ω\omega be a state on a C∗C^*-algebra and aa be an observable. Let σ(a)⊆R\sigma(a) \subseteq \mathbb{R} denote the spectrum of aa. The spectral functional associated with ω\omega and aa is the positive linear map from the space of continuous real-valued functions on the spectrum C(σ(a),R)C(\sigma(a), \mathbb{R}) to R\mathbb{R} defined by f↦ω(f(a))f \mapsto \omega(f(a)). This theorem states that evaluating this functional at the constant function 11 yields the value 11.

instance

The spectral measure μω,a\mu_{\omega, a} is a probability measure

Let ω\omega be a state and aa be an observable in a C∗C^*-algebra AA. Let σ(a)⊆R\sigma(a) \subseteq \mathbb{R} denote the spectrum of aa. The spectral measure μω,a\mu_{\omega, a} associated with ω\omega and aa, which is defined on σ(a)\sigma(a), is a probability measure (meaning its total mass is 11, consistent with the property that ω(1)=1\omega(1) = 1).

theorem

ω(f(a))=∫f dμω,a\omega(f(a)) = \int f \, d\mu_{\omega, a}

Let ω\omega be a state on a C∗C^*-algebra AA and aa be an observable in AA with spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R}. For any continuous real-valued function f∈C(σ(a),R)f \in C(\sigma(a), \mathbb{R}), the expectation value of the observable f(a)f(a) (constructed via the continuous functional calculus) in the state ω\omega is equal to the integral of ff with respect to the spectral measure μω,a\mu_{\omega, a} on the spectrum: ω(f(a))=∫σ(a)f(x) dμω,a(x)\omega(f(a)) = \int_{\sigma(a)} f(x) \, d\mu_{\omega, a}(x)

definition

Spectral measure μω,a\mu_{\omega, a} on R\mathbb{R}

Given a state ω\omega and an observable aa, the real spectral measure is the probability measure μω,a\mu_{\omega, a} on R\mathbb{R} obtained by pushing forward the spectral measure (initially defined on the spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R}) along the inclusion map ι:σ(a)↪R\iota: \sigma(a) \hookrightarrow \mathbb{R}. This measure is characterized by the property that for any suitable function f:R→Rf: \mathbb{R} \to \mathbb{R}, its integral with respect to μω,a\mu_{\omega, a} yields the expectation value ω(f(a))\omega(f(a)).

instance

μω,a\mu_{\omega, a} is a probability measure

Let ω\omega be a state and aa be an observable in a C∗C^*-algebra AA. The real spectral measure μω,a\mu_{\omega, a} on R\mathbb{R} associated with the preparation ω\omega and observable aa is a probability measure.

theorem

μω,a(σ(a)c)=0\mu_{\omega, a}(\sigma(a)^c) = 0

Let ω\omega be a state and aa be an observable. Let μω,a\mu_{\omega, a} be the real spectral measure associated with ω\omega and aa, and let σ(a)⊆R\sigma(a) \subseteq \mathbb{R} denote the spectrum of aa. Then the measure of the complement of the spectrum σ(a)\sigma(a) is zero: μω,a(R∖σ(a))=0\mu_{\omega, a}(\mathbb{R} \setminus \sigma(a)) = 0 This signifies that the probability measure μω,a\mu_{\omega, a} is concentrated on the spectrum of the observable aa.

theorem

Expectation ω(f(a))\omega(f(a)) equals the integral of ff against the real spectral measure μω,a\mu_{\omega, a}

Let ω\omega be a state and aa be an observable with spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R}. For any function f:R→Rf: \mathbb{R} \to \mathbb{R} that is continuous on the spectrum σ(a)\sigma(a), the expectation value of the observable f(a)f(a) (defined via the continuous functional calculus) in the state ω\omega is given by the integral of ff with respect to the real spectral measure μω,a\mu_{\omega, a}: ω(f(a))=∫Rf(y) dμω,a(y)\omega(f(a)) = \int_{\mathbb{R}} f(y) \, d\mu_{\omega, a}(y)

theorem

Continuous functions on σ(a)\sigma(a) extend to R\mathbb{R} with continuity preserved on the spectrum

Let aa be an observable and σ(a)⊆R\sigma(a) \subseteq \mathbb{R} be its spectrum. For any continuous function g:σ(a)→Rg : \sigma(a) \to \mathbb{R} defined on the spectrum, there exists a function f:R→Rf : \mathbb{R} \to \mathbb{R} that is continuous on σ(a)\sigma(a) and satisfies f(x)=g(x)f(x) = g(x) for all x∈σ(a)x \in \sigma(a).

theorem

The integral of the pullback of a representing measure μ\mu equals the integral of the spectral measure μω,a\mu_{\omega, a}

Let ω\omega be a state and aa be an observable with spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R}. Let μ\mu be a measure on R\mathbb{R} and ι:σ(a)→R\iota : \sigma(a) \to \mathbb{R} be the inclusion map. Suppose the following conditions hold: 1. For every function f:R→Rf: \mathbb{R} \to \mathbb{R} that is continuous on σ(a)\sigma(a), the expectation of the observable f(a)f(a) (defined via continuous functional calculus) in state ω\omega is given by the integral of ff against μ\mu: ω(f(a))=∫Rf dμ\omega(f(a)) = \int_{\mathbb{R}} f \, d\mu 2. The measure μ\mu is concentrated on the spectrum, such that the pushforward of its pullback along the inclusion ι\iota recovers the original measure: ι∗(ι∗μ)=μ\iota_*(\iota^* \mu) = \mu. Then, for any continuous function g:σ(a)→Rg : \sigma(a) \to \mathbb{R}, the integral of gg with respect to the pullback measure ι∗μ\iota^* \mu is equal to the integral of gg with respect to the spectral measure μω,a\mu_{\omega, a}: ∫σ(a)g d(ι∗μ)=∫σ(a)g dμω,a\int_{\sigma(a)} g \, d(\iota^* \mu) = \int_{\sigma(a)} g \, d\mu_{\omega, a}

theorem

Uniqueness of the Real Spectral Measure μω,a\mu_{\omega, a}

Let ω\omega be a state and aa be an observable with spectrum σ(a)⊆R\sigma(a) \subseteq \mathbb{R}. Suppose μ\mu is a probability measure on R\mathbb{R} satisfying the following conditions: 1. μ\mu is concentrated on the spectrum of aa, i.e., μ(R∖σ(a))=0\mu(\mathbb{R} \setminus \sigma(a)) = 0. 2. For every function f:R→Rf: \mathbb{R} \to \mathbb{R} that is continuous on σ(a)\sigma(a), the integral of ff against μ\mu recovers the expectation value of the observable f(a)f(a) in the state ω\omega: ∫Rf dμ=ω(f(a))\int_{\mathbb{R}} f \, d\mu = \omega(f(a)) Then μ\mu is equal to the real spectral measure μω,a\mu_{\omega, a}.

definition

Continuous indicator function of an isolated point x∈σ(a)x \in \sigma(a)

Given an observable aa and a point xx in its real spectrum σ(a)\sigma(a) that is isolated (specifically, the singleton set {x}\{x\} is clopen in the subspace topology of the spectrum), `eigenIndicator` is the continuous function 1{x}:σ(a)→R\mathbb{1}_{\{x\}}: \sigma(a) \to \mathbb{R} which maps y∈σ(a)y \in \sigma(a) to 11 if y=xy = x and to 00 otherwise.

theorem

Evaluation of the eigen-indicator function 1{x}\mathbb{1}_{\{x\}} at a point yy

For an observable aa and a point xx in its real spectrum σR(a)\sigma_{\mathbb{R}}(a) such that the singleton set {x}\{x\} is clopen (i.e., xx is an isolated point), the continuous indicator function 1{x}\mathbb{1}_{\{x\}} evaluated at any point y∈σR(a)y \in \sigma_{\mathbb{R}}(a) is equal to the set-theoretic indicator function 1{x}(y)\mathbf{1}_{\{x\}}(y), which takes the value 11 if y=xy = x and 00 otherwise.

definition

Spectral projection 1{x}(a)\mathbb{1}_{\{x\}}(a) for an isolated point x∈σ(a)x \in \sigma(a)

Given an observable aa and a point xx in its real spectrum σ(a)\sigma(a) that is isolated (specifically, the singleton set {x}\{x\} is clopen in the subspace topology of the spectrum), the `eigenEffect` is the spectral projection 1{x}(a)\mathbb{1}_{\{x\}}(a) obtained by applying the continuous functional calculus of aa to the indicator function 1{x}\mathbb{1}_{\{x\}}. This operator is an effect—meaning it satisfies 0≤1{x}(a)≤I0 \le \mathbb{1}_{\{x\}}(a) \le I—and is idempotent, making it a genuine projection in the operator-algebraic sense that represents the measurement of whether aa takes the value xx.

theorem

1{x}2=1{x}\mathbb{1}_{\{x\}}^2 = \mathbb{1}_{\{x\}} for an isolated point xx in the spectrum σ(a)\sigma(a)

Let aa be an observable and let xx be a point in its real spectrum σ(a)\sigma(a) such that the singleton set {x}\{x\} is clopen in the subspace topology (i.e., xx is an isolated point of the spectrum). Then the continuous indicator function 1{x}∈C(σ(a),R)\mathbb{1}_{\{x\}} \in C(\sigma(a), \mathbb{R}), which maps xx to 11 and all other points in the spectrum to 00, is idempotent under multiplication: 1{x}⋅1{x}=1{x}\mathbb{1}_{\{x\}} \cdot \mathbb{1}_{\{x\}} = \mathbb{1}_{\{x\}}

theorem

1{x}(a)2=1{x}(a)\mathbb{1}_{\{x\}}(a)^2 = \mathbb{1}_{\{x\}}(a) for an isolated spectral point xx

Let aa be an observable and let x∈σ(a)x \in \sigma(a) be a point in its spectrum such that the singleton set {x}\{x\} is clopen in the subspace topology (i.e., xx is an isolated point of the spectrum). Then the spectral projection 1{x}(a)\mathbb{1}_{\{x\}}(a) (the `eigenEffect`), obtained by applying the continuous functional calculus to the indicator function of {x}\{x\}, is an idempotent element: 1{x}(a)2=1{x}(a)\mathbb{1}_{\{x\}}(a)^2 = \mathbb{1}_{\{x\}}(a)

theorem

The spectral effect 1{x}(a)\mathbb{1}_{\{x\}}(a) at an isolated point x∈σ(a)x \in \sigma(a) is sharp

Let aa be an observable and let x∈σ(a)x \in \sigma(a) be an isolated point in its real spectrum (such that the singleton set {x}\{x\} is clopen in the subspace topology of the spectrum). Then the corresponding spectral effect 1{x}(a)\mathbb{1}_{\{x\}}(a) is sharp, meaning it is a projection.

definition

Measurement of an isolated eigenvalue x∈σ(a)x \in \sigma(a)

Given an observable aa and an isolated point xx in its real spectrum σ(a)\sigma(a) (such that the singleton set {x}\{x\} 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 1{x}(a)\mathbb{1}_{\{x\}}(a) (the `eigenEffect`), and the effect associated with the outcome `false` is its complement 1−1{x}(a)1 - \mathbb{1}_{\{x\}}(a). This measurement represents the binary question: "Does the observable aa result in the value xx?"

theorem

The outcome probability of `eigenMeasurement` is μω,a({x})\mu_{\omega, a}(\{x\})

For a state ω\omega and an observable aa, let xx be an isolated point in the real spectrum σ(a)\sigma(a) (specifically, such that the singleton set {x}\{x\} 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 aa result in xx?") when the system is in state ω\omega is equal to the value of the real spectral measure μω,a\mu_{\omega, a} evaluated at the singleton set {x}\{x\}.