Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered (65)–(67): ensemble leakage and full trace-norm bounds

Open
QAlgorithms.Papers.Independent.Advance50.P23.ensemble_leakage

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

prove2quantum

All classical alphabets are finite and nonempty and all quantum systems are finite dimensional. A cq channel W:x↦WxW:x\mapsto W_xW:x↦Wx​ has positive semidefinite outputs of trace one; every input law is nonnegative and sums to one. Logarithms are natural. Write Is(W,P)I_s(W,P)Is​(W,P) for the paper's Petz information, IsG(W,P)I_s^G(W,P)IsG​(W,P) for its Gallager information, H1+s(P)H_{1+s}(P)H1+s​(P) for classical Rényi entropy, and I0=I0G=II_0=I_0^G=II0​=I0G​=I for Holevo information. Matrix powers vanish on the kernel, including exponent zero. Write WˉP=∑xP(x)Wx\bar W_P=\sum_xP(x)W_xWˉP​=∑x​P(x)Wx​, As=∑xP(x)Wx1+sA_s=\sum_xP(x)W_x^{1+s}As​=∑x​P(x)Wx1+s​, vvv for the number of distinct eigenvalues of WˉP\bar W_PWˉP​, and vsv_svs​ for that of AsA_sAs​. The supported spectral spread is λs=log⁡λmax⁡(As)−log⁡λmin⁡,+(As)\lambda_s=\log\lambda_{\max}(A_s)-\log\lambda_{\min,+}(A_s)λs​=logλmax​(As​)−logλmin,+​(As​) and μs=min⁡{4+vs,(4+⌈λs⌉)es/2}\mu_s=\min\{4+\sqrt{v_s},(4+\sqrt{\lceil\lambda_s\rceil})e^{s/2}\}μs​=min{4+vs​​,(4+⌈λs​⌉​)es/2}.

For a message-output cq channel VVV, Imix(V)I_{\rm mix}(V)Imix​(V) and d1,mix(V)d_{1,\rm mix}(V)d1,mix​(V) are its uniform-message Holevo information and full trace-norm correlation. Their maximum versions optimize over every message law. A code has an actual stochastic encoder and a normalized message POVM; ϵ\epsilonϵ and ϵmax⁡\epsilon_{\max}ϵmax​ denote its average and worst-message error. “Uses PLP_LPL​” means each encoder row is a pushforward of that sole auxiliary law under a deterministic table chosen before communication.

For M,L≥1M,L\ge1M,L≥1, sample all table entries c(ℓ,m)c(\ell,m)c(ℓ,m) independently from PXP_XPX​ and encode message mmm using Γm(x)=∑ℓPL(ℓ)1c(ℓ,m)=x\Gamma_m(x)=\sum_\ell P_L(\ell)\mathbf1_{c(\ell,m)=x}Γm​(x)=∑ℓ​PL​(ℓ)1c(ℓ,m)=x​. For 0<s≤10<s\le10<s≤1,

EcImix(WE∘Γ)≤vsses(Is−H1+s),\mathbb E_c I_{\rm mix}(W_E\circ\Gamma)\le\frac{v^s}{s}e^{s(I_s-H_{1+s})},Ec​Imix​(WE​∘Γ)≤svs​es(Is​−H1+s​), Ecd1,mix(WE∘Γ)≤(4+vs)es2(IsG−H1+s),\mathbb E_c d_{1,\rm mix}(W_E\circ\Gamma)\le(4+\sqrt{v_s})e^{\frac s2(I_s^G-H_{1+s})},Ec​d1,mix​(WE​∘Γ)≤(4+vs​​)e2s​(IsG​−H1+s​), Ecd1,mix(WE∘Γ)≤(4+⌈λs⌉)es2(IsG−H1+s)+s/2.\mathbb E_c d_{1,\rm mix}(W_E\circ\Gamma)\le(4+\sqrt{\lceil\lambda_s\rceil})e^{\frac s2(I_s^G-H_{1+s})+s/2}.Ec​d1,mix​(WE​∘Γ)≤(4+⌈λs​⌉​)e2s​(IsG​−H1+s​)+s/2.

