Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§7.1 (ii), Appendix C: exponentially high typical mass

Open
QAlgorithms.Papers.Independent.Advance50.P29.typicalSequenceMass

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

prove2quantum

Let PPP be a probability distribution on a finite nonempty alphabet LLL: Pi≥0P_i\ge0Pi​≥0 and ∑iPi=1\sum_iP_i=1∑i​Pi​=1. Define H(P)=−∑iPilog⁡2PiH(P)=-\sum_iP_i\log_2P_iH(P)=−∑i​Pi​log2​Pi​, with 0log⁡20=00\log_20=00log2​0=0. For w∈Lnw\in L^nw∈Ln, set pw=∏tPwtp_w=\prod_tP_{w_t}pw​=∏t​Pwt​​ and Tε,n={w:2−n(H(P)+ε)≤pw≤2−n(H(P)−ε)}T_{\varepsilon,n}=\{w:2^{-n(H(P)+\varepsilon)}\le p_w\le2^{-n(H(P)-\varepsilon)}\}Tε,n​={w:2−n(H(P)+ε)≤pw​≤2−n(H(P)−ε)}. For each ε>0\varepsilon>0ε>0 there is a number ψ>0\psi>0ψ>0, depending on PPP and ε\varepsilonε but independent of nnn, such that every positive integer nnn satisfies

∑w∈Tε,npw>1−2e−nψ.\sum_{w\in T_{\varepsilon,n}}p_w>1-2e^{-n\psi}.w∈Tε,n​∑​pw​>1−2e−nψ.

Finite-alphabet IID sampling has exponentially high typical mass, including deterministic distributions.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P29
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P29

open QAlgorithms MeasureTheory Filter

open QAlgorithms.Papers.Independent.Information100.P22
  (densityPurification coherentInformation singleUseInformation mixed)

open QAlgorithms.Papers.Independent.Information100.P27 (shannon)

open QAlgorithms.Papers.Independent.Dependency50.P48 (wordProbability)

open QAlgorithms.Papers.Independent.Bridge50.P43 (tensorDensity)

open scoped Matrix ComplexConjugate ComplexOrder Topology

attribute [local instance] Classical.propDecidable

variable {I J E L : Type} [Fintype I] [DecidableEq I]

variable [Fintype J] [DecidableEq J] [Fintype E] [DecidableEq E]

variable [Fintype L] [DecidableEq L]

/-- PDF pp.15,21, §7.1(ii): a positive exponent chosen before every positive block length.
Deterministic distributions require no division by their zero information variance. -/
theorem typicalSequenceMass [Nonempty L] (P : L → ℝ)
    (hP : ∀ i, 0 ≤ P i) (hsum : ∑ i, P i = 1)
    (epsilon : ℝ) (he : 0 < epsilon) :
    ∃ psi : ℝ, 0 < psi ∧ ∀ n : ℕ, 0 < n →
      1 - 2 * Real.exp (-(n : ℝ) * psi) < weakTypicalMass P epsilon n := by sorry

end QAlgorithms.Papers.Independent.Advance50.P29

end
Source
A random-coding based proof for the quantum coding theorem, arXiv:0712.2558v1, PDF p. 15, §7.1 (ii), Appendix C: exponentially high typical mass
Read-back

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

Let LLL be a nonempty finite index type with decidable equality, and let P:L→RP:L\to\mathbb RP:L→R satisfy P(l)≥0P(l)\ge0P(l)≥0 for every lll and ∑lP(l)=1\sum_lP(l)=1∑l​P(l)=1. For every real ϵ>0\epsilon>0ϵ>0, there exists a real ψ>0\psi>0ψ>0 such that, for every natural number n>0n>0n>0,

1−2e−nψ<∑w∈Ln2−n(H(P)+ϵ)≤∏i=0n−1P(wi)≤2−n(H(P)−ϵ)∏i=0n−1P(wi),H(P)=−∑lP(l)log⁡2P(l).1-2e^{-n\psi} < \sum_{\substack{w\in L^n\\ 2^{-n(H(P)+\epsilon)}\le\prod_{i=0}^{n-1}P(w_i) \le2^{-n(H(P)-\epsilon)}}} \prod_{i=0}^{n-1}P(w_i), \qquad H(P)=-\sum_lP(l)\log_2P(l).1−2e−nψ<w∈Ln2−n(H(P)+ϵ)≤∏i=0n−1​P(wi​)≤2−n(H(P)−ϵ)​∑​i=0∏n−1​P(wi​),H(P)=−l∑​P(l)log2​P(l).

The same ψ\psiψ works for all positive nnn, without an additional sufficiently-large-nnn condition. Both word-selection inequalities are inclusive, whereas the asserted lower bound is strict. Zero values of PPP are permitted, with 0log⁡20=00\log_2 0=00log2​0=0, and words of probability zero fail the positive lower selection bound; the lower bound 1−2e−nψ1-2e^{-n\psi}1−2e−nψ itself may be negative.

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