Theorem 4: optimal latent planning
ProvedLeJEPAWorldModel.optimal_latent_planningLet and let . Consider a finite-horizon control problem on with:
- actions in a set ;
- transition probabilities that are measurable in ;
- a stage cost and a terminal cost , both measurable in .
Assume the costs are rotation-invariant:
Let the learned-latent problem have state , transitions equal to the image under of , and the same costs. Then for every horizon and every initial state , the two problems have the same value,
and the same optimal plans: a plan is optimal for the learned problem from if and only if it is optimal for the true problem from .
Plans computed in the learned latent are therefore the plans of the true world.
Formalization Note The paper writes . Optimal plans need not be unique, so the Lean statement says that the two sets of optimal plans coincide, which is what the proof establishes. The value is the infimum of the expected cost over open-loop plans of length .
import Mathlib import Definitions.Def_LeJEPAWorldModel_Basic open MeasureTheory ProbabilityTheory Filter Topology open scoped ENNReal
namespace LeJEPAWorldModel
theorem optimal_latent_planning {N : ℕ} {A : Type*} (Q : Matrix (Fin N) (Fin N) ℝ)
(hQ : Q ∈ Matrix.orthogonalGroup (Fin N) ℝ)
(P : (Fin N → ℝ) → A → Measure (Fin N → ℝ)) (hP : ∀ z a, IsProbabilityMeasure (P z a))
(hPmeas : ∀ a s, MeasurableSet s → Measurable fun z => P z a s)
(c : (Fin N → ℝ) → A → ℝ) (cT : (Fin N → ℝ) → ℝ)
(hc : ∀ a, Measurable fun z => c z a) (hcT : Measurable cT)
(hinv : ∀ R ∈ Matrix.orthogonalGroup (Fin N) ℝ, ∀ z a, c (R.mulVec z) a = c z a)
(hinvT : ∀ R ∈ Matrix.orthogonalGroup (Fin N) ℝ, ∀ z, cT (R.mulVec z) = cT z)
(T : ℕ) (z0 : Fin N → ℝ) :
optimalValue (pushDynamics Q P) c cT T (Q.mulVec z0) = optimalValue P c cT T z0 ∧
∀ as : List A, IsOptimalPlan (pushDynamics Q P) c cT T (Q.mulVec z0) as ↔
IsOptimalPlan P c cT T z0 as := by sorry
end LeJEPAWorldModelRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a natural number (the case , where is a single point, is allowed) and an arbitrary type of actions. may be empty. The theorem takes the following data and hypotheses.
- Orthogonal matrix. is a real matrix in the orthogonal group, so .
- Transition measures. assigns to each state and action a measure on (Borel σ-algebra). Two hypotheses apply:
- every is a probability measure;
- for every action and every measurable set , the map is measurable.
- Costs. is a real-valued running cost and is a real-valued terminal cost.
- For every , the map is measurable, and is measurable.
- No boundedness or integrability assumption is made on either cost.
- Orthogonal invariance of the costs. For every orthogonal matrix , every and every :
Since the orthogonal group acts transitively on each sphere , this is equivalent to and depending on only through its Euclidean norm .
- Horizon and start. is a horizon ( allowed) and is an initial state.
Plan cost. For a finite list of actions and dynamics , the cost is defined recursively:
Here the integral is the Bochner integral. By convention it equals whenever the integrand is not integrable with respect to .
Optimal value. The optimal value is
This infimum is taken in , with the convention that it equals in two cases:
- the index set is empty, which happens exactly when and ;
- the set of costs is unbounded below.
Optimal plan. A list is an optimal plan for if both hold:
- it has length exactly ;
- for every list of length .
This notion does not refer to .
Pushed-forward dynamics. is defined by
That is, .
Conclusion. Under all the above hypotheses, both of the following hold.
- Equal optimal values. The optimal value for started at equals the optimal value for started at :
where both sides use the same costs and horizon . This includes the junk value arising from the infimum conventions above. 2. Same optimal plans. For every list of actions, is an optimal plan for if and only if it is an optimal plan for .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.