Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 12, (134)–(136): non-uniform random linear-code secrecy

Open
QAlgorithms.Papers.Independent.Advance50.P23.nested_nonuniform_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.

Let fZ:A→Xf_Z:A\to XfZ​:A→X be injective linear maps obeying Condition 2, with normalized seed law. For each seed let a subspace C1,ZC_{1,Z}C1,Z​ contain the image and let M≥1M\ge1M≥1 representatives enumerate C1,Z/fZ(A)C_{1,Z}/f_Z(A)C1,Z​/fZ​(A) once each. Let PAP_APA​ be any auxiliary law and YYY independent uniform on XXX. Encode mmm by fZ(a)+xm,Z+Yf_Z(a)+x_{m,Z}+YfZ​(a)+xm,Z​+Y with a∼PAa\sim P_Aa∼PA​. For 0<s≤10<s\le10<s≤1,

EImix≤vsses(Is−H1+s(PA)),\mathbb E I_{\rm mix}\le\frac{v^s}{s}e^{s(I_s-H_{1+s}(P_A))},EImix​≤svs​es(Is​−H1+s​(PA​)), EesImix≤vs(1+es(Is−H1+s(PA))),Ed1,mix≤2μses2(IsG−H1+s(PA)).\mathbb E e^{sI_{\rm mix}}\le v^s(1+e^{s(I_s-H_{1+s}(P_A))}),\qquad\mathbb E d_{1,\rm mix}\le2\mu_se^{\frac s2(I_s^G-H_{1+s}(P_A))}.EesImix​≤vs(1+es(Is​−H1+s​(PA​))),Ed1,mix​≤2μs​e2s​(IsG​−H1+s​(PA​)).

The Eve information quantities use uniform ambient input. Condition 2 is the nonzero probability bound 1/(∣X∣−1)1/(|X|-1)1/(∣X∣−1), not an assumed universal2 property. The missing sss in printed (135) is restored; the proof's hashing issue is flagged for independent moderation.

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.23, Lemma 12, (134)–(136): genuine nonuniform quotient representatives,
Condition 2, independent ambient translation, and the factor two in trace norm.
Correction: restore the missing s in exp(s I_s) in (135), as fixed by (61),(93),(145).
The proof's universal2 claim is separately flagged in MODERATION_NOTES.md. -/
theorem nested_nonuniform_secrecy {K D G : Type} [Field K] [Fintype K]
    [AddCommGroup D] [AddCommGroup G] [Module K D] [Module K G] [Fintype D] [Fintype G]
    [Nonempty E] (WE : G → Matrix E E ℂ) (hE : hayashiIsCQ WE)
    (M : ℕ) (hM : 0 < M) (PA : D → ℝ) (hPA : IsLaw PA)
    (PZ : Z → ℝ) (C : Z → AffinePair K D G M)
    (hf : Condition2 PZ (fun z => (C z).linear)) (s : ℝ) (hs : s ∈ Set.Ioc (0 : ℝ) 1) :
    shiftExpect PZ (fun z y => Imix (affinePairOutput WE PA (C z) y)) ≤ secrecy s WE uniform PA ∧
    shiftExpect PZ (fun z y => Real.exp (s * Imix (affinePairOutput WE PA (C z) y))) ≤
      Real.rpow (eigenCount (average WE uniform)) s *
        (1 + Real.exp (s * (petzInfo s WE uniform - hayashiRenyiEntropy s PA))) ∧
    shiftExpect PZ (fun z y => d1mix (affinePairOutput WE PA (C z) y)) ≤
      2 * traceBound s WE uniform PA := 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. 23, Lemma 12, (134)–(136): non-uniform random linear-code secrecy
Read-back

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

Let KKK be a finite field, let D,GD,GD,G be finite additive commutative groups with KKK-module structures, and let Z,EZ,EZ,E be finite index types, with decidable equality where required and with EEE nonempty. Let WE(g)W_E(g)WE​(g) be positive semidefinite of trace 111, let M>0M>0M>0, and let PA:D→RP_A:D\to\mathbb RPA​:D→R be nonnegative with sum 111. For each zzz, suppose there is a submodule Oz⊆GO_z\subseteq GOz​⊆G, an injective KKK-linear map fz:D→Gf_z:D\to Gfz​:D→G whose image lies in OzO_zOz​, and representatives rz,m∈Ozr_{z,m}\in O_zrz,m​∈Oz​, m<Mm<Mm<M, such that every x∈Ozx\in O_zx∈Oz​ admits exactly one message mmm for which x=fz(a)+rz,mx=f_z(a)+r_{z,m}x=fz​(a)+rz,m​ for some a∈Da\in Da∈D. Suppose PZ≥0P_Z\ge0PZ​≥0, ∑zPZ(z)=1\sum_zP_Z(z)=1∑z​PZ​(z)=1, and, whenever a≠0a\ne0a=0, x≠0x\ne0x=0, and ∣G∣>1|G|>1∣G∣>1,

∑z: fz(a)=xPZ(z)≤1∣G∣−1.\sum_{z:\,f_z(a)=x}P_Z(z)\le\frac1{|G|-1}.z:fz​(a)=x∑​PZ​(z)≤∣G∣−11​.

