Lemma 3: local value difference bound
ProvedDeepMDP.local_value_difference_boundLet , and be as in Lemma 2 (countable discrete , metric , finite , , bounded measurable rewards), with -Lipschitz and (Assumption 1). Let be a -Lipschitz-valued policy, let be a stationary distribution of in , and let . With the local losses and measured under ,
This is the form of the guarantee that can be optimised by stochastic gradient methods, since the losses are expectations.
Formalization Note The expectations are integrals of nonnegative functions with values in . The statement holds for every stationary distribution of the policy, which is what the proof uses.
import Mathlib import Definitions.Def_DeepMDP_Basic open MeasureTheory ProbabilityTheory Filter open scoped ENNReal NNReal
namespace DeepMDP
theorem local_value_difference_bound {S Sb A : Type*} [MeasurableSpace S] [DiscreteMeasurableSpace S] [Countable S]
[MetricSpace Sb] [MeasurableSpace Sb] [BorelSpace Sb]
[Fintype A] [Nonempty A] [MeasurableSpace A] [MeasurableSingletonClass A]
(R : S → A → ℝ) (P : A → Kernel S S) (Rb : Sb → A → ℝ) (Pb : A → Kernel Sb Sb) (γ : ℝ)
(φ : S → Sb) (hM : IsMDP R P γ) (hMb : IsMDP Rb Pb γ)
(KRb KPb : ℝ≥0) (hLip : IsLipschitzMDP Rb Pb KRb KPb) (hA1 : γ * (KPb : ℝ) < 1)
(πb : Kernel Sb A) [IsMarkovKernel πb] (KV : ℝ≥0) (hπ : IsLipschitzValued Rb Pb γ πb KV)
(ξ : Measure S) (hξ : IsStationary P (liftPolicy πb φ) ξ) :
∫⁻ z, ENNReal.ofReal |qValue R P γ (liftPolicy πb φ) z.1 z.2 - qValue Rb Pb γ πb (φ z.1) z.2|
∂(stateActionDist ξ (liftPolicy πb φ)) ≤
(rewardLossLocal (stateActionDist ξ (liftPolicy πb φ)) R Rb φ +
ENNReal.ofReal γ * (KV : ℝ≥0∞) * transLossLocal (stateActionDist ξ (liftPolicy πb φ)) P Pb φ) /
ENNReal.ofReal (1 - γ) := by sorry
end DeepMDPRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let the following be given:
- , a countable set of "ground" states. Every subset of is measurable.
- , a metric space with metric , equipped with its Borel -algebra.
- , a finite, nonempty set of actions. Its singletons are measurable.
- Real-valued reward functions and .
- For each action , transition kernels on and on .
- A real number .
- An arbitrary map . No condition is imposed on .
- Constants .
- A Markov kernel from to , i.e. each is a probability measure on .
- A measure on .
The lifted policy is .
Hypotheses.
- is an MDP. This means:
- ;
- every is a probability measure (each is a Markov kernel);
- each is measurable;
- there is a constant with for all .
- is an MDP in the same sense, with the same .
- is -Lipschitz. For every action and all :
Here, for measures on ,
The infimum over an empty set of couplings is . 4. . 5. is -Lipschitz-valued in . The functions and, for each , are -Lipschitz with respect to . 6. is stationary for in . That is, is a probability measure on and for every :
The constant does not appear in the conclusion.
Value functions (for either MDP, written here for and a policy ). They are defined through the iterates and
The integral is the Bochner integral, which is taken to be when the integrand is not integrable. Then:
- . If this limit does not exist, is an unspecified real number.
- .
and are defined the same way from .
Conclusion. Let be the probability measure on given by . Let be the pushforward of under , i.e. the law of for . Define the two local losses as -valued integrals:
The theorem asserts, as an inequality in the extended nonnegative reals :
Edge cases.
- Since , the denominator is strictly positive and finite.
- If either loss is , the right-hand side is and the inequality holds trivially. The one exception is the transition term when or : the convention makes even if .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.