Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Classical random-codebook covering, miss, and collision bounds

Open
QAlgorithms.Papers.Independent.Extend50.P49.classicalCodebookEvents

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

prove2quantum

Fix a finite classical broadcast channel WWW, a normalized auxiliary law pUVp_{UV}pUV​, and a deterministic map fff. Write a=I0ε0(U;Y)a=I_0^{\varepsilon_0}(U;Y)a=I0ε0​​(U;Y), b=I0ε0(V;Z)b=I_0^{\varepsilon_0}(V;Z)b=I0ε0​​(V;Z), and c=I∞ε∞(U;V)c=I_\infty^{\varepsilon_\infty}(U;V)c=I∞ε∞​​(U;V) for the finite values on the computed law pUVW(⋅,⋅∣f(U,V))p_{UV}W(\cdot,\cdot\mid f(U,V))pUV​W(⋅,⋅∣f(U,V)). Suppose 0<ε0<10<\varepsilon_0<10<ε0​<1, 0<ε∞≤1/40<\varepsilon_\infty\le1/40<ε∞​≤1/4, and 0<t≤1/370<t\le1/370<t≤1/37. Choose source test sets A1⊆U×YA_1\subseteq U\times YA1​⊆U×Y, A2⊆V×ZA_2\subseteq V\times ZA2​⊆V×Z with acceptance strictly greater than 1−ε01-\varepsilon_01−ε0​ and original product-marginal masses at most 2−a2^{-a}2−a and 2−b2^{-b}2−b, respectively. For positive integer message counts MiM_iMi​ put Ri=log⁡2MiR_i=\log_2M_iRi​=log2​Mi​, and choose positive integers rir_iri​ satisfying, with L=log⁡2(1/t)L=\log_2(1/t)L=log2​(1/t),

R1+r1≤a−4L−1,R2+r2≤b−4L−1,r1,r2≥L,r1+r2=⌈c+3L⌉.R_1+r_1\le a-4L-1,\quad R_2+r_2\le b-4L-1,\quad r_1,r_2\ge L,\quad r_1+r_2=\lceil c+3L\rceil.R1​+r1​≤a−4L−1,R2​+r2​≤b−4L−1,r1​,r2​≥L,r1​+r2​=⌈c+3L⌉.

Draw all M12r1M_12^{r_1}M1​2r1​ row symbols independently from pUp_UpU​ and all M22r2M_22^{r_2}M2​2r2​ column symbols independently from pVp_VpV​, mutually independently. Given them, retain each cell (k,ℓ)(k,\ell)(k,ℓ) independently with probability min⁡{1,pUV(Uk,Vℓ)/(2cpU(Uk)pV(Vℓ))}\min\{1,p_{UV}(U_k,V_\ell)/(2^cp_U(U_k)p_V(V_\ell))\}min{1,pUV​(Uk​,Vℓ​)/(2cpU​(Uk​)pV​(Vℓ​))}. Null marginal rows have probability zero. For the first message rectangle select the lexicographically first retained cell whose two conditional local test-acceptance probabilities exceed 1−4ε01-4\varepsilon_01−4ε0​; use a fixed channel input if none exists. Let E1E_1E1​ mean no such cell exists. On its complement denote the selected indices by (k∗,ℓ∗)(k^*,\ell^*)(k∗,ℓ∗). Let E2,BE_{2,B}E2,B​ and E2,CE_{2,C}E2,C​ mean the selected row/output or column/output fails its test. Let E3,BE_{3,B}E3,B​ and E3,CE_{3,C}E3,C​ mean some OTHER row index or column index passes the corresponding output test. These events include randomness of both the codebook and actual channel output. Then, with

A=2−r1−r2+c+2+2−r1+4+2−r2+4,B=22r1+r2+R1−c−a,C=2r1+2r2+R2−c−b,A=2^{-r_1-r_2+c+2}+2^{-r_1+4}+2^{-r_2+4},\quad B=2^{2r_1+r_2+R_1-c-a},\quad C=2^{r_1+2r_2+R_2-c-b},A=2−r1​−r2​+c+2+2−r1​+4+2−r2​+4,B=22r1​+r2​+R1​−c−a,C=2r1​+2r2​+R2​−c−b,

all the following bounds hold:

