Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ideal-visibility leading attacks agree with asymptotic BSA information and rates

Open
QAlgorithms.Papers.Independent.Intake100.P92.ideal_visibility_reduction

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, specialize to V=1V=1V=1 and Q=0Q=0Q=0 (in DPS the latter follows from visibility). Unit-overlap constraints force the monitored photon vectors to equal their vacuum companions up to a removable common phase. Define

HC=h((1−e−μ)/2),HD=2h((1−e−2μ)/2)−h((1−e−4μ)/2).H_C=h((1-e^{-\mu})/2),\qquad H_D=2h((1-e^{-2\mu})/2)-h((1-e^{-4\mu})/2).HC​=h((1−e−μ)/2),HD​=2h((1−e−2μ)/2)−h((1−e−4μ)/2).

For COW and COWm1 2PA and COWm2 1PA, both conditional Holevo quantities are HCH_CHC​ and the per-tηt\etatη coefficient is μ(1−HC)/2\mu(1-H_C)/2μ(1−HC​)/2. For DPS 1PA and 2PA both Holevo quantities are HDH_DHD​, with coefficient μ(1−HD)\mu(1-H_D)μ(1−HD​). The Gram constraints retain the corresponding BSA vacuum-overlap geometry; COWm2 has ∣⟨v0,pμ⟩∣2=e−μ|\langle v_0,p_\mu\rangle|^2=e^{-\mu}∣⟨v0​,pμ​⟩∣2=e−μ. This is agreement within the normalized leading model, not equality between exact finite-loss and truncated optical transformations.

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)

/-- Section IV E p.9 and Appendix E pp.17–18: ideal-visibility ancilla Gram
reduction and information/rate agreement with the asymptotic BSA. This does
not equate an exact finite-t unitary with the truncated leading-order maps. -/
theorem ideal_visibility_reduction (mu : ℝ) (hmu : 0 ≤ mu) :
    (∀ (I : Type*) [Fintype I] [DecidableEq I] (A : PairData I),
      CowValid A mu 1 false →
      (∃ z : ℂ, ‖z‖ = 1 ∧
        (∀ a, A.p (keyPair a) a = z • A.v (keyPair a)) ∧
        ∀ b, A.p (true,true) b = z • A.v (true,true)) ∧
      cowLeak A 0 = cowIdealLeak mu ∧
      cowCoefficient A mu 0 = mu/2*(1-cowIdealLeak mu)) ∧
    (∀ (I : Type*) [Fintype I] [DecidableEq I] (A : PairData I),
      CowValid A mu 1 true → cowm1Info A 0 false = cowIdealLeak mu ∧
        cowm1Info A 0 true = cowIdealLeak mu ∧
        dw (mu/2) 0 (cowm1Info A 0 false) (cowm1Info A 0 true) =
          mu/2*(1-cowIdealLeak mu)) ∧
    (∀ (I : Type*) [Fintype I] [DecidableEq I] (A : OneData I),
      CowOneValid A mu 1 →
      (∃ z : ℂ, ‖z‖ = 1 ∧ A.p true = z • A.v true) ∧
      Complex.normSq (inner ℂ (A.v false) (A.p true)) = Real.exp (-mu) ∧
      binaryHolevoBits (cowA (oneToPair A) 0 false) (cowA (oneToPair A) 0 true) = cowIdealLeak mu ∧
      dw (mu/2) 0 (cowIdealLeak mu) (cowIdealLeak mu) = mu/2*(1-cowIdealLeak mu)) ∧
    (∀ (I : Type*) [Fintype I] [DecidableEq I] (A : PairData I), DpsValid A mu 1 →
      (∃ z : ℂ, ‖z‖ = 1 ∧ ∀ x b, A.p x b = z • A.v x) ∧
      dpsInfo A false = dpsIdealLeak mu ∧ dpsInfo A true = dpsIdealLeak mu ∧
      dw mu 0 (dpsInfo A false) (dpsInfo A true) = mu*(1-dpsIdealLeak mu)) ∧
    (∀ (I : Type*) [Fintype I] [DecidableEq I] (A : OneData I), DpsOneValid A mu 1 →
      (∃ z : ℂ, ‖z‖ = 1 ∧ ∀ s, A.p s = z • A.v s) ∧
      binaryHolevoBits (dps1A A false) (dps1A A true) = dpsIdealLeak mu ∧
      binaryHolevoBits (dps1B A false) (dps1B A true) = dpsIdealLeak mu ∧
      dw mu 0 (binaryHolevoBits (dps1A A false) (dps1A A true))
        (binaryHolevoBits (dps1B A false) (dps1B A true)) = mu*(1-dpsIdealLeak mu)) := 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. 9, IV E / Appendix E: ideal-visibility attacks reduce to the asymptotic BSA
