Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Feasible zero-overlap COW attacks outside the positive regime

Open
QAlgorithms.Papers.Independent.Intake100.P92.cow_zero_overlap

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.

Let μ>0\mu>0μ>0 and γ=e−μ\gamma=e^{-\mu}γ=e−μ. If γ≤2V(1−V)\gamma\le2\sqrt{V(1-V)}γ≤2V(1−V)​ or V≤1/2V\le1/2V≤1/2, the explicitly constructed branchwise ancilla family, together with fresh orthogonal error flags, satisfies all COW Gram and monitoring constraints and has

⟨p0μ01,pμ010⟩=0,χAE=χBE=1,r0=−μ2h(Q)≤0.\langle p_{0\mu}^{01},p_{\mu0}^{10}\rangle=0,\qquad \chi_{AE}=\chi_{BE}=1,\qquad r_0=-\frac\mu2h(Q)\le0.⟨p0μ01​,pμ010​⟩=0,χAE​=χBE​=1,r0​=−2μ​h(Q)≤0.

Thus V>1/2V>1/2V>1/2 and γ>2V(1−V)\gamma>2\sqrt{V(1-V)}γ>2V(1−V)​ are necessary for a positive rate in this attack analysis; they are not sufficient for security. The witness treats V=0,1/2V=0,1/2V=0,1/2 without singular angles. This preserves the source’s existence result while correcting its illustrative cosine choice.

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)

/-- Appendix B p.13: zero correct-state overlap outside the strict positive
regime, with full bit information and nonpositive signed DW coefficient. This is
an existence result inside the normalized ancilla model, not a finite-loss attack
realization or a claim about arbitrary postprocessed secret-key capacity.
Source correction: the printed illustrative cosine is replaced by cowZero's
solution of the overlap equation, avoiding both infeasible and singular angles.

Source correction audited in round 1.
Printed: PDF p.13: lambda=1, theta1=phi0=phi1=0, cos(theta0)=gamma*V/((1-V)*gamma+2*sqrt(V*(1-V))*sqrt(1-gamma^2)) is offered as a zero-overlap choice.
Changed: For V>1/2 in the zero regime, cowZero uses c=(V*gamma-A)/((1-V)*gamma+A), A=sqrt(V*(1-V))*sqrt(1-gamma^2); for V<=1/2 it uses independent residual directions with overlap -V*gamma/(1-V). All decoy constraints and the original zero-overlap existence conclusion are retained.
Why: B6/B7 give overlap V*gamma-A-((1-V)*gamma+A)*c. At gamma=3/5,V=4/5 the printed c=12/19 gives -56/475, whereas c=4/11 gives zero. The low-V branch also avoids infeasible or singular angles. Only an illustrative witness changes, not the claimed existence or its regime.
-/
theorem cow_zero_overlap (mu V : ℝ) (hmu : 0 < mu)
    (hV : V ∈ Set.Icc (0:ℝ) 1)
    (hregime : Real.exp (-mu) ≤ 2*Real.sqrt (V*(1-V)) ∨ V ≤ 1/2) :
    CowValid (flaggedPair (cowZero mu V)) mu V false ∧
    inner ℂ ((cowZero mu V).p (false,true) true)
      ((cowZero mu V).p (true,false) false) = 0 ∧
    (∀ Q ∈ Set.Icc (0:ℝ) 1,
      binaryHolevoBits (cowA (flaggedPair (cowZero mu V)) Q false)
        (cowA (flaggedPair (cowZero mu V)) Q true) = 1 ∧
      binaryHolevoBits (cowB (flaggedPair (cowZero mu V)) Q false)
        (cowB (flaggedPair (cowZero mu V)) Q true) = 1 ∧
      cowCoefficient (cowZero mu V) mu Q = -mu/2*QAlgorithms.binEntropy2 Q ∧
      cowCoefficient (cowZero mu V) mu Q ≤ 0) := 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. 13, Appendix B, unnumbered: zero-overlap attack and necessary COW secrecy conditions
Read-back

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

For every μ>0\mu>0μ>0 and V∈[0,1]V\in[0,1]V∈[0,1] satisfying

e−μ≤2V(1−V)orV≤12,e^{-\mu}\le 2\sqrt{V(1-V)}\quad\text{or}\quad V\le\frac12,e−μ≤2V(1−V)​orV≤21​,

