Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 7: simultaneous memoryless wiretap exponents

Open
QAlgorithms.Papers.Independent.Intake100.P73.memoryless_wiretap_exponents

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

prove2quantum

Let B:X→P(Y)B:X\to\mathcal P(Y)B:X→P(Y) and E:X→P(Z)E:X\to\mathcal P(Z)E:X→P(Z) be classical discrete memoryless channels, with ZZZ finite, a common normalized input law ppp, and message and randomization rates R,R′≥0R,R'\ge0R,R′≥0. No degradedness, finite-input, or mutual-information rate separation is assumed. Use natural logarithms and full L1. For V=B,EV=B,EV=B,E, define Vp=∑xp(x)VxV_p=\sum_xp(x)V_xVp​=∑x​p(x)Vx​, ϕ(t∣V,p)=log⁡∑y(∑xp(x)Vx(y)1/(1+t))1+t\phi(t\mid V,p)=\log\sum_y(\sum_xp(x)V_x(y)^{1/(1+t)})^{1+t}ϕ(t∣V,p)=log∑y​(∑x​p(x)Vx​(y)1/(1+t))1+t, and ψ(s∣V,p)=log⁡∑y(∑xp(x)Vx(y)1+s)Vp(y)−s\psi(s\mid V,p)=\log\sum_y(\sum_xp(x)V_x(y)^{1+s})V_p(y)^{-s}ψ(s∣V,p)=log∑y​(∑x​p(x)Vx​(y)1+s)Vp​(y)−s, excluding zero-mixture terms; both zero-parameter endpoints have value zero.

There exists ONE sequence Φn\Phi_nΦn​ of stochastic wiretap codes for Bn,EnB^n,E^nBn,En, with disjoint Bob decoding regions and uniform messages, such that

