Repository navigation
feat: the breadth-first A-ary tree of the hard instances of episodic MDPs [DMKV21, Theorems 7, 9] - #294
Open
RemyDegenne wants to merge 1 commit into
Conversation
…MDPs Co-Authored-By: Claude Code <noreply@github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
LMLExplore/ReinforcementLearning/HardTree.lean, the combinatorics of the breadth-firstA-ary tree on which the hard instances of the minimax lower bounds for episodic MDPs [DMKV21, Theorems 7 and 9] place all their states except three. The nodes are0, …, n - 1, and the parent ofj + 1isj / A. The file addsdepth A j, with the Galois connection∑_{i<D} A^i ≤ j ↔ D ≤ depth A j(sum_pow_le_iff_le_depth). It addsheight A n = ⌈log_A((A-1)n+1)⌉, withheight A n ≤ D ↔ n ≤ ∑_{i<D} A^i(height_le_iff),depth_lt_height, andheight_sum_pow: a full tree with(A^d - 1)/(A - 1)nodes has heightd. It adds the transitionchild A n j k, which falls back to the first child when a child is missing, withchild_ltanddepth_child; the leaves, which make up at least half of the tree (le_two_mul_card_leaves); and walks from the root, withdepth_walkandexists_walk: every node is reached indepth A jsteps through internal nodes.The targets are ReinforcementLearning Layer 19.3 (best policy identification lower bound [DMKV21, Theorem 7]) and Layer 18.4 (minimax regret lower bound [DMKV21, Theorem 9]). Both assume
S = 3 + (A^d - 1)/(A - 1)andH ≥ 3d, and their hard MDPs are built on this tree. Withn = S - 3nodes,height_sum_powturns the roadmap'sdintoheight A (S - 3).exists_walk,depth_childanddepth_lt_heightgive the paths of the hard MDP from the root to each leaf withindsteps, andle_two_mul_card_leavesgives the count of the leaves that the change-of-measure argument sums over. After this PR, the hard MDPs and their lower bound statements remain.The material is adapted from
Essakine2026Tight/EV2026/HardTree.lean(treeDepthfromEV2026/Constants.lean) of github.com/RemyDegenne/Essakine2026Tight, commit 9c77165d56f81c1db7a9835068356bb14886a3be, by Rémy Degenne, Apache-2.0, as the file states. The port makes these changes: the source'sgeomCountis replaced by Mathlib's partial geometric sums (geom_sum_succ,geom_sum_mul_add).treeDepth S Abecomesheight A nfor the numbern = S - 3of tree nodes, characterized throughNat.clog_le_iff_le_pow.depthgets its converse bound and the characterizationsum_pow_le_iff_le_depth.card_leafFinset(n + 3 ≤ 4 #Lforn ≥ 3) becomes the sharpern ≤ 2 #Lwith no assumption onn.two_le_heightneedsn ≥ 2instead ofS ≥ 6, andexists_walkneeds0 < Ainstead of2 ≤ A. The duplicated agreement argument inexists_walkis factored out aswalk_update_of_le. The bodies are unexposed, with characteristic lemmas (depth_add_one,height_def,child_of_lt,child_of_not_lt,mem_leaves,walk_zero,walk_add_one). No public declaration is removed or renamed.Roadmap: ReinforcementLearning
Paper: RemyDegenne/Essakine2026Tight
Item: R28
🤖 Prepared with Claude Code