Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Near-pure Z ancilla implies privacy and approximate uniformity

Open
QAlgorithms.Papers.Independent.Intakenext100.P04.keyImperfections

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

prove2quantum

There is an absolute integer r0r_0r0​ such that the following holds for r≥max⁡{r0,1}r\ge\max\{r_0,1\}r≥max{r0​,1} and 0≤η≤1/20\le\eta\le1/20≤η≤1/2. Let ρQ\rho_QρQ​ be the reduced density operator of an rrr-qubit factor of any positive trace-class joint state, with arbitrary quantum and public side information held by Eve. Assume ⟨0∣ρQ∣0⟩Z≥1−η\langle0|\rho_Q|0\rangle_Z\ge1-\eta⟨0∣ρQ​∣0⟩Z​≥1−η. Let pyp_ypy​ be the complete X-measurement distribution, H(p)H(p)H(p) its Shannon entropy in bits, SSS von Neumann entropy in bits, and IaccI_{\rm acc}Iacc​ the supremum of the mutual information over Eve's measurements. Then ppp is a probability distribution and

Iacc≤S(ρQ)≤h(η)+ηlog⁡2(2r−1),2−r(∑ypy)2≥1−η,I_{\rm acc}\le S(\rho_Q)\le h(\eta)+\eta\log_2(2^r-1),\qquad 2^{-r}\left(\sum_y\sqrt{p_y}\right)^2\ge1-\eta,Iacc​≤S(ρQ​)≤h(η)+ηlog2​(2r−1),2−r(y∑​py​​)2≥1−η, H(p)≥r(21−η−1)≥r(1−2η).H(p)\ge r(2\sqrt{1-\eta}-1)\ge r(1-2\eta).H(p)≥r(21−η​−1)≥r(1−2η).

For η>0\eta>0η>0, also S(ρQ)<h(η)+rηS(\rho_Q)<h(\eta)+r\etaS(ρQ​)<h(η)+rη. At η=0\eta=0η=0, Iacc=0I_{\rm acc}=0Iacc​=0 and py=2−rp_y=2^{-r}py​=2−r for every yyy. Here h(t)=−tlog⁡2t−(1−t)log⁡2(1−t)h(t)=-t\log_2t-(1-t)\log_2(1-t)h(t)=−tlog2​t−(1−t)log2​(1−t), with 0log⁡0=00\log 0=00log0=0.

These conditional state-to-key estimates quantify both imperfections; they do not replace the full protocol's acceptance-conditioned security result.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P04
Formal statement
noncomputable section

universe u v w

namespace QAlgorithms.Papers.Independent.Intakenext100.P04

open QAlgorithms

open QAlgorithms.Papers.Independent.Dependency50.P13
  (State IsTraceClass IsPositive operatorTrace)

open QAlgorithms.Papers.Independent.Advance50.P18 (keyEntropy)

open scoped ComplexConjugate

attribute [local instance] Classical.propDecidable Classical.decEq

variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]

