Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complementary-event formulas for both spectral families

Open
QAlgorithms.Papers.Independent.Intake100.P73.information_spectrum_complement

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

prove2quantum

Let W=(Wn)\mathbf W=(W^n)W=(Wn) be any sequence of classical discrete stochastic channels and p=(pn)\mathbf p=(p_n)p=(pn​) any sequence of normalized input laws. All logarithms are natural. For an input-law sequence p=(pn)\mathbf p=(p_n)p=(pn​) and channel sequence W\mathbf WW, put Tn(a)=Ppn(x)Wxn(y){n−1log⁡[Wxn(y)/Wpnn(y)]>a}T_n(a)=\mathbb P_{p_n(x)W_x^n(y)}\{n^{-1}\log[W_x^n(y)/W_{p_n}^n(y)]>a\}Tn​(a)=Ppn​(x)Wxn​(y)​{n−1log[Wxn​(y)/Wpn​n​(y)]>a}. Define I‾(ϵ∣p,W)=inf⁡{a:lim inf⁡nTn(a)≤ϵ}\underline I(\epsilon\mid\mathbf p,\mathbf W)=\inf\{a:\liminf_nT_n(a)\le\epsilon\}I​(ϵ∣p,W)=inf{a:liminfn​Tn​(a)≤ϵ} and I‾(ϵ∣p,W)=inf⁡{a:lim sup⁡nTn(a)≤ϵ}\overline I(\epsilon\mid\mathbf p,\mathbf W)=\inf\{a:\limsup_nT_n(a)\le\epsilon\}I(ϵ∣p,W)=inf{a:limsupn​Tn​(a)≤ϵ}. At ϵ=1\epsilon=1ϵ=1 use the strict tail bound <1<1<1. Spectra and numerical extrema are extended-valued.

Write Ln(a)=P{n−1log⁡[Wxn(y)/Wpnn(y)]≤a}L_n(a)=\mathbb P\{n^{-1}\log[W_x^n(y)/W_{p_n}^n(y)]\le a\}Ln​(a)=P{n−1log[Wxn​(y)/Wpn​n​(y)]≤a}. For 0≤ϵ<10\le\epsilon<10≤ϵ<1,

I‾(ϵ)=sup⁡{a:lim sup⁡nLn(a)<1−ϵ},I‾(ϵ)=sup⁡{a:lim inf⁡nLn(a)<1−ϵ}.\underline I(\epsilon)=\sup\{a:\limsup_nL_n(a)<1-\epsilon\},\qquad \overline I(\epsilon)=\sup\{a:\liminf_nL_n(a)<1-\epsilon\}.I​(ϵ)=sup{a:nlimsup​Ln​(a)<1−ϵ},I(ϵ)=sup{a:nliminf​Ln​(a)<1−ϵ}.

At ϵ=1\epsilon=1ϵ=1, replace the two low-event comparisons by ≤0\le0≤0. This separate endpoint clause corrects the unqualified displayed strict comparison in the source. These identities connect upper-tail and complementary low-event descriptions with opposite limit operations.

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.7: BOTH complementary spectral expressions. At epsilon=1
use low<=0, correcting the impossible strict low<0 in the unqualified display. -/
theorem information_spectrum_complement {X Y : ℕ → Type*}
    (W : (k : ℕ) → X k → Y k → ℝ≥0∞) (hW : ∀ k, IsDiscreteStochastic (W k))
    (p : (k : ℕ) → PMF (X k)) (eps : ℝ) (heps : 0 ≤ eps) (heps1 : eps ≤ 1) :
    epsilonInformationSpectrum false W p eps = complementarySpectrum false W p eps ∧
    epsilonInformationSpectrum true W p eps = complementarySpectrum true W p eps := 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. 7, Unnumbered information-spectrum complementary-event formulas
Read-back

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

