Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Wiretap achievable rate and secrecy exponent

Open
QAlgorithms.Papers.Independent.Advance50.P28.wiretap_rates_and_exponent

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

prove2quantum

Let WB:X→Prob⁡(Y)W^B:X\to\operatorname{Prob}(Y)WB:X→Prob(Y) and WE:X→Prob⁡(Z)W^E:X\to\operatorname{Prob}(Z)WE:X→Prob(Z) be classical stochastic channels with countable discrete input and measurable output densities, and let ppp be an input law. Put Jt(W,p)=∫(∑xp(x)Wx(y)1/(1−t))1−t dy=exp⁡ϕ(t∣W,p)J_t(W,p)=\int(\sum_xp(x)W_x(y)^{1/(1-t)})^{1-t}\,dy=\exp\phi(t\mid W,p)Jt​(W,p)=∫(∑x​p(x)Wx​(y)1/(1−t))1−tdy=expϕ(t∣W,p). Codes have normalized stochastic encoders, disjoint measurable decoding sets, uniform messages, average Bob error ϵB\epsilon_BϵB​, and full L1L^1L1 message–Eve dependence d1d_1d1​ against their actual Eve marginal. Let IB=I(p:WB)I_B=I(p:W^B)IB​=I(p:WB) and IE=I(p:WE)I_E=I(p:W^E)IE​=I(p:WE) be relative-entropy mutual informations in nats, allowing +∞+\infty+∞. If finite nonnegative real numbers r,Rr,Rr,R satisfy IE≤RI_E\le RIE​≤R and r+R≤IBr+R\le I_Br+R≤IB​, there are codes Φn\Phi_nΦn​ with positive message sizes MnM_nMn​ such that

log⁡Mnn⟶r,ϵB(Φn)⟶0,d1(Φn∣E)⟶0,lim inf⁡n−1nlog⁡d1(Φn∣E)≥sup⁡0≤t≤1/2{tR−ϕ(t∣WE,p)}.\frac{\log M_n}n\longrightarrow r,\quad\epsilon_B(\Phi_n)\longrightarrow0,\quad d_1(\Phi_n|E)\longrightarrow0,\quad\liminf_n-\frac1n\log d_1(\Phi_n|E)\ge\sup_{0\le t\le1/2}\{tR-\phi(t|W^E,p)\}.nlogMn​​⟶r,ϵB​(Φn​)⟶0,d1​(Φn​∣E)⟶0,nliminf​−n1​logd1​(Φn​∣E)≥0≤t≤1/2sup​{tR−ϕ(t∣WE,p)}.

Boundary rates mean limits of operating rates from below, without a positive reliability-exponent claim. Quantification over all input laws gives rates approaching their information-difference supremum, without asserting an input-law maximizer.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P28
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal Topology

namespace QAlgorithms.Papers.Independent.Advance50.P28

open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Hayashi, PDF p.13: achievable rates up to the information difference, with
secrecy exponent at the chosen sacrifice rate. Universal quantification over p
allows optimization without inventing a maximizing distribution. Closed-rate
endpoints mean limits of operating rates from below, not positive reliability exponents. -/
theorem wiretap_rates_and_exponent {X Y E : Type*} [Countable X] [Nonempty X]
    [MeasurableSpace Y] [MeasurableSpace E]
    (muB : Measure Y) (muE : Measure E) [SigmaFinite muB] [SigmaFinite muE]
    (WB : X → Y → ℝ≥0∞) (WE : X → E → ℝ≥0∞)
    (hB : IsDensityChannel muB WB) (hE : IsDensityChannel muE WE)
    (p : X → ℝ≥0∞) (hp : IsENNRealDiscreteLaw p) (r R : ℝ) (hr : 0 ≤ r)
    (hR : 0 ≤ R) (hEinfo : classicalMutualInformationNats muE WE p ≤ ENNReal.ofReal R)
    (hBinfo : ENNReal.ofReal (r + R) ≤ classicalMutualInformationNats muB WB p) :
    ∃ M : ℕ → ℕ, (∀ n, 0 < M n) ∧
      ∃ C : (n : ℕ) → WiretapCode (Fin n → X) (Fin n → Y) (M n),
        Tendsto (fun n => Real.log (M n : ℝ) / (n : ℝ)) atTop (𝓝 r) ∧
        Tendsto (fun n => wiretapDecodingError (Measure.pi (fun _ : Fin n => muB))
          (blockDensity WB n) (C n)) atTop (𝓝 0) ∧
        Tendsto (fun n => codeLeakage (Measure.pi (fun _ : Fin n => muE))
          (blockDensity WE n) (C n)) atTop (𝓝 0) ∧
        wiretapPhiExponent muE WE p R ≤ Filter.liminf (fun n => negativeLogRateENN
          (codeLeakage (Measure.pi (fun _ : Fin n => muE)) (blockDensity WE n) (C n)) n)
          atTop := by sorry

end QAlgorithms.Papers.Independent.Advance50.P28

end
Source
Tight exponential analysis of universally composable privacy amplification and its applications, arXiv:1010.1358v5, PDF p. 13, Wiretap achievable rate and secrecy exponent
Read-back

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

