Documentation

CslibFrontier.Probability.MutualInformation.DataProcessing

Conditional mutual information chain rules, data processing, and fiber identities #

General finite mutual-information and conditional mutual-information identities in bits (Real.logb 2) complementing Cslib.Probability.MutualInformation:

theorem Cslib.Probability.PMF.mutualInfo_map_swap {α : Type u_2} {β : Type u_3} [Finite α] [Finite β] (p : PMF (α × β)) :

Symmetry of mutual information: I(B; A) = I(A; B).

Mutual information is at most the entropy of the first marginal: I(A; B) ≤ H(A).

theorem Cslib.Probability.PMF.condMutualInfo_map_congr_cond {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {γ' : Type u_6} [Finite γ] [Finite γ'] [Finite α] [Finite β] (ν : PMF Ω) {C : Ω → γ} {C' : Ω → γ'} (A : Ω → α) (B : Ω → β) {e : γ → γ'} (he : Function.Injective e) (h : ∀ ω ∈ ν.support, C' ω = e (C ω)) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C' ω, A ω, B ω)) ν) = condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν)

Injective re-encoding of the conditioning variable on the support does not change conditional mutual information: I(A; B | e(C)) = I(A; B | C).

theorem Cslib.Probability.PMF.condMutualInfo_map_pair_self {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} [Finite γ] [Finite α] [Finite β] (ν : PMF Ω) (C : Ω → γ) (A : Ω → α) (B : Ω → β) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, (A ω, C ω), B ω, C ω)) ν) = condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν)

Appending the conditioning variable C to both foreground variables does not change conditional mutual information: I((A, C); (B, C) | C) = I(A; B | C).

theorem Cslib.Probability.PMF.condMutualInfo_map_swap {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} [Finite γ] [Finite α] [Finite β] (ν : PMF Ω) (C : Ω → γ) (A : Ω → α) (B : Ω → β) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν) = condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, B ω, A ω)) ν)

Symmetry of conditional mutual information in its two foreground variables: I(A; B | C) = I(B; A | C).

theorem Cslib.Probability.PMF.condMutualInfo_map_prodMk_left_eq_add {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [Finite γ] [Finite δ] [Finite α] [Finite β] (ν : PMF Ω) (C : Ω → γ) (D : Ω → δ) (A : Ω → α) (B : Ω → β) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, (D ω, A ω), B ω)) ν) = condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, D ω, B ω)) ν) + condMutualInfo (PMF.map (fun (ω : Ω) => ((C ω, D ω), A ω, B ω)) ν)

Chain rule for conditional mutual information in the first foreground variable: I((D, A); B | C) = I(D; B | C) + I(A; B | (C, D)).

theorem Cslib.Probability.PMF.condMutualInfo_map_prodMk_right_eq_add {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [Finite γ] [Finite α] [Finite δ] [Finite β] (ν : PMF Ω) (C : Ω → γ) (A : Ω → α) (D : Ω → δ) (B : Ω → β) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, D ω, B ω)) ν) = condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, D ω)) ν) + condMutualInfo (PMF.map (fun (ω : Ω) => ((C ω, D ω), A ω, B ω)) ν)

Chain rule for conditional mutual information in the second foreground variable: I(A; (D, B) | C) = I(A; D | C) + I(A; B | (C, D)).

theorem Cslib.Probability.PMF.condMutualInfo_map_le_of_comp_left {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {α' : Type u_6} [Finite γ] [Finite α] [Finite α'] [Finite β] (ν : PMF Ω) (C : Ω → γ) (A : Ω → α) (S : Ω → α') (B : Ω → β) (f : α → α') (hf : ∀ ω ∈ ν.support, S ω = f (A ω)) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, S ω, B ω)) ν) ≤ condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν)

Conditional mutual information decreases when replacing the first foreground variable by a function determined on the support: I(S; B | C) ≤ I(A; B | C).

