LF2 Born-Weight Wrapper #
Category: 3-Local (LF2 matrix-based Effect/DensityOperator, Born quadratic form, and busch_effect_gleason axiom).
Spec §5. Packages the finite-dimensional probability assignment using
concrete matrix-based Effect/DensityOperator structures, an imported
busch_effect_gleason axiom, and a proved Born quadratic
form for rank-1 outcomes on pure preparations. The rank-1 uniqueness
theorem rankOneDensity_unique_of_certainty was carried as an axiom in
earlier revisions and was discharged on 2026-05-18 (no spectral theorem
needed; PSD inner-product route).
This file is built incrementally; see the companion plan at
specs/LF2-plan.md §2.4.
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
Operational consistency package (spec Definition 5.1). An assignment of
probabilities to effects satisfying: non-negativity, boundedness by 1,
total-one on the identity, and finite additivity when the sum remains
below I.
On the omission of clause 3 (unitary covariance). Spec Def 5.1 lists a
third clause: p(U† E U) = p_U(E) for every unitary U, "with the usual
covariance interpretation for simultaneous transformation of preparation
and effect structure." Two natural Lean encodings exist:
- Invariance reading —
p (Effect.conjugateBy U E) = p Efor allU. This over-constrains to basis-invariant packages (essentially the maximally mixed state); a pure-state package from|ψ⟩⟨ψ|does not satisfy it, sinceTr(|ψ⟩⟨ψ| U† E U) = Tr(|Uψ⟩⟨Uψ| E), notTr(|ψ⟩⟨ψ| E). - Covariant reading — a functor
OperationalPackage.conjugateBy Usending one package to another with(conjugateBy U OP).p E = OP.p (Effect.conjugateBy U E), preserving the nonneg / le_one / total / add fields. This is the mathematically correct encoding, but it's type-heavy and not needed bybusch_effect_gleasonas currently stated.
Rather than commit to the wrong reading, LF2 omits clause 3 from the
structure and exposes Effect.conjugateBy below as the structural
building block. LF4 (where unitary evolution enters non-trivially) is
the right place to pick one of the two encodings; see
specs/LF4-todo.md.
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 (next phase) package it into the structure
types above.
Rank-1 outer product. |φ⟩⟨φ| with entries M i j = φ i * star (φ j).
Equations
- CSD.LF2.outerProduct φ = Matrix.vecMulVec (fun (i : Fin N) => φ.ofLp i) fun (i : Fin N) => 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.
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.
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
busch_effect_gleason for the pure-preparation case. It is derivable from
a weaker purity hypothesis via rankOneDensity_unique_of_certainty +
busch_effect_gleason; see pure_state_born_weights_of_certainty below
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.