Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9, (109)–(111): uniform random linear-code leakage

Open
QAlgorithms.Papers.Independent.Advance50.P23.nested_uniform_secrecy

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.

Over a finite field, let a normalized seed law choose actual subspaces C2,Z⊆C1,Z⊆XC_{2,Z}\subseteq C_{1,Z}\subseteq XC2,Z​⊆C1,Z​⊆X of sizes LLL and MLMLML, with positive M,LM,LM,L, and a complete set of quotient representatives. Assume Pr⁡[x∈C2,Z]≤L/∣X∣\Pr[x\in C_{2,Z}]\le L/|X|Pr[x∈C2,Z​]≤L/∣X∣ for nonzero xxx. Let YYY be independent uniform on XXX; encoding is uniform on each translated inner coset. For 0<s≤10<s\le10<s≤1,

EImix≤vsesIsLss,EesImix≤vs(1+L−sesIs),Ed1,mix≤2μsesIsG/2Ls/2.\mathbb E I_{\rm mix}\le\frac{v^se^{sI_s}}{L^ss},\qquad\mathbb E e^{sI_{\rm mix}}\le v^s(1+L^{-s}e^{sI_s}),\qquad\mathbb E d_{1,\rm mix}\le\frac{2\mu_se^{sI_s^G/2}}{L^{s/2}}.EImix​≤LssvsesIs​​,EesImix​≤vs(1+L−sesIs​),Ed1,mix​≤Ls/22μs​esIsG​/2​.

Here the information quantities and spectral factors use uniform ambient input to Eve. No Condition 1 assumption on C1C_1C1​ is made.

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.20, Lemma 9, (109)–(111): Condition 1 is imposed only on C2. Independent
uniform ambient translation induces the conditionally uniform quotient coset law. -/
theorem nested_uniform_secrecy {K G : Type} [Field K] [Fintype K] [AddCommGroup G]
    [Module K G] [Fintype G] [Nonempty E]
    (WE : G → Matrix E E ℂ) (hE : hayashiIsCQ WE) (M L : ℕ) (hM : 0 < M) (hL : 0 < L)
    (PZ : Z → ℝ) (C : Z → NestedPair K G M L)
    (hinner : Condition1 PZ (fun z => (C z).inner) L)
    (s : ℝ) (hs : s ∈ Set.Ioc (0 : ℝ) 1) :
    shiftExpect PZ (fun z y => Imix (pairOutput WE (C z) y)) ≤
      Real.rpow (eigenCount (average WE uniform)) s * Real.exp (s * petzInfo s WE uniform) /
        (Real.rpow L s * s) ∧
    shiftExpect PZ (fun z y => Real.exp (s * Imix (pairOutput WE (C z) y))) ≤
      uniformMomentBound L s WE uniform ∧
    shiftExpect PZ (fun z y => d1mix (pairOutput WE (C z) y)) ≤
      2 * uniformTraceBound L s WE uniform := 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. 20, Lemma 9, (109)–(111): uniform random linear-code leakage
Read-back

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

Let KKK be a finite field, GGG a finite additive commutative KKK-module, ZZZ a finite index type, and EEE a finite nonempty type with decidable equality. Let Wx⪰0W_x\succeq0Wx​⪰0 have trace 111 for every x∈Gx\in Gx∈G, and let M,LM,LM,L be positive integers. For each zzz, suppose there are submodules Czin⊆CzoutC_z^{\mathrm{in}}\subseteq C_z^{\mathrm{out}}Czin​⊆Czout​ with cardinalities LLL and MLMLML, respectively, and representatives rz,m∈Czoutr_{z,m}\in C_z^{\mathrm{out}}rz,m​∈Czout​, indexed by 0≤m<M0\le m<M0≤m<M, such that every x∈Czoutx\in C_z^{\mathrm{out}}x∈Czout​ belongs to exactly one coset rz,m+Czinr_{z,m}+C_z^{\mathrm{in}}rz,m​+Czin​. Suppose PZP_ZPZ​ is a probability law and ∑z:x∈CzinPZ(z)≤L/∣G∣\sum_{z:x\in C_z^{\mathrm{in}}}P_Z(z)\le L/|G|∑z:x∈Czin​​PZ​(z)≤L/∣G∣ for every nonzero x∈Gx\in Gx∈G. Fix 0<s≤10<s\le10<s≤1, and put

