Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 3 results · all verified · 3 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs; all 3 also cleared it.

IID Lossless Source Coding and the AEP

1 · Prerequisites

2 · Summary

For a finite alphabet and an IID law, bounded surprisal turns the finite-variance weak law into a quantitative information AEP. The resulting typical-set probability and cardinality bounds give deterministic fixed-length binary codes with vanishing block error at entropy rate. The converse proves both the minimum rate for vanishing error and error tending to one below entropy. Rates and entropy use the natural-log/nats convention of Information units and logarithm-base convention and Finite distributions, entropy, divergence, and stochastic matrices per source symbol; binary blocklengths are integer numbers of bits.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Self-information and surprisal variance for a finite law

Definition

Let A be a nonempty finite alphabet identified with [m], and let p be a probability vector as in Finite distributions, entropy, divergence, and stochastic matrices. Its support is A+:={a∈A:p(a)>0}. On A+ define self-information ıp(a):=−ln⁡p(a); set ıp(a)=0 when p(a)=0 only to make a finite-valued function on all of A. Using the finite entropy H(p) from Finite distributions, entropy, divergence, and stochastic matrices and the natural-logarithm/nats convention from Information units and logarithm-base convention, define the surprisal variance V(p):=∑a∈A+p(a)(ıp(a)−H(p))2. For n≥1 and xn=(x1,…,xn)∈An, define the product law pn(xn):=∏i=1np(xi). On its support A+n, define block self-information ıpn(xn):=−ln⁡pn(xn). Logarithms use the natural base, matching the entropy convention in Finite distributions, entropy, divergence, and stochastic matrices.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Finite-alphabet IID source

Definition

Let A be a nonempty finite alphabet identified with [m], and let p be a probability vector in the sense of Finite distributions, entropy, divergence, and stochastic matrices. A finite-alphabet IID source consists of random elements Xi:(Ω,F,P)→A, i≥1, on one probability space, which are independent and identically distributed in the sense of Identical distribution and IID families and have common law p. For every n≥1, the finite vector Xn=(X1,…,Xn) then has probability P(Xn=xn)=pn(xn) for each xn∈An, with pn as in Self-information and surprisal variance for a finite law.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Information density and typical sets for a finite source

Definition

For the finite-alphabet IID source in Finite-alphabet IID source, with one-letter law p and block law pn from Self-information and surprisal variance for a finite law, let Xn have that law. Write H(p) for the finite entropy in Finite distributions, entropy, divergence, and stochastic matrices. On the positive-probability support A+n, define normalized block information density using the natural-log/nats convention from Information units and logarithm-base convention In(xn):=−1nln⁡pn(xn). For ε>0, its epsilon-typical set is Tn(ε):={xn∈A+n:∣In(xn)−H(p)∣≤ε}. Sequences of zero probability are excluded, so the definition never takes a logarithm of zero.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Deterministic fixed-length binary block code and block error

Definition

Fix the finite-alphabet IID source in Finite-alphabet IID source with alphabet A and one-letter probability vector p from Finite distributions, entropy, divergence, and stochastic matrices; its finite block law is pn in Self-information and surprisal variance for a finite law. For n≥1 and an integer kn≥0, a deterministic fixed-length binary block code is a pair of maps fn:An→{0,1}kn,gn:{0,1}kn→An. Every transmitted binary string has exactly kn bits. Its block error probability and rate in nats per source symbol are defined using Information units and logarithm-base convention: en:=P(gn(fn(Xn))≠Xn),Rn:=knln⁡2n. A sequence of such codes achieves rate R if en→0 and lim sup⁡n→∞Rn≤R.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Finite-alphabet IID information AEP with a variance bound

Statement

Let (Xi)i≥1 be a finite-alphabet IID source with one-letter law p, entropy H(p), and surprisal variance V(p) as defined above. For In(Xn)=−n−1ln⁡pn(Xn), defined almost surely on A+n, every n≥1 and ε>0 satisfy P(∣In(Xn)−H(p)∣≥ε)≤V(p)nε2. Consequently In(Xn)→H(p) in probability.

Facts & Assumptions

Given: A finite nonempty alphabet A, a probability law p on A, and an IID sequence with that law.

[F1]

Finite-alphabet IID source: The finite vectors Xn have law pn(xn)=∏i=1np(xi).

[F2]

Self-information and surprisal variance for a finite law: On A+, ıp(a)=−ln⁡p(a) and V(p)=∑a∈A+p(a)(ıp(a)−H(p))2.

