Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.3: Telescoping Lemma

Proved
MBRLGuarantees.telescoping_lemma

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

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

Let γ∈[0,1)\gamma\in[0,1)γ∈[0,1), let the reward RRR be bounded and measurable, let S0∼μ0S_0\sim\mu_0S0​∼μ0​, and let κ=γ(1−γ)−1\kappa=\gamma(1-\gamma)^{-1}κ=γ(1−γ)−1. For every policy π\piπ and every two dynamical models M,M^M,\widehat MM,M (Markov kernels),

Vπ,M^−Vπ,M=κ ES∼ρπ,M, A∼π(⋅∣S)[Gπ,M^(S,A)],V^{\pi,\widehat M}-V^{\pi,M}=\kappa\,\mathbb E_{S\sim\rho^{\pi,M},\ A\sim\pi(\cdot\mid S)}\big[G^{\pi,\widehat M}(S,A)\big],Vπ,M−Vπ,M=κES∼ρπ,M, A∼π(⋅∣S)​[Gπ,M(S,A)],

where Gπ,M^(s,a)=Es^′∼M^(⋅∣s,a)Vπ,M^(s^′)−Es′∼M(⋅∣s,a)Vπ,M^(s′)G^{\pi,\widehat M}(s,a)=\mathbb E_{\hat s'\sim\widehat M(\cdot\mid s,a)}V^{\pi,\widehat M}(\hat s')-\mathbb E_{s'\sim M(\cdot\mid s,a)}V^{\pi,\widehat M}(s')Gπ,M(s,a)=Es^′∼M(⋅∣s,a)​Vπ,M(s^′)−Es′∼M(⋅∣s,a)​Vπ,M(s′) and ρπ,M\rho^{\pi,M}ρπ,M is the discounted state distribution of π\piπ on MMM.

The lemma decomposes the value gap between two models into one-step discrepancies along the state distribution of the second model; every discrepancy bound of the paper is derived from it.