Pr⁡(E1)≤A≤36t,Pr⁡(E2,B),Pr⁡(E2,C)≤4ε0,Pr⁡(E3,B)≤B≤t/2,Pr⁡(E3,C)≤C≤t/2.\begin{aligned}\Pr(E_1)&\le A\le36t,\\\Pr(E_{2,B}),\Pr(E_{2,C})&\le4\varepsilon_0,\\\Pr(E_{3,B})&\le B\le t/2,\\\Pr(E_{3,C})&\le C\le t/2.\end{aligned}Pr(E1​)Pr(E2,B​),Pr(E2,C​)Pr(E3,B​)Pr(E3,C​)​≤A≤36t,≤4ε0​,≤B≤t/2,≤C≤t/2.​

The events are computed from this construction; they are not arbitrary events postulated to satisfy the bounds. Their union yields the classical budget 37t+8ε037t+8\varepsilon_037t+8ε0​.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P49
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P49

open QAlgorithms MeasureTheory Filter

open scoped BigOperators Matrix ComplexOrder Topology

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Claim 1, PDF p.13, proof pp.13-14. Corrected printed -r1-r1 to -r1-r2,
as required by the derivation on p.13 and (31), p.9. The collision constants are
visually verified tildeEpsilon/2, not 2*tildeEpsilon. All five events are computed. -/
theorem classicalCodebookEvents {X U V Y Z : Type}
    [Fintype X] [Fintype U] [Fintype V] [Fintype Y] [Fintype Z]
    (D : ClassicalSetup X U V Y Z) :
    let cover := (2 : ℝ) ^ (-(D.r1 : ℝ) - D.r2 + D.c + 2) +
      (2 : ℝ) ^ (-(D.r1 : ℝ) + 4) + (2 : ℝ) ^ (-(D.r2 : ℝ) + 4)
    let collisionBob := (2 : ℝ) ^ (2 * (D.r1 : ℝ) + (D.r2 : ℝ) + Real.logb 2 (D.M1 : ℝ)) *
      (2 : ℝ) ^ (-D.c) * (2 : ℝ) ^ (-D.a)
    let collisionCharlie := (2 : ℝ) ^ ((D.r1 : ℝ) + 2 * D.r2 + Real.logb 2 (D.M2 : ℝ)) *
      (2 : ℝ) ^ (-D.c) * (2 : ℝ) ^ (-D.b)
    classicalEventProbability D .noPair ≤ cover ∧ cover ≤ 36 * D.tildeEpsilon ∧
    classicalEventProbability D .bobMiss ≤ 4 * D.epsilon0 ∧
    classicalEventProbability D .charlieMiss ≤ 4 * D.epsilon0 ∧
    classicalEventProbability D .bobCollision ≤ collisionBob ∧ collisionBob ≤ D.tildeEpsilon / 2 ∧
    classicalEventProbability D .charlieCollision ≤ collisionCharlie ∧
      collisionCharlie ≤ D.tildeEpsilon / 2 := by sorry

end QAlgorithms.Papers.Independent.Extend50.P49

end
Source
One-shot Marton inner bound for classical-quantum broadcast channel, arXiv:1410.3248v5, PDF p. 13, Claim 1
Read-back

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

For finite types X,U,V,Y,ZX,U,V,Y,ZX,U,V,Y,Z, take data DDD consisting of a nonempty XXX, normalized nonnegative channel probabilities Wx(y,z)W_x(y,z)Wx​(y,z), normalized nonnegative joint probabilities p(u,v)p(u,v)p(u,v), a map f:U×V→Xf:U\times V\to Xf:U×V→X, positive natural numbers M1,M2M_1,M_2M1​,M2​, natural numbers r1,r2r_1,r_2r1​,r2​, real numbers ϵ0,ϵ∞,ϵ~,a,b,c\epsilon_0,\epsilon_\infty,\widetilde\epsilon,a,b,cϵ0​,ϵ∞​,ϵ,a,b,c, and finite tests A1⊆U×Y,A2⊆V×ZA_1\subseteq U\times Y,A_2\subseteq V\times ZA1​⊆U×Y,A2​⊆V×Z. Define q1(u,y)=∑v,zp(u,v)Wf(u,v)(y,z)q_1(u,y)=\sum_{v,z}p(u,v)W_{f(u,v)}(y,z)q1​(u,y)=∑v,z​p(u,v)Wf(u,v)​(y,z), q2(v,z)=∑u,yp(u,v)Wf(u,v)(y,z)q_2(v,z)=\sum_{u,y}p(u,v)W_{f(u,v)}(y,z)q2​(v,z)=∑u,y​p(u,v)Wf(u,v)​(y,z), use qL,qRq_L,q_RqL​,qR​ for marginals, and set ℓ(t)=log⁡2t\ell(t)=\log_2tℓ(t)=log2​t for t>0t>0t>0, ℓ(t)=−∞\ell(t)=-\inftyℓ(t)=−∞ otherwise. Let Λp(u,v)\Lambda_p(u,v)Λp​(u,v) equal −∞-\infty−∞ if p(u,v)=0p(u,v)=0p(u,v)=0, +∞+\infty+∞ if p(u,v)≠0p(u,v)\ne0p(u,v)=0 and pU(u)pV(v)=0p_U(u)p_V(v)=0pU​(u)pV​(v)=0, and otherwise ℓ(p(u,v)/(pU(u)pV(v)))\ell(p(u,v)/(p_U(u)p_V(v)))ℓ(p(u,v)/(pU​(u)pV​(v))). The hypotheses contained in DDD, with a1=a,a2=ba_1=a,a_2=ba1​=a,a2​=b, are

