Lemma 2, p. 7 — performance difference: ρ(π′) − ρ(π) = E_{s∼ν^{π′}}[⟨Q̄^π(s,·), π′(·|s) − π(·|s)⟩ + h^{π′}(s) − h^π(s)]
ProvedAvgRewardPMD.SPMD.lemma_2Let be a finite AMDP satisfying the mixing Assumption 1 and let be a regularizer, . For a policy write and for the average cost and the basic differential Q-function of the regularized cost . Then for any two feasible policies , with the stationary distribution of ,
This is the average-reward performance difference lemma. It turns the optimality gap into an expectation over the comparator's stationary distribution of a linear term in the policy, which is what the policy mirror descent analysis (Lemma 4) controls step by step.
Formalization Note is evaluated at an arbitrary start state ; it does not depend on it under Assumption 1. is any stationary distribution of (unique under Assumption 1).
Differences from the source:
- generalization: h^π a closed convex function of the policy satisfying (2.2) → any real function h_s(π(·|s)) of the state and of the policy at that state; reason: the identity uses no convexity; a regularizer satisfying (2.2) is an instance
- encoding: ρ(π), a scalar → ρ^π(s_0) for an arbitrary start state s_0; reason: ρ^π(s) does not depend on s under Assumption 1 (milestone 1)
- encoding: ν^{π′}, the stationary distribution → any stationary distribution ν′ of P_{π′}; reason: unique under Assumption 1
- reading: Q̄^π as the expectation of the series of c(s_t,a_t) + h^π(s_t) − ρ^π → the series of the expectations; reason: the pathwise series need not converge, the series of expectations converges absolutely under Assumption 1
import Mathlib import Definitions.Def_AvgRewardPMD_SPMD_Setting
namespace AvgRewardPMD.SPMD
open FoundationsML.ReinforcementLearning
theorem lemma_2 {S A : Type*} [Fintype S] [Fintype A] [DecidableEq S] [DecidableEq A]
(P : S → A → S → ℝ) (hP : IsTransitionKernel P) (hmix : IsMixing P)
(c : S → A → ℝ) (h : S → (A → ℝ) → ℝ)
(π π' : S → A → ℝ) (hπ : IsPolicy π) (hπ' : IsPolicy π') (ν' : S → ℝ)
(hν' : MarkovMixing.IsStationary (stateMatrix P π') ν') (s₀ : S) :
avgCost P π' (fun s a => c s a + h s (π' s)) s₀ - avgCost P π (fun s a => c s a + h s (π s)) s₀
= ∑ s, ν' s * (∑ a, diffQ P π (fun s a => c s a + h s (π s)) (s, a) * (π' s a - π s a)
+ h s (π' s) - h s (π s)) := by sorry
end AvgRewardPMD.SPMD
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.