Lemma 1: Lipschitz-valued policies (part 2 as proved)
ProvedDeepMDP.lipschitz_valueLet be a -Lipschitz DeepMDP with discount , bounded measurable rewards, and (Assumption 1). Then:
- Every optimal policy of is -Lipschitz-valued.
- Let be a policy whose reward function is -Lipschitz and whose transition function satisfies , with . Then is -Lipschitz, and each is Lipschitz.
- Every constant policy ( for all ) is -Lipschitz-valued.
These are the policies to which the value-difference and representation bounds apply.
Formalization Note Part 2 is stated as the proof in Appendix A.1 establishes it. The printed part 2 claims that is -Lipschitz-valued under . That fails for , whose Lipschitz constant depends on the per-action rewards (see the mission report), and the constant is undefined when . The proof shows the bound for under and states that is also Lipschitz. The Lipschitz constant is passed to Lean's LipschitzWith as a nonnegative real.
import Mathlib import Definitions.Def_DeepMDP_Basic open MeasureTheory ProbabilityTheory Filter open scoped ENNReal NNReal
namespace DeepMDP
theorem lipschitz_value {Sb A : Type*} [MetricSpace Sb] [MeasurableSpace Sb] [BorelSpace Sb]
[Fintype A] [Nonempty A] [MeasurableSpace A] [MeasurableSingletonClass A]
(Rb : Sb → A → ℝ) (Pb : A → Kernel Sb Sb) (γ : ℝ) (hMb : IsMDP Rb Pb γ)
(KRb KPb : ℝ≥0) (hLip : IsLipschitzMDP Rb Pb KRb KPb) (hA1 : γ * (KPb : ℝ) < 1) :
(∀ πs : Kernel Sb A, IsOptimalPolicy Rb Pb γ πs →
IsLipschitzValued Rb Pb γ πs (Real.toNNReal (KRb / (1 - γ * KPb)))) ∧
(∀ πb : Kernel Sb A, IsMarkovKernel πb → ∀ KRpi KPpi : ℝ≥0,
LipschitzWith KRpi (policyReward Rb πb) →
(∀ x y, wasserstein (policyTrans Pb πb x) (policyTrans Pb πb y) ≤ (KPpi : ℝ≥0∞) * edist x y) →
γ * (KPpi : ℝ) < 1 →
LipschitzWith (Real.toNNReal (KRpi / (1 - γ * KPpi))) (vValue Rb Pb γ πb) ∧
∀ a, ∃ K : ℝ≥0, LipschitzWith K fun x => qValue Rb Pb γ πb x a) ∧
(∀ πb : Kernel Sb A, IsMarkovKernel πb → (∀ a x y, πb x {a} = πb y {a}) →
IsLipschitzValued Rb Pb γ πb (Real.toNNReal (KRb / (1 - γ * KPb)))) := by sorry
end DeepMDPRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a metric space equipped with its Borel -algebra. Let be a finite, nonempty set of actions, with a -algebra in which every singleton is measurable. The data are:
- a reward function ;
- for each action , a measurable kernel from to , written ;
- a real number ;
- two constants .
Hypotheses.
- MDP conditions. . Each is a probability measure for every and . For each , the map is measurable. There is a real constant with for all .
- Lipschitz MDP. For every action and all ,
- Contraction. .
Here is the Wasserstein-1 quantity with values in :
The infimum ranges over all measures on whose two marginals (pushforwards under the coordinate projections) are exactly and . The integral is the nonnegative extended Lebesgue integral, and the infimum over an empty set of couplings would be .
Value functions. A policy is a kernel from to . Write for the real number . For a policy , define iterates by and
This integral is a Bochner integral, so it is taken to be whenever the integrand is not integrable. From these iterates:
- is the limit of as when that limit exists. When the limit does not exist, is an unspecified real number.
- .
Derived notions.
- -Lipschitz. A function is -Lipschitz if for all .
- -Lipschitz-valued policy. is -Lipschitz-valued if is -Lipschitz and, for every action , is -Lipschitz.
- The constant . Set
The denominator is positive by hypothesis 3, so .
Conclusion. The theorem asserts the conjunction of the following three statements.
-
Optimal policies. Let be an optimal policy: every is a probability measure, and for every policy with probability-measure fibres and every . Then is -Lipschitz-valued. This part says nothing about whether any optimal policy exists; if none exists, it holds vacuously.
-
Arbitrary policies under policy-level hypotheses. Let be any policy whose fibres are probability measures, and let . Define
Suppose that:
- is -Lipschitz;
- for all ;
- .
Then:
- is -Lipschitz;
- for each action there exists some constant (depending on , with no stated bound) such that is -Lipschitz.
This part does not use the constants .
- State-independent policies. Let be any policy whose fibres are probability measures and whose action probabilities do not depend on the state, i.e. for all . Then is -Lipschitz-valued.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.