Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3: the embedding and the losses bound the bisimulation metric

Proved
DeepMDP.bisimulation_metric_upper_bound

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

bisimulation-metricsmarkov-decision-processesreinforcement-learningrepresentation-learningwasserstein-distance

Let M=⟨S,A,R,P,γ⟩M=\langle S,A,R,P,\gamma\rangleM=⟨S,A,R,P,γ⟩ be an MDP with countable discrete state space and Mˉ=⟨Sˉ,A,Rˉ,Pˉ,γ⟩\bar M=\langle\bar S,A,\bar R,\bar P,\gamma\rangleMˉ=⟨Sˉ,A,Rˉ,Pˉ,γ⟩ a DeepMDP on a complete separable metric space (Sˉ,dSˉ)(\bar S,d_{\bar S})(Sˉ,dSˉ​), both with finite action set, discount 0≤γ<10\le\gamma<10≤γ<1 and bounded measurable rewards. Let ϕ:S→Sˉ\phi:S\to\bar Sϕ:S→Sˉ be an embedding with global losses LRˉ∞L^\infty_{\bar R}LRˉ∞​ and LPˉ∞L^\infty_{\bar P}LPˉ∞​. Assume Mˉ\bar MMˉ is (KRˉ,KPˉ)(K_{\bar R},K_{\bar P})(KRˉ​,KPˉ​)-Lipschitz with γKPˉ<1\gamma K_{\bar P}<1γKPˉ​<1 (Assumption 1). Then the bisimulation metric d~\tilde dd~ of MMM satisfies, for all s1,s2∈Ss_1,s_2\in Ss1​,s2​∈S,

d~(s1,s2)≤(1−γ)KRˉ1−γKPˉ dSˉ(ϕ(s1),ϕ(s2))+2(LRˉ∞+γLPˉ∞ KRˉ1−γKPˉ).\tilde d(s_1,s_2)\le\frac{(1-\gamma)K_{\bar R}}{1-\gamma K_{\bar P}}\,d_{\bar S}(\phi(s_1),\phi(s_2))+2\left(L^\infty_{\bar R}+\gamma L^\infty_{\bar P}\,\frac{K_{\bar R}}{1-\gamma K_{\bar P}}\right).d~(s1​,s2​)≤1−γKPˉ​(1−γ)KRˉ​​dSˉ​(ϕ(s1​),ϕ(s2​))+2(LRˉ∞​+γLPˉ∞​1−γKPˉ​KRˉ​​).

In particular, when both global losses vanish, the embedding never maps two states at positive bisimulation distance to the same point.

Formalization Note The printed constant is (1−γ)KR/(1−γKPˉ)(1-\gamma)K_R/(1-\gamma K_{\bar P})(1−γ)KR​/(1−γKPˉ​), where KRK_RKR​ is not defined for MMM; the proof (Lemma 4) gives KRˉK_{\bar R}KRˉ​, which is used here. The bisimulation metric is the limit of the iterates of Definition 5. The latent space is taken Polish, the setting of Ferns et al. (2011). The comparison is made in [0,∞][0,\infty][0,∞], with 0⋅∞=00\cdot\infty=00⋅∞=0. This is harmless: if KRˉ=0K_{\bar R}=0KRˉ​=0, every latent state is bisimilar to every other, so an infinite transition loss contributes nothing; if γ=0\gamma=0γ=0, transitions play no role.

Preamble
import Mathlib
import Definitions.Def_DeepMDP_Basic

open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal
Formal statement
namespace DeepMDP

theorem bisimulation_metric_upper_bound {S Sb A : Type*} [MeasurableSpace S] [DiscreteMeasurableSpace S] [Countable S]
    [MetricSpace Sb] [MeasurableSpace Sb] [BorelSpace Sb] [SecondCountableTopology Sb]
    [CompleteSpace Sb]
    [Fintype A] [Nonempty A] [MeasurableSpace A] [MeasurableSingletonClass A]
    (R : S → A → ℝ) (P : A → Kernel S S) (Rb : Sb → A → ℝ) (Pb : A → Kernel Sb Sb) (γ : ℝ)
    (φ : S → Sb) (hM : IsMDP R P γ) (hMb : IsMDP Rb Pb γ)
    (KRb KPb : ℝ≥0) (hLip : IsLipschitzMDP Rb Pb KRb KPb) (hA1 : γ * (KPb : ℝ) < 1) (s₁ s₂ : S) :
    bisimMetric R (fun s a => P a s) γ s₁ s₂ ≤
      ENNReal.ofReal ((1 - γ) * KRb / (1 - γ * KPb)) * edist (φ s₁) (φ s₂) +
        2 * (rewardLossGlobal R Rb φ +
          ENNReal.ofReal γ * transLossGlobal P Pb φ * ENNReal.ofReal (KRb / (1 - γ * KPb))) := by sorry

