Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§VII.B, equations (62)–(63): deterministic privacy amplification uniform in Pauli parameters

Open
QAlgorithms.Papers.Independent.Intake100.P31.deterministic_security

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)]. Given LLL and 0≤t≤dim⁡L0\le t\le\dim L0≤t≤dimL, there exists a fixed dimension-ttt subcode K≤LK\le LK≤L, selected before either Pauli parameter, such that, with S=t/nS=t/nS=t/n and l=dim⁡L−tl=\dim L-tl=dimL−t,

∀pph,pbit∈[0,1],D(K,L)≤n+1 2−nE(1−S,pph)/2+3/2,χ(K,L)≤ηl((n+1)2−nE(1−S,pph)).\forall p_{\rm ph},p_{\rm bit}\in[0,1],\quad D(K,L)\le\sqrt{n+1}\,2^{-nE(1-S,p_{\rm ph})/2+3/2},\qquad\chi(K,L)\le\eta_l((n+1)2^{-nE(1-S,p_{\rm ph})}).∀pph​,pbit​∈[0,1],D(K,L)≤n+1​2−nE(1−S,pph​)/2+3/2,χ(K,L)≤ηl​((n+1)2−nE(1−S,pph​)).

The encoder is deterministic and the channel's full environment is included. At t=0t=0t=0 these are the source's trivial privacy bounds, rather than a positive-rate security assertion.

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 pp.14--15, (62),(63): one deterministic subcode is chosen before either
Pauli parameter; its transcript contains no unknown private seed.
The endpoint t=0 is permitted and yields only the source's trivial bound. -/
theorem deterministic_security {n t : ℕ} (hn : 0 < n) (large : BinaryLinearCode n)
    (ht : t ≤ Module.finrank (ZMod 2) large) :
    ∃ small : BinaryLinearCode n, small ≤ large ∧ Module.finrank (ZMod 2) small = t ∧
      ∀ pPhase pBit : ℝ, pPhase ∈ Set.Icc 0 1 → pBit ∈ Set.Icc 0 1 →
        traceLeak small large (iidPauli pPhase pBit) ≤
          Real.sqrt (n + 1) * (2 : ℝ) ^
            (-(1 / 2 : ℝ) * n * gallagerExponent (1 - (t : ℝ) / n) pPhase + 3 / 2) ∧
        holevoLeak small large (iidPauli pPhase pBit) ≤
          entropyEnvelope (messageLength small large)
            ((n + 1) * (2 : ℝ) ^ (-(n : ℝ) * gallagerExponent (1 - (t : ℝ) / n) pPhase)) := 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.B, equations (62)–(63): deterministic privacy amplification uniform in Pauli parameters
Read-back

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

For every positive natural number nnn, binary linear code L⊆Bn=(F2)nL\subseteq B_n=(\mathbb F_2)^nL⊆Bn​=(F2​)n, and natural number t≤dim⁡F2Lt\le\dim_{\mathbb F_2}Lt≤dimF2​​L, there exists a binary linear code S⊆LS\subseteq LS⊆L with dim⁡S=t\dim S=tdimS=t such that the following two bounds hold simultaneously for every pph,pbit∈[0,1]p_{\rm ph},p_{\rm bit}\in[0,1]pph​,pbit​∈[0,1], including the endpoints. Define

