Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

COWm1 2PA information with the public alignment flag

Open
QAlgorithms.Papers.Independent.Intake100.P92.cowm1_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 all COW vacuum and visibility constraints and add the vacuum-input overlaps, so ⟨vx,vy⟩=e−μdH(x,y)/2\langle v_x,v_y\rangle=e^{-\mu d_H(x,y)/2}⟨vx​,vy​⟩=e−μdH​(x,y)/2 for all four occupancy pairs. Construct four orthogonal error flags in extra dimensions. For a bit crossing attacked pairs, the input pairs are (j,1−a)(j,1-a)(j,1−a) and (a,k′)(a,k')(a,k′), with independent outer occupancies j,k′j,k'j,k′. The conditional states are the four equally weighted product projectors in (24),(25); the Alice/Bob marginals then mix correct and error branches with weights 1−Q,Q1-Q,Q1−Q,Q. In particular, the correct ensembles are ρ400=14∑j,k′Ppjμ01⊗v0k′\rho_4^{00}=\frac14\sum_{j,k'}P_{p_{j\mu}^{01}\otimes v_{0k'}}ρ400​=41​∑j,k′​Ppjμ01​⊗v0k′​​ and ρ411=14∑j,k′Pvj0⊗pμk′10\rho_4^{11}=\frac14\sum_{j,k'}P_{v_{j0}\otimes p_{\mu k'}^{10}}ρ411​=41​∑j,k′​Pvj0​⊗pμk′10​​.

Writing c=∣⟨pμ010,p0μ01⟩∣c=|\langle p_{\mu0}^{10},p_{0\mu}^{01}\rangle|c=∣⟨pμ010​,p0μ01​⟩∣, the equiprobable public alignment cases give normalized marginals and

χAE=χBE=Q+1−Q2{h((1+c)/2)+χ(ρ400,ρ411)},r0=μ2[1−h(Q)−χAE].\chi_{AE}=\chi_{BE}=Q+\frac{1-Q}{2}\{h((1+c)/2)+\chi(\rho_4^{00},\rho_4^{11})\},\quad r_0=\frac\mu2[1-h(Q)-\chi_{AE}].χAE​=χBE​=Q+21−Q​{h((1+c)/2)+χ(ρ400​,ρ411​)},r0​=2μ​[1−h(Q)−χAE​].

The unflagged attack leakages cannot exceed this extension’s values. This retains the crossing-state mixtures and Eve’s alignment information.

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.6–7, (17)–(27): COWm1 crossing-pair states and equal alignment-flag
averages. Orthogonal flags are a maximizing extension, not a restriction on the
original attack. The signed rate is the leading-order coefficient times t eta. -/
theorem cowm1_information {I : Type*} [Fintype I] [DecidableEq I]
    (A : PairData I) (mu V Q : ℝ) (hmu : 0 ≤ mu)
    (hV : V ∈ Set.Icc (0:ℝ) 1) (hQ : Q ∈ Set.Icc (0:ℝ) 1)
    (hA : CowValid A mu V true) :
    CowValid (flaggedPair A) mu V true ∧
    (∀ a, weightedAncillaTrace (crossCow (flaggedPair A) Q a) = 1 ∧
      weightedAncillaTrace (crossCowB (flaggedPair A) Q a) = 1 ∧ weightedAncillaTrace (crossCorrect A a) = 1) ∧
    cowm1Info (flaggedPair A) Q false = cowm1Leak A Q ∧
    cowm1Info (flaggedPair A) Q true = cowm1Leak A Q ∧
    cowm1Info A Q false ≤ cowm1Leak A Q ∧ cowm1Info A Q true ≤ cowm1Leak A Q ∧
    dw (mu/2) Q (cowm1Info (flaggedPair A) Q false)
      (cowm1Info (flaggedPair A) Q true) =
      mu/2*(1-QAlgorithms.binEntropy2 Q-cowm1Leak A Q) := 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. 6, IV B, Eqs.(17)–(27): COWm1 2PA 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, write Booleans as 0,10,10,1, and let A=(vx,px,b)A=(v_x,p_{x,b})A=(vx​,px,b​) consist of vectors in CI\mathbb C^ICI, indexed by x∈{0,1}2x\in\{0,1\}^2x∈{0,1}2 and b∈{0,1}b\in\{0,1\}b∈{0,1}. Let μ,V,Q∈R\mu,V,Q\in\mathbb Rμ,V,Q∈R satisfy μ≥0\mu\ge0μ≥0, 0≤V≤10\le V\le10≤V≤1, and 0≤Q≤10\le Q\le10≤Q≤1. Assume that every vxv_xvx​ and px,bp_{x,b}px,b​ has norm one and, with d(x,y)d(x,y)d(x,y) the number of coordinates on which the Boolean pairs x,yx,yx,y differ, assume

