Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7: global value difference bound for Norm-MMD metrics

Proved
DeepMDP.norm_mmd_global_value_difference_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 measurable space Sˉ\bar SSˉ, both with finite action set, discount 0≤γ<10\le\gamma<10≤γ<1 and bounded measurable rewards, and let ϕ:S→Sˉ\phi:S\to\bar Sϕ:S→Sˉ. Let DDD be a Norm-MMD with function seminorm ∥⋅∥D\|\cdot\|_D∥⋅∥D​ (possibly +∞+\infty+∞-valued), and let the global transition loss use DDD: LPˉ∞=sup⁡s,aD(ϕP(⋅∣s,a),Pˉ(⋅∣ϕ(s),a))L^\infty_{\bar P}=\sup_{s,a}D(\phi P(\cdot|s,a),\bar P(\cdot|\phi(s),a))LPˉ∞​=sups,a​D(ϕP(⋅∣s,a),Pˉ(⋅∣ϕ(s),a)). For every KVˉK_{\bar V}KVˉ​-smooth-valued policy πˉ\bar\piπˉ with KVˉ>0K_{\bar V}>0KVˉ​>0 and all s∈Ss\in Ss∈S, a∈Aa\in Aa∈A,

∣Qπˉ(s,a)−Qˉπˉ(ϕ(s),a)∣≤LRˉ∞+γKVˉLPˉ∞1−γ.\big|Q^{\bar\pi}(s,a)-\bar Q^{\bar\pi}(\phi(s),a)\big|\le\frac{L^\infty_{\bar R}+\gamma K_{\bar V}L^\infty_{\bar P}}{1-\gamma}.​Qπˉ(s,a)−Qˉ​πˉ(ϕ(s),a)​≤1−γLRˉ∞​+γKVˉ​LPˉ∞​​.

This generalises Lemma 2 from the Wasserstein metric to Norm-MMD metrics such as the total variation and the energy distance.

Formalization Note The supremum defining an MMD ranges over the functions in the class that are integrable under both measures, so that both expectations exist. Both sides are compared in [0,∞][0,\infty][0,∞], where 0⋅∞=00\cdot\infty=00⋅∞=0. The hypothesis KVˉ>0K_{\bar V}>0KVˉ​>0 is added for this reason. A seminorm may vanish on non-constant functions (the footnote to Section 6.1 allows this). If ∥Vˉπˉ∥D=0\|\bar V^{\bar\pi}\|_D=0∥Vˉπˉ∥D​=0, every multiple of Vˉπˉ\bar V^{\bar\pi}Vˉπˉ lies in FDF_DFD​, so the loss LPˉ∞L^\infty_{\bar P}LPˉ∞​ can be +∞+\infty+∞. With KVˉ=0K_{\bar V}=0KVˉ​=0 the term γKVˉLPˉ∞\gamma K_{\bar V}L^\infty_{\bar P}γKVˉ​LPˉ∞​ would then be 000 and the bound false. An example is the zero seminorm on two states with absorbing versus swapping transitions. The paper's real-valued KVˉ⋅DK_{\bar V}\cdot DKVˉ​⋅D is undefined in that case. The restriction loses nothing: a 000-smooth-valued policy is KKK-smooth-valued for every K>0K>0K>0, and when the loss is finite, letting K→0K\to0K→0 recovers the KVˉ=0K_{\bar V}=0KVˉ​=0 bound. Assumption 1 (a Lipschitz DeepMDP) is not imposed: Section 6.2 treats DeepMDPs under the total variation with bounded rewards only, and the proof does not use it.

Preamble
import Mathlib
import Definitions.Def_DeepMDP_Basic

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

theorem norm_mmd_global_value_difference_bound {S Sb A : Type*} [MeasurableSpace S]
    [DiscreteMeasurableSpace S] [Countable S] [MeasurableSpace 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 γ) (sn : FunSeminorm Sb)
    (πb : Kernel Sb A) [IsMarkovKernel πb] (KV : ℝ≥0) (hπ : IsSmoothValued sn Rb Pb γ πb KV)
    (hKV : 0 < KV)
    (s : S) (a : A) :
    ENNReal.ofReal |qValue R P γ (liftPolicy πb φ) s a - qValue Rb Pb γ πb (φ s) a| ≤
      (rewardLossGlobal R Rb φ + ENNReal.ofReal γ * (KV : ℝ≥0∞) * transLossGlobalMMD sn P Pb φ) /
        ENNReal.ofReal (1 - γ) := 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 6.3 and Appendix A.6, Lemma 7, p. 21; Definitions 6-7, pp. 7-8
