Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Independent errors attain Eve’s maximum and its explicit entropy value

Open
QAlgorithms.Papers.Independent.Advance50.P15.independentErrors_maximize_eveInformation

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

prove2quantum

Let m≥1m\ge1m≥1, 0≤p≤1/20\le p\le1/20≤p≤1/2, and 0≤q≤10\le q\le10≤q≤1. For t∈[0,p]t\in[0,p]t∈[0,p], take mmm independent copies of the Bell-diagonal pair state with weights 1+t−2p,p−t,p−t,t1+t-2p,p-t,p-t,t1+t−2p,p−t,p−t,t on Φ+,Φ−,Ψ+,Ψ−\Phi^+,\Phi^-,\Psi^+,\Psi^-Φ+,Φ−,Ψ+,Ψ−, respectively. Eve holds its entire channel purification. Alice adds independent Bernoulli(q)(q)(q) noise, keeps its purifying register private, retains the first noisy bit AAA, and publicly announces all repetition syndromes VVV. No blocks are discarded. Write χm(p,q,t)=I(A;EV)\chi_m(p,q,t)=I(A;EV)χm​(p,q,t)=I(A;EV) for the mutual information in the resulting state, using base-2 entropy. Then

χm(p,q,t)≤χm(p,q,p2)for every t∈[0,p].\chi_m(p,q,t)\le \chi_m(p,q,p^2) \qquad\text{for every }t\in[0,p].χm​(p,q,t)≤χm​(p,q,p2)for every t∈[0,p].

Thus independent bit and phase errors attain the maximum; uniqueness is not asserted. The comparison concerns product copies of one allowed pair state, rather than arbitrary correlated multi-pair attacks.

Formalization Note The conditional density matrices are computed explicitly from the Bell purification and the private noise mixture. Eve’s register includes a classical copy of VVV, and no zero-mass conditional error distribution is formed.

At the independent-error state the information also has the explicit value

χm(p,q,p2)=S ⁣(12ρp,q⊗m+12Z⊗mρp,q⊗mZ⊗m)−mS(ρp,q),\chi_m(p,q,p^2)=S\!\left(\tfrac12\rho_{p,q}^{\otimes m} +\tfrac12 Z^{\otimes m}\rho_{p,q}^{\otimes m}Z^{\otimes m}\right)-mS(\rho_{p,q}),χm​(p,q,p2)=S(21​ρp,q⊗m​+21​Z⊗mρp,q⊗m​Z⊗m)−mS(ρp,q​),

where SSS is von Neumann entropy in bits, Z=diag⁡(1,−1)Z=\operatorname{diag}(1,-1)Z=diag(1,−1), ρp,q=(1−q)∣ϕ+⟩⟨ϕ+∣+q∣ϕ−⟩⟨ϕ−∣\rho_{p,q}=(1-q)|\phi_+\rangle\langle\phi_+|+q|\phi_-\rangle\langle\phi_-|ρp,q​=(1−q)∣ϕ+​⟩⟨ϕ+​∣+q∣ϕ−​⟩⟨ϕ−​∣, and ∣ϕ±⟩=1−p∣0⟩±p∣1⟩|\phi_\pm\rangle=\sqrt{1-p}|0\rangle\pm\sqrt p|1\rangle∣ϕ±​⟩=1−p​∣0⟩±p​∣1⟩.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P15
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P15

open QAlgorithms

open scoped ComplexConjugate

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Smith--Renes--Smolin, PDF p.3, proof of Theorem 1, Eq.(8)--(10): over
all permitted single-pair laws, Eve's information is maximized at t=p^2,
where it equals the displayed phase-mixture entropy minus m S(rho_(p,q)).
The public syndrome is retained; no uniqueness of the maximum is asserted. -/
theorem independentErrors_maximize_eveInformation
    (k : ℕ) (p q t : ℝ)
    (hp0 : 0 ≤ p) (hp1 : p ≤ 1 / 2)
    (hq0 : 0 ≤ q) (hq1 : q ≤ 1)
    (ht0 : 0 ≤ t) (ht1 : t ≤ p) :
    eveInformation k p q t ≤ eveInformation k p q (p ^ 2) ∧
      eveInformation k p q (p ^ 2) =
        vnEntropy (repetitionPhaseMixture (k + 1) p q) -
          ((k + 1 : ℕ) : ℝ) * vnEntropy (phaseDensity p q) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P15

end
Source
Structured Codes Improve the Bennett-Brassard-84 Quantum Key Rate, arXiv:quant-ph/0607018v2, PDF p. 3, Proof of Theorem 1, Eq. (8)–(10)
Read-back

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

For every natural number kkk, including k=0k=0k=0, and real numbers p,q,tp,q,tp,q,t satisfying 0≤p≤120\le p\le \tfrac120≤p≤21​, 0≤q≤10\le q\le10≤q≤1, and 0≤t≤p0\le t\le p0≤t≤p, the following holds. Write Br={0,1}rB_r=\{0,1\}^rBr​={0,1}r, interpret addition of words as coordinatewise exclusive-or, and set n=k+1n=k+1n=k+1. For a∈{0,1}a\in\{0,1\}a∈{0,1} and s∈Bks\in B_ks∈Bk​, define c(a,s)∈Bnc(a,s)\in B_nc(a,s)∈Bn​ by c(a,s)0=ac(a,s)_0=ac(a,s)0​=a and c(a,s)j+1=a⊕sjc(a,s)_{j+1}=a\mathbin{\oplus}s_jc(a,s)j+1​=a⊕sj​. Define

