Proposition A.2: with optimal views, minimal sufficient encoders give sufficient statistics for
ProvedGoodViews.optimal_views_sufficient_representationLet be the data and the task label, finitely-valued random variables on a finite probability space. Let be optimal views: among all pairs of views , with , they minimise . Let and be minimal sufficient encoders of and (Definitions 1 and 2). Then the representations and are sufficient statistics of and for :
Together with Proposition A.3 this shows that contrastive learning with optimal views loses no task information.
Formalization Note The paper writes " (or )"; both conclusions are stated. Sufficiency of is written as , which equals the paper's by symmetry of mutual information.
import Mathlib import Definitions.Def_GoodViews_Basic open Finset
namespace GoodViews
theorem optimal_views_sufficient_representation {S X Y V₁ V₂ Z₁ Z₂ : Type} [Fintype S]
[Fintype X] [Fintype Y] [Fintype V₁] [Fintype V₂] [Fintype Z₁] [Fintype Z₂]
(P : S → ℝ) (hP : IsPMF P) (x : S → X) (y : S → Y) (g₁ : X → V₁) (g₂ : X → V₂)
(hopt : IsOptimalViews P x y g₁ g₂) (f₁ : V₁ → Z₁) (f₂ : V₂ → Z₂)
(hf₁ : IsMinimalSufficientEncoder P (g₁ ∘ x) (g₂ ∘ x) f₁)
(hf₂ : IsMinimalSufficientEncoder P (g₂ ∘ x) (g₁ ∘ x) f₂) :
IsSufficientStat P (g₁ ∘ x) y f₁ ∧ IsSufficientStat P (g₂ ∘ x) y f₂ := by sorry
end GoodViewsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix finite sets . Let be a probability mass function on , so for all and . In particular is nonempty.
Fix the following functions on , viewed as random variables:
- the data ;
- the label .
Fix two maps and , and write the two "views" as
Fix two further maps (the "encoders") and .
Information quantities. For any random variable with finite:
- its law is ;
- its entropy is , using the natural logarithm and the convention .
The mutual information of two random variables is defined as
where is the pair-valued random variable .
Hypotheses.
- Optimal views. The pair is "optimal" in the following sense.
- Feasibility: and .
- Minimality: for every pair of maps and with the same codomains that is also feasible, i.e. , we have
- Competing views with other codomains are not considered.
- is a minimal sufficient encoder of with respect to .
- Sufficiency: .
- Minimality: for every finite type and every map satisfying , we have
- is a minimal sufficient encoder of with respect to . This is the same as hypothesis 2 with the roles of the views exchanged.
- Sufficiency: .
- Minimality: for every finite type and every with , we have .
Conclusion. Both encoded views retain all of each view's mutual information with the label:
Scope of the conclusion.
- It asserts only these two equalities, i.e. that and are sufficient statistics of and for .
- It asserts nothing about minimality of or with respect to .
- It says nothing directly about .
- The equalities are stated relative to . By hypothesis 1 these both equal .
Degenerate cases.
- All the sets involved are automatically nonempty, since is nonempty and every map is defined on it.
- The theorem's content is conditional on the optimality hypothesis 1 actually holding for the given . It is not asserted that such an optimal pair exists.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.