Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: determinism gives conditional independence given the input

Proved
SSLMultiView.determinism_cond_indep

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

bayes-errorinformation-theorymulti-view-learningmutual-informationself-supervised-learning

Let (X,S,T)(X,S,T)(X,S,T) have a joint probability mass function on finite sets, and let ZX=FX(X)Z_X=F_X(X)ZX​=FX​(X) for a deterministic map FXF_XFX​, so that P(ZX∣X)P(Z_X\mid X)P(ZX​∣X) is a Dirac mass. Then

T⊥ZX∣X,S⊥ZX∣X,(S,T)⊥ZX∣X.T\perp Z_X\mid X,\qquad S\perp Z_X\mid X,\qquad (S,T)\perp Z_X\mid X.T⊥ZX​∣X,S⊥ZX​∣X,(S,T)⊥ZX​∣X.

This is the conditional independence the paper uses in every proof: the representation carries no information about the signal or the task beyond what the input carries.

Formalization Note The paper says the two conditional independences induce "a Markov chain S↔T↔X→ZXS\leftrightarrow T\leftrightarrow X\rightarrow Z_XS↔T↔X→ZX​". Read literally, the link S↔T↔XS\leftrightarrow T\leftrightarrow XS↔T↔X would assert S⊥X∣TS\perp X\mid TS⊥X∣T, which does not follow from determinism and is not assumed. The statement therefore includes the joint conditional independence (S,T)⊥ZX∣X(S,T)\perp Z_X\mid X(S,T)⊥ZX​∣X, which is the "X→ZXX\rightarrow Z_XX→ZX​" link that the proofs use.

Preamble
import Mathlib
import Definitions.Def_SSLMultiView_Basic

open Real
Formal statement
namespace SSLMultiView

theorem determinism_cond_indep {X S T Zs : Type*} [Fintype X] [DecidableEq X] [Fintype S] [DecidableEq S]
    [Fintype T] [DecidableEq T] [Fintype Zs] [DecidableEq Zs]
    (P : X × S × T → ℝ) (hP : IsPMF P) (F : X → Zs) :
    CondIndep P taskT (rep F) inputX ∧ CondIndep P signalS (rep F) inputX ∧
      CondIndep P signalTask (rep F) inputX := by sorry

end SSLMultiView
Source
Tsai, Wu, Salakhutdinov and Morency, Self-supervised Learning from a Multi-view Perspective, ICLR 2021, arXiv:2006.05576v4, Appendix B, Lemma 1 (Determinism), p. 12
Read-back

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

Let X\mathcal XX, S\mathcal SS, T\mathcal TT and Z\mathcal ZZ be arbitrary finite sets with decidable equality. Any of them may be empty. Let P:X×S×T→RP : \mathcal X \times \mathcal S \times \mathcal T \to \mathbb RP:X×S×T→R be a probability mass function on the finite sample space Ω=X×S×T\Omega = \mathcal X \times \mathcal S \times \mathcal TΩ=X×S×T, meaning

P(x,s,t)≥0 for all (x,s,t),∑(x,s,t)∈ΩP(x,s,t)=1.P(x,s,t) \ge 0 \text{ for all } (x,s,t), \qquad \sum_{(x,s,t) \in \Omega} P(x,s,t) = 1 .P(x,s,t)≥0 for all (x,s,t),(x,s,t)∈Ω∑​P(x,s,t)=1.

In particular, if any of X,S,T\mathcal X, \mathcal S, \mathcal TX,S,T is empty, then Ω\OmegaΩ is empty, no such PPP exists, and the statement is vacuous. Let F:X→ZF : \mathcal X \to \mathcal ZF:X→Z be an arbitrary function; no condition is imposed on it.

On Ω\OmegaΩ consider these random variables:

  • the coordinate projections X(x,s,t)=xX(x,s,t) = xX(x,s,t)=x, S(x,s,t)=sS(x,s,t) = sS(x,s,t)=s and T(x,s,t)=tT(x,s,t) = tT(x,s,t)=t;
  • the pair (S,T)(x,s,t)=(s,t)(S,T)(x,s,t) = (s,t)(S,T)(x,s,t)=(s,t);
  • the representation ZX(x,s,t)=F(x)Z_X(x,s,t) = F(x)ZX​(x,s,t)=F(x).

For a random variable fff on Ω\OmegaΩ, P(f=a)P(f = a)P(f=a) denotes ∑ω:f(ω)=aP(ω)\sum_{\omega : f(\omega) = a} P(\omega)∑ω:f(ω)=a​P(ω), and joint events are defined the same way using tuples of random variables.

The term "fff is conditionally independent of ggg given hhh" is used here in the following specific product form. For every triple of values a,b,ca, b, ca,b,c, including those of probability zero,

P(h=c) P(f=a, g=b, h=c)  =  P(f=a, h=c) P(g=b, h=c).P(h = c)\, P(f = a,\, g = b,\, h = c) \;=\; P(f = a,\, h = c)\, P(g = b,\, h = c).P(h=c)P(f=a,g=b,h=c)=P(f=a,h=c)P(g=b,h=c).

No division or conditional probability appears.

The theorem asserts that all three of the following hold simultaneously, each conditioned on the input XXX:

  1. TTT and ZXZ_XZX​ are conditionally independent given XXX. For all t∈Tt \in \mathcal Tt∈T, z∈Zz \in \mathcal Zz∈Z, x∈Xx \in \mathcal Xx∈X:
P(X=x) P(T=t,ZX=z,X=x)=P(T=t,X=x) P(ZX=z,X=x).P(X = x)\, P(T = t, Z_X = z, X = x) = P(T = t, X = x)\, P(Z_X = z, X = x).P(X=x)P(T=t,ZX​=z,X=x)=P(T=t,X=x)P(ZX​=z,X=x).
  1. SSS and ZXZ_XZX​ are conditionally independent given XXX. For all s∈Ss \in \mathcal Ss∈S, z∈Zz \in \mathcal Zz∈Z, x∈Xx \in \mathcal Xx∈X:
P(X=x) P(S=s,ZX=z,X=x)=P(S=s,X=x) P(ZX=z,X=x).P(X = x)\, P(S = s, Z_X = z, X = x) = P(S = s, X = x)\, P(Z_X = z, X = x).P(X=x)P(S=s,ZX​=z,X=x)=P(S=s,X=x)P(ZX​=z,X=x).
  1. (S,T)(S,T)(S,T) and ZXZ_XZX​ are conditionally independent given XXX. For all (s,t)∈S×T(s,t) \in \mathcal S \times \mathcal T(s,t)∈S×T, z∈Zz \in \mathcal Zz∈Z, x∈Xx \in \mathcal Xx∈X:
P(X=x) P((S,T)=(s,t),ZX=z,X=x)=P((S,T)=(s,t),X=x) P(ZX=z,X=x).P(X = x)\, P((S,T) = (s,t), Z_X = z, X = x) = P((S,T) = (s,t), X = x)\, P(Z_X = z, X = x).P(X=x)P((S,T)=(s,t),ZX​=z,X=x)=P((S,T)=(s,t),X=x)P(ZX​=z,X=x).
Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

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