Read-back

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

Let μ≥0\mu\ge0μ≥0, write bits as 0,10,10,1, put ϵs=(−1)s\epsilon_s=(-1)^sϵs​=(−1)s, and let ⊕\oplus⊕ denote exclusive-or. Let H2H_2H2​ be binary entropy in bits, with its endpoint values defined by 0log⁡0=00\log0=00log0=0, and set

LC=H2((1−e−μ)/2),LD=2H2((1−e−2μ)/2)−H2((1−e−4μ)/2).L_C=H_2((1-e^{-\mu})/2),\qquad L_D=2H_2((1-e^{-2\mu})/2)-H_2((1-e^{-4\mu})/2).LC​=H2​((1−e−μ)/2),LD​=2H2​((1−e−2μ)/2)−H2​((1−e−4μ)/2).

For every finite vector family xxx, define S(x)S(x)S(x) as the sum of −λlog⁡λ/log⁡2-\lambda\log\lambda/\log2−λlogλ/log2 over the eigenvalues of its Gram matrix (⟨xi,xj⟩)(\langle x_i,x_j\rangle)(⟨xi​,xj​⟩), counting multiplicity and assigning 000 at λ=0\lambda=0λ=0; define χ(x,y)=S((xi/2)i,(yi/2)i)−S(x)/2−S(y)/2\chi(x,y)=S((x_i/\sqrt2)_i,(y_i/\sqrt2)_i)-S(x)/2-S(y)/2χ(x,y)=S((xi​/2​)i​,(yi​/2​)i​)−S(x)/2−S(y)/2, using concatenation in the first term, and D(r,Q,cA,cB)=r(1−H2(Q)−min⁡(cA,cB))D(r,Q,c_A,c_B)=r(1-H_2(Q)-\min(c_A,c_B))D(r,Q,cA​,cB​)=r(1−H2​(Q)−min(cA​,cB​)). Tensor products below have coordinates (u⊗v)i,j=uivj(u\otimes v)_{i,j}=u_i v_j(u⊗v)i,j​=ui​vj​. Every assertion that follows is universally quantified over any finite type III with decidable equality and the indicated vector data in CI\mathbb C^ICI. For pair-indexed data vx,px,bv_x,p_{x,b}vx​,px,b​, where x=(x1,x2)x=(x_1,x_2)x=(x1​,x2​) is a bit pair and bbb is a bit, write κa=(1−a,a)\kappa_a=(1-a,a)κa​=(1−a,a), and define the following zero-error families:

