Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition A.1 (as proved): feasible views share at least I(x;y)I(x;y)I(x;y), with equality iff they are conditionally independent given yyy

Proved
GoodViews.feasible_views_info_lower_bound

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

contrastive-learninginformation-theorymutual-informationself-supervised-learningsufficient-statistics

Let xxx be the data and yyy the task label, finitely-valued random variables on a finite probability space. Let v1=g1(x)v_1=g_1(x)v1​=g1​(x) and v2=g2(x)v_2=g_2(x)v2​=g2​(x) be views created from the data that keep all task information:

I(v1;y)=I(v2;y)=I(x;y).I(v_1;y)=I(v_2;y)=I(x;y).I(v1​;y)=I(v2​;y)=I(x;y).

Then:

  1. I(y;v2∣v1)=0I(y;v_2\mid v_1)=0I(y;v2​∣v1​)=0;
  2. I(v1;v2)=I(x;y)+I(v2;v1∣y)I(v_1;v_2)=I(x;y)+I(v_2;v_1\mid y)I(v1​;v2​)=I(x;y)+I(v2​;v1​∣y);
  3. I(v1;v2)≥I(x;y)I(v_1;v_2)\ge I(x;y)I(v1​;v2​)≥I(x;y);
  4. I(v1;v2)=I(x;y)I(v_1;v_2)=I(x;y)I(v1​;v2​)=I(x;y) if and only if I(v2;v1∣y)=0I(v_2;v_1\mid y)=0I(v2​;v1​∣y)=0, i.e. the views are conditionally independent given yyy.

So views that reach the lower bound I(x;y)I(x;y)I(x;y) are exactly the feasible views that are conditionally independent given the label.

Formalization Note This is what the proof of Proposition A.1 establishes. The printed statement asserts that the optimal views (the minimisers of I(v1;v2)I(v_1;v_2)I(v1​;v2​) under the constraint) satisfy I(v1∗;v2∗)=I(x;y)I(v_1^*;v_2^*)=I(x;y)I(v1∗​;v2∗​)=I(x;y) and are conditionally independent given yyy. That requires the lower bound to be attained, which the proof does not show and which can fail: the minimum over feasible views equals H(T)H(T)H(T), where TTT is the posterior class x↦p(y∣x)x\mapsto p(y\mid x)x↦p(y∣x), and this equals I(x;y)I(x;y)I(x;y) only when H(T∣y)=0H(T\mid y)=0H(T∣y)=0. For example, for xxx uniform on {0,1}\{0,1\}{0,1} and y=xy=xy=x with probability 0.90.90.9, every feasible view is injective, so I(v1∗;v2∗)=log⁡2>I(x;y)I(v_1^*;v_2^*)=\log2>I(x;y)I(v1∗​;v2∗​)=log2>I(x;y).

Preamble
import Mathlib
import Definitions.Def_GoodViews_Basic

open Finset
Formal statement
namespace GoodViews

theorem feasible_views_info_lower_bound {S X Y V₁ V₂ : Type} [Fintype S] [Fintype X]
    [Fintype Y] [Fintype V₁] [Fintype V₂] (P : S → ℝ) (hP : IsPMF P) (x : S → X) (y : S → Y)
    (g₁ : X → V₁) (g₂ : X → V₂) (hfeas : IsFeasibleViews P x y g₁ g₂) :
    condMutualInfo P y (g₂ ∘ x) (g₁ ∘ x) = 0 ∧
    mutualInfo P (g₁ ∘ x) (g₂ ∘ x) = mutualInfo P x y + condMutualInfo P (g₂ ∘ x) (g₁ ∘ x) y ∧
    mutualInfo P x y ≤ mutualInfo P (g₁ ∘ x) (g₂ ∘ x) ∧
    (mutualInfo P (g₁ ∘ x) (g₂ ∘ x) = mutualInfo P x y ↔
      condMutualInfo P (g₂ ∘ x) (g₁ ∘ x) y = 0) := by sorry

end GoodViews
Source
Tian, Sun, Poole, Krishnan, Schmid and Isola, What Makes for Good Views for Contrastive Learning?, arXiv:2005.10243v3 (2020), Appendix A.2, Proposition A.1 and its proof, p. 15
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let SSS, XXX, YYY, V1V_1V1​, V2V_2V2​ be arbitrary finite sets. Any of them may a priori be empty, but SSS is forced to be nonempty by the next hypothesis. Let P:S→RP : S \to \mathbb{R}P:S→R be a probability mass function on the sample space SSS, meaning

P(ω)≥0 for all ω∈S,∑ω∈SP(ω)=1.P(\omega) \ge 0 \text{ for all } \omega \in S, \qquad \sum_{\omega \in S} P(\omega) = 1 .P(ω)≥0 for all ω∈S,ω∈S∑​P(ω)=1.