0<ϵ0<1,0<ϵ∞≤14,0<ϵ~≤137,ai=sup⁡∑Gqi≥1−ϵ0−ℓ ⁣(∑s∈Gqi,L(sL)qi,R(sR)),1−ϵ0<∑s∈Aiqi(s),∑s∈Aiqi,L(sL)qi,R(sR)≤2−ai(i=1,2),c=inf⁡∑Gp>1−ϵ∞sup⁡(u,v)∈GΛp(u,v),\begin{gathered} 0<\epsilon_0<1,\quad0<\epsilon_\infty\le\tfrac14,\quad 0<\widetilde\epsilon\le\tfrac1{37},\\ a_i=\sup_{\sum_Gq_i\ge1-\epsilon_0} -\ell\!\left(\sum_{s\in G}q_{i,L}(s_L)q_{i,R}(s_R)\right),\quad 1-\epsilon_0<\sum_{s\in A_i}q_i(s),\quad \sum_{s\in A_i}q_{i,L}(s_L)q_{i,R}(s_R)\le2^{-a_i} \quad(i=1,2),\\ c=\inf_{\sum_Gp>1-\epsilon_\infty}\sup_{(u,v)\in G}\Lambda_p(u,v), \end{gathered}0<ϵ0​<1,0<ϵ∞​≤41​,0<ϵ≤371​,ai​=∑G​qi​≥1−ϵ0​sup​−ℓ(s∈G∑​qi,L​(sL​)qi,R​(sR​)),1−ϵ0​<s∈Ai​∑​qi​(s),s∈Ai​∑​qi,L​(sL​)qi,R​(sR​)≤2−ai​(i=1,2),c=∑G​p>1−ϵ∞​inf​(u,v)∈Gsup​Λp​(u,v),​

where the extrema range over finite subsets and are evaluated in the extended reals. With L=log⁡2(1/ϵ~)L=\log_2(1/\widetilde\epsilon)L=log2​(1/ϵ), DDD also requires

ri>0,L≤ri,log⁡2Mi+ri≤ai−4L−1(i=1,2),r1+r2=⌈c+3L⌉.r_i>0,\quad L\le r_i,\quad \log_2M_i+r_i\le a_i-4L-1\quad(i=1,2),\qquad r_1+r_2=\lceil c+3L\rceil.ri​>0,L≤ri​,log2​Mi​+ri​≤ai​−4L−1(i=1,2),r1​+r2​=⌈c+3L⌉.

For each assignment B\mathcal BB of R=M12r1R=M_1 2^{r_1}R=M1​2r1​ row symbols uku_kuk​, C=M22r2C=M_2 2^{r_2}C=M2​2r2​ column symbols vlv_lvl​, and Boolean flags hklh_{kl}hkl​, assign weight