/-- Koashi–Preskill PDF p.4(a),(b), following Eq.(12). The threshold is absolute,
before eta, the state and Eve's Hilbert space. The strict entropy bound excludes
eta=0, where exact uniformity and zero information are asserted instead.
This is a state-to-key estimate, not the deferred accepted-protocol theorem. -/
theorem keyImperfections :
    ∃ r0 : ℕ, ∀ r : ℕ, r0 ≤ r → 1 ≤ r → ∀ eta : ℝ,
      0 ≤ eta → eta ≤ 1 / 2 →
      ∀ {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
        {I : Type v} (b : HilbertBasis I ℂ H) (rho : State b) (A : QubitFactor r H),
      1 - eta ≤ (qubitMarginal b rho A 0 0).re →
      let sigma := qubitMarginal b rho A
      let p := keyLaw b rho A
      IsDensityMatrix sigma ∧
      (∀ y, 0 ≤ p y) ∧ (∑ y, p y) = 1 ∧
      accessibleKeyInfo b rho A ≤ vnEntropy sigma ∧
      vnEntropy sigma ≤ binEntropy2 eta + eta * Real.logb 2 ((2 : ℝ) ^ r - 1) ∧
      (0 < eta → vnEntropy sigma < binEntropy2 eta + r * eta) ∧
      1 - eta ≤ uniformKeyFidelity p ∧
      (r : ℝ) * (2 * Real.sqrt (1 - eta) - 1) ≤ keyEntropy p ∧
      (r : ℝ) * (1 - 2 * eta) ≤ (r : ℝ) * (2 * Real.sqrt (1 - eta) - 1) ∧
      (eta = 0 → accessibleKeyInfo b rho A = 0 ∧
        ∀ y, p y = ((2 : ℝ) ^ r)⁻¹) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P04

end
Source
Secure quantum key distribution with an uncharacterized source, arXiv:quant-ph/0208155v2, PDF p. 4, Conclusions (a),(b) after Eq.(12)
Read-back

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

There exists a natural number r0r_0r0​ such that, for every natural number r≥r0r\ge r_0r≥r0​ with r≥1r\ge1r≥1, every real η∈[0,12]\eta\in[0,\tfrac12]η∈[0,21​], every complete complex inner-product space HHH, every Hilbert basis b=(bi)i∈Ib=(b_i)_{i\in I}b=(bi​)i∈I​, every operator ρ\rhoρ admitting a representation ρx=∑j′⟨vj,x⟩uj\rho x=\sum'_j\langle v_j,x\rangle u_jρx=∑j′​⟨vj​,x⟩uj​ with ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞ and satisfying ρ†=ρ\rho^\dagger=\rhoρ†=ρ, Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0, and τb(ρ)=1\tau_b(\rho)=1τb​(ρ)=1, where τb(T)=∑i′⟨bi,Tbi⟩\tau_b(T)=\sum'_i\langle b_i,Tb_i\rangleτb​(T)=∑i′​⟨bi​,Tbi​⟩, and every unital complex algebra homomorphism AAA from rrr-qubit matrices to bounded operators on HHH preserving adjoints, the following holds. Define σi,j=τb(A(Ej,i)ρ)\sigma_{i,j}=\tau_b(A(E_{j,i})\rho)σi,j​=τb​(A(Ej,i​)ρ), hy(z)=2−r/2(−1)∑iyizih_y(z)=2^{-r/2}(-1)^{\sum_i y_i z_i}hy​(z)=2−r/2(−1)∑i​yi​zi​, and py=Re⁡τb(A(hyhy†)ρ)p_y=\operatorname{Re}\tau_b(A(h_yh_y^\dagger)\rho)py​=Reτb​(A(hy​hy†​)ρ). For any real array PPP on finite sets S×ZS\times ZS×Z, write

I(P)=∑s,zPs,zlog⁡2Ps,z(∑z′Ps,z′)(∑s′Ps′,z).\mathcal I(P)=\sum_{s,z}P_{s,z}\log_2 \frac{P_{s,z}}{\bigl(\sum_{z'}P_{s,z'}\bigr)\bigl(\sum_{s'}P_{s',z}\bigr)}.I(P)=s,z∑​Ps,z​log2​(∑z′​Ps,z′​)(∑s′​Ps′,z​)Ps,z​​.

Let A\mathcal AA be the real supremum, over every natural nnn and every family of positive bounded operators MzM_zMz​, z∈Fin⁡(n)z\in\operatorname{Fin}(n)z∈Fin(n), summing to III and commuting with every A(B)A(B)A(B), of I(PM)\mathcal I(P^M)I(PM), where Py,zM=Re⁡τb(A(hyhy†)Mzρ)P^M_{y,z}=\operatorname{Re}\tau_b(A(h_yh_y^\dagger)M_z\rho)Py,zM​=Reτb​(A(hy​hy†​)Mz​ρ). Define S(σ)=−Re⁡tr⁡[f(σ)]S(\sigma)=-\operatorname{Re}\operatorname{tr}[f(\sigma)]S(σ)=−Retr[f(σ)] by continuous functional calculus with f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x, h2(η)=−ηlog⁡2η−(1−η)log⁡2(1−η)h_2(\eta)=-\eta\log_2\eta-(1-\eta)\log_2(1-\eta)h2​(η)=−ηlog2​η−(1−η)log2​(1−η), and H(p)=−∑ypylog⁡2pyH(p)=-\sum_y p_y\log_2p_yH(p)=−∑y​py​log2​py​, with zero terms interpreted as zero. If 1−η≤Re⁡σ0,01-\eta\le\operatorname{Re}\sigma_{0,0}1−η≤Reσ0,0​, then σ\sigmaσ is positive semidefinite with trace 111, every py≥0p_y\ge0py​≥0, ∑ypy=1\sum_yp_y=1∑y​py​=1, and

A≤S(σ)≤h2(η)+ηlog⁡2(2r−1),η>0 ⟹ S(σ)<h2(η)+rη,1−η≤2−r(∑ypy)2,r(21−η−1)≤H(p),r(1−2η)≤r(21−η−1),η=0 ⟹ A=0 and py=2−r for every y.\begin{gathered} \mathcal A\le S(\sigma) \le h_2(\eta)+\eta\log_2(2^r-1),\\ \eta>0\ \Longrightarrow\ S(\sigma)<h_2(\eta)+r\eta,\\ 1-\eta\le 2^{-r}\left(\sum_y\sqrt{p_y}\right)^2,\\ r(2\sqrt{1-\eta}-1)\le H(p),\qquad r(1-2\eta)\le r(2\sqrt{1-\eta}-1),\\ \eta=0\ \Longrightarrow\ \mathcal A=0 \text{ and }p_y=2^{-r}\text{ for every }y. \end{gathered}A≤S(σ)≤h2​(η)+ηlog2​(2r−1),η>0 ⟹ S(σ)<h2​(η)+rη,1−η≤2−r(y∑​py​​)2,r(21−η​−1)≤H(p),r(1−2η)≤r(21−η​−1),η=0 ⟹ A=0 and py​=2−r for every y.​

The zero subscript denotes the all-false string; no countability or separability assumption is imposed on III or HHH. In the mutual-information formula, division and logarithms are the total real operations, including a/0=0a/0=0a/0=0 and log⁡20=0\log_2 0=0log2​0=0.

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

    Confirmed by the moderator at approval.

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