Vz,y,m=1L∑x∈CzinWx+rz,m+y,Vˉz,y=1M∑mVz,y,m,ρ=1∣G∣∑xWx,V_{z,y,m}=\frac1L\sum_{x\in C_z^{\mathrm{in}}}W_{x+r_{z,m}+y}, \quad \bar V_{z,y}=\frac1M\sum_mV_{z,y,m}, \quad \rho=\frac1{|G|}\sum_xW_x,Vz,y,m​=L1​x∈Czin​∑​Wx+rz,m​+y​,Vˉz,y​=M1​m∑​Vz,y,m​,ρ=∣G∣1​x∑​Wx​, χz,y=H(Vˉz,y)−1M∑mH(Vz,y,m),dz,y=1M∑m∥Vz,y,m−Vˉz,y∥1,\chi_{z,y}=H(\bar V_{z,y})-\frac1M\sum_mH(V_{z,y,m}), \qquad d_{z,y}=\frac1M\sum_m\|V_{z,y,m}-\bar V_{z,y}\|_1,χz,y​=H(Vˉz,y​)−M1​m∑​H(Vz,y,m​),dz,y​=M1​m∑​∥Vz,y,m​−Vˉz,y​∥1​,

where H(A)=−Re⁡tr⁡(Alog⁡A)H(A)=-\operatorname{Re}\operatorname{tr}(A\log A)H(A)=−Retr(AlogA) and ∥T∥1=Re⁡tr⁡T†T\|T\|_1=\operatorname{Re}\operatorname{tr}\sqrt{T^\dagger T}∥T∥1​=RetrT†T​. Use natural logarithms with log⁡0=0\log0=0log0=0, and let A[t]A^{[t]}A[t] assign ata^tat to positive eigenvalues and 000 to zero eigenvalues for every ttt. Define

As=1∣G∣∑xWx[1+s],Is=1slog⁡Re⁡tr⁡(Asρ[−s]),Gs=1+sslog⁡Re⁡tr⁡(As[1/(1+s)]),v=∣spec⁡(ρ)∣.A_s=\frac1{|G|}\sum_xW_x^{[1+s]}, \quad I_s=\frac1s\log\operatorname{Re}\operatorname{tr}(A_s\rho^{[-s]}), \quad G_s=\frac{1+s}{s}\log\operatorname{Re}\operatorname{tr} \bigl(A_s^{[1/(1+s)]}\bigr), \quad v=|\operatorname{spec}(\rho)|.As​=∣G∣1​x∑​Wx[1+s]​,Is​=s1​logRetr(As​ρ[−s]),Gs​=s1+s​logRetr(As[1/(1+s)]​),v=∣spec(ρ)∣.

For a positive semidefinite matrix AAA, let v(A)v(A)v(A) count its distinct eigenvalues, including zero when present; let m+(A)m_+(A)m+​(A) be its smallest strictly positive eigenvalue, or 000 if none exists; and let b(A)b(A)b(A) be the logarithm of its largest eigenvalue minus log⁡m+(A)\log m_+(A)logm+​(A), with b(A)=0b(A)=0b(A)=0 if its eigenvalue set is empty. Put

μs=min⁡{4+v(As), (4+⌈b(As)⌉)es/2},\mu_s= \min\left\{ 4+\sqrt{v(A_s)},\ \left(4+\sqrt{\lceil b(A_s)\rceil}\right)e^{s/2} \right\},μs​=min{4+v(As​)​, (4+⌈b(As​)⌉​)es/2},

where the ceiling is the integer ceiling, subsequently viewed as a real number. Then

∑zPZ(z)1∣G∣∑yχz,y≤vsesIsLss,∑zPZ(z)1∣G∣∑yesχz,y≤vs(1+esIsLs),∑zPZ(z)1∣G∣∑ydz,y≤2μsesGs/2Ls/2.\sum_zP_Z(z)\frac1{|G|}\sum_y\chi_{z,y} \le\frac{v^se^{sI_s}}{L^ss}, \qquad \sum_zP_Z(z)\frac1{|G|}\sum_y e^{s\chi_{z,y}} \le v^s\left(1+\frac{e^{sI_s}}{L^s}\right), \qquad \sum_zP_Z(z)\frac1{|G|}\sum_y d_{z,y} \le\frac{2\mu_s e^{sG_s/2}}{L^{s/2}}.z∑​PZ​(z)∣G∣1​y∑​χz,y​≤LssvsesIs​​,z∑​PZ​(z)∣G∣1​y∑​esχz,y​≤vs(1+LsesIs​​),z∑​PZ​(z)∣G∣1​y∑​dz,y​≤Ls/22μs​esGs​/2​.

All averages over shifts yyy are uniform over the whole group GGG, and s=1s=1s=1 is included.

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