Documentation

CsdLean4.LF2.BornWrapper

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.

structure CSD.LF2.Effect (N : ) :

Effect on an N-dimensional complex Hilbert space. A Hermitian matrix with 0 ≤ E and E ≤ I (both expressed via PosSemidef).

Instances For

    Density operator on an N-dimensional complex Hilbert space. A Hermitian PSD matrix with trace 1.

    Instances For
      noncomputable def CSD.LF2.traceForm {N : } (ρ : DensityOperator N) (E : Effect N) :

      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.

      Equations
      Instances For
        noncomputable def CSD.LF2.Effect.one {N : } :

        The identity effect I. Represents the trivial always-true measurement outcome.

        Equations
        Instances For
          noncomputable def CSD.LF2.Effect.zero {N : } :

          The zero effect. Represents the trivial always-false measurement outcome.

          Equations
          Instances For
            noncomputable def CSD.LF2.Effect.add {N : } (E F : Effect N) (hLe : (1 - (E.M + F.M)).PosSemidef) :

            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.

            Equations
            • E.add F hLe = { M := E.M + F.M, isHermitian := , nonneg := , le_one := hLe }
            Instances For
              noncomputable def CSD.LF2.Effect.conjugateBy {N : } (U : (Matrix.unitaryGroup (Fin N) )) (E : Effect N) :

              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
              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 readingp (Effect.conjugateBy U E) = p E for all U. This over-constrains to basis-invariant packages (essentially the maximally mixed state); a pure-state package from |ψ⟩⟨ψ| does not satisfy it, since Tr(|ψ⟩⟨ψ| U† E U) = Tr(|Uψ⟩⟨Uψ| E), not Tr(|ψ⟩⟨ψ| E).
                • Covariant reading — a functor OperationalPackage.conjugateBy U sending 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 by busch_effect_gleason as 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.

                • p : Effect N

                  Probability assignment.

                • nonneg (E : Effect N) : 0 self.p E

                  0 ≤ p(E).

                • le_one (E : Effect N) : self.p E 1

                  p(E) ≤ 1.

                • total_one : self.p Effect.one = 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 ≤ I then p(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.

                  noncomputable def CSD.LF2.outerProduct {N : } (φ : EuclideanSpace (Fin N)) :
                  Matrix (Fin N) (Fin N)

                  Rank-1 outer product. |φ⟩⟨φ| with entries M i j = φ i * star (φ j).

                  Equations
                  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.

                    theorem CSD.LF2.dotProduct_self_star_of_unit_norm {N : } (φ : EuclideanSpace (Fin N)) ( : φ = 1) :
                    ((fun (i : Fin N) => φ.ofLp i) ⬝ᵥ fun (i : Fin N) => star (φ.ofLp i)) = 1

                    Unfolding: the dot-product φ ⬝ᵥ star φ is the trace of the outer product. For a unit vector this equals 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.

                    noncomputable def CSD.LF2.rankOneEffect {N : } (φ : EuclideanSpace (Fin N)) ( : φ = 1) :

                    Rank-1 projector as an Effect. |φ⟩⟨φ| for a unit vector φ.

                    Equations
                    Instances For
                      noncomputable def CSD.LF2.rankOneDensity {N : } (ψ : EuclideanSpace (Fin N)) ( : ψ = 1) :

                      Rank-1 pure-state density operator. |ψ⟩⟨ψ| for a unit vector ψ.

                      Equations
                      Instances For
                        theorem CSD.LF2.born_quadratic {N : } (ψ φ : EuclideanSpace (Fin N)) ( : ψ = 1) ( : φ = 1) :

                        Spec §5.4 — the Born quadratic form. For a pure preparation |ψ⟩ and a rank-1 projector outcome |φ⟩⟨φ| (both with unit norm), the trace-form probability equals |⟨ψ|φ⟩|².

                        theorem CSD.LF2.pure_state_born_weights {N : } (OP : OperationalPackage N) (ψ : EuclideanSpace (Fin N)) ( : ψ = 1) ( : ∀ (E : Effect N), OP.p E = traceForm (rankOneDensity ψ ) E) (φ : EuclideanSpace (Fin N)) ( : φ = 1) :
                        OP.p (rankOneEffect φ ) = inner ψ φ ^ 2

                        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 — 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.

                        theorem CSD.LF2.rankOneDensity_unique_of_certainty {N : } (ψ : EuclideanSpace (Fin N)) ( : ψ = 1) (ρ : DensityOperator N) (h_certain : traceForm ρ (rankOneEffect ψ ) = 1) :
                        ρ = rankOneDensity ψ

                        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.