theorem Cslib.Probability.PMF.condMutualInfo_map_le_of_comp {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {α' : Type u_6} {β' : Type u_7} [Finite γ] [Finite α] [Finite α'] [Finite β] [Finite β'] (ν : PMF Ω) (C : Ω → γ) (A : Ω → α) (S : Ω → α') (B : Ω → β) (R : Ω → β') (f : α → α') (hf : ∀ ω ∈ ν.support, S ω = f (A ω)) (g : β → β') (hg : ∀ ω ∈ ν.support, R ω = g (B ω)) :
condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, S ω, R ω)) ν) ≤ condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν)

Conditional data processing for deterministic maps on both foreground variables: if S is determined by A and R is determined by B on the support of ν, then I(S; R | C) ≤ I(A; B | C).

theorem Cslib.Probability.PMF.condMutualInfo_map_pair_fst_le_of_eq_zero {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [Finite γ] [Finite δ] [Finite α] [Finite β] (ν : PMF Ω) (C : Ω → γ) (M : Ω → δ) (A : Ω → α) (B : Ω → β) (h : condMutualInfo (PMF.map (fun (ω : Ω) => ((C ω, A ω), M ω, B ω)) ν) = 0) :
condMutualInfo (PMF.map (fun (ω : Ω) => ((C ω, M ω), A ω, B ω)) ν) ≤ condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν)

Conditioning on a message M that carries no conditional mutual information with B given (C, A) cannot increase I(A; B | C).

theorem Cslib.Probability.PMF.condMutualInfo_map_pair_snd_le_of_eq_zero {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [Finite γ] [Finite δ] [Finite α] [Finite β] (ν : PMF Ω) (C : Ω → γ) (M : Ω → δ) (A : Ω → α) (B : Ω → β) (h : condMutualInfo (PMF.map (fun (ω : Ω) => ((C ω, B ω), M ω, A ω)) ν) = 0) :
condMutualInfo (PMF.map (fun (ω : Ω) => ((C ω, M ω), A ω, B ω)) ν) ≤ condMutualInfo (PMF.map (fun (ω : Ω) => (C ω, A ω, B ω)) ν)

Symmetric form: conditioning on a message M that carries no conditional mutual information with A given (C, B) cannot increase I(A; B | C).

theorem Cslib.Probability.PMF.mutualInfo_bind_pair_indep {α : Type u_2} {β : Type u_3} {γ : Type u_4} {δ : Type u_5} [Finite α] [Finite β] [Finite γ] [Finite δ] (source : PMF (α × β)) (c₀ : PMF γ) (c₁ : PMF δ) :
mutualInfo (source.bind fun (ab : α × β) => c₀.bind fun (r₀ : γ) => PMF.map (fun (r₁ : δ) => ((ab.1, r₀), ab.2, r₁)) c₁) = mutualInfo source

Independent private randomness does not change mutual information: I((A, R₀); (B, R₁)) = I(A; B).

theorem Cslib.Probability.PMF.mutualInfo_eq_entropy_map_snd_sub_logb_of_const_fiber {α : Type u_2} {β : Type u_3} [Finite α] [Finite β] (p : PMF (α × β)) (unseen : α → Finset β) (c : ℕ) (hc : 0 < c) (hcard : ∀ a ∈ (PMF.map Prod.fst p).support, (unseen a).card = c) (hzero : ∀ a ∈ (PMF.map Prod.fst p).support, ∀ b ∉ unseen a, p (a, b) = 0) (hconst : ∀ a ∈ (PMF.map Prod.fst p).support, ∀ b₀ ∈ unseen a, ∀ b₁ ∈ unseen a, p (a, b₁) = p (a, b₀)) :

Mutual information of a joint law p : PMF (α × β) whose conditionals given each supported first coordinate a are uniform over a c-element subset unseen a : Finset β: I(A; B) = H(B) - log₂ c.