Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5: V∗V^*V∗ is Lipschitz with respect to d~\tilde dd~

Proved
DeepBisimulationControl.optValue_lipschitz_piBisimMetric

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

bisimulation-metricmarkov-decision-processreinforcement-learningstate-aggregationwasserstein-distance

Let S\mathcal SS be a finite state space, A\mathcal AA a finite nonempty action space, P\mathcal PP a transition kernel, R\mathcal RR a reward function, γ∈[0,1)\gamma\in[0,1)γ∈[0,1) and c<1c<1c<1 with c≥γc\ge\gammac≥γ. Let π∗\pi^*π∗ be an optimal policy and d~\tilde dd~ the π∗\pi^*π∗-bisimulation metric, d~=sup⁡nF(⋅,π∗)n(0)\tilde d=\sup_nF(\cdot,\pi^*)^n(0)d~=supn​F(⋅,π∗)n(0). Then for all states si,sjs_i,s_jsi​,sj​,

∣V∗(si)−V∗(sj)∣≤11−c d~(si,sj).|V^*(s_i)-V^*(s_j)|\le\frac1{1-c}\,\tilde d(s_i,s_j).∣V∗(si​)−V∗(sj​)∣≤1−c1​d~(si​,sj​).

So V∗V^*V∗ is Lipschitz with respect to d~\tilde dd~ with constant 1/(1−c)1/(1-c)1/(1−c).

Formalization Note The policy π∗\pi^*π∗ may be any optimal stationary stochastic policy; deterministic optimal policies are the special case.

Preamble
import Mathlib
import Definitions.Def_DeepBisimulationControl_Basic

open Filter Topology
Formal statement
namespace DeepBisimulationControl

