Finite-dimensional effects, density operators and pure-state Born weights #
Category: 3-Local (LF2 matrix interfaces).
Effect packages 0 ≤ E ≤ I; DensityOperator packages a positive semidefinite,
trace-one matrix. OperationalPackage specifies a nonnegative, normalized assignment
on all effects, additive whenever their sum remains an effect. Its probability upper-bound
field is redundant, derivable by additivity with the complementary effect.
This file proves the outer-product identities, pure-state Born quadratic form and
rankOneDensity_unique_of_certainty. The Busch representation theorem is proved in
LF2/EffectGleason.lean, which imports this module; it is not an axiom imported here.
Effect on an N-dimensional complex Hilbert space. A Hermitian matrix
with 0 ≤ E and E ≤ I (both expressed via PosSemidef).
Underlying matrix.
- isHermitian : self.M.IsHermitian
Eis Hermitian. - nonneg : self.M.PosSemidef
0 ≤ E. - le_one : (1 - self.M).PosSemidef
E ≤ I, i.e.I - Eis PSD.
Instances For
Density operator on an N-dimensional complex Hilbert space. A Hermitian PSD matrix with trace 1.
Underlying matrix.
- isHermitian : self.M.IsHermitian
ρis Hermitian. - nonneg : self.M.PosSemidef
0 ≤ ρ. Tr(ρ) = 1.
Instances For
Trace-form pairing. Tr(ρ · E) as a real number. The trace of a
product of Hermitian matrices is real (self-adjoint), so taking the real
part is not an approximation — it is an extraction.
Instances For
The identity effect I. Represents the trivial always-true measurement
outcome.
Equations
- CSD.LF2.Effect.one = { M := 1, isHermitian := ⋯, nonneg := ⋯, le_one := ⋯ }
Instances For
The zero effect. Represents the trivial always-false measurement outcome.
Equations
- CSD.LF2.Effect.zero = { M := 0, isHermitian := ⋯, nonneg := ⋯, le_one := ⋯ }
Instances For
Conditional sum of effects. If E, F are effects and E + F ≤ I,
their sum is again an effect. Hermitian-ness and PSD of the sum are
automatic (Hermitian matrices are closed under addition, PSD matrices
form a convex cone); only le_one is a genuine precondition — hence its
role as an explicit hypothesis.
Instances For
Unitary conjugation of an effect. U† E U is again an effect for any
unitary U: Hermitian-ness, PSD, and E ≤ I are all preserved by
conjugation with a unitary matrix. This is the structural ingredient
behind spec Definition 5.1 clause 3 (unitary covariance).
Equations
- CSD.LF2.Effect.conjugateBy U E = { M := (↑U).conjTranspose * E.M * ↑U, isHermitian := ⋯, nonneg := ⋯, le_one := ⋯ }
Instances For
A nonnegative, normalized assignment on all effects, additive whenever the sum
remains an effect. The upper-bound field is derivable from the other fields using I - E.
No unitary-invariance or continuity premise is assumed.
Why unitary covariance is not a field. Spec Def 5.1 lists a third clause,
p(U† E U) = p_U(E). Read as invariance — p (Effect.conjugateBy U E) = p E for every U — it
over-constrains to basis-invariant packages, which a pure-state package does not satisfy. Read
covariantly it is a map between packages, which is the right encoding and is not needed by the
representation theorem. The structure therefore omits the clause and exposes
Effect.conjugateBy as the building block; LF4 is where unitary evolution enters non-trivially
and one of the two readings has to be chosen.
Probability assignment.
0 ≤ p(E).p(E) ≤ 1.p(I) = 1.- additivity (E F : Effect N) (hLe : (1 - (E.M + F.M)).PosSemidef) : self.p (E.add F hLe) = self.p E + self.p F
Finite additivity: if
E + F ≤ Ithenp(E + F) = p(E) + p(F).
Instances For
Rank-1 outer products #
The construction |φ⟩⟨φ| as an N×N complex matrix, together with its basic
algebraic properties (Hermitian, PSD, trace). This is the raw matrix layer;
rankOneEffect / rankOneDensity package it into the structure
types above.
The outer product is stated on an arbitrary finite index ι (not just Fin N): the
Fin N structures above and the index-parametric DensityOperatorIx (LF2/ReducedDensity.lean,
LF2/MixedEnsembleIx.lean) share one definition.
Rank-1 outer product. |φ⟩⟨φ| with entries M i j = φ i * star (φ j).
Equations
- CSD.LF2.outerProduct φ = Matrix.vecMulVec (fun (i : ι) => φ.ofLp i) fun (i : ι) => star (φ.ofLp i)
Instances For
The outer product is positive semi-definite. Immediate from the general
fact PosSemidef (vecMulVec a (star a)).
The outer product is Hermitian (a consequence of being PSD).
Trace of the outer product equals the Hilbert-space inner product
inner ℂ φ φ.
For a unit vector, the trace of the outer product is 1.
Rank-1 projector is idempotent for a unit vector: P * P = P. This
is the defining algebraic property of an orthogonal projection.
The trace of a product of two outer products is the squared overlap:
Tr(|ψ⟩⟨ψ| · |φ⟩⟨φ|) = |⟨ψ, φ⟩|². The matrix core of the Born quadratic form
(born_quadratic, DensityOperatorIx.traceForm_rankOne_outerProduct).
1 - P is idempotent when P is. Ring calculation: (1-P)(1-P) = 1 - 2P + P² and P² = P gives 1 - P.
Rank-1 complement is PSD. (I - |φ⟩⟨φ|).PosSemidef for unit φ.
Proof: the matrix is Hermitian and idempotent, hence equal to its own
product with its conjugate transpose, hence PSD.
Entrywise spectral decomposition of a Hermitian matrix as an eigenvalue-weighted sum
of rank-one eigenvector projectors: C = ∑ᵢ λᵢ |eᵢ⟩⟨eᵢ|. The Hermitian spectral theorem in
diagonalised form, expanded entrywise. SigmaLayer.density_eq_eigen_ensemble and
DensityOperatorIx.eq_eigen_ensemble are its density-operator instances.
Rank-1 projector as an Effect. |φ⟩⟨φ| for a unit vector φ.
Equations
- CSD.LF2.rankOneEffect φ hφ = { M := CSD.LF2.outerProduct φ, isHermitian := ⋯, nonneg := ⋯, le_one := ⋯ }
Instances For
Rank-1 pure-state density operator. |ψ⟩⟨ψ| for a unit vector ψ.
Equations
- CSD.LF2.rankOneDensity ψ hψ = { M := CSD.LF2.outerProduct ψ, isHermitian := ⋯, nonneg := ⋯, trace_one := ⋯ }
Instances For
Composite endpoint (Busch-mediated form). For an operational package
whose Busch-extracted density operator is rankOneDensity ψ (i.e., the
preparation is the pure state |ψ⟩), the probability of a rank-1 outcome
|φ⟩⟨φ| is |⟨ψ|φ⟩|².
The hypothesis hρ — that OP.p already agrees with the trace form of
rankOneDensity ψ on every effect — is the downstream consumption of
OperationalPackage.effect_gleason_representation for the pure-preparation case. It is derivable from
a weaker purity hypothesis via rankOneDensity_unique_of_certainty +
OperationalPackage.effect_gleason_representation; see
pure_state_born_weights_of_certainty in LF2/EffectGleason.lean
for the strengthened form.
Uniqueness of pure-state density from certainty.
A density operator ρ whose trace form pairs with |ψ⟩⟨ψ| to give 1
is necessarily |ψ⟩⟨ψ| itself. Equivalently, the only density operator
that assigns probability one to the rank-1 projector through ψ is
rankOneDensity ψ.
Carried as an axiom in earlier revisions; discharged on 2026-05-18 (see
specs/LF4-todo.md §4 and AXIOMS.md §2.3). The proof bypasses the
spectral theorem: the (I − P) ρ (I − P) sandwich is PSD with trace
zero, hence zero; the PSD inner-product identity
Matrix.PosSemidef.dotProduct_mulVec_zero_iff gives ρ · (I − P) = 0
without needing a square root; and the rank-1 sandwich identity
P · M · P = Tr(M · P) • P collapses ρ to P.