end DeepMDP
Source
Gelada, Kumar, Buckman, Nachum and Bellemare, DeepMDP: Learning Continuous Latent Space Models for Representation Learning, arXiv:1906.02736v1 (ICML 2019), Section 5.3, Theorem 3, p. 6; proof in Appendix A.4, p. 20
Read-back

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

Setting. The statement involves the following objects:

  • A countable set SSS of "real" states. Every subset of SSS is measurable.
  • A complete separable metric space (Sˉ,d)(\bar S, d)(Sˉ,d) of "latent" states, with its Borel σ-algebra.
  • A finite, nonempty action set AAA, carrying some σ-algebra in which singletons are measurable.

The data consist of:

  • reward functions R:S×A→RR : S \times A \to \mathbb{R}R:S×A→R and Rˉ:Sˉ×A→R\bar R : \bar S \times A \to \mathbb{R}Rˉ:Sˉ×A→R;
  • for each action aaa, transition kernels P(⋅∣s,a)P(\cdot \mid s, a)P(⋅∣s,a) on SSS and Pˉ(⋅∣x,a)\bar P(\cdot \mid x, a)Pˉ(⋅∣x,a) on Sˉ\bar SSˉ;
  • a single real discount γ\gammaγ, shared by both;
  • an arbitrary map φ:S→Sˉ\varphi : S \to \bar Sφ:S→Sˉ, with no further conditions. Since SSS carries the discrete σ-algebra, φ\varphiφ is automatically measurable.

Hypotheses. The statement assumes:

  1. (S,A,R,P,γ)(S, A, R, P, \gamma)(S,A,R,P,γ) is an MDP:
    • 0≤γ<10 \le \gamma < 10≤γ<1;
    • every P(⋅∣s,a)P(\cdot \mid s, a)P(⋅∣s,a) is a probability measure (a Markov kernel in sss);
    • every R(⋅,a)R(\cdot, a)R(⋅,a) is measurable;
    • RRR is bounded: there is a CCC with ∣R(s,a)∣≤C|R(s,a)| \le C∣R(s,a)∣≤C for all s,as, as,a.
  2. (Sˉ,A,Rˉ,Pˉ,γ)(\bar S, A, \bar R, \bar P, \gamma)(Sˉ,A,Rˉ,Pˉ,γ) is an MDP in the same sense, with the same γ\gammaγ.
  3. The latent MDP is (KRˉ,KPˉ)(K_{\bar R}, K_{\bar P})(KRˉ​,KPˉ​)-Lipschitz, for given constants KRˉ,KPˉ≥0K_{\bar R}, K_{\bar P} \ge 0KRˉ​,KPˉ​≥0. For every action aaa and all x,y∈Sˉx, y \in \bar Sx,y∈Sˉ:
∣Rˉ(x,a)−Rˉ(y,a)∣≤KRˉ d(x,y),W(Pˉ(⋅∣x,a),Pˉ(⋅∣y,a))≤KPˉ d(x,y).|\bar R(x,a) - \bar R(y,a)| \le K_{\bar R}\, d(x,y), \qquad W\big(\bar P(\cdot \mid x,a), \bar P(\cdot \mid y,a)\big) \le K_{\bar P}\, d(x,y).∣Rˉ(x,a)−Rˉ(y,a)∣≤KRˉ​d(x,y),W(Pˉ(⋅∣x,a),Pˉ(⋅∣y,a))≤KPˉ​d(x,y).
  • WWW is the Wasserstein-1 distance on Sˉ\bar SSˉ, valued in [0,∞][0,\infty][0,∞]:
W(μ,ν)=inf⁡λ∫d(u,v) dλ(u,v).W(\mu,\nu) = \inf_{\lambda} \int d(u,v)\, d\lambda(u,v).W(μ,ν)=λinf​∫d(u,v)dλ(u,v).
  • The infimum ranges over all measures λ\lambdaλ on Sˉ×Sˉ\bar S \times \bar SSˉ×Sˉ whose first marginal is μ\muμ and whose second marginal is ν\nuν.
  1. γKPˉ<1\gamma K_{\bar P} < 1γKPˉ​<1.

No Lipschitz or other condition is imposed on RRR, PPP or φ\varphiφ.

Bisimulation metric on SSS. Let d0≡0d_0 \equiv 0d0​≡0 and, for n≥0n \ge 0n≥0,