bp(x)=∏i=0n−1{1−p,xi=0,p,xi=1,W(x,z)=bpph(x)bpbit(z),(DW)(b,(x,z)),c=W(x,z) 1{b=c+z}(−1)x⋅b,b_p(x)=\prod_{i=0}^{n-1} \begin{cases}1-p,&x_i=0,\\p,&x_i=1,\end{cases} \qquad W(x,z)=b_{p_{\rm ph}}(x)b_{p_{\rm bit}}(z), \qquad (D_W)_{(b,(x,z)),c} =\sqrt{W(x,z)}\,\mathbf1_{\{b=c+z\}}(-1)^{x\cdot b},bp​(x)=i=0∏n−1​{1−p,p,​xi​=0,xi​=1,​W(x,z)=bpph​​(x)bpbit​​(z),(DW​)(b,(x,z)),c​=W(x,z)​1{b=c+z}​(−1)x⋅b,

where the binary dot product in the exponent is represented by 000 or 111, and let

EW(ρ)e,e′=∑b∈Bn(DWρDW†)(b,e),(b,e′).\mathcal E_W(\rho)_{e,e'}=\sum_{b\in B_n}(D_W\rho D_W^\dagger)_{(b,e),(b,e')}.EW​(ρ)e,e′​=b∈Bn​∑​(DW​ρDW†​)(b,e),(b,e′)​.

Let ρS,a\rho_{S,a}ρS,a​ be diagonal with entry ∣S∣−11{b−a∈S}|S|^{-1}\mathbf1_{\{b-a\in S\}}∣S∣−11{b−a∈S}​ at bbb, let ∣a⟩|a\rangle∣a⟩ be the coordinate vector at aaa, and set

σa=EW(ρS,a),σˉ=1∣L∣∑a∈LEW(∣a⟩⟨a∣),T=1∣L∣∑a∈L∥σa−σˉ∥1,J=H(σˉ)−1∣L∣∑a∈LH(σa).\sigma_a=\mathcal E_W(\rho_{S,a}), \quad \bar\sigma=\frac1{|L|}\sum_{a\in L}\mathcal E_W(|a\rangle\langle a|), \quad T=\frac1{|L|}\sum_{a\in L}\|\sigma_a-\bar\sigma\|_1, \quad J=\mathcal H(\bar\sigma)-\frac1{|L|}\sum_{a\in L}\mathcal H(\sigma_a).σa​=EW​(ρS,a​),σˉ=∣L∣1​a∈L∑​EW​(∣a⟩⟨a∣),T=∣L∣1​a∈L∑​∥σa​−σˉ∥1​,J=H(σˉ)−∣L∣1​a∈L∑​H(σa​).

Here ∥M∥1=Re⁡tr⁡M†M\|M\|_1=\operatorname{Re}\operatorname{tr}\sqrt{M^\dagger M}∥M∥1​=RetrM†M​, and H(Q)=−Re⁡tr⁡(u↦ulog⁡2u)(Q)\mathcal H(Q)=-\operatorname{Re}\operatorname{tr}(u\mapsto u\log_2u)(Q)H(Q)=−Retr(u↦ulog2​u)(Q), using continuous functional calculus. With

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} \left[-sR+s-(1+s)\log_2\!\left(p^{1/(1+s)}+(1-p)^{1/(1+s)}\right)\right]G(R,p)=0≤s≤1sup​[−sR+s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s))]

and

Fℓ(u)={h2(u)+ℓu,u≤12,1+ℓu,u>12,h2(u)=−ulog⁡u−(1−u)log⁡(1−u)log⁡2,F_\ell(u)= \begin{cases} h_2(u)+\ell u,&u\le\tfrac12,\\ 1+\ell u,&u>\tfrac12, \end{cases} \qquad h_2(u)=\frac{-u\log u-(1-u)\log(1-u)}{\log2},Fℓ​(u)={h2​(u)+ℓu,1+ℓu,​u≤21​,u>21​,​h2​(u)=log2−ulogu−(1−u)log(1−u)​,

where logarithms use their total real convention and log⁡0=0\log0=0log0=0, the asserted bounds are

T≤n+1 2−12nG(1−t/n,pph)+32,J≤Fdim⁡L−dim⁡S((n+1) 2−nG(1−t/n,pph)).T\le\sqrt{n+1}\, 2^{-\frac12nG(1-t/n,p_{\rm ph})+\frac32}, \qquad J\le F_{\dim L-\dim S} \left((n+1)\,2^{-nG(1-t/n,p_{\rm ph})}\right).T≤n+1​2−21​nG(1−t/n,pph​)+23​,J≤FdimL−dimS​((n+1)2−nG(1−t/n,pph​)).

The same chosen SSS works for all these pairs of parameters; t=0t=0t=0 and t=dim⁡Lt=\dim Lt=dimL are included.

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