Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Teaching chapter 05 of 10 · Canonical route compiled
5. OFUL, self-normalized confidence, and stopping times
The scoped canonical finite-action linear-bandit route compiles from elliptical potential and self-normalized ridge confidence through one horizon-free generated OFUL policy with all-horizon regret and stopping consumers, plus a separately identified horizon-indexed expected-consistency family.
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. Read the Probability layer and UCB chapter before this linear-bandit route.
Learning goals
Understand the log-determinant proof of the elliptical-potential inequality.
Follow a conditional MGF source through ridge confidence and optimistic action selection.
Separate deterministic horizons, simultaneous one-policy confidence, and square-integrable stopping-time conclusions.
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.
Primary spine · free online edition
Bandit Algorithms
Tor Lattimore and Csaba Szepesvári
Location
Ch. 19–20; stopping times in §3.3
Pages
online pp. 238–262; stopping-time basics pp. 50–54
The paper combines a self-normalized confidence ellipsoid with optimism and an elliptical-potential argument.
Model
A d-dimensional stochastic linear bandit with round-dependent feasible action sets and linear conditional mean rewards.
Assumptions
The paper's preceding bounded-parameter, bounded-feature, conditionally sub-Gaussian noise, and regularization conditions hold; Theorem 3 also assumes every feasible mean reward lies in [-1,1].
Algorithm parameters
Dimension d, horizon n, feature and parameter bounds, noise scale, regularization λ, and confidence δ.
Regret notion
High-probability cumulative pseudo-regret of the OFUL policy.
Guarantee
An explicit confidence-dependent bound of order d√n up to logarithmic factors.
Source mathematical statement.Formula renderer unavailable; readable fallback: OFUL achieves dimension times square-root-horizon regret, up to logarithmic factors, under the paper's stated assumptions.\[R_n=\widetilde O\!\left(d\sqrt n\right)\quad\text{under the theorem's bounded-feature and sub-Gaussian assumptions}.\]Swipe to read the full formula →
BanditRLlib relationship. The local finite-action scalar route compiles the confidence, optimistic policy, all-time, expected-consistency, and stopping-time interfaces under its own explicit contracts; consult the exact Lean statements for the narrower model.
The mathematical content is restated in this site's notation; wording is ours. See paper pp. 4–5 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.
A curated route through definitions, key bridges, and canonical terminals stays visible. 4 additional dependency, extension, or research-frontier notes are grouped below.
Plain-English statement. The cumulative clipped inverse-Gram quadratic width is at most twice a dimension-scaled logarithmic growth term.
Mathematical reading.Formula renderer unavailable; readable fallback: The cumulative clipped inverse-Gram quadratic width is at most twice a dimension-scaled logarithmic growth term.\(\sum_{t<T}\min\{1,\|x_t\|^2_{V_t^{-1}}\}\le2d\log\!\left(1+\frac{TL^2}{d\lambda}\right).\)Swipe to read the full formula →
Intuition
Each new feature direction increases the determinant of the regularized Gram matrix; the determinant cannot grow too fast under a norm bound.
Why it is needed
This is the geometric summation step that turns per-round confidence widths into a finite linear-bandit regret scale.
Place in the proof
It is the deterministic geometric core reused by the now-compiled self-normalized confidence, finite-window regret, expected-rate, all-time, and stopping-time consumers.
Proof and Lean reading notes
Proof idea
Use the matrix determinant update identity, telescope logarithms, bound the final determinant by a trace-average inequality, and compare min(1,u) with log(1+u).
Lean reading notes
Finite-dimensionality, positive regularization, nonemptiness, and the feature norm bound are explicit. Matrix inverse and determinant side conditions are proved locally.
Plain-English statement. At a fixed horizon, the ridge estimator lies in its regularized confidence ellipsoid except on a set of measure at most delta.
Mathematical reading.Formula renderer unavailable; readable fallback: At a fixed horizon, the ridge estimator lies in its regularized confidence ellipsoid except on a set of measure at most delta.\(\Pr\{\|\widehat\theta_n-\theta_\star\|_{V_n}>\beta_n(\delta)\}\le\delta.\)Swipe to read the full formula →
Intuition
The estimation error splits into self-normalized noise plus deterministic ridge bias, both measured in the same positive-definite Gram geometry.
Why it is needed
Optimism needs a confidence set for the unknown linear parameter, not only a scalar reward tail.
Place in the proof
It consumes the Gaussian-mixture self-normalized bound and feeds the optimistic finite-action score.
Proof and Lean reading notes
Proof idea
Rewrite the ridge error into noise and regularization terms, control the first by the determinant-ratio tail, bound the second by the supplied bias radius, and use the matrix-norm triangle inequality.
Lean reading notes
Positive definiteness, feature/noise measurability, adaptation, response identity, positive variance scale, delta domain, and the bias bound are explicit in the signature.
Plain-English statement. One measurable history algorithm chooses the strict-fold maximizer of a ridge estimate plus a telescoping-scheduled confidence width at every round, without taking a terminal horizon.
Mathematical reading.Formula renderer unavailable; readable fallback: One measurable history algorithm chooses the strict-fold maximizer of a ridge estimate plus a telescoping-scheduled confidence width at every round, without taking a terminal horizon.\(A_t\in\arg\max_{a\in[K]}\{\langle\widehat\theta_t,x_a\rangle+\beta_t(\delta_t)\|x_a\|_{V_t^{-1}}\}.\)Swipe to read the full formula →
Intuition
The schedule is indexed by the current history length, so the same policy can run forever while every finite prefix is analyzed later.
Why it is needed
A genuine all-time result needs one policy and one trajectory law rather than a different policy for each stopping horizon.
Place in the proof
It is the algorithm node between measurable optimistic selection and the generated all-time confidence/regret consumers.
Proof and Lean reading notes
Proof idea
Build ridge statistics from the finite history, compute scheduled scores for every finite arm, and use the measurable strict-improvement fold to choose a deterministic tie-breaking maximizer.
Lean reading notes
The arguments include arm count, regularization, features, noise scale, outer confidence budget, and parameter-radius bound, but no terminal horizon. The definition itself is not a regret theorem.
Plain-English statement. One failure event on the canonical horizon-free OFUL trajectory controls the explicit nonnegative pseudo-regret bound at every finite horizon.
Mathematical reading.Formula renderer unavailable; readable fallback: One failure event on the canonical horizon-free OFUL trajectory controls the explicit nonnegative pseudo-regret bound at every finite horizon.\(\Pr\{\exists T,\;R_T> B_T(\delta)\}\le\delta.\)Swipe to read the full formula →
Intuition
Outside the all-time confidence failure set, optimism bounds every instantaneous gap by a selected confidence width; elliptical potential sums those widths for any prefix.
Why it is needed
It is the generated one-policy all-horizon endpoint required by the Chapter 5 completion contract.
Place in the proof
It joins all-time ridge confidence, finite-action optimism, selected-width summation, and the initial-round gap bound.
Proof and Lean reading notes
Proof idea
Transport confidence to each selected action, convert optimism to gap bounds, sum widths with Cauchy-Schwarz and the log-determinant inequality, then show every violation belongs to the all-time failure event.
Lean reading notes
Finite actions/features, positive regularization/noise scale, 0<delta<=1, nonnegative S and L2, L2<=lambda, a feature-square bound, an optimal arm, and the canonical kernel-law producer are explicit. Sharp/minimax constants are not claimed.
Plain-English statement. Every fixed predictable feature direction turns the centered reward noise into a compensated exponential supermartingale-style MGF bound.
Mathematical reading.Formula renderer unavailable; readable fallback: Every fixed predictable feature direction turns the centered reward noise into a compensated exponential supermartingale-style MGF bound.\(\mathbb E\exp\!\left(\sum_{i<n}\langle\theta,x_i\rangle\varepsilon_i-\tfrac12\sigma_i^2\langle\theta,x_i\rangle^2\right)\le1.\)Swipe to read the full formula →
Intuition
The direction is known from the past, so conditional sub-Gaussian control survives multiplication by that predictable coefficient.
Why it is needed
This scalar statement is what the Gaussian-mixture argument integrates to obtain a vector self-normalized confidence event.
Place in the proof
It connects the generated conditional reward law to the self-normalized matrix layer.
Proof and Lean reading notes
Proof idea
Apply the conditional sub-Gaussian MGF lemma at each round, use predictable measurability and the projection bound, and assemble the compensated sum.
Lean reading notes
The theorem explicitly requires a probability measure, filtration, strong adaptation, predictable projections, nonnegative projection bounds, and per-round conditional MGF witnesses. It is not an independence-only Hoeffding statement.
Plain-English statement. On the trajectory generated by the horizon-free telescoping OFUL policy, the union of ridge-confidence failures over all finite times has measure at most the outer confidence budget.
Mathematical reading.Formula renderer unavailable; readable fallback: On the trajectory generated by the horizon-free telescoping OFUL policy, the union of ridge-confidence failures over all finite times has measure at most the outer confidence budget.\(\Pr\{\exists n,\;\theta_\star\notin\mathcal C_n(\delta_n)\}\le\delta.\)Swipe to read the full formula →
Intuition
The confidence shares telescope, so countably many fixed-time ellipsoid failures fit inside one budget without changing the policy later.
Why it is needed
This is the same-process producer needed before any all-horizon optimism or stopping argument is sound.
Place in the proof
It consumes the kernel-level linear sub-Gaussian producer and is the probability parent of the all-horizon regret terminal.
Proof and Lean reading notes
Proof idea
Convert the environment's initial/successor centered MGF laws into the canonical predictable residual source, apply every scheduled fixed-time ridge tail, and sum the telescoping shares.
Lean reading notes
CanonicalLinearSubgaussianEnvironmentLaw stores theta norm and kernel MGF laws, not this conclusion. The displayed trajectory measure uses exactly finiteHistoryTelescopingScalarRidgeOptimisticAlgorithm.
Plain-English statement. For a finite canonical stopping time whose round count has a finite second moment, the stopped OFUL pseudo-regret is integrable and its expectation is controlled by that second moment plus an explicit bad-event term.
Mathematical reading.Formula renderer unavailable; readable fallback: For a finite canonical stopping time whose round count has a finite second moment, the stopped OFUL pseudo-regret is integrable and its expectation is controlled by that second moment plus an explicit bad-event term.\(0\le\mathbb E R_\tau\le C\,\mathbb E(\tau+1)^2+G\sqrt{\mathbb E(\tau+1)^2}\sqrt\delta,\quad\Pr(B_\tau)\le\delta.\)Swipe to read the full formula →
Intuition
The pathwise all-horizon budget can be evaluated at a random time; Cauchy-Schwarz controls the rare bad-event contribution using square integrability.
Why it is needed
Random stopping is not justified by substituting a random horizon into a deterministic theorem unless filtration, measurability, finiteness, and integrability are preserved.
Place in the proof
It is the strongest random-horizon consumer inside the scoped Chapter 5 completion route.
Proof and Lean reading notes
Proof idea
Use stopped-value measurability and adaptation, split good and bad trajectories, integrate the quadratic envelope at tau, and bound the bad indicator by the stopping-round second moment times sqrt(delta).
Lean reading notes
The theorem explicitly requires the canonical all-round filtration, IsStoppingTime, and SquareIntegrableFiniteStoppingTime, which includes a.e. finiteness and integrability/second-moment control. It is not universal optional stopping or an almost-sure consistency theorem.
Plain-English statement. For the canonical finite-action scalar linear-bandit model, the compiled expected pseudo-regret bound divided by the number of rounds converges to zero.
Mathematical reading.Formula renderer unavailable; readable fallback: For the canonical finite-action scalar linear-bandit model, the compiled expected pseudo-regret bound divided by the number of rounds converges to zero.\(\displaystyle \frac{\mathbb E R_T}{T+1}\longrightarrow 0.\)Swipe to read the full formula →
Intuition
The finite-horizon regret grows strictly slower than the horizon, so the expected cost per decision vanishes even though cumulative regret can still grow.
Why it is needed
A finite-time square-root-log bound is useful quantitatively; this theorem records its asymptotic statistical meaning as a Lean limit statement.
Place in the proof
It is the fixed-model asymptotic consumer of the compiled ridge-confidence, optimism, width-summation, and bad-event expectation route.
Proof and Lean reading notes
Proof idea
First prove the explicit expected bound is little-o of the natural horizon scale, transfer the bound to the canonical generated regret, and rewrite division as the expected-average definition.
Lean reading notes
The limit is for the horizon-indexed generated family in the theorem's fixed model. It is not a one-policy anytime, pathwise, minimax, or uniform-over-parameter consistency claim.
Open the canonical completion definition and blockers
Complete in the canonical textbook scope when finite-dimensional Gram geometry, rank-one determinant and log-determinant arguments, conditional-MGF/self-normalized ridge confidence, regularization bias, measurable finite-action optimism, and a kernel-law-produced generated trajectory compile; one horizon-free telescoping policy must carry all-time confidence, all-horizon high-probability pseudo-regret, and bounded plus square-integrable stopping-time consumers, while the distinct horizon-indexed fixed-model family carries finite-horizon expectation and expected-average consistency. One public external canary must distinguish and type both families.
Remaining blockers
No remaining blocker inside this canonical scope: Tests/BookMapChaptersFiveAndSixCanary.lean gives full-conclusion typed applications for the same horizon-free telescoping policy/environment/trajectory chain through all-horizon and both stopping consumers, and separately types the horizon-indexed expected-consistency family. The items below are explicitly out-of-scope extensions.
Chapter implementation status
The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.
Contextual or time-varying action sets, dynamic linear bandits, paper-sharp/minimax constants, uniform-over-parameter guarantees, and infinite-dimensional Hilbert-space OFUL remain extensions.
Arbitrary history environments without a centered conditional-MGF producer, pathwise/almost-sure/universal optional-stopping consistency, and full primal-dual Bandits-with-Knapsacks remain outside the completed scope.
Budget-forced schedules compile under explicit contracts, but they are not labeled as a complete BwK theorem.