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 — Examples

1 · Prerequisites

2 · Summary

The Bernoulli calculation gives an exact binomial-weight formula for typical-set size, including a finite block check and the fair and degenerate endpoints. Two finite-alphabet source sequences isolate the IID hypotheses: perfect dependence keeps identical marginals but loses the marginal-entropy limit, while independent non-identical block laws can have oscillating normalized information and no constant information-rate limit.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Bernoulli information density and exact typical-set counts

Example

Let Xi be IID Bernoulli(p) on {0,1}, with natural logarithms and entropy h(p)=−pln⁡p−(1−p)ln⁡(1−p), where 0ln⁡0=0. For xn∈{0,1}n, let k(xn)=∑i=1nxi be its number of ones. If 0<p<1 and p≠1/2, put η=ε/∣ln⁡((1−p)/p)∣. Then Tn(ε)={xn:∣k(xn)/n−p∣≤η},∣Tn(ε)∣=∑k=max⁡(0,⌈n(p−η)⌉)min⁡(n,⌊n(p+η)⌋)(nk). Its probability and size also satisfy the bounds of Typical-set probability and cardinality bounds with H=h(p) and V=p(1−p)(ln⁡((1−p)/p))2 for 0<p<1, and V=0 at p=0 or p=1. At p=1/2, every binary word is typical for every ε>0 and ∣Tn∣=2n. At p=0 or p=1, the typical set is the single supported word and ∣Tn∣=1.

For example, at p=1/4, n=4, and ε=(ln⁡3)/4, we have η=1/4, so the typical words have zero, one, or two ones. Thus ∣T4∣=1+4+6=11 and P(X4∈T4)=243/256.

Facts & Assumptions

Given: The Bernoulli source and typical-set convention in the Example.

[F1]

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

[F2]

Self-information and surprisal variance for a finite law: On positive support, self-information is ıp(a)=−ln⁡p(a).

[F3]

Information density and typical sets for a finite source: Tn(ε) is the positive-probability set where ∣In−H(p)∣≤ε.

[F4]

Finite-alphabet IID source: The Bernoulli coordinates are IID with product block law pn.

[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]

Typical-set probability and cardinality bounds: The typical-set tail probability is at most V(p)/(nε2), and its cardinality is bounded above and below by the stated entropy exponents.

Verification

Given: p∈[0,1], n≥1, and ε>0.

1.1givenF2F4F5algebra

Suppose 0<p<1 and a word has k ones, with q=k/n. Its block probability is pk(1−p)n−k, so In=−qln⁡p−(1−q)ln⁡(1−p). Subtracting h(p) gives In−h(p)=(q−p)ln⁡((1−p)/p).

1.2F2F3F5algebra

If p=1/2, each supported word has probability 2−n, so In=h(p)=ln⁡2 and all 2n words are typical. If p=0 or p=1, the support consists of one symbol, its surprisal and entropy are zero, and the only supported length-n word is typical.

2.1F3step 1.1algebra

If additionally p≠1/2, the typicality condition in [F3] is exactly ∣q−p∣≤η. There are (nk) words of weight k, yielding the displayed sum with endpoints clipped to 0≤k≤n. For the stated p=1/4,n=4 check, the allowed weights are k=0,1,2, so the count is 1+4+6=11 and the probability is 81+108+54256=243256.

3.1F1F2F5F6step 1.1step 1.2algebra∎

For 0<p<1, the one-letter surprisal takes two values whose difference is ln⁡((1−p)/p). Its variance is p(1−p)(ln⁡((1−p)/p))2: writing the values as a,b, their mean is pa+(1−p)b, and the centered-square sum is p(1−p)2(a−b)2+(1−p)p2(a−b)2=p(1−p)(a−b)2. At p=0 or p=1, the surprisal is zero on its singleton support, so [F1] gives V=0. Substituting these variances and h(p) into [F6] gives the claimed quantitative probability and cardinality bounds.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

A perfectly dependent Bernoulli source has zero block information rate

Example

