Theorem 4.3 (Theorem A.2): branched-rollout bound with model error under the new policy
ProvedWhenToTrustYourModel.branched_bound_new_policy_errorIn the setting of Theorem 4.1, fix a branch length and let be the return of the -branched rollout that runs under the model for the branch steps and under the true dynamics otherwise. Write for the state marginal at time of under . Suppose
Then
With the model error measured under the new policy, the bound can favour a positive branch length , which is the paper's argument for short model rollouts.
Formalization Note Theorem 4.3 in the main text writes the hypothesis with while calling the model error under the updated policy; with the statement is false (a model exact on the states and actions of but wrong on an action only takes). The Lean statement follows Theorem A.2, which uses , and draws actions from . The branched rollout has its branch steps first, as in Lemma B.4.
import Mathlib import Definitions.Def_WhenToTrustYourModel_Basic open Finset
namespace WhenToTrustYourModel
theorem branched_bound_new_policy_error {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 ρ₀) (k : ℕ)
(π π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 _ => π) (fun _ => P) t) π P Phat ≤ εm')
(hdiv : ∀ s, tvDist (πD s) (π s) ≤ επ) :
branchedReturn γ r ρ₀ k π Phat πD P
- 2 * rmax * (γ ^ (k + 1) * επ / (1 - γ) ^ 2 + γ ^ k * επ / (1 - γ)
+ k / (1 - γ) * εm') ≤
policyReturn γ r ρ₀ π P := by sorry
end WhenToTrustYourModelRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be finite sets of states and actions. A distribution on a finite set is a function with for all and . The total variation between any two real functions on is
Data and hypotheses. The theorem is stated for:
- a discount factor with ;
- a reward function and a real number with for all ;
- an initial state distribution on ;
- a natural number ;
- two policies and , meaning that and are distributions on for every state ;
- two dynamics and , meaning that and are distributions on for every pair ;
- real numbers and .
Because has total mass , is nonempty. Because policies are distributions on , is also nonempty. Hence .
State marginals and returns. For time-indexed policies and dynamics , define the state marginals by
The discounted return is
This is a formal infinite sum, assigned the value if not summable. Under the hypotheses the -th term is bounded in absolute value by .
The return uses and at every time. Write for its state marginal at time .
The branched return uses
So the first time steps act with and move with . Every later step acts with and moves with . When , is simply the return of under from .
Two further hypotheses.
(i) For every time ,
Here the states are weighted by the marginal of under the true dynamics , not under and not under . The bound is required uniformly at every .
(ii) For every state ,
This is a worst-case bound over all states.
Since total variation is nonnegative and is nonempty, these hypotheses force and .
Conclusion. Under all of the above,
This is a one-sided lower bound on the true return of under . No reverse inequality is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.