[F3]

Information units and logarithm-base convention: An unmarked logarithm is ln⁡, the natural logarithm, and information is measured in nats.

[F4]

Finite distributions, entropy, divergence, and stochastic matrices: H(p)=−∑a:p(a)>0p(a)ln⁡p(a) with zero terms set to zero, in natural units.

[F5]

Information density and typical sets for a finite source: In(xn)=−n−1ln⁡pn(xn) on A+n.

[F6]

Identical distribution and IID families: IID means that the whole family is independent and identically distributed; independence is mutual independence.

[F7]

IID finite-variance weak law: For IID square-integrable real variables with mean μ and variance σ2, the sample mean converges in probability to μ and P(∣Sn/n−μ∣≥ε)≤σ2/(nε2).

[F8]

Convergence in probability: Yn→Y in probability when P(∣Yn−Y∣>ε)→0 for every ε>0.

Proof

Given: The alphabet, law, and IID source in the Statement.

1.1givenF1F2F6construct

Define Yi=ıp(Xi) when Xi∈A+ and Yi=0 otherwise. This is the same finite-valued measurable function of every Xi, so its range is finite. Take arbitrary distinct indices i1,…,im and Borel sets B1,…,Bm. Then ⋂j=1m{Yij∈Bj}=⋂j=1m{Xij∈ıp−1(Bj)}; mutual independence in [F6] gives probability ∏j=1mP(Xij∈ıp−1(Bj)), and the common law p makes every Yi have the same law. Thus the Yi are IID.

2.1F2F3F4step 1.1algebra

Since P(Xi=a)=p(a), zero-mass symbols contribute nothing, and finite summation using [F4] gives E[Yi]=H(p); the definition of V(p) in [F2] gives Var⁡(Yi)=V(p). Finite range gives square integrability.

3.1F1F5F7F8step 1.1step 2.1algebra∎

For each fixed n, each event {Xi∉A+} has probability zero because its probability is ∑a∉A+p(a)=0; the finite union also has probability zero. On its complement, [F1] and [F5] give In(Xn)=n−1∑i=1nYi. Applying [F7] with mean H(p) and variance V(p) proves the displayed tail bound. Its strict-tail version and [F8] give convergence in probability.

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Typical-set probability and cardinality bounds

Statement

For a finite-alphabet IID source and ε>0, let Tn(ε) be its typical set and δn:=P(Xn∉Tn(ε)). Then 0≤δn≤V(p)nε2,∣Tn(ε)∣≤en(H(p)+ε),∣Tn(ε)∣≥(1−δn)en(H(p)−ε). In particular δn→0.

Facts & Assumptions

Given: A finite-alphabet IID source, its entropy H(p) and surprisal variance V(p), and ε>0.

[F1]

Information density and typical sets for a finite source: Tn(ε) consists of positive-probability sequences satisfying ∣In(xn)−H(p)∣≤ε.

[F2]

Finite-alphabet IID information AEP with a variance bound: P(∣In(Xn)−H(p)∣≥ε)≤V(p)/(nε2).

Proof

Given: The source and ε in the Statement.

1.1givenF1algebra

If xn∈Tn(ε), [F1] gives pn(xn)=e−nIn(xn)≥e−n(H(p)+ε). Summing these probabilities over Tn(ε) and using total mass one yields ∣Tn(ε)∣e−n(H(p)+ε)≤1, proving the upper bound.

1.2givenF1algebra

The other side of [F1] gives pn(xn)≤e−n(H(p)−ε) for each typical sequence. Hence P(Xn∈Tn(ε))≤∣Tn(ε)∣e−n(H(p)−ε); rearranging and using P(Xn∈Tn(ε))=1−δn proves the lower bound.

2.1F2algebra∎

The complement of the typical set is contained in {∣In(Xn)−H(p)∣≥ε}, so [F2] bounds δn by V(p)/(nε2). This tends to zero, including when V(p)=0.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Fixed-length lossless source coding at the entropy rate

Statement

Let p be a probability law on a finite nonempty alphabet A, with entropy H(p) and surprisal variance V(p) in nats. There is a sequence of deterministic fixed-length binary block codes with block errors en and rates Rn as defined in Deterministic fixed-length binary block code and block error such that en≤V(p)n,Rn≤H(p)+n−1/4+2ln⁡2n. Thus en→0 and lim sup⁡Rn≤H(p). Conversely, every sequence of such codes with en→0 satisfies lim inf⁡Rn≥H(p). If lim sup⁡Rn<H(p), then en→1.