For every pair of families of types (Xk)k∈N(X_k)_{k\in\mathbb N}(Xk​)k∈N​ and (Yk)k∈N(Y_k)_{k\in\mathbb N}(Yk​)k∈N​, every family of kernels Wk:Xk×Yk→[0,∞]W_k:X_k\times Y_k\to[0,\infty]Wk​:Xk​×Yk​→[0,∞] satisfying ∑yWk(x,y)=1\sum_y W_k(x,y)=1∑y​Wk​(x,y)=1 for every k,xk,xk,x, every family of probability mass functions pkp_kpk​ on XkX_kXk​, and every real ε\varepsilonε with 0≤ε≤10\le\varepsilon\le10≤ε≤1, the following two equalities hold. Put nk=k+1n_k=k+1nk​=k+1 and qk(y)=∑xpk(x)Wk(x,y)q_k(y)=\sum_xp_k(x)W_k(x,y)qk​(y)=∑x​pk​(x)Wk​(x,y). Define ℓk(x,y)=−∞\ell_k(x,y)=-\inftyℓk​(x,y)=−∞ if Wk(x,y)=0W_k(x,y)=0Wk​(x,y)=0, define it to be +∞+\infty+∞ if Wk(x,y)>0W_k(x,y)>0Wk​(x,y)>0 and qk(y)=0q_k(y)=0qk​(y)=0, and otherwise define it to be log⁡(Wk(x,y)/qk(y))\log(W_k(x,y)/q_k(y))log(Wk​(x,y)/qk​(y)). Thus the zero-numerator case takes precedence when both arguments vanish. Let

Tk(a)=∑x,y: a<ℓk(x,y)/nkpk(x)Wk(x,y),Lk(a)=∑x,y: ℓk(x,y)/nk≤apk(x)Wk(x,y).T_k(a)=\sum_{x,y:\ a<\ell_k(x,y)/n_k}p_k(x)W_k(x,y), \qquad L_k(a)=\sum_{x,y:\ \ell_k(x,y)/n_k\le a}p_k(x)W_k(x,y).Tk​(a)=x,y: a<ℓk​(x,y)/nk​∑​pk​(x)Wk​(x,y),Lk​(a)=x,y: ℓk​(x,y)/nk​≤a∑​pk​(x)Wk​(x,y).

These sums are regarded as real numbers; they are finite probability masses. All limits below are as k→∞k\to\inftyk→∞, and all infima and suprema are taken in the extended real line over real thresholds aaa. The asserted equalities are

inf⁡{a∈R:{lim inf⁡kTk(a)<1,ε=1,lim inf⁡kTk(a)≤ε,ε≠1}=sup⁡{a∈R:{lim sup⁡kLk(a)≤0,ε=1,lim sup⁡kLk(a)<1−ε,ε≠1},\inf\left\{a\in\mathbb R: \begin{cases} \liminf_kT_k(a)<1,&\varepsilon=1,\\ \liminf_kT_k(a)\le\varepsilon,&\varepsilon\ne1 \end{cases}\right\} = \sup\left\{a\in\mathbb R: \begin{cases} \limsup_kL_k(a)\le0,&\varepsilon=1,\\ \limsup_kL_k(a)<1-\varepsilon,&\varepsilon\ne1 \end{cases}\right\},inf{a∈R:{liminfk​Tk​(a)<1,liminfk​Tk​(a)≤ε,​ε=1,ε=1​}=sup{a∈R:{limsupk​Lk​(a)≤0,limsupk​Lk​(a)<1−ε,​ε=1,ε=1​},

and

inf⁡{a∈R:{lim sup⁡kTk(a)<1,ε=1,lim sup⁡kTk(a)≤ε,ε≠1}=sup⁡{a∈R:{lim inf⁡kLk(a)≤0,ε=1,lim inf⁡kLk(a)<1−ε,ε≠1.}.\inf\left\{a\in\mathbb R: \begin{cases} \limsup_kT_k(a)<1,&\varepsilon=1,\\ \limsup_kT_k(a)\le\varepsilon,&\varepsilon\ne1 \end{cases}\right\} = \sup\left\{a\in\mathbb R: \begin{cases} \liminf_kL_k(a)\le0,&\varepsilon=1,\\ \liminf_kL_k(a)<1-\varepsilon,&\varepsilon\ne1. \end{cases}\right\}.inf{a∈R:{limsupk​Tk​(a)<1,limsupk​Tk​(a)≤ε,​ε=1,ε=1​}=sup{a∈R:{liminfk​Lk​(a)≤0,liminfk​Lk​(a)<1−ε,​ε=1,ε=1.​}.

In particular, ε=0\varepsilon=0ε=0 is included, and ε=1\varepsilon=1ε=1 uses the displayed special branches rather than the other inequalities. An empty threshold set has infimum +∞+\infty+∞ or supremum −∞-\infty−∞, respectively. No finiteness or countability of the types is assumed; the supplied probability mass functions and stochasticity hypotheses rule out empty input or output types.

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