Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Memoryless wiretap code bounds

Open
QAlgorithms.Papers.Independent.Advance50.P28.wiretap_memoryless

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. For n,M,L≥1n,M,L\ge1n,M,L≥1, a single code on the actual product channels has MMM messages and

ϵB≤3inf⁡0≤t≤1(ML)tJ−t(WB,p)n,d1≤9inf⁡0≤t≤1/2Jt(WE,p)nLt.\epsilon_B\le3\inf_{0\le t\le1}(ML)^tJ_{-t}(W^B,p)^n,\qquad d_1\le9\inf_{0\le t\le1/2}\frac{J_t(W^E,p)^n}{L^t}.ϵB​≤30≤t≤1inf​(ML)tJ−t​(WB,p)n,d1​≤90≤t≤1/2inf​LtJt​(WE,p)n​.

Only the random-coding input is pnp^npn; the selected stochastic encoders may correlate all channel uses. A sigma-finite reference output measure is used for the tensor products; a countable channel family always admits a dominating probability reference measure.

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: memoryless code bounds use p^n and actual product channels;
encoders may correlate all n channel inputs. -/
theorem wiretap_memoryless {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)
    (n M L : ℕ) (hn : 0 < n) (hM : 0 < M) (hL : 0 < L) :
    ∃ C : WiretapCode (Fin n → X) (Fin n → Y) M,
      wiretapDecodingError (Measure.pi (fun _ : Fin n => muB)) (blockDensity WB n) C ≤
        3 * sInf ((fun t : ℝ => (M * L : ℝ≥0∞) ^ t *
          (gallagerDensityMoment muB WB p (-t)) ^ n) '' Set.Icc 0 1) ∧
      codeLeakage (Measure.pi (fun _ : Fin n => muE)) (blockDensity WE n) C ≤
        9 * sInf ((fun t : ℝ => (gallagerDensityMoment muE WE p t) ^ n /
          (L : ℝ≥0∞) ^ t) '' Set.Icc 0 (1 / 2)) := 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, Memoryless wiretap code bounds
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, and let μB,μE\mu_B,\mu_EμB​,μE​ be sigma finite measures. Suppose WB:X×Y→[0,∞]W_B:X\times Y\to[0,\infty]WB​:X×Y→[0,∞] and WE:X×E→[0,∞]W_E:X\times E\to[0,\infty]WE​:X×E→[0,∞] are measurable in their output variable for each input and each such function has lower integral 111. Let ∑x′p(x)=1\sum_x'p(x)=1∑x′​p(x)=1 for p:X→[0,∞]p:X\to[0,\infty]p:X→[0,∞], and let n,M,Ln,M,Ln,M,L be positive natural numbers. Define WB(n)(x,y)=∏j<nWB(xj,yj)W_B^{(n)}(x,y)=\prod_{j<n}W_B(x_j,y_j)WB(n)​(x,y)=∏j<n​WB​(xj​,yj​), and similarly WE(n)W_E^{(n)}WE(n)​, and define

Γμ,W,p(s)=∫−(∑x′p(x)W(x,z)1/(1−s))1−sdμ(z).\Gamma_{\mu,W,p}(s)= \int^-\left(\sum_x'p(x)W(x,z)^{1/(1-s)}\right)^{1-s}d\mu(z).Γμ,W,p​(s)=∫−(x∑′​p(x)W(x,z)1/(1−s))1−sdμ(z).

There exist encoder masses pi:Xn→[0,∞]p_i:X^n\to[0,\infty]pi​:Xn→[0,∞] with ∑x′pi(x)=1\sum_x'p_i(x)=1∑x′​pi​(x)=1, and pairwise disjoint measurable decoding sets Di⊆YnD_i\subseteq Y^nDi​⊆Yn, indexed by i<Mi<Mi<M, such that, with qiB(y)=∑x′pi(x)WB(n)(x,y)q_i^B(y)=\sum_x'p_i(x)W_B^{(n)}(x,y)qiB​(y)=∑x′​pi​(x)WB(n)​(x,y), qiE(e)=∑x′pi(x)WE(n)(x,e)q_i^E(e)=\sum_x'p_i(x)W_E^{(n)}(x,e)qiE​(e)=∑x′​pi​(x)WE(n)​(x,e), and q‾E=M−1∑iqiE\overline q^E=M^{-1}\sum_iq_i^Eq​E=M−1∑i​qiE​,

1M∑i<M∫Yn∖Di−qiB dμB⊗n≤3inf⁡0≤t≤1(ML)tΓμB,WB,p(−t)n,1M∑i<M∫En−Δ(qiE,q‾E) dμE⊗n≤9inf⁡0≤t≤1/2ΓμE,WE,p(t)nLt.\frac1M\sum_{i<M}\int^-_{Y^n\setminus D_i}q_i^B\,d\mu_B^{\otimes n} \le3\inf_{0\le t\le1}(ML)^t\Gamma_{\mu_B,W_B,p}(-t)^n, \qquad \frac1M\sum_{i<M}\int_{E^n}^-\Delta(q_i^E,\overline q^E)\,d\mu_E^{\otimes n} \le9\inf_{0\le t\le1/2}\frac{\Gamma_{\mu_E,W_E,p}(t)^n}{L^t}.M1​i<M∑​∫Yn∖Di​−​qiB​dμB⊗n​≤30≤t≤1inf​(ML)tΓμB​,WB​,p​(−t)n,M1​i<M∑​∫En−​Δ(qiE​,q​E)dμE⊗n​≤90≤t≤1/2inf​LtΓμE​,WE​,p​(t)n​.

Here Δ(a,b)=(a\dotminusb)+(b\dotminusa)\Delta(a,b)=(a\mathbin{\dotminus}b)+(b\mathbin{\dotminus}a)Δ(a,b)=(a\dotminusb)+(b\dotminusa) uses truncated subtraction, including ∞\dotminus∞=0\infty\mathbin{\dotminus}\infty=0∞\dotminus∞=0; all bounds and infima are in [0,∞][0,\infty][0,∞], and the displayed parameter intervals include their endpoints.

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