Empirical/QM: E91 device-independent asymptotic secret-key rate #
Category: 3-Local (QM-validity content, no CSD ontology).
Builds the key-rate layer on top of the E91 certification
(Crypto/E91.lean): from a certified CHSH value S ∈ (2, 2√2] it produces the
standard device-independent one-way asymptotic secret-key rate and ties it
to the reusable Protocols interface.
The bound #
The collective-attack DIQKD key rate (Acín–Brunner–Gisin–Massar–Pironio–Scarani 2007; Pironio et al. 2009) is
r(S) = 1 − h₂( (1 + √((S/2)² − 1)) / 2 ),
with h₂ the base-2 binary entropy. Mathlib's Real.binEntropy is the
nat-based entropy (binEntropy 2⁻¹ = log 2, not 1), so the base-2 form
used here is Real.binEntropy · / Real.log 2 — this is the only deviation from
the spec's literal 1 − Real.binEntropy … formula and is forced by the unit
convention (r(2) = 0 requires h₂(1/2) = 1, a base-2 fact).
What this delivers #
e91KeyRate— the rater(S)(base-2 normalised).e91_key_rate_pos_of_chsh— the headline: any CHSH violation2 < S ≤ 2√2(above the LHV ceiling oflhvCHSH_abs_le_two) gives a strictly positive secret-key rate, hence an extractable key. Unconditional (no binEntropy-monotonicity hypothesis): the positivity reduces toReal.binEntropy_lt_log_twoat the argument≠ 1/2.e91_key_rate_zero_at_classical/e91_key_rate_one_at_tsirelson— the boundary valuesr(2) = 0(classical bound, no key) andr(2√2) = 1(Tsirelson, a full secret bit).e91Protocol,e91_protocol_secure,e91_chsh_certifies_secure_key— theProtocols.RealProtocolinstantiation tying the rate to the reusable security interface and to the LHV ceilinge91_eavesdropper_chsh_le_two(=lhvCHSH_abs_le_two).e91_eavesdropper_advantage— the LHV/eavesdropper CHSH advantage (normalised by Tsirelson2√2) is bounded by the protocol'sSecurityBound.ε = 1/√2, grounded inlhvCHSH_abs_le_two. This is what makesSecurityBoundload-bearing rather than decorative.
Honest scope #
This is the asymptotic (collective-attack, i.i.d.) DI key rate. The
finite-key correction (smoothing / concentration, min-entropy accounting) is a
separate later tranche and is not proved here. The device-independence
rests on lhvCHSH_abs_le_two (the LHV/eavesdropper CHSH bound proved in
Crypto/E91.lean); the rate formula itself is the standard DIQKD bound, imported
as a definition, not re-derived from a finite-key security analysis.
Source #
Acín, Brunner, Gisin, Massar, Pironio, Scarani 2007, Phys. Rev. Lett. 98, 230501; Pironio et al. 2009, New J. Phys. 11, 045021; Ekert 1991, Phys. Rev. Lett. 67, 661.
The E91 device-independent asymptotic secret-key rate at CHSH value S:
r(S) = 1 − h₂((1 + √((S/2)² − 1))/2), with h₂ the base-2 binary entropy
(Real.binEntropy · / Real.log 2). See the module docstring for the
nat-vs-bit normalisation.
Equations
Instances For
The classical bound gives no key. At the local-realistic ceiling
S = 2 the rate vanishes: r(2) = 0. (Argument = 1/2, h₂(1/2) = 1.)
Tsirelson gives a full secret bit. At the quantum maximum S = 2√2 the
rate is r(2√2) = 1. (Argument = 1, h₂(1) = 0.)
Headline: a CHSH violation yields a positive secret-key rate. For any
certified CHSH value 2 < S ≤ 2√2 — strictly above the local-hidden-variable
ceiling 2 of lhvCHSH_abs_le_two — the asymptotic DI key rate is strictly
positive, so a genuine secret key is extractable.
Positivity uses only 2 < S; hS' is the physical Tsirelson fence, not
load-bearing for positivity. The argument (1 + √((S/2)² − 1))/2 is > 1/2
(since S > 2 ⟹ (S/2)² > 1 ⟹ √(…) > 0), so Real.binEntropy_lt_log_two gives
h < log 2 at the argument ≠ 1/2, hence h / log 2 < 1 and
r = 1 − h/log 2 > 0. No binEntropy-monotonicity fact is assumed. The
hypothesis hS' (S ≤ 2√2) records the physical constraint that CHSH cannot
exceed the Tsirelson bound; it is exactly the domain on which the argument is a
valid probability ≤ 1 (harg_le below). It is kept for physical faithfulness;
the strictly stronger statement (2 < S) → 0 < e91KeyRate S also holds.
The reusable Protocols instantiation #
The eavesdropper's security bound for the E91 protocol: the classical (LHV)
CHSH ceiling 2 normalised by the Tsirelson value 2√2 to a [0,1] advantage,
ε = 1/√2. The honest reading is "no local eavesdropper reproduces a CHSH
fraction above 1/√2"; the quantum protocol exceeds it. A minimal stand-in, not
a min-entropy accounting.
Equations
- CSD.Empirical.QM.E91.e91Security = { ε := 1 / √2, ε_nonneg := CSD.Empirical.QM.E91.e91Security._proof_1, ε_le_one := CSD.Empirical.QM.E91.e91Security._proof_2 }
Instances For
The E91 device-independent protocol at observed CHSH value S, packaged as
a Protocols.RealProtocol: asymptotic key rate e91KeyRate S with the LHV
security bound e91Security.
Equations
- CSD.Empirical.QM.E91.e91Protocol S = { keyRate := CSD.Empirical.QM.E91.e91KeyRate S, security := CSD.Empirical.QM.E91.e91Security }
Instances For
The LHV/eavesdropper CHSH ceiling, re-exported as the E91 certification
premise: any local-hidden-variable eavesdropper has |S| ≤ 2, so an observed
S > 2 certifies the channel. Direct theorem-level reuse of
lhvCHSH_abs_le_two.
The eavesdropper's advantage is bounded by the protocol's SecurityBound.
Any local-hidden-variable eavesdropper's CHSH value, normalised by the Tsirelson
maximum 2√2 to a [0,1] advantage fraction, is bounded by the protocol's
declared security bound (e91Protocol S).security.ε = 1/√2. This is the genuine
consumer that makes SecurityBound/RealProtocol.security load-bearing: the
field is not decoration, it is a proved upper bound on the LHV/eavesdropper
advantage, grounded in lhvCHSH_abs_le_two (lhvCHSH ≤ |lhvCHSH| ≤ 2,
divided by the positive 2√2, with 2/(2√2) = 1/√2), not asserted.
The E91 protocol at a certified CHSH violation is secure. For
2 < S ≤ 2√2, the RealProtocol e91Protocol S has a positive key rate, i.e.
RealProtocol.secure. Immediate from e91_key_rate_pos_of_chsh.
CHSH-to-key-rate capstone (assembled DI tie). A certified CHSH violation
2 < S ≤ 2√2 simultaneously: (1) certifies the channel against every
local-hidden-variable eavesdropper — the proved ceiling |S| ≤ 2
(lhvCHSH_abs_le_two), which S > 2 exceeds — and (2) yields a secure E91
RealProtocol (positive key rate) that emulates any ideal key length over enough
signals. The LHV bound is a theorem-level conjunct here (not a prose remark): the
certification and the positive key rate are one assembled statement. Ties the
key-rate layer to the reusable Protocols interface (secure, emulates,
secure_emulates).