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.
Finite-Alphabet Entropy and Divergence
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
- Convexity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Domination and Likelihood Ratios
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Minimax Lower Bounds
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- 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
- Rings, Subrings, Integral Domains and Fields
- 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
- Signed and Complex Measures Hahn and Jordan
- Simple Field Extensions and the Construction of the Complex Numbers
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Integral Logarithm and the Equivalence of Its Characterisations
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Radon Nikodym Theorem and Lebesgue Decomposition
- 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
This page fixes the finite-alphabet conventions for natural-log nats and bits, conditional entropy, mutual information, and conditional mutual information. It proves the support-aware log-sum and finite KL equality results, identifies the finite sum with the library's measurable KL under its stated AC interface, and derives the entropy and information chain rules, finite Fano bounds, and Markov data processing. Every sum is finite, zero-support cases are explicit, and no proof subtracts two infinite values.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Information units and logarithm-base convention
Definition
Write for the natural logarithm of The natural logarithm as the inverse of the exponential function. Unless a base is displayed, every information quantity on this page uses and is measured in nats. For a base and , define The denominator is positive: , is strictly increasing, and by Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm. A base- entropy or divergence is obtained by replacing each in the finite formulas below by ; use and assign to a positive numerator over a zero denominator. The case measures bits; gives nats.
Remarks
All entropies, mutual informations, and conditional mutual informations in this finite-alphabet page are finite. A finite KL divergence can be only when the numerator law has positive mass where the reference law has zero mass. The unit-conversion theorem proves that every base- version is the natural-log value divided by ; no expression subtracts two infinite quantities.
Marginals and positive-mass conditionals of a finite joint law are probability vectors
Statement
Let be finite nonempty alphabets and let satisfy . Define and . Then both marginals are probability vectors. For each with , the conditional vector is a probability vector; likewise for conditioning on positive-mass . Consequently, if is a finite joint pmf, then for every with , and its two marginals are probability vectors.
Facts & Assumptions
Given: Finite nonempty alphabets and a joint pmf .
Finite distributions, entropy, divergence, and stochastic matrices: a finite probability vector has nonnegative coordinates whose sum is .
Finite commutative-monoid sums are invariant under bijective reindexing, split over disjoint unions, and satisfy the finite Fubini rule: for finite sets and a real array , the sum over equals either iterated sum, and finite sums are invariant under bijective reindexing.
Proof
Every marginal coordinate is nonnegative because it is a finite sum of nonnegative entries of . By [F2], , and the same calculation with the order reversed gives . Thus both marginals are probability vectors by [F1].
Fix with . Each ratio is nonnegative, and . Hence is a probability vector by [F1]. The same argument with fixed gives . If is a joint pmf and , first apply this argument to the pair of finite alphabets and ; then apply step 1.1 to the resulting conditional pmf on . This gives the last assertion.
Finite KL divergence agrees with measurable-space KL
Statement
Assume AC only for the interface to the published general definition Kullback–Leibler divergence. Let be probability vectors on a finite set , and let , on . Then the measurable-space divergence equals the finite KL sum , with value exactly when some .
Facts & Assumptions
Given: AC, a finite set , and probability vectors on .
The Axiom of Choice: every family of nonempty sets has a choice function. Here AC is assumed only when invoking the current published measurable KL definition; no selection is used to construct the finite density below.
Finite distributions, entropy, divergence, and stochastic matrices: a finite KL sum uses and is if for some coordinate.
Finite probability spaces are exactly finite full-power-set probability spaces: on a finite set, nonnegative weights summing to one define a probability measure on the full power set by .
Absolute continuity of a signed or complex measure with respect to a positive measure: means every measurable -null set is -null.
The Radon-Nikodym derivative as an almost-everywhere equivalence class: for , a Radon–Nikodym derivative is a measurable function class satisfying for every measurable .
Expectation agrees with the published finite weighted sum: on a finite probability space, the expectation of a real function is the sum of its values weighted by the outcome probabilities.
Kullback–Leibler divergence: if , then .
Kullback–Leibler divergence: in the absolutely continuous case, use an RN density , set on and on .
Kullback–Leibler divergence: the measurable KL is in the absolutely continuous case.
Finite probability spaces, outcome weights, events, and event probabilities: a finite probability space has a finite outcome set with nonnegative weights summing to one, and every subset is an event.
Proof
By [F9], the finite vectors define probability spaces on , with every singleton measurable; [F2] gives their event weights. If , then , so [F3] gives . The general definition [F6] and finite convention [F1] both give .
Suppose whenever . If , the finite sum and nonnegativity force for every ; hence for those and . Thus by [F3]. Define when and when . Since every subset of is measurable, this finite function is measurable. For every , [F5] gives , so [F4] identifies as a Radon–Nikodym derivative. It is explicitly constructed; no choice is used in this step.
Under the AC interface assumption [A1], substitute the density from step 1.2 into [F8], using the logarithm convention [F7]. Applying [F5] to for and for gives ; coordinates with contribute by [F1].
Step 1.1 handles support failure, while step 2.1 proves equality with the finite sum when is supported by . These cases exhaust the finite vectors in the Statement.
Finite log-sum inequality with support and equality cases
Statement
Let be finite nonnegative real vectors, with and . Interpret as if some ; otherwise zero coordinates contribute . Interpret as if and as if . Then
When , equality holds exactly when for every . If , both sides are and no finite equality characterization is asserted.
Facts & Assumptions
Given: Finite nonnegative vectors , and , .
Information units and logarithm-base convention: logarithms are natural by default, , and a positive numerator over zero denominator contributes .
Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: is continuous and strictly increasing on and .
Sums, scalar multiples, products and quotients: , , , and when : the product rule gives wherever both factors are differentiable.
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function: products of functions continuous at a point are continuous there.
The mean value theorem, as the case of Cauchy's: for continuous on with and differentiable on there is with : if is continuous on and differentiable on , some satisfies .
Convex, strictly convex, concave, strictly concave, and midpoint-convex real functions on an interval: strict convexity means for and .
Finite Jensen inequality for a convex function and nonnegative weights summing to one: for finitely many points in an interval and nonnegative weights summing to one, a convex function at the weighted mean is at most the weighted mean of its values.
Proof
Define and for . On , [F3] and [F4] give , which is strictly increasing by [F2]; [F2] and [F5] also give continuity of on every positive compact interval. If , [F6] on and gives secant slopes and with ; strict increase makes the first slope smaller, which rearranges to the strict convexity inequality at . For an endpoint and , since by [F2]. Thus is strictly convex on .
If , nonnegativity forces all , so both sides are . If , all and at least one , so both sides are . If but some , the left side is while the right side is finite. It remains to handle with whenever .
For the remaining case set , , and for . These weights are positive and sum to one, and . By [F8] and the convexity proved in step 1.1, . Expanding turns this into the desired inequality, including coordinates with because .
If all are equal, their weighted mean is and Jensen is an equality; together with when , this is exactly for every coordinate. Conversely, suppose they are not all equal, so and for every . For each , let for and . Some has : otherwise for every , forcing each . Fix such a . Then ; strict convexity from step 1.1 gives . By [F8] on the normalized remaining weights, , making the total Jensen inequality strict.
Steps 1.2–2.2 prove the inequality in every extended-real support case and, when , prove equality exactly at proportional vectors.
Finite conditional entropy
Definition
Let be a joint probability vector on finite alphabets . It is the weight function of the canonical finite probability space from Finite probability spaces, outcome weights, events, and event probabilities; its coordinate maps are finite random elements in the sense of Random elements and real random variables. Write . For each with , set ; this is a probability vector by Marginals and positive-mass conditionals of a finite joint law are probability vectors. Define the conditional entropy in nats by
where is the finite entropy of Finite distributions, entropy, divergence, and stochastic matrices. Terms for zero-mass are omitted. The base- version replaces by .
Finite mutual information
Definition
Let be a joint probability vector on finite alphabets , with marginals and . The marginals are probability vectors by Marginals and positive-mass conditionals of a finite joint law are probability vectors. The joint vector is the outcome-weight function of the canonical finite probability space from Finite probability spaces, outcome weights, events, and event probabilities; its coordinate maps are finite random elements in the sense of Random elements and real random variables. Define mutual information in nats by
where is the finite KL convention of Finite distributions, entropy, divergence, and stochastic matrices and . Every ratio in the displayed sum is positive and finite: if , then each marginal sum is at least that positive entry. The sum is over finite support, so is finite. The base- version replaces by .
Finite conditional mutual information
Definition
Let be a joint probability vector on finite alphabets and write for its marginal. It is the law of finite coordinate random elements on the canonical finite probability space from Finite probability spaces, outcome weights, events, and event probabilities and Random elements and real random variables. For each with , the conditional law and its marginals are probability vectors by Marginals and positive-mass conditionals of a finite joint law are probability vectors. Define conditional mutual information in nats by
using the finite KL convention of Finite distributions, entropy, divergence, and stochastic matrices, where . A positive conditional joint mass forces both conditional marginals to be positive, so each displayed KL term is finite. Zero-mass conditioning values contribute no term. The base- version replaces by inside the conditional KL sums.
Finite KL divergence is nonnegative with equality exactly at equal laws
Statement
For finite probability vectors on the same alphabet, , and if and only if . If for some coordinate, then .
Facts & Assumptions
Given: Finite probability vectors on a common alphabet.
Finite distributions, entropy, divergence, and stochastic matrices: , with if for some .
Finite log-sum inequality with support and equality cases: for nonnegative vectors with positive sums , , with equality exactly when at every coordinate.
Proof
If for some , [F1] gives , so nonnegativity holds and equality to zero is impossible. Otherwise whenever ; apply [F2] to , . Both sums equal , and its left side is , so .
In the absolutely continuous case, [F2] says equality holds exactly when for every coordinate. Conversely, if , every positive-support term in [F1] is , so . Together with step 1.1 this proves the iff statement, including zero coordinates.
Finite information quantities convert by the logarithm base
Statement
For any , define each base- finite information quantity by replacing with in its defining finite formula. Then
where the second equality is in and . The same conversion holds for finite conditional entropy, mutual information, and conditional mutual information. In particular, values in bits equal nats divided by .
Facts & Assumptions
Given: A base and finite probability vectors or finite joint probability laws.
Information units and logarithm-base convention: for , , and zero-mass terms use .
Finite distributions, entropy, divergence, and stochastic matrices: finite entropy and KL use finite sums; a support failure gives KL value .
Finite conditional entropy: is a finite weighted sum of entropies of positive-mass conditional pmfs.
Finite mutual information: is a finite sum over positive joint support.
Finite conditional mutual information: is a finite weighted sum of conditional KL values over positive-mass .
Proof
By [F1], , so division by preserves order and sends to . For entropy, replacing each by factors the same positive scalar out of the finite sum; zero terms remain zero by [F1]. The identical termwise calculation applies to every finite KL sum when is supported by .
If , both base conventions set the KL value to , agreeing with the extended-real equation. Conditional entropy is a finite weighted sum of the entropy terms from step 1.1 by [F3]; mutual information is a finite KL sum by [F4]; conditional mutual information is a finite weighted sum of conditional KL sums by [F5]. Factoring from each of these finite sums proves all remaining conversions.
Finite conditional mutual information identities and equality
Statement
For finite ,
Equality holds if and only if, for every with , the conditional joint pmf factors as ; this is conditional independence given .
Facts & Assumptions
Given: A joint pmf on finite alphabets; all entropies and conditional mutual information use the nats convention.
Finite conditional entropy: , with zero-mass conditioning values omitted.
Finite KL divergence is nonnegative with equality exactly at equal laws: for finite probability vectors , , with equality exactly when .
Marginals and positive-mass conditionals of a finite joint law are probability vectors: each positive-mass conditional joint vector and its marginals are probability vectors.
Proof
Fix with . By [F5], and its marginals are pmfs. If , then both marginals are positive at . Expanding [F1] and collecting terms using [F3] gives ; zero coordinates contribute , so no logarithm of zero is taken.
Multiply the identity in step 1.1 by and sum over positive-mass . By [F1] and [F2], this gives the stated entropy identity. Each conditional KL is nonnegative by [F4], and every weight in the sum is positive. Hence the total is zero exactly when each conditional KL is zero, which by [F4] is exactly for every positive-mass .
Finite entropy and mutual-information chain rules
Statement
For finite with a joint pmf,
and
In particular, . All terms are finite.
Facts & Assumptions
Given: A joint probability vector on finite alphabets.
Finite conditional entropy: , with zero-mass conditioning values omitted.
Marginals and positive-mass conditionals of a finite joint law are probability vectors: conditional pmfs are formed by division by positive marginal mass and are probability vectors.
Proof
Fix with and write , ; for define . By [F4], these are pmfs and on positive support. On that support both factors are positive, so the product law [F6] gives . For every , . Thus the terms involving sum to , and the remaining terms are , exactly by [F5]. Weighting this equality by and summing over positive-mass using [F1] proves . Zero atoms are omitted from the displayed logarithmic sums.
Every positive joint atom has positive marginals by [F4]; applying the quotient and product laws [F6] to [F2] gives . Grouping the finite sums by , using [F4] to know the marginals, and applying [F5] yields . Also, [F1] and on positive support give . Thus , and exchanging gives the other form. All sums are finite.
Apply step 1.1 and [F3] to get . By step 1.2, and . Therefore . Every entropy is a finite sum, so no extended-real subtraction occurs.
Data processing for a finite Markov chain, with equality condition
Statement
Let have a joint pmf on finite alphabets and suppose that, for every with ,
This is the finite Markov condition . Then
with equality if and only if , equivalently and are conditionally independent given every positive-mass value of .
Facts & Assumptions
Given: A finite joint pmf satisfying the stated Markov factorization.
Finite conditional mutual information identities and equality: finite CMI is nonnegative and vanishes exactly at conditional independence on each positive-mass conditioning value.
Proof
For each with , the hypothesis makes . The corresponding conditional KL term in the definition of is therefore , so the finite weighted sum gives .
Equating the two expansions in [F1] and using step 1.1 gives . This is nonnegative by [F2], proving data processing. The difference vanishes exactly when , and [F2] identifies that equality case with conditional independence of given each positive-mass .
Finite-alphabet Fano inequality
Statement
Let take values in an alphabet of size , let be finite, and let be an estimator in the same alphabet generated from , so the joint pmf factors as . Put and define
Then
For , is constant and .
Facts & Assumptions
Given: A finite joint pmf of with and .
Finite entropy and mutual-information chain rules: and finite conditional entropy obeys the chain rule.
Finite KL divergence is nonnegative with equality exactly at equal laws: finite KL divergence is nonnegative, with equality iff its two probability vectors agree.
Proof
If , then is constant and . Hence assume . The factorization in the hypotheses is the Markov condition . By [F1], ; subtracting from the finite value and using [F2] gives .
Set . Since is determined by , [F2] gives . The law of is Bernoulli with mass at , so [F5] gives .
The finite MI identity in [F2] gives . By [F3], this MI, which is KL between the joint law and product marginals, is nonnegative. Thus .
On , , so the conditional entropy of given is zero. On and a fixed value of , at most values of remain. For any pmf on at most points, pad by zeros to a -vector and compare with the uniform vector : [F3] gives , so . Averaging these conditional entropies yields .
Combining steps 1.2, 2.1, and 2.2 gives ; step 1.1 then gives the stated sharp bound.
Since by [F3], . Also and [F4] makes , so step 3.1 implies the weaker bound. If or , zero-probability conditional branches above are omitted and by convention.
Fano bound for erasure and out-of-alphabet estimates
Statement
Let have a finite alphabet of size , let be finite, and let be any finite estimate output generated from , with an output alphabet that may contain symbols outside . Assume , and set . Use as defined in Finite-alphabet Fano inequality. Then
If is uniform on , then
Facts & Assumptions
Given: A finite joint pmf with , finite of size , and an arbitrary finite estimate alphabet.
Finite-alphabet Fano inequality: with .
Finite entropy and mutual-information chain rules: and finite conditional entropy satisfies the chain rule.
Finite KL divergence is nonnegative with equality exactly at equal laws: finite KL divergence is nonnegative.
Proof
If , then is constant, so and because ; also since for by [F7], with the zero term set to . Thus both claims hold. Assume below. From [F2] and [F3], .
Define . It is determined by , so [F3]'s entropy chain rule gives . Also by [F1] and [F6]. The finite MI identity [F3] gives , and [F4]–[F5] make this MI nonnegative, so .
On , and the conditional entropy is zero. On , for each fixed estimator output the message has at most possible values. Any pmf on at most points has : pad it by zeros to coordinates and compare with the uniform pmf ; [F4] gives by [F6]. Averaging the two branches yields .
Combining steps 1.1, 1.2, and 2.1 proves . For uniform , [F6] gives ; subtracting the conditional-entropy bound from and using [F3] gives . The formulas remain valid for or because zero-probability branches are omitted and [F1] fixes the endpoints of .
5 · Examples, counterexamples and false statements
None yet.