mutual_f_information_affine_eq_zero
For a joint probability mass function p on finite sets (p ≥ 0, total mass 1) and any real c, the mutual f-information with generator t ↦ c (t - 1) is 0.
Statement
theorem mutual_f_information_affine_eq_zero {X Y : Type*} [Fintype X] [Fintype Y] (c : ℝ) (p : X → Y → ℝ) (hp : ∀ x y, 0 ≤ p x y) (hs : ∑ x, ∑ y, p x y = 1) : mutual_f_information (fun t => c * (t - 1)) p = 0
- Source
- Helper for mutual_f_information_subadditive_add_affine_iff (OP-331): the generator c(t - 1) gives zero mutual f-information.
- Verified
- 19 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- mutual_f_informationFor a joint probability mass function p_{XY} on finite sets, the mutual f-information is Ĩ_f(X; Y) = D_f(p_{XY} ‖ p_X p_Y) = Σ_{x,y}…
- Used by 1
- mutual_f_information_subadditive_add_affine_iffFor every f : ℝ → ℝ and real c, the generator t ↦ f(t) + c (t - 1) is subadditive for mutual f-information…
The proof, explained
The proof establishes that for each pair (x, y), the summand in the definition of mutual f-information simplifies to c * (p x y - p_X(x) * p_Y(y)), where p_X(x) and p_Y(y) are the marginal distributions. When the product of the marginals is non-zero, this follows by clearing the denominator and expanding; when the product is zero, the non-negativity of p forces p x y = 0, so both sides vanish. Summing this simplified expression over all x and y, the joint distribution sums to 1 by assumption, and the product of the marginals also sums to 1 * 1 = 1 by swapping the summation order, leaving c * (1 - 1) = 0.
For any x and y, the identity (∑ y', p x y') * (∑ x', p x' y) * (c * (p x y / ((∑ y', p x y') * (∑ x', p x' y)) - 1)) = c * (p x y - (∑ y', p x y') * (∑ x', p x' y)) holds whenever the marginal product (∑ y', p x y') * (∑ x', p x' y) is zero.
We split into cases on whether the marginal product (∑ y', p x y') * (∑ x', p x' y) is zero. If it is zero, then at least one of the marginal sums is zero by `mul_eq_zero.mp`. Since p is non-negative everywhere, each individual probability p x y is bounded above by each marginal sum (`Finset.single_le_sum` using `Finset.mem_univ`). Hence p x y ≤ 0, and since 0 ≤ p x y, antisymmetry (`le_antisymm`) forces p x y = 0. Substituting 0 for the marginal product and for p x y reduces both sides to 0.
uses
Finset.single_le_sum,Finset.mem_univ,mul_eq_zero.mp,le_antisymmhave hkey : ∀ x y, (∑ y', p x y') * (∑ x', p x' y) * (c * (p x y / ((∑ y', p x y') * (∑ x', p x' y)) - 1)) = c * (p x y - (∑ y', p x y') * (∑ x', p x' y)) := by intro x y by_cases h0 : (∑ y', p x y') * (∑ x', p x' y) = 0 · have hle1 : p x y ≤ ∑ y', p x y' := Finset.single_le_sum (f := fun y' => p x y') (fun y' _ => hp x y') (Finset.mem_univ y) have hle2 : p x y ≤ ∑ x', p x' y := Finset.single_le_sum (f := fun x' => p x' y) (fun x' _ => hp x' y) (Finset.mem_univ x) have hpxy : p x y = 0 := by rcases mul_eq_zero.mp h0 with h | h · exact le_antisymm (h ▸ hle1) (hp x y) · exact le_antisymm (h ▸ hle2) (hp x y) rw [h0, hpxy]; simp
For all x and y, (∑ y', p x y') * (∑ x', p x' y) * (c * (p x y / ((∑ y', p x y') * (∑ x', p x' y)) - 1)) = c * (p x y - (∑ y', p x y') * (∑ x', p x' y)).
In the case where the marginal product DD = (∑ y', p x y') * (∑ x', p x' y) is non-zero, clearing the denominator gives DD * (p x y / DD) = p x y. Ring algebra then expands DD * (c * (p x y / DD - 1)) as c * (DD * (p x y / DD) - DD) = c * (p x y - DD), establishing the summand identity `hkey` for all x and y.
· generalize (∑ y', p x y') * (∑ x', p x' y) = DD at h0 ⊢ have hD : DD * (p x y / DD) = p x y := by field_simp rw [show DD * (c * (p x y / DD - 1)) = c * (DD * (p x y / DD) - DD) by ring, hD]
∑ y, ∑ x, p x y = 1.
Exchanging the order of summation (`Finset.sum_comm`) in the normalization hypothesis hs (∑ x, ∑ y, p x y = 1) shows that summing over y first also equals 1.
uses
Finset.sum_commhave h3 : ∑ i, ∑ x', p x' i = 1 := by rw [Finset.sum_comm]; exact hs
mutual_f_information (fun t => c * (t - 1)) p = 0.
Unfolding the definition of mutual f-information and rewriting each term using `hkey`, the double sum becomes ∑ x, ∑ y, c * (p x y - (∑ y', p x y') * (∑ x', p x' y)). Factoring out c (`Finset.mul_sum`) and distributing the sums over subtraction (`Finset.sum_sub_distrib`), the first term ∑ x, ∑ y, p x y equals 1 by hs, while the second term factors as (∑ x, ∑ y', p x y') * (∑ y, ∑ x', p x' y) = 1 * 1 = 1 using h3 and `mul_one`. The difference 1 - 1 evaluates to 0 (`sub_self`), and multiplication by c produces 0 (`mul_zero`), with empty sums vanishing by `Finset.sum_const_zero`.
uses
Finset.mul_sum,Finset.sum_sub_distrib,mul_one,sub_self,mul_zero,Finset.sum_const_zerosimp only [mutual_f_information, hkey, ← Finset.mul_sum, Finset.sum_sub_distrib, h3, mul_one, sub_self, mul_zero, Finset.sum_const_zero]
Finset.single_le_sum- In a sum of non-negative elements over a finite set, each individual element is less than or equal to the total sum.
Finset.mem_univ- Every element of a finite type belongs to its universal finset.
mul_eq_zero.mp- If the product of two real numbers is zero, at least one of the factors is zero.
le_antisymm- If a ≤ b and b ≤ a, then a = b.
Finset.sum_comm- The order of summation in a finite double sum can be swapped.
Finset.mul_sum- Multiplication distributes over finite summation: a * ∑ i, f i = ∑ i, a * f i.
Finset.sum_sub_distrib- The sum of a difference is the difference of the sums: ∑ i, (f i - g i) = ∑ i, f i - ∑ i, g i.
mul_one- Multiplying any element by 1 leaves it unchanged (a * 1 = a).
sub_self- Subtracting any element from itself gives zero (a - a = 0).
mul_zero- Multiplying any element by zero yields zero (a * 0 = 0).
Finset.sum_const_zero- The sum of zeros over any finite set is zero.
- In Lean, real division is a total function where division by zero returns zero. Consequently, `mutual_f_information` sums over all pairs (x, y) rather than restricting to pairs with non-zero marginals. The case split on whether the marginal product vanishes is needed formally because cancelling D in D * (p / D) requires D ≠ 0 (or p = 0).
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem mutual_f_information_affine_eq_zero {X Y : Type*} [Fintype X] [Fintype Y] (c : ℝ) (p : X → Y → ℝ) (hp : ∀ x y, 0 ≤ p x y) (hs : ∑ x, ∑ y, p x y = 1) : mutual_f_information (fun t => c * (t - 1)) p = 0 := by have hkey : ∀ x y, (∑ y', p x y') * (∑ x', p x' y) * (c * (p x y / ((∑ y', p x y') * (∑ x', p x' y)) - 1)) = c * (p x y - (∑ y', p x y') * (∑ x', p x' y)) := by intro x y by_cases h0 : (∑ y', p x y') * (∑ x', p x' y) = 0 · have hle1 : p x y ≤ ∑ y', p x y' := Finset.single_le_sum (f := fun y' => p x y') (fun y' _ => hp x y') (Finset.mem_univ y) have hle2 : p x y ≤ ∑ x', p x' y := Finset.single_le_sum (f := fun x' => p x' y) (fun x' _ => hp x' y) (Finset.mem_univ x) have hpxy : p x y = 0 := by rcases mul_eq_zero.mp h0 with h | h · exact le_antisymm (h ▸ hle1) (hp x y) · exact le_antisymm (h ▸ hle2) (hp x y) rw [h0, hpxy]; simp · generalize (∑ y', p x y') * (∑ x', p x' y) = DD at h0 ⊢ have hD : DD * (p x y / DD) = p x y := by field_simp rw [show DD * (c * (p x y / DD - 1)) = c * (DD * (p x y / DD) - DD) by ring, hD] have h3 : ∑ i, ∑ x', p x' i = 1 := by rw [Finset.sum_comm]; exact hs simp only [mutual_f_information, hkey, ← Finset.mul_sum, Finset.sum_sub_distrib, h3, mul_one, sub_self, mul_zero, Finset.sum_const_zero]