Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§1.2 (1.2): classical Rényi compression direct bound

Open
QAlgorithms.Papers.Independent.Intakenext100.P07.classical_compression_direct

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

prove2quantum

Let ppp be a probability law on a finite nonempty alphabet XXX. A code consists of an encoder into an alphabet of m≥1m\ge1m≥1 symbols and a decoder, and its error is the probability of recovering the wrong source symbol. Logs are binary, and H(p)H(p)H(p) is Shannon entropy. Introductory smooth max-entropy minimizes the order-1/21/21/2 Rényi entropy over normalized probability laws within variational distance ε\varepsilonε.

For finite probability source X, 0<ε<1, positive integer m, and some α∈[1/2,1), log2 m≥Hα(X)+α/(1−α)log2(1/ε) implies an (ε,m)-code. α=1/2 is included in the PDF interval.

log⁡2m≥Hα(p)+α1−αlog⁡21ε⟹∃ an (ε,m)-code.\log_2m\ge H_\alpha(p)+\frac{\alpha}{1-\alpha}\log_2\frac1\varepsilon\quad\Longrightarrow\quad\exists\text{ an }(\varepsilon,m)\text{-code}.log2​m≥Hα​(p)+1−αα​log2​ε1​⟹∃ an (ε,m)-code.

This result records the source’s operational or structural relation, with the stated endpoint and attainment clauses retained.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P07
Formal statement
noncomputable section

open Filter

open scoped BigOperators Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator Topology

namespace QAlgorithms.Papers.Independent.Intakenext100.P07

attribute [local instance] Classical.propDecidable Classical.decEq

variable {I J A B C D X Y Z : Type*}

variable [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J]

variable [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]

variable [Fintype C] [DecidableEq C] [Fintype D] [DecidableEq D]

variable [Fintype X] [DecidableEq X] [Fintype Y] [DecidableEq Y]

variable [Fintype Z] [DecidableEq Z]

/-- NODE paper:1504.00233#1.direct
§1.2 (1.2): classical Rényi compression direct bound, arXiv:1504.00233v5, PDF p.13. -/
theorem classical_compression_direct [Nonempty X] (p : X → ℝ) (hp : paperProbability p) (e : ℝ) (he : 0 < e) (he1 : e < 1)
    (m : ℕ) (hm : 0 < m) (a : ℝ) (ha : 1/2 ≤ a) (ha1 : a < 1)
    (hsize : paperClassicalRenyi p a+a/(1-a)*Real.logb 2 (1/e) ≤ Real.logb 2 m) :
    ∃ c : paperSourceCode X m, paperCodeError p c ≤ e := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P07

end
Source
Quantum Information Processing with Finite Resources -- Mathematical Foundations, arXiv:1504.00233v5, PDF p. 13, §1.2 (1.2): classical Rényi compression direct bound
Read-back

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

Let XXX be a finite nonempty type, with decidable equality, and let p:X→Rp:X\to\mathbb Rp:X→R satisfy p(x)≥0p(x)\ge0p(x)≥0 and ∑xp(x)=1\sum_xp(x)=1∑x​p(x)=1. Let 0<e<10<e<10<e<1, let mmm be a positive natural number, and let 1/2≤a<11/2\le a<11/2≤a<1. Define

Ha(p)=log⁡2 ⁣(∑xp(x)a)1−a.H_a(p)=\frac{\log_2\!\left(\sum_xp(x)^a\right)}{1-a}.Ha​(p)=1−alog2​(∑x​p(x)a)​.

If

Ha(p)+a1−alog⁡2(1/e)≤log⁡2m,H_a(p)+\frac{a}{1-a}\log_2(1/e)\le\log_2m,Ha​(p)+1−aa​log2​(1/e)≤log2​m,

then there exist functions encode:X→{0,…,m−1}\mathrm{encode}:X\to\{0,\ldots,m-1\}encode:X→{0,…,m−1} and decode:{0,…,m−1}→X\mathrm{decode}:\{0,\ldots,m-1\}\to Xdecode:{0,…,m−1}→X whose error satisfies

∑{x: decode(encode(x))≠x}p(x)≤e.\sum_{\{x:\,\mathrm{decode}(\mathrm{encode}(x))\ne x\}}p(x)\le e.{x:decode(encode(x))=x}∑​p(x)≤e.

The permitted endpoint a=1/2a=1/2a=1/2 is included.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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