Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4.4 (invariance): GGG is invariant under a one-to-one change of state representation

Proved
MBRLGuarantees.gap_invariant_under_state_bijection

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

chi-square-divergencediscrepancy-boundsmarkov-decision-processesmodel-based-rlreinforcement-learning

In the setting of Lemma C.1, let M^\widehat MM and M⋆M^\starM⋆ be deterministic measurable models and π\piπ a deterministic measurable policy, and transform M^\widehat MM, M⋆M^\starM⋆, π\piπ and RRR by T\mathcal TT. Then the one-step discrepancy is unchanged: for all s∈Ss\in\mathcal Ss∈S and actions aaa,

GT(Ts,a)=VπT,M^T(M^T(Ts,a))−VπT,M^T(M⋆,T(Ts,a))=G(s,a),G^{\mathcal T}(\mathcal Ts,a)=V^{\pi^{\mathcal T},\widehat M^{\mathcal T}}\big(\widehat M^{\mathcal T}(\mathcal Ts,a)\big)-V^{\pi^{\mathcal T},\widehat M^{\mathcal T}}\big(M^{\star,\mathcal T}(\mathcal Ts,a)\big)=G(s,a),GT(Ts,a)=VπT,MT(MT(Ts,a))−VπT,MT(M⋆,T(Ts,a))=G(s,a),

where G(s,a)=Vπ,M^(M^(s,a))−Vπ,M^(M⋆(s,a))G(s,a)=V^{\pi,\widehat M}(\widehat M(s,a))-V^{\pi,\widehat M}(M^\star(s,a))G(s,a)=Vπ,M(M(s,a))−Vπ,M(M⋆(s,a)) and the transformed values use RTR^{\mathcal T}RT.

Unlike a norm on the states, the discrepancy bound DGD^GDG therefore does not depend on the choice of state representation.

Formalization Note Eq. (C.1) writes GTG^{\mathcal T}GT with an absolute value; the statement is the equality without absolute values, which implies it.

Preamble
import Mathlib
import Definitions.Def_MBRLGuarantees_Basic

open MeasureTheory ProbabilityTheory InformationTheory
open scoped ENNReal
Formal statement
namespace MBRLGuarantees

