Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 9: uniform single-batch exclusion

Open
GoodViewsNotEnough.uniform_single_batch_exclusion

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

characteristic-functionepps-pulleyjepanonuniquenessself-supervised-learning

In the 512-dimensional model, draw one batch B\mathcal BB of N=256N=256N=256 i.i.d. scenes with eight independent cube nuisances per scene, and fix it. Let

F^B(h)=1NVk∑i,v∥hiv−hˉi,G∥2+150EθR^B,θ(h),\widehat F_{\mathcal B}(h)=\frac1{NVk}\sum_{i,v}\|h_{iv}-\bar h_{i,G}\|^2+\frac1{50}\mathbb{E}_\theta\widehat R_{\mathcal B,\theta}(h),FB​(h)=NVk1​i,v∑​∥hiv​−hˉi,G​∥2+501​Eθ​RB,θ​(h),

where hiv=h(Si,Uiv)h_{iv}=h(S_i,U_{iv})hiv​=h(Si​,Uiv​) and hˉi,G\bar h_{i,G}hˉi,G​ is the mean of the G=2G=2G=2 global views. The constraints are the population whitening constraints Eh=0\mathbb{E}h=0Eh=0, Ehh⊤=I512\mathbb{E}hh^\top=I_{512}Ehh⊤=I512​. Let rrr be a complete centred orthonormal scene basis. Then, with probability at least 0.8280.8280.828 over B\mathcal BB:

  1. every global minimiser of F^B\widehat F_{\mathcal B}FB​ over whitened encoders has strictly positive population nuisance fraction u(h)>0u(h)>0u(h)>0;
  2. every minimiser of F^B(hW)\widehat F_{\mathcal B}(h_W)FB​(hW​) over the linear Stiefel class W=[A,B]W=[A,B]W=[A,B], WW⊤=IWW^\top=IWW⊤=I, satisfies
u(W)=∥B∥F2512>10−12.u(W)=\frac{\|B\|_F^2}{512}>10^{-12}.u(W)=512∥B∥F2​​>10−12.

Formalization Note The theorem is stated for a fixed basis rrr, as in the setting of Appendix D.1. The global views are the first two of the eight views of each example.

Preamble
import Mathlib
import Definitions.Def_GoodViewsNotEnough_Basic

open MeasureTheory Complex
Formal statement
namespace GoodViewsNotEnough

theorem uniform_single_batch_exclusion (r : Fin 513 → Fin 512 → ℝ)
    (hr : IsCenteredOrthonormalBasis r) :
    ENNReal.ofReal (828 / 1000) ≤ batchLaw {B |
      (∀ h, IsWhitenedHD h → IsMinOn (batchObjective B) {h | IsWhitenedHD h} h →
        0 < nuisanceFrac h) ∧
      (∀ W, IsStiefel W →
        IsMinOn (fun W => batchObjective B (linEncoder r W)) {W | IsStiefel W} W →
        nuisanceFrac (linEncoder r W) = (∑ a, ∑ b, W a (Sum.inr b) ^ 2) / 512 ∧
        1 / 10 ^ 12 < nuisanceFrac (linEncoder r W))} := by sorry

end GoodViewsNotEnough
Source
Anran Xu, Good Views Are Not Enough: Global Counterexamples for Gaussian-Regularized JEPAs, arXiv:2611.12137v1 (2026), Appendix E, Theorem 9, eqs. (28)-(29), p. 20
Read-back

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

Setting. There are 513513513 scenes s∈{0,…,512}s \in \{0,\dots,512\}s∈{0,…,512} with prior probabilities

p0=p1=14,ps=11022(2≤s≤512).p_0 = p_1 = \tfrac14, \qquad p_s = \tfrac{1}{1022} \quad (2 \le s \le 512).p0​=p1​=41​,ps​=10221​(2≤s≤512).

