Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4 (as proved): value-equivalent models give the same value-iteration solution

Proved
ValueEquivalence.ve_value_iteration_same_solution

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

bellman-operatorlinear-algebramodel-based-rlreinforcement-learningvalue-equivalence

Let S,AS,AS,A be finite with A≠∅A\ne\emptysetA=∅, 0≤γ<10\le\gamma<10≤γ<1, m∗=(r∗,p∗)m^*=(r^*,p^*)m∗=(r∗,p∗) the true model with Bellman operators TπT_\piTπ​ and greedy operator Tv=max⁡aTavTv=\max_aT_avTv=maxa​Ta​v, and M\mathcal MM a set of models that all have the true reward r∗r^*r∗. Let Π⊆Π\Pi\subseteq\boldsymbol\PiΠ⊆Π and V\mathcal VV be sets of policies and functions, and let V′\mathcal V'V′ be a subspace of RS\mathbb R^SRS such that

  1. v∈V′v\in\mathcal V'v∈V′ implies Tπv∈V′T_\pi v\in\mathcal V'Tπ​v∈V′ for every policy π∈Π\pi\in\boldsymbol\Piπ∈Π,
  2. p-span(Π)⊇Πp\text{-span}(\Pi)\supseteq\boldsymbol\Pip-span(Π)⊇Π, and
  3. span⁡(V)=V′\operatorname{span}(\mathcal V)=\mathcal V'span(V)=V′.

Then for every m~∈M(Π,V)\tilde m\in\mathcal M(\Pi,\mathcal V)m~∈M(Π,V), with greedy operator T~\tilde TT~, and every v′∈V′v'\in\mathcal V'v′∈V′,

T~(n)v′=T(n)v′for all n≥0,\tilde T^{(n)}v'=T^{(n)}v'\quad\text{for all }n\ge0,T~(n)v′=T(n)v′for all n≥0,

and T~\tilde TT~ and TTT have the same fixed points. In particular the optimal value functions agree, v~∗=v∗\tilde v^*=v^*v~∗=v∗: value iteration with m~\tilde mm~ started anywhere in V′\mathcal V'V′ yields the same solution as with m∗m^*m∗.

Formalization Note The paper states this for models with arbitrary rewards; that version is false. With two states, one action, γ=1/2\gamma=1/2γ=1/2, p∗=Ip^*=Ip∗=I, r∗=(1,−1)r^*=(1,-1)r∗=(1,−1), V={(1,−1)}\mathcal V=\{(1,-1)\}V={(1,−1)} and m~=(2⋅(1,−1),swap)\tilde m=(2\cdot(1,-1),\text{swap})m~=(2⋅(1,−1),swap), all hypotheses hold but v∗=(2,−2)v^*=(2,-2)v∗=(2,−2) and v~∗=(4/3,−4/3)\tilde v^*=(4/3,-4/3)v~∗=(4/3,−4/3). The proof applies Proposition 1, whose span part needs a common reward. The statement therefore adds that all models in M\mathcal MM have the true reward. "The same solution" is formalized by the equality of all value-iteration iterates from v′v'v′ and of the fixed points of the greedy operators. Each greedy operator has exactly one fixed point (its optimal value function) because γ<1\gamma<1γ<1.

Preamble
import Mathlib
import Definitions.Def_ValueEquivalence_Basic

open Filter Topology
Formal statement
namespace ValueEquivalence

