Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2 (as proved): the dimension of the value-equivalent transition matrices

Proved
ValueEquivalence.dim_ve_kernels_le

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, 0<γ<10<\gamma<10<γ<1, and let m∗=(r∗,p∗)m^*=(r^*,p^*)m∗=(r∗,p∗) be the true model with known reward r∗r^*r∗. Let π1,…,πm\pi_1,\dots,\pi_mπ1​,…,πm​ be policies such that at every state sss the vectors π1(⋅∣s),…,πm(⋅∣s)∈RA\pi_1(\cdot\mid s),\dots,\pi_m(\cdot\mid s)\in\mathbb R^{A}π1​(⋅∣s),…,πm​(⋅∣s)∈RA are linearly independent, and let v1,…,vk∈RSv_1,\dots,v_k\in\mathbb R^{S}v1​,…,vk​∈RS be linearly independent. Let Π={πi}\Pi=\{\pi_i\}Π={πi​}, V={vj}\mathcal V=\{v_j\}V={vj​}, and let P(Π,V)\mathbb P(\Pi,\mathcal V)P(Π,V) be the set of transition kernels p~\tilde pp~​ for which (r∗,p~)(r^*,\tilde p)(r∗,p~​) is value equivalent to m∗m^*m∗ with respect to Π\PiΠ and V\mathcal VV, viewed as a subset of RS×A×S\mathbb R^{S\times A\times S}RS×A×S. Then

dim⁡[P(Π,V)]≤∣S∣(∣S∣∣A∣−mk).\dim\big[\mathbb P(\Pi,\mathcal V)\big]\le|S|\big(|S||A|-mk\big).dim[P(Π,V)]≤∣S∣(∣S∣∣A∣−mk).

Policies and functions thus reduce the dimension of the value-equivalent transition models multiplicatively.

Formalization Note The paper assumes only that the policies are pointwise linearly independent (πi∉p-span(Π∖{πi})\pi_i\notin p\text{-span}(\Pi\setminus\{\pi_i\})πi​∈/p-span(Π∖{πi​})). Its proof uses rank⁡(Π)=m∣S∣\operatorname{rank}(\boldsymbol\Pi)=m|S|rank(Π)=m∣S∣ for the stacked policy matrix, which holds exactly when the policies are linearly independent at every state; this is the hypothesis stated here, and for S≠∅S\ne\emptysetS=∅ it implies pointwise linear independence (for S=∅S=\emptysetS=∅ both sides of the inequality are 000). Under the paper's weaker hypothesis the bound fails: for ∣S∣=∣A∣=2|S|=|A|=2∣S∣=∣A∣=2, π1=((1,0),(1,0))\pi_1=((1,0),(1,0))π1​=((1,0),(1,0)), π2=((1,0),(0,1))\pi_2=((1,0),(0,1))π2​=((1,0),(0,1)) and V\mathcal VV a basis, the bound is 000 while P(Π,V)\mathbb P(\Pi,\mathcal V)P(Π,V) has dimension 111 for p∗p^*p∗ with full support. The paper allows γ=0\gamma=0γ=0, for which every kernel is value equivalent; the proof's identity P(Π,V)={P~:Π(P~−P)V=0}\mathbb P(\Pi,\mathcal V)=\{\tilde{\boldsymbol P}:\boldsymbol\Pi(\tilde{\boldsymbol P}-\boldsymbol P)\boldsymbol V=0\}P(Π,V)={P~:Π(P~−P)V=0} needs γ>0\gamma>0γ>0. The inequality is stated in the integers.

Preamble
import Mathlib
import Definitions.Def_ValueEquivalence_Basic

open Filter Topology
Formal statement
namespace ValueEquivalence

theorem dim_ve_kernels_le {S A : Type*} [Fintype S] [Fintype A] {m k : ℕ}
    (γ : ℝ) (hγ0 : 0 < γ) (hγ1 : γ < 1) (mstar : Model S A)
    (pol : Fin m → S → A → ℝ) (hpol : ∀ i, pol i ∈ policies)
    (hind : ∀ s, LinearIndependent ℝ (fun i => pol i s))
    (vs : Fin k → S → ℝ) (hvs : LinearIndependent ℝ vs) :
    (setDim (veKernels γ mstar Set.univ (Set.range pol) (Set.range vs)) : ℤ) ≤
      (Fintype.card S : ℤ) * ((Fintype.card S : ℤ) * Fintype.card A - (m : ℤ) * k) := by sorry

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

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

Fix finite sets SSS (states) and AAA (actions), either of which may be empty. Fix natural numbers mmm and kkk, either of which may be 000, and a real discount factor γ\gammaγ with 0<γ<10 < \gamma < 10<γ<1.

