Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3 (as proved, with C = 1): approximate predictable-energy gap

Proved
ControlledWorldModels.approx_predictable_energy_gap

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

hermite-expansionidentifiabilityjepalinear-gaussian-dynamicsworld-models

Assume Assumptions 1–2 and γrep(π)=λmin⁡(Rπ)−λmax⁡(Rπ)2>0\gamma_{\rm rep}(\pi)=\lambda_{\min}(R_\pi)-\lambda_{\max}(R_\pi)^2>0γrep​(π)=λmin​(Rπ​)−λmax​(Rπ​)2>0. Let hhh be an admissible encoder. Write h(g(z))=Lz+g~(z)h(g(z))=Lz+\tilde g(z)h(g(z))=Lz+g~​(z), where LzLzLz is the linear Hermite component under z∼N(0,Id)z\sim\mathcal N(0,I_d)z∼N(0,Id​), and let r=E∥g~(z)∥2r=\mathbb E\|\tilde g(z)\|^2r=E∥g~​(z)∥2. If Δ≥0\Delta\ge0Δ≥0 and Lπ(h,Fh⋆)≤L⋆+Δ\mathcal L_\pi(h,F_h^\star)\le\mathcal L^\star+\DeltaLπ​(h,Fh⋆​)≤L⋆+Δ with L⋆=d−tr⁡Rπ\mathcal L^\star=d-\operatorname{tr}R_\piL⋆=d−trRπ​, then

r≤Δγrep(π).r\le\frac{\Delta}{\gamma_{\rm rep}(\pi)}.r≤γrep​(π)Δ​.

A small encoder excess risk thus forces small energy outside the linear Hermite component.

Formalization Note The paper states r≤CΔenc/γrep(π)r\le C\Delta_{\rm enc}/\gamma_{\rm rep}(\pi)r≤CΔenc​/γrep​(π) with an unspecified constant CCC. Its proof ends with (λd−λ12) r≤Δenc(\lambda_d-\lambda_1^2)\,r\le\Delta_{\rm enc}(λd​−λ12​)r≤Δenc​, i.e. C=1C=1C=1, which is the statement formalized. The paper's symbol ggg for the nonlinear part is written g~\tilde gg~​ here to avoid a clash with the observation map.

Preamble
import Mathlib
import Definitions.Def_ControlledWorldModels_Basic

open MeasureTheory ProbabilityTheory
Formal statement
namespace ControlledWorldModels

theorem approx_predictable_energy_gap {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 μ ν)
    (e : (Fin d → ℝ) → Fin d → ℝ) (he : IsAdmissible e) (hrep : 0 < repMargin A B μ)
    (Δ : ℝ) (hΔ0 : 0 ≤ Δ)
    (hΔ : condLoss A B μ ν e ≤ ENNReal.ofReal (optValue A B μ) + ENNReal.ofReal Δ) :
    nonlinEnergy e ≤ ENNReal.ofReal (Δ / repMargin A B μ) := by sorry

end ControlledWorldModels
Source
Zhang, Guan, Zhang, Li, Zhang and Li, On the Identifiability of Controlled World Models, arXiv:2607.22430v2 (2026), Appendix B, Lemma 3, pp. 9-10 (setting: Section 3.3, Theorem 2, p. 4)
Read-back

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

Setting. Fix natural numbers ddd (state dimension) and mmm (action dimension). Either may be 000, though d=0d = 0d=0 is excluded in effect; see the margin hypothesis below. The data are:

  • real 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, the joint law of state and action (z,a)(z, a)(z,a);
  • a measure ν\nuν on Rd\mathbb{R}^dRd, the noise law of ξ\xiξ;
  • a function e:Rd→Rde : \mathbb{R}^d \to \mathbb{R}^de:Rd→Rd, the encoder;
  • a real number Δ\DeltaΔ.

A sample is ω=((z,a),ξ)\omega = ((z, a), \xi)ω=((z,a),ξ) drawn from the product measure μ⊗ν\mu \otimes \nuμ⊗ν. Its next state is

z′=Az+Ba+ξ.z' = Az + Ba + \xi.z′=Az+Ba+ξ.

N(0,In)N(0, I_n)N(0,In​) denotes the product of nnn independent standard real Gaussians, and ∥v∥2=∑ivi2\|v\|^2 = \sum_i v_i^2∥v∥2=∑i​vi2​.

