Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 10.4.1: I(X;Y)≥0I(X;Y)\ge0I(X;Y)≥0, with equality iff XXX and YYY are independent

Proved
WildeQIT.ZhangAudenaert.mutualInfo_nonneg

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

entropyinformation-theoryp2o-gran-per-chapterp2o-plan-bookp2o-v1wilde-qit

Let XXX and YYY be random variables on finite alphabets with joint distribution pX,Yp_{X,Y}pX,Y​, and let I(X;Y)=H(X)−H(X∣Y)I(X;Y)=H(X)-H(X|Y)I(X;Y)=H(X)−H(X∣Y) be their mutual information (Definition 10.4.1, in bits). Then

I(X;Y)≥0,I(X;Y)\ge 0,I(X;Y)≥0,

and I(X;Y)=0I(X;Y)=0I(X;Y)=0 if and only if XXX and YYY are independent, that is, pX,Y(x,y)=pX(x) pY(y)p_{X,Y}(x,y)=p_X(x)\,p_Y(y)pX,Y​(x,y)=pX​(x)pY​(y) for all x,yx,yx,y.

Mutual information measures the correlation between two random variables; it vanishes exactly on product distributions. This is the classical precursor of strong subadditivity (Theorem 10.6.1).

Formalization Note The pair is represented by its joint distribution on a product of finite types; independence is FinDist.Indep.

Differences from the source: none.

Preamble
import Mathlib
import Definitions.Def_WildeQIT_mutualInfo
Formal statement
namespace WildeQIT.ZhangAudenaert

/-- **Theorem 10.4.1 (Non-negativity of mutual information).**
Wilde, *From Classical to Quantum Shannon Theory*, arXiv:1106.1445v8, Theorem 10.4.1, (10.30),
p. 296: "The mutual information `I(X;Y)` is non-negative for any random variables `X` and `Y`:
`I(X;Y) ≥ 0`, and `I(X;Y) = 0` if and only if `X` and `Y` are independent random variables
(i.e., if `p_{X,Y}(x,y) = p_X(x) p_Y(y)`)."

**Formalization Note.** The pair `(X, Y)` is its joint distribution `p` on `α × β` (finite
alphabets); `I(X;Y) = mutualInfo p = H(X) − H(X|Y)` (Definition 10.4.1, bits), and
independence is `FinDist.Indep`. -/
theorem mutualInfo_nonneg {α β : Type} [Fintype α] [Fintype β] (p : FinDist (α × β)) :
    0 ≤ mutualInfo p ∧ (mutualInfo p = 0 ↔ p.Indep) := by sorry

end WildeQIT.ZhangAudenaert
Source
Wilde, From Classical to Quantum Shannon Theory, arXiv:1106.1445v8, Theorem 10.4.1, eq. (10.30), p. 296
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me