lim⁡nlog⁡∣Φn∣n=R,\lim_n\frac{\log|\Phi_n|}{n}=R,nlim​nlog∣Φn​∣​=R, lim inf⁡n−1nlog⁡ϵB(Φn)≥sup⁡0≤s≤1{−ϕ(s∣B,p)−s(R+R′)},\liminf_n-\frac1n\log\epsilon_B(\Phi_n)\ge \sup_{0\le s\le1}\{-\phi(s\mid B,p)-s(R+R')\},nliminf​−n1​logϵB​(Φn​)≥0≤s≤1sup​{−ϕ(s∣B,p)−s(R+R′)}, lim inf⁡n−1nlog⁡IE(Φn)≥sup⁡−1/2≤t≤0{−ϕ(t∣E,p)−tR′},\liminf_n-\frac1n\log I_E(\Phi_n)\ge \sup_{-1/2\le t\le0}\{-\phi(t\mid E,p)-tR'\},nliminf​−n1​logIE​(Φn​)≥−1/2≤t≤0sup​{−ϕ(t∣E,p)−tR′}, lim inf⁡n−1nlog⁡dE(Φn)≥sup⁡0≤s≤1−ψ(s∣E,p)+sR′1+s,\liminf_n-\frac1n\log d_E(\Phi_n)\ge \sup_{0\le s\le1}\frac{-\psi(s\mid E,p)+sR'}{1+s},nliminf​−n1​logdE​(Φn​)≥0≤s≤1sup​1+s−ψ(s∣E,p)+sR′​, lim inf⁡n−1nlog⁡dE(Φn)≥12sup⁡−1/2≤t≤0{−ϕ(t∣E,p)−tR′}.\liminf_n-\frac1n\log d_E(\Phi_n)\ge \tfrac12\sup_{-1/2\le t\le0}\{-\phi(t\mid E,p)-tR'\}.nliminf​−n1​logdE​(Φn​)≥21​−1/2≤t≤0sup​{−ϕ(t∣E,p)−tR′}.

Here ϵB\epsilon_BϵB​ is average Bob error, IEI_EIE​ is the average KL of each message's Eve output against their uniform mixture, and dEd_EdE​ is full L1 averaged over ordered distinct message pairs, set to zero for one message. Exact zero error or leakage gives exponent +∞+\infty+∞. These are simultaneous reliability and secrecy guarantees, including the zero-rate endpoints.

Formalization Note. The source prints “any real numbers” for both rates. The domain is corrected to nonnegative rates, as forced by positive integer message and randomization counts in its proof. Negative message rates cannot be attained; negative randomization rates can make the reliability claim false on a constant Bob channel. This paper's pairwise dEd_EdE​ is distinct from the later paper's message–Eve distance.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P73
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P73

open Filter

open scoped BigOperators ENNReal Topology

attribute [local instance] Classical.propDecidable Classical.decEq

universe u

/-- Hayashi, PDF p.12, Theorem 7, (58)–(61): ONE sequence attains the rate and
ALL FOUR exponent bounds. SOURCE DOMAIN CORRECTION: printed 'any real numbers
R,Rprime' is restricted to R,Rprime>=0, as forced by positive message and
randomization counts in the proof. Leakage is the source's PAIRWISE full L1,
not the later paper's message–Eve distance. Zero errors have +infinity exponents.
The proof cites (21) for the hayashiPhi bound, evidently meaning (22).
Printed (61) uses a plain lim; changed to liminf, as the preceding Pinsker
comparison applied to (59) controls the lower exponent without asserting convergence. -/
theorem memoryless_wiretap_exponents {X Y Z : Type*} [Finite Z]
    (B : X → Y → ℝ≥0∞) (E : X → Z → ℝ≥0∞)
    (hB : IsDiscreteStochastic B) (hE : IsDiscreteStochastic E) (p : PMF X)
    (R Rprime : ℝ) (hR : 0 ≤ R) (hRp : 0 ≤ Rprime) :
    ∃ c : (k : ℕ) → DiscreteStochasticWiretapCode (Fin (length k) → X) (Fin (length k) → Y),
      Tendsto (fun k => Real.log (c k).messages / (length k : ℝ)) atTop (nhds R) ∧
      reliabilityExponent B p (R + Rprime) ≤
        liminfErrorExponent (fun k => averageBobError (memorylessKernel B (length k)) (c k)) ∧
      phiExponent E p Rprime ≤
        liminfErrorExponent (fun k => averageEveDivergence (memorylessKernel E (length k)) (c k)) ∧
      psiExponent E p Rprime ≤
        liminfErrorExponent (fun k => eveDistance (memorylessKernel E (length k)) (c k)) ∧
      phiExponent E p Rprime / 2 ≤
        liminfErrorExponent (fun k => eveDistance (memorylessKernel E (length k)) (c k)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P73

end
Source
General non-asymptotic and asymptotic formulas in channel resolvability and identification capacity and their application to wire-tap channel, arXiv:cs/0503088v2, PDF p. 12, Theorem 7, (58)–(61): simultaneous memoryless wiretap exponents
Read-back

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

For every three types X,Y,ZX,Y,ZX,Y,Z, with ZZZ finite, every pair of kernels B:X×Y→[0,∞]B:X\times Y\to[0,\infty]B:X×Y→[0,∞] and E:X×Z→[0,∞]E:X\times Z\to[0,\infty]E:X×Z→[0,∞] satisfying ∑yB(x,y)=1\sum_yB(x,y)=1∑y​B(x,y)=1 and ∑zE(x,z)=1\sum_zE(x,z)=1∑z​E(x,z)=1 for every xxx, every probability mass function ppp on XXX, and all real numbers R,R′≥0R,R'\ge0R,R′≥0, there exists a single sequence of codes with all the properties below. Put nk=k+1n_k=k+1nk​=k+1 and define the product kernels

B(n)(x,y)=∏j=1nB(xj,yj),E(n)(x,z)=∏j=1nE(xj,zj).B^{(n)}(x,y)=\prod_{j=1}^nB(x_j,y_j),\qquad E^{(n)}(x,z)=\prod_{j=1}^nE(x_j,z_j).B(n)(x,y)=j=1∏n​B(xj​,yj​),E(n)(x,z)=j=1∏n​E(xj​,zj​).

The code at kkk has a positive integer mkm_kmk​, a probability mass function uk,iu_{k,i}uk,i​ on XnkX^{n_k}Xnk​ for each 1≤i≤mk1\le i\le m_k1≤i≤mk​, and pairwise disjoint subsets Dk,i⊆YnkD_{k,i}\subseteq Y^{n_k}Dk,i​⊆Ynk​. Write

bk,i(y)=∑x∈Xnkuk,i(x)B(nk)(x,y),ek,i(z)=∑x∈Xnkuk,i(x)E(nk)(x,z),eˉk(z)=1mk∑iek,i(z).b_{k,i}(y)=\sum_{x\in X^{n_k}}u_{k,i}(x)B^{(n_k)}(x,y),\qquad e_{k,i}(z)=\sum_{x\in X^{n_k}}u_{k,i}(x)E^{(n_k)}(x,z),\qquad \bar e_k(z)=\frac1{m_k}\sum_i e_{k,i}(z).bk,i​(y)=x∈Xnk​∑​uk,i​(x)B(nk​)(x,y),ek,i​(z)=x∈Xnk​∑​uk,i​(x)E(nk​)(x,z),eˉk​(z)=mk​1​i∑​ek,i​(z).

Define the three nonnegative extended-real error sequences by

βk=1mk∑i∑y∉Dk,ibk,i(y),δk=1mk∑i∑zK(ek,i(z),eˉk(z)),\beta_k=\frac1{m_k}\sum_i\sum_{y\notin D_{k,i}}b_{k,i}(y), \qquad \delta_k=\frac1{m_k}\sum_i\sum_zK(e_{k,i}(z),\bar e_k(z)),βk​=mk​1​i∑​y∈/Dk,i​∑​bk,i​(y),δk​=mk​1​i∑​z∑​K(ek,i​(z),eˉk​(z)), λk={0,mk=1,1mk(mk−1)∑i∑j≠i∑z((ek,i(z)−ek,j(z))++(ek,j(z)−ek,i(z))+),mk>1,\lambda_k= \begin{cases} 0,&m_k=1,\\ \displaystyle\frac1{m_k(m_k-1)} \sum_i\sum_{j\ne i}\sum_z \bigl((e_{k,i}(z)-e_{k,j}(z))_+ +(e_{k,j}(z)-e_{k,i}(z))_+\bigr),&m_k>1, \end{cases}λk​=⎩⎨⎧​0,mk​(mk​−1)1​i∑​j=i∑​z∑​((ek,i​(z)−ek,j​(z))+​+(ek,j​(z)−ek,i​(z))+​),​mk​=1,mk​>1,​

where (a)+=max⁡{a,0}(a)_+=\max\{a,0\}(a)+​=max{a,0} and, on finite probability point masses,

K(a,b)={b,a=0,+∞,a>0, b=0,bmax⁡{0,(a/b)log⁡(a/b)−a/b+1},a>0, b>0.K(a,b)= \begin{cases} b,&a=0,\\ +\infty,&a>0,\ b=0,\\ b\max\{0,(a/b)\log(a/b)-a/b+1\},&a>0,\ b>0. \end{cases}K(a,b)=⎩⎨⎧​b,+∞,bmax{0,(a/b)log(a/b)−a/b+1},​a=0,a>0, b=0,a>0, b>0.​

For any sequence vk∈[0,∞]v_k\in[0,\infty]vk​∈[0,∞], put E(v)=lim inf⁡k→∞(−log⁡vk)/nk\mathcal E(v)=\liminf_{k\to\infty}(-\log v_k)/n_kE(v)=liminfk→∞​(−logvk​)/nk​, using the extended logarithm with log⁡0=−∞\log0=-\inftylog0=−∞ and log⁡(+∞)=+∞\log(+\infty)=+\inftylog(+∞)=+∞. For either single-letter kernel V=B,EV=B,EV=B,E, define

ΦV(t)={0,t=0,log⁡∑v(∑xp(x)V(x,v)1/(1+t))1+t,t≠0,\Phi_V(t)= \begin{cases} 0,&t=0,\\ \displaystyle\log\sum_v \left(\sum_xp(x)V(x,v)^{1/(1+t)}\right)^{1+t},&t\ne0, \end{cases}ΦV​(t)=⎩⎨⎧​0,logv∑​(x∑​p(x)V(x,v)1/(1+t))1+t,​t=0,t=0,​

where vvv ranges over the output type of VVV. Also put qE(z)=∑xp(x)E(x,z)q_E(z)=\sum_xp(x)E(x,z)qE​(z)=∑x​p(x)E(x,z) and

ΨE(s)={0,s=0,log⁡∑z{0,qE(z)=0,(∑xp(x)E(x,z)1+s)qE(z)−s,qE(z)≠0,s≠0.\Psi_E(s)= \begin{cases} 0,&s=0,\\ \displaystyle\log\sum_z \begin{cases} 0,&q_E(z)=0,\\ \left(\sum_xp(x)E(x,z)^{1+s}\right)q_E(z)^{-s},&q_E(z)\ne0, \end{cases}&s\ne0. \end{cases}ΨE​(s)=⎩⎨⎧​0,logz∑​{0,(∑x​p(x)E(x,z)1+s)qE​(z)−s,​qE​(z)=0,qE​(z)=0,​​s=0,s=0.​

These moments use powers and sums in [0,∞][0,\infty][0,∞] and extended logarithms. Define the extended-real bounds

Arel=sup⁡0≤s≤1(−ΦB(s)−s(R+R′)),AΦ=sup⁡−1/2≤t≤0(−ΦE(t)−tR′),AΨ=sup⁡0≤s≤1−ΨE(s)+sR′1+s.A_{\mathrm{rel}}= \sup_{0\le s\le1}\bigl(-\Phi_B(s)-s(R+R')\bigr),\qquad A_\Phi=\sup_{-1/2\le t\le0}\bigl(-\Phi_E(t)-tR'\bigr),\qquad A_\Psi=\sup_{0\le s\le1}\frac{-\Psi_E(s)+sR'}{1+s}.Arel​=0≤s≤1sup​(−ΦB​(s)−s(R+R′)),AΦ​=−1/2≤t≤0sup​(−ΦE​(t)−tR′),AΨ​=0≤s≤1sup​1+s−ΨE​(s)+sR′​.

The code sequence is required to satisfy the real convergence and the four simultaneous extended-real inequalities

log⁡mknk⟶R,Arel≤E(β),AΦ≤E(δ),AΨ≤E(λ),AΦ2≤E(λ).\frac{\log m_k}{n_k}\longrightarrow R,\qquad A_{\mathrm{rel}}\le\mathcal E(\beta),\qquad A_\Phi\le\mathcal E(\delta),\qquad A_\Psi\le\mathcal E(\lambda),\qquad \frac{A_\Phi}{2}\le\mathcal E(\lambda).nk​logmk​​⟶R,Arel​≤E(β),AΦ​≤E(δ),AΨ​≤E(λ),2AΦ​​≤E(λ).

In particular, the exponent involving δk\delta_kδk​ uses the average divergence itself, without first dividing it by nkn_knk​. Every optimization interval includes its endpoints; ΦV(0)\Phi_V(0)ΦV​(0) and ΨE(0)\Psi_E(0)ΨE​(0) are explicitly 000, and zero output marginal terms in ΨE\Psi_EΨE​ are explicitly omitted. The cases R=0R=0R=0 and R′=0R'=0R′=0 are included. Code size 111 is allowed and has λk=0\lambda_k=0λk​=0, whose negative logarithm is +∞+\infty+∞; all block lengths are positive. No finiteness of XXX or YYY is assumed, and the supplied probability mass function and stochasticity exclude empty X,Y,ZX,Y,ZX,Y,Z.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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