There are 25122^{512}2512 nuisances U∈{true,false}512U \in \{\text{true},\text{false}\}^{512}U∈{true,false}512, each with weight 2−5122^{-512}2−512. The nuisance UUU is identified with the sign vector ε(U)∈{−1,1}512\varepsilon(U) \in \{-1,1\}^{512}ε(U)∈{−1,1}512, where ε(U)b=1\varepsilon(U)_b = 1ε(U)b​=1 if UbU_bUb​ is true and −1-1−1 otherwise.

An encoder is an arbitrary function hhh assigning to each scene–nuisance pair (s,U)(s,U)(s,U) a vector h(s,U)∈R512h(s,U) \in \mathbb{R}^{512}h(s,U)∈R512. No linearity, continuity or other structure is assumed.

The population mean of a quantity f(s,U)f(s,U)f(s,U) is

Ef=∑s∑Ups 2−512f(s,U).\mathbb{E} f = \sum_{s}\sum_{U} p_s\, 2^{-512} f(s,U).Ef=s∑​U∑​ps​2−512f(s,U).

Hypothesis. The theorem is stated for every function rrr from scenes to R512\mathbb{R}^{512}R512 satisfying, for all coordinates a,b∈{1,…,512}a,b \in \{1,\dots,512\}a,b∈{1,…,512},

∑sps r(s)a=0,∑sps r(s)a r(s)b=δab.\sum_s p_s\, r(s)_a = 0, \qquad \sum_s p_s\, r(s)_a\, r(s)_b = \delta_{ab}.s∑​ps​r(s)a​=0,s∑​ps​r(s)a​r(s)b​=δab​.

No other hypothesis appears.

Batches and their law. A batch BBB consists of 256256256 examples iii. Each example has a scene SiS_iSi​ and 888 nuisances Ui,0,…,Ui,7U_{i,0},\dots,U_{i,7}Ui,0​,…,Ui,7​, called views.

The measure on batches puts mass

P(B)=∏i=1256pSi (2−512)8P(B) = \prod_{i=1}^{256} p_{S_i}\,\big(2^{-512}\big)^8P(B)=i=1∏256​pSi​​(2−512)8

on each batch BBB. This means the scenes are i.i.d. with law ppp, and all 204820482048 nuisances are i.i.d. uniform, independent of the scenes. The total mass is 111. The measure of a set of batches is the sum of P(B)P(B)P(B) over the batches in it.

Whitened encoders. An encoder hhh is whitened if, for all a,ba,ba,b,

E ha=0,E hahb=δab.\mathbb{E}\, h_a = 0, \qquad \mathbb{E}\, h_a h_b = \delta_{ab}.Eha​=0,Eha​hb​=δab​.

Nuisance fraction. Write mh(s)=∑U2−512h(s,U)m_h(s) = \sum_U 2^{-512} h(s,U)mh​(s)=∑U​2−512h(s,U) for the conditional mean of hhh given the scene. The nuisance fraction of hhh is

u(h)=1512 E ∥h(S,U)−mh(S)∥2,u(h) = \frac{1}{512}\,\mathbb{E}\,\big\|h(S,U) - m_h(S)\big\|^2,u(h)=5121​E​h(S,U)−mh​(S)​2,

where ∥⋅∥\|\cdot\|∥⋅∥ is the Euclidean norm.

Single-batch objective. For a batch BBB and an encoder hhh, write hiv=h(Si,Ui,v)h_{iv} = h(S_i, U_{i,v})hiv​=h(Si​,Ui,v​). The single-batch objective is

F^B(h)=1256⋅8⋅512∑i=1256∑v=07∥hiv−12(hi0+hi1)∥2  +  150∫S511R^B,θ(h) dσ(θ).\hat F_B(h) = \frac{1}{256\cdot 8\cdot 512}\sum_{i=1}^{256}\sum_{v=0}^{7}\Big\|h_{iv} - \tfrac12\big(h_{i0}+h_{i1}\big)\Big\|^2 \;+\; \frac{1}{50}\int_{\mathbb{S}^{511}} \hat R_{B,\theta}(h)\, d\sigma(\theta).F^B​(h)=256⋅8⋅5121​i=1∑256​v=0∑7​​hiv​−21​(hi0​+hi1​)​2+501​∫S511​R^B,θ​(h)dσ(θ).

