Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Iid random coding error bound with nonuniform auxiliary law

Open
QAlgorithms.Papers.Independent.Advance50.P23.random_coding_error

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

prove2quantum

For positive M,LM,LM,L, input law PXP_XPX​, auxiliary law PLP_LPL​ and normalized Bob cq family WBW_BWB​, sample each table entry c(l,m)c(l,m)c(l,m) independently with law PXP_XPX​. There are normalized word POVMs Dl,mcD^c_{l,m}Dl,mc​ and message codes with encoder Γmc(x)=∑l:c(l,m)=xPL(l)\Gamma^c_m(x)=\sum_{l:c(l,m)=x}P_L(l)Γmc​(x)=∑l:c(l,m)=x​PL​(l) and decoder ∑lDl,mc\sum_l D^c_{l,m}∑l​Dl,mc​. For the same choices and every 0≤t≤10\le t\le10≤t≤1, both the mean full-word error with prior PL(l)/MP_L(l)/MPL​(l)/M and the mean grouped-message error are at most 4(ML)te−tI−t(WB,PX)4(ML)^t e^{-tI_{-t}(W_B,P_X)}4(ML)te−tI−t​(WB​,PX​), with value 444 at t=0t=0t=0.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P23
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P23

open scoped BigOperators Matrix ComplexConjugate ComplexOrder ENNReal

open Filter

open QAlgorithms.Papers.Independent.Information100.P56
  (IsLaw entropy average holevo uniform ProjectiveRep orbit productOutput)

open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)

open QAlgorithms.Papers.Independent.Dependency50.P21 (IsSupported relativeEntropy)

open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch logNonnegativeExtended)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {X A Z B E : Type} [Fintype X] [Fintype A] [Fintype Z]
  [Fintype B] [DecidableEq B] [Fintype E] [DecidableEq E]

/-- PDF pp.9–10, (63): iid codebook decoding, including the nonuniform prior
PL(l)/M on each word (l,m). Word POVMs are selected before all exponent parameters;
the message decoder groups their effects and uses precisely the table encoder. -/
theorem random_coding_error [Nonempty X] [Nonempty B]
    (WB : X → Matrix B B ℂ) (hB : hayashiIsCQ WB) (M L : ℕ) (hM : 0 < M) (hL : 0 < L)
    (PX : X → ℝ) (hPX : IsLaw PX) (PL : Fin L → ℝ) (hPL : IsLaw PL) :
    ∃ word : (Fin L → Fin M → X) → Fin L → Fin M → Matrix B B ℂ,
    ∃ C : (Fin L → Fin M → X) → WiretapCode X B M,
      (∀ c, IsPOVM (fun i : Fin L × Fin M => word c i.1 i.2)) ∧
      (∀ c, (C c).encoder = tableEncoder PL c ∧ ∀ m, (C c).decoder m = ∑ l, word c l m) ∧
      ∀ t ∈ Set.Icc (0 : ℝ) 1,
        (∑ c, bookLaw PX c * ∑ l, ∑ m,
          PL l / M * (1 - effectProb (word c l m) (WB (c l m)))) ≤
            4 * hayashiReliability M L t WB PX ∧
        (∑ c, bookLaw PX c * hayashiCodeError WB (C c)) ≤
          4 * hayashiReliability M L t WB PX := by sorry

end QAlgorithms.Papers.Independent.Advance50.P23

end
Source
Quantum wiretap channel with non-uniform random number and its exponent and equivocation rate of leaked information, arXiv:1202.0325v3, PDF p. 10, Cited (63): cq random-coding error exponent
Read-back

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

