Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Controlled linear–Gaussian world model, JEPA objective and identification margins

Definition
ControlledWorldModels_Basic

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

hermite-expansionidentifiabilityjepalinear-gaussian-dynamicsworld-models

Objects of Sections 3.1–3.4 and Appendices A–B of Zhang, Guan, Zhang, Li, Zhang and Li (2026).

  1. Latent system (Assumptions 1–2). The latent state is zt∈Rdz_t\in\mathbb{R}^dzt​∈Rd and the action is at∈Rma_t\in\mathbb{R}^mat​∈Rm. Their joint law μ=Pπ(zt,at)\mu=P_\pi(z_t,a_t)μ=Pπ​(zt​,at​) is a centered jointly Gaussian law on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm whose state marginal is N(0,Id)\mathcal N(0,I_d)N(0,Id​). The next state is zt+1=Azt+Bat+ξtz_{t+1}=Az_t+Ba_t+\xi_tzt+1​=Azt​+Bat​+ξt​, where the noise ξt∼ν\xi_t\sim\nuξt​∼ν is a centered Gaussian independent of (zt,at)(z_t,a_t)(zt​,at​), and stationarity holds: zt+1∼N(0,Id)z_{t+1}\sim\mathcal N(0,I_d)zt+1​∼N(0,Id​). One transition is the sample ((zt,at),ξt)∼μ⊗ν((z_t,a_t),\xi_t)\sim\mu\otimes\nu((zt​,at​),ξt​)∼μ⊗ν. ∥v∥2=∑ivi2\|v\|^2=\sum_iv_i^2∥v∥2=∑i​vi2​ is the squared Euclidean norm.
  2. Encoders and predictors. Observations are xt=g(zt)x_t=g(z_t)xt​=g(zt​) for an invertible, bi-measurable map ggg. An encoder hhh is admissible if it is measurable and h(xt)∼N(0,Id)h(x_t)\sim\mathcal N(0,I_d)h(xt​)∼N(0,Id​), i.e. the pushforward of N(0,Id)\mathcal N(0,I_d)N(0,Id​) under e=h∘ge=h\circ ge=h∘g is N(0,Id)\mathcal N(0,I_d)N(0,Id​). A predictor is a map F:Rd×Rm→RdF:\mathbb{R}^d\times\mathbb{R}^m\to\mathbb{R}^dF:Rd×Rm→Rd.
  3. Objective (eq. 1). Lπ(h,F)=E ∥h(xt+1)−F(h(xt),at)∥2∈[0,∞]\mathcal L_\pi(h,F)=\mathbb E\,\|h(x_{t+1})-F(h(x_t),a_t)\|^2\in[0,\infty]Lπ​(h,F)=E∥h(xt+1​)−F(h(xt​),at​)∥2∈[0,∞].
  4. Optimal predictor and predictable energy. Fh⋆(h(xt),at)=E[h(xt+1)∣h(xt),at]F_h^\star(h(x_t),a_t)=\mathbb E[h(x_{t+1})\mid h(x_t),a_t]Fh⋆​(h(xt​),at​)=E[h(xt+1​)∣h(xt​),at​] is the conditional expectation given the σ\sigmaσ-algebra generated by (h(xt),at)(h(x_t),a_t)(h(xt​),at​). Its risk is Lπ(h,Fh⋆)\mathcal L_\pi(h,F_h^\star)Lπ​(h,Fh⋆​), and the predictable energy is J(h)=E∥Fh⋆(h(xt),at)∥2J(h)=\mathbb E\|F_h^\star(h(x_t),a_t)\|^2J(h)=E∥Fh⋆​(h(xt​),at​)∥2.
  5. Predictor class (Assumption 3). A class F\mathcal FF of measurable predictors is rich if, for every admissible encoder hhh, it contains some FFF with F(h(xt),at)=Fh⋆(h(xt),at)F(h(x_t),a_t)=F_h^\star(h(x_t),a_t)F(h(xt​),at​)=Fh⋆​(h(xt​),at​) almost surely.
  6. Margins (eqs. 2–3). Rπ=Cov⁡(Azt+Bat)R_\pi=\operatorname{Cov}(Az_t+Ba_t)Rπ​=Cov(Azt​+Bat​) and γrep(π)=λmin⁡(Rπ)−λmax⁡(Rπ)2\gamma_{\rm rep}(\pi)=\lambda_{\min}(R_\pi)-\lambda_{\max}(R_\pi)^2γrep​(π)=λmin​(Rπ​)−λmax​(Rπ​)2. Σtr(π)=Ezt[Cov⁡(at∣zt)]=E[(at−E[at∣zt])(at−E[at∣zt])⊤]\Sigma_{\rm tr}(\pi)=\mathbb E_{z_t}[\operatorname{Cov}(a_t\mid z_t)]=\mathbb E[(a_t-\mathbb E[a_t\mid z_t])(a_t-\mathbb E[a_t\mid z_t])^\top]Σtr​(π)=Ezt​​[Cov(at​∣zt​)]=E[(at​−E[at​∣zt​])(at​−E[at​∣zt​])⊤] and ρtr(π)=λmin⁡(Σtr(π))\rho_{\rm tr}(\pi)=\lambda_{\min}(\Sigma_{\rm tr}(\pi))ρtr​(π)=λmin​(Σtr​(π)). For a symmetric matrix, λmax⁡\lambda_{\max}λmax​ and λmin⁡\lambda_{\min}λmin​ are the maximum and minimum of x⊤Mxx^\top Mxx⊤Mx over unit vectors xxx, and ∥M∥op\|M\|_{\rm op}∥M∥op​ is the Euclidean operator norm.
  7. Error terms (Section 3.3). L⋆=d−tr⁡Rπ\mathcal L^\star=d-\operatorname{tr}R_\piL⋆=d−trRπ​, Δenc=Lπ(h,Fh⋆)−L⋆\Delta_{\rm enc}=\mathcal L_\pi(h,F_h^\star)-\mathcal L^\starΔenc​=Lπ​(h,Fh⋆​)−L⋆ and Δpred=E∥F(h(xt),at)−Fh⋆(h(xt),at)∥2\Delta_{\rm pred}=\mathbb E\|F(h(x_t),a_t)-F_h^\star(h(x_t),a_t)\|^2Δpred​=E∥F(h(xt​),at​)−Fh⋆​(h(xt​),at​)∥2.
  8. Hermite quantities (Appendices A–B). Write e=h∘ge=h\circ ge=h∘g. Under z∼N(0,Id)z\sim\mathcal N(0,I_d)z∼N(0,Id​) its linear Hermite component is LzLzLz with Lij=E[ei(z)zj]L_{ij}=\mathbb E[e_i(z)z_j]Lij​=E[ei​(z)zj​]. Then τ1=tr⁡(LL⊤)\tau_1=\operatorname{tr}(LL^\top)τ1​=tr(LL⊤), and the higher-order energy is r=E∥e(z)−Lz∥2r=\mathbb E\|e(z)-Lz\|^2r=E∥e(z)−Lz∥2.
  9. Counterfactual quantities (Section 3.4). For Q∈O(d)Q\in O(d)Q∈O(d), F⋆(y,a)=QAQ⊤y+QBaF^\star(y,a)=QAQ^\top y+QBaF⋆(y,a)=QAQ⊤y+QBa. The regression function is μπ(z)=E[atzt⊤] z\mu_\pi(z)=\mathbb E[a_tz_t^\top]\,zμπ​(z)=E[at​zt⊤​]z. The on-policy excess risk is Eπ(F)=E∥Qzt+1−F(Qzt,at)∥2−E∥Qzt+1−F⋆(Qzt,at)∥2\mathcal E_\pi(F)=\mathbb E\|Qz_{t+1}-F(Qz_t,a_t)\|^2-\mathbb E\|Qz_{t+1}-F^\star(Qz_t,a_t)\|^2Eπ​(F)=E∥Qzt+1​−F(Qzt​,at​)∥2−E∥Qzt+1​−F⋆(Qzt​,at​)∥2 (eq. 5). The counterfactual error is Ecf(F)=E∥F(Qz,acf)−F⋆(Qz,acf)∥2\mathcal E_{\rm cf}(F)=\mathbb E\|F(Qz,a_{\rm cf})-F^\star(Qz,a_{\rm cf})\|^2Ecf​(F)=E∥F(Qz,acf​)−F⋆(Qz,acf​)∥2 with acf=μπ(z)+ηcfa_{\rm cf}=\mu_\pi(z)+\eta_{\rm cf}acf​=μπ​(z)+ηcf​, z∼N(0,Id)z\sim\mathcal N(0,I_d)z∼N(0,Id​) and ηcf∼N(0,Im)\eta_{\rm cf}\sim\mathcal N(0,I_m)ηcf​∼N(0,Im​) independent (eq. 6). The policy family of Corollary 1 has (zt,at)(z_t,a_t)(zt​,at​) distributed as (z,1−σ2Kz+ση)(z,\sqrt{1-\sigma^2}Kz+\sigma\eta)(z,1−σ2​Kz+ση) with z∼N(0,Id)z\sim\mathcal N(0,I_d)z∼N(0,Id​) and η∼N(0,Im)\eta\sim\mathcal N(0,I_m)η∼N(0,Im​) independent.