Fix p∈(0,1) and one Bernoulli(p) random variable Z. On its two-point probability space set Xi=Z for every i≥1. The variables have identical Bernoulli(p) marginals but are dependent. Their normalized block self-information tends to 0 on every outcome, whereas the marginal entropy H(p)=−pln⁡p−(1−p)ln⁡(1−p) is positive. Thus identical marginals alone do not imply the IID AEP conclusion.

Facts & Assumptions

Given: p∈(0,1) and Xi=Z for one Bernoulli(p) variable Z.

[F1]

Self-information and surprisal variance for a finite law: For a finite law q, self-information on its support is −ln⁡q(x).

[F2]

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.

[F3]

Finite-alphabet IID information AEP with a variance bound: For an IID finite-alphabet source, normalized block self-information converges in probability to its one-letter entropy.

Verification

Given: The example and notation above.

1.1givenF2algebra

Each Xi has law p on {0,1}, so H(p)=−pln⁡p−(1−p)ln⁡(1−p)>0. For 0<p<1, both summands are positive. Also P(X1=0,X2=0)=1−p≠(1−p)2, so the variables are not independent and hence are not IID.

2.1F1step 1.1algebra

The length-n block has only two possible values: 0n with probability 1−p and 1n with probability p. Therefore its normalized self-information is either −ln⁡(1−p)/n or −ln⁡p/n, and is bounded by max⁡{−ln⁡p,−ln⁡(1−p)}/n. This tends to zero for both outcomes.

3.1F3step 1.1step 2.1∎

The limiting value 0 differs from the positive marginal entropy in step 1.1. The IID conclusion [F3] therefore cannot be extended to all sequences with identical marginals after independence is removed.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Independent non-identical finite sources can have no information-rate limit

Example

Let N0=0 and Nk=2k2 for k≥1. For Nk−1<i≤Nk, let pi be the fair Bernoulli law when k is even, and the point mass at 0 when k is odd. For each n, let Pn(xn)=∏i=1npi(xi) be the resulting finite product law on {0,1}n, and on its support put In(xn)=−n−1ln⁡Pn(xn). These block laws are consistent under coordinate projection. The coordinates are independent within each block law, but their marginals are not identical. The normalized information densities have no limit in probability to a constant, where this means that Pn(∣In−c∣>ε)↛0 for some ε>0 and every constant c: at even block endpoints they tend to ln⁡2, and at odd endpoints they tend to 0. This example uses only finite product laws; no infinite-product extension is assumed.

Facts & Assumptions

Given: The endpoint sequence and finite product laws in the Example.

[F1]

Self-information and surprisal variance for a finite law: For a finite law q, its self-information on the support is −ln⁡q(x).

[F2]

Finite-alphabet IID information AEP with a variance bound: The AEP conclusion is for an identically distributed independent sequence.

Verification

Given: The block laws Pn in the Example.

1.1givenalgebraconstruct

Each pi is a probability law on {0,1}. The finite product Pn(xn)=∏i=1npi(xi) is nonnegative and sums to ∏i=1n∑xi∈{0,1}pi(xi)=1, so it is a well-defined finite law. Summing over the last coordinate gives Pn−1, proving consistency.

2.1F1step 1.1algebra

Let Fn be the number of fair coordinates among 1,…,n. At every positive-probability word, each fair coordinate contributes ln⁡2 to −ln⁡Pn(xn) and every point-mass coordinate contributes 0. Hence In(xn):=−n−1ln⁡Pn(xn)=Fnln⁡2/n on the entire support, so its law under Pn is a point mass at this value.

3.1step 2.1algebra

If k is even, the newest block is fair and Nk−Nk−1≤FNk≤Nk; since Nk−1/Nk=2−2k+1→0, FNk/Nk→1. If k is odd, the newest block is deterministic and 0≤FNk≤Nk−1, so FNk/Nk→0.

4.1F2step 2.1step 3.1algebra∎

By step 2.1, INk is deterministic under PNk. Step 3.1 gives subsequential limits ln⁡2 and 0. For any constant c, at least one of ∣c∣ and ∣c−ln⁡2∣ is at least ln⁡2/2; along that subsequence, for ε=ln⁡2/3, the probability of ∣INk−c∣>ε is eventually 1. Thus there is no limit in probability to a constant. The coordinate laws alternate, so the IID hypotheses of [F2] are absent.

Sources