Documentation

CsdLean4.RecordLayer.RotatedSwap

SigmaLayer/RotatedSwap: the first measurement in any basis — the unitary-covariance law #

Category: 7-SigmaLayer (dynamical measurement — the covariance extension).

What this closes #

RotatedContext.lean built the rotated context field and extended the sequential layer's follow-up reads to arbitrary bases; the first measurement stayed hardwired to the computational basis (selector basinIndex (momentContext N), bank calibrated on the computational vertices). That asymmetry — the reason BB84Sequential had to run the dual round — ends here:

What this retires #

The BB84Sequential dual-round caveat (the primal round Alice-Z/Eve-X is now directly formalisable — see the corollary there), and the "arbitrary bases by unitary covariance" item of the extension list. Remaining extension items (mixed preparations in the dynamical model, POVM/instrument dynamics) stay recorded in specs/BACKLOG.md.

References #

SigmaLayer/SwapClosure.lean (readyPrep, selReadyBank machinery, the momentContext instance); SigmaLayer/SwapLuders.lean (swap_luders_marginal — the generic engine); SigmaLayer/RotatedContext.lean (basisContext, basisContext_rate_mk); specs/BACKLOG.md.

The rotated vertices and bank #

noncomputable def CSD.RecordLayer.basisPoint {N : } (bON : OrthonormalBasis (Fin N) (EuclideanSpace (Fin N))) (i : Fin N) :

The i-th rotated vertex: the basis ray [bONᵢ].

Equations
Instances For

    The rotated calibrated bank: slot k prepared at [bONₖ].

    Equations
    Instances For

      The context-generic swap-arena accounting #

      The ready preparation weights the selector-and-ready-and-bank set with the context's rate — for any context field and any probability bank. Generalises swapPrep_selReadyBank.

      ★ The context-generic dynamical Born: the outcome sector's measure is the context's rate at the preparation, for any context field and bank.

      theorem CSD.RecordLayer.prep_outcome_pos_ctx {N : } [NeZero N] (c : ContextField N) (p : LF4.CPN N) (i : Fin N) (hpos : c.rate p i 0) :

      The context-generic conditioning positivity: the outcome sector has nonzero measure whenever the context's rate does. Generalises prep_outcome_pos.

      ★ Lüders for a first measurement in any basis #

      theorem CSD.RecordLayer.rotated_swap_luders_born {N : } [NeZero N] (bON : OrthonormalBasis (Fin N) (EuclideanSpace (Fin N))) {ψ : EuclideanSpace (Fin N)} (hψ0 : ψ 0) ( : ψ = 1) (i : Fin N) (hpos : inner (bON i) ψ ^ 2 0) (c' : ContextField N) (j : Fin N) :

      ★ The rotated Lüders update. First measurement in the basis bON (selector = the rotated context's basins, bank calibrated on the rotated vertices), conditioned on outcome i: the follow-up outcome-j probability for any context field c' is the collapsed state's rate c'.rate [bONᵢ] j.

      ★★ The covariance law, in closure form #

      The rotated measurement closure: the six dynamical facts for a first measurement in the orthonormal basis bON.

      Instances For

        ★★ The unitary-covariance law: the measurement closure holds for every orthonormal basis and every state — the apparatus basis is a parameter of the context field, not a preferred structure of Σ.