Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: the predictor μ\muμ through the other view

Proved
MultiViewRedundancy.mu_approximation

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

conditional-expectationcontrastive-learningdensity-ratiomulti-view-learningrepresentation-learning

Let (X,Z,Y)(X,Z,Y)(X,Z,Y) be random variables with E[Y2]<∞\mathbb E[Y^2]<\inftyE[Y2]<∞, where ZZZ takes values in a standard Borel space. Let μ(x)=E[E[Y∣Z]∣X=x]\mu(x)=\mathbb E[\mathbb E[Y\mid Z]\mid X=x]μ(x)=E[E[Y∣Z]∣X=x] and

εX=E[(E[Y∣X]−E[Y∣X,Z])2],εZ=E[(E[Y∣Z]−E[Y∣X,Z])2].\varepsilon_X=\mathbb E\big[(\mathbb E[Y\mid X]-\mathbb E[Y\mid X,Z])^2\big],\qquad \varepsilon_Z=\mathbb E\big[(\mathbb E[Y\mid Z]-\mathbb E[Y\mid X,Z])^2\big].εX​=E[(E[Y∣X]−E[Y∣X,Z])2],εZ​=E[(E[Y∣Z]−E[Y∣X,Z])2].

Then

E[(μ(X)−E[Y∣X,Z])2]≤εX+2εXεZ+εZ=εμ.\mathbb E\big[(\mu(X)-\mathbb E[Y\mid X,Z])^2\big]\le\varepsilon_X+2\sqrt{\varepsilon_X\varepsilon_Z}+\varepsilon_Z=\varepsilon_\mu.E[(μ(X)−E[Y∣X,Z])2]≤εX​+2εX​εZ​​+εZ​=εμ​.

When the views are redundant for predicting YYY, predicting YYY through the other view ZZZ is nearly as good as the Bayes predictor that uses both views.

Formalization Note The law of (X,Z,Y)(X,Z,Y)(X,Z,Y) is a probability measure on X×Z×R\mathcal X\times\mathcal Z\times\mathbb RX×Z×R. The finiteness of E[Y2]\mathbb E[Y^2]E[Y2], which the paper uses implicitly so that εX,εZ\varepsilon_X,\varepsilon_ZεX​,εZ​ are finite, is a hypothesis.

Preamble
import Mathlib
import Definitions.Def_MultiViewRedundancy_Basic

open MeasureTheory ProbabilityTheory
open scoped ENNReal NNReal
Formal statement
namespace MultiViewRedundancy

theorem mu_approximation {X Z : Type*} [MeasurableSpace X] [MeasurableSpace Z]
    [StandardBorelSpace Z] [Nonempty Z]
    (ρ : Measure (X × Z × ℝ)) [IsProbabilityMeasure ρ] (hY : MemLp (fun t => t.2.2) 2 ρ) :
    ∫ t, (muFn ρ t.1 - regXZ ρ t.1 t.2.1) ^ 2 ∂ρ ≤ epsMu ρ := by sorry

end MultiViewRedundancy
Source
Tosh, Krishnamurthy and Hsu, Contrastive learning, multi-view redundancy, and linear models, arXiv:2008.10150v2 (2021), Section 2.4, Lemma 1, p. 7; proof in Appendix A.1, p. 16
Read-back

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

Let X\mathcal XX and Z\mathcal ZZ be arbitrary measurable spaces, and assume Z\mathcal ZZ is a standard Borel space and nonempty. No further assumptions are placed on X\mathcal XX. Let ρ\rhoρ be a probability measure on X×Z×R\mathcal X \times \mathcal Z \times \mathbb RX×Z×R, and write a generic point as t=(x,z,y)t = (x, z, y)t=(x,z,y), with coordinate random variables X,Z,YX, Z, YX,Z,Y.

The only hypothesis is that the third coordinate is square-integrable:

Y∈L2(ρ),Y \in L^2(\rho),Y∈L2(ρ),

meaning yyy is a.e.-strongly measurable and ∫y2 dρ<∞\int y^2 \, d\rho < \infty∫y2dρ<∞.