Hypotheses. The theorem assumes all of the following.

  1. Gaussian policy. μ\muμ is a Gaussian (probability) measure on Rd×Rm\mathbb{R}^d\times\mathbb{R}^mRd×Rm, its mean vector is 000, and its first marginal (the law of zzz) is exactly N(0,Id)N(0, I_d)N(0,Id​). Nothing further is assumed about the action marginal, the state–action dependence, or non-degeneracy.

  2. Stationary transition. ν\nuν is a Gaussian (probability) measure on Rd\mathbb{R}^dRd with mean 000. Its covariance is not specified. The pushforward of μ⊗ν\mu\otimes\nuμ⊗ν under ((z,a),ξ)↦Az+Ba+ξ((z,a),\xi) \mapsto Az + Ba + \xi((z,a),ξ)↦Az+Ba+ξ equals N(0,Id)N(0, I_d)N(0,Id​).

  3. Admissible encoder. eee is measurable, and if z∼N(0,Id)z \sim N(0, I_d)z∼N(0,Id​) then e(z)∼N(0,Id)e(z) \sim N(0, I_d)e(z)∼N(0,Id​).

  4. Positive representation margin. Let RRR be the d×dd\times dd×d covariance matrix, under μ\muμ, of the vector Az+BaAz + BaAz+Ba, with entries

Rij=Eμ[(Yi−EμYi)(Yj−EμYj)],Y=Az+Ba.R_{ij} = \mathbb{E}_\mu\big[(Y_i - \mathbb{E}_\mu Y_i)(Y_j - \mathbb{E}_\mu Y_j)\big], \qquad Y = Az + Ba.Rij​=Eμ​[(Yi​−Eμ​Yi​)(Yj​−Eμ​Yj​)],Y=Az+Ba.

Define

  • λmax⁡(R)=sup⁡{x⊤Rx:∥x∥2=1}\lambda_{\max}(R) = \sup\{x^\top R x : \|x\|^2 = 1\}λmax​(R)=sup{x⊤Rx:∥x∥2=1},

  • λmin⁡(R)=inf⁡{x⊤Rx:∥x∥2=1}\lambda_{\min}(R) = \inf\{x^\top R x : \|x\|^2 = 1\}λmin​(R)=inf{x⊤Rx:∥x∥2=1},

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

    The hypothesis is γrep>0\gamma_{\mathrm{rep}} > 0γrep​>0. When d=0d = 0d=0 the unit sphere is empty, both quantities default to 000, so γrep=0\gamma_{\mathrm{rep}} = 0γrep​=0 and the hypothesis cannot hold.

  1. Sign of Δ\DeltaΔ. Δ≥0\Delta \ge 0Δ≥0.

  2. Near-optimal loss. Let F^(ω)\hat F(\omega)F^(ω) be the conditional expectation, under μ⊗ν\mu\otimes\nuμ⊗ν, of e(z′)e(z')e(z′) given the σ-algebra generated by the pair (e(z),a)(e(z), a)(e(z),a). This is defined up to null sets and would default to 000 if e(z′)e(z')e(z′) were not integrable. Define the conditional loss

L(e)=∫∥e(z′)−F^(ω)∥2 d(μ⊗ν)(ω)∈[0,∞].\mathcal L(e) = \int \big\|e(z') - \hat F(\omega)\big\|^2 \, d(\mu\otimes\nu)(\omega) \in [0, \infty].L(e)=∫​e(z′)−F^(ω)​2d(μ⊗ν)(ω)∈[0,∞].

The hypothesis is

L(e)≤max⁡(d−tr⁡R, 0)+Δ,\mathcal L(e) \le \max\big(d - \operatorname{tr} R,\ 0\big) + \Delta,L(e)≤max(d−trR, 0)+Δ,

compared in [0,∞][0,\infty][0,∞]. The quantity d−tr⁡Rd - \operatorname{tr} Rd−trR is replaced by 000 if it is negative.

Conclusion. Let L∈Rd×dL \in \mathbb{R}^{d\times d}L∈Rd×d have entries

Lij=Ez∼N(0,Id)[ei(z) zj].L_{ij} = \mathbb{E}_{z\sim N(0,I_d)}\big[e_i(z)\, z_j\big].Lij​=Ez∼N(0,Id​)​[ei​(z)zj​].

Each entry is taken as 000 if the integrand is not integrable. Then the theorem asserts

∫∥e(z)−Lz∥2 dN(0,Id)(z)  ≤  Δγrep.\int \big\|e(z) - Lz\big\|^2 \, dN(0, I_d)(z) \;\le\; \frac{\Delta}{\gamma_{\mathrm{rep}}}.∫​e(z)−Lz​2dN(0,Id​)(z)≤γrep​Δ​.

The left side is a value in [0,∞][0,\infty][0,∞]. The right side is a nonnegative real number, since Δ≥0\Delta \ge 0Δ≥0 and γrep>0\gamma_{\mathrm{rep}} > 0γrep​>0. In particular the left side is asserted to be finite.

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