Proposition A.2 (as proved, corrected powers of and ): the -based discrepancy bound satisfies (R1) and (R2)
ProvedMBRLGuarantees.dChi_discrepancy_boundLet , let be bounded and measurable, let , let be the true model and . Take and
where , , , all computed on . Then
- (R1) for all policies and every model with (and measurable), ;
- (R2) for all .
Formalization Note The paper prints . Its proof in Appendix C.2 uses , but only gives . It also writes for . Correcting both steps gives the bound above. The printed bound is false: a two-state example violates it (see the mission report). The paper's uses with unspecified; the statement uses , as the proof does.
import Mathlib import Definitions.Def_MBRLGuarantees_Basic open MeasureTheory ProbabilityTheory InformationTheory open scoped ENNReal
namespace MBRLGuarantees
theorem dChi_discrepancy_bound {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 μ₀] (Mstar : Kernel (S × A) S) [IsMarkovKernel Mstar]
(δ : ℝ) (hδ : 0 ≤ δ) :
(∀ (piref pi : Kernel S A) (Mhat : Kernel (S × A) S), IsMarkovKernel piref →
IsMarkovKernel pi → IsMarkovKernel Mhat → Measurable (fun s => chiSq (pi s) (piref s)) →
dChi γ μ₀ Mstar pi piref ≤ ENNReal.ofReal δ →
value γ R μ₀ pi Mhat -
((1 - γ)⁻¹ * epsOne γ R μ₀ Mstar piref pi Mhat +
((1 - γ) ^ 2)⁻¹ * Real.sqrt δ * Real.sqrt (epsTwo γ R μ₀ Mstar piref pi Mhat) +
((1 - γ) ^ (5 / 2 : ℝ))⁻¹ * δ ^ (3 / 4 : ℝ) * epsMax γ R Mstar pi Mhat) ≤
value γ R μ₀ pi Mstar) ∧
(∀ piref pi : Kernel S A, IsMarkovKernel piref → IsMarkovKernel pi →
(1 - γ)⁻¹ * epsOne γ R μ₀ Mstar piref pi Mstar +
((1 - γ) ^ 2)⁻¹ * Real.sqrt δ * Real.sqrt (epsTwo γ R μ₀ Mstar piref pi Mstar) +
((1 - γ) ^ (5 / 2 : ℝ))⁻¹ * δ ^ (3 / 4 : ℝ) * epsMax γ R Mstar pi Mstar = 0) := by sorry
end MBRLGuaranteesRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let and be arbitrary measurable spaces of states and actions. The following data are fixed throughout:
- a discount factor with ;
- a reward that is measurable and bounded, meaning there is a constant with for all ;
- a probability measure on , the initial-state distribution;
- a Markov kernel from to , the "true" model;
- a real number .
The theorem asserts the conjunction of two statements, (I) and (II), defined after the notation below.
Notation (unfolded definitions). For a kernel from to and a kernel from to :
- The induced state transition kernel is
- is its -fold composition, with the identity.
- The one-step expected reward is .
The state value function and the value are
Lean's conventions apply: a non-summable series is assigned the value , and a non-integrable integrand has integral .
On the model , the discounted state distribution and the re-weighted distribution of a policy are
Here denotes the law of the state after steps when starting from .
For a model , the model discrepancy is defined against :
From one forms three quantities:
Some points about these quantities:
- In all three, is built from and , while the weighting measures come from on .
- The supremum is a real supremum. If the set is unbounded above, or if is empty, it takes the junk value .
- The non-integrability convention above also applies to and .
For measures , the distance takes values in :
Here is the Radon–Nikodym derivative, converted to a real number. The policy distance is
where both integrals are taken in .
Write
where are computed for .
(I) The bound. Take any Markov kernels and from to , and any Markov kernel from to . Assume:
- the map is measurable;
- .
Then
The same serves both as the bound in the hypothesis and as the coefficient inside . No other relation between , and is assumed.
(II) The case . For any Markov kernels and from to , with no further hypotheses (no condition on and no condition on ):
Unfolding the definitions, when the two integrals in are literally the same expression. Hence , which makes , and this conjunct follows directly from the definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.