Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

COWm2 1PA product-state information and squared overlap

Open
QAlgorithms.Papers.Independent.Intake100.P92.cowm2_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, unit vectors v0,vμ,p0,pμv_0,v_\mu,p_0,p_\muv0​,vμ​,p0​,pμ​ obey ⟨v0,vμ⟩=e−μ/2\langle v_0,v_\mu\rangle=e^{-\mu/2}⟨v0​,vμ​⟩=e−μ/2 and ∣⟨vμ,pμ⟩∣2=V|\langle v_\mu,p_\mu\rangle|^2=V∣⟨vμ​,pμ​⟩∣2=V. Replace the unconstrained p0p_0p0​ by a flag orthogonal to the other vectors. The two correct key states are pμ⊗v0p_\mu\otimes v_0pμ​⊗v0​ and v0⊗pμv_0\otimes p_\muv0​⊗pμ​; the error states are vμ⊗p0v_\mu\otimes p_0vμ​⊗p0​ and p0⊗vμp_0\otimes v_\mup0​⊗vμ​. Construct each Alice/Bob marginal using weights 1−Q,Q1-Q,Q1−Q,Q. Then

χAE=χBE=Q+(1−Q)h ⁣(1+∣⟨v0,pμ⟩∣22),r0=μ2[1−h(Q)−χAE].\chi_{AE}=\chi_{BE}=Q+(1-Q)h\!\left(\frac{1+|\langle v_0,p_\mu\rangle|^2}{2}\right),\qquad r_0=\frac\mu2[1-h(Q)-\chi_{AE}].χAE​=χBE​=Q+(1−Q)h(21+∣⟨v0​,pμ​⟩∣2​),r0​=2μ​[1−h(Q)−χAE​].

The constructed marginals are normalized, all constraints are preserved, and the original leakages are bounded by these values. The squared overlap comes from the swapped product factors. This is a one-pulse attack result.

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.7–8, (28)–(33): COWm2 1PA information, with the essential squared
single-pulse overlap. No optimality against arbitrary two-pulse attacks is claimed. -/
theorem cowm2_information {I : Type*} [Fintype I] [DecidableEq I]
    (A : OneData I) (mu V Q : ℝ) (hmu : 0 ≤ mu)
    (hV : V ∈ Set.Icc (0:ℝ) 1) (hQ : Q ∈ Set.Icc (0:ℝ) 1)
    (hA : CowOneValid A mu V) :
    CowOneValid (flaggedOne A) mu V ∧
    (∀ a, weightedAncillaTrace (cowA (oneToPair (flaggedOne A)) Q a) = 1 ∧
      weightedAncillaTrace (cowB (oneToPair (flaggedOne A)) Q a) = 1) ∧
    (let L := Q + (1-Q)*QAlgorithms.binEntropy2
      ((1+Complex.normSq (inner ℂ (A.v false) (A.p true)))/2)
     binaryHolevoBits (cowA (oneToPair (flaggedOne A)) Q false)
       (cowA (oneToPair (flaggedOne A)) Q true) = L ∧
     binaryHolevoBits (cowB (oneToPair (flaggedOne A)) Q false)
       (cowB (oneToPair (flaggedOne A)) Q true) = L ∧
     binaryHolevoBits (cowA (oneToPair A) Q false) (cowA (oneToPair A) Q true) ≤ L ∧
     binaryHolevoBits (cowB (oneToPair A) Q false) (cowB (oneToPair A) Q true) ≤ L ∧
     dw (mu/2) Q L L = mu/2*(1-QAlgorithms.binEntropy2 Q-L)) := 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. 7, IV C, Eqs.(28)–(33): COWm2 1PA 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, and write Booleans as 0,10,10,1. Let A=(vb,pb)A=(v_b,p_b)A=(vb​,pb​) be Boolean-indexed families in CI\mathbb C^ICI, and 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

∥vb∥=∥pb∥=1for both b,⟨v0,v1⟩=e−μ/2,∣⟨v1,p1⟩∣2=V.\|v_b\|=\|p_b\|=1\quad\text{for both }b,\qquad \langle v_0,v_1\rangle=e^{-\mu/2},\qquad |\langle v_1,p_1\rangle|^2=V.∥vb​∥=∥pb​∥=1for both b,⟨v0​,v1​⟩=e−μ/2,∣⟨v1​,p1​⟩∣2=V.

Let ι\iotaι extend vectors by zero from III to I⊔{0,1,2,3}I\sqcup\{0,1,2,3\}I⊔{0,1,2,3}, let e0e_0e0​ be the coordinate vector at the new index 000, and define

v~b=ιvb,p~1=ιp1,p~0=e0.\widetilde v_b=\iota v_b,\qquad \widetilde p_1=\iota p_1,\qquad \widetilde p_0=e_0.vb​=ιvb​,p​1​=ιp1​,p​0​=e0​.