Facts & Assumptions

Given: A finite-alphabet IID source with law p and its entropy H(p) and surprisal variance V(p).

[F1]

Deterministic fixed-length binary block code and block error: A length-n binary block code has maps fn:An→{0,1}kn and gn:{0,1}kn→An, block error P(gn(fn(Xn))≠Xn), and rate Rn=knln⁡2/n.

[F2]

Finite-alphabet IID source: Each Xn has law pn.

[F3]

Self-information and surprisal variance for a finite law: On its support, pn(xn)=∏ip(xi) and −ln⁡pn(xn) is block self-information; V(p) is the finite surprisal variance.

[F4]

Information units and logarithm-base convention: The default logarithm is ln⁡, it is strictly increasing with ln⁡1=0, and information is measured in nats.

[F5]

Finite distributions, entropy, divergence, and stochastic matrices: H(p)=−∑a:p(a)>0p(a)ln⁡p(a) with zero terms set to zero, in natural units.

[F6]

Information density and typical sets for a finite source: Tn(ε)={xn∈A+n:∣In(xn)−H(p)∣≤ε}.

[F7]

Typical-set probability and cardinality bounds: With δn(ε)=P(Xn∉Tn(ε)), δn(ε)≤V(p)/(nε2) and ∣Tn(ε)∣≤en(H(p)+ε).

Proof

Given: The source and definitions in the Statement and Facts.

1.1givenF1F6constructchoose

Let εn=n−1/4 and Tn=Tn(εn). Put Mn=∣Tn∣+1 and kn=⌈log⁡2Mn⌉. Fix a0∈A, possible since A is nonempty, and assign distinct binary strings of length kn to the words in Tn plus one unused string. Encode each typical word by its assigned string and every other word by the unused string; decode assigned strings to their typical words and all other strings to a0n. This defines maps on all of An, and every typical word is decoded correctly.

1.2givenF1F2F3F4F5F6F7algebra

For any length-n code, let Cn={xn∈An:gn(fn(xn))=xn} be its correctly decoded set. Each binary message has only one decoder output, so ∣Cn∣≤2kn. For any γ>0, every xn∈Cn∩Tn(γ) has pn(xn)≤e−n(H(p)−γ). Therefore 1−en=P(Xn∈Cn)≤δn(γ)+∣Cn∣e−n(H(p)−γ)≤δn(γ)+en(Rn−H(p)+γ). Here [F1] supplies the number of messages, [F2] the source law, [F3] the product law, [F4]–[F6] the log, entropy and typical-set conventions, and [F7] the error-tail notation.

2.1F1F4F5F7step 1.1algebra

The error is at most δn(εn)≤V(p)/(nεn2)=V(p)/n by [F7]. For each a with p(a)>0, p(a)≤1, and [F4] gives ln⁡p(a)≤ln⁡1=0; hence each summand −p(a)ln⁡p(a) in [F5] is nonnegative and H(p)≥0. Thus Mn≤en(H(p)+εn)+1≤2en(H(p)+εn). Since kn=⌈log⁡2Mn⌉, knln⁡2≤ln⁡Mn+ln⁡2, so Rn≤H(p)+n−1/4+2ln⁡2/n. These bounds prove the achievability claims.

2.2F1F4F5F7step 1.2algebra

Suppose ρ:=lim sup⁡Rn<H(p). Since ln⁡2>ln⁡1=0 by [F4] and kn≥0 by [F1], all rates are nonnegative. The finite sum in [F5] has finitely many finite terms, so H(p) and then ρ are finite reals. Choose γ=(H(p)−ρ)/4>0. Eventually Rn≤ρ+γ=H(p)−3γ. Then step 1.2 gives 1−en≤δn(γ)+e−2nγ→0 by [F7], so en→1.

3.1F1F4F5F7step 1.2algebra∎

Suppose instead that en→0 but L:=lim inf⁡Rn<H(p). Since ln⁡2>ln⁡1=0 by [F4] and kn≥0 by [F1], all rates are nonnegative. The finite sum in [F5] has finitely many finite terms, so H(p) and L are finite reals. Take γ=(H(p)−L)/4>0. Infinitely many n satisfy Rn≤L+γ=H(p)−3γ. Along those indices, step 1.2 and [F7] give 1−en≤δn(γ)+e−2nγ→0, contradicting en→0. Hence lim inf⁡Rn≥H(p).

5 · Examples, counterexamples and false statements

None yet.

Sources