⟨vx,vy⟩=e−μd(x,y)/2for all x,y,\langle v_x,v_y\rangle=e^{-\mu d(x,y)/2}\quad\text{for all }x,y,⟨vx​,vy​⟩=e−μd(x,y)/2for all x,y, Re⁡⟨p(1,1),1,p(1,1),0⟩=V,Re⁡ ⁣(⟨v(l,1),p(l,1),1⟩⟨p(1,r),0,v(1,r)⟩)=Vfor all l,r.\operatorname{Re}\langle p_{(1,1),1},p_{(1,1),0}\rangle=V, \qquad \operatorname{Re}\!\left( \langle v_{(l,1)},p_{(l,1),1}\rangle \langle p_{(1,r),0},v_{(1,r)}\rangle \right)=V \quad\text{for all }l,r.Re⟨p(1,1),1​,p(1,1),0​⟩=V,Re(⟨v(l,1)​,p(l,1),1​⟩⟨p(1,r),0​,v(1,r)​⟩)=Vfor all l,r.

Embed CI\mathbb C^ICI into CI⊔{0,1,2,3}\mathbb C^{I\sqcup\{0,1,2,3\}}CI⊔{0,1,2,3} by extending each vector by zero, denoting this embedding by ι\iotaι, and let eje_jej​ be the coordinate vector at the new index jjj. Define v~x=ιvx\widetilde v_x=\iota v_xvx​=ιvx​; define p~x,b=ιpx,b\widetilde p_{x,b}=\iota p_{x,b}p​x,b​=ιpx,b​ when coordinate bbb of xxx is 111, and otherwise define

p~(0,0),b=eb,p~(1,0),1=e2,p~(0,1),0=e3.\widetilde p_{(0,0),b}=e_b,\qquad \widetilde p_{(1,0),1}=e_2,\qquad \widetilde p_{(0,1),0}=e_3.p​(0,0),b​=eb​,p​(1,0),1​=e2​,p​(0,1),0​=e3​.

For either vector data set T=(vT,pT)T=(v^T,p^T)T=(vT,pT), put wab=1−Qw_{ab}=1-Qwab​=1−Q if a=ba=ba=b, and wab=Qw_{ab}=Qwab​=Q otherwise, and define