bq(f)=∏i=0n−1{q,fi=1,1−q,fi=0,wp,t(u,v)=∏i=0n−1βp,t(ui,vi),b_q(f)=\prod_{i=0}^{n-1} \begin{cases}q,&f_i=1,\\1-q,&f_i=0,\end{cases} \qquad w_{p,t}(u,v)=\prod_{i=0}^{n-1}\beta_{p,t}(u_i,v_i),bq​(f)=i=0∏n−1​{q,1−q,​fi​=1,fi​=0,​wp,t​(u,v)=i=0∏n−1​βp,t​(ui​,vi​),

where βp,t(0,0)=1+t−2p\beta_{p,t}(0,0)=1+t-2pβp,t​(0,0)=1+t−2p, βp,t(0,1)=βp,t(1,0)=p−t\beta_{p,t}(0,1)=\beta_{p,t}(1,0)=p-tβp,t​(0,1)=βp,t​(1,0)=p−t, and βp,t(1,1)=t\beta_{p,t}(1,1)=tβp,t​(1,1)=t. For each bit aaa, let Ra(p,q,t)R_a(p,q,t)Ra​(p,q,t) be the complex matrix indexed by triples (s,u,v)∈Bk×Bn×Bn(s,u,v)\in B_k\times B_n\times B_n(s,u,v)∈Bk​×Bn​×Bn​, with entries

Ra(p,q,t)(s,u,v),(s′,u′,v′)={2−k∑f∈Bnbq(f)wp,t(u,v)wp,t(u,v′)(−1)∑i=0n−1(vi+vi′)(c(a,s)i⊕fi),s=s′ and u=u′,0,otherwise,R_a(p,q,t)_{(s,u,v),(s',u',v')}= \begin{cases} 2^{-k}\displaystyle\sum_{f\in B_n}b_q(f) \sqrt{w_{p,t}(u,v)}\sqrt{w_{p,t}(u,v')} (-1)^{\sum_{i=0}^{n-1}(v_i+v'_i)(c(a,s)_i\mathbin{\oplus}f_i)}, & s=s'\ \text{and }u=u',\\ 0,&\text{otherwise}, \end{cases}Ra​(p,q,t)(s,u,v),(s′,u′,v′)​=⎩⎨⎧​2−kf∈Bn​∑​bq​(f)wp,t​(u,v)​wp,t​(u,v′)​(−1)∑i=0n−1​(vi​+vi′​)(c(a,s)i​⊕fi​),0,​s=s′ and u=u′,otherwise,​

where bits in the exponent are interpreted as integers. For a complex matrix AAA, write S(A)=−Re⁡tr⁡(h(A))S(A)=-\operatorname{Re}\operatorname{tr}(h(A))S(A)=−Retr(h(A)), where h(A)h(A)h(A) is obtained by continuous functional calculus from h(x)=xlog⁡2xh(x)=x\log_2 xh(x)=xlog2​x, using the total real logarithm convention log⁡20=0\log_2 0=0log2​0=0. Set

Ik(p,q,t)=S ⁣(R0(p,q,t)+R1(p,q,t)2)−S(R0(p,q,t))+S(R1(p,q,t))2.I_k(p,q,t)= S\!\left(\frac{R_0(p,q,t)+R_1(p,q,t)}2\right) -\frac{S(R_0(p,q,t))+S(R_1(p,q,t))}{2}.Ik​(p,q,t)=S(2R0​(p,q,t)+R1​(p,q,t)​)−2S(R0​(p,q,t))+S(R1​(p,q,t))​.

Also define vectors r±=(1−p, ±p)r_\pm=(\sqrt{1-p},\,\pm\sqrt p)r±​=(1−p​,±p​) indexed by 0,10,10,1, the matrix DDD by

Dab=(1−q)(r+)a(r+)b‾+q(r−)a(r−)b‾,D_{ab}=(1-q)(r_+)_a\overline{(r_+)_b} +q(r_-)_a\overline{(r_-)_b},Dab​=(1−q)(r+​)a​(r+​)b​​+q(r−​)a​(r−​)b​​,

and the matrix MMM indexed by x,y∈Bnx,y\in B_nx,y∈Bn​ by

Mxy=12∏i=0n−1Dxiyi+12(−1)∣x∣+∣y∣∏i=0n−1Dxiyi,M_{xy}=\frac12\prod_{i=0}^{n-1}D_{x_i y_i} +\frac12(-1)^{|x|+|y|}\prod_{i=0}^{n-1}D_{x_i y_i},Mxy​=21​i=0∏n−1​Dxi​yi​​+21​(−1)∣x∣+∣y∣i=0∏n−1​Dxi​yi​​,

where ∣x∣|x|∣x∣ counts the coordinates equal to 111. The declaration asserts both

Ik(p,q,t)≤Ik(p,q,p2)andIk(p,q,p2)=S(M)−(k+1)S(D).I_k(p,q,t)\le I_k(p,q,p^2) \qquad\text{and}\qquad I_k(p,q,p^2)=S(M)-(k+1)S(D).Ik​(p,q,t)≤Ik​(p,q,p2)andIk​(p,q,p2)=S(M)−(k+1)S(D).

All parameter endpoints are included; zero weights use 0=0\sqrt0=00​=0 and contribute 000 to xlog⁡2xx\log_2xxlog2​x, and when k=0k=0k=0 the syndrome word is the unique empty word.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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