Theorem 4.1 (Theorem A.1): MBPO performance bound
ProvedWhenToTrustYourModel.mbpo_performance_boundConsider a discounted Markov decision process with finite state and action sets, true dynamics , discount , a reward with and an initial distribution . Let be a learned model of the dynamics, the data-collecting policy and a new policy. Write for the return of under , for its return under , and for the state marginal at time of under . Suppose
Then
Any improvement of the model return by more than the bracket is therefore an improvement of the true return: this is the monotonic-improvement guarantee behind model-based policy optimization.
Formalization Note Theorem 4.1 measures the total variation of the joint law of next state and reward, with a learned reward; the appendix version (Theorem A.1), which is the one proved, uses the dynamics and a known reward. The Lean statement is Theorem A.1. The paper does not say how actions are drawn in the model error; they are drawn from , the policy whose data the model is trained on.
import Mathlib import Definitions.Def_WhenToTrustYourModel_Basic open Finset
namespace WhenToTrustYourModel
theorem mbpo_performance_bound {S A : Type*} [Fintype S] [Fintype A]
(γ : ℝ) (hγ₀ : 0 < γ) (hγ₁ : γ < 1)
(r : S → A → ℝ) (rmax : ℝ) (hr : ∀ s a, |r s a| ≤ rmax)
(ρ₀ : S → ℝ) (hρ₀ : IsDist ρ₀)
(π πD : S → A → ℝ) (hπ : IsPolicy π) (hπD : IsPolicy πD)
(P Phat : S → A → S → ℝ) (hP : IsDynamics P) (hPhat : IsDynamics Phat)
(εm επ : ℝ)
(hm : ∀ t, expectedTV (stateDist ρ₀ (fun _ => πD) (fun _ => P) t) πD P Phat ≤ εm)
(hdiv : ∀ s, tvDist (πD s) (π s) ≤ επ) :
policyReturn γ r ρ₀ π Phat
- (2 * γ * rmax * (εm + 2 * επ) / (1 - γ) ^ 2 + 4 * rmax * επ / (1 - γ)) ≤
policyReturn γ r ρ₀ π P := by sorry
end WhenToTrustYourModelRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix finite sets (states) and (actions). Either could in principle be empty, but the hypotheses below force both to be nonempty: must have total mass , and each must be a distribution on .
Data and hypotheses. The theorem quantifies over all of the following.
- A discount factor with (strict on both sides).
- A reward function and a real number with for every . Since and are nonempty, this forces .
- An initial state distribution on : and .
- Two policies and . For each state , and are probability distributions on (nonnegative, summing to ).
- Two transition kernels and . For each pair , and are probability distributions on .
- Two real numbers and . No sign is assumed, but the two hypotheses below force both to be , because total variation is nonnegative.
Total variation. For functions on a finite set,
State marginals. For a stationary policy and kernel , the time- state marginal is defined recursively:
Model-error hypothesis. For every time , measured along the marginal of under the true kernel , with actions drawn from :
This is a bound uniform in , imposed separately at each time step. It is not a bound on a discounted or averaged state distribution.
Policy-divergence hypothesis. For every state :
Returns. The return of under a kernel is
The infinite sum is taken with the convention that it equals if the series is not summable. Under the stated hypotheses, each inner sum is bounded by in absolute value and , so the series converges absolutely.
Conclusion. The theorem asserts the one-sided inequality
In words, the true return of is at least its return under the model , minus the displayed penalty. Only this lower bound on is stated. No upper bound, and no bound on , is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.