EaA,T(b)=wab p(1−a,a),bT,EbB,T(a)=wab p(1−a,a),bT,E^{A,T}_a(b)=\sqrt{w_{ab}}\,p^T_{(1-a,a),b}, \qquad E^{B,T}_b(a)=\sqrt{w_{ab}}\,p^T_{(1-a,a),b},EaA,T​(b)=wab​​p(1−a,a),bT​,EbB,T​(a)=wab​​p(1−a,a),bT​, DabT(s,r)={v(s,1−a)T⊗p(a,r),0T,b=1,p(s,1−a),1T⊗v(a,r)T,b=0,D^T_{ab}(s,r)= \begin{cases} v^T_{(s,1-a)}\otimes p^T_{(a,r),0},&b=1,\\ p^T_{(s,1-a),1}\otimes v^T_{(a,r)},&b=0, \end{cases}DabT​(s,r)={v(s,1−a)T​⊗p(a,r),0T​,p(s,1−a),1T​⊗v(a,r)T​,​b=1,b=0,​ CaA,T(s,r,b)=wab/4 DabT(s,r),CbB,T(s,r,a)=wab/4 DabT(s,r),KaT(s,r)=12DaaT(s,r),C^{A,T}_a(s,r,b)=\sqrt{w_{ab}/4}\,D^T_{ab}(s,r), \qquad C^{B,T}_b(s,r,a)=\sqrt{w_{ab}/4}\,D^T_{ab}(s,r), \qquad K^T_a(s,r)=\tfrac12D^T_{aa}(s,r),CaA,T​(s,r,b)=wab​/4​DabT​(s,r),CbB,T​(s,r,a)=wab​/4​DabT​(s,r),KaT​(s,r)=21​DaaT​(s,r),

where tensor products have coordinates (u⊗v)(i,j)=u(i)v(j)(u\otimes v)(i,j)=u(i)v(j)(u⊗v)(i,j)=u(i)v(j). For any finite vector family xxx, let G(x)ij=⟨xi,xj⟩G(x)_{ij}=\langle x_i,x_j\rangleG(x)ij​=⟨xi​,xj​⟩, let H(x)=Re⁡tr⁡f(G(x))H(x)=\operatorname{Re}\operatorname{tr}f(G(x))H(x)=Retrf(G(x)) for f(t)=−tlog⁡t/log⁡2f(t)=-t\log t/\log2f(t)=−tlogt/log2, evaluated by continuous functional calculus, and let χ(x,y)=H((x/2,y/2))−[H(x)+H(y)]/2\chi(x,y)=H((x/\sqrt2,y/\sqrt2))-[H(x)+H(y)]/2χ(x,y)=H((x/2​,y/2​))−[H(x)+H(y)]/2, with the first family placed at Boolean index 000 and the second at index 111. Define

IA(T)=χ(E0A,T,E1A,T)+χ(C0A,T,C1A,T)2,IB(T)=χ(E0B,T,E1B,T)+χ(C0B,T,C1B,T)2,I_A(T)=\frac{\chi(E^{A,T}_0,E^{A,T}_1)+\chi(C^{A,T}_0,C^{A,T}_1)}2,\qquad I_B(T)=\frac{\chi(E^{B,T}_0,E^{B,T}_1)+\chi(C^{B,T}_0,C^{B,T}_1)}2,IA​(T)=2χ(E0A,T​,E1A,T​)+χ(C0A,T​,C1A,T​)​,IB​(T)=2χ(E0B,T​,E1B,T​)+χ(C0B,T​,C1B,T​)​, h2(p)=−plog⁡p−(1−p)log⁡(1−p)log⁡2,L=Q+1−Q2[h2 ⁣(1+∣⟨p(1,0),0,p(0,1),1⟩∣2)+χ(K0A,K1A)].h_2(p)=\frac{-p\log p-(1-p)\log(1-p)}{\log2},\qquad L=Q+\frac{1-Q}{2}\left[ h_2\!\left(\frac{1+|\langle p_{(1,0),0},p_{(0,1),1}\rangle|}{2}\right) +\chi(K^A_0,K^A_1)\right].h2​(p)=log2−plogp−(1−p)log(1−p)​,L=Q+21−Q​[h2​(21+∣⟨p(1,0),0​,p(0,1),1​⟩∣​)+χ(K0A​,K1A​)].

The conclusion is that the tilded vectors satisfy all the same norm and inner-product conditions displayed above, with the same μ,V\mu,Vμ,V; for every Boolean aaa,

∑s,r,b∥CaA,A~(s,r,b)∥2=1,∑s,r,c∥CaB,A~(s,r,c)∥2=1,∑s,r∥KaA(s,r)∥2=1;\sum_{s,r,b}\|C^{A,\widetilde A}_a(s,r,b)\|^2=1,\qquad \sum_{s,r,c}\|C^{B,\widetilde A}_a(s,r,c)\|^2=1,\qquad \sum_{s,r}\|K^A_a(s,r)\|^2=1;s,r,b∑​∥CaA,A​(s,r,b)∥2=1,s,r,c∑​∥CaB,A​(s,r,c)∥2=1,s,r∑​∥KaA​(s,r)∥2=1;

and

IA(A~)=L,IB(A~)=L,IA(A)≤L,IB(A)≤L,I_A(\widetilde A)=L,\qquad I_B(\widetilde A)=L,\qquad I_A(A)\le L,\qquad I_B(A)\le L,IA​(A)=L,IB​(A)=L,IA​(A)≤L,IB​(A)≤L, μ2(1−h2(Q)−min⁡{IA(A~),IB(A~)})=μ2(1−h2(Q)−L).\frac{\mu}{2}\left(1-h_2(Q)-\min\{I_A(\widetilde A),I_B(\widetilde A)\}\right) =\frac{\mu}{2}\left(1-h_2(Q)-L\right).2μ​(1−h2​(Q)−min{IA​(A),IB​(A)})=2μ​(1−h2​(Q)−L).

The endpoint values μ=0\mu=0μ=0, V=0,1V=0,1V=0,1, and Q=0,1Q=0,1Q=0,1 are included. If III is empty, the unit-vector hypotheses cannot be satisfied.

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