Note that the sum over vvv includes the two averaged views v=0,1v=0,1v=0,1 themselves. In the second term:

  • σ\sigmaσ is the normalized (uniform probability) surface measure on the unit sphere S511⊂R512\mathbb{S}^{511} \subset \mathbb{R}^{512}S511⊂R512.
  • The pooled statistic is
R^B,θ(h)=2048∑j=016ωj∣12048∑i=1256∑v=07e i tj θ⊤hiv−g(tj)∣2.\hat R_{B,\theta}(h) = 2048 \sum_{j=0}^{16} \omega_j \left|\frac{1}{2048}\sum_{i=1}^{256}\sum_{v=0}^{7} e^{\,\mathrm{i}\, t_j\, \theta^{\top} h_{iv}} - g(t_j)\right|^2 .R^B,θ​(h)=2048j=0∑16​ωj​​20481​i=1∑256​v=0∑7​eitj​θ⊤hiv​−g(tj​)​2.
  • The nodes are tj=3j/16t_j = 3j/16tj​=3j/16, and g(t)=e−t2/2g(t) = e^{-t^2/2}g(t)=e−t2/2.
  • The weights are ωj=316 dj g(tj)\omega_j = \tfrac{3}{16}\, d_j\, g(t_j)ωj​=163​dj​g(tj​), with d0=d16=1d_0 = d_{16} = 1d0​=d16​=1 and dj=2d_j = 2dj​=2 otherwise.

Linear encoders. A matrix W=[A    BW]W = [A \;\; B_W]W=[ABW​] is 512×1024512 \times 1024512×1024, split into two 512×512512 \times 512512×512 blocks AAA and BWB_WBW​. It defines the encoder

hW(s,U)=A r(s)+BW ε(U).h_W(s,U) = A\, r(s) + B_W\, \varepsilon(U).hW​(s,U)=Ar(s)+BW​ε(U).

WWW is called Stiefel if WW⊤=I512W W^{\top} = I_{512}WW⊤=I512​.

Conclusion. The set of batches BBB satisfying both conditions (1) and (2) below has probability at least 0.8280.8280.828 under the batch law.

  1. Whitened encoders. For every whitened encoder hhh that is a global minimizer of F^B\hat F_BF^B​ over the set of all whitened encoders (that is, F^B(h)≤F^B(h′)\hat F_B(h) \le \hat F_B(h')F^B​(h)≤F^B​(h′) for every whitened h′h'h′), one has u(h)>0u(h) > 0u(h)>0.

  2. Linear Stiefel encoders. For every Stiefel WWW that globally minimizes W′↦F^B(hW′)W' \mapsto \hat F_B(h_{W'})W′↦F^B​(hW′​) over all Stiefel W′W'W′, both of the following hold:

u(hW)=1512∑a=1512∑b=1512(BW)ab2,u(hW)>10−12.u(h_W) = \frac{1}{512}\sum_{a=1}^{512}\sum_{b=1}^{512} (B_W)_{ab}^2, \qquad u(h_W) > 10^{-12}.u(hW​)=5121​a=1∑512​b=1∑512​(BW​)ab2​,u(hW​)>10−12.

Edge cases.

  • Both conditions only constrain minimizers. The theorem does not assert that any minimizer exists.
  • For a batch where F^B\hat F_BF^B​ has no minimizer over whitened encoders, condition (1) holds vacuously for that batch. The same applies to condition (2) for Stiefel matrices.
  • The minimizers in (1) and (2) are global minimizers for the single fixed batch BBB. They are not minimizers of an averaged objective.
  • The encoders in (1) are arbitrary functions, not related to rrr. Only the encoders in (2) involve rrr.
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