mutual_f_information_const_mul
The mutual f-information is homogeneous in the generator: for any real a, f : ℝ → ℝ and p : X → Y → ℝ on finite types, Ĩ_{a f}(p) = a Ĩ_f(p).
Statement
theorem mutual_f_information_const_mul {X Y : Type*} [Fintype X] [Fintype Y] (a : ℝ) (f : ℝ → ℝ) (p : X → Y → ℝ) : mutual_f_information (fun t => a * f t) p = a * mutual_f_information f p
- Source
- Helper for the cone and affine-invariance facts about subadditive generators (OP-331).
- 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_mulIf f₁ and f₂ are subadditive generators for mutual f-information (mutual_f_information_subadditive, i.e. Ĩ_f(X; YZ) ≤ Ĩ_f(X; Y) + Ĩ_f(X;…
The proof, explained
The theorem states that scaling the generator function $f$ by a real scalar $a$ scales the mutual $f$-information by $a$. Unfolding the definition expresses both sides as double sums over $X$ and $Y$. Distributing $a$ across the sums reduces the claim to showing that the corresponding summands are equal, which follows from the associativity and commutativity of real multiplication.
Unfolding the definition and distributing the scalar factor $a$ into the double sum reduces the goal to an equality between two double sums.
Unfolding `mutual_f_information` replaces both sides with double sums over the finite types $X$ and $Y$. On the right-hand side, the scalar factor $a$ is pushed inside the sums using `Finset.mul_sum`, which distributes multiplication over finite sums.
uses
Finset.mul_sumsimp only [mutual_f_information, Finset.mul_sum]The two double sums are identical term by term.
Using sum congruence (`Finset.sum_congr`) on the outer sum over $X$ and then on the inner sum over $Y$, it suffices to verify that the summands match for each $(x, y) \in X \times Y$. For fixed $x$ and $y$, letting $M = \sum_{x'} (\sum_{y'} p(x, y')) p(x', y)$ and $T = f(p(x, y) / M)$, the left summand is $M \cdot (a \cdot T)$ and the right summand is $a \cdot (M \cdot T)$. Ring arithmetic (`ring`) closes the goal because multiplication in $\mathbb{R}$ is associative and commutative.
uses
Finset.sum_congrexact Finset.sum_congr rfl (fun x _ => Finset.sum_congr rfl (fun y _ => by ring))
Finset.mul_sum- Multiplication by a scalar distributes over a finite sum: $a \sum_{i \in s} f(i) = \sum_{i \in s} a f(i)$.
Finset.sum_congr- Two finite sums over the same index set are equal if their summands agree at every element.
- In step 1, `simp only` with `Finset.mul_sum` also rewrites the product of marginal sums $(\sum_{y'} p(x, y')) (\sum_{x'} p(x', y))$ into $\sum_{x'} (\sum_{y'} p(x, y')) p(x', y)$ inside each summand, an incidental effect of applying the distributivity lemma everywhere it matches.
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_const_mul {X Y : Type*} [Fintype X] [Fintype Y] (a : ℝ) (f : ℝ → ℝ) (p : X → Y → ℝ) : mutual_f_information (fun t => a * f t) p = a * mutual_f_information f p := by simp only [mutual_f_information, Finset.mul_sum] exact Finset.sum_congr rfl (fun x _ => Finset.sum_congr rfl (fun y _ => by ring))