Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4: general wiretap direct bounds

Open
QAlgorithms.Papers.Independent.Intake100.P73.wiretap_direct

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

prove2quantum

Let B=(Bn)\mathbf B=(B^n)B=(Bn) and E=(En)\mathbf E=(E^n)E=(En) be arbitrary sequences of classical discrete channels with common input alphabet XnX_nXn​ and output alphabets Yn,ZnY_n,Z_nYn​,Zn​. A wiretap code has a positive finite message count, stochastic encoders and pairwise disjoint Bob decoding regions; messages are uniform. Let ϵB\epsilon_BϵB​ be its average Bob error, IE=M−1∑iD(EQi∥M−1∑jEQj)I_E=M^{-1}\sum_iD(E_{Q_i}\|M^{-1}\sum_jE_{Q_j})IE​=M−1∑i​D(EQi​​∥M−1∑j​EQj​​), and dE=[M(M−1)]−1∑i≠jd(EQi,EQj)d_E=[M(M-1)]^{-1}\sum_{i\ne j}d(E_{Q_i},E_{Q_j})dE​=[M(M−1)]−1∑i=j​d(EQi​​,EQj​​), with dE=0d_E=0dE​=0 when M=1M=1M=1. The capacities Cd,CIC_d,C_ICd​,CI​ are the suprema of the liminf ordinary log message rates of code sequences with ϵB→0\epsilon_B\to0ϵB​→0 and, respectively, dE→0d_E\to0dE​→0 or IE/n→0I_E/n\to0IE​/n→0. They include the operational zero-rate baseline. All distances are full L1 and all rates are in nats.

For an input-law sequence p=(pn)\mathbf p=(p_n)p=(pn​) and channel sequence W\mathbf WW, put Tn(a)=Ppn(x)Wxn(y){n−1log⁡[Wxn(y)/Wpnn(y)]>a}T_n(a)=\mathbb P_{p_n(x)W_x^n(y)}\{n^{-1}\log[W_x^n(y)/W_{p_n}^n(y)]>a\}Tn​(a)=Ppn​(x)Wxn​(y)​{n−1log[Wxn​(y)/Wpn​n​(y)]>a}. Define I‾(ϵ∣p,W)=inf⁡{a:lim inf⁡nTn(a)≤ϵ}\underline I(\epsilon\mid\mathbf p,\mathbf W)=\inf\{a:\liminf_nT_n(a)\le\epsilon\}I​(ϵ∣p,W)=inf{a:liminfn​Tn​(a)≤ϵ} and I‾(ϵ∣p,W)=inf⁡{a:lim sup⁡nTn(a)≤ϵ}\overline I(\epsilon\mid\mathbf p,\mathbf W)=\inf\{a:\limsup_nT_n(a)\le\epsilon\}I(ϵ∣p,W)=inf{a:limsupn​Tn​(a)≤ϵ}. At ϵ=1\epsilon=1ϵ=1 use the strict tail bound <1<1<1. Spectra and numerical extrema are extended-valued.

For possibly infinite spectra, interpret L−UL-UL−U by the finite-threshold cut

D(L,U)=sup⁡{a−b:a,b∈R, a<L, U<b}.\mathcal D(L,U)=\sup\{a-b:a,b\in\mathbb R,\ a<L,\ U<b\}.D(L,U)=sup{a−b:a,b∈R, a<L, U<b}.

For every normalized input-law sequence p\mathbf pp,

Cd(B,E)≥D(I‾(1∣p,B),I‾(0∣p,E)).C_d(\mathbf B,\mathbf E)\ge\mathcal D\bigl(\underline I(1\mid\mathbf p,\mathbf B),\overline I(0\mid\mathbf p,\mathbf E)\bigr).Cd​(B,E)≥D(I​(1∣p,B),I(0∣p,E)).

If, additionally, ∣Zn∣=dn|Z_n|=d^n∣Zn​∣=dn for a fixed positive integer ddd, then

CI(B,E)≥D(I‾(1∣p,B),I‾(0∣p,E)).C_I(\mathbf B,\mathbf E)\ge\mathcal D\bigl(\underline I(1\mid\mathbf p,\mathbf B),\overline I(0\mid\mathbf p,\mathbf E)\bigr).CI​(B,E)≥D(I​(1∣p,B),I(0∣p,E)).

