Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

DPS 2PA same-pair and crossing-pair conditional information

Open
QAlgorithms.Papers.Independent.Intake100.P92.dps_information

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

prove2quantum

Work in the source's normalized leading-order ancilla model for μt≪1\mu t\ll1μt≪1, retaining Bob's vacuum and single-photon sectors. Fix one repeated one-pulse or disjoint-pair strategy; the same ancilla data are used in each copy. All ancillary vectors are unit vectors, all stated vacuum overlaps are complex equalities, and every specified conditional visibility is tested separately and equals V∈[0,1]V\in[0,1]V∈[0,1]. The bit error parameter is Q∈[0,1]Q\in[0,1]Q∈[0,1] when independently applicable. Bits are uniform; Eve retains the public pairing flag and quantum memory. The signed one-way Devetak–Winter expression assumes ideal error correction and the source's per-slot apparatus prefactors. This is an exact statement about this normalized model, without a finite-loss realization or remainder assertion.

For μ≥0\mu\ge0μ≥0, use twelve unit ancilla vectors indexed by phase signs σ,ω∈{+1,−1}\sigma,\omega\in\{+1,-1\}σ,ω∈{+1,−1}. Vacuum overlaps are e−2μdH(x,y)e^{-2\mu d_H(x,y)}e−2μdH​(x,y); impose every within-pair and crossing visibility in (37)–(39). For a same-pair event, let ψσωb=σpσω10+(−1)bωpσω01\psi_{\sigma\omega b}=\sigma p_{\sigma\omega}^{10}+(-1)^b\omega p_{\sigma\omega}^{01}ψσωb​=σpσω10​+(−1)bωpσω01​. For a crossing event, let ψ=ω(pσω01⊗vσ′ω′)+(−1)bσ′(vσω⊗pσ′ω′10)\psi=\omega(p_{\sigma\omega}^{01}\otimes v_{\sigma'\omega'})+(-1)^b\sigma'(v_{\sigma\omega}\otimes p_{\sigma'\omega'}^{10})ψ=ω(pσω01​⊗vσ′ω′​)+(−1)bσ′(vσω​⊗pσ′ω′10​). Alice’s crossing bit is the relative phase of slots two and three.

Construct the source’s same-pair and crossing marginal mixtures with projector weights 1/81/81/8 and 1/321/321/32, respectively. Each joint conditional block has trace (1+V)/2(1+V)/2(1+V)/2 when a=ba=ba=b and (1−V)/2(1-V)/2(1−V)/2 otherwise; all marginals have trace one. Thus Q=(1−V)/2Q=(1-V)/2Q=(1−V)/2. Keeping the equiprobable alignment flag gives χA=(χA(2)+χA(4))/2\chi_A=(\chi_A^{(2)}+\chi_A^{(4)})/2χA​=(χA(2)​+χA(4)​)/2 and likewise for χB\chi_BχB​, and

r0=μ[1−h((1−V)/2)−min⁡(χA,χB)].r_0=\mu[1-h((1-V)/2)-\min(\chi_A,\chi_B)].r0​=μ[1−h((1−V)/2)−min(χA​,χB​)].

The marginal Holevo quantities are computed from these actual mixtures. No equality between Alice and Bob leakages is assumed.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P92
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate

open Filter

namespace QAlgorithms.Papers.Independent.Intake100.P92

open QAlgorithms.Papers.Independent.Information100.P21 (Vec tensor)

open QAlgorithms.Papers.Independent.Information100.P75 (phase)

open QAlgorithms.Papers.Independent.Frontier18.P14
  (Fock coherentPair coherentPairCoefficients passiveApply passiveCoefficients
   fockReducedFirst reducedSecond coherentCoefficient)

