Repository navigation
feat: the pessimistic decomposition in an episodic MDP [JYW21, Theorem 4.2] - #152
Merged
lmlexplore-automation[bot] merged 2 commits intoNov 5, 2026
Merged
Conversation
…m 4.2] Co-Authored-By: Claude Code <noreply@github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RemyDegenne
commented
Nov 5, 2026
Contributor
Author
AI review — approvedEach rubric is judged independently by multiple review agents; the PR merges only once every rubric is green — any rubric that is not green (changes requested, blocked, errored, stale, or not yet run) blocks the merge. See the rubrics.
♻️ = approved on an earlier commit, re-run before merge. Reviewing this diff at head |
Factor the measurability and the |·| ≤ |B| bound of the values V h = ∫ Q h dπ'_h into public lemmas of PerformanceDifference.lean, used by integral_integral_sub_integral_value and by the pessimistic decomposition, and delete the private copy in Pessimism.lean. Co-Authored-By: Claude Code <noreply@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the pessimistic decomposition of an episodic MDP [JYW21, Theorem 4.2, deterministic part]. It is the item "The pessimistic decomposition [JYW21, Theorem 4.2, deterministic part]" of the milestone Layer 12.2 (Corollaries) of the ReinforcementLearning roadmap. The new file
LMLExplore/MarkovDecisionProcess/Episodic/Pessimism.leanbuilds on the value-difference identityintegral_sub_integral_value(PR #136) and proves:integral_value_sub_integral_value_eq_sum_add_sum_sub_sum, the decomposition of suboptimality [JYW21, Lemma 3.1]. For estimatesQ̂_hwithV̂_h = ∫ Q̂_h dπ̂_handV̂_H = 0, the gap∫ V^π_0 dμ - ∫ V^π̂_0 dμis the optimization error, plus the model evaluation errorsι_h = r_h + P_h V̂_{h+1} - Q̂_halongπ, minus the same errors alongπ̂. This holds for any comparator Markov policyπ.integral_value_sub_integral_value_le_sum: ifπ̂is greedy (Q̂_h ≤ V̂_h) and the estimates are pessimistic (ι_h ≥ 0), the suboptimality is at most∑_h ∫ ι_h dd^π_h.integral_value_sub_integral_value_le_two_mul_sum: for the estimates of pessimistic value iteration,Q̂_h = min (T̂_h - Γ_h, H - h)⁺, with rewards in[0, 1]and|T̂_h - (r_h + P_h V̂_{h+1})| ≤ Γ_h, we get0 ≤ ι_h ≤ 2 Γ_h[JYW21, Lemma 5.1], hence∫ V^π_0 dμ - ∫ V^π̂_0 dμ ≤ 2 ∑_h ∫ Γ_h dd^π_hfor every Markov comparatorπ.integral_optValue_sub_integral_value_le_two_mul_sum: the caseπ = π*(the greedy optimal policyoptPolicy), i.e. the roadmap statementV*_0 - V^π̂_0 ≤ 2 ∑_h E^{π*}[Γ_h(S_h, A_h)].Following the roadmap's "deterministic part", the statements take the PEVI recursion as hypotheses on
Q̂,V̂andπ̂, with arbitrary estimated backupsT̂_hand penaltiesΓ_h. They do not define an algorithm, so Layer 22.3 (whereT̂_h,Γ_hcome from data and the bound holds on the event of the ξ-uncertainty quantifier) and the linear PEVI of Layer 23.4 can use them directly. The initial state has an arbitrary lawμ(a Dirac mass in [JYW21]), and the spaces are general measurable spaces.After this PR, the remaining item of Layer 12.2 is the policy-mixture lemma [AJKS, Lemma 14.1]. Its sibling items (performance difference, simulation, componentwise, greedy and optimistic bounds) are already on
main.Source: Y. Jin, Z. Yang and Z. Wang, Is pessimism provably efficient for offline RL?, ICML 2021, arXiv:2012.15085 (Algorithm 1, Lemma 3.1, Theorem 4.2, Lemma 5.1). No Mathlib material is vendored.
Roadmap: ReinforcementLearning
🤖 Prepared with Claude Code