Lemma A.4: the tuple risk is unbiased for the empirical JEPA risk
ProvedJEPAGeneralization.tuple_risk_unbiasedLet be an action-conditioned co-occurrence model on a finite observation space with positive marginals. Fix , , , and a dataset . Draw a uniform permutation of and, for , set , then draw and , all independently given . Then the tuple risk is an unbiased estimator of the empirical JEPA risk:
where is the empirical JEPA risk of Definition A.1 on .
Formalization Note The expectation over is the average over all permutations, and the expectations over are exact sums against the transition probabilities. As in Lemma A.2, in the first term of Definition A.1 is read as .
import Mathlib import Definitions.Def_JEPAGeneralization_Basic open Finset
namespace JEPAGeneralization
theorem tuple_risk_unbiased {X A : Type*} [Fintype X] {k : ℕ}
(pX : X → ℝ) (w : X → X → A → ℝ) (hw : IsCoOccurrence pX w)
(f : X → Fin k → ℝ) (g : (Fin k → ℝ) → A → Fin k → ℝ) (a : A) (m : ℕ) (hm : 1 ≤ m)
(D : Fin (2 * m) → X) :
expEmpRiskS pX w f g a D = empRiskN pX w f g a D := by sorry
end JEPAGeneralizationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite set of observations and any set of actions. Let be the latent dimension; is allowed. The theorem is stated for every choice of the following data:
-
a function and a function , written , satisfying the co-occurrence hypotheses:
- for all ;
- ;
- for every ;
- for every and ;
- the second marginal is strictly positive for every and .
These force to be nonempty.
-
an arbitrary encoder and an arbitrary predictor . No normalization, boundedness, or membership in any function class is assumed.
-
a fixed action .
-
an integer .
-
an arbitrary dataset of observations, indexed by . Repetitions are allowed. No probabilistic assumption is made on how arises; the statement holds for each fixed .
Notation. Write for the Euclidean inner product on . Write . The transition probability is
This is well defined because . By the hypotheses, it is nonnegative and sums to over .
Left-hand side: the expected tuple risk. For a permutation of and , the -th pair of indices is . Given and sequences and , the -th tuple is
Its loss is
and the tuple risk is . The left-hand side averages this risk uniformly over all permutations. For each permutation, it weights each by the product of transition probabilities:
In words:
- is drawn from the transition law out of ;
- is drawn from the transition law out of the partner ;
- all these draws are independent given .
Right-hand side: the empirical JEPA risk with :
The second sum runs over ordered pairs of distinct indices , not over distinct values. If the dataset contains repeated observations, pairs with but are included. Since , we have and , so no division by zero occurs.
Assertion. Under the co-occurrence hypotheses, for every , every , and every dataset of length :
The averaged tuple risk exactly equals the empirical JEPA risk of , with exact equality of real numbers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.