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.
Method of Types and Finite Large Deviations
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Independence Borel Cantelli and Zero One Laws
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Power Series and Real-Analytic Functions
- Probability Spaces Random Variables and Expectation
- Properties of the Integral and the Working FTC
- Quantum Communication and Fingerprinting
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
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, is a bijection onto the disjoint union of the fibers and 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
Empirical types, n-types, and type classes
Definition
Let be a finite nonempty alphabet and let . A word of length is . For , define its count and empirical type by Every position contributes to exactly one count, so the coordinates of 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 -types is . Thus exactly when every is a nonnegative integer and : the converse is obtained by arranging the prescribed finite number of copies of each letter. For , its type class is The map has these type classes as its fibers.
Finite product mass on words
Definition
Let be a finite nonempty alphabet with its full power-set -algebra (equivalently, with the discrete Borel -algebra), let be a probability vector on , and let . On equip the set of all subsets with its full power-set -algebra. Assign each word the weight and for define . Write as the product mass assignment . For , the coordinate map is .
Finite relative entropy is continuous on a simplex with positive reference law
Statement
Let be finite and let be a probability vector with for every . Then is finite and continuous on the probability simplex .
Facts & Assumptions
Given: A finite alphabet , a full-support probability vector on , and the finite relative entropy convention.
Finite distributions, entropy, divergence, and stochastic matrices: , and ; if for some coordinate then .
Proof
For , put . Then , and by [F2], . Thus extends continuously to by .
Since every , the number is finite, and . Each summand is continuous in by step 1.1; the second sum is linear and has finitely many terms. Hence is finite and continuous on the whole simplex, including its boundary.
The type classes partition the word space and have polynomial count
Statement
Let be a finite nonempty alphabet with , and let . The type classes , , form a disjoint partition of , and
Facts & Assumptions
Given: The finite alphabet , the positive integer , and the definitions of empirical type and type class.
Empirical types, n-types, and type classes: , is the set of attainable empirical types, and is the set of words with empirical type .
Proof
Every has the single type from [F1], hence lies in . If , its empirical vector equals both and , so . Thus the type classes are a disjoint cover of .
Fix a listing of . A type is determined by the first counts , since the final count is . There are at most such tuples; for the tuple is empty and determines the unique type.
Every probability vector is approximated by n-types
Statement
Let be a finite nonempty alphabet of size , and let be any probability vector on . For every , there is an -type such that
Facts & Assumptions
Given: The finite alphabet , its size , a probability vector on , and .
Empirical types, n-types, and type classes: an -type is exactly a probability vector whose coordinates are integer counts divided by , with counts summing to .
Proof
Fix a listing of . Set and . Thus is an integer with . If , at least fractional parts are positive, since fewer than positive terms, each below , cannot sum to . Add to the first positive fractional-part coordinates in the fixed listing; if , add nothing. The resulting integers are nonnegative and sum to . If , then and , so this gives the unique type exactly.
Put . This is an -type by [F1]. Each coordinate changes from by less than : it is rounded down when not selected and rounded up when selected. Summing the coordinate errors gives , hence the stated weak bound. The construction also applies when some .
The finite product law has iid coordinate maps
Statement
Let be finite and nonempty, let be a probability vector on , and let . The finite mass assignment of Finite product mass on words is a probability law on , and its coordinate maps are independent random elements, each with law .
Facts & Assumptions
Given: A finite nonempty alphabet , a probability vector on , and .
Finite product mass on words: , event masses are sums of these atom weights, and on the full power-set -algebra.
Finite distributions, entropy, divergence, and stochastic matrices: a probability vector has nonnegative coordinates summing to one.
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.
A measurable function between measurable spaces: a map is measurable when the preimage of each measurable target set is measurable in the domain.
Random elements and real random variables: a random element is a measurable map from a probability space to a measurable space.
The sigma-algebra generated by a function: ; for the finite discrete alphabet, every subset is Borel.
Independent sigma-algebras and independent events: sigma-algebras are independent when their event classes are independent as classes of events.
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.
Independent random elements: random elements are independent when their generated sigma-algebras are independent.
Proof
By [F1] and finite distributivity, by [F2], and all atom weights are nonnegative. Thus [F3] makes the assignment a finite probability law with the event masses defined in [F1].
Each is measurable by [F4], because every target subset has preimage in the full power set of ; it is therefore a random element by [F5]. For arbitrary subsets , put by [F6]. The product-mass formula [F1] and finite distributivity give . By step 1.1 and [F2], each factor is after summing the other coordinates over . Every event in each has this form by [F6]; setting omitted coordinates to 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 for shows has law .
Exact probability of an empirical type class
Statement
Let be a finite alphabet, let be a probability vector on , and let . Under the product law , where and are the finite entropy and relative entropy in Finite distributions, entropy, divergence, and stochastic matrices. The expression is when has positive mass outside , using and .
Facts & Assumptions
Given: The finite alphabet , , a product law , and an attainable type .
Empirical types, n-types, and type classes: each has , and contains exactly the words with that count vector.
Finite distributions, entropy, divergence, and stochastic matrices: with , and , equal to when .
Finite product mass on words: , with event masses given by summing these atom weights.
The finite product law has iid coordinate maps: this mass assignment is a probability law on .
Proof
If for some , every word in contains copies of , 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 .
Otherwise whenever . Every has mass by [F1, F3]. Expanding the finite sums in [F2] gives , so each word has mass . Summing over the finite class proves the identity.
Polynomially sharp bounds for type-class cardinality
Statement
Let be a finite alphabet of size , let , and let . With natural logarithms,
Facts & Assumptions
Given: The finite alphabet , the positive integer , an attainable type , and the finite entropy convention.
Empirical types, n-types, and type classes: consists of attainable empirical vectors, and is the fiber of type .
The type classes partition the word space and have polynomial count: the type classes partition , and there are at most of them.
Finite distributions, entropy, divergence, and stochastic matrices: , omitting zero coordinates.
The finite product law has iid coordinate maps: for any probability vector , is a probability law whose word mass is .
Proof
Put . The class consists of the arrangements of copies of each , so it has words: there are position orders before dividing by the permutations of identical copies for each letter. Under each word has mass by [F3, F4].
For any nonnegative integer count vector summing to , its class has arrangements, obtained by permuting labeled copies and dividing by the permutations of identical letters; each word has product mass by [F4]. Thus its multinomial probability is . It is zero if where . Otherwise its ratio to the positive probability of count vector is , since the powers of cancel using . For the factor is ; for it is ; for equality it is . Hence is a mode.
Since is a probability law by [F4], by step 1.1. Rearranging gives .
The count-vector events are exactly the type classes in [F1], so they partition the sample space under the probability law from [F4]. By [F2] there are at most such vectors. Since is modal by step 1.2, its class has probability at least the average of the class probabilities, so .
Step 1.1 gives . Combining this equality with step 2.2 and rearranging proves the lower bound.
Finite probability bounds for an empirical type
Statement
Let be a finite alphabet of size , let be a probability vector on , and let . Then with when is not supported on .
Facts & Assumptions
Given: A finite alphabet , a probability vector , a positive integer , and an attainable type .
Exact probability of an empirical type class: , with value zero if .
Finite distributions, entropy, divergence, and stochastic matrices: finite relative entropy is exactly when positive mass of falls on a zero coordinate of .
Proof
If , substitute [F1] and [F2] and cancel the finite factors to obtain both inequalities. The case is included: then and all three quantities equal .
If , [F1] and [F3] give , and both stated bounds are zero by convention.
Uniform entropy approximation for type-class sizes
Statement
For a fixed finite alphabet of size , uniformly over every -type , Consequently, uniformly over as .
Facts & Assumptions
Given: A finite alphabet , , and an attainable type for each .
Polynomially sharp bounds for type-class cardinality: for every -type .
Finite distributions, entropy, divergence, and stochastic matrices: is finite and uses the natural logarithm.
Proof
Each type class is nonempty because is attainable, so . Taking natural logarithms in [F1] gives .
Divide by and subtract from to get the uniform error interval in the statement. For , [F3] and give , hence . The bound is independent of , so convergence is uniform.
Finite-alphabet Sanov bounds on the support simplex
Statement
Let be finite, let be a probability vector on , and set . Then is finite nonempty and on . For each , use the finite product law from Finite product mass on words and The finite product law has iid coordinate maps on , and let be its coordinate maps. Let be the empirical type of this coordinate word, viewed as a -valued map. Identify the support simplex with the face of whose coordinates outside vanish. Then almost surely under . For any set , let and denote its interior and closure in the relative topology induced by . With and , and For every the finite upper bound also holds. If the two infima agree, the limit exists and equals their negative common value. Equivalently, when , one may restrict the product sample space to without changing these event probabilities, since every word outside has zero product mass.
Facts & Assumptions
Given: A finite alphabet , a probability vector , its finite product laws and coordinate maps from the statement, and a set of empirical probability vectors. Write and .
Empirical types, n-types, and type classes: each word has empirical vector , and its type class is .
Finite distributions, entropy, divergence, and stochastic matrices: , with value if for some .
The type classes partition the word space and have polynomial count: the type classes partition the word space and there are at most -types on a -letter support.
Finite probability bounds for an empirical type: each -type satisfies and the corresponding lower bound is .
Every probability vector is approximated by n-types: every probability vector on the fixed finite support is within in of an attainable -type.
Finite relative entropy is continuous on a simplex with positive reference law: for a full-support reference vector on , is finite and continuous on all of , including coordinates where .
The finite product law has iid coordinate maps: on the finite alphabet , is a probability law on , and its coordinate maps are independent random elements, each with law .
Finite product mass on words: each word has mass , and event masses are sums of these atom weights.
Proof
By [F7], is a probability law on . Every word outside has a coordinate , so its product mass is zero by [F8]; hence and almost surely by [F1]. The event is the disjoint union of the type classes with , so its probability is the sum of those finitely many class probabilities.
Fix . By the definition of relative interior in the topology on induced by , some has the property that every with belongs to . By [F5], the fixed rounding rule supplies an -type with for every , so for all sufficiently large .
Every lies in , so [F2] and the upper half of [F4] give . There are at most such types by [F3]; summing the classes from step 1.1 proves the finite upper bound, including the empty-set case.
For all sufficiently large , the event contains from step 1.2, so [F4] gives probability at least . By [F6], ; taking normalized logarithms and the liminf gives at least .
If the event probability is positive, take logarithms of the finite upper bound in step 2.1 and divide by . If it is zero, its normalized logarithm is by convention. Since , both cases yield the limsup inequality.
Since step 2.2 holds for every , the liminf is at least . If , the right-hand side is , so the inequality is automatic.
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.
If , then . For , the empirical law is always under the product law [F7], both infima are , and the normalized log probability is ; for , 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.