Lemma 6.1 —
ProvedApproxOptRL.PolicyQuality.performance_differenceThis is the performance difference lemma of Kakade and Langford.
Consider a finite MDP with states , actions , transition probabilities , rewards with , and discount factor . Let be the normalized value function, the advantage, the -discounted future state distribution from the start distribution , and . For any stochastic policies and and any starting state distribution ,
The expectation is over states drawn from the future state distribution of the new policy and actions drawn from , while the advantage is that of the old policy . The lemma expresses the exact gain of switching policies and is the key identity behind the paper's near-optimality bound (Theorem 6.2).
Formalization Note The standing assumptions of the paper's §2 are explicit hypotheses: finite nonempty and , a probability distribution, rewards in , , , stochastic policies and a probability distribution. In Lean, πt is .
import Mathlib import Definitions.Def_FoundationsML_ReinforcementLearning_IsTransitionKernel import Definitions.Def_FoundationsML_ReinforcementLearning_IsPolicy import Definitions.Def_ApproxOptRL_Shared_Model open ApproxOptRL.Shared open FoundationsML.ReinforcementLearning
namespace ApproxOptRL.PolicyQuality
/-- **Lemma 6.1** (Kakade–Langford, ICML 2002, p. 6). For any policies `π̃` and `π` and any
starting state distribution `μ`,
`η_μ(π̃) - η_μ(π) = (1/(1-γ)) E_{(a,s) ∼ π̃ d_{π̃,μ}}[A_π(s, a)]`.
The states are weighted by `d_{π̃,μ}`, the discounted future state distribution of the **new**
policy `π̃`, and the actions by `π̃`; the advantage is that of the old policy `π`.
In Lean, `πt` stands for the paper's `π̃`.
Standing assumptions of the paper's §2: finite nonempty `S`, `A`; transition kernel `P`;
rewards in `[0, R]`; `0 ≤ γ < 1`. -/
theorem performance_difference {S A : Type} [Fintype S] [Fintype A] [DecidableEq S]
[Nonempty S] [Nonempty A]
(P : S → A → S → ℝ) (hP : IsTransitionKernel P)
(r : S → A → ℝ) (R : ℝ) (hR : 0 < R) (hr : ∀ s a, 0 ≤ r s a ∧ r s a ≤ R)
(γ : ℝ) (hγ0 : 0 ≤ γ) (hγ1 : γ < 1)
(μ : S → ℝ) (hμ : IsStateDist μ)
(πt π : S → A → ℝ) (hπt : IsPolicy πt) (hπ : IsPolicy π) :
eta P r γ πt μ - eta P r γ π μ =
1 / (1 - γ) * ∑ s, futureStateDist P γ πt μ s * ∑ a, πt s a * advantage P r γ π s a := by sorry
end ApproxOptRL.PolicyQuality
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.