Let XXX and BBB be finite nonempty types with decidable equality, and let WxW_xWx​ be a positive semidefinite complex matrix indexed by BBB, with tr⁡Wx=1\operatorname{tr}W_x=1trWx​=1, for every x∈Xx\in Xx∈X. Let M,LM,LM,L be positive natural numbers, and let PXP_XPX​ and PLP_LPL​ be nonnegative real functions on XXX and {0,…,L−1}\{0,\ldots,L-1\}{0,…,L−1}, respectively, each summing to one; zero probabilities are allowed. For a codebook c:{0,…,L−1}×{0,…,M−1}→Xc:\{0,\ldots,L-1\}\times\{0,\ldots,M-1\}\to Xc:{0,…,L−1}×{0,…,M−1}→X, put w(c)=∏l,mPX(c(l,m))w(c)=\prod_{l,m}P_X(c(l,m))w(c)=∏l,m​PX​(c(l,m)). There exist matrices Dl,mcD^c_{l,m}Dl,mc​ and, for every codebook ccc, a code CcC_cCc​ whose encoder assigns a probability law on XXX to each message and whose decoder is an MMM-outcome POVM, such that {Dl,mc}l,m\{D^c_{l,m}\}_{l,m}{Dl,mc​}l,m​ is itself a POVM for every ccc, the encoder is Gc(m,x)=∑l:c(l,m)=xPL(l)G_c(m,x)=\sum_{l:c(l,m)=x}P_L(l)Gc​(m,x)=∑l:c(l,m)=x​PL​(l), and the decoder effect for message mmm is Dmc=∑lDl,mcD^c_m=\sum_lD^c_{l,m}Dmc​=∑l​Dl,mc​. Write ρmc=∑xGc(m,x)Wx\rho^c_m=\sum_xG_c(m,x)W_xρmc​=∑x​Gc​(m,x)Wx​ and ec=1−1M∑mRe⁡tr⁡(Dmcρmc)e_c=1-\frac1M\sum_m\operatorname{Re}\operatorname{tr}(D^c_m\rho^c_m)ec​=1−M1​∑m​Retr(Dmc​ρmc​). Define H(σ)=−Re⁡tr⁡[(u↦ulog⁡u)(σ)]H(\sigma)=-\operatorname{Re}\operatorname{tr}[(u\mapsto u\log u)(\sigma)]H(σ)=−Retr[(u↦ulogu)(σ)], using continuous functional calculus and natural logarithms, and put Wˉ=∑xPX(x)Wx\bar W=\sum_xP_X(x)W_xWˉ=∑x​PX​(x)Wx​. For spectral powers, use u[a]=0u^{[a]}=0u[a]=0 at u=0u=0u=0 and u[a]=uau^{[a]}=u^au[a]=ua otherwise, and write σ[a]\sigma^{[a]}σ[a] for the resulting functional calculus. Set

Is={H(Wˉ)−∑xPX(x)H(Wx),s=0,1slog⁡ ⁣(Re⁡tr⁡∑xPX(x)Wx[1+s]Wˉ[−s]),s≠0,Rt={1,t=0,(ML)te−tI−t,t≠0.I_s= \begin{cases} H(\bar W)-\sum_xP_X(x)H(W_x),&s=0,\\ \displaystyle\frac1s\log\!\left(\operatorname{Re}\operatorname{tr} \sum_xP_X(x)W_x^{[1+s]}\bar W^{[-s]}\right),&s\ne0, \end{cases} \qquad R_t= \begin{cases} 1,&t=0,\\ (ML)^t e^{-tI_{-t}},&t\ne0. \end{cases}Is​=⎩⎨⎧​H(Wˉ)−∑x​PX​(x)H(Wx​),s1​log(Retrx∑​PX​(x)Wx[1+s]​Wˉ[−s]),​s=0,s=0,​Rt​={1,(ML)te−tI−t​,​t=0,t=0.​

The same choices of all these matrices and codes satisfy, for every t∈[0,1]t\in[0,1]t∈[0,1],

∑cw(c)∑l,mPL(l)M(1−Re⁡tr⁡(Dl,mcWc(l,m)))≤4Rt,∑cw(c)ec≤4Rt.\sum_c w(c)\sum_{l,m}\frac{P_L(l)}M \left(1-\operatorname{Re}\operatorname{tr}(D^c_{l,m}W_{c(l,m)})\right) \le4R_t, \qquad \sum_cw(c)e_c\le4R_t.c∑​w(c)l,m∑​MPL​(l)​(1−Retr(Dl,mc​Wc(l,m)​))≤4Rt​,c∑​w(c)ec​≤4Rt​.

Both endpoints are included: R0R_0R0​ is explicitly 111, and at t=1t=1t=1 the support power with exponent zero remains zero on the kernel; any logarithm of zero uses the total real-logarithm value log⁡0=0\log0=0log0=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