Ca(b)=1a=bpκa,b,Eb(a)=1a=bpκa,b,C_a(b)=\mathbf1_{a=b}p_{\kappa_a,b},\qquad E_b(a)=\mathbf1_{a=b}p_{\kappa_a,b},Ca​(b)=1a=b​pκa​,b​,Eb​(a)=1a=b​pκa​,b​, Ka(l,r,c)=1a=c2{v(l,1−a)⊗p(a,r),0,c=1,p(l,1−a),1⊗v(a,r),c=0,K_a(l,r,c)=\frac{\mathbf1_{a=c}}2 \begin{cases} v_{(l,1-a)}\otimes p_{(a,r),0},&c=1,\\ p_{(l,1-a),1}\otimes v_{(a,r)},&c=0, \end{cases}Ka​(l,r,c)=21a=c​​{v(l,1−a)​⊗p(a,r),0​,p(l,1−a),1​⊗v(a,r)​,​c=1,c=0,​ Lb(l,r,a)=1a=b2{v(l,1−a)⊗p(a,r),0,b=1,p(l,1−a),1⊗v(a,r),b=0.L_b(l,r,a)=\frac{\mathbf1_{a=b}}2 \begin{cases} v_{(l,1-a)}\otimes p_{(a,r),0},&b=1,\\ p_{(l,1-a),1}\otimes v_{(a,r)},&b=0. \end{cases}Lb​(l,r,a)=21a=b​​{v(l,1−a)​⊗p(a,r),0​,p(l,1−a),1​⊗v(a,r)​,​b=1,b=0.​

Thus the two modified COW information quantities at zero error are

IC,A=χ(C0,C1)+χ(K0,K1)2,IC,B=χ(E0,E1)+χ(L0,L1)2.I_{C,A}=\frac{\chi(C_0,C_1)+\chi(K_0,K_1)}2,\qquad I_{C,B}=\frac{\chi(E_0,E_1)+\chi(L_0,L_1)}2.IC,A​=2χ(C0​,C1​)+χ(K0​,K1​)​,IC,B​=2χ(E0​,E1​)+χ(L0​,L1​)​.

For pair-indexed DPS data define

F2(s,w,b)=ϵsp(s,w),0+ϵbϵwp(s,w),1,F_2(s,w,b)=\epsilon_s p_{(s,w),0}+\epsilon_b\epsilon_w p_{(s,w),1},F2​(s,w,b)=ϵs​p(s,w),0​+ϵb​ϵw​p(s,w),1​, F4(s,w,u,v,b)=ϵw(p(s,w),1⊗v(u,v))+ϵbϵu(v(s,w)⊗p(u,v),0),F_4(s,w,u,v,b)= \epsilon_w\bigl(p_{(s,w),1}\otimes v_{(u,v)}\bigr) +\epsilon_b\epsilon_u\bigl(v_{(s,w)}\otimes p_{(u,v),0}\bigr),F4​(s,w,u,v,b)=ϵw​(p(s,w),1​⊗v(u,v)​)+ϵb​ϵu​(v(s,w)​⊗p(u,v),0​), Aa(2)(s,b)=F2(s,s⊕a,b)/8,Bb(2)(s,w)=F2(s,w,b)/8,A^{(2)}_a(s,b)=F_2(s,s\oplus a,b)/\sqrt8,\qquad B^{(2)}_b(s,w)=F_2(s,w,b)/\sqrt8,Aa(2)​(s,b)=F2​(s,s⊕a,b)/8​,Bb(2)​(s,w)=F2​(s,w,b)/8​, Aa(4)(s,w,v,b)=F4(s,w,w⊕a,v,b)/32,Bb(4)(s,w,u,v)=F4(s,w,u,v,b)/32,A^{(4)}_a(s,w,v,b)=F_4(s,w,w\oplus a,v,b)/\sqrt{32},\qquad B^{(4)}_b(s,w,u,v)=F_4(s,w,u,v,b)/\sqrt{32},Aa(4)​(s,w,v,b)=F4​(s,w,w⊕a,v,b)/32​,Bb(4)​(s,w,u,v)=F4​(s,w,u,v,b)/32​,

and

ID,A=χ(A0(2),A1(2))+χ(A0(4),A1(4))2,ID,B=χ(B0(2),B1(2))+χ(B0(4),B1(4))2.I_{D,A}=\frac{\chi(A^{(2)}_0,A^{(2)}_1)+\chi(A^{(4)}_0,A^{(4)}_1)}2,\qquad I_{D,B}=\frac{\chi(B^{(2)}_0,B^{(2)}_1)+\chi(B^{(4)}_0,B^{(4)}_1)}2.ID,A​=2χ(A0(2)​,A1(2)​)+χ(A0(4)​,A1(4)​)​,ID,B​=2χ(B0(2)​,B1(2)​)+χ(B0(4)​,B1(4)​)​.

For single-bit-indexed data vs,psv_s,p_svs​,ps​, define

F1(s,w,b)=ϵs(ps⊗vw)+ϵbϵw(vs⊗pw),Aa(1)(s,b)=F1(s,s⊕a,b)/8,Bb(1)(s,a)=F1(s,s⊕a,b)/8.F_1(s,w,b)=\epsilon_s(p_s\otimes v_w)+\epsilon_b\epsilon_w(v_s\otimes p_w), \qquad A^{(1)}_a(s,b)=F_1(s,s\oplus a,b)/\sqrt8,\quad B^{(1)}_b(s,a)=F_1(s,s\oplus a,b)/\sqrt8.F1​(s,w,b)=ϵs​(ps​⊗vw​)+ϵb​ϵw​(vs​⊗pw​),Aa(1)​(s,b)=F1​(s,s⊕a,b)/8​,Bb(1)​(s,a)=F1​(s,s⊕a,b)/8​.

The theorem asserts the conjunction of these five implications: (1) if all vx,px,bv_x,p_{x,b}vx​,px,b​ have norm 111, if ⟨vx,vy⟩=e−μd(x,y)/2\langle v_x,v_y\rangle=e^{-\mu d(x,y)/2}⟨vx​,vy​⟩=e−μd(x,y)/2 whenever both x,y≠(0,0)x,y\ne(0,0)x,y=(0,0), where ddd counts differing bits, if Re⁡⟨p(1,1),1,p(1,1),0⟩=1\operatorname{Re}\langle p_{(1,1),1},p_{(1,1),0}\rangle=1Re⟨p(1,1),1​,p(1,1),0​⟩=1, and if

Re⁡(⟨v(l,1),p(l,1),1⟩⟨p(1,r),0,v(1,r)⟩)=1for every l,r,\operatorname{Re}\bigl(\langle v_{(l,1)},p_{(l,1),1}\rangle \langle p_{(1,r),0},v_{(1,r)}\rangle\bigr)=1 \quad\text{for every }l,r,Re(⟨v(l,1)​,p(l,1),1​⟩⟨p(1,r),0​,v(1,r)​⟩)=1for every l,r,

then there exists ∣z∣=1|z|=1∣z∣=1 such that pκa,a=zvκap_{\kappa_a,a}=zv_{\kappa_a}pκa​,a​=zvκa​​ for every aaa and p(1,1),b=zv(1,1)p_{(1,1),b}=zv_{(1,1)}p(1,1),b​=zv(1,1)​ for every bbb; moreover

H2 ⁣(1+∣⟨p(1,0),0,p(0,1),1⟩∣2)=LC,D(μ/2,0,χ(C0,C1),χ(E0,E1))=μ2(1−LC),H_2\!\left(\frac{1+|\langle p_{(1,0),0},p_{(0,1),1}\rangle|}{2}\right)=L_C, \qquad D(\mu/2,0,\chi(C_0,C_1),\chi(E_0,E_1)) =\frac\mu2(1-L_C),H2​(21+∣⟨p(1,0),0​,p(0,1),1​⟩∣​)=LC​,D(μ/2,0,χ(C0​,C1​),χ(E0​,E1​))=2μ​(1−LC​),

where the latter left-hand side is the defined COW coefficient at zero error, whose auxiliary flagging leaves its nonzero correct-slot vectors unchanged. (2) If the same unit-norm and visibility conditions hold and the vacuum-overlap equality is instead required for every pair x,yx,yx,y, including (0,0)(0,0)(0,0), then IC,A=IC,B=LCI_{C,A}=I_{C,B}=L_CIC,A​=IC,B​=LC​ and D(μ/2,0,IC,A,IC,B)=μ(1−LC)/2D(\mu/2,0,I_{C,A},I_{C,B})=\mu(1-L_C)/2D(μ/2,0,IC,A​,IC,B​)=μ(1−LC​)/2. (3) If single-bit data satisfy ∥vs∥=∥ps∥=1\|v_s\|=\|p_s\|=1∥vs​∥=∥ps​∥=1, ⟨v0,v1⟩=e−μ/2\langle v_0,v_1\rangle=e^{-\mu/2}⟨v0​,v1​⟩=e−μ/2, and ∣⟨v1,p1⟩∣2=1|\langle v_1,p_1\rangle|^2=1∣⟨v1​,p1​⟩∣2=1, then there exists ∣z∣=1|z|=1∣z∣=1 with p1=zv1p_1=zv_1p1​=zv1​, and ∣⟨v0,p1⟩∣2=e−μ|\langle v_0,p_1\rangle|^2=e^{-\mu}∣⟨v0​,p1​⟩∣2=e−μ; defining T0(b)=1b=0(p1⊗v0)T_0(b)=\mathbf1_{b=0}(p_1\otimes v_0)T0​(b)=1b=0​(p1​⊗v0​) and T1(b)=1b=1(v0⊗p1)T_1(b)=\mathbf1_{b=1}(v_0\otimes p_1)T1​(b)=1b=1​(v0​⊗p1​), the assertion further gives χ(T0,T1)=LC\chi(T_0,T_1)=L_Cχ(T0​,T1​)=LC​ and D(μ/2,0,LC,LC)=μ(1−LC)/2D(\mu/2,0,L_C,L_C)=\mu(1-L_C)/2D(μ/2,0,LC​,LC​)=μ(1−LC​)/2. (4) If pair-indexed data have all vectors of norm 111, satisfy ⟨vx,vy⟩=e−2μd(x,y)\langle v_x,v_y\rangle=e^{-2\mu d(x,y)}⟨vx​,vy​⟩=e−2μd(x,y) for every x,yx,yx,y, satisfy Re⁡⟨px,1,px,0⟩=1\operatorname{Re}\langle p_{x,1},p_{x,0}\rangle=1Re⟨px,1​,px,0​⟩=1 for every xxx, and satisfy Re⁡(⟨vx,px,1⟩⟨py,0,vy⟩)=1\operatorname{Re}(\langle v_x,p_{x,1}\rangle\langle p_{y,0},v_y\rangle)=1Re(⟨vx​,px,1​⟩⟨py,0​,vy​⟩)=1 for every x,yx,yx,y, then there exists one ∣z∣=1|z|=1∣z∣=1 such that px,b=zvxp_{x,b}=zv_xpx,b​=zvx​ for every x,bx,bx,b, and ID,A=ID,B=LDI_{D,A}=I_{D,B}=L_DID,A​=ID,B​=LD​ and D(μ,0,ID,A,ID,B)=μ(1−LD)D(\mu,0,I_{D,A},I_{D,B})=\mu(1-L_D)D(μ,0,ID,A​,ID,B​)=μ(1−LD​). (5) If single-bit data have all vectors of norm 111, satisfy ⟨v0,v1⟩=e−2μ\langle v_0,v_1\rangle=e^{-2\mu}⟨v0​,v1​⟩=e−2μ, and satisfy Re⁡(⟨vs,ps⟩⟨pw,vw⟩)=1\operatorname{Re}(\langle v_s,p_s\rangle\langle p_w,v_w\rangle)=1Re(⟨vs​,ps​⟩⟨pw​,vw​⟩)=1 for every s,ws,ws,w, then there exists one ∣z∣=1|z|=1∣z∣=1 with ps=zvsp_s=zv_sps​=zvs​ for every sss, and

χ(A0(1),A1(1))=χ(B0(1),B1(1))=LD,D ⁣(μ,0,χ(A0(1),A1(1)),χ(B0(1),B1(1)))=μ(1−LD).\chi(A^{(1)}_0,A^{(1)}_1)=\chi(B^{(1)}_0,B^{(1)}_1)=L_D,\qquad D\!\left(\mu,0,\chi(A^{(1)}_0,A^{(1)}_1),\chi(B^{(1)}_0,B^{(1)}_1)\right) =\mu(1-L_D).χ(A0(1)​,A1(1)​)=χ(B0(1)​,B1(1)​)=LD​,D(μ,0,χ(A0(1)​,A1(1)​),χ(B0(1)​,B1(1)​))=μ(1−LD​).

The case μ=0\mu=0μ=0 is included throughout; for empty III, each implication has an impossible unit-norm premise.

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