Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2: separate L1 and KL resolvability witnesses

Open
QAlgorithms.Papers.Independent.Intake100.P73.resolvability_existence

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

prove2quantum

Let W:x↦WxW:x\mapsto W_xW:x↦Wx​ be a classical discrete stochastic channel from XXX to YYY, and let ppp be a probability mass function on XXX. Write Wp(y)=∑xp(x)Wx(y)W_p(y)=\sum_xp(x)W_x(y)Wp​(y)=∑x​p(x)Wx​(y). All logarithms are natural, d(P,Q)=∑y∣P(y)−Q(y)∣d(P,Q)=\sum_y|P(y)-Q(y)|d(P,Q)=∑y​∣P(y)−Q(y)∣ is the full L1 distance, and D(P∥Q)D(P\|Q)D(P∥Q) is extended nonnegative KL divergence, infinite on a support mismatch. Zero-mass terms in the defining KL expression contribute zero.

For C>0C>0C>0, define δ=Pp(x)Wx(y){Wx(y)/Wp(y)>C}\delta=\mathbb P_{p(x)W_x(y)}\{W_x(y)/W_p(y)>C\}δ=Pp(x)Wx​(y)​{Wx​(y)/Wp​(y)>C} and δ′=∑xp(x)∑y:Wx(y)/Wp(y)≤CWx(y)2/Wp(y)\delta'=\sum_xp(x)\sum_{y:W_x(y)/W_p(y)\le C}W_x(y)^2/W_p(y)δ′=∑x​p(x)∑y:Wx​(y)/Wp​(y)≤C​Wx​(y)2/Wp​(y), excluding null joint-support terms before division. Set η(a)=−alog⁡a\eta(a)=-a\log aη(a)=−aloga, with η(0)=0\eta(0)=0η(0)=0, and

ϕ(t∣W,p)=log⁡∑y(∑xp(x)Wx(y)1/(1+t))1+t.\phi(t\mid W,p)=\log\sum_y\left(\sum_xp(x)W_x(y)^{1/(1+t)}\right)^{1+t}.ϕ(t∣W,p)=logy∑​(x∑​p(x)Wx​(y)1/(1+t))1+t.

For every positive integer MMM and every C>0C>0C>0, one has δ′≤C\delta'\le Cδ′≤C and there is a tuple codebook Ψ\PsiΨ of exactly MMM entries, allowing repetitions, such that