Formalization Note Encoders are handled through e=h∘ge=h\circ ge=h∘g on latent states, and ggg is a measurable equivalence. Losses and energies are lower Lebesgue integrals with values in [0,∞][0,\infty][0,∞], so they never take junk values. Σtr\Sigma_{\rm tr}Σtr​ uses Mathlib's conditional expectation given σ(zt)\sigma(z_t)σ(zt​). μπ\mu_\piμπ​ is the linear version E[atzt⊤]z\mathbb E[a_tz_t^\top]zE[at​zt⊤​]z of E[at∣zt=z]\mathbb E[a_t\mid z_t=z]E[at​∣zt​=z], which the paper uses in the proof of Theorem 3. Eigenvalue extremes are Rayleigh-quotient extremes; for n=0n=0n=0 they equal 000.

Definition code
import Mathlib

/-!
Zhang, Guan, Zhang, Li, Zhang and Li, *On the Identifiability of Controlled World Models*,
arXiv:2607.22430v2 (2026): the stationary linear–Gaussian controlled latent system
(Assumptions 1–2, Section 3.1), the prediction objective (eq. (1)), the predictor class
(Assumption 3), the identification margins (eqs. (2)–(3), Section 3.2), the predictable energy
and Hermite quantities of Appendices A–B, the error terms of Section 3.3, and the counterfactual
quantities of Section 3.4 (eqs. (5)–(6)).
-/

open MeasureTheory ProbabilityTheory

noncomputable section

namespace ControlledWorldModels

/-- Squared Euclidean norm `‖v‖₂² = ∑ᵢ vᵢ²` of a vector of `ℝⁿ` (eq. (1) and throughout). -/
def sqNorm {n : ℕ} (v : Fin n → ℝ) : ℝ := ∑ i, v i ^ 2

/-- The standard Gaussian law `N(0, Iₙ)` on `ℝⁿ` (Assumptions 1–2, Section 3.1). -/
def stdGauss (n : ℕ) : Measure (Fin n → ℝ) := Measure.pi fun _ => gaussianReal 0 1

/-- `λ_max(M)` of a symmetric matrix (Section 3.2, eqs. (2)–(3)): the maximum of the Rayleigh
quotient `xᵀ M x` over unit vectors. -/
def lamMax {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) : ℝ :=
  sSup ((fun x : Fin n → ℝ => ∑ i, x i * M.mulVec x i) '' {x | sqNorm x = 1})