/-- PDF pp.8–9, (34)–(43): the actual DPS conditional operators are normalized,
both alignments have QBER (1-V)/2, and their flagged information enters the
signed coefficient with min(chi_A,chi_B), without asserting these quantities equal. -/
theorem dps_information {I : Type*} [Fintype I] [DecidableEq I]
    (A : PairData I) (mu V : ℝ) (hmu : 0 ≤ mu)
    (hV : V ∈ Set.Icc (0:ℝ) 1) (hA : DpsValid A mu V) :
    (∀ a b, weightedAncillaTrace (dps2Joint A a b) = (if a = b then (1+V)/2 else (1-V)/2) ∧
      weightedAncillaTrace (dps4Joint A a b) = (if a = b then (1+V)/2 else (1-V)/2)) ∧
    (∀ a, weightedAncillaTrace (dps2A A a) = 1 ∧ weightedAncillaTrace (dps2B A a) = 1 ∧
      weightedAncillaTrace (dps4A A a) = 1 ∧ weightedAncillaTrace (dps4B A a) = 1) ∧
    dw mu ((1-V)/2) (dpsInfo A false) (dpsInfo A true) =
      mu*(1-QAlgorithms.binEntropy2 ((1-V)/2)-min (dpsInfo A false) (dpsInfo A true)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P92

end
Source
Upper Bounds for the Security of two Distributed-Phase Reference Protocols of Quantum Cryptography (Coherent-One-Way and Differential-Phase-Shift), arXiv:0710.4884v2, PDF p. 8, IV D, Eqs.(34)–(43): DPS 2PA conditional information and rate coefficient
Read-back

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

Let III be any finite type with decidable equality, let A=(vx,px,c)A=(v_x,p_{x,c})A=(vx​,px,c​) consist of complex vectors indexed by III, where xxx is a Boolean pair and ccc is Boolean, and let μ,V∈R\mu,V\in\mathbb Rμ,V∈R satisfy μ≥0\mu\ge0μ≥0 and 0≤V≤10\le V\le10≤V≤1. Assume every vxv_xvx​ and px,cp_{x,c}px,c​ has norm 111, and, for all Boolean pairs x,yx,yx,y,

⟨vx,vy⟩C=exp⁡ ⁣(−2μ d(x,y)),Re⁡⟨px,true,px,false⟩C=V,Re⁡ ⁣(⟨vx,px,true⟩C⟨py,false,vy⟩C)=V,\begin{aligned} \langle v_x,v_y\rangle_{\mathbb C} &=\exp\!\bigl(-2\mu\,d(x,y)\bigr),\\ \operatorname{Re}\langle p_{x,\mathrm{true}},p_{x,\mathrm{false}}\rangle_{\mathbb C} &=V,\\ \operatorname{Re}\!\left( \langle v_x,p_{x,\mathrm{true}}\rangle_{\mathbb C} \langle p_{y,\mathrm{false}},v_y\rangle_{\mathbb C} \right)&=V, \end{aligned}⟨vx​,vy​⟩C​Re⟨px,true​,px,false​⟩C​Re(⟨vx​,px,true​⟩C​⟨py,false​,vy​⟩C​)​=exp(−2μd(x,y)),=V,=V,​

where d(x,y)d(x,y)d(x,y) counts the coordinates in which the two Boolean pairs differ. Set σ(false)=1\sigma(\mathrm{false})=1σ(false)=1, σ(true)=−1\sigma(\mathrm{true})=-1σ(true)=−1, and define

F2(s,w,b)(i)=σ(s)p(s,w),false(i)+σ(b)σ(w)p(s,w),true(i),F4(s,w,u,v,b)(i,j)=σ(w)p(s,w),true(i)v(u,v)(j)+σ(b)σ(u)v(s,w)(i)p(u,v),false(j),J2a,b(s)=F2(s,s⊕a,b)/8,J4a,b(s,w,v)=F4(s,w,w⊕a,v,b)/32,E2Aa(s,b)=F2(s,s⊕a,b)/8,E2Bb(s,w)=F2(s,w,b)/8,E4Aa(s,w,v,b)=F4(s,w,w⊕a,v,b)/32,E4Bb(s,w,u,v)=F4(s,w,u,v,b)/32,\begin{aligned} F_2(s,w,b)(i) &=\sigma(s)p_{(s,w),\mathrm{false}}(i) +\sigma(b)\sigma(w)p_{(s,w),\mathrm{true}}(i),\\ F_4(s,w,u,v,b)(i,j) &=\sigma(w)p_{(s,w),\mathrm{true}}(i)v_{(u,v)}(j) +\sigma(b)\sigma(u)v_{(s,w)}(i)p_{(u,v),\mathrm{false}}(j),\\ J_2^{a,b}(s)&=F_2(s,s\oplus a,b)/\sqrt8,\\ J_4^{a,b}(s,w,v)&=F_4(s,w,w\oplus a,v,b)/\sqrt{32},\\ E_{2A}^{a}(s,b)&=F_2(s,s\oplus a,b)/\sqrt8,& E_{2B}^{b}(s,w)&=F_2(s,w,b)/\sqrt8,\\ E_{4A}^{a}(s,w,v,b)&=F_4(s,w,w\oplus a,v,b)/\sqrt{32},& E_{4B}^{b}(s,w,u,v)&=F_4(s,w,u,v,b)/\sqrt{32}, \end{aligned}F2​(s,w,b)(i)F4​(s,w,u,v,b)(i,j)J2a,b​(s)J4a,b​(s,w,v)E2Aa​(s,b)E4Aa​(s,w,v,b)​=σ(s)p(s,w),false​(i)+σ(b)σ(w)p(s,w),true​(i),=σ(w)p(s,w),true​(i)v(u,v)​(j)+σ(b)σ(u)v(s,w)​(i)p(u,v),false​(j),=F2​(s,s⊕a,b)/8​,=F4​(s,w,w⊕a,v,b)/32​,=F2​(s,s⊕a,b)/8​,=F4​(s,w,w⊕a,v,b)/32​,​E2Bb​(s,w)E4Bb​(s,w,u,v)​=F2​(s,w,b)/8​,=F4​(s,w,u,v,b)/32​,​

with ⊕\oplus⊕ denoting exclusive-or. For every Boolean a,ba,ba,b, the theorem asserts

∑s∥J2a,b(s)∥2=∑s,w,v∥J4a,b(s,w,v)∥2={(1+V)/2,a=b,$1−V)/2,a≠b,\sum_s\|J_2^{a,b}(s)\|^2 =\sum_{s,w,v}\|J_4^{a,b}(s,w,v)\|^2 =\begin{cases}(1+V)/2,&a=b,\$1-V)/2,&a\ne b,\end{cases}s∑​∥J2a,b​(s)∥2=s,w,v∑​∥J4a,b​(s,w,v)∥2={(1+V)/2,​a=b,$1−V)/2,​a=b,​