d(WΨ,Wp)≤2δ+δ′/M.d(W_\Psi,W_p)\le 2\delta+\sqrt{\delta'/M}.d(WΨ​,Wp​)≤2δ+δ′/M​.

If YYY is finite, then for every −1/2≤t<0-1/2\le t<0−1/2≤t<0 there is a possibly different tuple codebook Ψ′\Psi'Ψ′ of exactly MMM entries satisfying both

D(WΨ′∥Wp)≤log⁡(1+Mteϕ(t∣W,p))−t,D(WΨ′∥Wp)≤η(δ)+δlog⁡∣Y∣+δ′/M.D(W_{\Psi'}\|W_p)\le\frac{\log(1+M^t e^{\phi(t\mid W,p)})}{-t},\qquad D(W_{\Psi'}\|W_p)\le\eta(\delta)+\delta\log|Y|+\delta'/M.D(WΨ′​∥Wp​)≤−tlog(1+Mteϕ(t∣W,p))​,D(WΨ′​∥Wp​)≤η(δ)+δlog∣Y∣+δ′/M.

Here WΨ=M−1∑i=1MWxiW_\Psi=M^{-1}\sum_{i=1}^M W_{x_i}WΨ​=M−1∑i=1M​Wxi​​. This supplies separate existence guarantees for the two approximation criteria.

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.4, Theorem 2, (9)–(11). L1 and KL codes may DIFFER;
for fixed t ONE KL witness satisfies BOTH expectation-derived bounds. -/
theorem resolvability_existence {X Y : Type*} (W : X → Y → ℝ≥0∞)
    (hW : IsDiscreteStochastic W) (p : PMF X) (M : ℕ) (hM : 0 < M) (C : ℝ) (hC : 0 < C) :
    deltaPrime W p C ≤ ENNReal.ofReal C ∧
    (∃ b : Book X, b.size = M ∧
      fullL1 (empirical W b) (discreteOutputMixture W p) ≤ ENNReal.ofReal (l1Bound W p C M)) ∧
    (Finite Y → ∀ t : ℝ, -(1 / 2) ≤ t → t < 0 →
      ∃ b : Book X, b.size = M ∧
        (discreteKLDivergence (empirical W b) (discreteOutputMixture W p) : EReal) ≤ klBound W p M t ∧
        discreteKLDivergence (empirical W b) (discreteOutputMixture W p) ≤ ENNReal.ofReal (entropyBound W p M C)) := 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. 4, Theorem 2, (9)–(11): resolvability existence in full L1 and KL
Read-back

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

For any types X,YX,YX,Y, any W:X×Y→[0,∞]W:X\times Y\to[0,\infty]W:X×Y→[0,∞] satisfying ∑y′W(x,y)=1\sum'_yW(x,y)=1∑y′​W(x,y)=1 for every xxx, any probability mass function ppp on XXX, any positive integer MMM, and any positive real CCC, put q(y)=∑x′p(x)W(x,y)q(y)=\sum'_x p(x)W(x,y)q(y)=∑x′​p(x)W(x,y), and define

u=ρ ⁣(∑x′∑y′1{p(x)>0, q(y)>0, C<W(x,y)/q(y)}p(x)W(x,y)),δ=∑x′∑y′1{p(x)>0, q(y)>0, W(x,y)/q(y)≤C}p(x)W(x,y)2q(y).u=\rho\!\left(\sum'_x\sum'_y \mathbf1_{\{p(x)>0,\ q(y)>0,\ C<W(x,y)/q(y)\}}p(x)W(x,y)\right), \quad \delta=\sum'_x\sum'_y \mathbf1_{\{p(x)>0,\ q(y)>0,\ W(x,y)/q(y)\le C\}} \frac{p(x)W(x,y)^2}{q(y)}.u=ρ(x∑′​y∑′​1{p(x)>0, q(y)>0, C<W(x,y)/q(y)}​p(x)W(x,y)),δ=x∑′​y∑′​1{p(x)>0, q(y)>0, W(x,y)/q(y)≤C}​q(y)p(x)W(x,y)2​.

Here each indicator means that the entire summand is zero outside the stated condition, the sums and ratios are in [0,∞][0,\infty][0,∞], and ρ\rhoρ is conversion to the reals, sending +∞+\infty+∞ to 000. For output masses P,QP,QP,Q, write D1(P,Q)=∑y′((P(y)\dotminusQ(y))+(Q(y)\dotminusP(y)))D_1(P,Q)=\sum'_y((P(y)\mathbin{\dotminus}Q(y))+(Q(y)\mathbin{\dotminus}P(y)))D1​(P,Q)=∑y′​((P(y)\dotminusQ(y))+(Q(y)\dotminusP(y))), using truncated subtraction, and DK(P,Q)=∑y′A(P(y),Q(y))D_K(P,Q)=\sum'_y A(P(y),Q(y))DK​(P,Q)=∑y′​A(P(y),Q(y)), where A(a,b)=bA(a,b)=bA(a,b)=b if a=0a=0a=0, A(a,b)=+∞A(a,b)=+\inftyA(a,b)=+∞ if a≠0,b=0a\ne0,b=0a=0,b=0, and otherwise

A(a,b)=b[ρ(a)ρ(b)log⁡ ⁣(ρ(a)ρ(b))−ρ(a)ρ(b)+1]+,A(a,b)=b\left[ \frac{\rho(a)}{\rho(b)}\log\!\left(\frac{\rho(a)}{\rho(b)}\right) -\frac{\rho(a)}{\rho(b)}+1\right]_+,A(a,b)=b[ρ(b)ρ(a)​log(ρ(b)ρ(a)​)−ρ(b)ρ(a)​+1]+​,

with [r]+=max⁡(r,0)[r]_+=\max(r,0)[r]+​=max(r,0) embedded in [0,∞][0,\infty][0,∞]. The assertion is the conjunction of δ≤C\delta\le Cδ≤C; the existence of a list x1,…,xM∈Xx_1,\ldots,x_M\in Xx1​,…,xM​∈X, allowing repetitions, whose mass P(y)=M−1∑i=1MW(xi,y)P(y)=M^{-1}\sum_{i=1}^M W(x_i,y)P(y)=M−1∑i=1M​W(xi​,y) satisfies

D1(P,q)≤[2u+ρ(δ)/M]+;D_1(P,q)\le\left[2u+\sqrt{\rho(\delta)/M}\right]_+;D1​(P,q)≤[2u+ρ(δ)/M​]+​;

and the following conditional assertion: if YYY is finite, then for every real −12≤t<0-\tfrac12\le t<0−21​≤t<0 there exists a list of exactly MMM entries, with its associated mass PPP, satisfying both

DK(P,q)≤log⁡ ⁣(1+Mt∑y′(∑x′p(x)W(x,y)1/(1+t))1+t)−t,DK(P,q)≤[h(u)+ulog⁡∣Y∣+ρ(δ)M]+.D_K(P,q)\le \frac{\log\!\left(1+M^t \sum'_y\left(\sum'_x p(x)W(x,y)^{1/(1+t)}\right)^{1+t}\right)}{-t}, \qquad D_K(P,q)\le \left[h(u)+u\log|Y|+\frac{\rho(\delta)}M\right]_+.DK​(P,q)≤−tlog(1+Mt∑y′​(∑x′​p(x)W(x,y)1/(1+t))1+t)​,DK​(P,q)≤[h(u)+ulog∣Y∣+Mρ(δ)​]+​.

The first of these last inequalities is in the extended reals, using the extended logarithm; h(a)=0h(a)=0h(a)=0 when a=0a=0a=0 and h(a)=−alog⁡ah(a)=-a\log ah(a)=−aloga otherwise. The list in the conditional assertion may depend on ttt, and need not be the list in the D1D_1D1​ assertion. The hypotheses exclude M=0M=0M=0 and C≤0C\le0C≤0; the existence of ppp, together with the row-sum condition, excludes empty XXX and empty YYY, but neither type is otherwise required to be finite or countable.

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