For either data set T=(vT,pT)T=(v^T,p^T)T=(vT,pT), define pair data by

v(s,r)′T=vsT⊗vrT,p(s,r),b′T={vsT⊗prT,b=1,psT⊗vrT,b=0,v^{\prime T}_{(s,r)}=v^T_s\otimes v^T_r,\qquad p^{\prime T}_{(s,r),b}= \begin{cases} v^T_s\otimes p^T_r,&b=1,\\ p^T_s\otimes v^T_r,&b=0, \end{cases}v(s,r)′T​=vsT​⊗vrT​,p(s,r),b′T​={vsT​⊗prT​,psT​⊗vrT​,​b=1,b=0,​

where tensor products are given by coordinatewise multiplication. Put wab=1−Qw_{ab}=1-Qwab​=1−Q when a=ba=ba=b, and wab=Qw_{ab}=Qwab​=Q otherwise, and define the Boolean-indexed vector families

EaA,T(b)=wab p(1−a,a),b′T,EbB,T(a)=wab p(1−a,a),b′T.E^{A,T}_a(b)=\sqrt{w_{ab}}\,p^{\prime T}_{(1-a,a),b}, \qquad E^{B,T}_b(a)=\sqrt{w_{ab}}\,p^{\prime T}_{(1-a,a),b}.EaA,T​(b)=wab​​p(1−a,a),b′T​,EbB,T​(a)=wab​​p(1−a,a),b′T​.

For any finite vector family xxx, define G(x)ij=⟨xi,xj⟩G(x)_{ij}=\langle x_i,x_j\rangleG(x)ij​=⟨xi​,xj​⟩ and H(x)=Re⁡tr⁡f(G(x))H(x)=\operatorname{Re}\operatorname{tr}f(G(x))H(x)=Retrf(G(x)), where f(t)=−tlog⁡t/log⁡2f(t)=-t\log t/\log2f(t)=−tlogt/log2 is applied by continuous functional calculus. Define χ(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 two families indexed additionally by 000 and 111, respectively, and let

h2(p)=−plog⁡p−(1−p)log⁡(1−p)log⁡2,L=Q+(1−Q) h2 ⁣(1+∣⟨v0,p1⟩∣22).h_2(p)=\frac{-p\log p-(1-p)\log(1-p)}{\log2}, \qquad L=Q+(1-Q)\, h_2\!\left(\frac{1+|\langle v_0,p_1\rangle|^2}{2}\right).h2​(p)=log2−plogp−(1−p)log(1−p)​,L=Q+(1−Q)h2​(21+∣⟨v0​,p1​⟩∣2​).

The conclusion is that

∥v~b∥=∥p~b∥=1for both b,⟨v~0,v~1⟩=e−μ/2,∣⟨v~1,p~1⟩∣2=V,\|\widetilde v_b\|=\|\widetilde p_b\|=1\quad\text{for both }b,\qquad \langle\widetilde v_0,\widetilde v_1\rangle=e^{-\mu/2},\qquad |\langle\widetilde v_1,\widetilde p_1\rangle|^2=V,∥vb​∥=∥p​b​∥=1for both b,⟨v0​,v1​⟩=e−μ/2,∣⟨v1​,p​1​⟩∣2=V,

that, for every Boolean aaa,

∑b∥EaA,A~(b)∥2=1,∑c∥EaB,A~(c)∥2=1,\sum_b\|E^{A,\widetilde A}_a(b)\|^2=1, \qquad \sum_c\|E^{B,\widetilde A}_a(c)\|^2=1,b∑​∥EaA,A​(b)∥2=1,c∑​∥EaB,A​(c)∥2=1,

and that

χ(E0A,A~,E1A,A~)=L,χ(E0B,A~,E1B,A~)=L,\chi(E^{A,\widetilde A}_0,E^{A,\widetilde A}_1)=L,\qquad \chi(E^{B,\widetilde A}_0,E^{B,\widetilde A}_1)=L,χ(E0A,A​,E1A,A​)=L,χ(E0B,A​,E1B,A​)=L, χ(E0A,A,E1A,A)≤L,χ(E0B,A,E1B,A)≤L,\chi(E^{A,A}_0,E^{A,A}_1)\le L,\qquad \chi(E^{B,A}_0,E^{B,A}_1)\le L,χ(E0A,A​,E1A,A​)≤L,χ(E0B,A​,E1B,A​)≤L, μ2(1−h2(Q)−min⁡{L,L})=μ2(1−h2(Q)−L).\frac{\mu}{2}\left(1-h_2(Q)-\min\{L,L\}\right) =\frac{\mu}{2}\left(1-h_2(Q)-L\right).2μ​(1−h2​(Q)−min{L,L})=2μ​(1−h2​(Q)−L).

The parameter endpoints are included, and empty III makes the unit-vector hypotheses impossible.

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