Let XXX be nonempty and countable, let Y,EY,EY,E be measurable spaces with sigma finite measures μB,μE\mu_B,\mu_EμB​,μE​, and suppose WB:X×Y→[0,∞]W_B:X\times Y\to[0,\infty]WB​:X×Y→[0,∞], WE:X×E→[0,∞]W_E:X\times E\to[0,\infty]WE​:X×E→[0,∞] are measurable in the output variable for every input and have lower integral 111 for every input. Let p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞] satisfy ∑x′p(x)=1\sum_x'p(x)=1∑x′​p(x)=1. For such (μ,W)(\mu,W)(μ,W), put q(z)=∑x′p(x)W(x,z)q(z)=\sum_x'p(x)W(x,z)q(z)=∑x′​p(x)W(x,z), u(x,z)=toReal⁡(W(x,z)/q(z))u(x,z)=\operatorname{toReal}(W(x,z)/q(z))u(x,z)=toReal(W(x,z)/q(z)), and

Iμ,W,p=∑x′p(x)∫−q(z)ofReal⁡ ⁣(u(x,z)log⁡u(x,z)−u(x,z)+1)dμ(z),Γμ,W,p(t)=∫−(∑x′p(x)W(x,z)1/(1−t))1−tdμ(z),I_{\mu,W,p}=\sum_x'p(x)\int^- q(z)\operatorname{ofReal}\!\left(u(x,z)\log u(x,z)-u(x,z)+1\right)d\mu(z), \qquad \Gamma_{\mu,W,p}(t)=\int^-\left(\sum_x'p(x)W(x,z)^{1/(1-t)}\right)^{1-t}d\mu(z),Iμ,W,p​=x∑′​p(x)∫−q(z)ofReal(u(x,z)logu(x,z)−u(x,z)+1)dμ(z),Γμ,W,p​(t)=∫−(x∑′​p(x)W(x,z)1/(1−t))1−tdμ(z),

where toReal⁡(+∞)=0\operatorname{toReal}(+\infty)=0toReal(+∞)=0, ofReal⁡(a)=max⁡(a,0)\operatorname{ofReal}(a)=\max(a,0)ofReal(a)=max(a,0), and the real logarithm has value 000 at 000. For any real r,R≥0r,R\ge0r,R≥0 satisfying the non-strict bounds IμE,WE,p≤ofReal⁡(R)I_{\mu_E,W_E,p}\le\operatorname{ofReal}(R)IμE​,WE​,p​≤ofReal(R) and ofReal⁡(r+R)≤IμB,WB,p\operatorname{ofReal}(r+R)\le I_{\mu_B,W_B,p}ofReal(r+R)≤IμB​,WB​,p​, there exist positive integers MnM_nMn​ for every natural number nnn, and codes at every nnn consisting of normalized encoder masses pn,i:Xn→[0,∞]p_{n,i}:X^n\to[0,\infty]pn,i​:Xn→[0,∞] and pairwise disjoint measurable decoding sets Dn,i⊆YnD_{n,i}\subseteq Y^nDn,i​⊆Yn, indexed by i<Mni<M_ni<Mn​. Define qn,iB(y)=∑x′pn,i(x)∏j<nWB(xj,yj)q_{n,i}^B(y)=\sum_x'p_{n,i}(x)\prod_{j<n}W_B(x_j,y_j)qn,iB​(y)=∑x′​pn,i​(x)∏j<n​WB​(xj​,yj​), define qn,iEq_{n,i}^Eqn,iE​ analogously, put q‾nE=Mn−1∑iqn,iE\overline q_n^E=M_n^{-1}\sum_iq_{n,i}^Eq​nE​=Mn−1​∑i​qn,iE​, and set

en=1Mn∑i<Mn∫Yn∖Dn,i−qn,iB dμB⊗n,ℓn=1Mn∑i<Mn∫En−[(qn,iE\dotminusq‾nE)+(q‾nE\dotminusqn,iE)]dμE⊗n.e_n=\frac1{M_n}\sum_{i<M_n}\int^-_{Y^n\setminus D_{n,i}}q_{n,i}^B\,d\mu_B^{\otimes n}, \qquad \ell_n=\frac1{M_n}\sum_{i<M_n}\int_{E^n}^- \bigl[(q_{n,i}^E\mathbin{\dotminus}\overline q_n^E)+ (\overline q_n^E\mathbin{\dotminus}q_{n,i}^E)\bigr]d\mu_E^{\otimes n}.en​=Mn​1​i<Mn​∑​∫Yn∖Dn,i​−​qn,iB​dμB⊗n​,ℓn​=Mn​1​i<Mn​∑​∫En−​[(qn,iE​\dotminusq​nE​)+(q​nE​\dotminusqn,iE​)]dμE⊗n​.

Then, as n→∞n\to\inftyn→∞, log⁡Mn/n→r\log M_n/n\to rlogMn​/n→r, en→0e_n\to0en​→0, and ℓn→0\ell_n\to0ℓn​→0, and

sup⁡0≤t≤1/2[tR−log⁡ΓμE,WE,p(t)]≤lim inf⁡n→∞−log⁡ℓnn.\sup_{0\le t\le1/2}\left[tR-\log\Gamma_{\mu_E,W_E,p}(t)\right] \le\liminf_{n\to\infty}\frac{-\log\ell_n}{n}.0≤t≤1/2sup​[tR−logΓμE​,WE​,p​(t)]≤n→∞liminf​n−logℓn​​.

The exponent inequality is in the extended real line, with log⁡0=−∞\log0=-\inftylog0=−∞ and log⁡(+∞)=+∞\log(+\infty)=+\inftylog(+∞)=+∞; the leakage uses truncated subtraction, including ∞\dotminus∞=0\infty\mathbin{\dotminus}\infty=0∞\dotminus∞=0. Codes are also required at n=0n=0n=0, where tuple products are empty products, and the displayed rate sequences use total division at zero; for positive nnn, zero leakage gives exponent +∞+\infty+∞. The hypotheses allow equality in either information bound and allow r=0r=0r=0 or R=0R=0R=0.

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