Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equation (3): expansion of the mixture loss

Proved
SameStatePairs.mixture_loss_expansion

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

identifiabilityjepaorthogonal-procrustesrepresentation-learningspectral-methods

Let ZZZ be a finite world with p(z)>0p(z)>0p(z)>0 and ∑zp(z)=1\sum_zp(z)=1∑z​p(z)=1, let XXX be a finite observation space with channel PX∣ZP_{X\mid Z}PX∣Z​ and observation law PX(x)>0P_X(x)>0PX​(x)>0, and let 0≤ε≤10\le\varepsilon\le10≤ε≤1. Let P+ε=εPs+(1−ε)PX⊗PXP_+^\varepsilon=\varepsilon P_s+(1-\varepsilon)P_X\otimes P_XP+ε​=εPs​+(1−ε)PX​⊗PX​, where PsP_sPs​ is the same-state pair law, and let Ts=AA∗T_s=AA^*Ts​=AA∗. For every encoder f:X→Rkf:X\to\mathbb{R}^kf:X→Rk that is centred and whitened under PXP_XPX​,

Lε(f)=E(X,X′)∼P+ε∥f(X)−f(X′)∥2=2k−2ε∑j=1k⟨fj,Tsfj⟩L2(PX).L_\varepsilon(f)=\mathbb{E}_{(X,X')\sim P_+^\varepsilon}\|f(X)-f(X')\|^2=2k-2\varepsilon\sum_{j=1}^k\langle f_j,T_sf_j\rangle_{L^2(P_X)}.Lε​(f)=E(X,X′)∼P+ε​​∥f(X)−f(X′)∥2=2k−2εj=1∑k​⟨fj​,Ts​fj​⟩L2(PX​)​.

This identity turns the loss into a trace against TsT_sTs​, the starting point of Theorem 1.

Formalization Note The world and the observation space are finite, and every observation has positive probability, so L2(PX)L^2(P_X)L2(PX​) is the space of all functions on XXX.

Preamble
import Mathlib
import Definitions.Def_SameStatePairs_Basic

open Matrix
Formal statement
namespace SameStatePairs

theorem mixture_loss_expansion {Z X : Type*} [Fintype Z] [Fintype X] [DecidableEq X] {k : ℕ}
    (p : Z → ℝ) (hp : ∀ z, 0 < p z) (hp1 : ∑ z, p z = 1)
    (κ : Z → X → ℝ) (hκ : IsChannel κ) (hX : ∀ x, 0 < obsLaw p κ x)
    (ε : ℝ) (hε0 : 0 ≤ ε) (hε1 : ε ≤ 1)
    (f : X → Fin k → ℝ) (hfc : IsCentered (obsLaw p κ) f) (hfw : IsWhitened (obsLaw p κ) f) :
    pairLoss (mixPairLaw p κ ε) f = 2 * k - 2 * ε * topQuad p κ f := by sorry

end SameStatePairs
Source
Xin Li, Same-State Pairs Make One JEPA Proof of the Platonic Representation Hypothesis Vacuous: A Correction and a Gauge Ledger, arXiv:2611.16182v1 (2026), Section 4.1, eq. (3), p. 6; derived in Appendix A.1, eq. (5), p. 11
Read-back

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

Let ZZZ (world states) and XXX (observations) be finite sets, and let k≥0k \ge 0k≥0 be a natural number (the embedding dimension; k=0k = 0k=0 is allowed). The statement assumes the following.

  • State law. p:Z→Rp : Z \to \mathbb{R}p:Z→R satisfies p(z)>0p(z) > 0p(z)>0 for every z∈Zz \in Zz∈Z and ∑zp(z)=1\sum_{z} p(z) = 1∑z​p(z)=1. In particular ZZZ is nonempty.

  • Channel. κ:Z×X→R\kappa : Z \times X \to \mathbb{R}κ:Z×X→R satisfies κ(z,x)≥0\kappa(z,x) \ge 0κ(z,x)≥0 for all z,xz, xz,x and ∑xκ(z,x)=1\sum_{x} \kappa(z,x) = 1∑x​κ(z,x)=1 for every zzz. Together with Z≠∅Z \neq \emptysetZ=∅, this forces XXX to be nonempty.

  • Observation law. Define PX(x)=∑zp(z) κ(z,x)P_X(x) = \sum_{z} p(z)\,\kappa(z,x)PX​(x)=∑z​p(z)κ(z,x). It is assumed that PX(x)>0P_X(x) > 0PX​(x)>0 for every x∈Xx \in Xx∈X. This is an extra hypothesis, not implied by the others, because a column of κ\kappaκ could vanish.

  • Mixing weight. ε∈R\varepsilon \in \mathbb{R}ε∈R with 0≤ε≤10 \le \varepsilon \le 10≤ε≤1. Both endpoints are allowed.

  • Encoder. f:X→Rkf : X \to \mathbb{R}^kf:X→Rk, with coordinates f1,…,fk:X→Rf_1, \dots, f_k : X \to \mathbb{R}f1​,…,fk​:X→R. It is assumed to be:

    • centred under PXP_XPX​: ∑xPX(x) fi(x)=0\sum_x P_X(x)\, f_i(x) = 0∑x​PX​(x)fi​(x)=0 for every iii;
    • whitened under PXP_XPX​: ∑xPX(x) fi(x) fj(x)=δij\sum_x P_X(x)\, f_i(x)\, f_j(x) = \delta_{ij}∑x​PX​(x)fi​(x)fj​(x)=δij​ for all i,ji, ji,j.

    So f1,…,fkf_1, \dots, f_kf1​,…,fk​ are orthonormal in L2(PX)L^2(P_X)L2(PX​) and orthogonal to the constants. When k≥1k \ge 1k≥1 this is possible only if k≤∣X∣−1k \le |X| - 1k≤∣X∣−1. For k≥∣X∣k \ge |X|k≥∣X∣ and k≥1k \ge 1k≥1, no such fff exists and the statement holds vacuously.

The objects in the conclusion are defined as follows. The same-state pair law is

Ps(x,x′)=∑zp(z) κ(z,x) κ(z,x′),P_s(x,x') = \sum_{z} p(z)\,\kappa(z,x)\,\kappa(z,x'),Ps​(x,x′)=z∑​p(z)κ(z,x)κ(z,x′),

and the mixed positive-pair law is

P+ε(x,x′)=ε Ps(x,x′)+(1−ε) PX(x) PX(x′).P_+^{\varepsilon}(x,x') = \varepsilon\, P_s(x,x') + (1-\varepsilon)\, P_X(x)\, P_X(x').P+ε​(x,x′)=εPs​(x,x′)+(1−ε)PX​(x)PX​(x′).

The operator TsT_sTs​ is the X×XX \times XX×X matrix

Ts(x,x′)=Ps(x,x′)PX(x),T_s(x,x') = \frac{P_s(x,x')}{P_X(x)},Ts​(x,x′)=PX​(x)Ps​(x,x′)​,

acting on a function φ\varphiφ by (Tsφ)(x)=∑x′Ts(x,x′) φ(x′)(T_s \varphi)(x) = \sum_{x'} T_s(x,x')\,\varphi(x')(Ts​φ)(x)=∑x′​Ts​(x,x′)φ(x′). Finally, ∥⋅∥2\|\cdot\|^2∥⋅∥2 is the squared Euclidean norm on Rk\mathbb{R}^kRk.

The theorem asserts the exact equality

∑x∈X∑x′∈XP+ε(x,x′) ∥f(x)−f(x′)∥2  =  2k  −  2ε∑j=1k∑x∈XPX(x) fj(x) (Tsfj)(x).\sum_{x \in X} \sum_{x' \in X} P_+^{\varepsilon}(x,x')\, \bigl\| f(x) - f(x') \bigr\|^2 \;=\; 2k \;-\; 2\varepsilon \sum_{j=1}^{k} \sum_{x \in X} P_X(x)\, f_j(x)\, (T_s f_j)(x).x∈X∑​x′∈X∑​P+ε​(x,x′)​f(x)−f(x′)​2=2k−2εj=1∑k​x∈X∑​PX​(x)fj​(x)(Ts​fj​)(x).

The left side is the expected squared prediction error under P+εP_+^{\varepsilon}P+ε​. The double sum on the right is ∑j⟨fj,Tsfj⟩L2(PX)\sum_j \langle f_j, T_s f_j \rangle_{L^2(P_X)}∑j​⟨fj​,Ts​fj​⟩L2(PX​)​. Here kkk is regarded as a real number.

When ε=0\varepsilon = 0ε=0, the claim is that the loss under the independent product law PX⊗PXP_X \otimes P_XPX​⊗PX​ equals 2k2k2k. When ε=1\varepsilon = 1ε=1, the loss under the pure same-state law equals 2k−2∑j⟨fj,Tsfj⟩2k - 2\sum_j \langle f_j, T_s f_j \rangle2k−2∑j​⟨fj​,Ts​fj​⟩. When k=0k = 0k=0, both sides are 000.

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