Entropy to Submodularity
DefinitionEntropy#
If \(X\) is an \(S\)-valued random variable, the entropy \(\mathbb{H}[X]\) of \(X\) is defined
with the convention that \(0 \log \frac{1}{0} = 0\).
LemmaEntropy and relabeling#
- (i) If \(X: \Omega \to S\) and \(Y: \Omega \to T\) are random variables, and \(Y = f(X)\) for some injection \(f: S \to T\), then \(\mathbb{H}[X] = \mathbb{H}[Y]\).
- (ii) If \(X: \Omega \to S\) and \(Y: \Omega \to T\) are random variables, and \(Y = f(X)\) and \(X = g(Y)\) for some functions \(f: S \to T\), \(g: T \to S\), then \(\mathbb{H}[X] = \mathbb{H}[Y]\).
Proof
Expand out both entropies and rearrange.
Lean
Formalized as ProbabilityTheory.entropy_comp_of_injective, ProbabilityTheory.entropy_of_comp_eq_of_comp.
Sources
Uses 1 · Used by 14
LemmaJensen bound#
If \(X\) is an \(S\)-valued random variable, then \(\mathbb{H}[X] \leq \log |S|\).
Proof
This is a direct consequence of Concavity and Jensen's inequality.
Lean
Formalized as ProbabilityTheory.entropy_le_log_card, ProbabilityTheory.entropy_le_log_card_of_mem.
Sources
DefinitionUniform distribution#
If \(H\) is a subset of \(S\), an \(S\)-random variable \(X\) is said to be uniformly distributed on \(H\) if \(\mathbb{P}[X = s] = 1/|H|\) for \(s \in X\) and \(\mathbb{P}[X=s] = 0\) otherwise.
LemmaUniform distributions exist#
Given a finite non-empty subset \(H\) of a set \(S\), there exists a random variable \(X\) (on some probability space) that is uniformly distributed on \(H\).
Proof
Direct construction.
Lean
Formalized as ProbabilityTheory.exists_isUniform, ProbabilityTheory.exists_isUniform_measureSpace.
Sources
Uses 1 · Used by 3
LemmaEntropy of uniform random variable#
If \(X\) is \(S\)-valued random variable, then \(\mathbb{H}[X] = \log |S|\) if and only if \(X\) is uniformly distributed on \(S\).
Proof
Direct computation in one direction. Converse direction needs the strict Jensen inequality and Concavity.
Lean
Formalized as ProbabilityTheory.IsUniform.entropy_eq.
Sources
LemmaEntropy of uniform random variable, II#
If \(X\) is uniformly distributed on \(H\), then, then \(\mathbb{H}[X] = \log |H|\).
Proof
Direct computation.
Lean
Formalized as ProbabilityTheory.IsUniform.entropy_eq.
Sources
Uses 2 · Used by 3
LemmaBounded entropy implies concentration#
If \(X\) is an \(S\)-valued random variable, then there exists \(s \in S\) such that \(\mathbb{P}[X=s] \geq \exp(-\mathbb{H}[X])\).
Proof
We have
and the claim follows.
Lean
Formalized as ProbabilityTheory.prob_ge_exp_neg_entropy.
Sources
Uses 1 · Used by 3
We use \(X,Y\) to denote the pair \(\omega \mapsto (X(\omega),Y(\omega)\)).
LemmaCommutativity and associativity of joint entropy#
If \(X: \Omega \to S\), \(Y: \Omega \to T\), and \(Z: \Omega \to U\) are random variables, then \(\mathbb{H}[X, Y] = \mathbb{H}[Y, X]\) and \(\mathbb{H}[X, (Y,Z)] = \mathbb{H}[(X,Y), Z]\).
Proof
Set up an injection from \((X,Y)\) to \((Y,X)\) and use Entropy and relabeling for the first claim. Similarly for the second claim.
Lean
Formalized as ProbabilityTheory.entropy_comm, ProbabilityTheory.entropy_assoc.
Sources
Uses 1 · Used by 2
DefinitionConditioned event#
If \(X: \Omega \to S\) is an \(S\)-valued random variable and \(E\) is an event in \(\Omega\), then the conditioned event \((X|E)\) is defined to be the same random variable as \(X\), but now the ambient probability measure has been conditioned to \(E\).
Used by 2
Note: it may happen that \(E\) has zero measure. In which case, the ambient probability measure should be replaced with a zero measure. (In our formalization we achieve this by working with arbitrary measures, and normalizing them to be probability measures if possible, else using the zero measure. Conditioning is also formalized using existing Mathlib definitions.)
DefinitionConditional entropy#
If \(X: \Omega \to S\) and \(Y: \Omega \to T\) are random variables, the conditional entropy \(\mathbb{H}[X|Y]\) is defined as
Uses 2 · Used by 5
LemmaConditional entropy and relabeling#
If \(X: \Omega \to S\), \(Y: \Omega \to T\), and \(Z: \Omega \to U\) are random variables, and \(Y = f(X,Z)\) almost surely for some map \(f: S \times U \to T\) that is injective for each fixed \(U\), then \(\mathbb{H}[X|Z] = \mathbb{H}[Y|Z]\).
Similarly, if \(g: T \to U\) is injective, then \(\mathbb{H}[X|g(Y)] = \mathbb{H}[X|Y]\).
Proof
For the first part, use Conditional entropy and then Entropy and relabeling. The second part is a direct computation.
Lean
Formalized as ProbabilityTheory.condEntropy_comp_of_injective, ProbabilityTheory.condEntropy_of_injective'.
Sources
Uses 2 · Used by 4
LemmaChain rule#
If \(X: \Omega \to S\) and \(Y: \Omega \to T\) are random variables, then
Proof
Direct computation.
Lean
Formalized as ProbabilityTheory.chain_rule, ProbabilityTheory.chain_rule'.
Sources
Uses 1 · Used by 9
LemmaConditional chain rule#
If \(X: \Omega \to S\), \(Y: \Omega \to T\), \(Z: \Omega \to U\) are random variables, then
Proof
For each \(z \in U\), we can apply Chain rule to the random variables \((X|Z=z)\) and \((Y|Z=z)\) to obtain
Now multiply by \(\mathbb{P}[Z=z]\) and sum. Some helper lemmas may be needed to get to the form above. This sort of “average over conditioning” argument to get conditional entropy inequalities from unconditional ones is commonly used in this paper.
Lean
Formalized as ProbabilityTheory.cond_chain_rule, ProbabilityTheory.cond_chain_rule'.
Sources
Uses 1
DefinitionMutual information#
If \(X: \Omega \to S\), \(Y: \Omega \to T\) are random variables, then
Lean
Formalized as ProbabilityTheory.mutualInfo, ProbabilityTheory.mutualInfo_def.
Sources
Uses 1 · Used by 4
LemmaAlternative formulae for mutual information#
With notation as above, we have
Proof
Immediate from Lemmas Commutativity and associativity of joint entropy, Chain rule.
Lean
Formalized as ProbabilityTheory.mutualInfo_comm, ProbabilityTheory.mutualInfo_eq_entropy_sub_condEntropy.
Sources
Uses 3 · Used by 7
LemmaNonnegativity of mutual information#
We have \(\mathbb{I}[X:Y] \geq 0\).
Proof
An application of jensen's inequality and Concavity and Alternative formulae for mutual information.
Lean
Formalized as ProbabilityTheory.mutualInfo_nonneg.
Sources
Uses 2 · Used by 2
CorollarySubadditivity#
With notation as above, we have \(\mathbb{H}[X,Y] \leq \mathbb{H}[X] + \mathbb{H}[Y]\).
Proof
Use Nonnegativity of mutual information.
Lean
Formalized as ProbabilityTheory.entropy_pair_le_add.
Sources
Uses 2 · Used by 2
CorollaryConditioning reduces entropy#
With notation as above, we have \(\mathbb{H}[X|Y] \leq \mathbb{H}[X]\).
Proof
Combine Nonnegativity of mutual information with Alternative formulae for mutual information.
Lean
Formalized as ProbabilityTheory.condEntropy_le_entropy.
Sources
Uses 2 · Used by 3
CorollarySubmodularity#
With three random variables \(X,Y,Z\), one has \(\mathbb{H}[X|Y,Z] \leq \mathbb{H}[X|Z]\).
Proof
Apply the “averaging over conditioning” argument to Conditioning reduces entropy.
Lean
Formalized as ProbabilityTheory.entropy_submodular, ProbabilityTheory.condEntropy_comp_ge.
Sources
Uses 1 · Used by 7
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.