Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§VII.C, equations (67)–(70): quantitative comparison of the two approaches

Open
QAlgorithms.Papers.Independent.Intake100.P31.comparison

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

prove2quantum

Use n≥1n\ge1n≥1 independent uses of the qubit Pauli channel ZxXzZ^xX^zZxXz, with independent single-qubit phase and bit probabilities pph,pbit∈[0,1]p_{\rm ph},p_{\rm bit}\in[0,1]pph​,pbit​∈[0,1]. Eve holds the entire complementary environment. A uniform message is a coset of L/KL/KL/K, with K≤L≤F2nK\le L\le\mathbb F_2^nK≤L≤F2n​; Alice sends the uniform mixture of words in that coset. Bob uses maximum-likelihood word decoding in LLL followed by projection modulo KKK. Let D(K,L)D(K,L)D(K,L) be the full trace norm between the actual cq state and the independent uniform-key state, and let χ(K,L)\chi(K,L)χ(K,L) be its Holevo information in bits. Let Pph(K,L)P_{\rm ph}(K,L)Pph​(K,L) be the actual ML quotient decoding error for K⊥/L⊥K^\perp/L^\perpK⊥/L⊥ under the phase marginal of this same Pauli law. The environment, decoder, and both leakage quantities are computed explicitly, rather than supplied as unrelated data. Set ηl(u)=h(u)+lu\eta_l(u)=h(u)+luηl​(u)=h(u)+lu for 0≤u≤1/20\le u\le1/20≤u≤1/2, and ηl(u)=1+lu\eta_l(u)=1+luηl​(u)=1+lu for u>1/2u>1/2u>1/2, where hhh is binary entropy in bits. For s∈[0,1]s\in[0,1]s∈[0,1] and p∈[0,1]p\in[0,1]p∈[0,1], define E0(s,p)=s−(1+s)log⁡2(p1/(1+s)+(1−p)1/(1+s))E_0(s,p)=s-(1+s)\log_2(p^{1/(1+s)}+(1-p)^{1/(1+s)})E0​(s,p)=s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s)) and E(R,p)=max⁡0≤s≤1[−sR+E0(s,p)]E(R,p)=\max_{0\le s\le1}[-sR+E_0(s,p)]E(R,p)=max0≤s≤1​[−sR+E0​(s,p)]. Consider block lengths n=k+1n=k+1n=k+1, finite nonempty uniform seed sets IkI_kIk​, fixed outer codes LkL_kLk​, and subcodes Kk,r≤LkK_{k,r}\le L_kKk,r​≤Lk​ whose dual extended-code families are εk\varepsilon_kεk​-almost universal at their maximum dimensions. Assume εk>0\varepsilon_k>0εk​>0, εk≤C(k+1)d\varepsilon_k\le C(k+1)^dεk​≤C(k+1)d for all k≥K0k\ge K_0k≥K0​, for fixed C>0,d,K0C>0,d,K_0C>0,d,K0​, and Sk=min⁡rdim⁡Kk,r/(k+1)→S∈[0,1]S_k=\min_r\dim K_{k,r}/(k+1)\to S\in[0,1]Sk​=minr​dimKk,r​/(k+1)→S∈[0,1]. For fixed Pauli parameters, let D‾k\overline D_kDk​ and χ‾k\overline\chi_kχ​k​ be the seed averages of the actual leakage. With −log⁡20=+∞-\log_2 0=+\infty−log2​0=+∞,

lim inf⁡k→∞−log⁡2D‾kk+1≥12E(1−S,pph),lim inf⁡k→∞−log⁡2χ‾kk+1≥12E(1−S,pph),lim inf⁡k→∞−log⁡2χ‾kk+1≥E(1−S,pph).\liminf_{k\to\infty}\frac{-\log_2\overline D_k}{k+1}\ge\tfrac12E(1-S,p_{\rm ph}),\qquad\liminf_{k\to\infty}\frac{-\log_2\overline\chi_k}{k+1}\ge\tfrac12E(1-S,p_{\rm ph}),\qquad\liminf_{k\to\infty}\frac{-\log_2\overline\chi_k}{k+1}\ge E(1-S,p_{\rm ph}).k→∞liminf​k+1−log2​Dk​​≥21​E(1−S,pph​),k→∞liminf​k+1−log2​χ​k​​≥21​E(1−S,pph​),k→∞liminf​k+1−log2​χ​k​​≥E(1−S,pph​).

For the explicit bounds Tn=2−nE(1−S,pph)/2+3/2max⁡{ε,1}T_n=2^{-nE(1-S,p_{\rm ph})/2+3/2}\max\{\sqrt\varepsilon,1\}Tn​=2−nE(1−S,pph​)/2+3/2max{ε​,1} and Un=(4+n+1ε)2−nE(1−S,pph)/2U_n=(4+\sqrt{n+1}\sqrt\varepsilon)2^{-nE(1-S,p_{\rm ph})/2}Un​=(4+n+1​ε​)2−nE(1−S,pph​)/2, if every εk≥1\varepsilon_k\ge1εk​≥1, then