theorem optValue_lipschitz_piBisimMetric {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
    [Nonempty A]
    (P : S → A → S → ℝ) (hP : IsKernel P) (R : S → A → ℝ) (gamma c : ℝ)
    (hg0 : 0 ≤ gamma) (hg1 : gamma < 1) (hc1 : c < 1) (hgc : gamma ≤ c)
    (pi : S → A → ℝ) (hpi : IsOptimalPolicy P R gamma pi) (s t : S) :
    |optValue P R gamma s - optValue P R gamma t| ≤ 1 / (1 - c) * piBisimMetric P R c pi s t := by sorry

end DeepBisimulationControl
Source
Zhang, McAllister, Calandra, Gal and Levine, Learning Invariant Representations for Reinforcement Learning without Reconstruction, arXiv:2006.10742v2 (ICLR 2021), Section 5, Theorem 5, eq. (7), p. 6 (proof cited from Ferns et al. 2004, Theorem 5.1)
Read-back

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

Let SSS be a finite state space and AAA a finite, nonempty action space. The data are:

  • a transition function P(s′∣s,a)∈RP(s' \mid s,a) \in \mathbb{R}P(s′∣s,a)∈R which is a Markov kernel: P(s′∣s,a)≥0P(s'\mid s,a) \ge 0P(s′∣s,a)≥0 for all s,a,s′s,a,s's,a,s′ and ∑s′P(s′∣s,a)=1\sum_{s'} P(s'\mid s,a) = 1∑s′​P(s′∣s,a)=1 for all s,as,as,a;
  • an arbitrary real reward function R:S×A→RR : S \times A \to \mathbb{R}R:S×A→R, with no boundedness or sign condition;
  • real numbers γ\gammaγ (the discount) and ccc (the bisimulation weight) satisfying
0≤γ<1,γ≤c,c<1.0 \le \gamma < 1, \qquad \gamma \le c, \qquad c < 1.0≤γ<1,γ≤c,c<1.

Together these force 0≤γ≤c<10 \le \gamma \le c < 10≤γ≤c<1, so in particular c≥0c \ge 0c≥0;

  • a function π:S×A→R\pi : S \times A \to \mathbb{R}π:S×A→R assumed to be an optimal policy (defined below);
  • two arbitrary states s,t∈Ss, t \in Ss,t∈S, which may be equal.

Policies and values. A policy is a function π(a∣s)≥0\pi(a \mid s) \ge 0π(a∣s)≥0 with ∑aπ(a∣s)=1\sum_a \pi(a\mid s) = 1∑a​π(a∣s)=1 for every sss. It is stationary and possibly stochastic. For a policy π\piπ, define:

  • the on-policy reward rπ(s)=∑aπ(a∣s)R(s,a)r^\pi(s) = \sum_a \pi(a\mid s) R(s,a)rπ(s)=∑a​π(a∣s)R(s,a);
  • the on-policy transition matrix Pπ(s,s′)=∑aπ(a∣s)P(s′∣s,a)P^\pi(s, s') = \sum_a \pi(a\mid s) P(s'\mid s,a)Pπ(s,s′)=∑a​π(a∣s)P(s′∣s,a);
  • the value
Vπ(s)=∑n=0∞γn((Pπ)nrπ)(s),V^\pi(s) = \sum_{n=0}^{\infty} \gamma^n \big((P^\pi)^n r^\pi\big)(s),Vπ(s)=n=0∑∞​γn((Pπ)nrπ)(s),

where (Pπ)n(P^\pi)^n(Pπ)n is the nnn-th matrix power. By the formal convention, this infinite sum is taken to be 000 if the series is not summable;

  • the optimal value
V∗(s)=sup⁡{Vπ(s):π a policy},V^*(s) = \sup\{V^\pi(s) : \pi \text{ a policy}\},V∗(s)=sup{Vπ(s):π a policy},

a supremum of real numbers taken separately at each state. By convention it equals 000 if that set is not bounded above.

The hypothesis that π\piπ is an optimal policy means that π\piπ is a policy and Vπ(s)=V∗(s)V^\pi(s) = V^*(s)Vπ(s)=V∗(s) for every state sss.

Wasserstein distance. For a function d:S×S→Rd : S \times S \to \mathbb{R}d:S×S→R and functions μ,ν:S→R\mu, \nu : S \to \mathbb{R}μ,ν:S→R, a coupling is a g≥0g \ge 0g≥0 on S×SS \times SS×S with row sums ∑yg(x,y)=μ(x)\sum_y g(x,y) = \mu(x)∑y​g(x,y)=μ(x) and column sums ∑xg(x,y)=ν(y)\sum_x g(x,y) = \nu(y)∑x​g(x,y)=ν(y). Then

W1(μ,ν;d)=inf⁡g coupling∑x,yg(x,y) d(x,y).W_1(\mu,\nu; d) = \inf_{g \text{ coupling}} \sum_{x,y} g(x,y)\, d(x,y).W1​(μ,ν;d)=g couplinginf​x,y∑​g(x,y)d(x,y).

This is an infimum of real numbers. By convention it equals 000 if there are no couplings or if the set of costs is unbounded below.

On-policy bisimulation metric. The on-policy bisimulation operator sends ddd to

Fπ(d)(u,v)=(1−c) ∣rπ(u)−rπ(v)∣+c W1(Pπ(u,⋅),Pπ(v,⋅);d).F_\pi(d)(u,v) = (1-c)\,\big|r^\pi(u) - r^\pi(v)\big| + c\, W_1\big(P^\pi(u,\cdot), P^\pi(v,\cdot); d\big).Fπ​(d)(u,v)=(1−c)​rπ(u)−rπ(v)​+cW1​(Pπ(u,⋅),Pπ(v,⋅);d).

The π\piπ-bisimulation metric is then

d~π(u,v)=sup⁡n∈NFπ n(0)(u,v),\tilde d_\pi(u,v) = \sup_{n \in \mathbb{N}} F_\pi^{\,n}(0)(u,v),d~π​(u,v)=n∈Nsup​Fπn​(0)(u,v),

where:

  • Fπ n(0)F_\pi^{\,n}(0)Fπn​(0) is the nnn-fold iterate of FπF_\piFπ​ applied to the identically-zero function, with Fπ 0(0)=0F_\pi^{\,0}(0) = 0Fπ0​(0)=0;
  • the supremum is taken pointwise for each pair (u,v)(u,v)(u,v) as a supremum of reals, equal to 000 by convention if unbounded above.

Note that the metric uses the weight ccc and the given optimal policy π\piπ; it does not involve γ\gammaγ.

Conclusion. Under these hypotheses, the theorem asserts

∣V∗(s)−V∗(t)∣  ≤  11−c d~π(s,t).\big|V^*(s) - V^*(t)\big| \;\le\; \frac{1}{1-c}\,\tilde d_\pi(s,t).​V∗(s)−V∗(t)​≤1−c1​d~π​(s,t).
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