Let x:S→Xx : S \to Xx:S→X (the "data") and y:S→Yy : S \to Yy:S→Y (the "label") be random variables on SSS. Let g1:X→V1g_1 : X \to V_1g1​:X→V1​ and g2:X→V2g_2 : X \to V_2g2​:X→V2​ be arbitrary functions, and write v1=g1(x)v_1 = g_1(x)v1​=g1​(x) and v2=g2(x)v_2 = g_2(x)v2​=g2​(x) for the composed random variables ω↦g1(x(ω))\omega \mapsto g_1(x(\omega))ω↦g1​(x(ω)) and ω↦g2(x(ω))\omega \mapsto g_2(x(\omega))ω↦g2​(x(ω)). These are deterministic functions of xxx.

Information quantities. All of these are computed from PPP with the natural logarithm.

  • For a random variable A:S→αA : S \to \alphaA:S→α with finite codomain α\alphaα, the law is P(A=a)=∑ω:A(ω)=aP(ω)P(A = a) = \sum_{\omega : A(\omega) = a} P(\omega)P(A=a)=∑ω:A(ω)=a​P(ω).
  • The entropy sums over every element of the codomain α\alphaα, with the convention 0log⁡0=00 \log 0 = 00log0=0:
H(A)=∑a∈α−P(A=a)log⁡P(A=a).H(A) = \sum_{a \in \alpha} -P(A=a)\log P(A=a).H(A)=a∈α∑​−P(A=a)logP(A=a).
  • Joint entropies such as H(A,B)H(A,B)H(A,B) and H(A,B,C)H(A,B,C)H(A,B,C) are the entropies of the tuple-valued random variables ω↦(A(ω),B(ω))\omega \mapsto (A(\omega), B(\omega))ω↦(A(ω),B(ω)), and so on, with values in the product sets.
  • Mutual information is defined as
I(A;B)=H(A)+H(B)−H(A,B).I(A;B) = H(A) + H(B) - H(A,B).I(A;B)=H(A)+H(B)−H(A,B).
  • Conditional mutual information is defined as
I(A;B∣C)=H(A,C)+H(B,C)−H(A,B,C)−H(C).I(A;B \mid C) = H(A,C) + H(B,C) - H(A,B,C) - H(C).I(A;B∣C)=H(A,C)+H(B,C)−H(A,B,C)−H(C).

Hypothesis. The views (g1,g2)(g_1, g_2)(g1​,g2​) are assumed to be "feasible", meaning both views keep the same mutual information with the label as the data does:

I(v1;y)=I(x;y)andI(v2;y)=I(x;y).I(v_1; y) = I(x; y) \quad\text{and}\quad I(v_2; y) = I(x; y).I(v1​;y)=I(x;y)andI(v2​;y)=I(x;y).

This hypothesis is satisfiable. For example, it holds whenever g1g_1g1​ and g2g_2g2​ are injective. It also holds trivially when YYY has a single element, since then both sides are 000.

Conclusion. Under these assumptions, the following four statements hold simultaneously.

  1. The conditional mutual information between the label and the second view, given the first view, vanishes:
I(y;v2∣v1)=H(y,v1)+H(v2,v1)−H(y,v2,v1)−H(v1)=0.I(y; v_2 \mid v_1) = H(y, v_1) + H(v_2, v_1) - H(y, v_2, v_1) - H(v_1) = 0 .I(y;v2​∣v1​)=H(y,v1​)+H(v2​,v1​)−H(y,v2​,v1​)−H(v1​)=0.
  1. The mutual information between the two views decomposes exactly as
I(v1;v2)=I(x;y)+I(v2;v1∣y),I(v_1; v_2) = I(x; y) + I(v_2; v_1 \mid y),I(v1​;v2​)=I(x;y)+I(v2​;v1​∣y),

where

I(v2;v1∣y)=H(v2,y)+H(v1,y)−H(v2,v1,y)−H(y).I(v_2; v_1 \mid y) = H(v_2, y) + H(v_1, y) - H(v_2, v_1, y) - H(y).I(v2​;v1​∣y)=H(v2​,y)+H(v1​,y)−H(v2​,v1​,y)−H(y).
  1. The non-strict lower bound
I(x;y)≤I(v1;v2)I(x; y) \le I(v_1; v_2)I(x;y)≤I(v1​;v2​)

holds.

  1. Equality in that bound holds if and only if the label-conditional mutual information of the views vanishes:
I(v1;v2)=I(x;y)  ⟺  I(v2;v1∣y)=0.I(v_1; v_2) = I(x; y) \iff I(v_2; v_1 \mid y) = 0 .I(v1​;v2​)=I(x;y)⟺I(v2​;v1​∣y)=0.

Scope. No assumption is made relating yyy to xxx beyond their being random variables on the same finite probability space. In particular, yyy need not be a function of xxx, and no conditional-independence assumption is imposed. The only constraint on g1g_1g1​ and g2g_2g2​ is the feasibility hypothesis above.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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