/-- `λ_min(M)` of a symmetric matrix (Section 3.2, eqs. (2)–(3)): the minimum of the Rayleigh
quotient `xᵀ M x` over unit vectors. -/
def lamMin {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) : ℝ :=
  sInf ((fun x : Fin n → ℝ => ∑ i, x i * M.mulVec x i) '' {x | sqNorm x = 1})

/-- The operator norm `‖M‖_op` of a real matrix for the Euclidean norms (Theorem 2, eq. (4)). -/
def opNorm {n k : ℕ} (M : Matrix (Fin n) (Fin k) ℝ) : ℝ :=
  sSup ((fun x : Fin k → ℝ => Real.sqrt (sqNorm (M.mulVec x))) '' {x | sqNorm x ≤ 1})

/-- The covariance matrix `Cov_P(X)` of a random vector `X` under `P` (Section 3.2). -/
def covMat {Ω : Type*} [MeasurableSpace Ω] {n : ℕ} (P : Measure Ω) (X : Ω → Fin n → ℝ) :
    Matrix (Fin n) (Fin n) ℝ :=
  fun i j => ∫ ω, (X ω i - ∫ ω', X ω' i ∂P) * (X ω j - ∫ ω', X ω' j ∂P) ∂P

/-- Assumption 1 (jointly Gaussian behavior distribution): the law `μ = P_π(z_t, a_t)` of state
and action is a centered jointly Gaussian law whose state marginal is `N(0, I_d)`. The state and
action may be dependent and the conditional action covariance may be singular. -/
structure IsJointGaussianPolicy {d m : ℕ} (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) : Prop where
  isGaussian : IsGaussian μ
  centered : ∫ w, w ∂μ = 0
  state_law : μ.map Prod.fst = stdGauss d

/-- Assumption 2 (stationary controlled transition): `z_{t+1} = A z_t + B a_t + ξ_t`, where the
noise `ξ_t ∼ ν` is a zero-mean Gaussian independent of `(z_t, a_t) ∼ μ` (the joint law is the
product `μ ⊗ ν`), and stationarity holds: `z_{t+1} ∼ N(0, I_d)`. -/
structure IsStationaryTransition {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ)
    (B : Matrix (Fin d) (Fin m) ℝ) (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ)))
    (ν : Measure (Fin d → ℝ)) : Prop where
  isGaussian_noise : IsGaussian ν
  centered_noise : ∫ x, x ∂ν = 0
  stationary : (μ.prod ν).map (fun ω => A.mulVec ω.1.1 + B.mulVec ω.1.2 + ω.2) = stdGauss d

/-- Section 3.1: one transition is the sample `ω = ((z_t, a_t), ξ_t)` drawn from `μ ⊗ ν`. -/
abbrev Sample (d m : ℕ) : Type := ((Fin d → ℝ) × (Fin m → ℝ)) × (Fin d → ℝ)