The alphabet assumption belongs only to the second inequality. These direct bounds apply to arbitrary channel sequences and retain the paper's normalized-KL secrecy criterion.

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.9, Lemma 4, (30)–(31): exponential Eve alphabet assumption
applies ONLY to the normalized-KL clause. Infinite differences use finite cuts. -/
theorem wiretap_direct {X Y Z : ℕ → Type*} [∀ k, Nonempty (X k)]
    (B : (k : ℕ) → X k → Y k → ℝ≥0∞) (E : (k : ℕ) → X k → Z k → ℝ≥0∞)
    (hB : ∀ k, IsDiscreteStochastic (B k)) (hE : ∀ k, IsDiscreteStochastic (E k))
    (p : (k : ℕ) → PMF (X k)) :
    spectralDifference (epsilonInformationSpectrum false B p 1) (epsilonInformationSpectrum true E p 0) ≤ generalSecrecyCapacity false B E ∧
    (∀ d : ℕ, 0 < d → (∀ k, Nat.card (Z k) = d ^ length k) →
      spectralDifference (epsilonInformationSpectrum false B p 1) (epsilonInformationSpectrum true E p 0) ≤ generalSecrecyCapacity true B E) := 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. 9, Lemma 4, (30)–(31): general wiretap direct bound
Read-back

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

For every three families of types (Xk),(Yk),(Zk)(X_k),(Y_k),(Z_k)(Xk​),(Yk​),(Zk​) with each XkX_kXk​ nonempty, every pair of kernel families Bk:Xk×Yk→[0,∞]B_k:X_k\times Y_k\to[0,\infty]Bk​:Xk​×Yk​→[0,∞] and Ek:Xk×Zk→[0,∞]E_k:X_k\times Z_k\to[0,\infty]Ek​:Xk​×Zk​→[0,∞] satisfying ∑yBk(x,y)=1\sum_yB_k(x,y)=1∑y​Bk​(x,y)=1 and ∑zEk(x,z)=1\sum_zE_k(x,z)=1∑z​Ek​(x,z)=1 for every k,xk,xk,x, and every family of probability mass functions pkp_kpk​ on XkX_kXk​, the two conclusions below hold. Put nk=k+1n_k=k+1nk​=k+1. For either kernel family VVV, define qkV(v)=∑xpk(x)Vk(x,v)q^V_k(v)=\sum_xp_k(x)V_k(x,v)qkV​(v)=∑x​pk​(x)Vk​(x,v) and define ℓkV(x,v)\ell^V_k(x,v)ℓkV​(x,v) to be −∞-\infty−∞ if Vk(x,v)=0V_k(x,v)=0Vk​(x,v)=0, +∞+\infty+∞ if Vk(x,v)>0V_k(x,v)>0Vk​(x,v)>0 and qkV(v)=0q^V_k(v)=0qkV​(v)=0, and log⁡(Vk(x,v)/qkV(v))\log(V_k(x,v)/q^V_k(v))log(Vk​(x,v)/qkV​(v)) otherwise; the first branch applies when both arguments vanish. Set

TkV(a)=∑x,v: a<ℓkV(x,v)/nkpk(x)Vk(x,v),L=inf⁡{a∈R:lim inf⁡kTkB(a)<1},H=inf⁡{b∈R:lim sup⁡kTkE(b)≤0},T^V_k(a)=\sum_{x,v:\ a<\ell^V_k(x,v)/n_k}p_k(x)V_k(x,v), \quad L=\inf\{a\in\mathbb R:\liminf_kT^B_k(a)<1\}, \quad H=\inf\{b\in\mathbb R:\limsup_kT^E_k(b)\le0\},TkV​(a)=x,v: a<ℓkV​(x,v)/nk​∑​pk​(x)Vk​(x,v),L=inf{a∈R:kliminf​TkB​(a)<1},H=inf{b∈R:klimsup​TkE​(b)≤0},

where the tail sums are real probability masses and the infima are in the extended real line. Define

Dsp(L,H)=sup⁡{a−b: a,b∈R, a<L, H<b},D_{\mathrm{sp}}(L,H)= \sup\{a-b:\ a,b\in\mathbb R,\ a<L,\ H<b\},Dsp​(L,H)=sup{a−b: a,b∈R, a<L, H<b},

again in the extended real line; this is the displayed supremum over strict real bounds, including its empty-set value −∞-\infty−∞. To define the quantities CdistC_{\mathrm{dist}}Cdist​ and CKLC_{\mathrm{KL}}CKL​, consider every sequence of codes with a positive integer mkm_kmk​, a probability mass function ek,ie_{k,i}ek,i​ on XkX_kXk​ for each 1≤i≤mk1\le i\le m_k1≤i≤mk​, and pairwise disjoint subsets Dk,i⊆YkD_{k,i}\subseteq Y_kDk,i​⊆Yk​. Put

