Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

DPS beam-splitting mixtures, spectra, Holevo information and rate

Open
QAlgorithms.Papers.Independent.Intake100.P92.dps_bsa

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

prove2quantum

Work in the source's ideal asymptotic, balanced-bit model, with coherent pulse amplitude α∈C\alpha\in\mathbb Cα∈C, mean photon number μ=∣α∣2\mu=|\alpha|^2μ=∣α∣2, channel intensity transmission t∈[0,1]t\in[0,1]t∈[0,1], and trusted detector efficiency η∈[0,1]\eta\in[0,1]η∈[0,1]. There are no dark counts or detector dead times. Rates are per emitted time slot, including empty slots, with ideal error correction and the source's negligible unused/decoy fractions and omitted monitoring/interferometer prefactors. Write hhh for binary entropy in bits and Pψ=∣ψ⟩⟨ψ∣P_\psi=|\psi\rangle\langle\psi|Pψ​=∣ψ⟩⟨ψ∣.

Set a=1−tαa=\sqrt{1-t}\alphaa=1−t​α and γ=e−μ(1−t)\gamma=e^{-\mu(1-t)}γ=e−μ(1−t). Construct the actual mixtures

ρ0=12(Pa,a+P−a,−a),ρ1=12(Pa,−a+P−a,a).\rho_0=\tfrac12(P_{a,a}+P_{-a,-a}),\qquad \rho_1=\tfrac12(P_{a,-a}+P_{-a,a}).ρ0​=21​(Pa,a​+P−a,−a​),ρ1​=21​(Pa,−a​+P−a,a​).

Each conditional spectrum is {(1+γ4)/2,(1−γ4)/2}\{(1+\gamma^4)/2,(1-\gamma^4)/2\}{(1+γ4)/2,(1−γ4)/2}. Their average is the tensor square of the uniform one-pulse mixture, with spectrum {x2,xy,xy,y2}\{x^2,xy,xy,y^2\}{x2,xy,xy,y2}, where x=(1+γ2)/2x=(1+\gamma^2)/2x=(1+γ2)/2 and y=(1−γ2)/2y=(1-\gamma^2)/2y=(1−γ2)/2. The computed heralded operators are zero for a wrong bit and (1−e−μtη)ρa(1-e^{-\mu t\eta})\rho_a(1−e−μtη)ρa​ for a correct bit. Consequently

χAE=χBE=2h ⁣(1−γ22)−h ⁣(1−γ42),rDPS=(1−e−μtη)(1−χAE).\chi_{AE}=\chi_{BE}=2h\!\left(\frac{1-\gamma^2}{2}\right)-h\!\left(\frac{1-\gamma^4}{2}\right),\quad r_{\rm DPS}=(1-e^{-\mu t\eta})(1-\chi_{AE}).χAE​=χBE​=2h(21−γ2​)−h(21−γ4​),rDPS​=(1−e−μtη)(1−χAE​).

States and rates include their continuous zero-click extension. The calculation retains the mixed conditional states and all spectrum multiplicities.

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.3–4, (6),(7): actual mixed DPS conditional states, their spectra,
Holevo information and rate. The conditional spectrum uses gamma_E^4; the
unconditional spectrum is the product spectrum with one-pulse overlap gamma_E^2. -/
theorem dps_bsa (alpha : ℂ) (t eta : ℝ)
    (ht : t ∈ Set.Icc (0:ℝ) 1) (heta : eta ∈ Set.Icc (0:ℝ) 1) :
    (∀ a, weightedAncillaTrace (dpsE alpha t a) = 1 ∧
      HasUnitaryGramSpectrum (ancillaGram (dpsE alpha t a))
        (fun s => if s then (1-(gammaE alpha t)^4)/2 else (1+(gammaE alpha t)^4)/2) ∧
      ensembleEntropyBits (dpsE alpha t a) = QAlgorithms.binEntropy2 ((1-(gammaE alpha t)^4)/2)) ∧
    (∀ i j : ℕ × ℕ,
      ((ensembleDensityCoefficients (fun k n => dpsE alpha t false k n) i j +
        ensembleDensityCoefficients (fun k n => dpsE alpha t true k n) i j)/2) =
        ((coherentCoefficient (eveAmplitude alpha t) i.1 *
          star (coherentCoefficient (eveAmplitude alpha t) j.1) +
          coherentCoefficient (-eveAmplitude alpha t) i.1 *
            star (coherentCoefficient (-eveAmplitude alpha t) j.1))/2) *
        ((coherentCoefficient (eveAmplitude alpha t) i.2 *
          star (coherentCoefficient (eveAmplitude alpha t) j.2) +
          coherentCoefficient (-eveAmplitude alpha t) i.2 *
            star (coherentCoefficient (-eveAmplitude alpha t) j.2))/2)) ∧
    HasUnitaryGramSpectrum (ancillaGram (equiprobableEnsemble (dpsE alpha t false) (dpsE alpha t true)))
      (fun z => ((1+(if z.1 then -1 else 1)*(gammaE alpha t)^2)/2) *
        ((1+(if z.2 then -1 else 1)*(gammaE alpha t)^2)/2)) ∧
    (∀ a b, dpsHerald alpha t eta a b =
      (if a = b then (click (Complex.normSq alpha) t eta : ℂ) else 0) •
        ensembleDensityCoefficients (fun i n => dpsE alpha t a i n)) ∧
    binaryHolevoBits (dpsE alpha t false) (dpsE alpha t true) =
      2*QAlgorithms.binEntropy2 ((1-(gammaE alpha t)^2)/2) -
        QAlgorithms.binEntropy2 ((1-(gammaE alpha t)^4)/2) ∧
    dpsRate alpha t eta = click (Complex.normSq alpha) t eta *
      (1-2*QAlgorithms.binEntropy2 ((1-(gammaE alpha t)^2)/2) +
        QAlgorithms.binEntropy2 ((1-(gammaE alpha t)^4)/2)) := 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. 3, III, Eqs.(6)–(7): exact DPS BSA mixtures, spectra, Holevo information and rate