Formalization Note The model inside GGG is the second model MMM of the lemma (the paper's display of GGG writes M⋆M^\starM⋆). The expectation over (S,A)(S,A)(S,A) is the iterated integral over S∼ρπ,MS\sim\rho^{\pi,M}S∼ρπ,M and A∼π(⋅∣S)A\sim\pi(\cdot\mid S)A∼π(⋅∣S).

Preamble
import Mathlib
import Definitions.Def_MBRLGuarantees_Basic

open MeasureTheory ProbabilityTheory InformationTheory
open scoped ENNReal
Formal statement
namespace MBRLGuarantees

theorem telescoping_lemma {S A : Type*} [MeasurableSpace S] [MeasurableSpace A]
    (γ : ℝ) (hγ0 : 0 ≤ γ) (hγ1 : γ < 1)
    (R : S × A → ℝ) (hRm : Measurable R) (hRb : ∃ C, ∀ x, |R x| ≤ C)
    (μ₀ : Measure S) [IsProbabilityMeasure μ₀]
    (pi : Kernel S A) [IsMarkovKernel pi] (M Mhat : Kernel (S × A) S) [IsMarkovKernel M]
    [IsMarkovKernel Mhat] :
    value γ R μ₀ pi Mhat - value γ R μ₀ pi M =
      kappa γ * ∫ s, ∫ a, gapFn γ R pi Mhat M s a ∂(pi s) ∂(occ γ μ₀ pi M) := 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.1, Lemma 4.3, eq. (4.6), p. 7; proof in Appendix B, pp. 16-17
Read-back

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

Setting. SSS (states) and AAA (actions) are arbitrary measurable spaces, with no further structure assumed. The data are:

  • a discount factor γ∈R\gamma \in \mathbb{R}γ∈R with 0≤γ<10 \le \gamma < 10≤γ<1;
  • a reward function R:S×A→RR : S \times A \to \mathbb{R}R:S×A→R that is measurable (for the product σ-algebra) and bounded: there is a real CCC with ∣R(s,a)∣≤C|R(s,a)| \le C∣R(s,a)∣≤C for all (s,a)(s,a)(s,a);
  • a probability measure μ0\mu_0μ0​ on SSS (the initial-state distribution);
  • a policy π\piπ, a Markov kernel from SSS to AAA, so each π(⋅∣s)\pi(\cdot \mid s)π(⋅∣s) is a probability measure on AAA;
  • two dynamical models MMM and M^\hat MM^, both Markov kernels from S×AS \times AS×A to SSS.

Because μ0\mu_0μ0​ and π(⋅∣s)\pi(\cdot\mid s)π(⋅∣s) are probability measures, the hypotheses force SSS and AAA to be nonempty. There is no other restriction, and MMM is an arbitrary second model, not necessarily a "true" environment.

Definitions used (unfolded). For a model N∈{M,M^}N \in \{M, \hat M\}N∈{M,M^}:

  • State kernel. Pπ,NP_{\pi,N}Pπ,N​ is the state-to-state kernel
Pπ,N(B∣s)=∫AN(B∣s,a) π(da∣s).P_{\pi,N}(B \mid s) = \int_A N(B \mid s,a)\,\pi(da \mid s).Pπ,N​(B∣s)=∫A​N(B∣s,a)π(da∣s).
  • Iterates. Pπ,N0P^0_{\pi,N}Pπ,N0​ is the identity kernel and Pπ,Nt+1=Pπ,N∘Pπ,NtP^{t+1}_{\pi,N} = P_{\pi,N} \circ P^t_{\pi,N}Pπ,Nt+1​=Pπ,N​∘Pπ,Nt​ (kernel composition). So Pπ,Nt(⋅∣s)P^t_{\pi,N}(\cdot\mid s)Pπ,Nt​(⋅∣s) is the law of the state after ttt steps, started at sss.
  • Expected one-step reward.
rπ(s)=∫AR(s,a) π(da∣s).r_\pi(s) = \int_A R(s,a)\,\pi(da\mid s).rπ​(s)=∫A​R(s,a)π(da∣s).
  • State value.
Vπ,N(s)=∑t=0∞γt∫Srπ(s′) Pπ,Nt(ds′∣s).V^{\pi,N}(s) = \sum_{t=0}^{\infty} \gamma^t \int_S r_\pi(s')\,P^t_{\pi,N}(ds' \mid s).Vπ,N(s)=t=0∑∞​γt∫S​rπ​(s′)Pπ,Nt​(ds′∣s).
  • Value.
Vπ,N=∫SVπ,N(s) μ0(ds).V^{\pi,N} = \int_S V^{\pi,N}(s)\,\mu_0(ds).Vπ,N=∫S​Vπ,N(s)μ0​(ds).
  • Discounted state distribution of π\piπ on MMM from μ0\mu_0μ0​:
ρπ,M=(1−γ)∑t=0∞γt μ0Pπ,Mt,μ0Pπ,Mt(B)=∫SPπ,Mt(B∣s) μ0(ds).\rho^{\pi,M} = (1-\gamma)\sum_{t=0}^{\infty} \gamma^t\, \mu_0 P^t_{\pi,M}, \qquad \mu_0 P^t_{\pi,M}(B) = \int_S P^t_{\pi,M}(B\mid s)\,\mu_0(ds).ρπ,M=(1−γ)t=0∑∞​γtμ0​Pπ,Mt​,μ0​Pπ,Mt​(B)=∫S​Pπ,Mt​(B∣s)μ0​(ds).

This is a countable sum of measures, and here its total mass is (1−γ)∑tγt=1(1-\gamma)\sum_t \gamma^t = 1(1−γ)∑t​γt=1.

  • Constant. κ=γ/(1−γ)\kappa = \gamma/(1-\gamma)κ=γ/(1−γ).
  • One-step model discrepancy. Both terms evaluate the value function of M^\hat MM^; only the next-state distribution differs:
Gπ,M^(s,a)=∫SVπ,M^(s′) M^(ds′∣s,a)  −  ∫SVπ,M^(s′) M(ds′∣s,a).G^{\pi,\hat M}(s,a) = \int_S V^{\pi,\hat M}(s')\,\hat M(ds' \mid s,a) \;-\; \int_S V^{\pi,\hat M}(s')\,M(ds' \mid s,a).Gπ,M^(s,a)=∫S​Vπ,M^(s′)M^(ds′∣s,a)−∫S​Vπ,M^(s′)M(ds′∣s,a).

All integrals are Bochner integrals, which by convention equal 000 when the integrand is not integrable. The infinite series is an unconditional sum, which by convention equals 000 when it is not summable. The measurability and boundedness hypotheses on RRR are the only assumptions bearing on these conventions.

Assertion. Under these hypotheses,

Vπ,M^−Vπ,M  =  γ1−γ∫S(∫AGπ,M^(s,a) π(da∣s))ρπ,M(ds).V^{\pi,\hat M} - V^{\pi,M} \;=\; \frac{\gamma}{1-\gamma}\int_S \left( \int_A G^{\pi,\hat M}(s,a)\,\pi(da\mid s) \right) \rho^{\pi,M}(ds).Vπ,M^−Vπ,M=1−γγ​∫S​(∫A​Gπ,M^(s,a)π(da∣s))ρπ,M(ds).

The outer average on the right is over the discounted state distribution of π\piπ under the model MMM, not under M^\hat MM^. This is an exact equality, not an inequality.

Edge case. When γ=0\gamma = 0γ=0, we get κ=0\kappa = 0κ=0, so the right side is 000. Also Vπ,N(s)=rπ(s)V^{\pi,N}(s) = r_\pi(s)Vπ,N(s)=rπ​(s) for either model, because 00=10^0 = 100=1 and all later terms vanish. Both values then equal ∫rπ dμ0\int r_\pi\,d\mu_0∫rπ​dμ0​, and the identity reduces to 0=00 = 00=0.

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