Here Is,IsGI_s,I_s^GIs​,IsG​ refer to (WE,PX)(W_E,P_X)(WE​,PX​) and H1+sH_{1+s}H1+s​ to PLP_LPL​. All expectations concern the table sampled before communication.

This result supplies the corresponding finite-dimensional information or coding interface for the paper's security analysis.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P23
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P23

open scoped BigOperators Matrix ComplexConjugate ComplexOrder ENNReal

open Filter

open QAlgorithms.Papers.Independent.Information100.P56
  (IsLaw entropy average holevo uniform ProjectiveRep orbit productOutput)

open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)

open QAlgorithms.Papers.Independent.Dependency50.P21 (IsSupported relativeEntropy)

open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch logNonnegativeExtended)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {X A Z B E : Type} [Fintype X] [Fintype A] [Fintype Z]
  [Fintype B] [DecidableEq B] [Fintype E] [DecidableEq E]

/-- PDF p.10, (65)–(67): expectations over the actual iid codebook, not a chosen
input. Both separate spectral branches are retained. Analysis permutations use no
additional runtime randomness. -/
theorem ensemble_leakage [Nonempty X] [Nonempty E]
    (WE : X → Matrix E E ℂ) (hE : hayashiIsCQ WE)
    (M L : ℕ) (hM : 0 < M) (hL : 0 < L)
    (PX : X → ℝ) (hPX : IsLaw PX) (PL : Fin L → ℝ) (hPL : IsLaw PL)
    (s : ℝ) (hs : s ∈ Set.Ioc (0 : ℝ) 1) :
    let V := fun c : Fin L → Fin M → X => hayashiCompose WE (tableEncoder PL c)
    (∑ c, bookLaw PX c * holevo uniform (V c)) ≤ secrecy s WE PX PL ∧
    (∑ c, bookLaw PX c * traceCorrelation uniform (V c)) ≤
      (4 + Real.sqrt (eigenCount (powerAverage s WE PX))) *
        Real.exp (s / 2 * (gallagerInfo s WE PX - hayashiRenyiEntropy s PL)) ∧
    (∑ c, bookLaw PX c * traceCorrelation uniform (V c)) ≤
      (4 + Real.sqrt (Int.ceil (spectralSpread (powerAverage s WE PX)))) *
        Real.exp (s / 2 * (gallagerInfo s WE PX - hayashiRenyiEntropy s PL) + s / 2) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P23

end
Source
Quantum wiretap channel with non-uniform random number and its exponent and equivocation rate of leaked information, arXiv:1202.0325v3, PDF p. 10, Unnumbered (65)–(67): ensemble leakage and full trace-norm bounds
Read-back

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

Let X,EX,EX,E be finite nonempty types with decidable equality, let WE(x)W_E(x)WE​(x) be positive semidefinite complex E×EE\times EE×E matrices of trace one, let M,LM,LM,L be positive natural numbers, let PX,PLP_X,P_LPX​,PL​ be probability laws on X,{0,…,L−1}X,\{0,\ldots,L-1\}X,{0,…,L−1}, and let 0<s≤10<s\le10<s≤1. For every table c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X, put

p(c)=∏l,mPX(c(l,m)),Vc(m)=∑lPL(l)WE(c(l,m)),Vˉc=1M∑mVc(m).p(c)=\prod_{l,m}P_X(c(l,m)),\qquad V_c(m)=\sum_lP_L(l)W_E(c(l,m)),\qquad \bar V_c=\frac1M\sum_mV_c(m).p(c)=l,m∏​PX​(c(l,m)),Vc​(m)=l∑​PL​(l)WE​(c(l,m)),Vˉc​=M1​m∑​Vc​(m).