Read-back

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

For every α∈C\alpha\in\mathbb Cα∈C and real t,ηt,\etat,η satisfying 0≤t≤10\le t\le10≤t≤1 and 0≤η≤10\le\eta\le10≤η≤1, set e=1−t αe=\sqrt{1-t}\,\alphae=1−t​α, γ=e−∣α∣2(1−t)\gamma=e^{-|\alpha|^2(1-t)}γ=e−∣α∣2(1−t), and p=1−e−∣α∣2tηp=1-e^{-|\alpha|^2t\eta}p=1−e−∣α∣2tη. In F=ℓ2(N2;C)F=\ell^2(\mathbb N^2;\mathbb C)F=ℓ2(N2;C), define cz(n)=e−∣z∣2/2zn/n!c_z(n)=e^{-|z|^2/2}z^n/\sqrt{n!}cz​(n)=e−∣z∣2/2zn/n!​ and let C(z,w)C(z,w)C(z,w) be the vector with coefficients cz(m)cw(n)c_z(m)c_w(n)cz​(m)cw​(n) if square summable, and zero otherwise. For Boolean a,sa,sa,s, define

Ea(s)=12C((−1)se,(−1)sxorae),Da(i,j)=∑s∈{0,1}Ea(s)(i)Ea(s)(j)‾.E_a(s)=\frac1{\sqrt2}C((-1)^se,(-1)^{s\mathbin{\mathrm{xor}}a}e), \qquad D_a(i,j)=\sum_{s\in\{0,1\}}E_a(s)(i)\overline{E_a(s)(j)}.Ea​(s)=2​1​C((−1)se,(−1)sxorae),Da​(i,j)=s∈{0,1}∑​Ea​(s)(i)Ea​(s)(j)​.

For a finite family xxx, let Gx=(⟨xi,xj⟩)G_x=(\langle x_i,x_j\rangle)Gx​=(⟨xi​,xj​⟩) and H(x)=Re⁡tr⁡f(Gx)H(x)=\operatorname{Re}\operatorname{tr}f(G_x)H(x)=Retrf(Gx​), where f(u)=−ulog⁡u/log⁡2f(u)=-u\log u/\log2f(u)=−ulogu/log2 is applied by continuous functional calculus; define χ(x,y)=H((xi/2)i,(yi/2)i)−(H(x)+H(y))/2\chi(x,y)=H((x_i/\sqrt2)_i,(y_i/\sqrt2)_i)-(H(x)+H(y))/2χ(x,y)=H((xi​/2​)i​,(yi​/2​)i​)−(H(x)+H(y))/2, and let h(q)=(−qlog⁡q−(1−q)log⁡(1−q))/log⁡2h(q)=(-q\log q-(1-q)\log(1-q))/\log2h(q)=(−qlogq−(1−q)log(1−q))/log2. For each Boolean aaa, ∑s∥Ea(s)∥2=1\sum_s\|E_a(s)\|^2=1∑s​∥Ea​(s)∥2=1, there exists a Boolean-indexed unitary VaV_aVa​ such that

GEa=Vadiag⁡(λ)Va∗,λ0=(1+γ4)/2,λ1=(1−γ4)/2,G_{E_a}=V_a\operatorname{diag}(\lambda)V_a^*, \qquad \lambda_0=(1+\gamma^4)/2,\quad\lambda_1=(1-\gamma^4)/2,GEa​​=Va​diag(λ)Va∗​,λ0​=(1+γ4)/2,λ1​=(1−γ4)/2,