Read-back

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

Setting. The statement involves two discounted decision processes that share the same finite action set and the same discount factor γ∈R\gamma \in \mathbb{R}γ∈R.

The action set AAA. It is finite and nonempty, and carries a σ-algebra in which every singleton {a}\{a\}{a} is measurable.

The original process MMM.

  • Its state space SSS is countable, and every subset of SSS is measurable.
  • The reward is a function R:S×A→RR : S \times A \to \mathbb{R}R:S×A→R.
  • For each action aaa, there is a transition kernel P(⋅∣s,a)P(\cdot \mid s, a)P(⋅∣s,a) from SSS to SSS.

The latent process Mˉ\bar MMˉ.

  • Its state space Sˉ\bar SSˉ is an arbitrary measurable space, with no metric or other structure assumed.
  • The reward is a function Rˉ:Sˉ×A→R\bar R : \bar S \times A \to \mathbb{R}Rˉ:Sˉ×A→R.
  • For each action aaa, there is a transition kernel Pˉ(⋅∣x,a)\bar P(\cdot \mid x, a)Pˉ(⋅∣x,a) from Sˉ\bar SSˉ to Sˉ\bar SSˉ.

The embedding. φ:S→Sˉ\varphi : S \to \bar Sφ:S→Sˉ is an arbitrary function. Because every subset of SSS is measurable, φ\varphiφ is automatically measurable.

Hypotheses.

  1. MMM is an MDP. This means:

    • 0≤γ<10 \le \gamma < 10≤γ<1;
    • every P(⋅∣⋅,a)P(\cdot \mid \cdot, a)P(⋅∣⋅,a) is a Markov kernel, so each P(⋅∣s,a)P(\cdot \mid s, a)P(⋅∣s,a) is a probability measure;
    • each s↦R(s,a)s \mapsto R(s,a)s↦R(s,a) is measurable;
    • there is a real CCC with ∣R(s,a)∣≤C|R(s,a)| \le C∣R(s,a)∣≤C for all s,as, as,a.
  2. Mˉ\bar MMˉ is an MDP. The same four conditions hold for Rˉ\bar RRˉ and Pˉ\bar PPˉ, with the same γ\gammaγ.

  3. A function seminorm ∥⋅∥D\|\cdot\|_D∥⋅∥D​ is given. It acts on all functions f:Sˉ→Rf : \bar S \to \mathbb{R}f:Sˉ→R, with no measurability required, and takes values in [0,∞][0, \infty][0,∞]. It satisfies:

    • ∥cf∥D=∣c∣ ∥f∥D\|c f\|_D = |c|\,\|f\|_D∥cf∥D​=∣c∣∥f∥D​, using the convention 0⋅∞=00 \cdot \infty = 00⋅∞=0;
    • ∥f+g∥D≤∥f∥D+∥g∥D\|f + g\|_D \le \|f\|_D + \|g\|_D∥f+g∥D​≤∥f∥D​+∥g∥D​.

    Nothing else is required of it. For example, the identically-zero seminorm is allowed.

  4. The latent policy πˉ\bar\piπˉ is a Markov kernel from Sˉ\bar SSˉ to AAA. Write πˉ(a∣x)\bar\pi(a \mid x)πˉ(a∣x) for the probability of the singleton {a}\{a\}{a}.

  5. πˉ\bar\piπˉ is KVK_VKV​-smooth-valued in Mˉ\bar MMˉ, for a real constant KV≥0K_V \ge 0KV​≥0:

∥VMˉπˉ∥D≤KV,∥QMˉπˉ(⋅,a)∥D≤KV  for every a∈A.\|V^{\bar\pi}_{\bar M}\|_D \le K_V, \qquad \|Q^{\bar\pi}_{\bar M}(\cdot, a)\|_D \le K_V \ \text{ for every } a \in A.∥VMˉπˉ​∥D​≤KV​,∥QMˉπˉ​(⋅,a)∥D​≤KV​  for every a∈A.
  1. KV>0K_V > 0KV​>0.

Value functions. For a reward rrr, a kernel TTT and a policy π\piπ, the action value is built in two steps.

Finite-horizon iterates. Set Q0≡0Q_0 \equiv 0Q0​≡0 and

