Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Teaching chapter 03 of 10 · Canonical route compiled
3. Explore-Then-Commit
Round-robin exploration, empirical means, measurable commit choices, wrong-commit tails, and expected-regret assemblies under bounded or sub-Gaussian arm laws.
How to read the status. It describes this page's canonical local Lean route, not completion of the cited textbook chapter or every extension listed below.
Orientation
Who should read this. The shortest end-to-end stochastic-bandit route in the repository.
Learning goals
Decompose regret into deterministic exploration cost and wrong-commit probability.
Follow empirical-mean concentration into a concrete Real expected-regret bound.
Distinguish compiled local endpoints from the still-partial upstream-compatible port.
Textbook crosswalk
Read the mathematics before the Lean interface
The Book Map is a curated formalization curriculum anchored in Bandit Algorithms, not a chapter-for-chapter reproduction of one book. Visible page labels use the numbered pages of its free online edition; source buttons use the PDF viewer's physical page index, which includes front matter and can therefore be larger. Companion papers cover algorithm-specific results.
The theorem exposes the central ETC tradeoff: more exploration costs regret now but reduces the probability of committing to a wrong arm.
Model
A finite k-armed stochastic bandit whose centered arm rewards are 1-sub-Gaussian.
Assumptions
The exploration length satisfies 1 ≤ m ≤ n/k; each arm is explored m times and empirical-mean ties are broken by a fixed rule.
Algorithm parameters
Horizon n, arm count k, exploration count m, and gaps Δ_i.
Regret notion
Expected frequentist regret R_n of Explore-Then-Commit.
Guarantee
Exploration cost plus the remaining horizon weighted by exponentially small wrong-commit probabilities.
Source mathematical statement.Formula renderer unavailable; readable fallback: ETC regret is bounded by the exploration cost plus the remaining horizon times exponentially small wrong-commit probabilities.\[R_n\le m\sum_i\Delta_i+(n-mk)\sum_i\Delta_i\exp\!\left(-\frac{m\Delta_i^2}{4}\right).\]Swipe to read the full formula →
BanditRLlib relationship. The local canonical route constructs a measurable generated ETC law and states explicit tie semantics before deriving bounded and sub-Gaussian expected-regret endpoints.
The mathematical content is restated in this site's notation; wording is ours. See online pp. 92–93 in the linked source for the original statement and full assumptions.
Natural-language and Lean side by side
The mathematical readings are explanatory summaries. The exact generated Lean statement and its source link remain authoritative for hypotheses, types, constants, and indexing.
Plain-English statement. The canonical Rat ETC commit oracle selects the least encoded arm among all arms tying its maximal score.
Mathematical reading.Formula renderer unavailable; readable fallback: The canonical Rat ETC commit oracle selects the least encoded arm among all arms tying its maximal score.\[s(\hat a)\le s(a)\Longrightarrow \operatorname{encode}(\hat a)\le\operatorname{encode}(a).\]Swipe to read the full formula →
Intuition
The strict-update fold scans arms in canonical order: a strictly better score replaces the current arm, while an equal score leaves the earlier arm in place.
Why it is needed
The generated ETC policy needs deterministic, explicit tie behavior; maximality alone does not identify which maximizing action is selected.
Place in the proof
This deterministic leaf closes the tie-semantics edge between the concrete Rat commit oracle and the canonical measurable generated ETC route.
Proof and Lean reading notes
Proof idea
Identify the fold with Mathlib's first-occurrence List.argmax, compare the selected arm's list index with any tying maximizer using index_of_argmax, and rewrite finRange indices as encodings.
Lean reading notes
The only substantive assumptions are finite Rat scores and 0<K. No measure, independence, MGF, or unique-maximum assumption is introduced.
Teaching dependencies
BanditRLProof.ETC.argmaxCommitOracle
Exact Lean statement
theorem argmaxCommitOracle_encode_le_of_score_le {K : Nat} (hK : 0 < K) (scores : Fin K -> Rat) (a : Fin K) (hscore : scores ((ETC.argmaxCommitOracle hK).choose scores) <= scores a) : Encodable.encode ((ETC.argmaxCommitOracle hK).choose scores) <= Encodable.encode a
Plain-English statement. For the generated Explore-Then-Commit policy under finite-arm sub-Gaussian reward laws, expected Real pseudo-regret is bounded by the canonical per-arm exploration-plus-commit expression.
Mathematical reading.Formula renderer unavailable; readable fallback: For the generated Explore-Then-Commit policy under finite-arm sub-Gaussian reward laws, expected Real pseudo-regret is bounded by the canonical per-arm exploration-plus-commit expression.\(\mathbb E\bar R_T\le R_{\mathrm{explore}}+\sum_{a\ne a^\star}(T-mK)\Delta_a\,p_a^{\mathrm{tail}}.\)Swipe to read the full formula →
Intuition
Exploration pays a deterministic cost; exploitation pays only when empirical noise makes the commit oracle choose the wrong arm.
Why it is needed
This is a concrete end-to-end local ETC theorem rather than only a tail lemma or theorem card.
Place in the proof
Together with the generated-law, round-robin, least-tie, and named wrong-commit declarations in the public canary, it closes the scoped local ETC chapter; direct imported-LML identity remains separate.
Proof and Lean reading notes
Proof idea
Prove empirical-mean measurability, reduce a wrong commit to a pairwise deviation event, apply the sub-Gaussian tail contract, and integrate the deterministic regret split.
Lean reading notes
The Real integral is explicit. The bound and every arm-law regularity hypothesis are visible in the Lean statement; no LML theorem card is used as a proof term.
Open the canonical completion definition and blockers
Complete when a canonical measurable generated ETC law, commit and tie semantics, wrong-commit concentration, and expected-regret endpoint compile under one documented local toolchain, and every claimed upstream compatibility surface is verified exactly.
Remaining blockers
No remaining blocker inside the canonical local ETC scope: the public Book Map canary certifies the generated law, round-robin exploration, Rat first-occurrence/least-encoded tie rule, named wrong-commit concentration, and bounded/sub-Gaussian expected-regret endpoints. Pinned LML material remains theorem-card-only and outside this completion claim.
Chapter implementation status
The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.