Tk+1Uk+1=23/2εk4+k+2εk⟶0.\frac{T_{k+1}}{U_{k+1}}=\frac{2^{3/2}\sqrt{\varepsilon_k}}{4+\sqrt{k+2}\sqrt{\varepsilon_k}}\longrightarrow0.Uk+1​Tk+1​​=4+k+2​εk​​23/2εk​​​⟶0.

These compare upper bounds; no strict comparison of actual leakage is asserted. Natural-log rate conventions multiply each base-two exponent by ln⁡2\ln2ln2.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P31
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P31

open scoped BigOperators Matrix ComplexConjugate

open QAlgorithms

local instance {n : ℕ} (C : BinaryLinearCode n) : Fintype C := Fintype.ofFinite C

/-- PDF p.14 (67)--(70): actual leakage exponents for polynomial epsilon growth,
with integer code rates converging to S. Equation (69) is the estimate obtained
from (65); (70) gives the full gallagerExponent exponent. All logs here are base two;
the corresponding natural-log rates are multiplied by ln(2).
The ratio compares explicit bounds, not actual leakage from two protocols. -/
theorem comparison {I : ℕ → Type*} [∀ k, Fintype (I k)] [∀ k, Nonempty (I k)]
    (large : (k : ℕ) → BinaryLinearCode (k + 1))
    (small : (k : ℕ) → I k → BinaryLinearCode (k + 1))
    (hsub : ∀ k r, small k r ≤ large k) (eps : ℕ → ℝ)
    (heps : ∀ k, 0 < eps k)
    (hu : ∀ k, ExtUniversalAt (binDual (large k)) (fun r => binDual (small k r))
      (maxDim (fun r => binDual (small k r))) (eps k))
    (hpoly : ∃ (C : ℝ) (d K : ℕ), 0 < C ∧
      ∀ k ≥ K, eps k ≤ C * ((k + 1 : ℕ) : ℝ) ^ d)
    (S : ℝ) (hS : S ∈ Set.Icc 0 1)
    (hrate : Filter.Tendsto (fun k => (minDim (small k) : ℝ) / (k + 1))
      Filter.atTop (nhds S))
    (pPhase pBit : ℝ) (hp : pPhase ∈ Set.Icc 0 1) (hb : pBit ∈ Set.Icc 0 1) :
    (Filter.liminf (fun k => logRate (k + 1)
      (avg (fun r => traceLeak (small k r) (large k) (iidPauli pPhase pBit)))) Filter.atTop ≥
        ((gallagerExponent (1 - S) pPhase / 2 : ℝ) : EReal)) ∧
    (Filter.liminf (fun k => logRate (k + 1)
      (avg (fun r => holevoLeak (small k r) (large k) (iidPauli pPhase pBit)))) Filter.atTop ≥
        ((gallagerExponent (1 - S) pPhase / 2 : ℝ) : EReal)) ∧
    (Filter.liminf (fun k => logRate (k + 1)
      (avg (fun r => holevoLeak (small k r) (large k) (iidPauli pPhase pBit)))) Filter.atTop ≥
        (gallagerExponent (1 - S) pPhase : EReal)) ∧
    ((∀ k, 1 ≤ eps k) →
      (∀ k, phaseTraceBound (k + 1) S pPhase (eps k) /
          deltaTraceBound (k + 1) S pPhase (eps k) =
        (2 : ℝ) ^ (3 / 2 : ℝ) * Real.sqrt (eps k) /
          (4 + Real.sqrt (k + 2) * Real.sqrt (eps k))) ∧
      Filter.Tendsto (fun k => phaseTraceBound (k + 1) S pPhase (eps k) /
        deltaTraceBound (k + 1) S pPhase (eps k)) Filter.atTop (nhds 0)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P31

end
Source
Dual universality of hash functions and its applications to quantum cryptography, arXiv:1101.0064v4, PDF p. 14, §VII.C, equations (67)–(70): quantitative comparison of the two approaches
Read-back

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

For every family of finite nonempty seed types IkI_kIk​, indexed by natural numbers kkk, let LkL_kLk​ be a binary linear subspace of Vk+1=F2k+1V_{k+1}=\mathbb F_2^{k+1}Vk+1​=F2k+1​, and let Ck,rC_{k,r}Ck,r​ be such a subspace for every r∈Ikr\in I_kr∈Ik​. Assume Ck,r⊆LkC_{k,r}\subseteq L_kCk,r​⊆Lk​ for all k,rk,rk,r. For a binary code C⊆VnC\subseteq V_nC⊆Vn​, write C⊥={x:∑icixi=0 for every c∈C}C^\perp=\{x:\sum_i c_ix_i=0\text{ for every }c\in C\}C⊥={x:∑i​ci​xi​=0 for every c∈C}. Let εk>0\varepsilon_k>0εk​>0 for every kkk, put tk=max⁡r∈Ikdim⁡F2Ck,r⊥t_k=\max_{r\in I_k}\dim_{\mathbb F_2}C_{k,r}^{\perp}tk​=maxr∈Ik​​dimF2​​Ck,r⊥​, and assume, for every kkk, that Lk⊥⊆Ck,r⊥L_k^\perp\subseteq C_{k,r}^\perpLk⊥​⊆Ck,r⊥​ for every seed and that every x∉Lk⊥x\notin L_k^\perpx∈/Lk⊥​ satisfies

∣{r∈Ik:x∈Ck,r⊥}∣∣Ik∣≤εk 2tk−(k+1).\frac{|\{r\in I_k:x\in C_{k,r}^\perp\}|}{|I_k|} \le \varepsilon_k\,2^{t_k-(k+1)}.∣Ik​∣∣{r∈Ik​:x∈Ck,r⊥​}∣​≤εk​2tk​−(k+1).

Assume also that there exist a real constant c>0c>0c>0 and natural numbers d,Kd,Kd,K such that εk≤c(k+1)d\varepsilon_k\le c(k+1)^dεk​≤c(k+1)d for all k≥Kk\ge Kk≥K. Let S∈[0,1]S\in[0,1]S∈[0,1], and assume min⁡r∈Ikdim⁡F2Ck,r/(k+1)→S\min_{r\in I_k}\dim_{\mathbb F_2}C_{k,r}/(k+1)\to Sminr∈Ik​​dimF2​​Ck,r​/(k+1)→S. Let pphase,pbit∈[0,1]p_{\mathrm{phase}},p_{\mathrm{bit}}\in[0,1]pphase​,pbit​∈[0,1], including their endpoints. Define Bp(x)=∏i=1n(1−p)B_p(x)=\prod_{i=1}^n(1-p)Bp​(x)=∏i=1n​(1−p) or ppp, choosing 1−p1-p1−p when xi=0x_i=0xi​=0 and ppp otherwise, and Wn(x,z)=Bpphase(x)Bpbit(z)W_n(x,z)=B_{p_{\mathrm{phase}}}(x)B_{p_{\mathrm{bit}}}(z)Wn​(x,z)=Bpphase​​(x)Bpbit​​(z) for x,z∈Vnx,z\in V_nx,z∈Vn​. To specify the quantities in the conclusion, define the matrix DWD_WDW​, with rows indexed by (b,(x,z))∈Vn×(Vn×Vn)(b,(x,z))\in V_n\times(V_n\times V_n)(b,(x,z))∈Vn​×(Vn​×Vn​) and columns by a∈Vna\in V_na∈Vn​, by

(DW)(b,(x,z)),a=Wn(x,z){(−1)x⋅b,b=a+z,0,b≠a+z,EW(ρ)=Tr⁡Vn(DWρDW∗),(D_W)_{(b,(x,z)),a} =\sqrt{W_n(x,z)} \begin{cases} (-1)^{x\cdot b},&b=a+z,\\ 0,&b\ne a+z, \end{cases} \qquad \mathcal E_W(\rho)=\operatorname{Tr}_{V_n}(D_W\rho D_W^*),(DW​)(b,(x,z)),a​=Wn​(x,z)​{(−1)x⋅b,0,​b=a+z,b=a+z,​EW​(ρ)=TrVn​​(DW​ρDW∗​),

where x⋅b=∑ixibi∈F2x\cdot b=\sum_i x_ib_i\in\mathbb F_2x⋅b=∑i​xi​bi​∈F2​ is represented by 000 or 111, and the partial trace sums over the first VnV_nVn​ coordinate. For C⊆L⊆VnC\subseteq L\subseteq V_nC⊆L⊆Vn​, let ρC,a\rho_{C,a}ρC,a​ be diagonal with entry 1/∣C∣1/|C|1/∣C∣ at bbb if b−a∈Cb-a\in Cb−a∈C, and 000 otherwise; put EC,a=EW(ρC,a)E_{C,a}=\mathcal E_W(\rho_{C,a})EC,a​=EW​(ρC,a​) and E‾L=∣L∣−1∑a∈LEW(∣a⟩⟨a∣)\overline E_L=|L|^{-1}\sum_{a\in L}\mathcal E_W(|a\rangle\langle a|)EL​=∣L∣−1∑a∈L​EW​(∣a⟩⟨a∣). Define

T(C,L)=1∣L∣∑a∈L∥EC,a−E‾L∥1,H(C,L)=S(E‾L)−1∣L∣∑a∈LS(EC,a),T(C,L)=\frac1{|L|}\sum_{a\in L}\|E_{C,a}-\overline E_L\|_1,\qquad H(C,L)=\mathcal S(\overline E_L)-\frac1{|L|}\sum_{a\in L}\mathcal S(E_{C,a}),T(C,L)=∣L∣1​a∈L∑​∥EC,a​−EL​∥1​,H(C,L)=S(EL​)−∣L∣1​a∈L∑​S(EC,a​),

where ∥M∥1=Re⁡Tr⁡M∗M\|M\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{M^*M}∥M∥1​=ReTrM∗M​ and S(ρ)=−Re⁡Tr⁡f(ρ)\mathcal S(\rho)=-\operatorname{Re}\operatorname{Tr}f(\rho)S(ρ)=−ReTrf(ρ) for f(u)=ulog⁡2uf(u)=u\log_2uf(u)=ulog2​u, interpreted by continuous functional calculus and with f(0)=0f(0)=0f(0)=0. Write G(R,p)=sup⁡0≤s≤1[−sR+s−(1+s)log⁡2(p1/(1+s)+(1−p)1/(1+s))]G(R,p)=\sup_{0\le s\le1}[-sR+s-(1+s)\log_2(p^{1/(1+s)}+(1-p)^{1/(1+s)})]G(R,p)=sup0≤s≤1​[−sR+s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s))], and let λ(n,e)=+∞\lambda(n,e)=+\inftyλ(n,e)=+∞ if e=0e=0e=0, and otherwise the real number −log⁡2(e)/n-\log_2(e)/n−log2​(e)/n embedded into the extended reals. Then all three inequalities hold:

lim inf⁡k→∞λ ⁣(k+1,1∣Ik∣∑rT(Ck,r,Lk))≥12G(1−S,pphase),lim inf⁡k→∞λ ⁣(k+1,1∣Ik∣∑rH(Ck,r,Lk))≥12G(1−S,pphase),lim inf⁡k→∞λ ⁣(k+1,1∣Ik∣∑rH(Ck,r,Lk))≥G(1−S,pphase).\begin{aligned} \liminf_{k\to\infty}\lambda\!\left(k+1,\frac1{|I_k|}\sum_rT(C_{k,r},L_k)\right) &\ge \tfrac12G(1-S,p_{\mathrm{phase}}),\\ \liminf_{k\to\infty}\lambda\!\left(k+1,\frac1{|I_k|}\sum_rH(C_{k,r},L_k)\right) &\ge \tfrac12G(1-S,p_{\mathrm{phase}}),\\ \liminf_{k\to\infty}\lambda\!\left(k+1,\frac1{|I_k|}\sum_rH(C_{k,r},L_k)\right) &\ge G(1-S,p_{\mathrm{phase}}). \end{aligned}k→∞liminf​λ(k+1,∣Ik​∣1​r∑​T(Ck,r​,Lk​))k→∞liminf​λ(k+1,∣Ik​∣1​r∑​H(Ck,r​,Lk​))k→∞liminf​λ(k+1,∣Ik​∣1​r∑​H(Ck,r​,Lk​))​≥21​G(1−S,pphase​),≥21​G(1−S,pphase​),≥G(1−S,pphase​).​

Additionally, if εk≥1\varepsilon_k\ge1εk​≥1 for every kkk, define P(n,S,p,e)=2−nG(1−S,p)/2+3/2max⁡{e,1}P(n,S,p,e)=2^{-nG(1-S,p)/2+3/2}\max\{\sqrt e,1\}P(n,S,p,e)=2−nG(1−S,p)/2+3/2max{e​,1} and D(n,S,p,e)=(4+n+1e) 2−nG(1−S,p)/2D(n,S,p,e)=(4+\sqrt{n+1}\sqrt e)\,2^{-nG(1-S,p)/2}D(n,S,p,e)=(4+n+1​e​)2−nG(1−S,p)/2; then for every kkk,

P(k+1,S,pphase,εk)D(k+1,S,pphase,εk)=23/2εk4+k+2εk,\frac{P(k+1,S,p_{\mathrm{phase}},\varepsilon_k)} {D(k+1,S,p_{\mathrm{phase}},\varepsilon_k)} =\frac{2^{3/2}\sqrt{\varepsilon_k}} {4+\sqrt{k+2}\sqrt{\varepsilon_k}},D(k+1,S,pphase​,εk​)P(k+1,S,pphase​,εk​)​=4+k+2​εk​​23/2εk​​​,

and this ratio tends to 000 as k→∞k\to\inftyk→∞. All seed averages are uniform, seeds may index identical codes, and block lengths here are always positive because they equal k+1k+1k+1.

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