dn+1(x,y)=max⁡a∈A[(1−γ) ∣R(x,a)−R(y,a)∣+γ Wdn(P(⋅∣x,a),P(⋅∣y,a))]∈[0,∞].d_{n+1}(x,y) = \max_{a \in A} \Big[ (1-\gamma)\,|R(x,a) - R(y,a)| + \gamma\, W_{d_n}\big(P(\cdot \mid x,a), P(\cdot \mid y,a)\big) \Big] \in [0,\infty].dn+1​(x,y)=a∈Amax​[(1−γ)∣R(x,a)−R(y,a)∣+γWdn​​(P(⋅∣x,a),P(⋅∣y,a))]∈[0,∞].
  • Here Wdn(μ,ν)W_{d_n}(\mu,\nu)Wdn​​(μ,ν) is the infimum, over all measures λ\lambdaλ on S×SS \times SS×S with marginals μ\muμ and ν\nuν, of ∫dn(u,v) dλ(u,v)\int d_n(u,v)\, d\lambda(u,v)∫dn​(u,v)dλ(u,v).
  • The bisimulation metric is then defined as d~(x,y)=sup⁡n≥0dn(x,y)\tilde d(x,y) = \sup_{n \ge 0} d_n(x,y)d~(x,y)=supn≥0​dn​(x,y).
  • This is the bisimulation metric of (S,R,P,γ)(S, R, P, \gamma)(S,R,P,γ) alone. It does not involve the joined MDP or the latent model.

Global losses. Both losses take values in [0,∞][0,\infty][0,∞]:

LRˉ∞=sup⁡s∈S, a∈A∣R(s,a)−Rˉ(φ(s),a)∣,LPˉ∞=sup⁡s∈S, a∈AW(φ#P(⋅∣s,a), Pˉ(⋅∣φ(s),a)).L_{\bar R}^\infty = \sup_{s \in S,\, a \in A} \big|R(s,a) - \bar R(\varphi(s), a)\big|, \qquad L_{\bar P}^\infty = \sup_{s \in S,\, a \in A} W\big(\varphi_{\#} P(\cdot \mid s,a),\ \bar P(\cdot \mid \varphi(s), a)\big).LRˉ∞​=s∈S,a∈Asup​​R(s,a)−Rˉ(φ(s),a)​,LPˉ∞​=s∈S,a∈Asup​W(φ#​P(⋅∣s,a), Pˉ(⋅∣φ(s),a)).
  • φ#P(⋅∣s,a)\varphi_{\#} P(\cdot \mid s,a)φ#​P(⋅∣s,a) is the law of φ(s′)\varphi(s')φ(s′) when s′∼P(⋅∣s,a)s' \sim P(\cdot \mid s,a)s′∼P(⋅∣s,a).
  • WWW here is the Wasserstein-1 distance on Sˉ\bar SSˉ defined above.

Conclusion. For all s1,s2∈Ss_1, s_2 \in Ss1​,s2​∈S:

d~(s1,s2)  ≤  (1−γ)KRˉ1−γKPˉ d(φ(s1),φ(s2))  +  2(LRˉ∞+γ LPˉ∞⋅KRˉ1−γKPˉ).\tilde d(s_1,s_2) \;\le\; \frac{(1-\gamma) K_{\bar R}}{1-\gamma K_{\bar P}}\, d\big(\varphi(s_1), \varphi(s_2)\big) \;+\; 2\left( L_{\bar R}^\infty + \gamma\, L_{\bar P}^\infty \cdot \frac{K_{\bar R}}{1-\gamma K_{\bar P}} \right).d~(s1​,s2​)≤1−γKPˉ​(1−γ)KRˉ​​d(φ(s1​),φ(s2​))+2(LRˉ∞​+γLPˉ∞​⋅1−γKPˉ​KRˉ​​).

This inequality holds in the extended nonnegative reals [0,∞][0,\infty][0,∞], with the following conventions:

  • The two fractions are nonnegative real numbers under the hypotheses.
  • The convention 0⋅∞=00 \cdot \infty = 00⋅∞=0 is used. In particular, if γ=0\gamma = 0γ=0 or KRˉ=0K_{\bar R} = 0KRˉ​=0, the transition-loss term contributes 000 even when LPˉ∞=∞L_{\bar P}^\infty = \inftyLPˉ∞​=∞.
  • If LRˉ∞=∞L_{\bar R}^\infty = \inftyLRˉ∞​=∞, or if LPˉ∞=∞L_{\bar P}^\infty = \inftyLPˉ∞​=∞ while γKRˉ>0\gamma K_{\bar R} > 0γKRˉ​>0, the right-hand side is ∞\infty∞ and the inequality holds trivially.
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