form vectors in C7\mathbb C^7C7, with Boolean labels written 0,10,10,1, by setting

g=e−μ,a=1+g2,b=1−g2,r=Vg1−V,h=V(1−V)1−g2,c=Vg−h(1−V)g+h,g=e^{-\mu},\quad a=\sqrt{\frac{1+g}{2}},\quad b=\sqrt{\frac{1-g}{2}},\quad r=\frac{Vg}{1-V},\quad h=\sqrt{V(1-V)}\sqrt{1-g^2},\quad c=\frac{Vg-h}{(1-V)g+h},g=e−μ,a=21+g​​,b=21−g​​,r=1−VVg​,h=V(1−V)​1−g2​,c=(1−V)g+hVg−h​, v00=e0,v10=(a,b,0,0,0,0,0),v01=(a,−b,0,0,0,0,0),v11=(2g1+g,0,0,0,1−g1+g,0,0),v_{00}=e_0,\quad v_{10}=(a,b,0,0,0,0,0),\quad v_{01}=(a,-b,0,0,0,0,0),\quad v_{11}=\left(\sqrt{\frac{2g}{1+g}},0,0,0,\sqrt{\frac{1-g}{1+g}},0,0\right),v00​=e0​,v10​=(a,b,0,0,0,0,0),v01​=(a,−b,0,0,0,0,0),v11​=(1+g2g​​,0,0,0,1+g1−g​​,0,0),

and

