Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Forward BB84 Bell-diagonal family with physical coefficients

Open
QAlgorithms.Papers.Independent.Intake100.P90.bb84_bellFamily

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

For any normalized two-qubit input ρ\rhoρ, form the BB84 equal-basis average D1(ρ)=12[ρ+(H⊗H)ρ(H⊗H)†]\mathcal D_1(\rho)=\frac12[\rho+(H\otimes H)\rho(H\otimes H)^\dagger]D1​(ρ)=21​[ρ+(H⊗H)ρ(H⊗H)†], followed by the uniform bilateral Pauli average σ=D2(D1(ρ))\sigma=\mathcal D_2(\mathcal D_1(\rho))σ=D2​(D1​(ρ)). Let QQQ be its computational-basis disagreement probability. The output is a normalized density matrix, 0≤Q≤10\le Q\le10≤Q≤1, and there exists ttt such that

0≤t≤min⁡(Q,1−Q),σ=(1−Q−t)PΦ++tPΦ−+tPΨ++(Q−t)PΨ−.0\le t\le\min(Q,1-Q),\qquad \sigma=(1-Q-t)P_{\Phi^+}+tP_{\Phi^-}+tP_{\Psi^+}+(Q-t)P_{\Psi^-}.0≤t≤min(Q,1−Q),σ=(1−Q−t)PΦ+​+tPΦ−​+tPΨ+​+(Q−t)PΨ−​.

On the conventional branch Q≤1/2Q\le1/2Q≤1/2, the parameter interval reduces to the printed 0≤t≤Q0\le t\le Q0≤t≤Q. This forward representation reduces the input state's parameters; it makes no converse assertion that every ttt is achieved by a prescribed attack.

Formalization Note The free source parameter λ1\lambda_1λ1​ is called ttt. Nonnegativity of 1−Q−t1-Q-t1−Q−t requires t≤1−Qt\le1-Qt≤1−Q. The plan's proposed extension max⁡(0,2Q−1)≤t≤Q\max(0,2Q-1)\le t\le Qmax(0,2Q−1)≤t≤Q is incorrect; the singlet at Q=1,t=0Q=1,t=0Q=1,t=0 is a counterexample to that extension.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P90
Formal statement
noncomputable section

open scoped ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Intake100.P90

/-- PDF p.4: forward family representation after BB84 D1 then D2, with Q
computed from the actual output. Physical coefficients are all nonnegative;
on the conventional Q<=1/2 branch the extra lower bound is automatic.
The source's free parameter lambda_1 is renamed t to avoid confusing it
with the first Bell weight. No claim that every parameter is attainable. -/
theorem bb84_bellFamily (rho : PairOp) (hrho : IsDensityMatrix rho) :
    let sigma := pairTwirl (bb84BasisAverage rho)
    let Q := sourceZDisagreement sigma
    IsDensityMatrix sigma ∧ 0 ≤ Q ∧ Q ≤ 1 ∧
    ∃ t : ℝ, 0 ≤ t ∧ t ≤ min Q (1 - Q) ∧
      sigma = sourceBellDiagonal ![1 - Q - t, t, t, Q - t] := by sorry

end QAlgorithms.Papers.Independent.Intake100.P90

end
Source
Lower and upper bounds on the secret key rate for QKD protocols using one--way classical communication, arXiv:quant-ph/0410215v2, PDF p. 4, Unnumbered BB84 Bell-diagonal family
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let ρ\rhoρ be a complex matrix indexed by Boolean pairs that is positive semidefinite and has trace 111. Identify false and true with 000 and 111, put H=2−1/2(111−1)H=2^{-1/2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H=2−1/2(11​1−1​), and define τ=12(ρ+(H⊗H)ρ(H⊗H)†)\tau=\frac12\bigl(\rho+(H\otimes H)\rho(H\otimes H)^\dagger\bigr)τ=21​(ρ+(H⊗H)ρ(H⊗H)†). Set P0=I2P_0=I_2P0​=I2​, P1=diag⁡(1,−1)P_1=\operatorname{diag}(1,-1)P1​=diag(1,−1), P2=(0110)P_2=\begin{pmatrix}0&1\\1&0\end{pmatrix}P2​=(01​10​), P3=P1P2P_3=P_1P_2P3​=P1​P2​, and

σ=14∑ℓ=03(Pℓ⊗Pℓ)τ(Pℓ⊗Pℓ)†,Q=Re⁡σ01,01+Re⁡σ10,10.\sigma=\frac14\sum_{\ell=0}^3(P_\ell\otimes P_\ell)\tau(P_\ell\otimes P_\ell)^\dagger, \qquad Q=\operatorname{Re}\sigma_{01,01}+\operatorname{Re}\sigma_{10,10}.σ=41​ℓ=0∑3​(Pℓ​⊗Pℓ​)τ(Pℓ​⊗Pℓ​)†,Q=Reσ01,01​+Reσ10,10​.

Then σ\sigmaσ is positive semidefinite with trace 111, 0≤Q≤10\le Q\le10≤Q≤1, and there exists a real number ttt satisfying 0≤t≤min⁡(Q,1−Q)0\le t\le\min(Q,1-Q)0≤t≤min(Q,1−Q) such that σ=(1−Q−t)β0β0†+tβ1β1†+tβ2β2†+(Q−t)β3β3†\sigma=(1-Q-t)\beta_0\beta_0^\dagger+t\beta_1\beta_1^\dagger+t\beta_2\beta_2^\dagger+(Q-t)\beta_3\beta_3^\daggerσ=(1−Q−t)β0​β0†​+tβ1​β1†​+tβ2​β2†​+(Q−t)β3​β3†​, where β0=(∣00⟩+∣11⟩)/2\beta_0=(|00\rangle+|11\rangle)/\sqrt2β0​=(∣00⟩+∣11⟩)/2​, β1=(∣00⟩−∣11⟩)/2\beta_1=(|00\rangle-|11\rangle)/\sqrt2β1​=(∣00⟩−∣11⟩)/2​, β2=(∣01⟩+∣10⟩)/2\beta_2=(|01\rangle+|10\rangle)/\sqrt2β2​=(∣01⟩+∣10⟩)/2​, and β3=(∣10⟩−∣01⟩)/2\beta_3=(|10\rangle-|01\rangle)/\sqrt2β3​=(∣10⟩−∣01⟩)/2​, with ∣ab⟩|ab\rangle∣ab⟩ the coordinate vector at (a,b)(a,b)(a,b) and †\dagger† denoting conjugate transpose. The existence claim does not assert uniqueness of ttt; the endpoints Q=0Q=0Q=0 and Q=1Q=1Q=1 are included and force t=0t=0t=0.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me