and H(Ea)=h((1−γ4)/2)H(E_a)=h((1-\gamma^4)/2)H(Ea​)=h((1−γ4)/2). For all i,j∈N2i,j\in\mathbb N^2i,j∈N2,

D0(i,j)+D1(i,j)2=∏r=12ce(ir)ce(jr)‾+c−e(ir)c−e(jr)‾2.\frac{D_0(i,j)+D_1(i,j)}2 =\prod_{r=1}^{2} \frac{c_e(i_r)\overline{c_e(j_r)}+ c_{-e}(i_r)\overline{c_{-e}(j_r)}}2.2D0​(i,j)+D1​(i,j)​=r=1∏2​2ce​(ir​)ce​(jr​)​+c−e​(ir​)c−e​(jr​)​​.

For Za,s=Ea(s)/2Z_{a,s}=E_a(s)/\sqrt2Za,s​=Ea​(s)/2​, there exists a unitary VVV indexed by two Boolean coordinates with

GZ=Vdiag⁡(ν)V∗,νa,s=1+(−1)aγ22 1+(−1)sγ22.G_Z=V\operatorname{diag}(\nu)V^*, \qquad \nu_{a,s}= \frac{1+(-1)^a\gamma^2}{2}\, \frac{1+(-1)^s\gamma^2}{2}.GZ​=Vdiag(ν)V∗,νa,s​=21+(−1)aγ2​21+(−1)sγ2​.

Define wη(0;m,n)=(1−(1−η)m)(1−η)nw_\eta(0;m,n)=(1-(1-\eta)^m)(1-\eta)^nwη​(0;m,n)=(1−(1−η)m)(1−η)n, wη(1;m,n)=(1−η)m(1−(1−η)n)w_\eta(1;m,n)=(1-\eta)^m(1-(1-\eta)^n)wη​(1;m,n)=(1−η)m(1−(1−η)n), and

us=(−1)st α,vs,a=(−1)sxorat α,Bs,a=C((us+vs,a)/2,(us−vs,a)/2),Fs,a=C((−1)se,(−1)sxorae).u_s=(-1)^s\sqrt t\,\alpha,\quad v_{s,a}=(-1)^{s\mathbin{\mathrm{xor}}a}\sqrt t\,\alpha,\quad B_{s,a}=C((u_s+v_{s,a})/2,(u_s-v_{s,a})/2),\quad F_{s,a}=C((-1)^se,(-1)^{s\mathbin{\mathrm{xor}}a}e).us​=(−1)st​α,vs,a​=(−1)sxorat​α,Bs,a​=C((us​+vs,a​)/2,(us​−vs,a​)/2),Fs,a​=C((−1)se,(−1)sxorae).

For all Boolean a,ba,ba,b, the matrix

Ha,b(i,j)=12∑s∈{0,1}∑n∈N2wη(b;n) (Bs,a(n)Fs,a(i))(Bs,a(n)Fs,a(j))‾H_{a,b}(i,j)=\frac12\sum_{s\in\{0,1\}}\sum_{n\in\mathbb N^2} w_\eta(b;n)\, \bigl(B_{s,a}(n)F_{s,a}(i)\bigr) \overline{\bigl(B_{s,a}(n)F_{s,a}(j)\bigr)}Ha,b​(i,j)=21​s∈{0,1}∑​n∈N2∑​wη​(b;n)(Bs,a​(n)Fs,a​(i))(Bs,a​(n)Fs,a​(j))​

equals 1a=b p Da\mathbf1_{a=b}\,p\,D_a1a=b​pDa​. Finally,

χ(E0,E1)=2h ⁣(1−γ22)−h ⁣(1−γ42),RDPS=p(1−χ(E0,E1))=p[1−2h ⁣(1−γ22)+h ⁣(1−γ42)].\chi(E_0,E_1) =2h\!\left(\frac{1-\gamma^2}{2}\right)-h\!\left(\frac{1-\gamma^4}{2}\right), \qquad R_{\mathrm{DPS}}=p(1-\chi(E_0,E_1)) =p\left[1-2h\!\left(\frac{1-\gamma^2}{2}\right)+h\!\left(\frac{1-\gamma^4}{2}\right)\right].χ(E0​,E1​)=2h(21−γ2​)−h(21−γ4​),RDPS​=p(1−χ(E0​,E1​))=p[1−2h(21−γ2​)+h(21−γ4​)].

The statement includes α=0\alpha=0α=0, t=0,1t=0,1t=0,1, and η=0,1\eta=0,1η=0,1, without requiring a nonzero heralding probability.

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