Theorem 1: identifiability of state and controlled transition
ProvedControlledWorldModels.identifiability_state_transitionAssume Assumptions 1–2. Let be an invertible observation map, measurable with measurable inverse. Let be a class of measurable predictors that realises the optimal conditional-mean predictor of every admissible encoder (Assumption 3). Minimize over measurable encoders with and over . Suppose
- Let be a global minimizer whose predictor is continuous. Then there is such that almost surely, almost surely, and
- The objective is at least for every admissible encoder and every , and .
- Conversely, for every , the encoder is admissible, and with the predictor it attains .
Every global minimizer of the action-conditioned predictive objective therefore recovers the latent state and the controlled conditional-mean dynamics up to one common orthogonal transformation.
Formalization Note Assumption 3's sentence "the learned predictor is continuous" is read as continuity of the minimizing predictor , not of every member of . A class consisting only of continuous predictors cannot realise every (see the mission report), so that reading would make the theorem vacuous. The minimum value is stated as a lower bound attained by ; need not belong to .
import Mathlib import Definitions.Def_ControlledWorldModels_Basic open MeasureTheory ProbabilityTheory
namespace ControlledWorldModels
theorem identifiability_state_transition {X : Type*} [MeasurableSpace X] {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
(μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
(hpol : IsJointGaussianPolicy μ) (htr : IsStationaryTransition A B μ ν)
(g : (Fin d → ℝ) ≃ᵐ X)
(Fc : Set ((Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ)) (hFc : IsRichPredictorClass A B μ ν Fc)
(hrep : 0 < repMargin A B μ) (hexc : 0 < transMargin μ) :
(∀ (h : X → Fin d → ℝ) (F : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ),
Measurable h → IsAdmissible (h ∘ g) → F ∈ Fc →
(∀ (h' : X → Fin d → ℝ) (F' : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ),
Measurable h' → IsAdmissible (h' ∘ g) → F' ∈ Fc →
loss A B μ ν (h ∘ g) F ≤ loss A B μ ν (h' ∘ g) F') →
Continuous (Function.uncurry F) →
∃ Q : Matrix.orthogonalGroup (Fin d) ℝ,
(∀ᵐ z ∂(stdGauss d), h (g z) = (Q : Matrix (Fin d) (Fin d) ℝ).mulVec z) ∧
(∀ᵐ w ∂μ, F (h (g w.1)) w.2 =
(Q : Matrix (Fin d) (Fin d) ℝ).mulVec (A.mulVec w.1 + B.mulVec w.2)) ∧
(∀ (y : Fin d → ℝ) (a : Fin m → ℝ), F y a = trueMean A B (Q : Matrix (Fin d) (Fin d) ℝ) y a)) ∧
(∀ (h' : X → Fin d → ℝ) (F' : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ),
Measurable h' → IsAdmissible (h' ∘ g) → F' ∈ Fc →
ENNReal.ofReal (optValue A B μ) ≤ loss A B μ ν (h' ∘ g) F') ∧
(covMat ν (fun x => x)).trace = optValue A B μ ∧
(∀ Q : Matrix.orthogonalGroup (Fin d) ℝ,
Measurable (fun x => (Q : Matrix (Fin d) (Fin d) ℝ).mulVec (g.symm x)) ∧
IsAdmissible ((fun x => (Q : Matrix (Fin d) (Fin d) ℝ).mulVec (g.symm x)) ∘ g) ∧
loss A B μ ν ((fun x => (Q : Matrix (Fin d) (Fin d) ℝ).mulVec (g.symm x)) ∘ g)
(trueMean A B (Q : Matrix (Fin d) (Fin d) ℝ)) = ENNReal.ofReal (optValue A B μ)) := by sorry
end ControlledWorldModelsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers and , a measurable space , real matrices and , a measure on whose points are written , and a measure on whose points are written . Write for the standard Gaussian product measure on , and . A sample is a triple drawn from the product measure . Its next state is
Hypotheses.
-
Policy law. is a Gaussian probability measure: every continuous linear functional has a real Gaussian law, possibly degenerate. Its (Bochner) mean is , and its first marginal (the law of ) is exactly . Nothing else is assumed about the action marginal or the dependence between and .
-
Transition. is a Gaussian probability measure with mean . The law of under is exactly . The covariance of is not otherwise constrained.
-
Observation map. is a measurable bijection with measurable inverse .
-
Encoders. Call admissible if is measurable and the pushforward of under is again .
-
Predictor class. is a set of functions such that:
- every is jointly measurable;
- for every admissible , some satisfies, for -almost every sample,
This is the conditional expectation of given the σ-algebra generated by the pair . By convention it is set to when is not integrable.
- Representation margin. Let , computed entrywise by Bochner integrals. For a square matrix , define and as the supremum and infimum of over unit vectors . The supremum or infimum of an empty set is taken to be . The hypothesis is
When the unit sphere is empty, so this quantity is and the hypothesis cannot hold.
- Transition margin. Let
The hypothesis is , with the same convention as above. When this quantity is and the hypothesis cannot hold.
Loss and reference quantities. For an encoder and a predictor , the loss is the extended-real value in
Encoders enter only through the composite , which acts on latent states.
Set the real number , and write for its value as an extended real.
For a matrix , define by
Conclusions. Under these hypotheses, all four of the following hold.
(i) Characterisation of minimisers. Take any and any satisfying all of the following:
- is measurable;
- is admissible;
- ;
- for every measurable with admissible and every ;
- is jointly continuous on .
Then there is an orthogonal matrix (so ) such that:
- for -almost every ;
- for -almost every ;
- for every and .
(ii) Lower bound. For every measurable with admissible and every ,
(iii) Noise trace. The trace of the covariance matrix of , computed by Bochner integrals, equals :
(iv) Attainment by every orthogonal matrix. For every orthogonal :
- the map on is measurable;
- the induced latent encoder is admissible;
- the loss of this encoder paired with is exactly :
Clause (iv) does not assert that belongs to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.