Theorem 4.2 (Theorem A.3): branched-rollout bound
ProvedWhenToTrustYourModel.branched_boundIn 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. Suppose, with the state marginal at time of under ,
Then
This bounds the true return of the new policy by the return of short model rollouts branched from the data distribution, in terms of the model error on the data-collecting policy's own distribution.
Formalization Note The branched rollout has its branch steps first, as in Lemma B.4. Actions in the model error are drawn from .
import Mathlib import Definitions.Def_WhenToTrustYourModel_Basic open Finset
namespace WhenToTrustYourModel
theorem branched_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 ρ₀) (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 _ => πD) (fun _ => P) t) πD P Phat ≤ εm)
(hdiv : ∀ s, tvDist (πD s) (π s) ≤ επ) :
branchedReturn γ r ρ₀ k π Phat πD P
- 2 * rmax * (γ ^ (k + 1) * επ / (1 - γ) ^ 2 + (γ ^ k + 2) / (1 - γ) * επ
+ k / (1 - γ) * (εm + 2 * επ)) ≤
policyReturn γ r ρ₀ π P := by sorry
end WhenToTrustYourModelRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let (states) and (actions) be finite types. A distribution on a finite set is a function with for all and . The total variation distance between two such functions is
Data and hypotheses. The theorem quantifies over the following.
- A discount factor with .
- A reward and a real number with for all .
- An initial state distribution on . Since has mass , is nonempty.
- A natural number , the branch length. The case is allowed.
- Two policies and . Each is a function such that and are distributions on for every . This forces to be nonempty, and hence .
- Two transition functions and . Each is a function such that and are distributions on for every .
- Real numbers and satisfying the two hypotheses below. Because total variation is nonnegative, these hypotheses force .
State marginals and returns. For time-indexed policies and dynamics , the state marginals are defined by
The discounted return is
This infinite sum is taken as an unconditional sum and is assigned the value if it is not summable. Under the hypotheses each term is bounded in absolute value by .
Model-error hypothesis. Let be the state marginal at time of the stationary process that starts from , uses policy and moves with dynamics . It is assumed that for every ,
Policy-divergence hypothesis. It is assumed that for every state ,
Conclusion. Let be the return of the stationary process that starts from , uses policy at every step and moves with dynamics .
Let be the return of the two-phase process that starts from :
- at times it acts with and moves with ;
- at times it acts with and moves with .
So the / segment comes first in time. When , is simply the return of under . The theorem asserts the one-sided inequality
No upper bound on is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.