Theorem 3.1: the meta-algorithm improves the true value monotonically
ProvedMBRLGuarantees.meta_algorithm_monotoneLet , let be bounded and measurable, and let . Let be a family of policies and a family of models (Markov kernels) with . Let be a discrepancy bound and a policy distance with values in , let , and assume
- (R1) for all policies and models with ;
- (R2) for all policies ;
- for every .
Run Algorithm 1 for iterations from : for each , satisfies and maximises over all with . Then
This is the paper's guarantee of monotone improvement for model-based RL with an optimistic, jointly optimised lower bound.
Formalization Note The theorem's second claim, convergence to a local maximum, is not included. The hypotheses and are not written in the paper, but its proof uses them when it takes as a feasible point of iteration . Without them the conclusion fails (see the mission report). "The optimisation problem is solvable at each iteration" is expressed by the maximisation property of the iterates.
import Mathlib import Definitions.Def_MBRLGuarantees_Basic open MeasureTheory ProbabilityTheory InformationTheory open scoped ENNReal
namespace MBRLGuarantees
theorem meta_algorithm_monotone {S A : Type*} [MeasurableSpace S] [MeasurableSpace A]
(γ : ℝ) (hγ0 : 0 ≤ γ) (hγ1 : γ < 1)
(R : S × A → ℝ) (hRm : Measurable R) (hRb : ∃ C, ∀ x, |R x| ≤ C)
(μ₀ : Measure S) [IsProbabilityMeasure μ₀]
(Pol : Set (Kernel S A)) (hPol : ∀ pi ∈ Pol, IsMarkovKernel pi)
(Mod : Set (Kernel (S × A) S)) (hMod : ∀ M ∈ Mod, IsMarkovKernel M)
(Mstar : Kernel (S × A) S) (hMstar : Mstar ∈ Mod)
(D : Kernel S A → Kernel (S × A) S → Kernel S A → ℝ) (hD0 : ∀ piref M pi, 0 ≤ D piref M pi)
(d : Kernel S A → Kernel S A → ℝ≥0∞) (δ : ℝ≥0∞)
(hR1 : ∀ (piref pi : Kernel S A) (Mhat : Kernel (S × A) S), IsMarkovKernel piref →
IsMarkovKernel pi → IsMarkovKernel Mhat → d pi piref ≤ δ →
value γ R μ₀ pi Mhat - D piref Mhat pi ≤ value γ R μ₀ pi Mstar)
(hR2 : ∀ piref pi : Kernel S A, IsMarkovKernel piref → IsMarkovKernel pi →
D piref Mstar pi = 0)
(hdself : ∀ pi ∈ Pol, d pi pi = 0)
(T : ℕ) (pol : ℕ → Kernel S A) (mod : ℕ → Kernel (S × A) S) (hpol0 : pol 0 ∈ Pol)
(hstep : ∀ k < T, pol (k + 1) ∈ Pol ∧ mod (k + 1) ∈ Mod ∧ d (pol (k + 1)) (pol k) ≤ δ ∧
∀ pi ∈ Pol, ∀ M ∈ Mod, d pi (pol k) ≤ δ →
value γ R μ₀ pi M - D (pol k) M pi ≤
value γ R μ₀ (pol (k + 1)) (mod (k + 1)) - D (pol k) (mod (k + 1)) (pol (k + 1))) :
∀ i j, i ≤ j → j ≤ T → value γ R μ₀ (pol i) Mstar ≤ value γ R μ₀ (pol j) Mstar := by sorry
end MBRLGuaranteesRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. and are arbitrary measurable spaces of states and actions. A policy is a kernel from to , and a model is a kernel from to . Neither is assumed to be a probability kernel unless a hypothesis says so. The other data are:
- a discount factor with ;
- a reward that is measurable and bounded, meaning there is some with for all ;
- a probability measure on , the initial-state distribution.
Value function. For a policy and model , the value is built from four pieces:
- The one-step state transition kernel is the law of the next state . It is obtained by drawing , then , and keeping only the -marginal.
- is its -fold iterate, with .
- is the expected one-step reward.
- The state value and the value are
The sum, the integrals and the conventions behave as follows:
- The sum is an unconditional infinite sum. It is defined to be if the series is not summable.
- Each integral is defined to be if its integrand is not integrable, including when the integrand is not measurable.
- The convention applies, so for we get .
- The composition defining is the zero kernel when or is not s-finite.
Abstract data.
- is a set of policies, each of which is a Markov kernel, i.e. each is a probability measure.
- is a set of models, each of which is a Markov kernel.
- .
- is an arbitrary function with everywhere.
- is an arbitrary function.
- ; the value is allowed, in which case every constraint holds trivially.
Hypotheses on and . Neither nor is tied to any specific formula; they are constrained only by the following:
- (R1) Let be any Markov kernels, not necessarily in or , with . Then
- (R2) For all Markov kernels : .
- for every .
Iterates. Fix , a sequence of policies and a sequence of models , with . For every , assume:
- ;
- ;
- ;
- for all and with ,
In other words, attains the maximum of over the feasible pairs.
Some terms are left unconstrained:
- is never used.
- and for are not used.
- When there are no step hypotheses at all.
Conclusion. For all natural numbers ,
So the true-model values of are monotonically non-decreasing. For , or for , the claim is trivial.
None of the other bundle definitions appear in this statement: the discounted occupancy measures, , , , , , and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.