Fix 0<s≤10<s\le10<s≤1, and put Ωz,y,m=∑aPA(a)WE(fz(a)+rz,m+y)\Omega_{z,y,m}=\sum_aP_A(a)W_E(f_z(a)+r_{z,m}+y)Ωz,y,m​=∑a​PA​(a)WE​(fz​(a)+rz,m​+y). For any MMM-indexed density-matrix family Ω\OmegaΩ, set

Iu(Ω)=H ⁣(1M∑mΩm)−1M∑mH(Ωm),Tu(Ω)=1M∑m∥Ωm−1M∑jΩj∥1,I_{\rm u}(\Omega)=H\!\left(\frac1M\sum_m\Omega_m\right)-\frac1M\sum_mH(\Omega_m),\qquad T_{\rm u}(\Omega)=\frac1M\sum_m\left\|\Omega_m-\frac1M\sum_j\Omega_j\right\|_1,Iu​(Ω)=H(M1​m∑​Ωm​)−M1​m∑​H(Ωm​),Tu​(Ω)=M1​m∑​​Ωm​−M1​j∑​Ωj​​1​,

where H(A)=−Re⁡tr⁡(Alog⁡A)H(A)=-\operatorname{Re}\operatorname{tr}(A\log A)H(A)=−Retr(AlogA), 0log⁡0=00\log0=00log0=0, and ∥A∥1=Re⁡tr⁡A†A\|A\|_1=\operatorname{Re}\operatorname{tr}\sqrt{A^\dagger A}∥A∥1​=RetrA†A​. Write W‾=∣G∣−1∑gWE(g)\overline W=|G|^{-1}\sum_gW_E(g)W=∣G∣−1∑g​WE​(g), As=∣G∣−1∑gWE(g)[1+s]A_s=|G|^{-1}\sum_gW_E(g)^{[1+s]}As​=∣G∣−1∑g​WE​(g)[1+s], and

Js=1slog⁡Re⁡tr⁡(1∣G∣∑gWE(g)[1+s]W‾[−s]),Gs=1+sslog⁡Re⁡tr⁡As[1/(1+s)],Hs(PA)=−1slog⁡∑aPA(a)1+s,μs=min⁡{4+ν(As), (4+⌈Δ(As)⌉)es/2}.\begin{aligned} J_s&=\frac1s\log\operatorname{Re}\operatorname{tr} \left(\frac1{|G|}\sum_gW_E(g)^{[1+s]}\overline W^{[-s]}\right),& G_s&=\frac{1+s}{s}\log\operatorname{Re}\operatorname{tr}A_s^{[1/(1+s)]},\\ H_s(P_A)&=-\frac1s\log\sum_aP_A(a)^{1+s},& \mu_s&=\min\left\{4+\sqrt{\nu(A_s)},\ \left(4+\sqrt{\lceil\Delta(A_s)\rceil}\right)e^{s/2}\right\}. \end{aligned}Js​Hs​(PA​)​=s1​logRetr(∣G∣1​g∑​WE​(g)[1+s]W[−s]),=−s1​loga∑​PA​(a)1+s,​Gs​μs​​=s1+s​logRetrAs[1/(1+s)]​,=min{4+ν(As​)​, (4+⌈Δ(As​)⌉​)es/2}.​

Here logarithms are natural; A[t]A^{[t]}A[t] is the spectral power with zero eigenvalues sent to zero even for nonpositive ttt; ν(A)\nu(A)ν(A) counts distinct eigenvalues, including zero if present; and Δ(A)\Delta(A)Δ(A) is the logarithm of the largest eigenvalue minus that of the smallest strictly positive eigenvalue, using zero for the latter when absent and log⁡0=0\log0=0log0=0. Then

∑zPZ(z)1∣G∣∑yIu(Ωz,y)≤ν(W‾)sses(Js−Hs(PA)),∑zPZ(z)1∣G∣∑yesIu(Ωz,y)≤ν(W‾)s(1+es(Js−Hs(PA))),∑zPZ(z)1∣G∣∑yTu(Ωz,y)≤2μses2(Gs−Hs(PA)).\begin{aligned} \sum_zP_Z(z)\frac1{|G|}\sum_y I_{\rm u}(\Omega_{z,y}) &\le \frac{\nu(\overline W)^s}{s}e^{s(J_s-H_s(P_A))},\\ \sum_zP_Z(z)\frac1{|G|}\sum_y e^{sI_{\rm u}(\Omega_{z,y})} &\le \nu(\overline W)^s\left(1+e^{s(J_s-H_s(P_A))}\right),\\ \sum_zP_Z(z)\frac1{|G|}\sum_y T_{\rm u}(\Omega_{z,y}) &\le2\mu_s e^{\frac s2(G_s-H_s(P_A))}. \end{aligned}z∑​PZ​(z)∣G∣1​y∑​Iu​(Ωz,y​)z∑​PZ​(z)∣G∣1​y∑​esIu​(Ωz,y​)z∑​PZ​(z)∣G∣1​y∑​Tu​(Ωz,y​)​≤sν(W)s​es(Js​−Hs​(PA​)),≤ν(W)s(1+es(Js​−Hs​(PA​))),≤2μs​e2s​(Gs​−Hs​(PA​)).​

Point masses and zero values in both probability laws are allowed. The collision condition has no instances when GGG is trivial; the injective maps then require DDD to be trivial as well.

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