Bandit Algorithms III: Asymptotic and Minimax Optimality of UCBTextbook
The basic UCB regret bound of Mission II is logarithmic but not tight: its leading constant 16/Δi is eight times the information-theoretic limit, and its worst-case rate carries a spurious logn. Chapters 8–9 of Lattimore–Szepesvári close both gaps. A refined confidence schedule f(t)=1+tlog2t yields the asymptotically optimal limsupn→∞Rn/logn≤∑i:Δi>02/Δi — exactly matching the instance-dependent lower bound of Mission VII for Gaussian noise. The MOSS index μ^i+Ti4log+(kTin) achieves minimax regret Rn≤39kn+∑iΔi, matching the Ω(kn) lower bound up to a constant. These two theorems are the gold standard for finite-armed stochastic bandits.
Bandit Algorithms II: Stochastic Bandits and the UCB AlgorithmTextbook
A learner repeatedly chooses one of k slot machines, observes only the reward of the chosen arm, and wants to earn almost as much as the best arm in hindsight. This is the stochastic multi-armed bandit, the canonical model of the exploration–exploitation dilemma. This mission formalizes the model (environments, policies, regret, and the regret decomposition Rn=∑iΔiE[Ti(n)]) and the two classical algorithms of Chapters 6–7 of Lattimore–Szepesvári: Explore-Then-Commit and the Upper Confidence Bound algorithm built on the optimism principle. The goal theorem is the instance-dependent UCB regret bound Rn≤3∑iΔi+∑i:Δi>016log(n)/Δi — logarithmic regret with explicit constants, the single most cited result of bandit theory — together with its distribution-free companion Rn≤8nklogn+3∑iΔi.
Bandit Algorithms XIV: Bayesian Bandits, the Gittins Index and Thompson SamplingTextbook
The oldest bandit algorithm (Thompson, 1933) is also the most modern: sample a parameter from the posterior and act greedily. Chapters 34–36 of Lattimore–Szepesvári develop the Bayesian view in two crowning results. The Gittins index theorem: for infinite-horizon discounted Markov bandits, the seemingly intractable dynamic program is solved exactly by an index policy — each arm gets a retirement-value index computable arm-by-arm, and playing the largest index is Bayesian optimal. And the frequentist analysis of Thompson sampling — the goal theorem: with Gaussian posteriors, Thompson sampling on 1-subgaussian bandits achieves limn→∞Rn/logn=∑i:Δi>02/Δi, exactly asymptotically optimal, alongside the minimax-grade Rn≤Cknlogn. Together they explain why posterior sampling is both principled and practically dominant.
Bandit Algorithms XI: Lower Bounds for Stochastic Linear BanditsTextbook
Is the dn regret of LinUCB (Mission X) an artifact of the algorithm or a law of nature? Chapters 24–25 of Lattimore–Szepesvári prove it is essentially unimprovable. On the unit ball there is a parameter θ with ∥θ∥22=d2/(48n) forcing Rn≥163dn — the goal theorem — and the hypercube gives the same Ω(dn) rate. The asymptotic chapter is more striking still: for fixed finite action sets, the instance-optimal constant c(A,θ) is characterized by an allocation program, and optimism itself is provably suboptimal — LinUCB and Thompson sampling cannot achieve it, because exploration must sometimes deliberately play actions optimism would never touch. These lower bounds define the targets for the entire linear-bandit literature.
Bandit Algorithms V: Adversarial Bandits and Exp3Textbook
What if the rewards are not random at all, but chosen by an adversary who knows your algorithm? Remarkably, a randomized learner can still compete with the best fixed arm in hindsight. Chapters 11–12 of Lattimore–Szepesvári develop the adversarial k-armed bandit: rewards xti∈[0,1] are an arbitrary fixed matrix, the learner samples At∼Pt, and regret is measured against maxi∑txti. The exponential-weights algorithm Exp3, fed by importance-weighted loss estimates X^ti=1−1{At=i}(1−Xt)/Pti, achieves Rn≤2nklogk — the goal theorem. The companion Exp3-IX, which deliberately biases its estimator, upgrades this to a bound holding with high probability rather than only in expectation. These results are the foundation of all adversarial online learning with partial feedback.
Improved Algorithms for Linear Stochastic Bandits I: High-Probability Regret Bound for the OFUL AlgorithmResearch Paper
Motivation
In a linear stochastic bandit, a learner repeatedly chooses an action from a set of vectors and receives a noisy reward whose mean is linear in the action. The model underlies contextual recommendation, adaptive routing and dynamic pricing, where each option is described by features and the payoff of a feature vector must be learned while it is exploited. The quality of a strategy is measured by its regret: the reward lost, relative to always playing the best action, over the first n rounds.
The optimism-in-the-face-of-uncertainty principle (play as if the most favourable parameter consistent with the data were true) was introduced for linear bandits by Auer (2002), and developed by Dani, Hayes and Kakade (2008) (ConfidenceBall, regret O(dnlog3/2n) with confidence sets from a union bound over time) and Rusmevichientong and Tsitsiklis (2010). Abbasi-Yadkori, Pál and Szepesvári (NIPS 2011) replaced the union bound by a self-normalized martingale inequality that holds uniformly in time. It gives smaller confidence ellipsoids and, through them, a high-probability regret bound for the resulting algorithm, OFUL, that improves the earlier ones by logarithmic factors. The inequality became the standard tool for linear and kernelized bandits and for linear reinforcement learning.
Setting
Fix a dimension d≥1 and an unknown parameter θ∗∈Rd. In round t=1,2,… the learner is given a nonempty decision setDt⊆Rd, chooses Xt∈Dt, and observes the reward
Yt=⟨Xt,θ∗⟩+ηt.
There is a filtration {Ft}t≥0 such that Xt is Ft−1-measurable and ηt is Ft-measurable and conditionally R-sub-Gaussian: E[eληt∣Ft−1]≤exp(λ2R2/2) for all λ∈R, with R≥0 fixed.
For a regularization parameter λ>0 let Vt=λI+∑s=1tXsXs⊤ and let θt=Vt−1∑s=1tYsXs be the regularized least-squares estimate. With ∥v∥A=v⊤Av and a known bound ∥θ∗∥2≤S, the confidence ellipsoid is
The OFUL algorithm chooses, in round t, a pair (Xt,θt) maximizing ⟨x,θ⟩ over Dt×Ct−1. The pseudo-regret is Rn=∑t=1n⟨xt∗−Xt,θ∗⟩, where ⟨xt∗,θ∗⟩=maxx∈Dt⟨x,θ∗⟩.
Formalization targets
Goal: Theorem 3, the regret of OFUL
If ∥Xt∥2≤L, ⟨x,θ∗⟩∈[−1,1] for all x∈Dt, and λ≥max(1,L2), then for every δ>0, with probability at least 1−δ,
For any positive definite V, Vt=V+∑s≤tXsXs⊤ and St=∑s≤tηsXs: with probability at least 1−δ, for all t≥0,
∥St∥Vt−12≤2R2log(det(Vt)1/2det(V)−1/2/δ).
Milestones: Theorem 2, the confidence ellipsoids
With probability at least 1−δ, θ∗∈Ct for all t≥0 (first claim). If ∥Xt∥2≤L, then with probability at least 1−δ, for all t, ∥θt−θ∗∥Vt≤Rdlog((1+tL2/λ)/δ)+λ1/2S (second claim, stated here for d≥2).
Significance
Theorem 3 bounds the regret of OFUL by O(dnlogn) with high probability, uniformly over the horizon, so it holds for an unknown horizon without restarting. The bound applies to arbitrary, even adversarially changing, decision sets. Theorem 1 is the ingredient that makes this possible: a deviation bound for a vector-valued martingale, normalized by its own random covariance, that holds for all times simultaneously and whose logarithmic term is a determinant rather than a union-bound count. The same inequality underlies regret analyses of generalized linear bandits, kernelized bandits, linear Markov decision processes and many confidence-sequence constructions.
All three results are proved in the paper's appendices (not included in the source file used here). None of them is formalized in the stated generality. Prove2Me holds the special cases V=λI, R=1, δ<1 of Theorems 1 and 2 (from the Bandit Algorithms textbook series), a pathwise LinUCB regret lemma that assumes the confidence event, and the elliptical potential lemma. A formal proof of Theorem 3 would be the first machine-checked high-probability regret bound for OFUL with the paper's confidence sets.
Difficulty
The actions are chosen adaptively, by an argmax over a data-dependent set, so the sequence Xt has no independence structure and the least-squares estimate is not a sum of independent terms. A fixed-design concentration bound followed by a union bound over time and over a covering of the sphere loses logarithmic factors and does not produce the determinant in the radius; that is the route of the earlier work that Theorem 1 improves. Theorem 1 must hold for all times at once for a quantity normalized by the random matrix Vt, which is itself built from the adaptively chosen actions; a bound for each fixed t does not give it.
Formalization scope
Vectors are Fin d → ℝ, matrices Matrix (Fin d) (Fin d) ℝ, and ∥x∥A is Real.sqrt (x ⬝ᵥ A *ᵥ x). Rounds are indexed t+1 for t:N, so sums over s≤t are sums over Finset.range t at index s + 1, and the time-0 objects are empty sums. The probability space is standard Borel, as Mathlib's conditional sub-Gaussianity (HasCondSubgaussianMGF, variance proxy R2) requires; this is an added hypothesis. Every "with probability at least 1−δ, for all t" is stated as an outer-measure bound ≤δ on the failure event, with the time quantifier inside the event. det(⋅)1/2 is the real square root of the determinant; the matrices inverted are positive definite, so Lean's junk inverse never occurs.
OFUL is a predicate on the whole process: in every round the chosen pair maximizes ⟨x,θ⟩ over Dt×Ct−1, with any tie-breaking. Runs exist whenever the decision sets are nonempty and compact. The measurability of the actions is assumed, as in Theorem 1. The optimal reward ⟨xt∗,θ∗⟩ is the supremum over Dt, finite because of the reward bound.
Two corrections to the printed Theorem 3 are made and disclosed. The printed nL/d is replaced by nL2/d, which is what the determinant–trace bound detVn≤(λ+nL2/d)d gives; for L≤1 the corrected bound implies the printed one. The hypothesis λ≥max(1,L2) is added: for λ<1 the printed logarithm can be negative, and the printed bound would then assert Rn≤0. In the second claim of Theorem 2, d≥2 is added, because at d=1 the claim does not follow from the first claim and the paper's proof is not available.
The goal is a probability bound over the noise, not the pathwise statement "if θ∗∈Ct−1 for all t then Rn≤…". The pathwise statement assumes the confidence event instead of proving it, and is already on the platform. The confidence sets inside the OFUL predicate use the same δ as the conclusion.
Needed infrastructure: maximal inequalities for nonnegative supermartingales, Gaussian integrals of quadratic forms on Rd, log-determinant bounds for sums of rank-one updates, and the determinant–trace inequality. The platform rows BanditAlgorithm.self_normalized_martingale_bound, BanditAlgorithm.least_squares_confidence_ellipsoid and BanditAlgorithm.elliptical_potential_lemma are referenced as tools. Proofs of the milestones, generalizations of the existing special cases to general V and R, and reusable determinant lemmas are all welcome.
Selected references
Y. Abbasi-Yadkori, D. Pál, Cs. Szepesvári, Improved Algorithms for Linear Stochastic Bandits, Advances in Neural Information Processing Systems 24 (NIPS), 2011. https://proceedings.neurips.cc/paper/2011
P. Rusmevichientong, J. N. Tsitsiklis, Linearly Parameterized Bandits, Mathematics of Operations Research 35(2), 2010. https://doi.org/10.1287/moor.1100.0446
Bandit Algorithms XVI: Markov Decision Processes and UCRL2Textbook
The final step from bandits to reinforcement learning: actions now change the state of the world. Chapter 38 of Lattimore–Szepesvári studies online learning in an unknown Markov decision process with S states, A actions and rewards in [0,1]. The optimism principle of Mission II scales up: UCRL2 maintains confidence sets over transition kernels, solves an extended MDP by extended value iteration, and recomputes only when a state-action count doubles. The goal theorem: with probability 1−δ, R^n<CD(M)SAnlog(nSA/δ), where D(M) is the diameter of the MDP — sublinear regret with no prior knowledge of the dynamics. The matching lower bound E[R^n]≥C′DSAn brackets the true complexity of tabular reinforcement learning up to DS.
Bandit Algorithms VII: Lower Bounds for Finite-Armed BanditsTextbook
How well can any algorithm possibly do? Chapters 13–17 of Lattimore–Szepesvári answer with three matching impossibility results. The divergence decomposition identifies the information a policy collects: D(Pνπ,Pν′π)=∑iE[Ti(n)]D(Pi,Pi′). Feeding it into the Bretagnolle–Huber inequality of Mission VI yields the goal theorem — the minimax lower bound Rn≥271(k−1)n over Gaussian bandits, showing MOSS (Mission III) is optimal up to a constant. The same machinery gives the instance-dependent bound of Lai–Robbins type: every consistent policy suffers liminfnRn/logn≥∑i:Δi>0Δi/dinf(Pi,μ∗,Mi), certifying the asymptotic optimality of the UCB of Mission III and KL-UCB of Mission IV, and a high-probability lower bound showing the Exp3-IX guarantees of Mission V cannot be improved.
Optimal Best Arm Identification with Fixed Confidence IV: Asymptotic Optimality of the Track-and-Stop StrategyResearch Paper
Motivation
In best arm identification with fixed confidence, a learner samples K unknown distributions (arms) sequentially and must, as early as possible, name the arm with the largest mean, while being wrong with probability at most a prescribed risk δ. The problem models adaptive A/B/n testing, clinical and simulation-based selection among alternatives, and the "ranking and selection" problem of operations research and simulation optimization. The quantity of interest is the sample complexityEμ[τδ], the expected number of samples a strategy takes before stopping.
Timeline of the question this mission formalizes:
Chernoff (1959) introduced sequential tests based on generalized likelihood ratios for adaptive design of experiments, with a finite set of hypotheses (doi:10.1214/aoms/1177706205).
Kaufmann, Cappé and Garivier (2016, JMLR) proved a change-of-measure lower bound on the sample complexity of every δ-PAC strategy (arXiv:1407.4443).
Garivier and Kaufmann (COLT 2016) identified the exact constant T∗(μ) in that lower bound and gave the first strategy, Track-and-Stop, whose sample complexity matches it asymptotically as δ→0 (arXiv:1602.04589). This mission covers the upper-bound half of that paper.
Setting
A canonical one-parameter exponential family is a family of laws νθ, θ∈Θ, on R with density exp(θx−b(θ)) with respect to a reference measure ξ; b is twice differentiable and strictly convex, and νθ has mean b˙(θ). Bernoulli, Poisson and Gaussian laws with known variance are examples. The divergence d(μ,μ′) is the Kullback–Leibler divergence between the members with means μ and μ′.
A bandit model μ=(μ1,…,μK) assigns a member of the family to each arm. The class S consists of models with a unique optimal arm a∗(μ). At each round t=1,2,… the learner picks an arm At as a function of past observations, observes a reward drawn from that arm's law, and at a stopping time τδ recommends an arm. Na(t) is the number of draws of arm a in the first t rounds and μ^a(t) its empirical mean.
With Alt(μ)={λ∈S:a∗(λ)=a∗(μ)} and ΣK the probability simplex, the characteristic time is
T∗(μ)−1=w∈ΣKsupλ∈Alt(μ)infa=1∑Kwad(μa,λa),
and the maximizer w∗(μ) are the optimal proportions of arm draws.
Track-and-Stop combines two ingredients:
a sampling rule that tracks the plug-in proportions w∗(μ^(t)) while forcing each arm to be drawn about t times: C-Tracking tracks the cumulated sum of projections of w∗(μ^(s)) onto ΣKϵs={w∈ΣK:wa≥ϵs}, ϵs=(K2+s)−1/2/2; D-Tracking draws an under-sampled arm when some Na(t)<t−K/2, and otherwise the arm maximizing twa∗(μ^(t))−Na(t);
Chernoff's stopping rule, which stops at the first t at which some arm a beats every other arm b in a generalized likelihood ratio test, Za,b(t)>β(t,δ), here with β(t,δ)=log(r(t)/δ).
Formalization targets
Goal: Theorem 14 (p. 13)
For α∈[1,e/2] and r(t)=O(tα), Chernoff's stopping rule with β(t,δ)=log(r(t)/δ) combined with C-Tracking or D-Tracking satisfies
Lemma 7 (p. 7): C-Tracking ensures Na(t)≥t+K2−2K and maxa∣Na(t)−∑s<twa∗(μ^(s))∣≤K(1+t).
Lemma 8 (p. 7): D-Tracking ensures Na(t)≥(t−K/2)+−1, and proportions within 3(K−1)ϵ of w∗(μ) after a time tϵ that does not depend on the trajectory, once the plug-in targets are within ϵ.
Proposition 9 (p. 8): under either rule, Na(t)/t→wa∗(μ) almost surely.
Lemma 18 (p. 27): an explicit x with c1x≥log(c2xα) for α∈[1,e/2].
Proposition 13 (p. 11): with any sampling rule whose proportions converge almost surely to w∗, τδ<∞ almost surely and limsupδ→0τδ/log(1/δ)≤αT∗(μ) almost surely.
Significance
Theorem 1 of the same paper shows Eμ[τδ]≥T∗(μ)kl(δ,1−δ) for every δ-PAC strategy, and kl(δ,1−δ)∼log(1/δ). Theorem 14 with α=1 therefore shows that the lower bound is attained: T∗(μ) is the exact asymptotic sample complexity of best arm identification in exponential family models, and Track-and-Stop is asymptotically optimal.
The result is proved in the paper. What is not available is a machine-checked proof for exponential families. The platform already holds a Lean development of the Gaussian case following Lattimore and Szepesvári, Bandit Algorithms, Ch. 33, stated for one existentially chosen policy with a different threshold. This mission asks for the universal statement: every run of either tracking rule, for every exponential family, with the paper's thresholds. The tracking lemmas (Lemmas 15, 7, 8) are deterministic combinatorics and reusable by any tracking-based algorithm.
Difficulty
The obvious argument plugs the almost-sure behaviour of Proposition 13 into an expectation. That step fails: almost-sure convergence of τδ/log(1/δ) does not control E[τδ], because on the rare events where the empirical means are far from μ the stopping time may be very large. Theorem 14 needs a quantitative concentration of μ^(t) on events whose complements have summable probability, which in turn relies on the forced exploration guaranteed by the t lower bounds on Na(t) (the concentration step of App. D, Lemmas 19–20).
A second obstacle is the regularity of w∗: the tracking lemmas only transfer convergence of μ^(t) to convergence of Na(t)/t through the continuity of μ↦w∗(μ) on S, proved from the characterization of w∗ in §2.2 (Proposition 6). The GLR statistic also needs its closed form (7) near μ, which requires the empirical means to lie in the interior of the mean space.
Formalization scope
Model. The exponential family is a structure (ξ,Θ,b) with Θ a nonempty open interval, each νθ normalized, b twice continuously differentiable and b¨>0 on Θ. Openness and b¨>0 are added to the paper's "convex, twice differentiable"; strict convexity is what makes νμ unique. Bandit models are parameter vectors θ∈ΘK with K≥2; arms are indexed 0,…,K−1. S is the set of parameter vectors with a unique arm of largest mean b˙(θa).
Protocol. Policies, the trajectory law Pμ, pull counts, empirical means and T∗(μ) are the platform's published definitions (BanditPolicy, BanditTrajectory, TrackAndStop). T∗ uses Kullback–Leibler divergences of the arm laws over the class S and takes values in [0,∞]. Trajectory coordinate t is round t+1. An arm never drawn has empirical mean 0.
Target map.w∗(μ^(t)) is undefined in the paper when μ^(t)∈/S (an unsampled arm, ties, a mean outside b˙(Θ)). Every tracking statement quantifies over every target map with values in ΣK that returns optimal proportions on S, over every choice of L∞ projections, and over every tie-breaking, including randomized ones.
Stopping rule. The two maxima in Za,b(t) are suprema over Θ in the extended reals. Za,b(t)>β is written without subtracting infinities. The stopping time is the first t≥1 at which the test succeeds, +∞ if none. "r(t)=O(tα)" is r(t)≤Dtα for t≥1; r>0 is added so that log(r(t)/δ) is defined.
Values in [0,∞]. Expectations of τδ, the ratios and T∗ live in [0,∞]. No statement converts them to reals, so an infinite expected stopping time is never read as 0.
Corrections, disclosed. Proposition 9's printed Pw is Pμ. Lemma 18 adds c2/c1α>1 and x>0, without which its expressions are undefined.
Ruled out. Specializing to Gaussian arms, or asserting that some sampling policy achieves the bound, would restate existing platform results and is not this theorem: the goal is about every C-Tracking or D-Tracking run in every exponential family.
Welcome contributions. Exponential-family facts (b˙ is the mean, the KL formula, concentration of empirical means); the continuity of w∗ (Proposition 6, App. A.3); Lemma 17 (App. B.2), from which Lemma 8 follows; the closed form (7) of the GLR statistic.
Selected references
A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016, JMLR W&CP 49. arXiv:1602.04589v2
E. Kaufmann, O. Cappé, A. Garivier, On the Complexity of Best-Arm Identification in Multi-Armed Bandit Models, JMLR 17, 2016. arXiv:1407.4443
Optimal Best Arm Identification with Fixed Confidence I: Non-Asymptotic Lower Bound on the Sample ComplexityResearch Paper
Motivation
Best arm identification with fixed confidence is the pure-exploration counterpart of the multi-armed bandit problem. A learner faces K unknown reward distributions ("arms"), samples them sequentially, and must stop and name the arm with the largest mean, being wrong with probability at most a prescribed δ. The question is how many samples this requires. It arises in adaptive A/B testing, in the selection of the best of several simulated systems (ranking and selection in simulation optimization), and in clinical trials that must declare the best treatment with a guaranteed error rate.
Lower bounds for this problem were first stated in terms of the gaps between means (Mannor and Tsitsiklis, 2004). Kaufmann, Cappé and Garivier (2016) replaced ad hoc changes of measure by a single "transportation" lemma relating expected sample counts, Kullback–Leibler divergences and the error probability. Garivier and Kaufmann (COLT 2016, arXiv:1602.04589v2) combine this lemma over all alternative models at once, in the spirit of Graves and Lai (1997), and obtain a lower bound whose constant T∗(μ) is exactly matched, as δ→0, by their Track-and-Stop strategy. This mission formalizes that lower bound (Theorem 1 of the paper, p. 3).
Setting
A canonical one-parameter exponential family is given by a reference measure ξ on R, an open interval Θ⊂R and a function b, twice continuously differentiable on Θ with b¨>0, such that the laws νθ with density exp(θx−b(θ)) with respect to ξ are probability measures for θ∈Θ. The mean of νθ is b˙(θ). Bernoulli laws and Gaussian laws of known variance are examples.
A bandit model is a vector θ=(θ1,…,θK)∈ΘK; arm a returns i.i.d. rewards with law νθa and mean μa=b˙(θa). Arm a∗(μ) is the unique optimal arm if μa∗>μa for every a=a∗. Let S be any set of bandit models of the family each having a unique optimal arm, and put Alt(μ)={λ∈S:a∗(λ)=a∗(μ)}.
A strategy consists of a sampling ruleπ (the arm At drawn at round t depends, possibly with extra randomization, on the first t−1 observations), a stopping timeτ of the natural filtration Ft=σ(A1,X1,…,At,Xt), and an Fτ-measurable decisiona^τ. It is δ-PAC on S if for every μ∈S, Pμ(τ<∞)=1 and Pμ(a^τ=a∗(μ))≤δ. Na(t) is the number of draws of arm a among the first t rounds.
Write d(μa,λa)=KL(νθa,νλa) for the divergence between two arm laws, kl(x,y)=xlogyx+(1−x)log1−y1−x, and ΣK for the probability simplex on the K arms. The characteristic time is defined by eq. (1):
T∗(μ)−1=w∈ΣKsupλ∈Alt(μ)infa=1∑Kwad(μa,λa).
Formalization targets
Goal: Theorem 1 (p. 3)
For δ∈(0,1/2], every δ-PAC strategy on S and every μ∈S,
Eμ[τ]≥T∗(μ)kl(δ,1−δ).
The statement fixes no constant beyond those of the paper, and it holds for every δ, not only in the limit.
Milestone: eq. (2) (p. 4)
For every λ∈S with a∗(λ)=a∗(μ),
a=1∑Kd(μa,λa)Eμ[Na(τ)]≥kl(δ,1−δ).
This is Lemma 1 of Kaufmann et al. (2016), which the paper quotes without proof; Theorem 1 follows from it for every alternative simultaneously.
Significance
Theorem 1 identifies T∗(μ) as the exact problem-dependent complexity of fixed-confidence best arm identification: since kl(δ,1−δ)∼log(1/δ), it gives liminfδ→0Eμ[τδ]/log(1/δ)≥T∗(μ), and the paper's Track-and-Stop strategy attains this rate (the subject of mission IV of this series). The bound also explains which proportions of draws an optimal strategy must use: the maximizer w∗(μ) of eq. (1) (mission II).
Both results are proved in the literature. Neither is formalized in the paper's generality. The platform holds the textbook form of Lattimore and Szepesvári (Theorem 33.5), which is stated for an arbitrary class with the weaker constant log(1/(4δ)); for δ≤1/2, kl(δ,1−δ)≥log(1/(2.4δ))>log(1/(4δ)), so Theorem 1 is strictly stronger. A formal proof here yields the transportation lemma for exponential families on the platform's infinite-horizon bandit model, which later missions (II–IV, and any lower bound by change of measure) can reuse.
Difficulty
The obvious proof applies the finite-horizon divergence decomposition KL(Pμn,Pλn)=∑aEμ[Na(n)]d(μa,λa) at a deterministic horizon n. That fails here: τ is random and unbounded, the decision is Fτ-measurable, and the relevant divergence is between the laws of the stopped observations. The step from a fixed horizon to a stopping time, together with the data-processing inequality that turns the error guarantees under two models into kl(δ,1−δ), is the central difficulty. A second, smaller difficulty is to identify the paper's divergence d and its means b˙(θ) with the measure-theoretic KL divergence and mean of the arm laws of the exponential family.
Formalization scope
Lean namespace OptimalBAI.LowerBound. The bandit protocol is the platform's (BanditAlgorithm.BanditPolicy, banditTrajMeasure, IsBanditStoppingTime, IsSoundBAI, baiComplexity); kl is the platform's bernoulliRelativeEntropy and Na(t) is trajPullCount. Conventions:
arms are Fin K, 0-based (the paper's arm a is index a−1); trajectory coordinate t is round t+1;
Θ is a nonempty open interval and b¨>0 on Θ (added: the paper says b is convex and twice differentiable; strict convexity is what makes "the unique distribution with mean μ" meaningful); the paper's d is written as the KL divergence of the arm laws (its first equality on p. 3), and the unique optimal arm is defined through the parameter means b˙(θa);
S is an arbitrary set of models with a unique optimal arm, not the specific set the paper fixes from p. 4 on;
δ-PAC keeps both halves of the paper's definition (almost-sure stopping and error at most δ);
T∗(μ), divergences and expectations of τ take values in [0,∞], never truncated to reals; T∗=0 when Alt(μ)=∅ and T∗=∞ when the supremum in eq. (1) is 0;
δ≤1/2 is added. The paper states δ∈(0,1), but the theorem and eq. (2) are false for δ∈(1/2,1): with two unit-variance Gaussian arms, drawing arm 1 once and naming arm 1 exactly when the fractional part of the reward is below 1/2 is 0.9-PAC, while T∗(μ)→∞ as the two means merge. At δ=1/2 the bound is 0.
A statement with log(1/(4δ)) in place of kl(δ,1−δ), or restricted to Gaussian arms, is the platform's existing textbook theorem and does not count as this mission's goal; nor does any version that drops the almost-sure stopping clause or truncates E[τ] or T∗ to real numbers.
Needed infrastructure: the transportation lemma at a stopping time (data processing for KL through an Fτ-measurable event, Wald-type identity for the stopped log-likelihood ratio), the identities "mean of νθ=b˙(θ)" and "KL of two family members =b(θ′)−b(θ)−b˙(θ)(θ′−θ)", and E[τ]=∑aE[Na(τ)]. All are reusable beyond this mission. Contributions of any of these lemmas, of eq. (2) alone, or of the Gaussian and Bernoulli special cases as stepping stones are welcome.
Selected references
A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016 (JMLR W&CP 49), arXiv:1602.04589v2. https://arxiv.org/abs/1602.04589
E. Kaufmann, O. Cappé, A. Garivier, On the Complexity of Best-Arm Identification in Multi-Armed Bandit Models, Journal of Machine Learning Research 17(1), 2016. https://arxiv.org/abs/1407.4443
T. L. Graves, T. L. Lai, Asymptotically Efficient Adaptive Choice of Control Laws in Controlled Markov Chains, SIAM Journal on Control and Optimization 35(3), 1997. https://doi.org/10.1137/S0363012994275440
S. Mannor, J. N. Tsitsiklis, The Sample Complexity of Exploration in the Multi-Armed Bandit Problem, Journal of Machine Learning Research 5, 2004. https://www.jmlr.org/papers/v5/mannor04b.html
Improved Algorithms for Linear Stochastic Bandits II: Constant High-Probability Regret of UCB(δ)Research Paper
Motivation
The stochastic multi-armed bandit is the basic model of sequential decision making under uncertainty: a learner repeatedly chooses one of d actions, observes a noisy reward for the chosen action only, and must balance exploring poorly known actions against exploiting the one that currently looks best. It underlies adaptive clinical trials, online advertising, recommendation, dynamic pricing and many simulation-optimization procedures in operations research.
The standard algorithm is UCB (Auer, Cesa-Bianchi and Fischer, 2002, doi:10.1023/A:1013689704352), which plays the arm with the largest upper confidence bound on its mean. Its confidence widths grow with the current time t (or with a horizon n fixed in advance), and its guarantee is on the expected regret, which grows like logn. Lai and Robbins (1985, doi:10.1016/0196-8858(85)90002-8) showed that logarithmic growth of the expected regret cannot be avoided by a consistent algorithm.
Abbasi-Yadkori, Pál and Szepesvári (NIPS 2011) proved a self-normalized concentration inequality for vector-valued martingales that holds uniformly over time. Section 6 of their paper applies it to the d-armed bandit. The resulting confidence intervals depend on neither the horizon nor the current time. The UCB variant built on them, UCB(δ), has pseudo-regret bounded by a constant, independent of the horizon, on a single event of probability at least 1−δ. This mission formalizes that section.
Setting
There are d≥1 arms with unknown meansμ1,…,μd∈R. Write μ∗=max1≤i≤dμi for the best mean and Δi=μ∗−μi≥0 for the gap of arm i.
Randomness lives on a probability space (Ω,F,P) with a filtration (Ft)t≥0. In round t=1,2,… the learner plays an arm It that is Ft−1-measurable and receives the reward μIt+ηt. The noise ηt is Ft-measurable and conditionally 1-sub-Gaussian:
E[eληt∣Ft−1]≤eλ2/2for all λ∈R.
The noise need not be independent or identically distributed across rounds, and the rewards need not be bounded.
After t rounds, Ni,t is the number of plays of arm i and Xi,t is the average reward received from it. For a confidence level δ>0 the confidence width is
ci,t=Ni,t21+Ni,t(1+2logδd(1+Ni,t)1/2)(3)
with ci,t=+∞ when Ni,t=0. UCB(δ) plays, in round t, an arm that maximizes Xi,t−1+ci,t−1; in particular every arm is played once before any comparison is made. The pseudo-regret after n rounds is
Rn=t=1∑n(μ∗−μIt).
This is the linear bandit of the paper with the standard basis of Rd as decision set and θ∗=μ.
Formalization targets
Goal: Theorem 7 (constant regret of UCB(δ))
For every δ>0, with probability at least 1−δ, for all n≥0 simultaneously,
Rn≤i:Δi>0∑(3Δi+Δi16logΔiδ2d).
The right-hand side depends only on the gaps, d and δ.
Milestone: Lemma 6 (confidence intervals)
For any adapted choice of arms (not only UCB(δ)) and every δ>0, with probability at least 1−δ,
∣Xi,t−μi∣≤ci,tfor all arms i and all t≥0.
Significance
The result. Theorem 7 shows that, once a confidence level is fixed, a UCB-type algorithm can stop paying for exploration after finitely many rounds: with probability 1−δ the total regret over an infinite horizon is bounded. The paper notes that this does not contradict the Lai–Robbins lower bound, which concerns expected regret; on the failure event of probability δ the regret may grow linearly. Lemma 6 is the practical content behind this: anytime-valid confidence intervals for adaptively sampled means under martingale noise, usable for stopping rules, best-arm identification and any sequential procedure that inspects its estimates at data-dependent times.
Formalizing it. Both results are proved in the paper's appendices (F and G). No machine-checked proof of either is known to exist. The platform already has the self-normalized martingale bound for V=λI and unit sub-Gaussian noise (BanditAlgorithm.self_normalized_martingale_bound, listed here as a reference item), and UCB bounds with horizon-dependent widths and in-expectation or pathwise conclusions. Neither is Theorem 7. The mission produces a formal account of time-uniform confidence intervals for adaptively sampled arm means, and of a regret bound that is uniform in the horizon.
Difficulty
Two points separate this from textbook UCB analyses. First, the number of samples Ni,t of an arm is itself random and depends on past noise, so a fixed-sample concentration inequality with a union bound over times does not give widths that are free of t: a union bound over all t costs a factor that diverges. The time-uniform event must come from a maximal (self-normalized) inequality applied to the martingale ∑sηs1{Is=i}. Second, the regret statement is uniform in n with constants depending on the gaps; converting a condition of the form "c(N)≥Δi/2" into an explicit bound on N requires solving an inequality in which N appears both polynomially and inside a logarithm, and the explicit constants 3 and 16 must come out of that step.
Formalization scope
The Lean development lives in the namespace ImprovedLinBandits.UCBDelta.
Arms are Fin d with 0 < d in the goal; means are μ : Fin d → ℝ, μ∗ is ⨆ i, μ i (the maximum over a nonempty finite type).
Rounds are indexed t + 1 for t : ℕ: the arm I (t + 1) is ℱ t-measurable, the noise η (t + 1) is ℱ (t + 1)-measurable and satisfies Mathlib's HasCondSubgaussianMGF (ℱ t) … (η (t + 1)) 1 P. Values at index 0 are unused.
The sample space is assumed to be a standard Borel space, which Mathlib's conditional sub-Gaussianity requires; this hypothesis is not in the paper.
"With probability at least 1−δ, for all …" is stated as: the outer probability of the failure event, with the quantifiers over arms and times inside it, is at most δ. For δ≥1 the statements are trivially true, as in the paper.
The rule (4) is read with the statistics of rounds 1,…,t−1, because the printed Xi,t, ci,t already count round t. An unplayed arm, whose width is +∞ in the paper, is played before the indices are compared. Every tie-breaking rule is allowed, and measurability of the chosen arm is assumed rather than derived.
The printed Theorem 7 has no quantifier on n; it is formalized in the uniform-in-n form, matching the section's claim of constant regret and the time-uniform event of Lemma 6.
Lean's division by zero makes Xi,t and ci,t equal to 0 when Ni,t=0. Lemma 6 therefore excludes Ni,t=0 explicitly (where the paper's inequality is vacuous), and the run predicate handles unplayed arms separately. The regret bound sums over arms with Δi>0, so its divisions are well defined.
A trivializing formalization is ruled out: the confidence event is not assumed as a hypothesis of Theorem 7, the i.i.d. bandit model is not substituted for the martingale noise model, and no bound on the means or rewards is imposed.
Useful infrastructure for solvers: the self-normalized bound of Theorem 1 in the scalar case (d=1, λ=1, As=1{Is=i}, Vt=1+Ni,t), a union bound over arms, and elementary inequalities inverting N↦N21+N(1+2log(d1+N/δ)). Lemmas about pull counts and empirical means under adaptive sampling are reusable beyond this mission and are welcome as contributions.
P. Auer, N. Cesa-Bianchi, P. Fischer, Finite-time Analysis of the Multiarmed Bandit Problem, Machine Learning 47, 2002. https://doi.org/10.1023/A:1013689704352
Multi-armed Bandit Allocation Indices II: Jobs, Parallel Machines, Search and Bandit-Dependent DiscountingTextbook
Motivation
Chapter 3 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), asks which of the assumptions behind the index theorem can be dropped and which cannot, using the simplest bandit processes there are: jobs, which pay a single reward when they complete. Along the way it settles three questions that matter on their own. When identical machines run in parallel, which schedule of deterministic jobs minimizes the total completion time (Baker's theorem), and what does the equal-ratio case look like (Theorem 3.3)? When an object is hidden in one of several boxes and each search costs money and may fail, in what order should the boxes be searched (Blackwell's search-index theorem, Theorem 3.6)? And when two bandit processes discount at different rates, is there still an index policy (Nash's Theorem 3.4)? The search theorem is the chapter's example of what the index machinery yields once undiscounted criteria are admitted through the limit γ↓0; the scheduling results are the source of the counterexamples that show a second machine breaks the index structure.
Setting
Jobs on parallel machines. There are n jobs with service times si>0 and weights ci, and m identical machines. A schedule assigns each job a machine and a position in that machine's processing order; each machine processes its jobs consecutively. The completion timeCi of a job is the total service time of the jobs on its machine up to and including it; the flow time is ∑iCi and the weighted flow time∑iciCi. The load of a machine is the total service time assigned to it, and δj is its excess over the average S/m. The SPT list schedule sorts the jobs by increasing service time and deals them out cyclically to the machines. The level of a job is its position counted from the end of its machine's schedule.
The search problem (Problem 3). A stationary object is hidden in one of n boxes, in box i with probability pi. A search of box i costs ci and finds the object with probability qi if it is there. A search policy is a sequence of boxes; after Ni unsuccessful searches of box i the posterior probability that the object is there is proportional to pi(1−qi)Ni, and the search index of the box is pi′qi/ci, the current probability of finding the object per unit cost. The expected cost of a policy is ∑kcσkPr[not found by the first k searches].
Two discount factors. Bandit process A (state space SA, kernel PA, reward rA) discounts at rate a and B at rate b; a reward obtained at time t is worth at or bt times its face value according to which process produced it. The cross indices are νAB(x)=supτ>0E∑t<τatrA(x(t))/E[1−bτ] and νBA(y) with the roles exchanged: each is computed from one process's stopping times but with the other's discount factor in the denominator. The book prints the denominator as E∫0τbtdt and compares νAB(x) with νBA(y) at every time; both are corrected here (see the Theorem 3.4 item), since the printed rule is not optimal. The family is the two-armed Markov bandit of the Bandit Algorithms model on the disjoint union SA⊕SB.
Formalization targets
Goal: Theorem 3.6
For prior probabilities pi≥0 summing to one, detection probabilities 0<qi≤1 and costs ci>0, a search policy is optimal if and only if at every step it searches a box of maximal current index pi′qi/ci:
Theorem 3.3, as the identity ∑iciCi=2κ(∑isi2+S2/m+∑jδj2) when ci=κsi; Theorem 3.4 in discrete time and corrected, that a policy selecting, at time t, A when atνAB(x)>btνBA(y) and B when atνAB(x)<btνBA(y) attains the supremum of the bandit-dependently discounted payoff; Theorem 3.7, that SPT minimizes the flow time on m machines and that the optimal schedules are exactly those placing the r-th block of m longest jobs at level r from the end, for some order of the equal jobs.
Significance
Theorem 3.6 is the classical solution of the discrete search problem (Blackwell, reported by Matula 1964; Kadane 1969): the greedy rule in probability-per-cost is optimal, and every optimal policy is of that form. The book derives it from the index theorem through an auxiliary family of bandit processes (Problem 3A) and the undiscounted limit (Corollary 3.5), which is why it sits in this chapter; as a statement it is elementary and self-contained, and it is the template for the tax problems and Klimov's model of Chapter 4. Theorem 3.7 and Theorem 3.3 are the positive results about parallel machines that survive the loss of the index structure; Theorem 3.4 shows the index theorem's shape persisting under bandit-dependent discounting, with two twists: each index depends on the other process's discount factor, which is exactly why it does not extend to three processes, and the comparison at time t weighs the indices by at and bt, so the rule is not stationary in the states. The printed statement misses the second twist and misnormalizes the first; two one-state bandits paying 0.18 (a=0.9) and 1 (b=0.5) are best played B,B,B and then A forever, which no stationary rule does.
None of these is machine-checked. Formalizing them gives the platform an optimality theorem for an infinite-horizon search process with an explicit index characterization in both directions, the standard parallel-machine flow-time results with a precise uniqueness clause, and a first statement on the Bandit Algorithms two-armed model with unequal discounting.
Difficulty
For Theorem 3.6 the obvious route, comparing two adjacent searches, gives only that interchanging a pair in the wrong index order lowers the cost; turning that into optimality over all infinite sequences needs that an optimal policy exists (costs are bounded below by zero and the index policy has finite cost), that a policy neglecting a box of positive prior has infinite cost, and that any first deviation from the index rule can be improved by moving a later search forward, which requires tracking how the not-found probability changes along the whole tail. The converse direction is the same interchange run backwards, and the tie case must be handled so that the equivalence is exact. Theorem 3.7's first part follows from writing the flow time as ∑iℓisi with ℓi the level and applying a rearrangement inequality over the multiset of levels, but the multiset of levels itself depends on how many jobs each machine gets, so balancing the machine counts is part of the argument; the uniqueness clause needs both that the multiset is forced and that the pairing of levels with service times is forced by strict monotonicity. Theorem 3.4 is the hardest: the book's proof changes the time scale of each process so that the two share a discount factor, which produces a semi-Markov family, and applies the index theorem there; in discrete time on the Markov model one needs either a discrete analogue of that argument or a direct prevailing-charge proof with two charge scales.
Formalization scope
Schedules are assignments of machines and positions with distinct positions on a machine, without idling; the flow-time quantities are finite sums over Fin n. The SPT schedule is defined by the ascending rank of a job (ties broken by index) and carries its own injectivity proof. The search cost is a series in [0,∞] of nonnegative terms, so no summability hypothesis is needed and "infinite cost" is literal; the index is stated unnormalized, pi(1−qi)Niqi/ci, which orders the boxes exactly as the posterior index does. The two-discount family uses the platform's MarkovBanditPolicy 2 (S_A ⊕ S_B) and markovBanditMeasure with the kernel that moves an A-state by PA and a B-state by PB; the payoff is the round-by-round series ∑t(atE[r1{At=A}]+btE[r1{At=B}]), absolutely summable for bounded rewards, and the policy condition is imposed at histories whose current states have the right types (all reachable histories do). Hypotheses: m≥1, service times positive; pi≥0, ∑pi=1, 0<qi≤1, ci>0; countable state spaces, bounded rewards, a,b∈(0,1).
Trivializing readings are excluded: the search "iff" is over all sequences, not a finite horizon; the uniqueness clause is stated in full, with ties resolved by any ranking of the equal jobs; the cross indices are suprema over positive stopping times (denominators at least one), and the two-discount rule weighs the indices by at, bt. Welcome contributions: the rearrangement and level-count lemmas for schedules, the interchange lemma for the search cost, and a discrete prevailing-charge argument for Theorem 3.4.
Selected references
J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 3. doi:10.1002/9780470980033
D. W. Matula, A periodic optimal search, American Mathematical Monthly 71(1), 1964. doi:10.2307/2311300
J. B. Kadane, Quiz show problems, Journal of Mathematical Analysis and Applications 27(3), 1969. doi:10.1016/0022-247X(69)90140-2
K. R. Baker, Introduction to Sequencing and Scheduling, Wiley, 1974.
Bandit Algorithms XIII: Pure Exploration and Best-Arm IdentificationTextbook
Sometimes reward during learning is irrelevant — a pharmaceutical company running phase-II trials only cares about identifying the best treatment, as quickly and as reliably as possible. Chapter 33 of Lattimore–Szepesvári formalizes fixed-confidence best-arm identification: a policy together with a stopping time τ and a recommendation must be sound (wrong with probability at most δ) while minimizing E[τ]. The information-theoretic complexity is c∗(ν)−1=supα∈Pk−1infν′∈Ealt(ν)∑iαiD(νi,νi′): every sound strategy needs E[τ]≥c∗(ν)log4δ1, and the Track-and-Stop algorithm — the goal theorem — achieves limδ→0E[τ]/log(1/δ)=c∗(ν) exactly. The mission also covers the fixed-budget counterpart, sequential halving.
Bandit Algorithms IV: Bernoulli Bandits and KL-UCBTextbook
When rewards are binary — a click or no click, a cure or no cure — the subgaussian machinery of Missions I–III is not tight: the variance of a Bernoulli arm degrades near the boundary of [0,1], and the correct exponential rate is governed by the binary relative entropy d(p,q)=plogqp+(1−p)log1−q1−p rather than a squared distance. Chapter 10 of Lattimore–Szepesvári develops Chernoff's tail bound in its information-theoretic form and the KL-UCB algorithm, whose upper confidence bounds are level sets of d. The goal theorem shows KL-UCB attains
n→∞limsupRn/logn=i:Δi>0∑Δi/d(μi,μ∗)
— asymptotic optimality with exactly the constant demanded by the lower bound of Mission VII, strictly improving subgaussian UCB on every Bernoulli instance.
Every lower bound in bandit theory rests on one question: how hard is it to tell two probability measures apart from a sample? The answer is quantified by the relative entropy D(P,Q), and the sharpest elementary tool is the Bretagnolle–Huber inequality: for any event A, P(A)+Q(Ac)≥21exp(−D(P,Q)) — no test can distinguish P from Q with total error probability below 21e−D(P,Q). This mission formalizes Chapter 14 of Lattimore–Szepesvári: the Bretagnolle–Huber inequality (the goal theorem, proved via Le Cam's inequality ∫p∧q≥21(∫pq)2), Pinsker's inequality δ(P,Q)≤D(P,Q)/2, and the closed-form divergences between Gaussians and Bernoullis. These half-page inequalities power every impossibility result in Missions VII, XI and beyond.
Optimal Best Arm Identification with Fixed Confidence III: δ-PAC Guarantee of Chernoff's Stopping Rule for Bernoulli BanditsResearch Paper
Motivation
In best arm identification with fixed confidence, a learner samples K unknown distributions ("arms") one at a time, and must eventually stop and name the arm with the largest mean, with an error probability at most a prescribed risk δ, while using as few samples as possible. The problem goes back to the sequential design of experiments (Chernoff, 1959; Even-Dar, Mannor and Mansour, 2006) and underlies adaptive A/B testing, clinical trial design and hyperparameter selection.
Any fixed-confidence strategy consists of three parts: a sampling rule, a stopping rule and a decision rule. Garivier and Kaufmann (arXiv:1602.04589, COLT 2016) proposed the Track-and-Stop strategy, the first shown to match the asymptotic lower bound on the expected sample complexity. Its stopping rule is a generalized likelihood ratio (GLR) test, Chernoff's stopping rule. Its correctness, the guarantee that the recommended arm is wrong with probability at most δ, must hold whatever the sampling rule, which is what allows the sampling rule to be tuned freely for efficiency. This mission formalizes that guarantee for Bernoulli arms, Theorem 10 of the paper, with its explicit threshold β(t,δ)=log(2t(K−1)/δ).
Setting
The arms are A={1,…,K}. A Bernoulli bandit model is a mean vector μ=(μ1,…,μK)∈[0,1]K: pulling arm a returns reward 1 with probability μa and 0 otherwise, independently of the past. The class S contains the models with a unique optimal arma∗(μ), i.e. μa∗>μi for all i=a∗.
At round t the learner chooses an arm At as a (possibly randomized) function of the past observations and observes a reward Xt. Write Na(t) for the number of pulls of arm a among the first t rounds, sa(t) for the number of those pulls that returned 1, and μ^a(t)=Na(t)−1∑s≤tXs1{As=a} for the empirical mean. The likelihood of arm a's observations under mean u is pu(XNa(t)a)=usa(t)(1−u)Na(t)−sa(t).
The GLR statistic for "arm a is at least as good as arm b" is
Chernoff's stopping rule with exploration rateβ(t,δ) is
τδ=inf{t≥1:∃a∈A,∀b=a,Za,b(t)>β(t,δ)},
and the decision rule recommends a^τδ∈argmaxaμ^a(τδ).
The Krichevsky–Trofimov (KT) distribution on binary sequences x∈{0,1}n is kt(x)=∫01(πu(1−u))−1pu(x)du, the Bernoulli likelihood mixed over the Beta(1/2,1/2) prior.
Formalization targets
Goal: Theorem 10
For every δ∈(0,1), every sampling strategy, and the threshold β(t,δ)=log(2t(K−1)/δ),
∀μ∈S,Pμ(τδ<∞,a^τδ=a∗)≤δ.
Milestone: Lemma 11 (Willems, Shtarkov and Tjalkens, 1995)
kt is a probability law on {0,1}n, and for n≥1,
x∈{0,1}nsupu∈[0,1]supkt(x)pu(x)≤2n.
Milestone: the pairwise crossing bound of Appendix C.1
With Ta,b=inf{t:Za,b(t)>β(t,δ)}, for all arms with μa<μb,
Pμ(Ta,b<∞)≤K−1δ.
Significance
Theorem 10 decouples correctness from efficiency. Because the guarantee holds for every sampling strategy, any sampling rule, including the C-Tracking and D-Tracking rules of Track-and-Stop, the uniform rule, or a heuristic, inherits δ-correctness as soon as it is paired with Chernoff's stopping rule at this threshold. The asymptotic optimality result of the paper (Theorem 14) then only has to control the sample complexity. The threshold is explicit, with no unspecified constant, in contrast to the deviational threshold of Proposition 12.
The result is proved in the paper, in Appendix C.1, and rests on Lemma 11, which the paper quotes from the universal coding literature without proof. As far as the platform's catalog shows, none of these results is formalized. The platform holds a machine-checkable statement of the analogous result for Gaussian arms with the Lattimore–Szepesvári threshold (BanditAlgorithm.chernoff_stopping_rule_sound, Lemma 33.7 of Bandit Algorithms), which is a different model and a different threshold. Formalizing Theorem 10 adds a proof of Lemma 11 (the KT regret bound, reusable in information theory and universal prediction), the Bernoulli GLR statistic, and a change of measure from the true bandit law to a Bayesian mixture law on the trajectory space.
Difficulty
The obvious approach bounds, for each fixed t, the probability that Za,b(t) exceeds β(t,δ) by a concentration inequality and sums over t. This fails: the sampling strategy is arbitrary and adaptive, so Na(t) and Nb(t) are random and depend on the past rewards, and a fixed-sample-size deviation bound does not apply; a union bound over the possible values of the counts loses more than the threshold allows. The maximum likelihood in the numerator of Za,b is also not a probability density, so the likelihood ratio cannot directly be read as a change of measure. The argument must control the whole trajectory law under an arbitrary randomized policy, and must handle empty samples (an arm never pulled contributes likelihood 1) and the boundary means 0 and 1.
Formalization scope
The formalization is in Lean 4 with Mathlib and reuses the platform's canonical bandit model: StochasticBandit, BanditPolicy (a Markov kernel per round from the observed history to the next arm, so randomized strategies are included), banditTrajMeasure (the law of the infinite trajectory, where coordinate s is round s+1) and IsSoundBAI from BanditTrajectory; bernoulliBandit from bernoulliRelativeEntropy; and only the pull counts trajPullCount and empirical means trajEmpiricalMean from TrackAndStop. The Gaussian GLR and threshold of TrackAndStop are not used.
Conventions committed to:
Arms are Fin K. Bernoulli means range over [0,1], degenerate laws included; the paper's exponential-family mean space is (0,1), so the [0,1] statement implies the paper's.
Za,b(t) is defined as the ratio of the two maxima over [0,1]2, not by the closed form (7), which holds only when μ^a(t)≥μ^b(t). Both maxima are attained and positive.
The stopping rule ranges over t≥1; at t=0 there is no observation and the paper's β(0,δ)=log0 is undefined. τδ=∞ when the rule never fires.
The decision rule is quantified: the goal holds for every recommendation that maximizes the empirical mean at τδ, whatever the tie-breaking.
Probabilities of events are outer measures under the trajectory law; no measurability is assumed.
K≥1 only. For K=1 the statement is trivially true (no suboptimal arm).
Disclosed deviations from the page: Lemma 11's ratio bound is stated for n≥1, since at n=0 the printed bound reads 1≤0; the use of the lemma in Appendix C.1 is unaffected. Appendix C.1 calls the result "Proposition 10" (a slip for Theorem 10) and prints the KT density as 1/πu(1−u) (a slip for 1/(πu(1−u)) of Lemma 11, which is the normalized one); the formalization follows Lemma 11.
A trivializing formalization is ruled out: stating the result for Gaussian arms or with the Lattimore–Szepesvári threshold is the platform's existing Lemma 33.7 and is not Theorem 10, and a free decision rule without the argmax hypothesis would make the claim false rather than faithful.
Contributions welcome: a proof of Lemma 11; a change-of-measure lemma for banditTrajMeasure under a mixture of environments; and the union-bound reduction from the goal to the pairwise claim.
Selected references
A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016 (JMLR W&CP 49), arXiv:1602.04589v2, 2016. https://arxiv.org/abs/1602.04589
F. M. J. Willems, Y. M. Shtarkov, T. J. Tjalkens, The context-tree weighting method: basic properties, IEEE Transactions on Information Theory 41(3), 1995. https://doi.org/10.1109/18.382012
R. Krichevsky, V. Trofimov, The performance of universal encoding, IEEE Transactions on Information Theory 27(2), 1981. https://doi.org/10.1109/TIT.1981.1056331
Stochastic Linear Optimization under Bandit Feedback 1: The Regret Bound of ConfidenceBallResearch Paper
Motivation
In stochastic linear optimization under bandit feedback a learner repeatedly chooses a decision xt from a fixed set D⊆Rn and observes only the noisy cost of that one decision, whose expectation is a fixed but unknown linear function μ⊤xt. The model covers online routing, ad and product selection with feature vectors, and any sequential decision problem whose decision set is too large to enumerate but whose expected cost is linear in a known representation. The multi-armed bandit is the special case where D is the set of standard basis vectors.
Dani, Hayes and Kakade (COLT 2008) analysed the algorithm ConfidenceBall₂, a generalization of Auer's LinRel (JMLR 2002), and proved that its regret is O∗(nT) with high probability for an arbitrary compact decision set, and that this is optimal up to logarithmic factors. Their confidence-ellipsoid construction became the template for later linear bandit algorithms (OFUL, LinUCB), and the ellipsoid-plus-potential analysis is the standard argument of the field (Lattimore and Szepesvári, Bandit Algorithms, Chapters 19–20).
Timeline: Auer (2002) introduced LinRel for finite decision sets; Dani, Hayes and Kakade (2008) extended it to arbitrary compact sets with the O∗(nT) bound and a matching Ω(nT) lower bound; Rusmevichientong and Tsitsiklis (Math. Oper. Res. 2010) studied linearly parameterized bandits with dimension-dependent regret bounds; Abbasi-Yadkori, Pál and Szepesvári (NeurIPS 2011) sharpened the confidence ellipsoids with self-normalized martingale bounds.
Setting
Fix n≥1 and a compact decision set D⊆Rn whose standard basis e1,…,en is a barycentric spanner: each ei∈D and every x∈D lies in the cube [−1,1]n. The paper's Section 5 adopts these coordinates without loss of generality. An unknown vector μ∈Rn satisfies ∣μ⊤x∣≤1 for x∈D, and x∗∈D minimises μ⊤x.
On round t=1,2,… the learner plays xt∈D, measurable with respect to the information Ft before round t, and observes a loss ℓt∈[−1,1] with E[ℓt∣Ft]=μ⊤xt. The regret after T rounds is
RT=t=1∑T(μ⊤xt−μ⊤x∗).
ConfidenceBall₂(D,δ) maintains the design matrix At=I+∑τ<txτxτ⊤, the least-squares estimate μ^t=At−1∑τ<tℓτxτ, the radius
βt=max(128nlntln(t2/δ),(38ln(t2/δ))2),
and the confidence ellipsoidBt2={ν:(ν−μ^t)⊤At(ν−μ^t)≤βt}. It plays the optimistic decision xt∈argminx∈Dminν∈Bt2ν⊤x. The analysis uses the widthwt=xt⊤At−1xt, the error Zt=(μ^t−μ)⊤At(μ^t−μ), and the noise ηt=ℓt−μ⊤xt.
The result gives a regret bound for linear bandits over an arbitrary compact decision set that depends on the dimension n rather than on ∣D∣, holds uniformly over horizons, and requires no gap between the best and second-best decision. With the paper's lower bound it shows that the price of bandit feedback, compared with full information, is a factor Θ∗(n). The two components, a confidence theorem for a least-squares ellipsoid under martingale noise and a deterministic potential argument on logdetAt, are reused in the analysis of most optimistic linear and generalized-linear bandit algorithms.
The theorem has a published proof but, to our knowledge, no machine-checked one. The platform already has the elliptical potential lemma (BanditAlgorithm.elliptical_potential_lemma, Lattimore–Szepesvári Lemma 19.4), the matrix determinant lemma and the Woodbury identity, which cover the linear-algebra layer; the LinUCB regret theorem there (BanditAlgorithm.linear_bandit_linucb_regret_bound) is pathwise given confidence, for a different algorithm, so the probabilistic half is new. Formalization also settles the printed constants, three of which need correction (below).
Difficulty
The deterministic half is linear algebra. The difficulty is the confidence theorem. Hoeffding–Azuma applied to ∑τMτ would need a deterministic step bound, and the natural one gives only a T3/4 regret. The step sizes of Mt are bounded in terms of the random widths wt, so the argument must control the conditional variances pathwise and apply Freedman's inequality, whose event {V≤v} is random. The escape indicator Et, which switches the martingale off after the first failure of confidence, is what makes the variance bound hold on every path, and the induction that turns Lemma 14 into Theorem 5 must be carried out on a single event for all t simultaneously. Freedman's inequality itself is not in Mathlib.
Formalization scope
Vectors are Fin n → ℝ, matrices Matrix (Fin n) (Fin n) ℝ, rounds are indexed t=1,2,… in ℕ. The spanner is the standard basis, as in Section 5 of the paper (the algorithm is equivariant under the linear change of coordinates). The probability model is a probability space with a general filtration (Ft); xt is Ft-measurable and ℓt is Ft+1-measurable. The argmin is encoded as a joint minimiser over D×Bt2, which admits every tie-break and is required on every outcome; measurability of xt is a hypothesis, not derived from the selection. The optimum x∗ is a hypothesis (x∗∈D, minimising), not an sInf.
Corrections of the printed statements, each labelled in the item's Formalization Note:
ln(T+1) for lnT in Lemma 9, Theorem 6 and Theorem 2. The printed bounds are false at T=1 (with n=1, D=[−1,1], μ>0, the tie-break x1=1 gives R1=2μ>0 against a bound of 0); the proof of Lemma 9 gives 2lndetAt+1≤2nln(t+1).
n≤β1=(38ln(1/δ))2 is added to Theorems 5 and 2: the proof of Theorem 5 claims Z1≤n<β1, which fails for δ near 1. Theorem 6 takes the proof's "1<β1" as the hypothesis β1≥1.
∣ℓt−μ⊤xt∣≤1 is added to Lemma 14, Theorems 5 and 2: Section 5.2 uses ∣ηt∣≤1, while the model gives only ∣ηt∣≤2. It holds when costs lie in [0,1].
Theorem 5's "δ>0" is stated with 0<δ<1; Lemma 10's index typo (wt for wτ) and Theorem 4's ∑i=1n (for T) are corrected.
A regret bound for an arbitrary decision sequence under the assumption μ∈Bt2 for all t is Theorem 6, not the goal; the goal carries the ConfidenceBall₂ selection rule, the conditional-mean and measurability hypotheses, and δ as the algorithm's own parameter. The hypotheses are jointly satisfiable, for example by a finite D with a fixed tie-break and i.i.d. costs in [0,1].
Needed infrastructure: Freedman's inequality for a filtration (reusable across all of bandit theory), the potential lemma (available), and measurability of the algorithm's statistics. Contributions of alternative proofs of Theorem 5, for example via self-normalized bounds, are welcome.
P. Rusmevichientong, J. N. Tsitsiklis, Linearly Parameterized Bandits, Mathematics of Operations Research 35(2), 2010. https://doi.org/10.1287/moor.1100.0446
Y. Abbasi-Yadkori, D. Pál, Cs. Szepesvári, Improved Algorithms for Linear Stochastic Bandits, NeurIPS 2011. https://arxiv.org/abs/1102.2670
Multi-armed Bandit Allocation Indices I: The Gittins Index, Optimal Stopping and MonotonicityTextbook
Motivation
A decision-maker has n projects, each a Markov reward process, and at every decision time may advance exactly one of them; the others stay frozen. Which project to advance so as to maximize the expected total discounted reward? Posed as a dynamic program the problem has a state space that is the product of the n state spaces, and the size of that product defeats every general method. The index theorem of Gittins and Jones (1974) says the dynamic program is solved exactly by an index policy: there is a real number ν(B,x), computable for each bandit process B from its own data and its own current state x, such that always advancing a process of greatest index is optimal. Chapter 2 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), introduces the index, proves the theorem three times, and works out the properties of the index that the rest of the book, from jobs and superprocesses to restless bandits, is built on: which stopping time attains it, how it is computed, how it moves with the discount factor, and when it collapses to the myopic rule.
The index theorem itself is already on the platform, proved, as BanditAlgorithm.gittins_index_theorem in the Bandit Algorithms series (Lattimore and Szepesvári, Theorem 35.9). This mission cites it and formalizes what Chapter 2 establishes around it.
Setting
A bandit processB (§2.3–2.4) is a Markov reward process on a countable state space E: transition probabilities P(y∣x), a bounded reward r(x) received each time the continuation control is applied in state x, and a discount factor a∈(0,1); the freeze control leaves the state unchanged and yields nothing. The law of the process started at x is Px and x(t) is its state at process time t=0,1,2,…. A stopping timeτ is a past-measurable rule for switching from continuation to freezing, taking values in {1,2,…}∪{∞}. For such τ, Rτ(B,x)=Ex[∑t<τatr(x(t))] is the expected discounted reward and Wτ(B,x)=Ex[∑t<τat] the expected discounted time; their ratio ντ(B,x) (2.7) is the equivalent constant reward rate of that portion of B. The Gittins index is
ν(B,x)=τ>0supWτ(B,x)Rτ(B,x)(2.6)
and, equivalently, the fair charge (2.5): the greatest rent λ per period for which continuing B for one or more periods, paying λ each period, can be done without expected loss. A simple family of alternative bandit processes (SFABP) is n such processes with a common discount factor, one of which is continued at each decision time; an index policy continues a process of greatest index. In the Lean development the single-arm model is the platform's (GittinsIndex): the chain law is built by the Ionescu–Tulcea construction, stopping times are adapted N∪{∞}-valued maps on trajectories, and gittinsIndex P r a x is (2.6).
Formalization targets
Goal: Lemma 2.2, the optimal stopping set
The supremum in (2.6) is attained. For the initial state ξ, the attaining stopping rule may be taken to be "stop at the first time t≥1 at which the state lies in Σ0" for any set Σ0 with
{x:ν(B,x)<ν(B,ξ)}⊆Σ0⊆{x:ν(B,x)≤ν(B,ξ)},
and every such rule has ντ(B,ξ)=ν(B,ξ).
Milestones
Theorem 2.1 as a reference to the proved platform theorem; Eq. (2.5), the fair-charge characterization of the index; the restart-in-state formulation of §2.6.4 as the convergence of the Katehakis–Veinott value iteration; Theorem 2.3, monotonicity in the discount factor; Lemma 2.4, the interchange of two bandit portions; Propositions 2.5–2.8, the monotone-index cases in which the index is the immediate reward, or is attained only after the first step, or only at τ=∞.
Significance
Lemma 2.2 is the working form of the index: it turns the supremum over all stopping times into a specific rule, the first time the index falls below its starting value, and it is what the interchange proof of §2.7, the modified-forwards-induction policies of §2.6.6, the monotone-index propositions of §2.11 and the treatment of jobs in Chapter 3 all use. The fair-charge form (2.5) is the prevailing-charge proof of the theorem (Weber 1992) and the interpretation that carries over to superprocesses and restless bandits. The restart formulation is how indices are computed in practice (Katehakis and Veinott 1987), and Theorem 2.3 is the first of the comparative statics used throughout Chapters 7 and 8. Lemma 2.4 is the elementary inequality behind the original proof of Gittins and Jones.
Of these, only the index theorem has a machine-checked proof today. Formalizing the rest gives the platform the index as a usable object: a characterization of the optimal stopping rule, a convergent algorithm for it, and the monotonicity facts, all stated against the existing model so that every later mission of this series and every future use of the L&S model can build on them.
Difficulty
The obvious first move for Lemma 2.2, "take the stopping time that achieves the supremum", is what has to be proved: the supremum is over an uncountable family, and attainment comes from the optimal stopping problem with charge λ=ν(B,ξ), whose value function satisfies φ(x)=max{0,r(x)−λ+aE[φ(x(1))∣x(0)=x]}, together with the fact that its optimal stopping set is characterized by the strict and non-strict inequalities λ>ν(B,x) and λ≥ν(B,x). That last step is the content: it identifies the local decision "stop or continue" with a comparison of indices, which is why any set between the two level sets works. On the platform's model this requires the dynamic-programming theory of discounted optimal stopping on a countable space (Theorem 2.10 of the book), the identification of fairChargeProfit with that value function, and the strong Markov property of markovChainMeasure at a trajectory stopping time. Theorem 2.3 needs randomized stopping times (a geometric kill) and the fact that they do not enlarge the supremum. The restart iteration is monotone and bounded but its operator is not a contraction in the restart value, so its limit has to be identified with the restart problem's value directly; that value is max(0,ν/(1−a)), not ν/(1−a), because restarting forever is free.
Formalization scope
The state space is a countable type with measurable singletons, so every subset is measurable; rewards are bounded; a∈(0,1). The chain law, stopping times, the discounted stopped sums and the index are the platform's, unchanged. Expectations are Bochner integrals; with bounded rewards they are finite and no total-function default value enters. IsPositiveStoppingTime fixes τ≥1 everywhere, so Wτ≥1 and the ratio (2.7) is a genuine quotient. The stopping rule of Lemma 2.2 is the hitting time from time 1 of a set, with ∞ when the set is never hit. The fair-charge profit is a real supremum over the nonempty bounded family of positive stopping times, and (2.5) is stated with the outer supremum over {λ:profit(λ)≥0}, a nonempty set bounded above. The restart iteration is stated as a limit, with the value max(0,ν(B,ξ)/(1−a)): for a nonnegative index this is the book's ν/(1−a), and the maximum is forced by a one-state example with negative reward. The propositions' hypotheses are almost-sure events under Px, written as events of measure one.
Two trivializing readings are excluded: the index is never taken over all N∪{∞}-valued maps but over adapted stopping times, and the stopping set of the goal is not restricted to the two extreme level sets. Contributions welcome: the optimal-stopping dynamic program on markovChainMeasure (value iteration, the strong Markov property at a stopping time), the equivalence of randomized and non-randomized stopping times for the supremum, and the monotone convergence of the restart iteration.
Selected references
J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 2. doi:10.1002/9780470980033
J. C. Gittins, D. M. Jones, A dynamic allocation index for the sequential design of experiments, in Progress in Statistics (Gani, ed.), North-Holland, 1974.
R. Weber, On the Gittins index for multiarmed bandits, Annals of Applied Probability 2(4), 1992. doi:10.1214/aoap/1177005588
M. N. Katehakis, A. F. Veinott, The multi-armed bandit problem: decomposition and computation, Mathematics of Operations Research 12(2), 1987. doi:10.1287/moor.12.2.262
T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 35. doi:10.1017/9781108571401
Bandit feedback is only one point on a spectrum: a learner might see more than its own loss (full information) or less (a spam filter never learns what happened to mail it deleted). Chapter 37 of Lattimore–Szepesvári studies finite adversarial games G=(L,Φ) where the loss matrix and the feedback matrix are decoupled. The goal theorem is the celebrated classification theorem: every finite partial-monitoring game has minimax regret exactly 0, Θ(n), Θ(n2/3) or Ω(n) — determined by two purely combinatorial conditions, global and local observability, on the game's neighbourhood structure. A single geometric dichotomy thus governs the price of information in every online decision problem with finite actions and feedback.
Bandit Algorithms X: Stochastic Linear Bandits and LinUCBTextbook
When actions are feature vectors and the mean reward is linear — Xt=⟨θ∗,At⟩+ηt — a bandit can generalize across arms: pulling one arm reveals information about all of them. Chapter 19 of Lattimore–Szepesvári carries the optimism principle into this setting: LinUCB (a.k.a. OFUL) plays the action maximizing maxθ∈Ct⟨θ,a⟩ over the confidence ellipsoid Ct of Mission IX. The goal theorem: with probability 1−δ, R^n≤8nβnlogdetV0detVn≤8dnβnlogdλdλ+nL2 — regret O~(dn) independent of the number of actions. The combinatorial engine is the elliptical potential lemma, bounding how many times adaptively chosen directions can be surprising. Chapter 22's phased elimination with G-optimal design (Mission IX) sharpens this to O~(dnlogk) for finite action sets.
Bandit Algorithms IX: Self-Normalized Concentration and Optimal DesignTextbook
Least-squares estimation from adaptively collected data is the statistical heart of linear bandits: the actions At depend on past noise, so classical fixed-design theory does not apply. Chapter 20 of Lattimore–Szepesvári resolves this with the method of mixtures: the process Mt(x)=exp(⟨x,St⟩−21∥x∥Vt(λ)2) is a supermartingale, and integrating over a Gaussian mixture yields the self-normalized bound — the goal theorem — P(∃t:∥St∥Vt(λ)−12≥2logδ1+logλddetVt(λ))≤δ, valid uniformly over all times. The resulting confidence ellipsoids for the regularized least-squares estimator (Abbasi-Yadkori et al.) calibrate every algorithm of Mission X. The mission also formalizes the Kiefer–Wolfowitz theorem of Chapter 21: G-optimal and D-optimal experimental designs coincide, with optimal value exactly d — the classical equivalence theorem of optimal design theory.
Multi-armed Bandit Allocation Indices VI: Bandit Sampling Processes, Favourable Priors and Invariance of the IndexTextbook
Motivation
The bandit processes that motivated the index theorem are sampling processes: an arm is a population from which one draws i.i.d. observations whose distribution has an unknown parameter, and each draw both earns something and teaches something. Chapter 7 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), develops the theory of such processes in the Bayesian setting: the state of the process is the current posterior for the parameter, continuing it samples the next value from the predictive distribution and moves to the new posterior. When the observations are themselves the rewards one has a reward process, the classical Bayesian multi-armed bandit; when the aim is to find as quickly as possible an individual whose measurement reaches a target T (a compound active enough to warrant further testing, in the drug-screening problem from which the index theorem came) one has a target process, which is a job that completes when the target is reached. Two questions organize the chapter. When can the index be written down without any optimization, and when do symmetries of the model reduce the index to a function of fewer variables? The first is answered by the notion of a favourable prior (Section 7.3): if no run of observations below the target can raise the current probability of success, then the index is that probability, exactly, by Proposition 2.7. The second is answered by the invariance theorems of Section 7.4: a location parameter with a conjugate prior gives ν(xˉ,n)=xˉ+ν(0,n), a scale parameter gives ν(xˉ,n)=xˉν(1,n), and for target processes the target can be absorbed into the state, ν(xˉ,n,T)=ν(xˉ−T,n,0). These identities are what make the tables of Chapter 8 one-dimensional.
Setting
A sampling model consists of a likelihood f(⋅∣θ), a family of priors π(⋅∣p) on the parameter indexed by the parameters p of a conjugate family, and the Bayes update p↦px of those parameters after observing x; the family is conjugate if the posterior of π(⋅∣p) given X=x is π(⋅∣px). The predictive distribution is f(⋅∣p)=∫f(⋅∣θ)π(dθ∣p). The reward process moves from p to px with x∼f(⋅∣p) and earns r(p)=∫xf(x∣p)dx. The target process with target T moves to the completion state C if x≥T and to px otherwise, earning the current probability of success r(p)=f([T,∞)∣p), and 0 in C. A state p is favourable if r(px1⋯xm)≤r(p) for every finite sequence of observations xi<T. For the invariance theorems the parameters are (xˉ,n) with the update ((nxˉ+x)/(n+1),n+1); μ is a location parameter of the likelihood if f(⋅∣μ+c) is f(⋅∣μ) shifted by c, and xˉ is a location parameter of the prior family if π(⋅∣xˉ+c,n) is π(⋅∣xˉ,n) shifted by c; scale parameters are defined with x↦bx, b>0. The Gittins index is that of the Bandit Algorithms model on these chains.
Formalization targets
Goal: Theorem 7.9 (in the form of Corollary 7.10)
If μ is a location parameter of a reward process with a conjugate prior family in which xˉ is a location parameter and the parameters update as the sample mean and count, then for every n>0
r(xˉ+c,n)=r(xˉ,n)+candν(xˉ,n)=xˉ+ν(0,n),
under the standing assumptions that the observations have a mean and the discounted rewards of the chain are integrable.
Milestones
Proposition 7.4 (favourable state: ν=r); Example 7.5 (Bernoulli target process, ν(α,β)=α/(α+β)); Example 7.6 (normal target process with known variance, ν(xˉ,n)=Φ(xˉ(1+n−1)−1/2) for xˉ≥0); Theorem 7.11 (scale parameter: ν(xˉ,n)=xˉν(1,n)); Theorem 7.17 (target process with a location parameter: ν(xˉ,n,T)=ν(xˉ−T,n,0)).
Significance
Theorem 7.9 and its companions are the reason the Gittins index of the normal reward process is tabulated as a function of n alone and that of the exponential process as a function of n and one ratio; every computational method of Chapter 8 starts by reducing the state space with them. Proposition 7.4 is the source of every closed-form index in the book: it identifies the states in which sampling for information is worthless, so that the index collapses to the immediate expected reward, and Examples 7.5 and 7.6 show that for the Bernoulli target process this is every state and for the normal target process every state with a nonnegative posterior mean. The formalization gives the platform its first Bayesian sampling-process model, in which the state is a posterior and conjugacy is stated through the posterior kernel of the likelihood, and its first index identities on unbounded-reward chains, which is where the integrability assumptions of the Bandit Algorithms model do real work.
None of this is machine-checked. The invariance theorems are stated in the proper-prior form of the corollaries, with the model's symmetry as hypotheses, so that they apply to any conjugate family with the stated structure rather than to a particular density.
Difficulty
The invariance theorems require showing that the chain of parameters from the shifted (scaled) state is the image of the chain from the original state under the shift (scaling) of trajectories, which is an equivariance of the Ionescu–Tulcea construction with respect to a measurable bijection commuting with the kernel; that stopping times are carried to stopping times; that the discounted reward of a stopping time shifts by c times the discounted time; and that the supremum of a nonempty bounded set of reals shifts and scales accordingly. Boundedness of the set of ratios is where the integrability assumption enters. Proposition 7.4 is the chain-level statement that all rewards along every trajectory from a favourable state are at most r(p), which needs an induction on the trajectory law of the target chain, followed by the argument of Proposition 2.7. Example 7.6 needs the monotonicity of xˉm(1+1/(n+m))−1/2 in the observations below the target, a small inequality, plus the Gaussian probability of a half-line as the current probability of success; Example 7.5 needs only that α/(α+β+m) decreases.
Formalization scope
The sampling model is a structure with Markov likelihood and prior kernels and a jointly measurable update; the predictive distribution is the kernel composition; conjugacy is an almost-everywhere identity between Mathlib's posterior of the likelihood with respect to the prior and the prior at the updated parameters, and is carried as a hypothesis of the invariance theorems and of Proposition 7.4 so that their subject is the Bayesian process. For the parameters (xˉ,n) it is required on n>0 only (IsConjugateOn): a proper prior has n>0, and conjugacy at every (xˉ,n)∈R2 is impossible with a location parameter, since at n=−1 the update divides by zero and sends every observation to one state, which made the first draft's location theorems vacuous. The chains are built with Kernel.map of product kernels, so their measurability is structural, and the target process lives on P ⊕ Unit with the completion state absorbing. The book's improper priors are replaced by proper conjugate families with the location or scale structure of Corollaries 7.10 and 7.12, as those corollaries do; the discrete-time correction factor of Section 2.8 is not applied since it cancels in every identity stated. The two examples are built directly from a uniform or Gaussian seed with the transition probabilities the book computes (the beta and normal posterior computations of Exercise 7.1 are not formalized). Hypotheses: a∈(0,1); integrable observations and L&S Assumption 35.6 for the reward processes; n>0 for the invariance theorems and xˉ>0 for the scale theorem; α,β>0; xˉ≥0 and n>0 for the normal example.
Trivializing readings are excluded: the indices are the genuine suprema of the Bandit Algorithms definition with integrable rewards, the update rule is the book's and not a free parameter, and the favourability condition ranges over all finite observation sequences. Welcome contributions: the equivariance of the trajectory measure under a state bijection commuting with the kernel, the transport of stopping times, and the reward bound along the target chain from a favourable state.
Selected references
J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 7. doi:10.1002/9780470980033
J. C. Gittins, D. M. Jones, A dynamic allocation index for the sequential design of experiments, in Progress in Statistics (J. Gani, ed.), North-Holland, 1974.
D. M. Jones, Search Procedures for Industrial Chemical Research, PhD thesis, University of Wales, 1975.
H. Raiffa, R. Schlaifer, Applied Statistical Decision Theory, Harvard University Press, 1961.
T. S. Ferguson, Mathematical Statistics: A Decision Theoretic Approach, Academic Press, 1967.
T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapters 34–35. doi:10.1017/9781108571401
Multi-armed Bandit Allocation Indices V: Restless Bandits, Indexability and Whittle Indices for Monotone ModelsTextbook
Motivation
Every proof of the index theorem in Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), uses the fact that a bandit not being processed is frozen. Chapter 6 drops that: Whittle's restless bandits evolve under the passive action too, by a different law, and m of n must be active at every time. The problem is PSPACE-hard in general, so Whittle proposed a heuristic built from a Lagrangian relaxation: replace the hard constraint by a subsidy W paid whenever a bandit is passive, solve the resulting single-bandit average-reward problem, and read off, for each state, the least subsidy W(x) at which the passive action becomes optimal. When the set of states where passivity is optimal grows monotonically with W, the bandit is indexable and W(x) is its Whittle index; the Whittle index policy activates the m bandits of largest index. It reduces to the Gittins index policy when the passive action freezes, it is asymptotically optimal as n grows under a fluid-stability condition (Weber and Weiss), and it has become the standard heuristic for sensor management, opportunistic channel access, maintenance and queueing control. The price is that indexability must be established model by model. Section 6.5 shows how easy this is when the single-bandit problem is solved by a monotone policy, on two bi-directional models: the spinning plates asset, which improves under investment and deteriorates when neglected, and the vigour bandit of Whittle's Ehrenfest project, which tires when worked and recovers when rested.
Setting
A restless bandit is a Markov decision process with two actions, active (u=1) and passive (u=0), each with its own transition kernel and reward. Under a deterministic stationary Markov policy g with passive subsidy W the reward in state x is r(x,g(x))+W(1−g(x)), and the average reward from x is the Cesàro limit of the expected rewards. The optimal average reward g(W) is the supremum over such policies and initial states; a policy is optimal if it attains g(W) from every initial state; E0(W) is the set of states in which some optimal policy is passive; the bandit is indexable if E0(W) is nondecreasing in W; and W(x)=inf{W:x∈E0(W)}.
The spinning plates asset lives on {1,…,k}: active moves x→x+1 at rate λ(x), passive moves x→x−1 at rate μ(x), λ(k)=μ(1)=0, and r(x) is earned under both actions, r increasing. Uniformized so that rates are at most one, it is a discrete-time bandit whose kernels move with the rate's probability and otherwise stay. The monotone policy (y) is passive exactly on {x≥y}; under it the asset alternates between y−1 and y, spending the fraction ϕ(y)=λ(y−1)/(λ(y−1)+μ(y)) of its time at y, so its average reward is Wϕ(y)+R(y) with R(y)=r(y)ϕ(y)+r(y−1)(1−ϕ(y)), and W∗(x)=(R(x+1)−R(x))/(ϕ(x)−ϕ(x+1)). The vigour bandit is the mirror image: active moves down at rate ν(x) and earns r(x), passive moves up at rate ρ(x) and earns nothing, ψ(y)=ν(y)/(ν(y)+ρ(y−1)), and W∗∗(x)=(r(x)(1−ψ(x))−r(x+1)(1−ψ(x+1)))/(ψ(x+1)−ψ(x)).
Formalization targets
Goal: Theorem 6.4
For the spinning plates asset: (i) if ϕ is strictly decreasing over the thresholds 1≤y≤k+1, the asset is indexable; (ii) if additionally W∗ is strictly decreasing over the states, the Whittle index is
W(x)=W∗(x)=ϕ(x)−ϕ(x+1)R(x+1)−R(x),1≤x≤k.
Milestones
Eqs. (6.9)–(6.10): the monotone policy (y) earns Wϕ(y)+R(y) from every initial state and g(W)=maxy[Wϕ(y)+R(y)], because a monotone policy always achieves g(W); Theorem 6.5, the same two statements for the vigour bandit with ψ increasing and W∗∗ increasing.
Significance
Theorem 6.4 is the chapter's template for proving indexability: the single-bandit value g(W) is the upper envelope of finitely many lines Wϕ(y)+R(y) whose slopes decrease in the threshold, so the optimal threshold moves monotonically with the subsidy and the hinge points of the envelope are the indices. The same argument gives Theorem 6.5, the admission-control indices of Section 6.7, and the marginal productivity indices of Niño-Mora; it is the reason Whittle indices are computable in closed form for bi-directional models. Its formalization establishes, on the platform, the first restless-bandit model with a proved index, and the general notions of passive set, indexability and Whittle index that every later restless-bandit statement will use.
None of this is machine-checked. The average-reward optimality notion is stated without the DP equation (6.6), through optimality from every initial state, which is what the equation's solution encodes on a finite state space and avoids the relative value function altogether.
Difficulty
The proof in the book is two paragraphs, but it stands on the reduction to monotone policies, which is only sketched: every deterministic stationary policy, from every initial state, drives the asset into an absorbing endpoint or a two-state cycle {z−1,z} whose average reward is that of the monotone policy (z), so no policy beats the best monotone one and the passive set under an optimal-from-everywhere policy is exactly {x≥x(W)} for the smallest maximizing threshold. Formalizing this needs the average reward of a finite Markov chain as a limit determined by the stationary distribution of the recurrent class reached, for the two-point kernels of the model, and a case analysis of policies as {0,1}-strings. The envelope argument then needs that the smallest maximizer of maxy[Wϕ(y)+R(y)] is nonincreasing in W when ϕ is strictly decreasing, and that with W∗ strictly decreasing the maximizer is ≤x exactly when W≥W∗(x). Theorem 6.5 is the same with the roles of up and down exchanged. Nothing in Mathlib computes Cesàro limits of finite Markov chains.
Formalization scope
Restless bandits are the two-action DecisionProcesses of the superprocess module; average reward is a real limsup of Cesàro means of Bochner integrals over the chain law of the Bandit Algorithms model under the stationary kernel; the optimal average reward is a supremum over the finite type of deterministic stationary Markov policies and the finite state space, bounded by the reward bound. Both models are on Fin k with the book's states shifted down by one, kernels driftKernel p f that move to f x with probability p x, and the boundary conventions of ϕ and ψ (the book's "convenient positive values") replaced by their values 1,0 and 0,1 at the two extreme thresholds; the model assumptions λ(k)=μ(1)=0, ν(1)=ρ(k)=0, rates in [0,1], and r increasing and nonnegative are hypotheses. Theorem 6.5's "increasing" is read as strictly increasing, as in Theorem 6.4, since a nonstrict ψ admits zero interior rates for which the monotone reduction fails. The milestone (6.9) requires k≥1 and positive interior rates, which Theorem 6.4's hypothesis (i) implies.
Trivializing readings are excluded: indexability is monotonicity of the passive set over all real subsidies, the passive set is defined through policies optimal from every initial state, and the index identity is for every state. Welcome contributions: the average reward of a two-state cycle, the reduction of an arbitrary {0,1}-policy to a monotone one, and the envelope lemma for lines with decreasing slopes.
Selected references
J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 6. doi:10.1002/9780470980033
P. Whittle, Restless bandits: activity allocation in a changing world, Journal of Applied Probability 25(A), 1988. doi:10.2307/3214163
R. R. Weber, G. Weiss, On an index policy for restless bandits, Journal of Applied Probability 27(3), 1990. doi:10.2307/3214547
K. D. Glazebrook, C. Kirkbride, D. Ruiz-Hernandez, Spinning plates and squad systems: policies for bi-directional restless bandits, Advances in Applied Probability 38(1), 2006. doi:10.1239/aap/1143936141
J. Niño-Mora, Restless bandits, partial conservation laws and indexability, Advances in Applied Probability 33(1), 2001. doi:10.1017/S0001867800010661
C. H. Papadimitriou, J. N. Tsitsiklis, The complexity of optimal queueing network control, Mathematics of Operations Research 24(2), 1999. doi:10.1287/moor.24.2.293
Multi-armed Bandit Allocation Indices IV: The Achievable Region, Generalized Conservation Laws and the Adaptive Greedy AlgorithmTextbook
Motivation
Chapter 5 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), presents the achievable region methodology of Tsoucas, Bertsimas and Niño-Mora, Glazebrook and Garbe, and Dacre, Glazebrook and Niño-Mora: instead of arguing about policies, one argues about the set of performance vectors they can produce. For a multi-armed bandit the natural performance of a policy is the vector of discounted numbers of times each state is continued; the expected return is linear in it; and the set of achievable performances turns out to be a polytope cut out by conservation laws, one inequality per subset of states, with equality exactly for the priority policies that put that subset last. Optimizing a linear objective over a polytope is a linear program, its dual is solved by an adaptive greedy algorithm, and the primal solution is the performance of a priority policy whose priorities are the algorithm's outputs, the Gittins indices. This gives yet another proof of the index theorem (Section 5.3) and, more importantly, a definition, generalized conservation laws (Section 5.4), of the class of systems for which the same argument works: branching bandits, multi-class queues, job scheduling with discounted rewards, systems with imposed priority classes. The chapter's main result, Theorem 5.5, is the statement that every such system is solved by an index policy.
Setting
There are N job types E={1,…,N}. A policy π has a performancexπ∈R+N, a vector of expectations; a permutation σ of E defines the permutation policy giving σN highest and σ1 lowest priority, and Sk={σ1,…,σk} is the set of the k lowest-priority types. The system satisfies GCL(1) if there are a base function b:2E→R+ and a matrix A=(AiS), positive on S and zero off it, such that for every policy
i∈S∑AiSxiπ≥b(S)(S⊆E),i∈E∑AiExiπ=b(E),
with equality in the first for every permutation policy whose ∣S∣ lowest-priority types are S. GCL(2) reverses the inequality. The adaptive greedy algorithmAG(A,r) picks iN maximizing ri/AiE, sets yˉE to the maximum, removes iN, and repeats with the adjusted rewards ri−∑j≥kAiSjyˉSj divided by AiSk−1; its outputs are the order i1,…,iN, the dual variables yˉSk and the indices νik=∑j≥kyˉSj.
For the SFABP of Section 5.3, n identical bandit processes on E with kernel P and discount factor a in the model of the Bandit Algorithms series, xiπ=Eπ∑tatIi(t) is the discounted number of continuations of a bandit in state i, AiS=E[1+a+⋯+aTiS−1] is the discounted return time to S from i∈S, and b(S) is the minimal cost ∑i∈SAiSxiπ, namely (1−a)−1E[aτ] with τ the number of continuations needed to bring every bandit into S.
Formalization targets
Goal: Theorem 5.5
For a GCL(1) system whose achievable region is convex, and any reward vector r: the achievable region is the polytope
its extreme points are performances of permutation policies; AG(A,r) has an output; and for every output the permutation policy in the order it finds, the Gittins index policy, maximizes ∑irixiπ over all policies.
Milestones
Lemma 5.1 (the SFABP satisfies the conservation laws, with equality for policies giving priority to states outside S); the identification on p. 123 of the adaptive greedy indices of a SFABP with the Gittins indices, together with their monotonicity along the order found; Theorem 5.10, the GCL(2) counterpart of the goal for cost minimization.
Significance
Theorem 5.5 is the index theorem in its most general form of this kind: it says nothing about Markov chains, only that performances are expectations, objectives are linear and conservation laws hold, and it delivers both the optimal policy and the algorithm that computes its priorities in polynomial time in the number of job types. It is the theorem behind the index results for branching bandits and Klimov's multi-class queue and behind the suboptimality bounds of Sections 5.5 and 5.7, all of which are calculations on the polytope. Lemma 5.1 and the p. 123 identification are what tie the abstract theorem to the Gittins index: they show that the multi-armed bandit is a GCL(1) system and that the priorities the algorithm produces are the same indices as Chapters 2 to 4 define through stopping times.
None of these is machine-checked. Formalizing Theorem 5.5 puts an LP-duality index theorem on the platform in a form any system can instantiate by verifying its conservation laws; formalizing Lemma 5.1 relates the Bandit Algorithms run law to the single-chain return times, which is the first conservation law on that model; and the p. 123 theorem gives an algorithmic characterization of the Gittins index on finite chains, distinct from the restart and largest-remaining-index characterizations of Chapter 2.
Difficulty
The goal's optimality clause is weak LP duality once one shows that the greedy dual variables are nonpositive except yˉE and satisfy the dual constraints with equality, which is a finite induction on the stages; the extreme-point clause needs that every vertex of a polyhedron is the unique maximizer of some linear functional, and the region clause that a compact convex set is the convex hull of its extreme points (Krein–Milman in finite dimension, or the polyhedral fact directly). None of this is in Mathlib in the required form. Lemma 5.1 is probabilistic: the lower bound requires the strong Markov property of the continued bandit under an arbitrary past-measurable policy, a pathwise accounting of the discounted periods paid for by each continuation from S, and the observation that at most τ slots can be spent on bandits that have never been in S; the equality for priority policies requires that these policies use exactly those slots first and then tile the future with return excursions, and the product form of b(S) requires independence of the bandits' process-time trajectories under the run law, which is built decision time by decision time rather than as a product. The p. 123 theorem is the computation (5.13) to (5.14) combined with the optimal-stopping characterization of Chapter 2 for the stop sets {i1,…,ik−2}, which lie between {ν<ν(ik−1)} and {ν≤ν(ik−1)}; ties make the induction delicate, and the statement is claimed for every tie-breaking.
Formalization scope
GCL(1) and GCL(2) systems are structures over an arbitrary policy type: performance, base function, matrix, permutation policies and the three laws are fields, so the theorems are statements about finite-dimensional data and the platform's proof needs no probability. The adaptive greedy algorithm is specified relationally, as the set of its possible outputs with arbitrary tie-breaking, and the conclusion holds for each of them; existence of an output is asserted separately. The optimality clause is stated as a comparison with every policy rather than as a real supremum. The hypothesis that the achievable region is convex is explicit: the book's argument from extreme points to the whole polytope uses randomization of policies, and without it the region of a system with only its permutation policies is finite. The SFABP items use n identical bandits on Fin N in the Bandit Algorithms model, the coefficients AiS through Mission I's stoppedTime at the return time, and b(S) in the product form (1−a)−1∏j:kj∈/SE[aTkjS], which is the minimal cost the argument on p. 120 establishes; the book prints a sum, which is 0 when all bandits start in S where the minimal cost is 1/(1−a). Discount factors are in (0,1) throughout.
Trivializing readings are excluded: AiS>0 for i∈S is part of the structure and of Lemma 5.1's conclusion, the polytope equations are over all subsets, and the index clause quantifies over every greedy output. Welcome contributions: the nonpositivity and dual feasibility of the greedy variables, the vertex-exposure lemma for polyhedra, and the product decomposition of the run law of identical bandits.
Selected references
J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 5. doi:10.1002/9780470980033
D. Bertsimas, J. Niño-Mora, Conservation laws, extended polymatroids and multiarmed bandit problems; a polyhedral approach to indexable systems, Mathematics of Operations Research 21(2), 1996. doi:10.1287/moor.21.2.257
P. Tsoucas, The region of achievable performance in a model of Klimov, IBM Research Report RC16543, 1991.
E. G. Coffman, I. Mitrani, A characterization of waiting time performance realizable by single-server queues, Operations Research 28(3), 1980. doi:10.1287/opre.28.3.810
K. D. Glazebrook, R. Garbe, Almost optimal policies for stochastic systems which almost satisfy conservation laws, Annals of Operations Research 92, 1999. doi:10.1023/A:1018992306696
T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 35. doi:10.1017/9781108571401
Introduction to Multi-Armed Bandits XI: Bandits and Agents, Incentivized Exploration via Hidden ExplorationTextbook
Motivation
A recommendation system learns from the users it serves: the diner who tries a restaurant produces the review the next diner reads. Each user would rather exploit what is already known than explore for the benefit of those who come later, so a population of self-interested agents under-explores, and an alternative that looks bad on sparse early evidence may never be tried again even when it is the best. Chapter 11 of Slivkins, Introduction to Multi-Armed Bandits (arXiv:1904.07272), treats incentivized exploration: a principal who cannot force the agents but can recommend, and who, because it aggregates what earlier agents observed, knows more than any one of them. The question is whether recommendations alone can induce enough exploration to learn as fast as an ordinary bandit algorithm. The model is that of Kremer, Mansour and Perry (JPE 2014) and the results are those of Mansour, Slivkins and Syrgkanis (EC 2015, Operations Research 2020), specialized to two arms; the single-round problem is Bayesian persuasion in the sense of Kamenica and Gentzkow (AER 2011).
Setting
There are K arms and T rounds. A mean reward vector μ∈[0,1]K is drawn from a known priorP, and each pull of arm a yields a reward drawn from a known family Dμa with mean μa. In round t the principal recommends an arm rect; agent t, who knows the prior, the family, the algorithm and the round but not the past, sees only rect, chooses at, collects rt∼Dμat and leaves; the principal observes (at,rt). The chapter works with two arms, ordered so that the prior means satisfy μ10≥μ20, with a prior of finite support and finitely many reward values.
An algorithm is Bayesian incentive-compatible (BIC, Definition 11.4) if following its recommendation is in every agent's interest given what the agent knows: for every round t and arms a=a′ with Pr[rect=a,Et−1]>0,
E[μa−μa′∣rect=a,Et−1]≥0,(11.1)
where Et−1 is the event that all previous agents complied. A BIC algorithm is then an ordinary bandit algorithm whose recommendations are followed, and the run has the law of the Bayesian bandit of Chapter 3. Two contrasting policies frame the chapter. GREEDY reveals the history and lets agents exploit, at∈argmaxaE[μa∣Ht] (11.2); it is BIC and it fails. HiddenExploration (Algorithm 11.1) hides a little exploration in a lot of exploitation: on a signal sig, with probability ε it recommends a target arm atrg(sig), otherwise the arm maximizing E[μa∣sig], ties to arm 1. Its posterior gap is G=E[μ2−μ1∣sig]. RepeatedHE (Algorithm 11.2) runs it round after round with an arbitrary bandit algorithm ALG as the target: N0 initial rounds recommend arm 1; afterwards, with probability ε the round is an exploration round in which ALG chooses (and is fed the reward), and otherwise the exploitation branch recommends minargmaxaE[μa∣St], where St is the data of all exploration rounds so far (11.10). The quantity that governs everything is G1,n=E[μ2−μ1∣S1,n] (11.11), the posterior gap after n samples of arm 1, and Property (11.12), that Pr[G1,n>0]>0 for some n: arm 2 can appear better after enough samples of arm 1.
Formalization targets
Goal: Theorem 11.15
RepeatedHE with exploration probability ε>0 and N0 initial samples of arm 1 is BIC as long as
ε<31E[G⋅1{G>0}],G=GN0+1=E[μ2−μ1∣S1,N0],
for any bandit algorithm ALG and any horizon. The threshold depends on the prior alone.
Milestones
Theorem 11.7 (GREEDY never chooses arm 2 with probability at least μ10−μ20) and Corollary 11.8 (linear Bayesian regret of GREEDY under independent priors); Lemma 11.10 (HiddenExploration is BIC when ε≤31E[G1{G>0}]) with Claim 11.12 (the arm-2 side of the constraint suffices); Corollary 11.14 (RepeatedHE is BIC under the round-by-round condition); Theorem 11.19 (without Property (11.12) no BIC algorithm ever plays arm 2, ties to arm 1).
Significance
The results say when exploration can be incentivized at all and how. Theorem 11.7 shows that revealing everything is not a solution: the greedy dynamics gets stuck on arm 1 with a probability that does not shrink with T, and Corollary 11.8 turns that into Ω(T) Bayesian regret. Theorem 11.15 shows that a recommendation-only principal can induce any amount of exploration it wants, with ALG arbitrary, at a per-round rate ε fixed by the prior; Theorem 11.17 (stated with a proof sketch, and omitted here) then transfers ALG's regret to RepeatedHE up to the prior-dependent factors N0 and 1/ε, so O~(T) regret is attainable subject to incentives. Theorem 11.19 closes the picture: Property (11.12) is necessary as well as sufficient. Together they characterize which priors admit incentivized exploration and give an algorithm that works for all of them.
Nothing of this is machine-checked. The mission adds to the Bayesian layer of mission III (prior, posterior by Bayes' rule, Bayesian regret) the BIC constraint on a joint law, GREEDY as a policy, the single-round HiddenExploration on an abstract finite signal, and the law of RepeatedHE; all of it is reusable for the K-arm and the "explore all explorable arms" extensions of the literature review.
Difficulty
Theorem 11.7 is a martingale argument: the posterior gap along the history is a Doob martingale, the first round in which arm 2 is chosen is a bounded stopping time, and optional stopping gives E[Zτ]=μ10−μ20; all of this has to be set up on the joint law of (μ,HT) of mission III, where the posterior is defined by Bayes' rule and the identification with a conditional expectation is itself a theorem (posterior_eq_condProb). Lemma 11.10 is the heart of the chapter and is not a computation about rec: it works with F(E)=E[G1E], splits along the two branches, uses that the exploitation branch recommends arm 2 exactly when G>0, and closes with F(G>0)+F(G<0)=E[μ2−μ1]≤0; the only place where the analysis uses that both branches are functions of the signal is the step E[μ2−μ1∣rec=2]=E[G∣rec=2], and a formalization has to make that step explicit. Theorem 11.15 requires seeing each later round of RepeatedHE as a HiddenExploration with signal St, where ALG's choice is a randomized function of St, and then the monotonicity of E[Gt1{Gt>0}] in t, a two-line consequence of St+1 determining St that presupposes the posterior given St is the Bayes posterior of the exploration data alone, which is true because the exploration decisions do not depend on μ given that data. Corollary 11.8 needs the independence of the event "μ1<1−2α and arm 2 is never chosen" from μ2. Theorem 11.19 is an induction in which the inductive hypothesis is a probability-zero statement about all earlier rounds.
Formalization scope
Arms are Fin 2, the book's arm 1 being index 0; rounds are Fin T. The prior is a probability measure on mean vectors supported on a finite set F⊆[0,1]2, with μ10≥μ20 as a hypothesis; the reward family is mission III's RewardFamily (finitely many values, mean ν for ν∈[0,1]). BIC is defined on a joint law of (μ,record) of the run in which every agent complies, with the recommendation of each round read off the record; the compliance event Et−1 of (11.1) is the sure event of that law, which is the standard reading of "the agents believe all previous agents complied". For a bandit policy the law is mission III's jointMeasure. Conditional expectations are written as finite sums over F, so there are no integrals and no integrability side conditions; a posterior mean off the support is a junk 0 that never enters a theorem. GREEDY allows arbitrary tie-breaking; HiddenExploration's exploitation branch breaks ties toward arm 1 as Algorithm 11.1 does; the tie convention of Theorem 11.19 is the strict form of BIC for arm 2. The law of RepeatedHE is an explicit finitely supported measure, μ and record weighted by the prior times the product of the round probabilities (initial rounds forced to arm 1, then the ε-coin, ALG's kernel on its own history, or the exploitation arm, then Dμat); it is written this way because ALG is fed a history of variable length. Two conditions are stated exactly as printed: Lemma 11.10 with ε≤31E[G1{G>0}] (non-strict, checked at equality) and Theorem 11.15 with the strict inequality.
Trivializations are excluded: ε>0 throughout; the BIC condition is asserted only where the recommendation has positive probability, and the sums in it are over the finite support, so an unsatisfiable hypothesis cannot hide in a measure-zero set. Welcome contributions: the optional-stopping argument on jointMeasure, the identification of explPostMean with the conditional expectation given the exploration data, the Bayes-rule algebra behind Lemma 11.10, and the counting lemmas on heRecords.
Selected references
A. Slivkins, Introduction to Multi-Armed Bandits, Foundations and Trends in Machine Learning 12(1-2), 2019, Chapter 11. arXiv:1904.07272, doi:10.1561/2200000068
I. Kremer, Y. Mansour, M. Perry, Implementing the "Wisdom of the Crowd", Journal of Political Economy 122(5), 2014. doi:10.1086/676597
Y. Mansour, A. Slivkins, V. Syrgkanis, Bayesian Incentive-Compatible Bandit Exploration, Operations Research 68(4), 2020 (EC 2015). doi:10.1287/opre.2019.1919
E. Kamenica, M. Gentzkow, Bayesian Persuasion, American Economic Review 101(6), 2011. doi:10.1257/aer.101.6.2590
M. Sellke, A. Slivkins, The Price of Incentivizing Exploration: A Characterization via Thompson Sampling and Sample Complexity, Operations Research 71(5), 2023. doi:10.1287/opre.2022.2401