The true model. Let m∗=(r∗,p∗)m^* = (r^*, p^*)m∗=(r∗,p∗) be a model, consisting of:

  • an arbitrary real reward function r∗(s,a)r^*(s,a)r∗(s,a);
  • a transition kernel p∗(s′∣s,a)p^*(s' \mid s,a)p∗(s′∣s,a), meaning 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′∈Sp∗(s′∣s,a)=1\sum_{s'\in S} p^*(s'\mid s,a) = 1∑s′∈S​p∗(s′∣s,a)=1 for every s,as, as,a.

The policies. Let π1,…,πm\pi_1, \dots, \pi_mπ1​,…,πm​ be a list of policies. Each πi(a∣s)\pi_i(a\mid s)πi​(a∣s) is nonnegative and satisfies ∑a∈Aπi(a∣s)=1\sum_{a\in A}\pi_i(a\mid s) = 1∑a∈A​πi​(a∣s)=1 for every state sss. Assume also that, for every state sss, the vectors π1(⋅∣s),…,πm(⋅∣s)∈RA\pi_1(\cdot\mid s), \dots, \pi_m(\cdot\mid s) \in \mathbb{R}^Aπ1​(⋅∣s),…,πm​(⋅∣s)∈RA are linearly independent as an indexed family. In particular they are pairwise distinct, and m≤∣A∣m \le |A|m≤∣A∣ whenever SSS is nonempty. If SSS is nonempty and m≥1m \ge 1m≥1, then AAA must also be nonempty, since otherwise no policy exists.

The functions. Let v1,…,vk:S→Rv_1, \dots, v_k : S \to \mathbb{R}v1​,…,vk​:S→R be linearly independent as an indexed family in RS\mathbb{R}^SRS, so k≤∣S∣k \le |S|k≤∣S∣.

The Bellman operator. For a model (r,p)(r, p)(r,p), a policy π\piπ and a function vvv, the operator is

Tπr,p[v](s)=∑a∈Aπ(a∣s)(r(s,a)+γ∑s′∈Sp(s′∣s,a) v(s′)).T^{r,p}_\pi[v](s) = \sum_{a\in A} \pi(a\mid s)\Big(r(s,a) + \gamma \sum_{s'\in S} p(s'\mid s,a)\, v(s')\Big).Tπr,p​[v](s)=a∈A∑​π(a∣s)(r(s,a)+γs′∈S∑​p(s′∣s,a)v(s′)).

The set of value-equivalent kernels. Let P\mathcal{P}P be the set of all functions p:S×A×S→Rp : S\times A\times S \to \mathbb{R}p:S×A×S→R such that:

  • ppp is a transition kernel (nonnegative, each p(⋅∣s,a)p(\cdot\mid s,a)p(⋅∣s,a) sums to 111); and
  • ppp is value equivalent to m∗m^*m∗ when paired with the same reward r∗r^*r∗, that is, for every i∈{1,…,m}i \in \{1,\dots,m\}i∈{1,…,m}, every j∈{1,…,k}j \in \{1,\dots,k\}j∈{1,…,k} and every state sss,
Tπir∗,p[vj](s)=Tπir∗,p∗[vj](s).T^{r^*,p}_{\pi_i}[v_j](s) = T^{r^*,p^*}_{\pi_i}[v_j](s).Tπi​r∗,p​[vj​](s)=Tπi​r∗,p∗​[vj​](s).

No other restriction is placed on ppp. When m=0m = 0m=0 or k=0k = 0k=0, this condition is vacuous and P\mathcal{P}P is the set of all transition kernels. The set P\mathcal{P}P always contains p∗p^*p∗.

The dimension of a set. For a subset XXX of the finite-dimensional real vector space E=RS×A×SE = \mathbb{R}^{S\times A\times S}E=RS×A×S, dim⁡[X]\dim[X]dim[X] is defined as the least natural number ddd for which there exist a linear subspace W⊆EW \subseteq EW⊆E and a vector c∈Ec \in Ec∈E with X+c⊆WX + c \subseteq WX+c⊆W and dim⁡W=d\dim W = ddimW=d. For the empty set this value is 000.

The theorem asserts that, with dim⁡[P]\dim[\mathcal{P}]dim[P] viewed as an integer and the right-hand side computed in the integers (no truncation at 000),

dim⁡[P]  ≤  ∣S∣ (∣S∣ ∣A∣−m k).\dim[\mathcal{P}] \;\le\; |S|\,\big(|S|\,|A| - m\,k\big).dim[P]≤∣S∣(∣S∣∣A∣−mk).
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