p10,0={V v10+1−V e2,V≤12,V v10−1−V c(b,−a,0,0,0,0,0)+1−V1−c2 e2,V>12,p_{10,0}= \begin{cases} \sqrt V\,v_{10}+\sqrt{1-V}\,e_2,&V\le\frac12,\\ \sqrt V\,v_{10}-\sqrt{1-V}\,c(b,-a,0,0,0,0,0) +\sqrt{1-V}\sqrt{1-c^2}\,e_2,&V>\frac12, \end{cases}p10,0​={V​v10​+1−V​e2​,V​v10​−1−V​c(b,−a,0,0,0,0,0)+1−V​1−c2​e2​,​V≤21​,V>21​,​ p01,1={V v01+1−V(0,0,−r,1−r2,0,0,0),V≤12,V v01−1−V(b,a,0,0,0,0,0),V>12,p11,s=V v11+1−V e5+s,p_{01,1}= \begin{cases} \sqrt V\,v_{01}+\sqrt{1-V}(0,0,-r,\sqrt{1-r^2},0,0,0),&V\le\frac12,\\ \sqrt V\,v_{01}-\sqrt{1-V}(b,a,0,0,0,0,0),&V>\frac12, \end{cases} \qquad p_{11,s}=\sqrt V\,v_{11}+\sqrt{1-V}\,e_{5+s},p01,1​={V​v01​+1−V​(0,0,−r,1−r2​,0,0,0),V​v01​−1−V​(b,a,0,0,0,0,0),​V≤21​,V>21​,​p11,s​=V​v11​+1−V​e5+s​,

with all remaining px,s=e0p_{x,s}=e_0px,s​=e0​. Square roots and quotients use the total real conventions t=0\sqrt t=0t​=0 for t<0t<0t<0 and division by zero equal to 000. In C7⊕C4\mathbb C^7\oplus\mathbb C^4C7⊕C4, let v~x=(vx,0)\widetilde v_x=(v_x,0)vx​=(vx​,0); retain p~x,s=(px,s,0)\widetilde p_{x,s}=(p_{x,s},0)p​x,s​=(px,s​,0) when the selected bit of xxx is 111, and set

p~00,0=(0,e0),p~00,1=(0,e1),p~10,1=(0,e2),p~01,0=(0,e3).\widetilde p_{00,0}=(0,e_0),\quad \widetilde p_{00,1}=(0,e_1),\quad \widetilde p_{10,1}=(0,e_2),\quad \widetilde p_{01,0}=(0,e_3).p​00,0​=(0,e0​),p​00,1​=(0,e1​),p​10,1​=(0,e2​),p​01,0​=(0,e3​).

The assertion is that all v~x,p~x,s\widetilde v_x,\widetilde p_{x,s}vx​,p​x,s​ have norm 111; for x,y≠00x,y\ne00x,y=00,

⟨v~x,v~y⟩=e−μd(x,y)/2,\langle\widetilde v_x,\widetilde v_y\rangle=e^{-\mu d(x,y)/2},⟨vx​,vy​⟩=e−μd(x,y)/2,

where ddd counts differing bits; and

Re⁡⟨p~11,1,p~11,0⟩=V,Re⁡ ⁣(⟨v~ℓ1,p~ℓ1,1⟩⟨p~1r,0,v~1r⟩)=V(ℓ,r∈{0,1}).\operatorname{Re}\langle\widetilde p_{11,1},\widetilde p_{11,0}\rangle=V,\qquad \operatorname{Re}\!\left( \langle\widetilde v_{\ell1},\widetilde p_{\ell1,1}\rangle \langle\widetilde p_{1r,0},\widetilde v_{1r}\rangle \right)=V \quad(\ell,r\in\{0,1\}).Re⟨p​11,1​,p​11,0​⟩=V,Re(⟨vℓ1​,p​ℓ1,1​⟩⟨p​1r,0​,v1r​⟩)=V(ℓ,r∈{0,1}).

Furthermore, ⟨p01,1,p10,0⟩=0\langle p_{01,1},p_{10,0}\rangle=0⟨p01,1​,p10,0​⟩=0. To state the remaining conclusions, for a finite vector family x=(xi)x=(x_i)x=(xi​), define H(x)H(x)H(x) as the entropy of its Gram matrix Gij=⟨xi,xj⟩G_{ij}=\langle x_i,x_j\rangleGij​=⟨xi​,xj​⟩, namely ∑λ−λlog⁡2λ\sum_\lambda-\lambda\log_2\lambda∑λ​−λlog2​λ, counting eigenvalues with multiplicity and taking 0log⁡20=00\log_2 0=00log2​0=0; define

χ(x,y)=H((xi/2)i,(yi/2)i)−12H(x)−12H(y).\chi(x,y)=H\bigl((x_i/\sqrt2)_i,(y_i/\sqrt2)_i\bigr)-\tfrac12H(x)-\tfrac12H(y).χ(x,y)=H((xi​/2​)i​,(yi​/2​)i​)−21​H(x)−21​H(y).

For every Q∈[0,1]Q\in[0,1]Q∈[0,1], set k(a)=(1−a,a)k(a)=(1-a,a)k(a)=(1−a,a) and

Aa(s)={1−Qa=sQa≠s p~k(a),s,Bs(a)={1−Qa=sQa≠s p~k(a),s.A_a(s)=\sqrt{\begin{cases}1-Q&a=s\\Q&a\ne s\end{cases}}\, \widetilde p_{k(a),s},\qquad B_s(a)=\sqrt{\begin{cases}1-Q&a=s\\Q&a\ne s\end{cases}}\, \widetilde p_{k(a),s}.Aa​(s)={1−QQ​a=sa=s​​p​k(a),s​,Bs​(a)={1−QQ​a=sa=s​​p​k(a),s​.

Then

χ(A0,A1)=1,χ(B0,B1)=1,\chi(A_0,A_1)=1,\qquad \chi(B_0,B_1)=1,χ(A0​,A1​)=1,χ(B0​,B1​)=1,

and, writing h2(Q)=[−Qlog⁡Q−(1−Q)log⁡(1−Q)]/log⁡2h_2(Q)=[-Q\log Q-(1-Q)\log(1-Q)]/\log2h2​(Q)=[−QlogQ−(1−Q)log(1−Q)]/log2 with the same endpoint convention,

μ2(1−h2(Q)−min⁡{χ(A0,A1),χ(B0,B1)})=−μ2h2(Q)≤0.\frac{\mu}{2}\bigl(1-h_2(Q)-\min\{\chi(A_0,A_1),\chi(B_0,B_1)\}\bigr) =-\frac{\mu}{2}h_2(Q)\le0.2μ​(1−h2​(Q)−min{χ(A0​,A1​),χ(B0​,B1​)})=−2μ​h2​(Q)≤0.

The endpoints V=0,1V=0,1V=0,1 and Q=0,1Q=0,1Q=0,1 are included whenever the hypotheses 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