Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5

Open
QAlgorithms.Papers.Independent.Advance50.P28.wiretap_one_shot

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 all positive integers M,LM,LM,L, a single code Φ\PhiΦ with MMM messages satisfies

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

The reliability and secrecy parameters can be optimized separately while sharing the existence quantifier. Nonnegative integrals permit infinite channel moments rather than losing countable-input generality.

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 pp.12–13, Theorem 5: ONE code attains both separately optimized
bounds. Countable inputs and measurable density outputs retain the source's generality. -/
theorem wiretap_one_shot {X Y E : Type*} [Countable X] [Nonempty X]
    [MeasurableSpace Y] [MeasurableSpace E]
    (muB : Measure Y) (muE : Measure E)
    (WB : X → Y → ℝ≥0∞) (WE : X → E → ℝ≥0∞)
    (hB : IsDensityChannel muB WB) (hE : IsDensityChannel muE WE)
    (p : X → ℝ≥0∞) (hp : IsENNRealDiscreteLaw p) (M L : ℕ) (hM : 0 < M) (hL : 0 < L) :
    ∃ C : WiretapCode X Y M,
      wiretapDecodingError muB WB C ≤ 3 * sInf ((fun t : ℝ =>
        (M * L : ℝ≥0∞) ^ t * gallagerDensityMoment muB WB p (-t)) '' Set.Icc 0 1) ∧
      codeLeakage muE WE C ≤ 9 * sInf ((fun t : ℝ =>
        gallagerDensityMoment muE WE p t / (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, Theorem 5
Read-back

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

Let XXX be a nonempty countable type, let Y,EY,EY,E be measurable spaces with measures μB,μE\mu_B,\mu_EμB​,μE​, and let 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,∞] satisfy: for every xxx, their output functions are measurable and have lower integral 111 against their respective measures. 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, and let M,LM,LM,L be positive natural numbers. For either output space 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:X→[0,∞]p_i:X\to[0,\infty]pi​:X→[0,∞], each with ∑x′pi(x)=1\sum_x'p_i(x)=1∑x′​pi​(x)=1, and pairwise disjoint measurable decoding sets Di⊆YD_i\subseteq YDi​⊆Y, indexed by i<Mi<Mi<M, such that, writing qiB(y)=∑x′pi(x)WB(x,y)q_i^B(y)=\sum_x'p_i(x)W_B(x,y)qiB​(y)=∑x′​pi​(x)WB​(x,y), qiE(e)=∑x′pi(x)WE(x,e)q_i^E(e)=\sum_x'p_i(x)W_E(x,e)qiE​(e)=∑x′​pi​(x)WE​(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∫Y∖Di−qiB dμB≤3inf⁡0≤t≤1(ML)tΓμB,WB,p(−t),1M∑i<M∫E−Δ(qiE,q‾E) dμE≤9inf⁡0≤t≤1/2ΓμE,WE,p(t)Lt,\frac1M\sum_{i<M}\int^-_{Y\setminus D_i}q_i^B\,d\mu_B \le 3\inf_{0\le t\le1}(ML)^t\Gamma_{\mu_B,W_B,p}(-t), \qquad \frac1M\sum_{i<M}\int_E^-\Delta(q_i^E,\overline q^E)\,d\mu_E \le9\inf_{0\le t\le1/2}\frac{\Gamma_{\mu_E,W_E,p}(t)}{L^t},M1​i<M∑​∫Y∖Di​−​qiB​dμB​≤30≤t≤1inf​(ML)tΓμB​,WB​,p​(−t),M1​i<M∑​∫E−​Δ(qiE​,q​E)dμE​≤90≤t≤1/2inf​LtΓμE​,WE​,p​(t)​,

where Δ(a,b)=(a\dotminusb)+(b\dotminusa)\Delta(a,b)=(a\mathbin{\dotminus}b)+(b\mathbin{\dotminus}a)Δ(a,b)=(a\dotminusb)+(b\dotminusa), with truncated subtraction and ∞\dotminus∞=0\infty\mathbin{\dotminus}\infty=0∞\dotminus∞=0. The infima and inequalities are in [0,∞][0,\infty][0,∞], and both parameter intervals include their endpoints. No sigma finiteness assumption is imposed on either measure.

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