Qn+1(x,a)=r(x,a)+γ∫∑a′π(a′∣y) Qn(y,a′) T(dy∣x,a).Q_{n+1}(x,a) = r(x,a) + \gamma \int \sum_{a'} \pi(a' \mid y)\, Q_n(y,a')\, T(dy \mid x, a).Qn+1​(x,a)=r(x,a)+γ∫a′∑​π(a′∣y)Qn​(y,a′)T(dy∣x,a).

Here the integral is the Bochner integral. It is taken to be 000 whenever the integrand is not integrable.

Limit. Qπ(x,a)Q^\pi(x,a)Qπ(x,a) is defined as lim⁡n→∞Qn(x,a)\lim_{n \to \infty} Q_n(x,a)limn→∞​Qn​(x,a) when this limit exists. When the limit does not exist, Qπ(x,a)Q^\pi(x,a)Qπ(x,a) is an unspecified real number.

State value. Vπ(x)=∑aπ(a∣x) Qπ(x,a)V^\pi(x) = \sum_a \pi(a \mid x)\, Q^\pi(x,a)Vπ(x)=∑a​π(a∣x)Qπ(x,a).

The lifted policy. The lifted policy on SSS is

π(⋅∣s):=πˉ(⋅∣φ(s)).\pi(\cdot \mid s) := \bar\pi(\cdot \mid \varphi(s)).π(⋅∣s):=πˉ(⋅∣φ(s)).

Loss quantities. Both are suprema taken in [0,∞][0, \infty][0,∞] and may equal +∞+\infty+∞.

Global reward loss:

LR=sup⁡s∈S, a∈A∣R(s,a)−Rˉ(φ(s),a)∣.L_R = \sup_{s \in S,\, a \in A} |R(s,a) - \bar R(\varphi(s), a)|.LR​=s∈S,a∈Asup​∣R(s,a)−Rˉ(φ(s),a)∣.

Global Norm-MMD transition loss:

LP=sup⁡s∈S, a∈AD(φ#P(⋅∣s,a), Pˉ(⋅∣φ(s),a)).L_P = \sup_{s \in S,\, a \in A} D\big(\varphi_\# P(\cdot \mid s, a),\ \bar P(\cdot \mid \varphi(s), a)\big).LP​=s∈S,a∈Asup​D(φ#​P(⋅∣s,a), Pˉ(⋅∣φ(s),a)).
  • φ#P(⋅∣s,a)\varphi_\# P(\cdot \mid s, a)φ#​P(⋅∣s,a) is the pushforward measure on Sˉ\bar SSˉ.
  • For measures μ\muμ and ν\nuν on Sˉ\bar SSˉ,
D(μ,ν)=sup⁡∣∫f dμ−∫f dν∣,D(\mu, \nu) = \sup \Big|\int f\, d\mu - \int f\, d\nu\Big|,D(μ,ν)=sup​∫fdμ−∫fdν​,

where the supremum ranges over all fff with ∥f∥D≤1\|f\|_D \le 1∥f∥D​≤1 that are integrable with respect to both μ\muμ and ν\nuν.

  • A supremum over an empty set is 000.

Conclusion. For every state s∈Ss \in Ss∈S and every action a∈Aa \in Aa∈A,

∣QMπ(s,a)−QMˉπˉ(φ(s),a)∣  ≤  LR+γ KV LP1−γ.\big|Q^{\pi}_M(s,a) - Q^{\bar\pi}_{\bar M}(\varphi(s), a)\big| \;\le\; \frac{L_R + \gamma\, K_V\, L_P}{1 - \gamma}.​QMπ​(s,a)−QMˉπˉ​(φ(s),a)​≤1−γLR​+γKV​LP​​.

How the inequality is evaluated. The comparison is made in the extended nonnegative reals [0,∞][0, \infty][0,∞]. As a result:

  • The right-hand side is +∞+\infty+∞, and the inequality holds trivially, whenever LR=∞L_R = \inftyLR​=∞, or whenever γ>0\gamma > 0γ>0 and LP=∞L_P = \inftyLP​=∞.
  • When γ=0\gamma = 0γ=0, the term γKVLP\gamma K_V L_PγKV​LP​ equals 000 even if LP=∞L_P = \inftyLP​=∞.
  • The denominator 1−γ1 - \gamma1−γ is strictly positive.

The two QQQ-values on the left are the iterate-limit values defined above, including the unspecified-value convention when a limit fails to exist.

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