theorem ve_value_iteration_same_solution {S A : Type*} [Fintype S] [Fintype A] [Nonempty A]
    (γ : ℝ) (hγ0 : 0 ≤ γ) (hγ1 : γ < 1) (M : Set (Model S A)) (mstar : Model S A)
    (hM : ∀ m ∈ M, m.r = mstar.r)
    (Pol : Set (S → A → ℝ)) (V : Set (S → ℝ)) (V' : Submodule ℝ (S → ℝ))
    (hPol : Pol ⊆ policies)
    (hclosed : ∀ π ∈ (policies : Set (S → A → ℝ)), ∀ v ∈ V', bellman mstar γ π v ∈ V')
    (hcover : policies ⊆ pspan Pol) (hspan : Submodule.span ℝ V = V')
    (mt : Model S A) (hmt : mt ∈ veSpace γ M mstar Pol V) (v' : S → ℝ) (hv' : v' ∈ V') :
    (∀ n : ℕ, (bellmanOpt mt γ)^[n] v' = (bellmanOpt mstar γ)^[n] v') ∧
    (∀ u : S → ℝ, Function.IsFixedPt (bellmanOpt mt γ) u ↔
      Function.IsFixedPt (bellmanOpt mstar γ) u) := by sorry

end ValueEquivalence
Source
Grimm, Barreto, Singh and Silver, The Value Equivalence Principle for Model-Based Reinforcement Learning, arXiv:2011.03506v1 (2020), Section 4.1, Proposition 4, p. 6; proof in Appendix A.1.1, p. 16
Read-back

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

Let SSS and AAA be finite types, with AAA nonempty; SSS may be empty. All functions below are real-valued.

Basic notions.

  • A policy is a function π:S×A→R\pi : S \times A \to \mathbb{R}π:S×A→R with π(s,a)≥0\pi(s,a) \ge 0π(s,a)≥0 and ∑a∈Aπ(s,a)=1\sum_{a\in A}\pi(s,a) = 1∑a∈A​π(s,a)=1 for every sss. The set of all policies is Π\PiΠ.
  • A model m=(rm,pm)m = (r_m, p_m)m=(rm​,pm​) consists of:
    • an arbitrary reward function rm:S×A→Rr_m : S\times A\to\mathbb{R}rm​:S×A→R;
    • a function pm(s′∣s,a)p_m(s' \mid s,a)pm​(s′∣s,a) that is nonnegative and satisfies ∑s′pm(s′∣s,a)=1\sum_{s'} p_m(s'\mid s,a) = 1∑s′​pm​(s′∣s,a)=1 for every (s,a)(s,a)(s,a).
  • For a model mmm, a discount γ\gammaγ, a policy-like function π\piπ, and v:S→Rv : S\to\mathbb{R}v:S→R, the policy Bellman operator is
(Tπmv)(s)=∑a∈Aπ(s,a)(rm(s,a)+γ∑s′∈Spm(s′∣s,a) v(s′)).(T^m_\pi v)(s) = \sum_{a\in A}\pi(s,a)\Big(r_m(s,a) + \gamma\sum_{s'\in S}p_m(s'\mid s,a)\,v(s')\Big).(Tπm​v)(s)=a∈A∑​π(s,a)(rm​(s,a)+γs′∈S∑​pm​(s′∣s,a)v(s′)).
  • The greedy Bellman operator is
(Tmv)(s)=sup⁡a∈A(rm(s,a)+γ∑s′∈Spm(s′∣s,a) v(s′)).(T^m v)(s) = \sup_{a\in A}\Big(r_m(s,a) + \gamma\sum_{s'\in S}p_m(s'\mid s,a)\,v(s')\Big).(Tmv)(s)=a∈Asup​(rm​(s,a)+γs′∈S∑​pm​(s′∣s,a)v(s′)).

Because AAA is finite and nonempty, this supremum is a maximum.

Data. The theorem takes:

  • a real γ\gammaγ;
  • a set MMM of models and a model m∗m^*m∗;
  • a set Pol\mathrm{Pol}Pol of functions S×A→RS\times A\to\mathbb{R}S×A→R;
  • a set VVV of functions S→RS\to\mathbb{R}S→R;
  • a linear subspace V′⊆RSV'\subseteq\mathbb{R}^SV′⊆RS;
  • a model m~\tilde mm~ and a vector v′v'v′.

Hypotheses. The theorem assumes all of the following:

  1. 0≤γ<10\le\gamma<10≤γ<1. The case γ=0\gamma = 0γ=0 is allowed.
  2. Every m∈Mm\in Mm∈M has rm=rm∗r_m = r_{m^*}rm​=rm∗​. The theorem does not require m∗∈Mm^* \in Mm∗∈M.
  3. Pol⊆Π\mathrm{Pol}\subseteq\PiPol⊆Π.
  4. For every policy π∈Π\pi\in\Piπ∈Π, not only those in Pol\mathrm{Pol}Pol, and every v∈V′v\in V'v∈V′, we have Tπm∗v∈V′T^{m^*}_\pi v\in V'Tπm∗​v∈V′. Since V′V'V′ is a subspace and 0∈V′0 \in V'0∈V′, this includes Tπm∗0=(s↦∑aπ(s,a) rm∗(s,a))∈V′T^{m^*}_\pi 0 = \big(s\mapsto\sum_a\pi(s,a)\,r_{m^*}(s,a)\big)\in V'Tπm∗​0=(s↦∑a​π(s,a)rm∗​(s,a))∈V′.
  5. Every policy lies in the pointwise span of Pol\mathrm{Pol}Pol. That is, for every π∈Π\pi\in\Piπ∈Π and every s∈Ss\in Ss∈S, the vector π(s,⋅)∈RA\pi(s,\cdot)\in\mathbb{R}^Aπ(s,⋅)∈RA lies in the linear span of {σ(s,⋅):σ∈Pol}\{\sigma(s,\cdot):\sigma\in\mathrm{Pol}\}{σ(s,⋅):σ∈Pol}. If Pol\mathrm{Pol}Pol is empty, this span is {0}\{0\}{0} at every sss.
  6. The linear span of VVV equals V′V'V′.
  7. m~∈M\tilde m\in Mm~∈M, and m~\tilde mm~ is value equivalent to m∗m^*m∗ with respect to Pol\mathrm{Pol}Pol and VVV:
Tπm∗v=Tπm~vfor all π∈Pol, v∈V.T^{m^*}_\pi v = T^{\tilde m}_\pi v \qquad\text{for all } \pi\in\mathrm{Pol},\ v\in V.Tπm∗​v=Tπm~​vfor all π∈Pol, v∈V.
  1. v′∈V′v'\in V'v′∈V′.

Conclusion. The theorem asserts both of the following:

  • For every natural number nnn, including n=0n=0n=0 where both sides are v′v'v′:
(Tm~)nv′=(Tm∗)nv′.(T^{\tilde m})^n v' = (T^{m^*})^n v'.(Tm~)nv′=(Tm∗)nv′.

Here the exponent nnn denotes nnn-fold composition of the greedy Bellman operator.

  • For every function u:S→Ru : S\to\mathbb{R}u:S→R, not only those in V′V'V′:
Tm~u=u  ⟺  Tm∗u=u.T^{\tilde m}u = u \iff T^{m^*}u = u.Tm~u=u⟺Tm∗u=u.

In words, uuu is a fixed point of the greedy Bellman operator of m~\tilde mm~ exactly when it is a fixed point of the greedy Bellman operator of m∗m^*m∗.

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