Theorem 2: local representation quality bound
ProvedDeepMDP.local_representation_qualityLet , , , , and the stationary distribution of in be as in Lemma 3, with local losses measured under . For any two states with and ,
The representation guarantee of Theorem 1 thus holds for states that the policy visits often.
Formalization Note The paper writes , which it does not define. The proof uses , the stationary probability of , and that is what is formalized. The paper's expression requires , which is a hypothesis here. Both sides are compared in .
import Mathlib import Definitions.Def_DeepMDP_Basic open MeasureTheory ProbabilityTheory Filter open scoped ENNReal NNReal
namespace DeepMDP
theorem local_representation_quality {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 φ) ξ)
(s₁ s₂ : S) (h₁ : 0 < ξ {s₁}) (h₂ : 0 < ξ {s₂}) :
ENNReal.ofReal |vValue R P γ (liftPolicy πb φ) s₁ - vValue R P γ (liftPolicy πb φ) s₂| ≤
(KV : ℝ≥0∞) * edist (φ s₁) (φ s₂) +
(rewardLossLocal (stateActionDist ξ (liftPolicy πb φ)) R Rb φ +
ENNReal.ofReal γ * (KV : ℝ≥0∞) * transLossLocal (stateActionDist ξ (liftPolicy πb φ)) P Pb φ) /
ENNReal.ofReal (1 - γ) * ((ξ {s₁})⁻¹ + (ξ {s₂})⁻¹) := by sorry
end DeepMDPRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a countable set of "real" states. Every subset of is measurable, so every function out of is measurable.
- is a metric space with distance , equipped with its Borel -algebra.
- is a finite, nonempty set of actions with a -algebra in which singletons are measurable.
Data. The statement is universally quantified over:
- a reward ;
- for each action , a kernel from to ;
- a latent reward ;
- for each action , a latent kernel from to ;
- a real number ;
- an arbitrary function (the embedding);
- constants ;
- a Markov kernel from to (a latent policy);
- a measure on ;
- two states .
Hypotheses.
- is an MDP. , each is a Markov kernel (probability measures), each is measurable, and is bounded: there is a with for all .
- is an MDP in the same sense, with the same : each is a Markov kernel, each is measurable, and is bounded.
- The latent MDP is -Lipschitz. For every and all :
Here is the infimum, over all measures on whose two marginals are exactly and , of . It takes values in . The constant appears nowhere else. 4. . 5. is -Lipschitz-valued in the latent MDP. For all and every action :
- is stationary for the lifted policy. Let be the policy on . Then is a probability measure on , and for every :
- and .
Value functions. For an MDP and a policy , value functions are defined by iterates:
- The integral is a Bochner integral, which is taken to be when the integrand is not integrable.
- is the limit of as . If no limit exists, it is an unspecified default value.
- .
- denotes this construction in ; and denote it in .
Local losses. Let be the measure on given by . Define:
Here is the law of for . Both losses are nonnegative extended reals and may be .
Conclusion. In :
Edge cases.
- The bound is in extended arithmetic. If either loss is with (or ), the right-hand side is and the inequality is trivial. The convention applies when or .
- Since , the factor is strictly positive.
- Since is a probability measure, each lies in .
- , , and are all permitted.
- is unrestricted: it need not be injective, Lipschitz, or related to the latent model beyond what appears in the losses.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.