and, for every Boolean (a$,

∑s,b∥E2Aa(s,b)∥2=∑s,w∥E2Ba(s,w)∥2=∑s,w,v,b∥E4Aa(s,w,v,b)∥2=∑s,w,u,v∥E4Ba(s,w,u,v)∥2=1.\sum_{s,b}\|E_{2A}^{a}(s,b)\|^2 =\sum_{s,w}\|E_{2B}^{a}(s,w)\|^2 =\sum_{s,w,v,b}\|E_{4A}^{a}(s,w,v,b)\|^2 =\sum_{s,w,u,v}\|E_{4B}^{a}(s,w,u,v)\|^2=1.s,b∑​∥E2Aa​(s,b)∥2=s,w∑​∥E2Ba​(s,w)∥2=s,w,v,b∑​∥E4Aa​(s,w,v,b)∥2=s,w,u,v∑​∥E4Ba​(s,w,u,v)∥2=1.

For a finite vector family xxx, define H(x)=Re⁡tr⁡f(Gx)H(x)=\operatorname{Re}\operatorname{tr}f(G_x)H(x)=Retrf(Gx​), where Gx(r,t)=⟨xr,xt⟩CG_x(r,t)=\langle x_r,x_t\rangle_{\mathbb C}Gx​(r,t)=⟨xr​,xt​⟩C​, f(z)=−zlog⁡z/log⁡2f(z)=-z\log z/\log2f(z)=−zlogz/log2, f(0)=0f(0)=0f(0)=0, and matrix evaluation uses continuous functional calculus; define χ(x,y)=H((x/2,y/2))−H(x)/2−H(y)/2\chi(x,y)=H((x/\sqrt2,y/\sqrt2))-H(x)/2-H(y)/2χ(x,y)=H((x/2​,y/2​))−H(x)/2−H(y)/2, with the two scaled families indexed disjointly. Let

χA=χ(E2Afalse,E2Atrue)+χ(E4Afalse,E4Atrue)2,χB=χ(E2Bfalse,E2Btrue)+χ(E4Bfalse,E4Btrue)2.\chi_A=\frac{\chi(E_{2A}^{\mathrm{false}},E_{2A}^{\mathrm{true}}) +\chi(E_{4A}^{\mathrm{false}},E_{4A}^{\mathrm{true}})}2,\qquad \chi_B=\frac{\chi(E_{2B}^{\mathrm{false}},E_{2B}^{\mathrm{true}}) +\chi(E_{4B}^{\mathrm{false}},E_{4B}^{\mathrm{true}})}2.χA​=2χ(E2Afalse​,E2Atrue​)+χ(E4Afalse​,E4Atrue​)​,χB​=2χ(E2Bfalse​,E2Btrue​)+χ(E4Bfalse​,E4Btrue​)​.

Finally, for D(s,Q,cA,cB)=s(1−h2(Q)−min⁡(cA,cB))D(s,Q,c_A,c_B)=s(1-h_2(Q)-\min(c_A,c_B))D(s,Q,cA​,cB​)=s(1−h2​(Q)−min(cA​,cB​)), where h2(Q)h_2(Q)h2​(Q) is the binary entropy in bits, it asserts

D ⁣(μ,1−V2,χA,χB)=μ(1−h2 ⁣(1−V2)−min⁡(χA,χB)).D\!\left(\mu,\frac{1-V}{2},\chi_A,\chi_B\right) =\mu\left(1-h_2\!\left(\frac{1-V}{2}\right)-\min(\chi_A,\chi_B)\right).D(μ,21−V​,χA​,χB​)=μ(1−h2​(21−V​)−min(χA​,χB​)).

The endpoints μ=0\mu=0μ=0, V=0V=0V=0, and V=1V=1V=1 are included; if III is empty, the unit-norm hypotheses cannot hold.

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