Empirical/QM: BB84 quantum-key-distribution security (intercept-resend QBER) #
Category: 3-Local (QM-validity content, no CSD ontology).
BB84 (Bennett-Brassard 1984) encodes each bit in one of four states drawn from two mutually-unbiased bases:
- Z basis:
|0⟩,|1⟩; - X basis:
|+⟩ = (|0⟩+|1⟩)/√2,|−⟩ = (|0⟩−|1⟩)/√2.
An eavesdropper (Eve) who intercepts, measures, and resends cannot avoid disturbing the channel whenever she guesses the basis wrong, because the Z and X states are non-orthogonal. This is the information-disturbance tradeoff that makes eavesdropping detectable.
What this delivers (all Born-grounded) #
The Born transition probability is bornProb a b = ‖⟨a|b⟩‖², a genuine
probability for unit vectors. On the canonical sifted round (Alice sends |0⟩ in
Z, Bob reads Z, Bob's error is the |1⟩ outcome):
bb84_intercept_resend_right_basis— Eve in the matching (Z) basis injects no error:irErrorZ0 zBasis = 0(1·0 + 0·1). She learns the bit for free.bb84_intercept_resend_wrong_basis— Eve in the wrong (X) basis injects error ½:irErrorZ0 xBasis = 1/2((½)(½) + (½)(½)).bb84_qber— the headline QBER: averaging over Eve's uniformly random basis choice,(½)·0 + (½)·(½) = 1/4. This is the ¼ sifted-key error rate that reveals intercept-resend eavesdropping.bb84_no_eavesdrop_error_zero— the honest baselinebornProb |1⟩ |0⟩ = 0: with no Eve, Bob's sifted bit equals Alice's.bb84_eavesdropping_detectable—1/4 > 0: the QBER strictly rises under intercept-resend, so eavesdropping is detectable.bb84_states_nonorthogonal—⟨0|+⟩ = (√2)⁻¹ ≠ 0: the root cause. Non-orthogonal states cannot be perfectly distinguished, so Eve cannot measure without disturbing.
Honest scope #
This proves the intercept-resend QBER, its detectability, and the
non-orthogonality disturbance root, all Born-grounded via ‖⟨a|b⟩‖². The
intercept-resend error is modelled as a classical marginal over Eve's
measurement outcome (Eve gets outcome k with Born probability
bornProb (E k) |0⟩, resends the eigenstate E k, and Bob then errs with Born
probability bornProb |1⟩ (E k)); no measurement-update / collapse operator is
needed for this content.
The full composable finite-key security, phrased via a measurement-update
(collapse) operator, remains out of scope — the same LF5 gate noted in
Empirical/QM/Resources/Teleportation.lean (the measurement step proper: collapse
of a superposition to a single classical outcome). This mirrors the E91 tranche,
which obtained finite-key confidence via CHSH concentration
(Crypto/E91FiniteKey.lean) rather than a collapse operator. Nothing beyond the
intercept-resend model is claimed here.
References #
- Bennett, Brassard 1984, Proc. IEEE Int. Conf. Computers, Systems and Signal Processing, 175 ("Quantum cryptography: Public key distribution and coin tossing"). The ¼ intercept-resend QBER is the standard eavesdropping signature.
- Cross-links:
Empirical/QM/Crypto/E91KeyRate.lean(device-independent key rate),Empirical/QM/Crypto/E91FiniteKey.lean(finite-key via concentration),Empirical/QM/Crypto/QuantumMoney.lean(the same single-qubit BB84-state idiom),Empirical/QM/QuantumEraser.lean(Born probability from an amplitude),Empirical/QM/Protocols/Basic.lean(SecurityBound). specs/future-work.md— QKD security-model tranche (composable finite-key).
The four BB84 states #
Z-basis state |0⟩ = e₀.
Equations
Instances For
Z-basis state |1⟩ = e₁.
Equations
Instances For
X-basis state |+⟩ = (e₀ + e₁)/√2.
Equations
- CSD.Empirical.BB84.ketPlus = (↑√2)⁻¹ • (EuclideanSpace.single 0 1 + EuclideanSpace.single 1 1)
Instances For
X-basis state |−⟩ = (e₀ − e₁)/√2.
Equations
- CSD.Empirical.BB84.ketMinus = (↑√2)⁻¹ • (EuclideanSpace.single 0 1 - EuclideanSpace.single 1 1)
Instances For
The Born transition probability bornProb a b = ‖⟨a|b⟩‖². A genuine
probability for unit vectors (= |⟨a|b⟩|²).
Instances For
Born probability is symmetric: bornProb a b = bornProb b a. From
inner_conj_symm (⟨a,b⟩ = conj ⟨b,a⟩) and Complex.norm_conj.
Inner products of the BB84 states #
Born transition probabilities #
The intercept-resend eavesdropping model #
Eve's two measurement bases as Fin 2 → EuclideanSpace ℂ (Fin 2).
Instances For
Eve's X-basis eigenstates.
Instances For
Intercept-resend error probability on the canonical sifted round (Alice
sends |0⟩ in Z, Bob reads Z, error = the |1⟩ outcome). A classical marginal
over Eve's outcome k: Eve gets k with Born probability bornProb (E k) |0⟩,
resends the eigenstate E k, and Bob then errs with Born probability
bornProb |1⟩ (E k).
Equations
Instances For
Protocols.SecurityBound tie #
The per-signal disturbance rate Eve induces in the mismatched (X) basis,
recorded as a Protocols.SecurityBound with ε = 1/2. The honest reading:
"in the mismatched case Eve's tampering flips the sifted bit with probability
½" (equivalently, her per-signal guessing advantage saturates at ½). A minimal
stand-in, not a min-entropy / composable accounting.
Equations
- CSD.Empirical.BB84.bb84Security = { ε := 1 / 2, ε_nonneg := CSD.Empirical.BB84.bb84Security._proof_1, ε_le_one := CSD.Empirical.BB84.bb84Security._proof_2 }