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.

✓ 9 results · all verified · 9 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 9 also cleared it.

Method of Types and Finite Large Deviations

1 · Prerequisites

2 · Summary

For a finite alphabet, this page defines empirical types, type classes, and the finite product mass; it proves the product law is normalized with iid coordinates, then proves exact type probabilities, polynomially sharp class bounds, and finite-alphabet Sanov bounds on the support simplex. The finite-entropy and measure-theoretic information prerequisite pages are available as in-run drafts. Local entropy and divergence formulas use the published finite definition and its nats and zero-mass conventions; the arguments use finite product laws and make no general conditional-information claim. The B page compares a worked Bernoulli tail with the published Hoeffding bound.

The map from words to their empirical types has the type classes as its fibers. In the diagram, Φ(xn)=(P^xn,xn) is a bijection onto the disjoint union of the fibers and π(q,xn)=q is the projection. The diagram records the partition; the proofs on this page establish it directly.

\mathcal A^n \arrow[r, "\widehat P"] \arrow[d, "\Phi"'] &
\mathcal P_n(\mathcal A) \arrow[d, equal] \\
\coprod_{q\in\mathcal P_n(\mathcal A)}T_q \arrow[r, "\pi"'] &
\mathcal P_n(\mathcal A)

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Empirical types, n-types, and type classes

Definition

Let A be a finite nonempty alphabet and let n≥1. A word of length n is xn=(x1,…,xn)∈An. For a∈A, define its count and empirical type by N(a∣xn):=#{i∈{1,…,n}:xi=a},P^xn(a):=N(a∣xn)n. Every position contributes to exactly one count, so the coordinates of P^xn are nonnegative and sum to one; it is a probability vector in the sense of Finite distributions, entropy, divergence, and stochastic matrices. The set of n-types is Pn(A):={P^xn:xn∈An}. Thus q∈Pn(A) exactly when every nq(a) is a nonnegative integer and ∑anq(a)=n: the converse is obtained by arranging the prescribed finite number of copies of each letter. For q∈Pn(A), its type class is Tq:={xn∈An:P^xn=q}. The map xn↦P^xn has these type classes as its fibers.

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

Finite product mass on words

Definition

Let A be a finite nonempty alphabet with its full power-set σ-algebra (equivalently, with the discrete Borel σ-algebra), let p be a probability vector on A, and let n≥1. On Ωn:=An equip the set of all subsets with its full power-set σ-algebra. Assign each word xn=(x1,…,xn) the weight wp,n(xn):=∏i=1np(xi), and for E⊆Ωn define μp,n(E):=∑xn∈Ewp,n(xn). Write μp,n as the product mass assignment p⊗n. For 1≤i≤n, the coordinate map is Xi(xn):=xi.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Finite relative entropy is continuous on a simplex with positive reference law

Statement

Let A be finite and let p be a probability vector with p(a)>0 for every a∈A. Then q↦D(q∥p) is finite and continuous on the probability simplex Δ(A).

Facts & Assumptions

Given: A finite alphabet A, a full-support probability vector p on A, and the finite relative entropy convention.

[F1]

Finite distributions, entropy, divergence, and stochastic matrices: D(q∥p)=∑a:q(a)>0q(a)ln⁡(q(a)/p(a)), and 0ln⁡0=0; if q(a)>0=p(a) for some coordinate then D(q∥p)=+∞.

Proof

1.1F1F2algebra

For 0<t≤1, put u=1/t≥1. Then ∣tln⁡t∣=(ln⁡u)/u, and by [F2], 0≤(ln⁡u)/u=(1/u)∫1uds/s≤(1/u)∫1uds/s≤2/u→0. Thus g(t)=tln⁡t extends continuously to t=0 by g(0)=0.

2.1F1F2step 1.1algebra∎

Since every p(a)>0, the number ln⁡p(a) is finite, and D(q∥p)=∑a∈Ag(q(a))−∑a∈Aq(a)ln⁡p(a). Each summand is continuous in q(a) by step 1.1; the second sum is linear and has finitely many terms. Hence D(q∥p) is finite and continuous on the whole simplex, including its boundary.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

The type classes partition the word space and have polynomial count

Statement

Let A be a finite nonempty alphabet with k=∣A∣≥1, and let n≥1. The type classes Tq, q∈Pn(A), form a disjoint partition of An, and ∣Pn(A)∣≤(n+1)k−1.

Facts & Assumptions

Given: The finite alphabet A, the positive integer n, and the definitions of empirical type and type class.

[F1]

Empirical types, n-types, and type classes: P^xn(a)=N(a∣xn)/n, Pn(A) is the set of attainable empirical types, and Tq is the set of words with empirical type q.

Proof

1.1givenF1algebra

Every xn∈An has the single type P^xn from [F1], hence lies in TP^xn. If xn∈Tq∩Tr, its empirical vector equals both q and r, so q=r. Thus the type classes are a disjoint cover of An.

2.1F1givenalgebra∎

Fix a listing a1,…,ak of A. A type is determined by the first k−1 counts N(ai∣xn)∈{0,…,n}, since the final count is n−∑i<kN(ai∣xn). There are at most (n+1)k−1 such tuples; for k=1 the tuple is empty and determines the unique type.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Every probability vector is approximated by n-types

Statement

Let A be a finite nonempty alphabet of size k, and let q be any probability vector on A. For every n≥1, there is an n-type qn∈Pn(A) such that ∥qn−q∥1:=∑a∈A∣qn(a)−q(a)∣≤kn.

Facts & Assumptions

Given: The finite alphabet A, its size k, a probability vector q on A, and n≥1.

[F1]

Empirical types, n-types, and type classes: an n-type is exactly a probability vector whose coordinates are integer counts divided by n, with counts summing to n.

Proof

1.1givenF1construct

Fix a listing a1,…,ak of A. Set mi=⌊nq(ai)⌋ and r=n−∑imi=∑i(nq(ai)−mi). Thus r is an integer with 0≤r<k. If r>0, at least r fractional parts are positive, since fewer than r positive terms, each below 1, cannot sum to r. Add 1 to the first r positive fractional-part coordinates in the fixed listing; if r=0, add nothing. The resulting integers mi′ are nonnegative and sum to n. If k=1, then q(a1)=1 and r=0, so this gives the unique type exactly.

2.1F1step 1.1algebra∎

Put qn(ai)=mi′/n. This is an n-type by [F1]. Each coordinate changes from q(ai) by less than 1/n: it is rounded down when not selected and rounded up when selected. Summing the k coordinate errors gives ∥qn−q∥1<k/n, hence the stated weak bound. The construction also applies when some q(ai)=0.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

The finite product law has iid coordinate maps

Statement

Let A be finite and nonempty, let p be a probability vector on A, and let n≥1. The finite mass assignment p⊗n of Finite product mass on words is a probability law on An, and its coordinate maps Xi(xn)=xi are independent random elements, each with law p.

Facts & Assumptions

Given: A finite nonempty alphabet A, a probability vector p on A, and n≥1.

[F1]

Finite product mass on words: p⊗n({xn})=∏i=1np(xi), event masses are sums of these atom weights, and Xi(xn)=xi on the full power-set σ-algebra.

[F2]

Finite distributions, entropy, divergence, and stochastic matrices: a probability vector has nonnegative coordinates summing to one.

[F3]

Finite probability spaces, outcome weights, events, and event probabilities: a finite probability space is a finite outcome set with nonnegative weights summing to one, and event probabilities are the corresponding finite sums.

[F4]

A measurable function between measurable spaces: a map is measurable when the preimage of each measurable target set is measurable in the domain.

[F5]

Random elements and real random variables: a random element is a measurable map from a probability space to a measurable space.

[F6]

The sigma-algebra generated by a function: σ(Xi)={Xi−1(B):B∈B(A)}; for the finite discrete alphabet, every subset is Borel.

[F7]

Independent sigma-algebras and independent events: sigma-algebras are independent when their event classes are independent as classes of events.

[F8]

Independent families of event classes: independence of event classes means the probability of every finite intersection, choosing one event from each selected class, equals the product of those probabilities.

[F9]

Independent random elements: random elements are independent when their generated sigma-algebras are independent.

Proof

1.1F1F2F3algebra

By [F1] and finite distributivity, ∑xn∈Anp⊗n({xn})=∏i=1n∑a∈Ap(a)=1 by [F2], and all atom weights are nonnegative. Thus [F3] makes the assignment p⊗n a finite probability law with the event masses defined in [F1].

2.1F1F2F4F5F6F7F8F9step 1.1algebra∎

Each Xi is measurable by [F4], because every target subset has preimage in the full power set of Ωn; it is therefore a random element by [F5]. For arbitrary subsets Bi⊆A, put Ei=Xi−1(Bi)∈σ(Xi) by [F6]. The product-mass formula [F1] and finite distributivity give p⊗n(⋂i=1nEi)=∑xn∈B1×⋯×Bn∏i=1np(xi)=∏i=1n∑a∈Bip(a). By step 1.1 and [F2], each factor is p⊗n(Ei) after summing the other coordinates over A. Every event in each σ(Xi) has this form by [F6]; setting omitted coordinates to A gives the same factorization for every finite subfamily. Thus [F7] and [F8] make the coordinate sigma-algebras independent, and [F9] makes the coordinate random elements independent. Taking Bj=A for j≠i shows Xi has law p.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Exact probability of an empirical type class

Statement

Let A be a finite alphabet, let p be a probability vector on A, and let q∈Pn(A). Under the product law p⊗n, p⊗n(Tq)=∣Tq∣exp⁡ ⁣(−n[H(q)+D(q∥p)]), where H and D are the finite entropy and relative entropy in Finite distributions, entropy, divergence, and stochastic matrices. The expression is 0 when q has positive mass outside supp⁡(p), using D(q∥p)=+∞ and e−∞=0.

Facts & Assumptions

Given: The finite alphabet A, n≥1, a product law p⊗n, and an attainable type q.

[F1]

Empirical types, n-types, and type classes: each xn∈Tq has N(a∣xn)=nq(a), and Tq contains exactly the words with that count vector.

[F2]

Finite distributions, entropy, divergence, and stochastic matrices: H(q)=−∑aq(a)ln⁡q(a) with 0ln⁡0=0, and D(q∥p)=∑a:q(a)>0q(a)ln⁡(q(a)/p(a)), equal to +∞ when q(a)>0=p(a).

[F3]

Finite product mass on words: p⊗n({xn})=∏i=1np(xi), with event masses given by summing these atom weights.

[F4]

The finite product law has iid coordinate maps: this mass assignment is a probability law on An.

Proof

1.1givenF1F2F3F4

If q(a)>0=p(a) for some a, every word in Tq contains nq(a)>0 copies of a, so each word has product mass zero by [F3] and the event mass is zero by [F4]. The right-hand side is also zero because D(q∥p)=+∞.

2.1F1F2F3F4algebra∎

Otherwise p(a)>0 whenever q(a)>0. Every xn∈Tq has mass ∏a:q(a)>0p(a)nq(a)=exp⁡(n∑a:q(a)>0q(a)ln⁡p(a)) by [F1, F3]. Expanding the finite sums in [F2] gives H(q)+D(q∥p)=∑a:q(a)>0q(a)ln⁡(1/p(a)), so each word has mass exp⁡(−n[H(q)+D(q∥p)]). Summing over the finite class proves the identity.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Polynomially sharp bounds for type-class cardinality

Statement

Let A be a finite alphabet of size k≥1, let n≥1, and let q∈Pn(A). With natural logarithms, (n+1)−(k−1)enH(q)≤∣Tq∣≤enH(q).

Facts & Assumptions

Given: The finite alphabet A, the positive integer n, an attainable type q, and the finite entropy convention.

[F1]

Empirical types, n-types, and type classes: Pn(A) consists of attainable empirical vectors, and Tq is the fiber of type q.

[F2]

The type classes partition the word space and have polynomial count: the type classes partition An, and there are at most (n+1)k−1 of them.

[F3]

Finite distributions, entropy, divergence, and stochastic matrices: H(q)=−∑a:q(a)>0q(a)ln⁡q(a), omitting zero coordinates.

[F4]

The finite product law has iid coordinate maps: for any probability vector q, q⊗n is a probability law whose word mass is ∏iq(xi).

Proof

1.1F1F3F4algebra

Put ma=nq(a). The class Tq consists of the arrangements of ma copies of each a, so it has n!/∏ama! words: there are n! position orders before dividing by the ma! permutations of identical copies for each letter. Under q⊗n each word has mass ∏a:ma>0q(a)ma=e−nH(q) by [F3, F4].

1.2F1F3F4algebra

For any nonnegative integer count vector r=(ra) summing to n, its class has n!/∏ara! arrangements, obtained by permuting n labeled copies and dividing by the ra! permutations of identical letters; each word has product mass ∏a:ra>0q(a)ra by [F4]. Thus its multinomial probability is n!∏ara!∏a:ra>0q(a)ra. It is zero if ra>0 where ma=0. Otherwise its ratio to the positive probability of count vector m is ∏a:ma>0ma!ra!mara−ma, since the powers of n cancel using ∑a(ra−ma)=0. For ra>ma the factor is ∏j=ma+1rama/j≤1; for 0≤ra<ma it is ∏j=ra+1maj/ma≤1; for equality it is 1. Hence m is a mode.

2.1F1F3F4step 1.1algebra

Since q⊗n is a probability law by [F4], q⊗n(Tq)=∣Tq∣e−nH(q)≤1 by step 1.1. Rearranging gives ∣Tq∣≤enH(q).

2.2F1F2F4step 1.2algebra

The count-vector events are exactly the type classes in [F1], so they partition the sample space under the probability law q⊗n from [F4]. By [F2] there are at most (n+1)k−1 such vectors. Since m is modal by step 1.2, its class has probability at least the average of the class probabilities, so q⊗n(Tq)≥(n+1)−(k−1).

3.1step 1.1step 2.2algebra∎

Step 1.1 gives q⊗n(Tq)=∣Tq∣e−nH(q). Combining this equality with step 2.2 and rearranging proves the lower bound.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Finite probability bounds for an empirical type

Statement

Let A be a finite alphabet of size k≥1, let p be a probability vector on A, and let q∈Pn(A). Then (n+1)−(k−1)e−nD(q∥p)≤p⊗n(Tq)≤e−nD(q∥p), with e−n⋅∞:=0 when q is not supported on p.

Facts & Assumptions

Given: A finite alphabet A, a probability vector p, a positive integer n, and an attainable type q.

[F1]

Exact probability of an empirical type class: p⊗n(Tq)=∣Tq∣e−n[H(q)+D(q∥p)], with value zero if D(q∥p)=+∞.

[F2]

Polynomially sharp bounds for type-class cardinality: (n+1)−(k−1)enH(q)≤∣Tq∣≤enH(q).

[F3]

Finite distributions, entropy, divergence, and stochastic matrices: finite relative entropy is +∞ exactly when positive mass of q falls on a zero coordinate of p.

Proof

1.1F1F2algebra

If D(q∥p)<∞, substitute [F1] and [F2] and cancel the finite factors enH(q)e−nH(q) to obtain both inequalities. The case k=1 is included: then q=p=(1) and all three quantities equal 1.

2.1F1F3step 1.1algebra∎

If D(q∥p)=+∞, [F1] and [F3] give p⊗n(Tq)=0, and both stated bounds are zero by convention.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Uniform entropy approximation for type-class sizes

Statement

For a fixed finite alphabet A of size k≥1, uniformly over every n-type q∈Pn(A), nH(q)−(k−1)ln⁡(n+1)≤ln⁡∣Tq∣≤nH(q). Consequently, 0≤H(q)−1nln⁡∣Tq∣≤(k−1)ln⁡(n+1)n⟶0 uniformly over q∈Pn(A) as n→∞.

Facts & Assumptions

Given: A finite alphabet A, k=∣A∣≥1, and an attainable type q for each n≥1.

[F1]

Polynomially sharp bounds for type-class cardinality: (n+1)−(k−1)enH(q)≤∣Tq∣≤enH(q) for every n-type q.

[F2]

Finite distributions, entropy, divergence, and stochastic matrices: H(q) is finite and uses the natural logarithm.

Proof

1.1F1F2algebra

Each type class is nonempty because q is attainable, so ∣Tq∣>0. Taking natural logarithms in [F1] gives nH(q)−(k−1)ln⁡(n+1)≤ln⁡∣Tq∣≤nH(q).

2.1F3step 1.1algebra∎

Divide by n and subtract from H(q) to get the uniform error interval in the statement. For x≥1, [F3] and 1/s≤1/s give ln⁡x≤∫1xds/s=2(x−1), hence ln⁡(n+1)/n→0. The bound is independent of q, so convergence is uniform.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Finite-alphabet Sanov bounds on the support simplex

Statement

Let A be finite, let p be a probability vector on A, and set S:=supp⁡(p)={a∈A:p(a)>0}. Then S is finite nonempty and p(a)>0 on S. For each n≥1, use the finite product law p⊗n from Finite product mass on words and The finite product law has iid coordinate maps on An, and let X1(n),…,Xn(n) be its coordinate maps. Let P^n be the empirical type of this coordinate word, viewed as a Δ(A)-valued map. Identify the support simplex Δ(S):={q∈[0,1]S:∑a∈Sq(a)=1} with the face of Δ(A) whose coordinates outside S vanish. Then P^n∈Δ(S) almost surely under p⊗n. For any set Γ⊆Δ(S), let Γ∘ and Γ‾ denote its interior and closure in the relative topology induced by ∥⋅∥1. With inf⁡∅=+∞ and ln⁡0=−∞, lim inf⁡n→∞1nln⁡p⊗n(P^n∈Γ)≥−inf⁡q∈Γ∘D(q∥p), and lim sup⁡n→∞1nln⁡p⊗n(P^n∈Γ)≤−inf⁡q∈Γ‾D(q∥p). For every n≥1 the finite upper bound p⊗n(P^n∈Γ)≤(n+1)∣S∣−1exp⁡ ⁣(−ninf⁡q∈Γ‾D(q∥p)) also holds. If the two infima agree, the limit exists and equals their negative common value. Equivalently, when S≠A, one may restrict the product sample space to Sn without changing these event probabilities, since every word outside Sn has zero product mass.

Facts & Assumptions

Given: A finite alphabet A, a probability vector p, its finite product laws and coordinate maps from the statement, and a set Γ of empirical probability vectors. Write S=supp⁡(p) and k=∣S∣.

[F1]

Empirical types, n-types, and type classes: each word xn has empirical vector P^xn, and its type class is Tq={xn:P^xn=q}.

[F2]

Finite distributions, entropy, divergence, and stochastic matrices: D(q∥p)=∑a:q(a)>0q(a)ln⁡(q(a)/p(a)), with value +∞ if q(a)>0=p(a) for some a.

[F3]

The type classes partition the word space and have polynomial count: the type classes partition the word space and there are at most (n+1)k−1 n-types on a k-letter support.

[F4]

Finite probability bounds for an empirical type: each n-type q satisfies p⊗n(Tq)≤e−nD(q∥p) and the corresponding lower bound is (n+1)−(k−1)e−nD(q∥p).

[F5]

Every probability vector is approximated by n-types: every probability vector on the fixed finite support is within k/n in ℓ1 of an attainable n-type.

[F6]

Finite relative entropy is continuous on a simplex with positive reference law: for a full-support reference vector p on S, q↦D(q∥p) is finite and continuous on all of Δ(S), including coordinates where q(a)=0.

[F7]

The finite product law has iid coordinate maps: on the finite alphabet A, p⊗n is a probability law on An, and its coordinate maps are independent random elements, each with law p.

[F8]

Finite product mass on words: each word xn has mass ∏i=1np(xi), and event masses are sums of these atom weights.

Proof

1.1F1F7F8algebra

By [F7], p⊗n is a probability law on An. Every word outside Sn has a coordinate a∉S, so its product mass is zero by [F8]; hence p⊗n(Sn)=1 and P^n∈Δ(S) almost surely by [F1]. The event {P^n∈Γ} is the disjoint union of the type classes Tq with q∈Γ∩Pn(S), so its probability is the sum of those finitely many class probabilities.

1.2F5choose

Fix q∈Γ∘. By the definition of relative interior in the topology on Δ(S) induced by ℓ1, some ε>0 has the property that every r∈Δ(S) with ∥r−q∥1<ε belongs to Γ. By [F5], the fixed rounding rule supplies an n-type qn with ∥qn−q∥1≤k/n for every n, so qn∈Γ for all sufficiently large n.

2.1F2F3F4step 1.1algebra

Every q∈Γ∩Pn(S) lies in Γ‾, so [F2] and the upper half of [F4] give p⊗n(Tq)≤e−ninf⁡r∈Γ‾D(r∥p). There are at most (n+1)k−1 such types by [F3]; summing the classes from step 1.1 proves the finite upper bound, including the empty-set case.

2.2F4F6step 1.2algebra

For all sufficiently large n, the event contains Tqn from step 1.2, so [F4] gives probability at least (n+1)−(k−1)e−nD(qn∥p). By [F6], D(qn∥p)→D(q∥p); taking normalized logarithms and the liminf gives at least −D(q∥p).

3.1givenstep 2.1algebra

If the event probability is positive, take logarithms of the finite upper bound in step 2.1 and divide by n. If it is zero, its normalized logarithm is −∞ by convention. Since (k−1)ln⁡(n+1)/n→0, both cases yield the limsup inequality.

3.2step 2.2givenalgebra

Since step 2.2 holds for every q∈Γ∘, the liminf is at least −inf⁡q∈Γ∘D(q∥p). If Γ∘=∅, the right-hand side is −∞, so the inequality is automatic.

4.1step 1.2step 3.1step 3.2givenalgebra

When the interior and closure infima agree, steps 3.1 and 3.2 bound the limsup above and the liminf below by the same value. Since every liminf is at most the corresponding limsup, the limit exists and equals that common value. The proof covers the empty event by the stated extended-real conventions and uses the explicit rounding construction from step 1.2.

5.1givenF2F7step 4.1algebra∎

If k=1, then Δ(S)={p}. For p∈Γ, the empirical law is always p under the product law [F7], both infima are D(p∥p)=0, and the normalized log probability is 0; for p∉Γ, both infima are +∞ and the probability is zero. Thus the one-letter support boundary also satisfies the statement.

5 · Examples, counterexamples and false statements

None yet.

Sources