theorem gap_invariant_under_state_bijection {S S' A : Type*} [MeasurableSpace S]
    [MeasurableSpace S'] [MeasurableSpace A]
    (γ : ℝ) (hγ0 : 0 ≤ γ) (hγ1 : γ < 1)
    (R : S × A → ℝ) (hRm : Measurable R) (hRb : ∃ C, ∀ x, |R x| ≤ C)
    (T : S ≃ᵐ S') (mhat mstar : S × A → S) (hmhat : Measurable mhat) (hmstar : Measurable mstar)
    (p : S → A) (hp : Measurable p)
    (mhatT mstarT : S' × A → S') (hmhatT : Measurable mhatT) (hmstarT : Measurable mstarT)
    (hmhatT_eq : ∀ x, mhatT x = T (mhat (T.symm x.1, x.2)))
    (hmstarT_eq : ∀ x, mstarT x = T (mstar (T.symm x.1, x.2)))
    (pT : S' → A) (hpT : Measurable pT) (hpT_eq : ∀ x, pT x = p (T.symm x)) (s : S) (a : A) :
    gapFn γ (fun x : S' × A => R (T.symm x.1, x.2)) (Kernel.deterministic pT hpT)
        (Kernel.deterministic mhatT hmhatT) (Kernel.deterministic mstarT hmstarT) (T s) a =
      gapFn γ R (Kernel.deterministic p hp) (Kernel.deterministic mhat hmhat)
        (Kernel.deterministic mstar hmstar) s a := by sorry

end MBRLGuarantees
Source
Luo, Xu, Li, Tian, Darrell and Ma, Algorithmic Framework for Model-based Deep Reinforcement Learning with Theoretical Guarantees, arXiv:1807.03858v5 (ICLR 2019), Section 4.2, Proposition 4.4 (last sentence), p. 7; eq. (C.1) in Appendix C.1, p. 17
Read-back

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

Let SSS, S′S'S′ (state spaces) and AAA (action space) be arbitrary measurable spaces. The statement fixes the following data:

  • A discount factor γ∈R\gamma \in \mathbb{R}γ∈R with 0≤γ<10 \le \gamma < 10≤γ<1.
  • A reward R:S×A→RR : S \times A \to \mathbb{R}R:S×A→R, assumed measurable and bounded: there is a constant CCC with ∣R(x)∣≤C|R(x)| \le C∣R(x)∣≤C for all xxx.
  • A measurable bijection T:S→S′T : S \to S'T:S→S′ whose inverse T−1T^{-1}T−1 is also measurable.
  • Two measurable maps m^,m⋆:S×A→S\hat m, m^\star : S \times A \to Sm^,m⋆:S×A→S, the deterministic "learned" and "true" dynamics on SSS.
  • A measurable map p:S→Ap : S \to Ap:S→A, a deterministic policy on SSS.
  • Two measurable maps m^T,mT⋆:S′×A→S′\hat m_T, m^\star_T : S' \times A \to S'm^T​,mT⋆​:S′×A→S′ satisfying, for every (s′,a)∈S′×A(s', a) \in S' \times A(s′,a)∈S′×A,
m^T(s′,a)=T(m^(T−1s′,a)),mT⋆(s′,a)=T(m⋆(T−1s′,a)).\hat m_T(s', a) = T\big(\hat m(T^{-1}s', a)\big), \qquad m^\star_T(s', a) = T\big(m^\star(T^{-1}s', a)\big).m^T​(s′,a)=T(m^(T−1s′,a)),mT⋆​(s′,a)=T(m⋆(T−1s′,a)).
  • A measurable map pT:S′→Ap_T : S' \to ApT​:S′→A with pT(s′)=p(T−1s′)p_T(s') = p(T^{-1}s')pT​(s′)=p(T−1s′) for every s′∈S′s' \in S's′∈S′.
  • A point s∈Ss \in Ss∈S and an action a∈Aa \in Aa∈A, which are arbitrary.

Each deterministic map is turned into a Markov kernel of Dirac masses:

  • the policy πp(⋅∣s)=δp(s)\pi_p(\cdot \mid s) = \delta_{p(s)}πp​(⋅∣s)=δp(s)​;
  • the models M^(⋅∣s,a)=δm^(s,a)\hat M(\cdot \mid s, a) = \delta_{\hat m(s,a)}M^(⋅∣s,a)=δm^(s,a)​ and M⋆(⋅∣s,a)=δm⋆(s,a)M^\star(\cdot \mid s, a) = \delta_{m^\star(s,a)}M⋆(⋅∣s,a)=δm⋆(s,a)​;
  • the analogous kernels πpT\pi_{p_T}πpT​​, M^T\hat M_TM^T​, MT⋆M^\star_TMT⋆​ on S′S'S′.

The transported reward on S′S'S′ is RT(s′,a)=R(T−1s′,a)R_T(s', a) = R(T^{-1}s', a)RT​(s′,a)=R(T−1s′,a).

Claim. The theorem asserts the equality

Gγ,RTπpT,M^T,MT⋆(Ts,a)  =  Gγ,Rπp,M^,M⋆(s,a).G_{\gamma, R_T}^{\pi_{p_T}, \hat M_T, M^\star_T}(T s, a) \;=\; G_{\gamma, R}^{\pi_p, \hat M, M^\star}(s, a).Gγ,RT​πpT​​,M^T​,MT⋆​​(Ts,a)=Gγ,Rπp​,M^,M⋆​(s,a).

The quantity GGG. For a policy kernel π\piπ, a model M^\hat MM^ and a reference model MMM, the one-step model discrepancy is

Gπ,M^,M(s,a)=∫Vπ,M^(s′) M^(ds′∣s,a)  −  ∫Vπ,M^(s′) M(ds′∣s,a).G^{\pi,\hat M, M}(s,a) = \int V^{\pi,\hat M}(s')\,\hat M(ds' \mid s,a) \;-\; \int V^{\pi,\hat M}(s')\,M(ds' \mid s,a).Gπ,M^,M(s,a)=∫Vπ,M^(s′)M^(ds′∣s,a)−∫Vπ,M^(s′)M(ds′∣s,a).

Here both integrals use the value function of π\piπ on the model M^\hat MM^, against two different next-state laws. With the deterministic kernels above, these are integrals of Vπ,M^V^{\pi,\hat M}Vπ,M^ against the Dirac masses at m^(s,a)\hat m(s,a)m^(s,a) and at m⋆(s,a)m^\star(s,a)m⋆(s,a), respectively.

The value function. It is defined as

Vπ,M(s)=∑t≥0γt∫rπ(s′) Pt(ds′∣s).V^{\pi, M}(s) = \sum_{t \ge 0} \gamma^t \int r_\pi(s')\, P^t(ds' \mid s).Vπ,M(s)=t≥0∑​γt∫rπ​(s′)Pt(ds′∣s).

Its ingredients are:

  • The expected one-step reward is rπ(s′)=∫R(s′,a′) π(da′∣s′)r_\pi(s') = \int R(s', a')\,\pi(da' \mid s')rπ​(s′)=∫R(s′,a′)π(da′∣s′). For πp\pi_pπp​ this is the integral of R(s′,⋅)R(s', \cdot)R(s′,⋅) against δp(s′)\delta_{p(s')}δp(s′)​.
  • The state-to-state kernel is P(⋅∣s)P(\cdot \mid s)P(⋅∣s), the law of the second coordinate under π(da∣s) M(ds′∣s,a)\pi(da \mid s)\,M(ds' \mid s,a)π(da∣s)M(ds′∣s,a). For the deterministic kernels it is the law of the next state m(s,p(s))m(s, p(s))m(s,p(s)).
  • The ttt-step kernels are P0(⋅∣s)=δsP^0(\cdot \mid s) = \delta_sP0(⋅∣s)=δs​ and Pt+1=P∘PtP^{t+1} = P \circ P^tPt+1=P∘Pt.

Edge cases and conventions.

  • The sum over ttt is an unconditional sum of real numbers and is taken to be 000 if the family is not summable.
  • All integrals are Bochner integrals, which take the value 000 for non-integrable integrands.
  • No assumption is made that singletons are measurable. The equality is stated literally in terms of these integrals against Dirac masses, not in terms of evaluation.
  • γ=0\gamma = 0γ=0 is allowed. In that case only the t=0t = 0t=0 term remains, with γ0=1\gamma^0 = 1γ0=1.
  • The hypotheses defining m^T\hat m_Tm^T​, mT⋆m^\star_TmT⋆​ and pTp_TpT​ can always be satisfied, by taking those maps to be the stated compositions.
  • The measurability and boundedness hypotheses are imposed on RRR only; no separate hypothesis is placed on RTR_TRT​.
  • The conclusion concerns the single pair (s,a)(s, a)(s,a), which is arbitrary, so it holds for every s∈Ss \in Ss∈S and every a∈Aa \in Aa∈A.
Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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