/-- Assumption 2: the next latent state `z_{t+1} = A z_t + B a_t + ξ_t` of a sample. -/
def nextState {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (ω : Sample d m) : Fin d → ℝ :=
  A.mulVec ω.1.1 + B.mulVec ω.1.2 + ω.2

/-- Section 3.1: an encoder, written on latent states as `e = h ∘ g`, is admissible when it is
measurable and `h(x_t) = e(z_t) ∼ N(0, I_d)` for `z_t ∼ N(0, I_d)`. -/
def IsAdmissible {d : ℕ} (e : (Fin d → ℝ) → Fin d → ℝ) : Prop :=
  Measurable e ∧ (stdGauss d).map e = stdGauss d

/-- Eq. (1): the population objective `L_π(h, F) = E_{P_π} ‖h(x_{t+1}) − F(h(x_t), a_t)‖₂²`, for
the encoder written on latent states as `e = h ∘ g`. Valued in `[0, ∞]`. -/
def loss {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (e : (Fin d → ℝ) → Fin d → ℝ) (F : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ) : ENNReal :=
  ∫⁻ ω, ENNReal.ofReal (sqNorm (e (nextState A B ω) - F (e ω.1.1) ω.1.2)) ∂(μ.prod ν)

/-- Assumption 3 and Lemma 1: the random vector `F_h⋆(h(x_t), a_t) = E[h(x_{t+1}) | h(x_t), a_t]`,
the conditional expectation of `e(z_{t+1})` given the σ-algebra generated by `(e(z_t), a_t)`. -/
def condPred {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (e : (Fin d → ℝ) → Fin d → ℝ) : Sample d m → Fin d → ℝ :=
  condExp (MeasurableSpace.comap (fun ω : Sample d m => (e ω.1.1, ω.1.2)) inferInstance)
    (μ.prod ν) (fun ω => e (nextState A B ω))

/-- Section 3.3: `L_π(h, F_h⋆) = E ‖h(x_{t+1}) − F_h⋆(h(x_t), a_t)‖²`, the risk of the optimal
conditional-mean predictor of the encoder `e = h ∘ g`. -/
def condLoss {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (e : (Fin d → ℝ) → Fin d → ℝ) : ENNReal :=
  ∫⁻ ω, ENNReal.ofReal (sqNorm (e (nextState A B ω) - condPred A B μ ν e ω)) ∂(μ.prod ν)

/-- Lemma 1: the predictable energy `J(h) = E ‖E[h(z_{t+1}) | h(z_t), a_t]‖²`. -/
def predEnergy {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (e : (Fin d → ℝ) → Fin d → ℝ) : ENNReal :=
  ∫⁻ ω, ENNReal.ofReal (sqNorm (condPred A B μ ν e ω)) ∂(μ.prod ν)

/-- Assumption 3: `Fc` is a class of measurable predictors that, for every admissible encoder
`e = h ∘ g`, contains a predictor `F` realising the optimal conditional-mean predictor,
`F(h(x_t), a_t) = E[h(x_{t+1}) | h(x_t), a_t]` almost surely. -/
def IsRichPredictorClass {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (Fc : Set ((Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ)) : Prop :=
  (∀ F ∈ Fc, Measurable (Function.uncurry F)) ∧
    ∀ e : (Fin d → ℝ) → Fin d → ℝ, IsAdmissible e →
      ∃ F ∈ Fc, (fun ω : Sample d m => F (e ω.1.1) ω.1.2) =ᵐ[μ.prod ν] condPred A B μ ν e

/-- Eq. (2): the predictable-signal covariance `R_π = Cov_{P_π}(A z_t + B a_t)`. -/
def repCov {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) : Matrix (Fin d) (Fin d) ℝ :=
  covMat μ (fun w => A.mulVec w.1 + B.mulVec w.2)

/-- Eq. (2): the representation margin `γ_rep(π) = λ_min(R_π) − λ_max(R_π)²`. -/
def repMargin {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) : ℝ :=
  lamMin (repCov A B μ) - lamMax (repCov A B μ) ^ 2

/-- Eq. (3): `Σ_tr(π) = E_{z_t}[Cov_π(a_t | z_t)]`, written as
`E[(a_t − E[a_t | z_t])(a_t − E[a_t | z_t])ᵀ]` with the conditional expectation given `σ(z_t)`. -/
def condActCov {d m : ℕ} (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) : Matrix (Fin m) (Fin m) ℝ :=
  fun i j => ∫ w,
    (w.2 i - condExp (MeasurableSpace.comap Prod.fst inferInstance) μ (fun w' => w'.2 i) w) *
    (w.2 j - condExp (MeasurableSpace.comap Prod.fst inferInstance) μ (fun w' => w'.2 j) w) ∂μ

/-- Eq. (3): the transition margin `ρ_tr(π) = λ_min(Σ_tr(π))`. -/
def transMargin {d m : ℕ} (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) : ℝ :=
  lamMin (condActCov μ)

/-- Theorem 1 and Section 3.3: the optimal objective value `L⋆ = d − tr(R_π)`. -/
def optValue {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) : ℝ :=
  d - (repCov A B μ).trace

/-- Section 3.3: the encoder excess risk `Δ_enc = L_π(h, F_h⋆) − L⋆` of the encoder `e = h ∘ g`. -/
def encExcess {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (e : (Fin d → ℝ) → Fin d → ℝ) : ENNReal :=
  condLoss A B μ ν e - ENNReal.ofReal (optValue A B μ)

/-- Section 3.3: the predictor-side error
`Δ_pred = E_{P_π} ‖F(h(x_t), a_t) − F_h⋆(h(x_t), a_t)‖²` for the encoder `e = h ∘ g`. -/
def predExcess {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (e : (Fin d → ℝ) → Fin d → ℝ) (F : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ) : ENNReal :=
  ∫⁻ ω, ENNReal.ofReal (sqNorm (F (e ω.1.1) ω.1.2 - condPred A B μ ν e ω)) ∂(μ.prod ν)

/-- Lemma 2: the matrix `L` of the first-order (linear) Hermite component `h₁(z) = L z` of an
encoder under `z ∼ N(0, I_d)`, `L_{ij} = E[h_i(z) z_j]`. -/
def linCoef {d : ℕ} (e : (Fin d → ℝ) → Fin d → ℝ) : Matrix (Fin d) (Fin d) ℝ :=
  fun i j => ∫ z, e z i * z j ∂(stdGauss d)

/-- Lemma 2: `τ₁ = E ‖h₁(z)‖² = tr(L Lᵀ)`, the energy of the linear Hermite component. -/
def hermEnergy1 {d : ℕ} (e : (Fin d → ℝ) → Fin d → ℝ) : ℝ :=
  ∑ i, ∑ j, linCoef e i j ^ 2

/-- Lemma 3: `r = E ‖g(z)‖²`, the energy of the higher-order Hermite part `g(z) = h(z) − L z`. -/
def nonlinEnergy {d : ℕ} (e : (Fin d → ℝ) → Fin d → ℝ) : ENNReal :=
  ∫⁻ z, ENNReal.ofReal (sqNorm (e z - (linCoef e).mulVec z)) ∂(stdGauss d)

/-- Section 3.4: the true conditional-mean predictor in identified coordinates,
`F⋆(y, a) = Q A Qᵀ y + Q B a`. -/
def trueMean {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (Q : Matrix (Fin d) (Fin d) ℝ) (y : Fin d → ℝ) (a : Fin m → ℝ) : Fin d → ℝ :=
  (Q * A * Q.transpose).mulVec y + (Q * B).mulVec a

/-- Section 3.4: `μ_π(z) = E_π[a_t | z_t = z]`. For the centered jointly Gaussian law of
Assumption 1 with `Cov(z_t) = I_d`, the regression function is the linear map
`z ↦ Cov(a_t, z_t) z = E[a_t z_tᵀ] z`, used here as its (continuous) version. -/
def condMeanAct {d m : ℕ} (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (z : Fin d → ℝ) :
    Fin m → ℝ :=
  Matrix.mulVec (Matrix.of fun (i : Fin m) (j : Fin d) => ∫ w, w.2 i * w.1 j ∂μ) z

/-- Eq. (5): the on-policy excess risk relative to `F⋆` in identified coordinates,
`E_π(F) = E ‖Q z_{t+1} − F(Q z_t, a_t)‖² − E ‖Q z_{t+1} − F⋆(Q z_t, a_t)‖²`. -/
def onPolicyExcess {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (ν : Measure (Fin d → ℝ))
    (Q : Matrix (Fin d) (Fin d) ℝ) (F : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ) : ENNReal :=
  (∫⁻ ω, ENNReal.ofReal (sqNorm (Q.mulVec (nextState A B ω) - F (Q.mulVec ω.1.1) ω.1.2))
      ∂(μ.prod ν)) -
    ∫⁻ ω, ENNReal.ofReal (sqNorm (Q.mulVec (nextState A B ω) -
      trueMean A B Q (Q.mulVec ω.1.1) ω.1.2)) ∂(μ.prod ν)

/-- Eq. (6): the counterfactual transition error
`E_cf(F) = E ‖F(Q z, a_cf) − F⋆(Q z, a_cf)‖²`, where `a_cf = μ_π(z) + η_cf`,
`z ∼ N(0, I_d)` and `η_cf ∼ N(0, I_m)` independent of `z`. -/
def cfError {d m : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (B : Matrix (Fin d) (Fin m) ℝ)
    (μ : Measure ((Fin d → ℝ) × (Fin m → ℝ))) (Q : Matrix (Fin d) (Fin d) ℝ)
    (F : (Fin d → ℝ) → (Fin m → ℝ) → Fin d → ℝ) : ENNReal :=
  ∫⁻ p, ENNReal.ofReal (sqNorm (F (Q.mulVec p.1) (condMeanAct μ p.1 + p.2) -
      trueMean A B Q (Q.mulVec p.1) (condMeanAct μ p.1 + p.2))) ∂((stdGauss d).prod (stdGauss m))

/-- Corollary 1: the law of `(z_t, a_t)` under the behavior policy
`a_t = √(1 − σ²) K z_t + σ η_t`, with `z_t ∼ N(0, I_d)` and `η_t ∼ N(0, I_m)` independent. -/
def policyLaw {d m : ℕ} (K : Matrix (Fin m) (Fin d) ℝ) (σ : ℝ) :
    Measure ((Fin d → ℝ) × (Fin m → ℝ)) :=
  ((stdGauss d).prod (stdGauss m)).map
    (fun p => (p.1, Real.sqrt (1 - σ ^ 2) • K.mulVec p.1 + σ • p.2))

end ControlledWorldModels
Source
Zhang, Guan, Zhang, Li, Zhang and Li, On the Identifiability of Controlled World Models, arXiv:2607.22430v2 (2026), Section 3.1 (Assumptions 1-3, eq. (1)), Section 3.2 (eqs. (2)-(3)), Section 3.3, Section 3.4 (eqs. (5)-(6), Corollary 1), Appendices A-B, pp. 3-10
Read-back

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

Squared norm ∥v∥22\|v\|_2^2∥v∥22​. For a natural number nnn and a vector v=(v1,…,vn)∈Rnv=(v_1,\dots,v_n)\in\mathbb{R}^nv=(v1​,…,vn​)∈Rn, it is

∥v∥22  =  ∑i=1nvi2.\|v\|_2^2 \;=\; \sum_{i=1}^n v_i^2 .∥v∥22​=i=1∑n​vi2​.

When n=0n=0n=0 the sum is empty, so the value is 000.


Standard Gaussian N(0,In)\mathcal N(0,I_n)N(0,In​). For a natural number nnn, this is the product measure on Rn\mathbb{R}^nRn whose nnn coordinate factors are each the real Gaussian law with mean 000 and variance 111. When n=0n=0n=0 the space R0\mathbb{R}^0R0 is a single point, and this measure is the unit point mass on it.


Largest Rayleigh value λmax⁡(M)\lambda_{\max}(M)λmax​(M). For any real n×nn\times nn×n matrix MMM (symmetry is not assumed), λmax⁡(M)\lambda_{\max}(M)λmax​(M) is the supremum of the Rayleigh quotient over unit vectors:

λmax⁡(M)=sup⁡{ x⊤Mx  :  x∈Rn, ∥x∥22=1 }.\lambda_{\max}(M)=\sup\Big\{\,x^\top M x \;:\; x\in\mathbb{R}^n,\ \|x\|_2^2=1\,\Big\}.λmax​(M)=sup{x⊤Mx:x∈Rn, ∥x∥22​=1}.

The supremum is taken in R\mathbb{R}R. Two cases are worth noting:

  • For a non-symmetric MMM, the quantity x⊤Mxx^\top Mxx⊤Mx depends only on the symmetric part 12(M+M⊤)\tfrac12(M+M^\top)21​(M+M⊤).
  • When n=0n=0n=0 there are no unit vectors. The set is empty, and the value is the default supremum of the empty set in R\mathbb{R}R, namely 000.

Smallest Rayleigh value λmin⁡(M)\lambda_{\min}(M)λmin​(M). For any real n×nn\times nn×n matrix MMM (symmetry not assumed),

λmin⁡(M)=inf⁡{ x⊤Mx  :  x∈Rn, ∥x∥22=1 },\lambda_{\min}(M)=\inf\Big\{\,x^\top M x \;:\; x\in\mathbb{R}^n,\ \|x\|_2^2=1\,\Big\},λmin​(M)=inf{x⊤Mx:x∈Rn, ∥x∥22​=1},

with the infimum taken in R\mathbb{R}R. As above, it depends only on the symmetric part of MMM. When n=0n=0n=0 the set is empty and the value is 000.


Operator norm ∥M∥op\|M\|_{\mathrm{op}}∥M∥op​. For a real n×kn\times kn×k matrix MMM, it is

∥M∥op=sup⁡{∥Mx∥22  :  x∈Rk, ∥x∥22≤1}.\|M\|_{\mathrm{op}}=\sup\Big\{\sqrt{\|Mx\|_2^2}\;:\;x\in\mathbb{R}^k,\ \|x\|_2^2\le 1\Big\}.∥M∥op​=sup{∥Mx∥22​​:x∈Rk, ∥x∥22​≤1}.

The supremum runs over the closed unit ball, not the sphere. When k=0k=0k=0 the ball is {0}\{0\}{0} and the value is 000.


Covariance matrix CovP(X)\mathrm{Cov}_P(X)CovP​(X). Let Ω\OmegaΩ be a measurable space, let PPP be any measure on it, and let X:Ω→RnX:\Omega\to\mathbb{R}^nX:Ω→Rn be any function. The (i,j)(i,j)(i,j) entry is

CovP(X)ij=∫Ω(Xi(ω)−∫Xi dP)(Xj(ω)−∫Xj dP) dP(ω).\mathrm{Cov}_P(X)_{ij}=\int_\Omega \Big(X_i(\omega)-\textstyle\int X_i\,dP\Big)\Big(X_j(\omega)-\textstyle\int X_j\,dP\Big)\,dP(\omega).CovP​(X)ij​=∫Ω​(Xi​(ω)−∫Xi​dP)(Xj​(ω)−∫Xj​dP)dP(ω).

All integrals are Bochner integrals. The following are not required:

  • PPP need not be a probability measure, so the "mean" ∫Xi dP\int X_i\,dP∫Xi​dP is not normalized.
  • XXX need not be measurable or integrable.

Wherever an integrand fails to be integrable, its integral is set to 000.


Assumption 1 (jointly Gaussian behavior law). A measure μ\muμ on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm (pairs (z,a)(z,a)(z,a)) satisfies this predicate when all three of the following hold:

  1. Gaussian. μ\muμ is a Gaussian measure. That is, it is a probability measure, and its image under every continuous linear functional is a real Gaussian law. Degenerate (point-mass) laws count as Gaussian, so singular covariances are allowed.
  2. Centered. The vector integral ∫(z,a) dμ\int (z,a)\,d\mu∫(z,a)dμ equals (0,0)(0,0)(0,0).
  3. State marginal. The image of μ\muμ under (z,a)↦z(z,a)\mapsto z(z,a)↦z equals N(0,Id)\mathcal N(0,I_d)N(0,Id​).

Nothing further is imposed on the action marginal or on the dependence between zzz and aaa.


Assumption 2 (stationary transition). Take matrices A∈Rd×dA\in\mathbb{R}^{d\times d}A∈Rd×d and B∈Rd×mB\in\mathbb{R}^{d\times m}B∈Rd×m, a measure μ\muμ on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm, and a measure ν\nuν on Rd\mathbb{R}^dRd. The predicate holds when:

  1. ν\nuν is a Gaussian measure (a probability measure; degenerate laws allowed, covariance unspecified).
  2. ∫ξ dν(ξ)=0\int \xi\,d\nu(\xi)=0∫ξdν(ξ)=0.
  3. The image of the product measure μ⊗ν\mu\otimes\nuμ⊗ν under ((z,a),ξ)↦Az+Ba+ξ((z,a),\xi)\mapsto Az+Ba+\xi((z,a),ξ)↦Az+Ba+ξ equals N(0,Id)\mathcal N(0,I_d)N(0,Id​).

This predicate itself does not require μ\muμ to satisfy Assumption 1. Independence of ξ\xiξ from (z,a)(z,a)(z,a) is encoded only by using the product measure.


Sample space. A sample is a triple ω=((z,a),ξ)\omega=((z,a),\xi)ω=((z,a),ξ) with z∈Rdz\in\mathbb{R}^dz∈Rd, a∈Rma\in\mathbb{R}^ma∈Rm, ξ∈Rd\xi\in\mathbb{R}^dξ∈Rd.


Next state. For A∈Rd×dA\in\mathbb{R}^{d\times d}A∈Rd×d, B∈Rd×mB\in\mathbb{R}^{d\times m}B∈Rd×m and a sample ω=((z,a),ξ)\omega=((z,a),\xi)ω=((z,a),ξ),

z′(ω)=Az+Ba+ξ∈Rd.z'(\omega)=Az+Ba+\xi\in\mathbb{R}^d .z′(ω)=Az+Ba+ξ∈Rd.

Admissible encoder. A map e:Rd→Rde:\mathbb{R}^d\to\mathbb{R}^de:Rd→Rd is admissible when both of the following hold:

  • eee is measurable;
  • the image of N(0,Id)\mathcal N(0,I_d)N(0,Id​) under eee is again N(0,Id)\mathcal N(0,I_d)N(0,Id​).

No invertibility, continuity, or linearity is required.


Prediction loss L(e,F)L(e,F)L(e,F). The inputs are:

  • AAA, BBB, a measure μ\muμ on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm, and a measure ν\nuν on Rd\mathbb{R}^dRd (no assumptions on any of them);
  • any map e:Rd→Rde:\mathbb{R}^d\to\mathbb{R}^de:Rd→Rd;
  • any map F:Rd×Rm→RdF:\mathbb{R}^d\times\mathbb{R}^m\to\mathbb{R}^dF:Rd×Rm→Rd.

The loss takes values in [0,∞][0,\infty][0,∞]:

L(e,F)=∫∥ e(Az+Ba+ξ)−F(e(z),a) ∥22  d(μ⊗ν)((z,a),ξ).L(e,F)=\int \big\|\,e(Az+Ba+\xi)-F(e(z),a)\,\big\|_2^2 \;d(\mu\otimes\nu)\big((z,a),\xi\big).L(e,F)=∫​e(Az+Ba+ξ)−F(e(z),a)​22​d(μ⊗ν)((z,a),ξ).

This is a lower (Lebesgue) integral of a nonnegative quantity, so it is always defined. It may equal +∞+\infty+∞, and no measurability or integrability is assumed.


Conditional-mean predictor Fe⋆F^\star_eFe⋆​. For A,B,μ,νA,B,\mu,\nuA,B,μ,ν and an encoder eee as above, Fe⋆F^\star_eFe⋆​ is the function on samples given by

Fe⋆=Eμ⊗ν[ e(Az+Ba+ξ)  ∣  Ge ],F^\star_e=\mathbb{E}_{\mu\otimes\nu}\big[\,e(Az+Ba+\xi)\;\big|\;\mathcal G_e\,\big],Fe⋆​=Eμ⊗ν​[e(Az+Ba+ξ)​Ge​],

where Ge\mathcal G_eGe​ is the σ\sigmaσ-algebra generated by ω↦(e(z),a)\omega\mapsto(e(z),a)ω↦(e(z),a). This is one specific representative of the vector-valued conditional expectation. It is defined to be identically 000 in any of these cases:

  • e(Az+Ba+ξ)e(Az+Ba+\xi)e(Az+Ba+ξ) is not integrable;
  • Ge\mathcal G_eGe​ is not contained in the sample σ\sigmaσ-algebra (e.g. eee not measurable);
  • μ⊗ν\mu\otimes\nuμ⊗ν restricted to Ge\mathcal G_eGe​ is not σ\sigmaσ-finite.

Conditional-predictor loss. In [0,∞][0,\infty][0,∞],

L⋆(e)=∫∥ e(Az+Ba+ξ)−Fe⋆(ω)∥22 d(μ⊗ν)(ω),L^\star(e)=\int \big\|\,e(Az+Ba+\xi)-F^\star_e(\omega)\big\|_2^2\,d(\mu\otimes\nu)(\omega),L⋆(e)=∫​e(Az+Ba+ξ)−Fe⋆​(ω)​22​d(μ⊗ν)(ω),

with Fe⋆F^\star_eFe⋆​ the representative defined above, including its zero default.


Predictable energy. In [0,∞][0,\infty][0,∞],

J(e)=∫∥Fe⋆(ω)∥22 d(μ⊗ν)(ω).J(e)=\int \|F^\star_e(\omega)\|_2^2\,d(\mu\otimes\nu)(\omega).J(e)=∫∥Fe⋆​(ω)∥22​d(μ⊗ν)(ω).

Rich predictor class (Assumption 3). A set F\mathcal FF of maps F:Rd×Rm→RdF:\mathbb{R}^d\times\mathbb{R}^m\to\mathbb{R}^dF:Rd×Rm→Rd qualifies when:

  1. every F∈FF\in\mathcal FF∈F is jointly measurable in its two arguments; and
  2. for every admissible encoder eee there is some F∈FF\in\mathcal FF∈F with
F(e(z),a)=Fe⋆(ω)for (μ⊗ν)-almost every ω=((z,a),ξ).F(e(z),a)=F^\star_e(\omega)\quad\text{for }(\mu\otimes\nu)\text{-almost every }\omega=((z,a),\xi).F(e(z),a)=Fe⋆​(ω)for (μ⊗ν)-almost every ω=((z,a),ξ).

Nothing is assumed about AAA, BBB, μ\muμ, ν\nuν.


Signal covariance RRR. For AAA, BBB and μ\muμ, it is

R=Covμ(Az+Ba),R=\mathrm{Cov}_\mu(Az+Ba),R=Covμ​(Az+Ba),

the covariance matrix defined above, with X(z,a)=Az+BaX(z,a)=Az+BaX(z,a)=Az+Ba and P=μP=\muP=μ, including its unnormalized-mean and zero-default conventions.


Representation margin. It is

γrep=λmin⁡(R)−λmax⁡(R)2,\gamma_{\mathrm{rep}}=\lambda_{\min}(R)-\lambda_{\max}(R)^2,γrep​=λmin​(R)−λmax​(R)2,

with λmin⁡\lambda_{\min}λmin​ and λmax⁡\lambda_{\max}λmax​ the Rayleigh infimum and supremum defined above. In particular, the second term is the square of λmax⁡\lambda_{\max}λmax​.


Conditional action covariance Σtr\Sigma_{\mathrm{tr}}Σtr​. For a measure μ\muμ on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm, it is the m×mm\times mm×m matrix with entries

(Σtr)ij=∫(ai−Eμ[ai∣z])(aj−Eμ[aj∣z]) dμ(z,a).(\Sigma_{\mathrm{tr}})_{ij}=\int \big(a_i-\mathbb{E}_\mu[a_i\mid z]\big)\big(a_j-\mathbb{E}_\mu[a_j\mid z]\big)\,d\mu(z,a).(Σtr​)ij​=∫(ai​−Eμ​[ai​∣z])(aj​−Eμ​[aj​∣z])dμ(z,a).

Here Eμ[ ⋅∣z]\mathbb{E}_\mu[\,\cdot\mid z]Eμ​[⋅∣z] is a fixed representative of the conditional expectation given the σ\sigmaσ-algebra generated by zzz. That representative is 000 when the conditional expectation is undefined, and the outer integral is 000 when its integrand is not integrable.


Transition margin. It is

ρtr=λmin⁡(Σtr).\rho_{\mathrm{tr}}=\lambda_{\min}(\Sigma_{\mathrm{tr}}).ρtr​=λmin​(Σtr​).

Optimal value. It is the real number

Lopt⋆=d−tr⁡(R).L^\star_{\mathrm{opt}}=d-\operatorname{tr}(R).Lopt⋆​=d−tr(R).

It can be negative.


Encoder excess risk. It is

Δenc(e)=L⋆(e)  −˙  max⁡(Lopt⋆,0),\Delta_{\mathrm{enc}}(e)=L^\star(e)\;\dot-\;\max\big(L^\star_{\mathrm{opt}},0\big),Δenc​(e)=L⋆(e)−˙​max(Lopt⋆​,0),

computed in [0,∞][0,\infty][0,∞]. The symbol −˙\dot-−˙​ is truncated subtraction:

  • the result is 000 whenever L⋆(e)≤max⁡(Lopt⋆,0)L^\star(e)\le\max(L^\star_{\mathrm{opt}},0)L⋆(e)≤max(Lopt⋆​,0);
  • the result is +∞+\infty+∞ when L⋆(e)=+∞L^\star(e)=+\inftyL⋆(e)=+∞;
  • a negative Lopt⋆L^\star_{\mathrm{opt}}Lopt⋆​ is replaced by 000 before subtracting.

Predictor excess. In [0,∞][0,\infty][0,∞],

Δpred(e,F)=∫∥F(e(z),a)−Fe⋆(ω)∥22 d(μ⊗ν)(ω).\Delta_{\mathrm{pred}}(e,F)=\int \big\|F(e(z),a)-F^\star_e(\omega)\big\|_2^2\,d(\mu\otimes\nu)(\omega).Δpred​(e,F)=∫​F(e(z),a)−Fe⋆​(ω)​22​d(μ⊗ν)(ω).

Linear Hermite coefficient matrix LeL_eLe​. For any map e:Rd→Rde:\mathbb{R}^d\to\mathbb{R}^de:Rd→Rd, it is the d×dd\times dd×d matrix

(Le)ij=∫ei(z) zj dN(0,Id)(z).(L_e)_{ij}=\int e_i(z)\,z_j\,d\mathcal N(0,I_d)(z).(Le​)ij​=∫ei​(z)zj​dN(0,Id​)(z).

An entry is 000 when its integrand is not integrable.


Linear energy. It is

τ1(e)=∑i=1d∑j=1d(Le)ij2,\tau_1(e)=\sum_{i=1}^d\sum_{j=1}^d (L_e)_{ij}^2,τ1​(e)=i=1∑d​j=1∑d​(Le​)ij2​,

the squared Frobenius norm of LeL_eLe​.


Nonlinear energy. In [0,∞][0,\infty][0,∞],

r(e)=∫∥e(z)−Lez∥22 dN(0,Id)(z).r(e)=\int \big\|e(z)-L_e z\big\|_2^2\,d\mathcal N(0,I_d)(z).r(e)=∫​e(z)−Le​z​22​dN(0,Id​)(z).

True mean in transformed coordinates. For AAA, BBB, any Q∈Rd×dQ\in\mathbb{R}^{d\times d}Q∈Rd×d (not assumed orthogonal or invertible), y∈Rdy\in\mathbb{R}^dy∈Rd and a∈Rma\in\mathbb{R}^ma∈Rm,

FQ⋆(y,a)=QAQ⊤y+QBa.F^{\star}_Q(y,a)=QAQ^\top y+QBa.FQ⋆​(y,a)=QAQ⊤y+QBa.

Linear action regression μπ\mu_\piμπ​. For any measure μ\muμ on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm and z∈Rdz\in\mathbb{R}^dz∈Rd,

μπ(z)=Cz,Cij=∫ai zj dμ(z,a),\mu_\pi(z)=C z,\qquad C_{ij}=\int a_i\,z_j\,d\mu(z,a),μπ​(z)=Cz,Cij​=∫ai​zj​dμ(z,a),

where CCC is m×dm\times dm×d and an entry is 000 when its integrand is not integrable. This is defined by this formula for every μ\muμ. It is not defined as a conditional expectation and is not shown to equal one.


On-policy excess. For A,B,μ,ν,QA,B,\mu,\nu,QA,B,μ,ν,Q and any FFF, it is computed in [0,∞][0,\infty][0,∞] as

Eπ(F)=∫∥Qz′−F(Qz,a)∥22 d(μ⊗ν)  −˙  ∫∥Qz′−FQ⋆(Qz,a)∥22 d(μ⊗ν).\mathcal E_\pi(F)=\int\big\|Qz'-F(Qz,a)\big\|_2^2\,d(\mu\otimes\nu)\;\dot-\;\int\big\|Qz'-F^\star_Q(Qz,a)\big\|_2^2\,d(\mu\otimes\nu).Eπ​(F)=∫​Qz′−F(Qz,a)​22​d(μ⊗ν)−˙​∫​Qz′−FQ⋆​(Qz,a)​22​d(μ⊗ν).

Here:

  • z′=Az+Ba+ξz'=Az+Ba+\xiz′=Az+Ba+ξ;
  • FQ⋆(Qz,a)=QAQ⊤Qz+QBaF^\star_Q(Qz,a)=QAQ^\top Qz+QBaFQ⋆​(Qz,a)=QAQ⊤Qz+QBa;
  • −˙\dot-−˙​ is truncated subtraction, so the result is 000 when the first integral is at most the second, including when both are +∞+\infty+∞.

Counterfactual error. For A,B,μ,QA,B,\mu,QA,B,μ,Q and any FFF, it is computed in [0,∞][0,\infty][0,∞] as

Ecf(F)=∫∥F(Qz, Cz+η)−FQ⋆(Qz, Cz+η)∥22  d(N(0,Id)⊗N(0,Im))(z,η).\mathcal E_{\mathrm{cf}}(F)=\int\big\|F(Qz,\,Cz+\eta)-F^\star_Q(Qz,\,Cz+\eta)\big\|_2^2\;d\big(\mathcal N(0,I_d)\otimes\mathcal N(0,I_m)\big)(z,\eta).Ecf​(F)=∫​F(Qz,Cz+η)−FQ⋆​(Qz,Cz+η)​22​d(N(0,Id​)⊗N(0,Im​))(z,η).

Here CCC is the moment matrix from the linear action regression. Three features of this definition:

  • zzz and η\etaη are independent.
  • The perturbation η\etaη has identity covariance ImI_mIm​, regardless of μ\muμ.
  • The noise law ν\nuν does not enter.

Behavior policy law. For any K∈Rm×dK\in\mathbb{R}^{m\times d}K∈Rm×d and any real σ\sigmaσ, it is the image of N(0,Id)⊗N(0,Im)\mathcal N(0,I_d)\otimes\mathcal N(0,I_m)N(0,Id​)⊗N(0,Im​) under

(z,η)↦(z,  1−σ2 Kz+ση).(z,\eta)\mapsto\Big(z,\;\sqrt{1-\sigma^2}\,Kz+\sigma\eta\Big).(z,η)↦(z,1−σ2​Kz+ση).

Edge cases:

  • σ\sigmaσ may be negative.
  • When ∣σ∣>1|\sigma|>1∣σ∣>1, the square root is taken as 000 (since 1−σ2<01-\sigma^2<01−σ2<0), so the action becomes ση\sigma\etaση.
  • No condition is placed on KKK.
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