w(B)=∏kpU(uk)∏lpV(vl)∏k,l{s(uk,vl),hkl=true,1−s(uk,vl),hkl=false,s(u,v)=min⁡ ⁣(1,max⁡ ⁣(0,p(u,v)2cpU(u)pV(v))),w(\mathcal B)=\prod_kp_U(u_k)\prod_lp_V(v_l) \prod_{k,l} \begin{cases} s(u_k,v_l),&h_{kl}=\mathrm{true},\\ 1-s(u_k,v_l),&h_{kl}=\mathrm{false}, \end{cases} \qquad s(u,v)=\min\!\left(1,\max\!\left(0,\frac{p(u,v)}{2^c p_U(u)p_V(v)}\right)\right),w(B)=k∏​pU​(uk​)l∏​pV​(vl​)k,l∏​{s(uk​,vl​),1−s(uk​,vl​),​hkl​=true,hkl​=false,​s(u,v)=min(1,max(0,2cpU​(u)pV​(v)p(u,v)​)),

where a zero denominator gives quotient zero. Select the first pair in increasing row and then column order with k<2r1k<2^{r_1}k<2r1​, l<2r2l<2^{r_2}l<2r2​, hkl=trueh_{kl}=\mathrm{true}hkl​=true, and both inequalities

∑y$uk,y)∈A1∑zWf(uk,vl)(y,z)>1−4ϵ0,∑z(vl,z)∈A2∑yWf(uk,vl)(y,z)>1−4ϵ0.\sum_{\substack{y\$u_k,y)\in A_1}}\sum_zW_{f(u_k,v_l)}(y,z)>1-4\epsilon_0,\qquad \sum_{\substack{z\\(v_l,z)\in A_2}}\sum_yW_{f(u_k,v_l)}(y,z)>1-4\epsilon_0.y$uk​,y)∈A1​​∑​z∑​Wf(uk​,vl​)​(y,z)>1−4ϵ0​,z(vl​,z)∈A2​​∑​y∑​Wf(uk​,vl​)​(y,z)>1−4ϵ0​.

Use channel input (f(u_{k_},v_{l_})ifapairif a pairifapair(k_,l_)isselected,andafixedchoseninputotherwise.Letis selected, and a fixed chosen input otherwise. Letisselected,andafixedchoseninputotherwise.LetP_ebethesum,overallbe the sum, over allbethesum,overall\mathcal B,y,z,of, of ,ofw(\mathcal B)W_{x_{\mathcal B}}(y,z)timestheindicatorofeventtimes the indicator of eventtimestheindicatorofevente:noselectionfor‘noPair‘;aselectionand: no selection for `noPair`; a selection and :noselectionfor‘noPair‘;aselectionand(u_{k_},y)\notin A_1for‘bobMiss‘;aselectionandfor `bobMiss`; a selection andfor‘bobMiss‘;aselectionand(v_{l_},z)\notin A_2for‘charlieMiss‘;aselectionandsomeotherrowfor `charlieMiss`; a selection and some other rowfor‘charlieMiss‘;aselectionandsomeotherrowk\ne k_anywhereinthecodebookwithanywhere in the codebook withanywhereinthecodebookwith(u_k,y)\in A_1for‘bobCollision‘;oraselectionandsomeothercolumnfor `bobCollision`; or a selection and some other columnfor‘bobCollision‘;oraselectionandsomeothercolumnl\ne l_anywhereinthecodebookwithanywhere in the codebook withanywhereinthecodebookwith(v_l,z)\in A_2$ for charlieCollision. Define

C0=2−r1−r2+c+2+2−r1+4+2−r2+4,CB=22r1+r2+log⁡2M1 2−c 2−a,CC=2r1+2r2+log⁡2M2 2−c 2−b.\begin{aligned} C_0&=2^{-r_1-r_2+c+2}+2^{-r_1+4}+2^{-r_2+4},\\ C_B&=2^{2r_1+r_2+\log_2M_1}\,2^{-c}\,2^{-a},\\ C_C&=2^{r_1+2r_2+\log_2M_2}\,2^{-c}\,2^{-b}. \end{aligned}C0​CB​CC​​=2−r1​−r2​+c+2+2−r1​+4+2−r2​+4,=22r1​+r2​+log2​M1​2−c2−a,=2r1​+2r2​+log2​M2​2−c2−b.​

The theorem asserts all of the following non-strict inequalities:

PnoPair≤C0≤36ϵ~,PbobMiss≤4ϵ0,PcharlieMiss≤4ϵ0,PbobCollision≤CB≤ϵ~/2,PcharlieCollision≤CC≤ϵ~/2.\begin{gathered} P_{\texttt{noPair}}\le C_0\le36\widetilde\epsilon,\\ P_{\texttt{bobMiss}}\le4\epsilon_0,\qquad P_{\texttt{charlieMiss}}\le4\epsilon_0,\\ P_{\texttt{bobCollision}}\le C_B\le\widetilde\epsilon/2,\qquad P_{\texttt{charlieCollision}}\le C_C\le\widetilde\epsilon/2. \end{gathered}PnoPair​≤C0​≤36ϵ,PbobMiss​≤4ϵ0​,PcharlieMiss​≤4ϵ0​,PbobCollision​≤CB​≤ϵ/2,PcharlieCollision​≤CC​≤ϵ/2.​
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