Conditional means. Each is a fixed version, defined through Mathlib's chosen disintegration kernels.

  • rX(x)r_X(x)rX​(x) is the integral of yyy against the conditional law of YYY given X=xX = xX=x. This kernel is obtained by disintegrating the image of ρ\rhoρ under (x,z,y)↦(x,y)(x,z,y)\mapsto(x,y)(x,z,y)↦(x,y).
  • rZ(z)r_Z(z)rZ​(z) is the integral of yyy against the conditional law of YYY given Z=zZ = zZ=z. This comes from the image of ρ\rhoρ under (x,z,y)↦(z,y)(x,z,y)\mapsto(z,y)(x,z,y)↦(z,y).
  • rXZ(x,z)r_{XZ}(x,z)rXZ​(x,z) is the integral of yyy against the conditional law of YYY given (X,Z)=(x,z)(X,Z) = (x,z)(X,Z)=(x,z). This comes from the image of ρ\rhoρ under (x,z,y)↦((x,z),y)(x,z,y)\mapsto((x,z),y)(x,z,y)↦((x,z),y).
  • μ(x)\mu(x)μ(x) is the integral of z↦rZ(z)z \mapsto r_Z(z)z↦rZ​(z) against the conditional law of ZZZ given X=xX = xX=x. This comes from disintegrating the joint law pX,Zp_{X,Z}pX,Z​ of (X,Z)(X,Z)(X,Z), the image of ρ\rhoρ under (x,z,y)↦(x,z)(x,z,y)\mapsto(x,z)(x,z,y)↦(x,z).

These kernels are specific versions; off null sets they are determined only up to the chosen version. Each of these "integrals" is a Bochner integral. It is defined to be 000 at any point where the integrand is not integrable with respect to the relevant conditional law.

Error terms. Define

εX=∫(rX(x)−rXZ(x,z))2 dρ(x,z,y),εZ=∫(rZ(z)−rXZ(x,z))2 dρ(x,z,y),\varepsilon_X = \int \big(r_X(x) - r_{XZ}(x,z)\big)^2 \, d\rho(x,z,y), \qquad \varepsilon_Z = \int \big(r_Z(z) - r_{XZ}(x,z)\big)^2 \, d\rho(x,z,y),εX​=∫(rX​(x)−rXZ​(x,z))2dρ(x,z,y),εZ​=∫(rZ​(z)−rXZ​(x,z))2dρ(x,z,y),

and

εμ=εX+2εX εZ+εZ.\varepsilon_\mu = \varepsilon_X + 2\sqrt{\varepsilon_X\,\varepsilon_Z} + \varepsilon_Z .εμ​=εX​+2εX​εZ​​+εZ​.

Here ⋅\sqrt{\cdot}⋅​ is the real square root, which is 000 on negative inputs. Each of εX\varepsilon_XεX​ and εZ\varepsilon_ZεZ​ is a Bochner integral, set to 000 if its integrand is not ρ\rhoρ-integrable. Both are therefore always ≥0\ge 0≥0.

Claim. The theorem asserts the non-strict inequality

∫(μ(x)−rXZ(x,z))2 dρ(x,z,y)  ≤  εμ.\int \big(\mu(x) - r_{XZ}(x,z)\big)^2 \, d\rho(x,z,y) \;\le\; \varepsilon_\mu .∫(μ(x)−rXZ​(x,z))2dρ(x,z,y)≤εμ​.

The left-hand side is also a Bochner integral. It is taken to be 000 whenever (x,z,y)↦(μ(x)−rXZ(x,z))2(x,z,y)\mapsto(\mu(x) - r_{XZ}(x,z))^2(x,z,y)↦(μ(x)−rXZ​(x,z))2 is not ρ\rhoρ-integrable, and in that case the inequality holds trivially.

Two consequences of the zero conventions above:

  • If either squared-error integrand defining εX\varepsilon_XεX​ or εZ\varepsilon_ZεZ​ fails to be integrable, that term contributes 000 to the right-hand side.
  • The statement makes no use of the regression functions beyond these specific kernel-based versions.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

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