Write S(ρ)=−Re⁡tr⁡(ρlog⁡ρ)S(\rho)=-\operatorname{Re}\operatorname{tr}(\rho\log\rho)S(ρ)=−Retr(ρlogρ),

χc=S(Vˉc)−1M∑mS(Vc(m)),dc=1M∑m∥Vc(m)−Vˉc∥1,\chi_c=S(\bar V_c)-\frac1M\sum_mS(V_c(m)),\qquad d_c=\frac1M\sum_m\|V_c(m)-\bar V_c\|_1,χc​=S(Vˉc​)−M1​m∑​S(Vc​(m)),dc​=M1​m∑​∥Vc​(m)−Vˉc​∥1​,

where ∥Y∥1=Re⁡tr⁡Y†Y\|Y\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Y^\dagger Y}∥Y∥1​=RetrY†Y​. Define spectral powers Y[r]Y^{[r]}Y[r] by assigning value zero at eigenvalue zero for every exponent, and set

σ=∑xPX(x)WE(x),As=∑xPX(x)WE(x)[1+s],Hs=−s−1log⁡∑lPL(l)1+s,Js=s−1log⁡Re⁡tr⁡(∑xPX(x)WE(x)[1+s]σ[−s]),Gs=(1+s)s−1log⁡Re⁡tr⁡As[1/(1+s)].\begin{gathered} \sigma=\sum_xP_X(x)W_E(x),\qquad A_s=\sum_xP_X(x)W_E(x)^{[1+s]},\\ H_s=-s^{-1}\log\sum_lP_L(l)^{1+s},\quad J_s=s^{-1}\log\operatorname{Re}\operatorname{tr} \left(\sum_xP_X(x)W_E(x)^{[1+s]}\sigma^{[-s]}\right),\\ G_s=(1+s)s^{-1}\log\operatorname{Re}\operatorname{tr}A_s^{[1/(1+s)]}. \end{gathered}σ=x∑​PX​(x)WE​(x),As​=x∑​PX​(x)WE​(x)[1+s],Hs​=−s−1logl∑​PL​(l)1+s,Js​=s−1logRetr(x∑​PX​(x)WE​(x)[1+s]σ[−s]),Gs​=(1+s)s−1logRetrAs[1/(1+s)]​.​

Let v(Y)v(Y)v(Y) be the number of distinct eigenvalues, including zero, and let b(Y)b(Y)b(Y) be the logarithm of its largest eigenvalue minus the logarithm of its least strictly positive eigenvalue, assigning zero to the latter if none exists and assigning b(Y)=0b(Y)=0b(Y)=0 for an empty index type. The assertion is the conjunction

∑cp(c)χc≤v(σ)sse−sHs+sJs,\sum_cp(c)\chi_c\le \frac{v(\sigma)^s}{s}e^{-sH_s+sJ_s},c∑​p(c)χc​≤sv(σ)s​e−sHs​+sJs​, ∑cp(c)dc≤(4+v(As))es2(Gs−Hs),∑cp(c)dc≤(4+⌈b(As)⌉)es2(Gs−Hs)+s/2.\sum_cp(c)d_c\le (4+\sqrt{v(A_s)})e^{\frac s2(G_s-H_s)}, \qquad \sum_cp(c)d_c\le (4+\sqrt{\lceil b(A_s)\rceil}) e^{\frac s2(G_s-H_s)+s/2}.c∑​p(c)dc​≤(4+v(As​)​)e2s​(Gs​−Hs​),c∑​p(c)dc​≤(4+⌈b(As​)⌉​)e2s​(Gs​−Hs​)+s/2.

The ceiling in the last expression is an integer, included into the reals before taking the real square root. All logarithms are natural and use the total convention log⁡0=0\log0=0log0=0; zero probabilities are permitted, as are M=1,L=1M=1,L=1M=1,L=1, and s=1s=1s=1.

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