Theorem 4.1 (as proved): single-step planning
ProvedJEPAGeneralization.single_step_planning_regretLet be an action-conditioned co-occurrence model on a finite observation space with positive marginals and a finite nonempty action set . Let be a law of the initial and goal observations , with the same for all . Let be normalized at every action. For each , let minimize the planning loss over , and let maximize the value . Then
where and .
This bounds the regret of planning in latent space by the spectral pretraining risk plus a term that compares the goal marginals of the optimal and the planned action.
Formalization Note This is what the proof establishes (Appendix A.2, up to eq. (41)). The printed Theorem 4.1 has no second term, and it is false: there are examples that satisfy all its hypotheses with and right-hand side below . The proof's last steps bound the second term by and then take its expectation to be . Both steps fail. The first fails because the bracket can be negative while . The second fails because and depend on . The hypothesis is the paper's and is kept, although the stated conclusion does not need it. The normalization of is used by the proof in and is added. Ties in the arg min and arg max are allowed: the statement holds for every choice of minimizer and maximizer. The paper does not specify the law of , so it is an arbitrary .
import Mathlib import Definitions.Def_JEPAGeneralization_Basic open Finset
namespace JEPAGeneralization
theorem single_step_planning_regret {X A : Type*} [Fintype X] [Fintype A] [Nonempty A] {k : ℕ}
(pX : X → ℝ) (w : X → X → A → ℝ) (hw : IsCoOccurrence pX w)
(ρ : X → X → ℝ) (hρ : IsPairDist ρ)
(hgoal : ∀ a a' : A, ∑ x0, ∑ xg, ρ x0 xg * nextMarg w a xg = ∑ x0, ∑ xg, ρ x0 xg * nextMarg w a' xg)
(f : X → Fin k → ℝ) (g : (Fin k → ℝ) → A → Fin k → ℝ) (hfg : ∀ a, IsNormalized f g a)
(aT : X → X → A) (haT : ∀ x0 xg a, planLoss1 f g (aT x0 xg) x0 xg ≤ planLoss1 f g a x0 xg)
(aS : X → X → A) (haS : ∀ x0 xg a, value1 pX w a x0 xg ≤ value1 pX w (aS x0 xg) x0 xg) :
expRegret1 pX w ρ aT ≤
2 * cZero pX w ρ * (⨆ a, Real.sqrt (sJepaRisk pX w f g a)) +
∑ x0, ∑ xg, ρ x0 xg * ((nextMarg w (aS x0 xg) xg - nextMarg w (aT x0 xg) xg) *
dot (g (f x0) (aS x0 xg)) (f xg)) := by sorry
end JEPAGeneralizationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite set of observations and a finite, nonempty set of actions. Let be the latent dimension, with latent vectors in , the Euclidean inner product and the squared norm .
Data and hypotheses. The theorem is about real-valued functions and , written . These are assumed to form a co-occurrence model, meaning:
- for all ;
- and for every ;
- for every and ;
- the next-observation marginal is strictly positive for every and .
Since , the set is necessarily nonempty.
Let be a probability law on pairs of an initial and a goal observation: and . It is further assumed that the -average of the goal's next-marginal does not depend on the action:
Encoder and predictor. Let be an arbitrary encoder and an arbitrary predictor. They are assumed normalized for every action:
Since is nonempty, this forces .
The two action rules. Let be any rule that, for each pair, minimizes the one-step planning loss:
Let be any rule that, for each pair, maximizes the one-step value :
Ties may be broken arbitrarily in both rules.
Conclusion. The expected regret of is
Here the supremum over the finite nonempty set is a maximum. The theorem asserts
where and abbreviate and inside the sum. The constant is
The spectral JEPA risk is the squared Frobenius norm
This is the entrywise form of , where:
- is the normalized co-occurrence matrix;
- has columns ;
- has columns .
Remarks on the statement.
- The second term on the right-hand side is not a constant. It depends on , and the chosen rules , and its sign is not fixed by the hypotheses.
- All divisions are by strictly positive quantities.
- All square roots are of nonnegative quantities.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.