bk,i(y)=∑xek,i(x)Bk(x,y),ek,i E(z)=∑xek,i(x)Ek(x,z),eˉk(z)=1mk∑iek,i E(z),b_{k,i}(y)=\sum_xe_{k,i}(x)B_k(x,y),\qquad e_{k,i}^{\,E}(z)=\sum_xe_{k,i}(x)E_k(x,z),\qquad \bar e_k(z)=\frac1{m_k}\sum_i e_{k,i}^{\,E}(z),bk,i​(y)=x∑​ek,i​(x)Bk​(x,y),ek,iE​(z)=x∑​ek,i​(x)Ek​(x,z),eˉk​(z)=mk​1​i∑​ek,iE​(z),

and let

βk=1mk∑i∑y∉Dk,ibk,i(y).\beta_k=\frac1{m_k}\sum_i\sum_{y\notin D_{k,i}}b_{k,i}(y).βk​=mk​1​i∑​y∈/Dk,i​∑​bk,i​(y).

For finite nonnegative point masses a,ba,ba,b, define

K(a,b)={b,a=0,+∞,a>0, b=0,bmax⁡{0,ulog⁡u−u+1},u=a/b,a>0, b>0,D(f,g)=∑zK(f(z),g(z)),L1(f,g)=∑z((f(z)−g(z))++(g(z)−f(z))+).K(a,b)= \begin{cases} b,&a=0,\\ +\infty,&a>0,\ b=0,\\ b\max\{0,u\log u-u+1\},\quad u=a/b,&a>0,\ b>0, \end{cases} \quad D(f,g)=\sum_zK(f(z),g(z)), \quad L_1(f,g)=\sum_z\bigl((f(z)-g(z))_++(g(z)-f(z))_+\bigr).K(a,b)=⎩⎨⎧​b,+∞,bmax{0,ulogu−u+1},u=a/b,​a=0,a>0, b=0,a>0, b>0,​D(f,g)=z∑​K(f(z),g(z)),L1​(f,g)=z∑​((f(z)−g(z))+​+(g(z)−f(z))+​).

All point masses used here are finite because they belong to probability distributions, while these sums may take extended nonnegative values. Define

δk=1mk∑iD(ek,i E,eˉk),λk={0,mk=1,1mk(mk−1)∑i∑j≠iL1(ek,i E,ek,j E),mk>1.\delta_k=\frac1{m_k}\sum_iD(e_{k,i}^{\,E},\bar e_k), \qquad \lambda_k= \begin{cases} 0,&m_k=1,\\ \displaystyle\frac1{m_k(m_k-1)} \sum_i\sum_{j\ne i}L_1(e_{k,i}^{\,E},e_{k,j}^{\,E}),&m_k>1. \end{cases}δk​=mk​1​i∑​D(ek,iE​,eˉk​),λk​=⎩⎨⎧​0,mk​(mk​−1)1​i∑​j=i∑​L1​(ek,iE​,ek,jE​),​mk​=1,mk​>1.​

Then CdistC_{\mathrm{dist}}Cdist​ is the maximum of 000 and the supremum of the extended real numbers lim inf⁡k(log⁡mk)/nk\liminf_k(\log m_k)/n_kliminfk​(logmk​)/nk​ over all such code sequences satisfying βk→0\beta_k\to0βk​→0 and λk→0\lambda_k\to0λk​→0; CKLC_{\mathrm{KL}}CKL​ uses βk→0\beta_k\to0βk​→0 and δk/nk→0\delta_k/n_k\to0δk​/nk​→0 instead. These convergences are in [0,∞][0,\infty][0,∞], and all limits are as k→∞k\to\inftyk→∞. The assertion is

Dsp(L,H)≤Cdist,D_{\mathrm{sp}}(L,H)\le C_{\mathrm{dist}},Dsp​(L,H)≤Cdist​,

together with the statement that for every natural number d>0d>0d>0, if Nat.card⁡(Zk)=dk+1\operatorname{Nat.card}(Z_k)=d^{k+1}Nat.card(Zk​)=dk+1 for every kkk, then

Dsp(L,H)≤CKL.D_{\mathrm{sp}}(L,H)\le C_{\mathrm{KL}}.Dsp​(L,H)≤CKL​.

Here Nat.card⁡\operatorname{Nat.card}Nat.card is the ordinary cardinality for a finite type and is 000 for an infinite type, so the additional hypothesis forces each ZkZ_kZk​ to be finite and nonempty. The first inequality has no such cardinality hypothesis. Code sizes equal to 111 are allowed, the distance is explicitly 000 for those codes, and k=0k=0k=0 has length 111.

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