Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Probability

1,628 missions · 675 completed

Missions

Open953Completed675All1628
🏆Completed
Operations ResearchStatisticsStochastic Systems·Captain: Shuze Chen

The Markov Chain Central Limit TheoremResearch Paper

Markov chain Monte Carlo turns hard integration problems into long simulations: to estimate an expectation EπfE_\pi fEπ​f one runs a Markov chain with stationary distribution π\piπ and reports the sample average fˉn\bar f_nfˉ​n​. The ergodic theorem guarantees fˉn→Eπf\bar f_n \to E_\pi ffˉ​n​→Eπ​f, but honest error bars require more: a central limit theorem

n(fˉn−Eπf)→dN(0,σf2).\sqrt{n}(\bar f_n - E_\pi f) \to_d N(0, \sigma_f^2).n​(fˉ​n​−Eπ​f)→d​N(0,σf2​).

On general state spaces this is famously delicate - a merely ergodic chain with a square-integrable functional can fail the CLT, so the classical theory trades convergence rates (drift, minorization, geometric or polynomial total-variation rates) and mixing conditions (α\alphaα-, ρ\rhoρ-, φ\varphiφ-mixing) against moment conditions on fff. This mission formalizes G. L. Jones's survey "On the Markov chain central limit theorem" (Probability Surveys, 2004): the drift-condition CLTs of Meyn-Tweedie and Jarner-Roberts, the classical mixing CLTs of Ibragimov-Linnik, Doukhan-Massart-Rio and Billingsley, the characterizations via uniform integrability and boundedness in probability, and their assembly into the summary theorem: six practically checkable regimes - from polynomial ergodicity with bounded functionals to uniform ergodicity with second moments - each of which guarantees the CLT for every initial distribution. The stationarity, total-variation and mixing infrastructure is general state space and reusable well beyond this mission.

154 thms18 active usersReviewed
🏆Completed
Graph TheoryMarkov Chain·Captain: mikedeng1

Geometric Bounds for Eigenvalues of Markov Chains 3: Canonical Paths Give β₁ ≤ 1 − 1/(8η²) via Cheeger's InequalityResearch Paper

Why canonical paths matter

A finite Markov chain moves among states according to transition probabilities. Its second largest eigenvalue measures how slowly some variation in the starting state can disappear. Directly computing that eigenvalue is often difficult when the state space is large. A geometric bound can be more useful: choose a route between each ordered pair of states and measure how much weighted traffic the routes impose on each transition. Diaconis and Stroock present this route-based bound as Proposition 7 of their 1991 paper, following the canonical-path method of Jerrum and Sinclair (Diaconis–Stroock, §3B). It makes a spectral estimate depend on the geometry of chosen routes and the stationary weight of each edge.

The paper's purpose is to compare methods for bounding eigenvalues of reversible chains. Its earlier Poincaré estimate uses weighted path lengths. Proposition 7 instead passes through a bottleneck constant and Cheeger's inequality. These are different summaries of the same chain: one examines a system of paths, and the other examines flow across every cut. The comparison is useful on graphs where paths are easy to choose but the cut minimizing the bottleneck constant is not apparent (Diaconis–Stroock, pp. 52–55).

Finite reversible chains and directed path congestion

Let VVV be a finite state space with at least two states. A transition matrix PPP has entries P(x,y)≥0P(x,y)\geq 0P(x,y)≥0 and each row sums to one. It is irreducible when every state can be reached from every other state in some number of steps. A stationary distribution π\piπ is a nonnegative probability vector satisfying πP=π\pi P=\piπP=π. The chain is reversible when it satisfies detailed balance: π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x)π(x)P(x,y)=π(y)P(y,x). Write Q(x,y)=π(x)P(x,y)Q(x,y)=\pi(x)P(x,y)Q(x,y)=π(x)P(x,y) for the stationary edge flow. These are the standing assumptions of the paper's §1A, restated in §3B (Diaconis–Stroock, pp. 36, 54).

For every distinct ordered pair (x,y)(x,y)(x,y), choose a finite walk γxy\gamma_{xy}γxy​ from xxx to yyy. Every consecutive step (u,v)(u,v)(u,v) of the walk must have Q(u,v)>0Q(u,v)>0Q(u,v)>0. The walk may revisit a vertex or an edge; §3B places no no-repetition condition on these choices. An oriented edge is an ordered pair (u,v)(u,v)(u,v) with positive flow. A walk contains it when one of its consecutive steps traverses it in that direction. The canonical-path congestion of the chosen walk system Γ\GammaΓ is the paper's quantity

η(Γ)=max⁡e:Q(e)>01Q(e)∑x≠y: e∈γxyπ(x)π(y).\eta(\Gamma)=\max_{e:Q(e)>0}\frac{1}{Q(e)} \sum_{x\ne y:\,e\in\gamma_{xy}}\pi(x)\pi(y).η(Γ)=e:Q(e)>0max​Q(e)1​x=y:e∈γxy​∑​π(x)π(y).

The sum assigns weight π(x)π(y)\pi(x)\pi(y)π(x)π(y) to an ordered pair, once for each directed edge that its chosen walk uses. Irreducibility ensures that walks between different states exist. Under the mission's assumptions the positive-flow edge set is nonempty, so the maximum has its ordinary finite meaning (Diaconis–Stroock, (3.2), p. 54).

For a nonempty set S⊆VS\subseteq VS⊆V with π(S)≤12\pi(S)\leq\tfrac12π(S)≤21​, let Q(S×Sc)Q(S\times S^{\mathrm c})Q(S×Sc) be the total stationary flow from SSS to its complement. The bottleneck constant is

h=min⁡∅≠S⊆V, π(S)≤1/2Q(S×Sc)π(S).h=\min_{\varnothing\ne S\subseteq V,\,\pi(S)\leq 1/2} \frac{Q(S\times S^{\mathrm c})}{\pi(S)}.h=∅=S⊆V,π(S)≤1/2min​π(S)Q(S×Sc)​.

The denominator is positive under irreducibility. Write β1\beta_1β1​ for the largest eigenvalue of PPP other than the simple eigenvalue 111, and write λ1=1−β1\lambda_1=1-\beta_1λ1​=1−β1​ for the spectral gap. These conventions match §1A and equation (3.4) (Diaconis–Stroock, pp. 36, 56).

Formalization targets

The mission's goal is Proposition 7, for every valid choice of Γ\GammaΓ:

β1≤1−18η(Γ)2.\beta_1\leq 1-\frac{1}{8\eta(\Gamma)^2}.β1​≤1−8η(Γ)21​.

Its milestones record the source's cut argument: a selected walk from SSS to ScS^{\mathrm c}Sc crosses an oriented cut edge; the total pair weight obeys π(S)π(Sc)≤ηQ(S×Sc)\pi(S)\pi(S^{\mathrm c})\leq\eta Q(S\times S^{\mathrm c})π(S)π(Sc)≤ηQ(S×Sc); and consequently h≥1/(2η)h\geq 1/(2\eta)h≥1/(2η). The final milestone is the already formalized version of the paper's equation (3.4), h2/2≤λ1≤2hh^2/2\leq\lambda_1\leq 2hh2/2≤λ1​≤2h (Diaconis–Stroock, pp. 54, 56).

The companion result is the graph specialization (3.3). For simple random walk on a connected graph G=(V,E)G=(V,E)G=(V,E), let d∗d_*d∗​ be the maximum degree and let bbb be the maximum number of ordered-pair walks traversing an oriented edge. It gives

β1≤1−12(∣E∣d∗2b)2.\beta_1\leq 1-\frac12\left(\frac{|E|}{d_*^2b}\right)^2.β1​≤1−21​(d∗2​b∣E∣​)2.

This statement uses the exact displayed bound of Remark 3.1; the earlier sentence in that remark uses a different normalization of η\etaη (Diaconis–Stroock, p. 55).

What the bound supplies

The proposition converts any usable path system into an explicit spectral estimate. Once a graph or chain supplies paths whose edge loads can be bounded, the formula bounds β1\beta_1β1​ without diagonalizing PPP or finding the set that minimizes hhh. In the graph case, equation (3.3) expresses the estimate using only the edge count, maximum degree, and maximum directed path load. The paper compares that bound with its Poincaré bound on examples including cycles, cubes, and binary trees (Diaconis–Stroock, pp. 55–56).

Equation (3.4) already has a proved formalization in the published MarkovMixing library, under the same finite reversible-chain conventions. This mission adds the paper's path-congestion definition and cut estimates, then states the still-needed Proposition 7 and graph specialization against that library. The result is a reusable connection between a chosen family of walks and a chain's existing bottleneck and spectral objects.

Where the difficulty lies

The route load η\etaη concerns individual directed edges, whereas hhh takes a minimum over all admissible cuts. A single heavily loaded edge does not by itself identify the minimizing cut. The central difficulty is to control, for every cut at once, all weighted ordered pairs whose walks leave it. The direction of a crossing matters: Q(S×Sc)Q(S\times S^{\mathrm c})Q(S×Sc) counts edges directed out of SSS, and η\etaη must count traversals of those same orientations. Omitting an orientation or allowing negative unused edge flow would invalidate the intermediate cut estimate.

There is also a printed discrepancy. Proposition 6 on p. 52 displays a stronger upper bound on β1\beta_1β1​ than the inequality established in §3C. The mission uses equation (3.4), whose lower gap bound yields the 1/(8η2)1/(8\eta^2)1/(8η2) constant actually stated in Proposition 7 (Diaconis–Stroock, pp. 52, 54, 56).

Formalization scope

Lean represents the state space as a finite type, the chain as a real matrix, and the stationary distribution as a real function. It imports the published MarkovMixing definitions of stochasticity, irreducibility, stationarity, detailed balance, QQQ, hhh, β1\beta_1β1​, and simple random walk. A local definition represents each selected walk by its vertex list and derives directed edges from consecutive vertices. The hypothesis 2≤∣V∣2\leq |V|2≤∣V∣ makes β1\beta_1β1​ the paper's second eigenvalue and excludes the one-state junk value of the real supremum used in its definition. Positivity of η\etaη follows from the chain and walk assumptions; it is not inserted as an extra assumption.

The walk system is universally quantified: the theorem concerns every valid selection, rather than one favorable selection. The local definition ignores equal-endpoint choices because they do not cross any SSS-to-ScS^{\mathrm c}Sc cut; §3B mentions all ordered pairs, so this convention gives a slightly stronger target and is stated explicitly. The cut lemma retains stochasticity and nonnegative stationary weights to keep the flow of unused cut edges nonnegative. The graph companion derives its Markov-chain properties from connectedness rather than assuming them.

The shared vertex-list representation and the cut crossing statement can serve later path-based bounds. Contributions toward positivity and finiteness of congestion, the uniform cut estimate, the bottleneck estimate, and the graph specialization all fit the mission. A definition that forces η>0\eta>0η>0 by fiat, or a goal that assumes the bottleneck estimate or Cheeger's inequality, would erase the mathematical content.

Selected references

  • Persi Diaconis and Daniel Stroock, Geometric bounds for eigenvalues of Markov chains, Annals of Applied Probability 1(1):36–61, 1991. DOI.
  • David A. Levin, Yuval Peres, and Elizabeth L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009, Chapter 13. Book PDF.
10 thms6 active usersReviewed
🏆Completed
Markov Chain·Captain: mikedeng1

Geometric Bounds for Eigenvalues of Markov Chains 4: Variation Distance to Stationarity, 4‖Pⁿ(x,·) − π‖² ≤ ((1 − π(x))/π(x)) β_*²ⁿResearch Paper

Motivation

Markov chain Monte Carlo methods, card-shuffling schemes and randomized counting algorithms all run a Markov chain until its distribution is close to the stationary distribution. The quantity a user needs is a number of steps nnn after which Pn(x,⋅)P^n(x,\cdot)Pn(x,⋅) is within a prescribed variation distance of π\piπ. For reversible chains the standard way to get such a number is to bound the eigenvalues of the transition matrix and convert the eigenvalue bound into a variation distance bound.

P. Diaconis and D. Stroock, in Geometric bounds for eigenvalues of Markov chains (Ann. Appl. Probab. 1, 1991), prove geometric (path-counting) bounds on the second largest and the smallest eigenvalue of a reversible chain. Their §1D supplies the conversion step: Proposition 3 bounds the variation distance to stationarity, in discrete and in continuous time, by the eigenvalues. This mission formalizes that proposition. The eigenvalue bounds themselves are the subject of the other missions of this series.

Setting

Let XXX be a finite set with m=∣X∣m = |X|m=∣X∣ elements and P(x,y)P(x,y)P(x,y) the transition matrix of a Markov chain on XXX: P(x,y)≥0P(x,y)\ge 0P(x,y)≥0 and ∑yP(x,y)=1\sum_y P(x,y) = 1∑y​P(x,y)=1. The chain is irreducible if every state can be reached from every other state: for all x,yx,yx,y there is nnn with Pn(x,y)>0P^n(x,y) > 0Pn(x,y)>0. A probability distribution π\piπ on XXX is stationary if ∑xπ(x)P(x,y)=π(y)\sum_x \pi(x)P(x,y) = \pi(y)∑x​π(x)P(x,y)=π(y), and the chain is reversible with respect to π\piπ if

π(x)P(x,y)=π(y)P(y,x)for all x,y∈X.\pi(x)P(x,y) = \pi(y)P(y,x)\qquad\text{for all } x,y\in X.π(x)P(x,y)=π(y)P(y,x)for all x,y∈X.

For an irreducible chain π(x)>0\pi(x) > 0π(x)>0 for every xxx. Reversibility makes PPP a self-adjoint operator on L2(π)L^2(\pi)L2(π), so its eigenvalues are real; they are written

1=β0>β1≥β2≥⋯≥βm−1≥−1,1 = \beta_0 > \beta_1 \ge \beta_2 \ge \dots \ge \beta_{m-1} \ge -1,1=β0​>β1​≥β2​≥⋯≥βm−1​≥−1,

the strict inequality β0>β1\beta_0 > \beta_1β0​>β1​ coming from irreducibility. Put β∗=max⁡(β1,∣βm−1∣)\beta_* = \max(\beta_1, |\beta_{m-1}|)β∗​=max(β1​,∣βm−1​∣), the largest modulus of an eigenvalue other than 111.

The variation distance between probability distributions μ\muμ and π\piπ on XXX is

∥μ−π∥Var=max⁡A⊂X∣μ(A)−π(A)∣=12∑x∈X∣μ(x)−π(x)∣.\|\mu - \pi\|_{\mathrm{Var}} = \max_{A\subset X}|\mu(A) - \pi(A)| = \tfrac12\sum_{x\in X}|\mu(x)-\pi(x)|.∥μ−π∥Var​=A⊂Xmax​∣μ(A)−π(A)∣=21​x∈X∑​∣μ(x)−π(x)∣.

Pn(x,⋅)P^n(x,\cdot)Pn(x,⋅) is the distribution of the chain after nnn steps from xxx. The continuous-time chain jumps according to PPP at the times of a rate-one Poisson process, and has kernel

Pt(x,y)=e−t∑n=0∞tnn!Pn(x,y).P_t(x,y) = e^{-t}\sum_{n=0}^{\infty}\frac{t^n}{n!}P^n(x,y).Pt​(x,y)=e−tn=0∑∞​n!tn​Pn(x,y).

Formalization targets

Goal: Proposition 3, (1.9)

For every x∈Xx \in Xx∈X and every n∈Nn\in\mathbb Nn∈N,

4 ∥Pn(x,⋅)−π∥Var2  ≤  1−π(x)π(x) β∗2n.4\,\|P^n(x,\cdot)-\pi\|_{\mathrm{Var}}^2 \;\le\; \frac{1-\pi(x)}{\pi(x)}\,\beta_*^{2n}.4∥Pn(x,⋅)−π∥Var2​≤π(x)1−π(x)​β∗2n​.

Milestones

The steps of the paper's proof (p. 42), in order:

  1. the two expressions for ∥⋅∥Var\|\cdot\|_{\mathrm{Var}}∥⋅∥Var​ (p. 41), already proved on the platform;
  2. the reversibility identity 1π(x)P2n(x,x)=∑y(Pn(x,y))2/π(y)\frac{1}{\pi(x)}P^{2n}(x,x) = \sum_y (P^n(x,y))^2/\pi(y)π(x)1​P2n(x,x)=∑y​(Pn(x,y))2/π(y);
  3. the Cauchy–Schwarz bound 4∥Pn(x,⋅)−π∥Var2≤1π(x)P2n(x,x)−14\|P^n(x,\cdot)-\pi\|_{\mathrm{Var}}^2 \le \frac{1}{\pi(x)}P^{2n}(x,x) - 14∥Pn(x,⋅)−π∥Var2​≤π(x)1​P2n(x,x)−1;
  4. the orthogonal diagonalization of a reversible chain, already proved on the platform in the form Pt(x,y)/π(y)=∑jfj(x)fj(y)λjtP^t(x,y)/\pi(y) = \sum_j f_j(x)f_j(y)\lambda_j^tPt(x,y)/π(y)=∑j​fj​(x)fj​(y)λjt​ with (fj)(f_j)(fj​) orthonormal in L2(π)L^2(\pi)L2(π);
  5. the diagonal bound P2n(x,x)≤π(x)+β∗2n(1−π(x))P^{2n}(x,x) \le \pi(x) + \beta_*^{2n}(1-\pi(x))P2n(x,x)≤π(x)+β∗2n​(1−π(x)).

Companion: Proposition 3, (1.10)

For every x∈Xx\in Xx∈X and every t∈(0,∞)t\in(0,\infty)t∈(0,∞),

4 ∥Pt(x,⋅)−π∥Var2  ≤  1−π(x)π(x) exp⁡[−2(1−β1)t].4\,\|P_t(x,\cdot)-\pi\|_{\mathrm{Var}}^2 \;\le\; \frac{1-\pi(x)}{\pi(x)}\,\exp\bigl[-2(1-\beta_1)t\bigr].4∥Pt​(x,⋅)−π∥Var2​≤π(x)1−π(x)​exp[−2(1−β1​)t].

The paper gives no separate proof of (1.10); it says only that "the continuous time version can be proved by a virtually identical argument".

Significance

Inequality (1.9) is the step that turns an eigenvalue estimate into a mixing-time estimate: if β∗≤1−ε\beta_* \le 1 - \varepsilonβ∗​≤1−ε, then ∥Pn(x,⋅)−π∥Var≤δ\|P^n(x,\cdot)-\pi\|_{\mathrm{Var}} \le \delta∥Pn(x,⋅)−π∥Var​≤δ as soon as n≥12ε(log⁡14δ2+log⁡1−π(x)π(x))n \ge \frac{1}{2\varepsilon}\bigl(\log\frac{1}{4\delta^2} + \log\frac{1-\pi(x)}{\pi(x)}\bigr)n≥2ε1​(log4δ21​+logπ(x)1−π(x)​), up to the usual comparison log⁡(1/(1−ε))≥ε\log(1/(1-\varepsilon)) \ge \varepsilonlog(1/(1−ε))≥ε. The examples of the paper's Section 2 use Propositions 1 and 2 to bound β1\beta_1β1​ and βm−1\beta_{m-1}βm−1​, and this proposition to translate the bounds into a number of steps. Inequality (1.10) does the same for the continuous-time chain, where only β1\beta_1β1​ is needed because the continuous-time chain has no periodicity.

The result is classical and its proof is short; it is the ℓ2\ell^2ℓ2 (chi-square) bound on variation distance found in many textbooks, e.g. Levin, Peres and Wilmer, Markov Chains and Mixing Times, Chapter 12. As far as the platform's catalog shows, neither (1.9) nor (1.10) has a machine-checked proof. The platform already has the spectral decomposition of a reversible chain and the identity between the two forms of total variation, both proved; this mission links them to the variation distance bound in the exact form used by the geometric-bounds literature. The diagonal bound (milestone 5) and the reversibility identity (milestone 2) are reusable statements about reversible chains in their own right.

Difficulty

The Cauchy–Schwarz step and the reversibility identity are finite-sum manipulations. The difficulty is in the spectral step. One has to show that, apart from the eigenvalue 111 (whose eigenfunction is constant and contributes exactly π(x)\pi(x)π(x) to P2n(x,x)P^{2n}(x,x)P2n(x,x)), every eigenvalue in the decomposition has modulus at most β∗\beta_*β∗​, and that the remaining weights at xxx sum to 1−π(x)1-\pi(x)1−π(x). This uses that 111 is a simple eigenvalue, which needs irreducibility. Without irreducibility the bound fails. A second eigenvalue equal to 111 would contribute Γxw2\Gamma_{xw}^2Γxw2​ with no decay, while β∗\beta_*β∗​, a maximum over eigenvalues different from 111, does not see it.

A naive approach that bounds ∣Pn(x,y)−π(y)∣|P^n(x,y)-\pi(y)|∣Pn(x,y)−π(y)∣ entry by entry and sums gives a factor depending on ∣X∣|X|∣X∣ rather than on π(x)\pi(x)π(x); the point of (1.9) is that the constant is (1−π(x))/π(x)(1-\pi(x))/\pi(x)(1−π(x))/π(x) only. For (1.10) the matrix PtP_tPt​ is an infinite series in PPP, and the decomposition has to be carried through the series, each eigenvalue β\betaβ contributing e−2(1−β)te^{-2(1-\beta)t}e−2(1−β)t.

Formalization scope

The objects are the published MarkovMixing definitions (Levin–Peres–Wilmer layer): the chain is a real matrix P : Matrix V V ℝ on a Fintype V with IsStochastic P, MarkovMixing.Irreducible P, IsStationary P π (π is a probability vector with πP = π) and DetailedBalance P π. These four hypotheses are the paper's standing assumption of §1A; every statement of the mission carries all of them, and no other hypothesis.

  • ∥Pn(x,⋅)−π∥Var\|P^n(x,\cdot)-\pi\|_{\mathrm{Var}}∥Pn(x,⋅)−π∥Var​ is tvDist (rowDist P n x) π, the supremum over subsets; Pt(x,⋅)P_t(x,\cdot)Pt​(x,⋅) is heatKernel P t x.
  • β∗\beta_*β∗​ is lambdaStar P, the supremum of ∣λ∣|\lambda|∣λ∣ over real eigenvalues λ≠1\lambda \ne 1λ=1; β1\beta_1β1​ is lambdaTwo P, the supremum of real eigenvalues λ≠1\lambda\ne1λ=1. For an irreducible reversible chain these are the paper's max⁡(β1,∣βm−1∣)\max(\beta_1,|\beta_{m-1}|)max(β1​,∣βm−1​∣) and β1\beta_1β1​.
  • On a one-point space the eigenvalue sets are empty and both quantities are the junk value 000; both sides of (1.9) and (1.10) are then 000, so no hypothesis ∣X∣≥2|X|\ge 2∣X∣≥2 is added.
  • n∈Nn\in\mathbb Nn∈N includes n=0n = 0n=0, where (1.9) reads 4(1−π(x))2≤(1−π(x))/π(x)4(1-\pi(x))^2 \le (1-\pi(x))/\pi(x)4(1−π(x))2≤(1−π(x))/π(x), a true inequality. The time in (1.10) is strictly positive, as in the paper.
  • Positivity of π\piπ is not a hypothesis: it follows from irreducibility and stationarity.

A formalization that assumed milestone 3 or milestone 5 as a hypothesis of the goal, or that replaced β∗\beta_*β∗​ by a free parameter bounded by hypothesis, would trivialize the goal and is excluded.

Needed infrastructure: finite-dimensional spectral theory for self-adjoint operators on L2(π)L^2(\pi)L2(π) (available through the proved MarkovMixing.spectral_representation), simplicity of the eigenvalue 111 for irreducible chains, Cauchy–Schwarz for finite sums, and termwise manipulation of the Poisson series for (1.10). Proofs of any milestone, and of the simplicity of the top eigenvalue as a separate lemma, are welcome.

Selected references

  • P. Diaconis and D. Stroock, Geometric bounds for eigenvalues of Markov chains, Ann. Appl. Probab. 1(1):36–61, 1991. https://doi.org/10.1214/aoap/1177005980
  • D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times, 2nd ed., American Mathematical Society, 2017 (Lemma 12.2, Proposition 4.2). https://doi.org/10.1090/mbk/107
10 thms6 active usersReviewed
🏆Completed
Markov ChainOperations ResearchStochastic Systems·Captain: mikedeng1

Reversibility and Stochastic Networks I: Kolmogorov's Criterion — a Stationary Markov Process Is Reversible iff Its Rates Balance Around Every CycleTextbook

Why reversibility

A stochastic process is reversible when a film of it run backwards is statistically indistinguishable from the film run forwards. For Markov processes in equilibrium this distributional symmetry has an algebraic counterpart, the detailed balance conditions, and that counterpart is what makes large classes of queueing networks, migration processes, loss networks, clustering processes and population-genetics models solvable in closed form. F. P. Kelly's Reversibility and Stochastic Networks (Wiley, 1979) builds the whole theory of product-form equilibria on this link, and Chapter 1 sets it up.

The criterion that bears Kolmogorov's name goes back to A. Kolmogorov, "Zur Theorie der Markoffschen Ketten" (Math. Annalen 112, 1936), who showed that reversibility of a chain can be read off its transition probabilities around closed cycles. Kelly's Chapter 1 (§§1.1–1.7) states the criterion for chains (Theorem 1.7) and processes (Theorem 1.8), together with the detailed-balance characterization (Theorems 1.2, 1.3), the cut and tree lemmas (1.4, 1.5), the monotonicity of relative entropy (Theorem 1.6), truncation and rate alteration (Lemma 1.9, Corollary 1.10), and the description of the time-reversed process (Theorems 1.12–1.14). This mission is the first in a series covering the book.

Setting

Let S\mathcal SS be a finite state space. A continuous-time Markov process X(t)X(t)X(t), t∈Rt\in\mathbb Rt∈R, is specified by transition rates q(j,k)≥0q(j,k)\ge 0q(j,k)≥0, j≠kj\ne kj=k, with Kelly's convention q(j,j)=0q(j,j)=0q(j,j)=0. Its generator is the matrix QQQ with Q(j,k)=q(j,k)Q(j,k)=q(j,k)Q(j,k)=q(j,k) off the diagonal and Q(j,j)=−∑k≠jq(j,k)Q(j,j)=-\sum_{k\ne j}q(j,k)Q(j,j)=−∑k=j​q(j,k), and its transition matrices are P(t)=etQP(t)=e^{tQ}P(t)=etQ. The rates are irreducible if every state can be reached from every other through transitions of positive rate. An equilibrium distribution is a collection of positive numbers π(j)\pi(j)π(j) summing to one that satisfy the equilibrium equations

π(j)∑kq(j,k)=∑kπ(k)q(k,j),j∈S.(1.3)\pi(j)\sum_{k}q(j,k)=\sum_k\pi(k)q(k,j),\qquad j\in\mathcal S. \qquad (1.3)π(j)k∑​q(j,k)=k∑​π(k)q(k,j),j∈S.(1.3)

The stationary process with rates qqq and equilibrium distribution π\piπ has finite-dimensional distributions

P(X(t1)=j1,…,X(tn)=jn)=π(j1)∏r=1n−1P(tr+1−tr)(jr,jr+1),t1≤⋯≤tn.P\bigl(X(t_1)=j_1,\dots,X(t_n)=j_n\bigr)=\pi(j_1)\prod_{r=1}^{n-1}P(t_{r+1}-t_r)(j_r,j_{r+1}),\qquad t_1\le\dots\le t_n .P(X(t1​)=j1​,…,X(tn​)=jn​)=π(j1​)r=1∏n−1​P(tr+1​−tr​)(jr​,jr+1​),t1​≤⋯≤tn​.

It is reversible (Kelly, p. 5) if (X(t1),…,X(tn))(X(t_1),\dots,X(t_n))(X(t1​),…,X(tn​)) has the same distribution as (X(τ−t1),…,X(τ−tn))(X(\tau-t_1),\dots,X(\tau-t_n))(X(τ−t1​),…,X(τ−tn​)) for all t1,…,tn,τt_1,\dots,t_n,\taut1​,…,tn​,τ. The rates satisfy detailed balance with π\piπ if π(j)q(j,k)=π(k)q(k,j)\pi(j)q(j,k)=\pi(k)q(k,j)π(j)q(j,k)=π(k)q(k,j) for all j,kj,kj,k, and Kolmogorov's cycle condition if

q(j1,j2)q(j2,j3)⋯q(jn−1,jn)q(jn,j1)=q(j1,jn)q(jn,jn−1)⋯q(j3,j2)q(j2,j1)(1.22)q(j_1,j_2)q(j_2,j_3)\cdots q(j_{n-1},j_n)q(j_n,j_1)=q(j_1,j_n)q(j_n,j_{n-1})\cdots q(j_3,j_2)q(j_2,j_1)\qquad (1.22)q(j1​,j2​)q(j2​,j3​)⋯q(jn−1​,jn​)q(jn​,j1​)=q(j1​,jn​)q(jn​,jn−1​)⋯q(j3​,j2​)q(j2​,j1​)(1.22)

for every finite sequence of states j1,…,jnj_1,\dots,j_nj1​,…,jn​. The discrete-time analogue replaces rates by a stochastic matrix p(j,k)p(j,k)p(j,k) and P(t)P(t)P(t) by the matrix power PtP^tPt, t∈Z≥0t\in\mathbb Z_{\ge 0}t∈Z≥0​.

Formalization targets

Goal: Theorem 1.8 (p. 23)

For a stationary, irreducible Markov process on a finite state space,

X is reversible  ⟺  q satisfies (1.22) for every finite sequence of states.X\ \text{is reversible}\iff q\ \text{satisfies (1.22) for every finite sequence of states}.X is reversible⟺q satisfies (1.22) for every finite sequence of states.

The left side is a statement about the joint laws of the process at all finite sets of times; the right side involves the rates alone, not even the equilibrium distribution.

Milestones

  1. Theorems 1.2 and 1.3: reversibility of a stationary chain or process is equivalent to the existence of a positive, normalized solution of detailed balance, and that solution is the equilibrium distribution.
  2. Theorem 1.7: Kolmogorov's criterion (1.21) for chains. (The platform's proved rate-level equivalence of (1.22) with detailed balance under two-way communication, Serfozo's Theorem 2.8, is included as a reference item but is not a milestone: it is not Kelly's statement.)
  3. Lemmas 1.4 and 1.5: the flux across any cut balances, and a process whose graph is a tree is reversible.
  4. Theorem 1.6: H(t)=∑jπ(j)h(uj(t)/π(j))H(t)=\sum_j\pi(j)h(u_j(t)/\pi(j))H(t)=∑j​π(j)h(uj​(t)/π(j)) is strictly increasing for t>0t>0t>0 when hhh is strictly concave and the initial distribution is not the equilibrium one.
  5. Lemma 1.9 and Corollary 1.10: altering the rates across a cut by a factor c>0c>0c>0, or truncating to a subset, preserves reversibility with explicit equilibrium distributions.
  6. Theorems 1.12–1.14: the reversed process X(τ−t)X(\tau-t)X(τ−t) is stationary Markov with rates q′(j,k)=π(k)q(k,j)/π(j)q'(j,k)=\pi(k)q(k,j)/\pi(j)q′(j,k)=π(k)q(k,j)/π(j); conditions (1.27)–(1.28) identify it; and dynamic reversibility is characterized by π(j)=π(j+)\pi(j)=\pi(j^+)π(j)=π(j+) and π(j)q(j,k)=π(k+)q(k+,j+)\pi(j)q(j,k)=\pi(k^+)q(k^+,j^+)π(j)q(j,k)=π(k+)q(k+,j+).

Significance

Theorem 1.8 is the working test for reversibility throughout the book and the queueing literature: a model's reversibility, and with it a product-form equilibrium obtained by solving detailed balance, can be decided by checking a finite list of cycles in its transition diagram. Theorem 1.3 converts the distributional property into equations that later chapters solve explicitly; Theorems 1.12 and 1.13 underlie the treatment of quasi-reversible queues and networks in Chapter 3; Lemma 1.9 and Corollary 1.10 produce the equilibria of loss systems and queues with shared buffers.

The algebraic content of several of these results is already proved on the platform at the level of rates: detailed balance implies the equilibrium equations, the reversed rates preserve π\piπ, truncation preserves detailed balance, and Kolmogorov's criterion is equivalent to detailed balance for two-way communicating rates. What is not formalized anywhere is the process-level statement: that these conditions are equivalent to the time-reversal symmetry of the finite-dimensional distributions built from etQe^{tQ}etQ. This mission supplies that layer, which connects the rate identities to the probabilistic notion they are meant to capture.

Difficulty

The rate-level identities are short; the difficulty is the passage between them and the process. Reversibility constrains the joint law at every finite set of times, and that law is built from the matrix exponential etQe^{tQ}etQ, whose entries are not explicit functions of the rates. Relating the two requires the analytic facts about etQe^{tQ}etQ for a generator (stationarity of π\piπ, the semigroup property, behaviour as t→0t\to 0t→0, strict positivity of the entries for t>0t>0t>0 under irreducibility) that Mathlib does not yet provide for Markov generators, together with bookkeeping for tuples of times given in arbitrary order, with ties. For Theorem 1.8 a positive, normalized equilibrium has to be produced from the cycle condition alone, on rates that may vanish in one direction only: two-way communication is not a hypothesis, so the platform's proved rate-level criterion does not apply directly. A first attempt that defines reversibility as detailed balance avoids all of this and proves nothing new; it is excluded below.

Formalization scope

The state space is a Fintype with decidable equality; Kelly allows a countable state space, and this restriction is stated in every item. Rates are q : S → S → ℝ with 0 ≤ q j k for j ≠ k and q j j = 0 as hypotheses. The transition matrices are NormedSpace.exp (t • generator q). Time sets are ℝ (processes) and ℤ (chains). Finite-dimensional distributions are defined for arbitrary finite tuples of time points by sorting them with Tuple.sort. Equilibrium means positive, summing to one, and satisfying (1.3) (resp. πP=π\pi P=\piπP=π), and every theorem takes the equilibrium distribution of the stationary process as a hypothesis. Existing platform definitions are reused: FullBalance, DetailedBalance and reversedRates from KellyStochasticNetworks_Balance, the stochastic-matrix vocabulary of mm_basic, and truncatedRates from KellyStochasticNetworks_LossNetwork.

Reversibility is not defined as detailed balance or as equality of qqq with its reversed rates: under such a definition Theorems 1.2 and 1.3 would be tautologies and Theorem 1.8 would be the already proved rate-level criterion. It is the distributional definition of p. 5. Kolmogorov's condition ranges over all sequences of all lengths, repetitions allowed, and two-way communication is not assumed.

A complete development needs the matrix exponential of a generator (positivity, the semigroup property, the derivative at 000, and πetQ=π\pi e^{tQ}=\piπetQ=π), which is reusable for any finite-state continuous-time Markov chain, and a lemma on reversing sorted tuples. Lemma 1.1 (a general stationary process) and Lemma 1.11 (a non-stationary reversal) are not included. Proofs of any milestone, and generalizations to countable state spaces, are welcome.

Selected references

  • F. P. Kelly, Reversibility and Stochastic Networks, John Wiley & Sons, 1979, Chapter 1. https://www.statslab.cam.ac.uk/~frank/BOOKS/kelly_book.html
  • A. Kolmogorov, "Zur Theorie der Markoffschen Ketten", Mathematische Annalen 112 (1936), 155–160. https://doi.org/10.1007/BF01565412
  • R. Serfozo, Introduction to Stochastic Networks, Springer, 1999, Chapter 1. https://doi.org/10.1007/978-1-4612-1482-3
  • F. P. Kelly and E. Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 1. https://doi.org/10.1017/CBO9781139565363
21 thms6 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine LearningOperations Research·Captain: mikedeng1

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 nnn 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(dnlog⁡3/2n)O(d\sqrt n\log^{3/2} n)O(dn​log3/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≥1d \ge 1d≥1 and an unknown parameter θ∗∈Rd\theta_* \in \mathbb R^dθ∗​∈Rd. In round t=1,2,…t = 1, 2, \dotst=1,2,… the learner is given a nonempty decision set Dt⊆RdD_t \subseteq \mathbb R^dDt​⊆Rd, chooses Xt∈DtX_t \in D_tXt​∈Dt​, and observes the reward

Yt=⟨Xt,θ∗⟩+ηt.Y_t = \langle X_t, \theta_* \rangle + \eta_t .Yt​=⟨Xt​,θ∗​⟩+ηt​.

There is a filtration {Ft}t≥0\{F_t\}_{t \ge 0}{Ft​}t≥0​ such that XtX_tXt​ is Ft−1F_{t-1}Ft−1​-measurable and ηt\eta_tηt​ is FtF_tFt​-measurable and conditionally RRR-sub-Gaussian: E[eληt∣Ft−1]≤exp⁡(λ2R2/2)\mathbf E[e^{\lambda\eta_t} \mid F_{t-1}] \le \exp(\lambda^2R^2/2)E[eληt​∣Ft−1​]≤exp(λ2R2/2) for all λ∈R\lambda \in \mathbb Rλ∈R, with R≥0R \ge 0R≥0 fixed.

For a regularization parameter λ>0\lambda > 0λ>0 let V‾t=λI+∑s=1tXsXs⊤\overline V_t = \lambda I + \sum_{s=1}^t X_sX_s^\topVt​=λI+∑s=1t​Xs​Xs⊤​ and let θ^t=V‾t−1∑s=1tYsXs\widehat\theta_t = \overline V_t^{-1}\sum_{s=1}^t Y_sX_sθt​=Vt−1​∑s=1t​Ys​Xs​ be the regularized least-squares estimate. With ∥v∥A=v⊤Av\|v\|_A = \sqrt{v^\top A v}∥v∥A​=v⊤Av​ and a known bound ∥θ∗∥2≤S\|\theta_*\|_2 \le S∥θ∗​∥2​≤S, the confidence ellipsoid is

Ct={θ:∥θ^t−θ∥V‾t≤R2log⁡(det⁡(V‾t)1/2det⁡(λI)−1/2/δ)+λ1/2S}.C_t = \Big\{\theta : \|\widehat\theta_t - \theta\|_{\overline V_t} \le R\sqrt{2\log\big(\det(\overline V_t)^{1/2}\det(\lambda I)^{-1/2}/\delta\big)} + \lambda^{1/2}S\Big\}.Ct​={θ:∥θt​−θ∥Vt​​≤R2log(det(Vt​)1/2det(λI)−1/2/δ)​+λ1/2S}.

The OFUL algorithm chooses, in round ttt, a pair (Xt,θ~t)(X_t, \widetilde\theta_t)(Xt​,θt​) maximizing ⟨x,θ⟩\langle x, \theta \rangle⟨x,θ⟩ over Dt×Ct−1D_t \times C_{t-1}Dt​×Ct−1​. The pseudo-regret is Rn=∑t=1n⟨xt∗−Xt,θ∗⟩R_n = \sum_{t=1}^n \langle x^*_t - X_t, \theta_* \rangleRn​=∑t=1n​⟨xt∗​−Xt​,θ∗​⟩, where ⟨xt∗,θ∗⟩=max⁡x∈Dt⟨x,θ∗⟩\langle x^*_t, \theta_*\rangle = \max_{x\in D_t}\langle x,\theta_*\rangle⟨xt∗​,θ∗​⟩=maxx∈Dt​​⟨x,θ∗​⟩.

Formalization targets

Goal: Theorem 3, the regret of OFUL

If ∥Xt∥2≤L\|X_t\|_2 \le L∥Xt​∥2​≤L, ⟨x,θ∗⟩∈[−1,1]\langle x, \theta_*\rangle \in [-1,1]⟨x,θ∗​⟩∈[−1,1] for all x∈Dtx \in D_tx∈Dt​, and λ≥max⁡(1,L2)\lambda \ge \max(1, L^2)λ≥max(1,L2), then for every δ>0\delta > 0δ>0, with probability at least 1−δ1 - \delta1−δ,

∀n≥0,Rn≤4ndlog⁡(λ+nL2/d)(λ1/2S+R2log⁡(1/δ)+dlog⁡(1+nL2/(λd))).\forall n \ge 0, \quad R_n \le 4\sqrt{nd\log(\lambda + nL^2/d)}\Big(\lambda^{1/2}S + R\sqrt{2\log(1/\delta) + d\log(1 + nL^2/(\lambda d))}\Big).∀n≥0,Rn​≤4ndlog(λ+nL2/d)​(λ1/2S+R2log(1/δ)+dlog(1+nL2/(λd))​).

Milestone: Theorem 1, the self-normalized bound

For any positive definite VVV, V‾t=V+∑s≤tXsXs⊤\overline V_t = V + \sum_{s\le t}X_sX_s^\topVt​=V+∑s≤t​Xs​Xs⊤​ and St=∑s≤tηsXsS_t = \sum_{s \le t}\eta_sX_sSt​=∑s≤t​ηs​Xs​: with probability at least 1−δ1-\delta1−δ, for all t≥0t \ge 0t≥0,

∥St∥V‾t−12≤2R2log⁡(det⁡(V‾t)1/2det⁡(V)−1/2/δ).\|S_t\|^2_{\overline V_t^{-1}} \le 2R^2\log\big(\det(\overline V_t)^{1/2}\det(V)^{-1/2}/\delta\big).∥St​∥Vt−1​2​≤2R2log(det(Vt​)1/2det(V)−1/2/δ).

Milestones: Theorem 2, the confidence ellipsoids

With probability at least 1−δ1 - \delta1−δ, θ∗∈Ct\theta_* \in C_tθ∗​∈Ct​ for all t≥0t \ge 0t≥0 (first claim). If ∥Xt∥2≤L\|X_t\|_2 \le L∥Xt​∥2​≤L, then with probability at least 1−δ1-\delta1−δ, for all ttt, ∥θ^t−θ∗∥V‾t≤Rdlog⁡((1+tL2/λ)/δ)+λ1/2S\|\widehat\theta_t - \theta_*\|_{\overline V_t} \le R\sqrt{d\log((1 + tL^2/\lambda)/\delta)} + \lambda^{1/2}S∥θt​−θ∗​∥Vt​​≤Rdlog((1+tL2/λ)/δ)​+λ1/2S (second claim, stated here for d≥2d \ge 2d≥2).

Significance

Theorem 3 bounds the regret of OFUL by O(dnlog⁡n)O(d\sqrt n\log n)O(dn​logn) 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=λIV = \lambda IV=λI, R=1R = 1R=1, δ<1\delta < 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 XtX_tXt​ 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 V‾t\overline V_tVt​, which is itself built from the adaptively chosen actions; a bound for each fixed ttt does not give it.

Formalization scope

Vectors are Fin d → ℝ, matrices Matrix (Fin d) (Fin d) ℝ, and ∥x∥A\|x\|_A∥x∥A​ is Real.sqrt (x ⬝ᵥ A *ᵥ x). Rounds are indexed t+1t+1t+1 for t:Nt : ℕt:N, so sums over s≤ts \le ts≤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 R2R^2R2) requires; this is an added hypothesis. Every "with probability at least 1−δ1-\delta1−δ, for all ttt" is stated as an outer-measure bound ≤δ\le \delta≤δ on the failure event, with the time quantifier inside the event. det⁡(⋅)1/2\det(\cdot)^{1/2}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,θ⟩\langle x,\theta\rangle⟨x,θ⟩ over Dt×Ct−1D_t \times C_{t-1}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∗,θ∗⟩\langle x^*_t, \theta_*\rangle⟨xt∗​,θ∗​⟩ is the supremum over DtD_tDt​, finite because of the reward bound.

Two corrections to the printed Theorem 3 are made and disclosed. The printed nL/dnL/dnL/d is replaced by nL2/dnL^2/dnL2/d, which is what the determinant–trace bound det⁡V‾n≤(λ+nL2/d)d\det\overline V_n \le (\lambda + nL^2/d)^ddetVn​≤(λ+nL2/d)d gives; for L≤1L \le 1L≤1 the corrected bound implies the printed one. The hypothesis λ≥max⁡(1,L2)\lambda \ge \max(1, L^2)λ≥max(1,L2) is added: for λ<1\lambda < 1λ<1 the printed logarithm can be negative, and the printed bound would then assert Rn≤0R_n \le 0Rn​≤0. In the second claim of Theorem 2, d≥2d \ge 2d≥2 is added, because at d=1d = 1d=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\theta_* \in C_{t-1}θ∗​∈Ct−1​ for all ttt then Rn≤…R_n \le \dotsRn​≤…". 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 δ\deltaδ as the conclusion.

Needed infrastructure: maximal inequalities for nonnegative supermartingales, Gaussian integrals of quadratic forms on Rd\mathbb R^dRd, 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 VVV and RRR, 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. Auer, Using Confidence Bounds for Exploitation-Exploration Trade-offs, Journal of Machine Learning Research 3, 2002. https://www.jmlr.org/papers/v3/auer02a.html
  • V. Dani, T. P. Hayes, S. M. Kakade, Stochastic Linear Optimization under Bandit Feedback, COLT, 2008. http://colt2008.cs.helsinki.fi/papers/80-Dani.pdf
  • P. Rusmevichientong, J. N. Tsitsiklis, Linearly Parameterized Bandits, Mathematics of Operations Research 35(2), 2010. https://doi.org/10.1287/moor.1100.0446
  • T. Lattimore, Cs. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapters 19–20. https://doi.org/10.1017/9781108571401
12 thms6 active usersReviewed
🏆Completed
Machine LearningStatistics·Captain: mikedeng1

High-Dimensional Statistics I: Gaussian Concentration of Lipschitz FunctionsTextbook

Motivation

A recurring question in high-dimensional statistics is how tightly a scalar quantity built from many random inputs concentrates around its mean, even as the number of inputs grows without bound. Two classical answers organize the whole toolkit: martingale methods, which control a sum of dependent increments one conditional step at a time, and Gaussian-specific isoperimetry, which shows that essentially any regular (Lipschitz) function of a high-dimensional Gaussian vector concentrates as tightly as a single Gaussian coordinate, regardless of dimension. This mission formalizes one representative theorem from each line: the general martingale Bernstein bound (Wainwright, High-Dimensional Statistics, 2019, Theorem 2.19) and the Gaussian concentration of Lipschitz functions (Theorem 2.26), following Chapter 2 of the same book.

Setting

A random variable XXX with mean μ=E[X]\mu=\mathbb E[X]μ=E[X] is sub-Gaussian with parameter σ\sigmaσ (Definition 2.2) if E[eλ(X−μ)]≤eσ2λ2/2\mathbb E[e^{\lambda(X-\mu)}]\le e^{\sigma^2\lambda^2/2}E[eλ(X−μ)]≤eσ2λ2/2 for all λ∈R\lambda\in\mathbb Rλ∈R; it is sub-exponential with parameters (ν,α)(\nu,\alpha)(ν,α) (Definition 2.7, a strictly milder condition) if the same bound holds only for ∣λ∣<1/α|\lambda|<1/\alpha∣λ∣<1/α, with the convention 1/0=+∞1/0=+\infty1/0=+∞ so that α=0\alpha=0α=0 recovers the sub-Gaussian case exactly.

A sequence {Dk}k≥1\{D_k\}_{k\ge1}{Dk​}k≥1​, adapted to a filtration {Fk}\{\mathcal F_k\}{Fk​}, is a martingale difference sequence if each DkD_kDk​ is Fk\mathcal F_kFk​-measurable and E[Dk∣Fk−1]=0\mathbb E[D_k\mid\mathcal F_{k-1}]=0E[Dk​∣Fk−1​]=0. Such sequences arise throughout statistics via the Doob martingale construction: given a function fff of independent variables X1,…,XnX_1,\dots,X_nX1​,…,Xn​, setting Dk:=E[f(X)∣X1,…,Xk]−E[f(X)∣X1,…,Xk−1]D_k:=\mathbb E[f(X)\mid X_1,\dots,X_k]-\mathbb E[f(X)\mid X_1,\dots,X_{k-1}]Dk​:=E[f(X)∣X1​,…,Xk​]−E[f(X)∣X1​,…,Xk−1​] telescopes to f(X)−E[f(X)]=∑kDkf(X)-\mathbb E[f(X)]=\sum_k D_kf(X)−E[f(X)]=∑k​Dk​, converting a deviation question about f(X)f(X)f(X) into a martingale concentration question.

A function f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R is LLL-Lipschitz with respect to the Euclidean norm if ∣f(x)−f(y)∣≤L∥x−y∥2|f(x)-f(y)|\le L\|x-y\|_2∣f(x)−f(y)∣≤L∥x−y∥2​ for all x,yx,yx,y (Eq. (2.38)).

Formalization targets

Goal — Theorem 2.26 (Gaussian concentration of Lipschitz functions)

Let (X1,…,Xn)(X_1,\dots,X_n)(X1​,…,Xn​) be i.i.d. standard Gaussian and fff be LLL-Lipschitz with respect to the Euclidean norm. Then f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] is sub-Gaussian with parameter at most LLL, and hence

P[∣f(X)−E[f(X)]∣≥t]  ≤  2e−t2/2L2for all t≥0.\mathbb P[|f(X)-\mathbb E[f(X)]|\ge t] \;\le\; 2e^{-t^2/2L^2} \qquad \text{for all } t\ge 0.P[∣f(X)−E[f(X)]∣≥t]≤2e−t2/2L2for all t≥0.

The bound is dimension-free: it depends on nnn only through fff's Lipschitz constant, not the ambient dimension itself.

Milestone — Lemma 2.27 (Gaussian interpolation identity)

For any differentiable fff and convex φ\varphiφ, E[φ(f(X)−E[f(X)])]≤E[φ(π2⟨∇f(X),Y⟩)]\mathbb E[\varphi(f(X)-\mathbb E[f(X)])] \le \mathbb E[\varphi(\tfrac\pi2\langle\nabla f(X),Y\rangle)]E[φ(f(X)−E[f(X)])]≤E[φ(2π​⟨∇f(X),Y⟩)] for X,Y∼N(0,In)X,Y\sim N(0,I_n)X,Y∼N(0,In​) independent — the interpolation identity Theorem 2.26's proof is built on.

Milestone — Theorem 2.19 (martingale Bernstein bound)

Given a martingale difference sequence with a per-index sub-exponential conditional moment-generating-function bound E[eλDk∣Fk−1]≤eλ2νk2/2\mathbb E[e^{\lambda D_k}\mid\mathcal F_{k-1}]\le e^{\lambda^2\nu_k^2/2}E[eλDk​∣Fk−1​]≤eλ2νk2​/2 for ∣λ∣<1/αk|\lambda|<1/\alpha_k∣λ∣<1/αk​, the sum ∑kDk\sum_k D_k∑k​Dk​ is itself sub-exponential with parameters (∑kνk2, max⁡kαk)\big(\sqrt{\sum_k\nu_k^2},\ \max_k\alpha_k\big)(∑k​νk2​​, maxk​αk​), and satisfies the two-regime concentration inequality of Eq. (2.28): sub-Gaussian for small deviations, sub-exponential for large ones. This is the chapter's central general-purpose martingale concentration tool.

Significance

Theorem 2.19 is the source of two of the most-cited concentration inequalities in the field — the Azuma–Hoeffding inequality (Corollary 2.20) and the bounded-differences/McDiarmid inequality (Corollary 2.21), both already faithfully covered elsewhere on the platform (azuma_hoeffding_two_sided, bounded_diff_martingale_two_sided) and included here as kind: reference milestones rather than redrafted. Theorem 2.26's Gaussian Lipschitz concentration is separately significant: it is the tool behind dimension-free operator-norm bounds for random matrices, concentration of the empirical spectral distribution, and much of the machinery of Chapters 5 and 6 of the same book.

Formalizing it. No faithful prior art exists on the platform for either the martingale Bernstein bound or Lipschitz-Gaussian concentration itself (a fresh search for "martingale Bernstein," "sub-exponential martingale," "Gaussian interpolation," and "Lipschitz concentration" returned no hits; the existing Vershynin-book item HighDimProb.Isoperimetry.lipschitz_concentration_sphere concentrates a Lipschitz function on the sphere, a different underlying space and a different proof from Theorem 2.26's Gaussian vector). Both goal-adjacent theorems and the Gaussian interpolation lemma are drafted here as open goals (:= by sorry); the two Azuma–Hoeffding/bounded-differences corollaries are reused from the platform's existing, already-proved formalizations.

Difficulty

The naive approach to Theorem 2.26 — try to bound f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] directly via a Lipschitz-type argument in Rn\mathbb R^nRn — has no obvious route to a dimension-free bound, since a union bound over coordinates (or over an ε\varepsilonε-net of the domain) picks up a factor that grows with nnn. The resolution, Lemma 2.27's interpolation identity, instead exploits a special structural fact about the Gaussian distribution — its rotation invariance — to replace the nonlinear quantity f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] with the linear, and hence exactly computable, Gaussian quantity ⟨∇f(X),Y⟩\langle\nabla f(X),Y\rangle⟨∇f(X),Y⟩, at the mild cost of a non-optimal constant. Theorem 2.19's difficulty is bookkeeping rather than a conceptual obstruction: the recursive conditioning step (Eq. (2.29)) must be iterated exactly nnn times while keeping track of the interplay between the two parameters νk,αk\nu_k,\alpha_kνk​,αk​ per difference, and Proposition 2.9's two-regime tail bound (small-deviation sub-Gaussian behavior, large-deviation sub-exponential behavior) must be carried through unchanged into the final statement — dropping either regime understates what the theorem proves.

Formalization scope

Expectations are Bochner integrals against an explicit probability measure, with integrability required as an explicit hypothesis in IsSubGaussian and IsSubExponential (Mathlib's Bochner integral silently returns 000 for a non-integrable function, which this mission's definitions rule out as a trivializing formalization). The sub-exponential condition's domain restriction |λ| < 1/α is realized as the disjunction α = 0 ∨ |λ| < 1/α, since Lean's real division convention 1/0 = 0 is exactly backwards from the book's own stated 1/0 = +\infty convention for the degenerate sub-Gaussian case.

"X,Y∼N(0,In)X,Y\sim N(0,I_n)X,Y∼N(0,In​) independent" (Lemma 2.27, Theorem 2.26) is formalized via Mathlib's HasGaussianLaw predicate together with explicit coordinatewise mean-zero and identity-covariance hypotheses, which together pin down the standard multivariate normal law, plus IndepFun. The inner product ⟨∇f(X),Y⟩\langle\nabla f(X),Y\rangle⟨∇f(X),Y⟩ is realized as fderiv ℝ f (X ω) (Y ω), the Fréchet derivative applied to Y(ω)Y(\omega)Y(ω) — equal to ⟨∇f(X(ω)),Y(ω)⟩\langle\nabla f(X(\omega)),Y(\omega)\rangle⟨∇f(X(ω)),Y(ω)⟩ by the Riesz representation of the gradient on a Hilbert space, avoiding the need to separately construct a gradient vector field.

Theorem 2.19's printed parameter pair for part (a), "(∑kνk2,α∗)(\sum_k\nu_k^2,\alpha_*)(∑k​νk2​,α∗​)," is formalized as (∑kνk2,α∗)(\sqrt{\sum_k\nu_k^2},\alpha_*)(∑k​νk2​​,α∗​): Definition 2.7 parametrizes the sub-exponential MGF bound by ν\nuν (with ν2\nu^2ν2 appearing in the exponent), so a literal transcription of the printed pair's first entry would silently square the effective parameter and make part (a), read literally, inconsistent with part (b)'s own tail-bound formula (which the book derives from part (a) via the general sub-exponential tail bound, Proposition 2.9). The corrected pairing is the one the book's own proof actually establishes; see MODERATION_NOTES.md for the full derivation.

Out of scope for this mission: Proposition 2.5 (plain Hoeffding for a sum of independent sub-Gaussians), used in the book only as background for Theorem 2.26's proof and not redrafted, since the goal theorem's own statement does not depend on it once Lemma 2.27 is in hand.

Selected references

  • M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge University Press, 2019. DOI: 10.1017/9781108627771. Chapter 2.
  • K. Azuma, "Weighted sums of certain dependent random variables," Tôhoku Mathematical Journal, 19:357–367, 1967.
  • W. Hoeffding, "Probability inequalities for sums of bounded random variables," Journal of the American Statistical Association, 58:13–30, 1963.
9 thms6 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times XI: The Cutoff Phenomenon and Lamplighter WalksTextbook

Motivation

For many natural chains, convergence to stationarity is not gradual: the distance stays near its maximum for a long time and then collapses to zero in a comparatively negligible window. A deck of cards under riffle shuffles is "not at all mixed" for six shuffles and "essentially mixed" after eight. This abrupt transition is the cutoff phenomenon, discovered by Aldous and Diaconis in the 1980s, and Chapter 18 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develops its theory: precise definitions of cutoff and cutoff windows, the product criterion trel=o(tmix)t_{\mathrm{rel}}=o(t_{\mathrm{mix}})trel​=o(tmix​) necessary for cutoff, and complete proofs for two model families — the biased walk on a segment and the lazy hypercube walk, the latter with the sharp 12nlog⁡n\tfrac12 n\log n21​nlogn location and window nnn, in both total variation and separation. Chapter 19 complements this with lamplighter walks: chains on the wreath-product state space of lamp configurations over a moving lamplighter, whose relaxation, mixing, and separation times are governed — beautifully — by the hitting and cover times of Missions VI. Both chapters are formalized in this mission.

Setting

A family of chains is a sequence P(n)P^{(n)}P(n) on state spaces VnV_nVn​ with stationary distributions πn\pi_nπn​; all single-chain quantities acquire an index nnn. As before, ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣, dn(t)=max⁡x∥P(n)t(x,⋅)−πn∥TVd_n(t)=\max_x\|P^{(n)t}(x,\cdot)-\pi_n\|_{TV}dn​(t)=maxx​∥P(n)t(x,⋅)−πn​∥TV​, tmix(n)(ε)=min⁡{t:dn(t)≤ε}t^{(n)}_{\mathrm{mix}}(\varepsilon)=\min\{t:d_n(t)\le\varepsilon\}tmix(n)​(ε)=min{t:dn​(t)≤ε}, and tmix(n)=tmix(n)(1/4)t^{(n)}_{\mathrm{mix}}=t^{(n)}_{\mathrm{mix}}(1/4)tmix(n)​=tmix(n)​(1/4). The family has a cutoff when for every 0<ε<10<\varepsilon<10<ε<1

tmix(n)(ε)tmix(n)(1−ε)  ⟶  1(n→∞),\frac{t^{(n)}_{\mathrm{mix}}(\varepsilon)}{t^{(n)}_{\mathrm{mix}}(1-\varepsilon)}\;\longrightarrow\;1\qquad(n\to\infty),tmix(n)​(1−ε)tmix(n)​(ε)​⟶1(n→∞),

and a cutoff at tnt_ntn​ with window wnw_nwn​ when wn=o(tn)w_n=o(t_n)wn​=o(tn​) and the distance at time tn+αwnt_n+\alpha w_ntn​+αwn​ tends (in the appropriate limsup/liminf sense) to 111 as α→−∞\alpha\to-\inftyα→−∞ and to 000 as α→+∞\alpha\to+\inftyα→+∞. The separation distance from xxx is sx(t)=max⁡y(1−Pt(x,y)/π(y))s_x(t)=\max_y\bigl(1-P^t(x,y)/\pi(y)\bigr)sx​(t)=maxy​(1−Pt(x,y)/π(y)) (Mission III), s(t)=max⁡xsx(t)s(t)=\max_xs_x(t)s(t)=maxx​sx​(t), and a separation cutoff is defined by the same window template with sss in place of ddd. From Mission VII, trel=(1−λ⋆)−1t_{\mathrm{rel}}=(1-\lambda_\star)^{-1}trel​=(1−λ⋆​)−1 is the relaxation time; from Mission VI, thit=max⁡x,yEx(τy)t_{\mathrm{hit}}=\max_{x,y}\mathbb E_x(\tau_y)thit​=maxx,y​Ex​(τy​) and tcovt_{\mathrm{cov}}tcov​ are the maximal hitting and cover times, and the pairwise distance dˉ(t)=max⁡x,y∥Pt(x,⋅)−Pt(y,⋅)∥TV\bar d(t)=\max_{x,y}\|P^t(x,\cdot)-P^t(y,\cdot)\|_{TV}dˉ(t)=maxx,y​∥Pt(x,⋅)−Pt(y,⋅)∥TV​ is from Mission II.

The concrete chains: the lazy biased walk on {0,…,n}\{0,\dots,n\}{0,…,n} holds with probability 12\tfrac1221​ and otherwise steps up with probability p>12p>\tfrac12p>21​, down with probability 1−p1-p1−p (reflecting at the endpoints); the lazy hypercube walk is the walk of Mission IV on {0,1}n\{0,1\}^n{0,1}n. The lamplighter chain G∗G^\astG∗ over a graph GGG has states (lamp configuration in {0,1}V\{0,1\}^{V}{0,1}V, lamplighter position in VVV); one step randomizes the current lamp, moves the lamplighter one step of the lazy walk on GGG, and randomizes the new lamp. Its stationary distribution is uniform lamps times the walk's stationary distribution.

Formalization targets

Goal

Theorem 18.3: the lazy hypercube walk has a cutoff at 12 nlog⁡n\tfrac12\,n\log n21​nlogn with window nnn — the family's total variation distance undergoes its full collapse in a window of size Θ(n)\Theta(n)Θ(n) around 12nlog⁡n\tfrac12 n\log n21​nlogn.

Milestones

  • Lemma 18.1 — cutoff is equivalent to the step-function limit: dn(⌊c tmix(n)⌋)→1d_n(\lfloor c\,t^{(n)}_{\mathrm{mix}}\rfloor)\to1dn​(⌊ctmix(n)​⌋)→1 for every c<1c<1c<1 and →0\to0→0 for every c>1c>1c>1.
  • Theorem 18.2 — the lazy biased walk on {0,…,n}\{0,\dots,n\}{0,…,n} with bias β=p−12>0\beta=p-\tfrac12>0β=p−21​>0 has a cutoff at β−1n\beta^{-1}nβ−1n with window n\sqrt nn​.
  • Proposition 18.4 (the product condition) — for a reversible family with tmix(n)→∞t^{(n)}_{\mathrm{mix}}\to\inftytmix(n)​→∞, if tmix(n)≤C trel(n)t^{(n)}_{\mathrm{mix}}\le C\,t^{(n)}_{\mathrm{rel}}tmix(n)​≤Ctrel(n)​ for a fixed constant CCC, the family has no cutoff: trel=o(tmix)t_{\mathrm{rel}}=o(t_{\mathrm{mix}})trel​=o(tmix​) is necessary.
  • Theorem 18.8 — the lazy hypercube walk has a separation cutoff at nlog⁡nn\log nnlogn with window nnn — at twice the total-variation cutoff time.
  • Lemma 19.3 (Aldous–Diaconis) — the separation–total-variation relation s(2t)≤1−(1−dˉ(t))2s(2t)\le1-\bigl(1-\bar d(t)\bigr)^2s(2t)≤1−(1−dˉ(t))2 for reversible chains.
  • Theorem 19.1 — for lamplighter chains over a growing family of connected graphs, trel(Gn∗)≍thit(Gn)t_{\mathrm{rel}}(G_n^\ast)\asymp t_{\mathrm{hit}}(G_n)trel​(Gn∗​)≍thit​(Gn​): the relaxation time is comparable, with universal constants, to the maximal hitting time of the base walk.
  • Theorem 19.2 — likewise tmix(Gn∗)≍tcov(Gn)t_{\mathrm{mix}}(G_n^\ast)\asymp t_{\mathrm{cov}}(G_n)tmix​(Gn∗​)≍tcov​(Gn​): the lamplighter's mixing time is governed by the base walk's cover time.

Significance

The results. Cutoff is the deepest phenomenon in the quantitative theory of Markov chains: it says mixing is a phase transition in time. The hypercube is the fundamental example where everything can be computed — the eigenvalue structure of Mission VII delivers the upper bound and a refined distinguishing-statistic argument (Mission IV) the lower — and the 12nlog⁡n\tfrac12 n\log n21​nlogn location with window nnn is the sharpest statement of the coupon-collector heuristic. The product condition 18.4 is the basic sanity criterion in the ongoing research program of characterizing cutoff. The lamplighter theorems tie together the entire series: hitting times (Mission VI), cover times (Mission VI), relaxation times (Mission VII), and separation (Missions III, XI) all meet in one family of chains that furnishes counterexamples — for instance, families with total-variation cutoff but no separation cutoff.

Formalizing them. Nothing about cutoff exists in any proof assistant. The definitions themselves (families of chains, windows, limsup/liminf in a real parameter) are a formalization contribution: they force precision about quantifier order that informal texts elide. The hypercube cutoff is a landmark target — a sharp two-sided asymptotic statement, not an inequality.

Difficulty

The upper half of the hypercube cutoff needs the full eigenvalue decomposition of the walk (λj=1−j/n\lambda_j=1-j/nλj​=1−j/n with multiplicity (nj)\binom nj(jn​), via Mission VII's spectral representation) and the ℓ2\ell^2ℓ2 bound summed over binomial coefficients; the lower half needs the Hamming-weight distinguishing statistic pushed to second-order precision (mean and variance at time 12nlog⁡n+αn\tfrac12 n\log n+\alpha n21​nlogn+αn). Proposition 18.4 converts an eigenfunction with eigenvalue near 111 into a quantitative anti-concentration statement — the formal content of "a bounded ratio forbids abrupt collapse". Theorem 18.2 rests on a central-limit-flavoured estimate for the biased walk's position, done with fourth-moment bounds rather than the CLT. The lamplighter theorems are the heaviest: the upper bounds couple lamp refreshment with the cover-time of the base walk, the lower bounds run separation-distance and eigenfunction arguments, and all four inequalities must hold with universal constants over an arbitrary growing graph family — the statements quantify over the family, so the proofs must too. The asymptotic language throughout (liminf/limsup over nnn, limits in the window parameter α\alphaα) exercises the filter library in earnest.

Formalization scope

Families are dependent functions ∀ n, Matrix (V n) (V n) ℝ over a sequence of finite state-space types. Cutoff and windows are rendered exactly by the book's Eq. (18.3) and §18.1: the window definition uses Filter.liminf/limsup over nnn composed with limits in the real parameter α\alphaα (through ⌊t n + α w n⌋₊, with the natural-floor convention on negative reals). The mixing-time ratio in the cutoff definition uses real division of the natural-valued mixing times (total division: the hypotheses keep denominators eventually positive). The biased walk's stationary distribution is passed as a hypothesis rather than a closed form. In the lamplighter theorems the comparability constants c1,c2c_1,c_2c1​,c2​ and the threshold NNN are existentially quantified, with the graph family and its connectivity as hypotheses; the lamplighter matrix and its product stationary distribution are explicit definitions. Lemma 19.3 is stated for a single reversible chain at all times ttt.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • D. Aldous, P. Diaconis, Shuffling cards and stopping times, Amer. Math. Monthly 93 (1986). https://doi.org/10.1080/00029890.1986.11971821
  • P. Diaconis, The cutoff phenomenon in finite Markov chains, Proc. Natl. Acad. Sci. USA 93 (1996). https://doi.org/10.1073/pnas.93.4.1659
  • Y. Peres, D. Revelle, Mixing times for random walks on finite lamplighter groups, Electron. J. Probab. 9 (2004). https://doi.org/10.1214/EJP.v9-198
18 thms6 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times X: Martingales and Evolving SetsTextbook

Motivation

Every mixing bound in Missions II–IX ultimately leaned on either coupling or the spectrum, and the spectral route demanded reversibility. Chapter 17 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) opens a third route: martingales — processes whose conditional expected increment vanishes — and the beautiful evolving-set process of Morris and Peres built from them. The payoff theorem of the chapter bounds the mixing time of any lazy irreducible chain by its bottleneck constant, with no reversibility hypothesis anywhere — an honest strengthening of the spectral route through the Cheeger inequality, whose proof is a martingale analysis of a random sequence of sets growing and shrinking under the chain's flow. The same chapter proves the optional stopping theorem in the exact discrete form the rest of the series consumes, and applies the machinery to sharp return-probability estimates for lazy walks.

Setting

Throughout, PPP is a chain on a finite state space VVV with stationary distribution π\piπ; ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_{A}|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣, d(t)=max⁡x∥Pt(x,⋅)−π∥TVd(t)=\max_x\|P^t(x,\cdot)-\pi\|_{TV}d(t)=maxx​∥Pt(x,⋅)−π∥TV​, and tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t:d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε} as in the earlier missions; πmin⁡=min⁡xπ(x)\pi_{\min}=\min_x\pi(x)πmin​=minx​π(x). The chain is lazy when P(x,x)≥12P(x,x)\ge\tfrac12P(x,x)≥21​ at every state.

A martingale adapted to the chain is a family MtM_tMt​ of functions of the trajectory up to time ttt such that the conditional expectation of Mt+1M_{t+1}Mt+1​, given the trajectory so far, equals MtM_tMt​ — for a finite chain, a pointwise finite-sum identity. A stopping time τ\tauτ is a {0,1}\{0,1\}{0,1}-valued stopping rule in the sense of Mission III: whether to stop at time ttt depends only on the trajectory up to ttt.

From Mission IV: the edge measure is Q(x,y)=π(x)P(x,y)Q(x,y)=\pi(x)P(x,y)Q(x,y)=π(x)P(x,y), with Q(S,y)=∑x∈SQ(x,y)Q(S,y)=\sum_{x\in S}Q(x,y)Q(S,y)=∑x∈S​Q(x,y), and the bottleneck constant Φ⋆\Phi_\starΦ⋆​ is the minimum over sets SSS with 0<π(S)≤120<\pi(S)\le\tfrac120<π(S)≤21​ of Φ(S)=Q(S,Sc)/π(S)\Phi(S)=Q(S,S^c)/\pi(S)Φ(S)=Q(S,Sc)/π(S). The evolving-set process is the Markov chain on subsets of VVV in which, from the current set SSS, one draws uuu uniform on (0,1](0,1](0,1] and passes to the superlevel set

S′={y  :  Q(S,y)π(y)≥u}S'=\Bigl\{y\;:\;\frac{Q(S,y)}{\pi(y)}\ge u\Bigr\}S′={y:π(y)Q(S,y)​≥u}

— states currently receiving a large share of the flow out of SSS are likely to join, states receiving little are likely to leave.

Formalization targets

Goal

Theorem 17.10 (Morris–Peres), the capstone of Chapter 17: for any lazy irreducible chain — reversibility not assumed —

tmix(ε)  ≤  2Φ⋆2 log⁡ ⁣(1ε πmin⁡).t_{\mathrm{mix}}(\varepsilon)\;\le\;\frac{2}{\Phi_\star^{2}}\,\log\!\Bigl(\frac{1}{\varepsilon\,\pi_{\min}}\Bigr).tmix​(ε)≤Φ⋆2​2​log(επmin​1​).

Milestones

  • Corollary 17.7, the Optional Stopping Theorem — if MMM is a martingale adapted to the chain, bounded uniformly by a constant, and τ\tauτ is an almost surely finite stopping time, then Ex(Mτ)=M0(x)\mathbb E_x(M_\tau)=M_0(x)Ex​(Mτ​)=M0​(x): stopping a fair game at a fair time wins nothing.
  • Lemma 17.12 — the evolving-set process, started from the singleton {x}\{x\}{x}, recovers the chain: Pt(x,y)=π(y)π(x) P{x}{y∈St}P^t(x,y)=\dfrac{\pi(y)}{\pi(x)}\,\mathbb P_{\{x\}}\{y\in S_t\}Pt(x,y)=π(x)π(y)​P{x}​{y∈St​}.
  • Lemma 17.13 — for the evolving-set process, the stationary mass π(St)\pi(S_t)π(St​) of the current set is a martingale.
  • Theorem 17.17 — return probabilities of the lazy random walk on a graph of maximum degree Δ\DeltaΔ: ∣Pt(x,x)−π(x)∣≤2 Δ5/2/t\bigl|P^t(x,x)-\pi(x)\bigr|\le\sqrt2\,\Delta^{5/2}/\sqrt t​Pt(x,x)−π(x)​≤2​Δ5/2/t​, an application of the evolving-set machinery.

Significance

The results. The optional stopping theorem is the workhorse identity of discrete probability — the earlier missions' gambler's-ruin and hitting-time computations are all instances, and Missions XI–XII cite it again. The Morris–Peres theorem is the strongest known elementary relation between geometry and mixing: for reversible chains it recovers the Cheeger-based bound tmix≲Φ⋆−2log⁡(1/πmin⁡)t_{\mathrm{mix}}\lesssim\Phi_\star^{-2}\log(1/\pi_{\min})tmix​≲Φ⋆−2​log(1/πmin​) of Mission VII, but it needs no reversibility, and its proof technique — controlling the root π(St)\sqrt{\pi(S_t)}π(St​)​ as a supermartingale — introduced evolving sets as a tool that has since produced heat-kernel decay, isoperimetric mixing profiles, and bounds for non-reversible and time-inhomogeneous chains well beyond the book.

Formalizing them. Mathlib's martingale library lives in measure-theoretic generality; this mission's chain-adapted martingales are self-contained finite objects (families of functions on trajectory spaces), so the optional stopping theorem here is independent of, and complementary to, the measure-theoretic one. Evolving sets exist in no proof assistant; the process is a genuinely novel formalization target — a Markov chain whose states are Finsets, defined through interval lengths of a uniform variable.

Difficulty

The optional stopping theorem needs the dominated-convergence step (bounded martingale, a.s. finite time) rendered as an elementary tail estimate — the series ∑tP{τ=t} Mt\sum_t\mathbb P\{\tau=t\}\,M_t∑t​P{τ=t}Mt​ must be shown summable and equal to M0M_0M0​ by an exchange of finite sums with a limit. The evolving-set transition probabilities are interval lengths: the probability of passing from SSS to TTT is the length of the set of u∈(0,1]u\in(0,1]u∈(0,1] whose superlevel set is exactly TTT, which the formalization encodes by explicit upper and lower thresholds (a min over TTT and a max over TcT^cTc of the clipped ratios Q(S,y)/π(y)Q(S,y)/\pi(y)Q(S,y)/π(y)); establishing that these lengths sum to one over TTT, and that the process has the two martingale properties, is delicate finite-order-statistics reasoning. The goal theorem then runs a supermartingale argument on π(St)\sqrt{\pi(S_t)}π(St​)​: laziness keeps the thresholds in [12,1][\tfrac12,1][21​,1], an expansion estimate converts the bottleneck constant into a per-step multiplicative decay of Eπ(St)(1−π(St))\mathbb E\sqrt{\pi(S_t)\bigl(1-\pi(S_t)\bigr)}Eπ(St​)(1−π(St​))​, and Lemma 17.12 converts that decay into a total-variation bound. Theorem 17.17 composes the same machinery with a Cauchy–Schwarz step. None of this exists in any library; the auxiliary supermartingale lemmas are welcome as separate contributions.

Formalization scope

Martingales, stopping times, and stopped expectations are the trajectory-calculus objects of Missions I and III: finite sums over paths weighted by ∏P(ωi,ωi+1)\prod P(\omega_i,\omega_{i+1})∏P(ωi​,ωi+1​), with expectations over the stopping time as tsums in ttt (non-summable families sum to 000; the a.s.-finiteness hypothesis is the statement that the stopping mass sums to 111). The evolving-set matrix is defined by the clipped-threshold formula described above — an explicit real matrix on Finset V — and the goal and lemmas assume π\piπ positive and PPP lazy exactly where the book does. Theorem 17.17 is stated for the lazy walk on a connected graph with positive degrees, with π(x)=deg⁡(x)/2∣E∣\pi(x)=\deg(x)/2|E|π(x)=deg(x)/2∣E∣ written out. Real-valued bounds on the natural-valued tmixt_{\mathrm{mix}}tmix​ are direct inequalities on the cast, with no hidden rounding.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • B. Morris, Y. Peres, Evolving sets, mixing and heat kernel bounds, Probab. Theory Related Fields 133 (2005). https://doi.org/10.1007/s00440-005-0434-7
  • D. Williams, Probability with Martingales, Cambridge University Press, 1991. https://doi.org/10.1017/CBO9780511813658
12 thms6 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times IX: The Ising ModelTextbook

Motivation

The Ising model is statistical mechanics' fruit fly: spins ±1\pm1±1 on the vertices of a graph, neighbours preferring to agree, a single parameter — the inverse temperature β\betaβ — tuning the strength of that preference. Chapter 15 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) studies the Glauber dynamics for this model and exhibits, on concrete graphs, the phenomenon that made mixing times a subject: a dynamical phase transition. At high temperature (small β\betaβ) the dynamics mixes in O(nlog⁡n)O(n\log n)O(nlogn) steps on any bounded-degree graph; on the complete graph the same dynamics passes, as β\betaβ crosses an explicit threshold, from O(nlog⁡n)O(n\log n)O(nlogn) mixing to exponentially slow mixing. The chapter also introduces two comparison tools of independent value — the sensitivity of the spectral gap to edge removal, and the block dynamics comparison — and the Kenyon–Mossel–Peres bound for trees, all formalized in this mission.

Setting

Spin configurations on a finite graph GGG with vertex set of size nnn and maximum degree Δ\DeltaΔ are functions σ\sigmaσ assigning ±1\pm1±1 to each vertex (encoded over Booleans, true↦+1\mathrm{true}\mapsto+1true↦+1). The Ising model at inverse temperature β>0\beta>0β>0 is the Gibbs distribution

π(σ)  =  e β∑{v,w}∈Eσ(v)σ(w)Z(β),\pi(\sigma)\;=\;\frac{e^{\,\beta\sum_{\{v,w\}\in E}\sigma(v)\sigma(w)}}{Z(\beta)},π(σ)=Z(β)eβ∑{v,w}∈E​σ(v)σ(w)​,

each edge counted once, Z(β)Z(\beta)Z(β) the normalizing partition function. The Glauber dynamics for π\piπ picks a uniform vertex and re-samples its spin from π\piπ conditioned on all other spins — concretely, the new spin at vvv is +1+1+1 with probability (1+tanh⁡(βS))/2\bigl(1+\tanh(\beta S)\bigr)/2(1+tanh(βS))/2 where SSS is the sum of the neighbouring spins.

The yardsticks are as in the earlier missions: ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣ is the total variation distance, d(t)=max⁡σ∥Pt(σ,⋅)−π∥TVd(t)=\max_\sigma\|P^t(\sigma,\cdot)-\pi\|_{TV}d(t)=maxσ​∥Pt(σ,⋅)−π∥TV​, and tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t:d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε}. From Mission VII: an eigenvalue of a chain is a real λ\lambdaλ with Pf=λfPf=\lambda fPf=λf for some nonzero fff; λ2\lambda_2λ2​ is the largest eigenvalue ≠1\ne1=1, the spectral gap is γ=1−λ2\gamma=1-\lambda_2γ=1−λ2​, λ⋆\lambda_\starλ⋆​ the largest ∣λ∣|\lambda|∣λ∣ over eigenvalues ≠1\ne1=1, and the relaxation time is trel=(1−λ⋆)−1t_{\mathrm{rel}}=(1-\lambda_\star)^{-1}trel​=(1−λ⋆​)−1.

Formalization targets

Goal

Theorem 15.1, the high-temperature fast-mixing theorem: if Δtanh⁡β<1\Delta\tanh\beta<1Δtanhβ<1 then the Glauber dynamics on any graph satisfies

tmix(ε)  ≤  ⌈n (log⁡n+log⁡(1/ε))1−Δtanh⁡β⌉,t_{\mathrm{mix}}(\varepsilon)\;\le\;\Bigl\lceil\frac{n\,\bigl(\log n+\log(1/\varepsilon)\bigr)}{1-\Delta\tanh\beta}\Bigr\rceil,tmix​(ε)≤⌈1−Δtanhβn(logn+log(1/ε))​⌉,

together with its refinement for graphs with all degrees even, where the condition relaxes to (Δ/2)tanh⁡(2β)<1(\Delta/2)\tanh(2\beta)<1(Δ/2)tanh(2β)<1.

Milestones

  • Lemma 15.2 (the tanh lemma) — the elementary inequalities about x↦tanh⁡(β(x+1))−tanh⁡(β(x−1))x\mapsto\tanh(\beta(x+1))-\tanh(\beta(x-1))x↦tanh(β(x+1))−tanh(β(x−1)) (symmetry, monotonicity, the bounds by 2tanh⁡β2\tanh\beta2tanhβ and, at odd integers, by tanh⁡2β\tanh 2\betatanh2β) that drive the one-site coupling contraction.
  • Theorem 15.3 — the dynamical phase transition on the complete graph at β=α/n\beta=\alpha/nβ=α/n: (i) for α<1\alpha<1α<1, tmix(ε)≤n(log⁡n+log⁡(1/ε))/(1−α)t_{\mathrm{mix}}(\varepsilon)\le n(\log n+\log(1/\varepsilon))/(1-\alpha)tmix​(ε)≤n(logn+log(1/ε))/(1−α); (ii) for α>1\alpha>1α>1, there are r(α),C>0r(\alpha),C>0r(α),C>0 with tmix≥C ernt_{\mathrm{mix}}\ge C\,e^{r n}tmix​≥Cern — split here into a fast half and a slow half.
  • Theorem 15.4 — on the nnn-cycle, at every β>0\beta>0β>0, mixing is nlog⁡nn\log nnlogn up to explicit constants: (1+o(1)) nlog⁡n2cO(β)≤tmix(ε)≤(1+o(1)) nlog⁡ncO(β)(1+o(1))\,\frac{n\log n}{2c_O(\beta)}\le t_{\mathrm{mix}}(\varepsilon)\le(1+o(1))\,\frac{n\log n}{c_O(\beta)}(1+o(1))2cO​(β)nlogn​≤tmix​(ε)≤(1+o(1))cO​(β)nlogn​ with cO(β)=1−tanh⁡(2β)c_O(\beta)=1-\tanh(2\beta)cO​(β)=1−tanh(2β).
  • Theorem 15.6 (Kenyon–Mossel–Peres) — on the rooted bbb-ary tree of depth kkk with nkn_knk​ vertices, the relaxation time is polynomial at every temperature: trel≤nk cT(β,b)t_{\mathrm{rel}}\le n_k^{\,c_T(\beta,b)}trel​≤nkcT​(β,b)​ with cT(β,b)=2β(3b+1)/log⁡b+1c_T(\beta,b)=2\beta(3b+1)/\log b+1cT​(β,b)=2β(3b+1)/logb+1.
  • Proposition 15.7 — removing rrr edges changes the spectral gap of the Glauber dynamics by at most a factor e2β(Δ+2r)e^{2\beta(\Delta+2r)}e2β(Δ+2r).
  • Theorem 15.9 — the block-dynamics comparison: if blocks V1,…,VbV_1,\dots,V_bV1​,…,Vb​ cover the vertex set, each of size at most MMM, each vertex in at most M⋆M_\starM⋆​ blocks, then the spectral gap γB\gamma_BγB​ of the block dynamics and the gap γ\gammaγ of the single-site dynamics satisfy γB≤M2M⋆ (4e2βΔ)M+1 γ\gamma_B\le M^2M_\star\,(4e^{2\beta\Delta})^{M+1}\,\gammaγB​≤M2M⋆​(4e2βΔ)M+1γ.

Significance

The results. Theorem 15.1 is the standard fast-mixing criterion for Glauber dynamics, and the model application of the path-coupling technique of Mission VIII. Theorem 15.3 exhibits, in the cleanest possible setting, the correspondence between the static phase transition of the mean-field Ising model and the dynamical transition of its Glauber dynamics — the phenomenon at the heart of Markov-chain approaches to statistical physics. The tree bound of Kenyon–Mossel–Peres and the block-dynamics comparison are the standard tools for spatially structured spin systems; block dynamics in particular is the engine of recursive gap bounds on trees and lattices.

Formalizing them. Nothing about the Ising model, Gibbs distributions, or Glauber dynamics exists in Mathlib. The Gibbs-distribution layer (weights, partition functions, conditional single-site laws with their tanh⁡\tanhtanh closed forms) is foundational for any future formalization of statistical mechanics; the phase-transition theorem 15.3(ii) would be, to our knowledge, the first formalized instance of exponentially slow mixing driven by an energy barrier.

Difficulty

The high-temperature theorem is path coupling (Mission VIII) plus the tanh lemma: the one-site coupling of two adjacent configurations contracts the Hamming metric at rate 1−(1−Δtanh⁡β)/n1-\bigl(1-\Delta\tanh\beta\bigr)/n1−(1−Δtanhβ)/n, and every analytic input is in Lemma 15.2 — which is why that elementary lemma is a milestone of its own. The slow-mixing half of Theorem 15.3 runs through the bottleneck bound of Mission IV: the magnetization performs a one-dimensional walk in a double-well free-energy landscape, and the bottleneck at zero magnetization has exponentially small stationary mass — a large-deviations estimate carried out with binomial coefficients. The cycle's lower bound needs Wilson's method (Mission VII) with an explicit eigenfunction. The tree and block theorems are exercises in the comparison technology of Mission VII (Dirichlet forms, canonical paths through block updates); their constants are crude but the inductive structure is delicate. Everything sits on the subtlety that the state space {±1}V\{\pm1\}^V{±1}V has size 2n2^n2n, so all "polynomial" bounds are polynomial in nnn, not in the size of the state space.

Formalization scope

The Gibbs distribution is defined by explicit finite sums (weight over partition function, total division); no positivity side conditions are needed since the weights are exponentials. The Glauber dynamics is the generic single-site heat bath of Mission II applied to the Ising distribution, so the tanh⁡\tanhtanh closed form is a provable lemma, not a definition. Asymptotic statements (o(1)o(1)o(1), "for sufficiently large nnn") are rendered with explicit ∃N,∀n≥N\exists N,\forall n\ge N∃N,∀n≥N quantifiers and a free precision parameter δ\deltaδ; the phase-transition constants r(α),Cr(\alpha),Cr(α),C are existentially quantified. The tree is encoded as words of length ≤k\le k≤k over an alphabet of size bbb; the block dynamics re-samples a uniformly chosen block from the conditional Gibbs distribution, with the convention that a conditioning of zero mass yields a zero row (total division), which the theorems' hypotheses exclude on the support. The even-degree refinement of the goal is stated as a second conjunct with its own hypothesis.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • C. Kenyon, E. Mossel, Y. Peres, Glauber dynamics on trees and hyperbolic graphs, FOCS 2001. https://doi.org/10.1109/SFCS.2001.959934
  • D. A. Levin, M. J. Luczak, Y. Peres, Glauber dynamics for the mean-field Ising model: cut-off, critical power law, and metastability, Probab. Theory Related Fields 146 (2010). https://doi.org/10.1007/s00440-008-0189-z
  • F. Martinelli, Lectures on Glauber dynamics for discrete spin models, Lectures on Probability Theory and Statistics (Saint-Flour XXVII), Springer, 1999. https://doi.org/10.1007/978-3-540-48115-7_2
17 thms6 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times V: Shuffling CardsTextbook

Motivation

How many shuffles does a deck of cards need? The question created the modern theory of mixing times: Diaconis and Shahshahani's analysis of random transpositions (1981) and the Bayer–Diaconis "seven shuffles suffice" analysis of the riffle shuffle (1992) are its founding results. Chapters 8 and 16 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) treat the four standard shuffles: random transpositions (pick two cards, swap them), the riffle shuffle (cut and interleave, the Gilbert–Shannon–Reeds model), random adjacent transpositions, and the LLL-reversal chain of segment reversals — the last motivated by genome rearrangement, where a chromosome evolves by reversing segments and the mixing time measures evolutionary distance ("from shuffling cards to shuffling genes").

Setting

All four chains are random walks on a symmetric group; decks are encoded as in Mission III, an arrangement being a permutation with position 000 on top. Random transpositions have increment distribution μ(id)=1/n\mu(\mathrm{id})=1/nμ(id)=1/n, μ(transposition)=2/n2\mu(\text{transposition})=2/n^2μ(transposition)=2/n2. The lazy adjacent-transposition walk puts mass 1/21/21/2 on the identity and 1/[2(n−1)]1/[2(n-1)]1/[2(n−1)] on each (i i+1)(i\ i{+}1)(i i+1). One inverse riffle shuffle assigns each card an independent uniform bit and moves the cards labeled 000 to the top, preserving relative order; the (forward) riffle shuffle is its time reversal, given by transposing the inverse-shuffle matrix (the stationary distribution being uniform). The LLL-reversal chain on circular arrangements indexed by Zn\mathbb Z_nZn​ picks a position iii and a length k<Lk<Lk<L uniformly and reverses the segment [i,i+k][i,i+k][i,i+k].

Formalization targets

Goal

tmix  ≤  (2+o(1)) nlog⁡nt_{\mathrm{mix}}\;\le\;(2+o(1))\,n\log ntmix​≤(2+o(1))nlogn

for random transpositions on nnn cards (Corollary 8.10), formalized as: for every δ>0\delta>0δ>0 there is NNN with tmix≤(2+δ)nlog⁡nt_{\mathrm{mix}}\le(2+\delta)n\log ntmix​≤(2+δ)nlogn for all n≥Nn\ge Nn≥N.

Milestones

Proposition 8.11 (random transpositions lower bound tmix(ε)≥n−12log⁡((1−ε)n6)t_{\mathrm{mix}}(\varepsilon)\ge\frac{n-1}{2}\log\bigl(\frac{(1-\varepsilon)n}{6}\bigr)tmix​(ε)≥2n−1​log(6(1−ε)n​), via fixed points); Proposition 8.13 (riffle shuffle: tmix≤2log⁡2(4n/3)+1t_{\mathrm{mix}}\le 2\log_2(4n/3)+1tmix​≤2log2​(4n/3)+1); Proposition 8.14 (riffle shuffle: tmix(ε)≥(1−δ)log⁡2nt_{\mathrm{mix}}(\varepsilon)\ge(1-\delta)\log_2 ntmix​(ε)≥(1−δ)log2​n for large nnn, by the counting bound of Mission IV); the random adjacent transpositions upper bound tmix(ε)≤2n3log⁡2nt_{\mathrm{mix}}(\varepsilon)\le 2n^3\log_2 ntmix​(ε)≤2n3log2​n for large nnn (§16.1.2, display (16.4)) and lower bound tmix≥n2(n−1)/16t_{\mathrm{mix}}\ge n^2(n-1)/16tmix​≥n2(n−1)/16 (§16.1.3, by following a single card); and Proposition 16.2 (the LLL-reversal chain with L<n/2L<n/2L<n/2 satisfies d((1−ε)n2log⁡n)→1d\bigl((1-\varepsilon)\frac n2\log n\bigr)\to1d((1−ε)2n​logn)→1, via conserved adjacencies).

Significance

The results. Random transpositions at 12nlog⁡n\frac12 n \log n21​nlogn (the constant 222 here is not sharp; the sharp constant is part of the celebrated Diaconis–Shahshahani cutoff) and riffle at 32log⁡2n\frac32\log_2 n23​log2​n are the emblematic mixing results outside of spin systems; the riffle bound is the mathematical content of "seven shuffles suffice" for n=52n=52n=52. The adjacent-transposition walk at order n3log⁡nn^3\log nn3logn is the basic example where geometry (diameter (n2)\binom n2(2n​)) forces polynomial mixing. The LLL-reversal lower bound is the quantitative starting point of the biological application.

Formalizing them. Random walks on symmetric groups and their mixing are entirely absent from Mathlib; so are the combinatorial devices these proofs run on — the Broder stopping time, rising sequences and the Eulerian-number analysis of riffle shuffles, single-card projections, conserved adjacencies. The riffle shuffle formalization via bit strings and the stable-sort permutation Tuple.sort gives a clean combinatorial model reusable for the cutoff analysis of Mission XI.

Difficulty

Corollary 8.10's route is the Broder strong stationary time: mark cards under a card-and-position scheme and prove that, conditioned on the marked set and its positions, the marked cards are uniformly ordered — an exchangeability induction on top of Mission III's stopping-rule framework; then the coupon-collector-style tail with an extra log⁡n\log nlogn factor. Proposition 8.11 requires the fixed-point statistic: the expected number of untouched cards after ttt transpositions and a second-moment bound, fed into Proposition 7.8. The riffle upper bound runs through inverse shuffles: after ttt inverse shuffles the deck is a uniform stable sort of ttt-bit labels, and mixing reduces to the birthday problem for 2t2^t2t labels; formalizing "distinct labels imply uniform order" is the crux. The LLL-reversal lower bound needs a second-moment argument for the number of conserved adjacencies with the exact variance bookkeeping of the book. Throughout, the walk-on-group conventions (left vs right increments, forward vs inverse shuffle) are the classic source of silent errors; the formal statements pin them.

Formalization scope

All chains are explicit matrices on Equiv.Perm (Fin n) (or Equiv.Perm (ZMod n) for the circular LLL-reversal chain); increments act on the left, matching Mission I's group-walk convention. The riffle shuffle is defined as the transpose-reversal of the explicit inverse-riffle matrix — the two have equal distance to uniformity by Lemma 4.13 (Mission II), which a solver may use rather than re-derive. Asymptotic statements (o(1)o(1)o(1), "for sufficiently large nnn") are spelled out with explicit ∀δ ∃N\forall\delta\,\exists N∀δ∃N quantifiers; upper bounds carry a +1+1+1 where integer rounding requires it. The LLL-reversal family takes the length function L(n)L(n)L(n) as a hypothesis-carrying parameter with 1≤L(n)<n/21\le L(n)<n/21≤L(n)<n/2, and its lower bound is a genuine limit statement (Tendsto, distance to stationarity tending to 111).

Welcome contributions: exchangeability and projection lemmas for deck chains; Eulerian/rising-sequence counting; the single-card chain projection (reused for Mission XI's cutoff examples).

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • P. Diaconis, M. Shahshahani, Generating a random permutation with random transpositions, Z. Wahrsch. Verw. Gebiete 57 (1981). https://doi.org/10.1007/BF00535487
  • D. Bayer, P. Diaconis, Trailing the dovetail shuffle to its lair, Ann. Appl. Probab. 2 (1992). https://doi.org/10.1214/aoap/1177005705
  • R. Durrett, Shuffling chromosomes, J. Theoret. Probab. 16 (2003). https://doi.org/10.1023/A:1024940217006
19 thms6 active usersReviewed
🏆Completed
Operations ResearchStochastic Systems·Captain: mikedeng1

Designing a Call Center with Impatient Customers I: The Steady-State Fraction of Abandoning Callers Tends to max(0, 1 − 1/ρ) as the Number of Agents GrowsResearch Paper

Why abandonment matters in call centers

Telephone call centers are among the largest employers of service labour, and their staffing decisions are made with queueing models. The classical model is the Erlang-C queue M/M/NM/M/NM/M/N: Poisson arrivals, NNN agents, exponential service, infinitely patient callers. Real callers hang up. Garnett, Mandelbaum and Reiman (M&SOM 2002) argued that a model ignoring abandonment is misleading exactly in the regime where large call centers operate, near full utilization: the Erlang-C queue is unstable when the offered load exceeds the number of agents, while a real center simply loses the excess callers. They advocated the Erlang-A queue M/M/N+MM/M/N+MM/M/N+M, in which each caller also has an exponential patience, and developed its many-server asymptotics.

The first of their asymptotic results, Theorem 1 of the paper, settles the most basic performance measure, the fraction of callers who abandon, to first order as the center grows. Its proof combines a utilization argument with two monotonicity properties proved by Bhattacharya and Ephremides (1991) and an asymptotic expansion of Erlang's loss formula due to Jagerman (1974).

The Erlang-A queue

Callers arrive as a Poisson process of rate λ>0\lambda>0λ>0. There are N≥1N\ge1N≥1 statistically identical agents, each serving one caller at a time with exponentially distributed service times of rate μ>0\mu>0μ>0. The waiting room is unlimited and is served in order of arrival. Each caller carries a patience, an exponential random variable of rate θ>0\theta>0θ>0 independent of everything else; a caller whose wait in queue reaches his patience abandons and does not return.

The number of callers in the system, QQQ, is a birth–death process with birth rate λ\lambdaλ in every state and death rate

μk=min⁡(k,N) μ+(k−N)+ θ\mu_k=\min(k,N)\,\mu+(k-N)^+\,\thetaμk​=min(k,N)μ+(k−N)+θ

in state kkk. Its stationary distribution (Appendix B of the paper, with infinite buffer) is

πk=(λ/μ)kk! π0 (0≤k≤N),πk=∏j=N+1kλNμ+(j−N)θ⋅(λ/μ)NN! π0 (k>N),\pi_k=\frac{(\lambda/\mu)^k}{k!}\,\pi_0\ (0\le k\le N),\qquad \pi_k=\prod_{j=N+1}^{k}\frac{\lambda}{N\mu+(j-N)\theta}\cdot\frac{(\lambda/\mu)^N}{N!}\,\pi_0\ (k>N),πk​=k!(λ/μ)k​π0​ (0≤k≤N),πk​=j=N+1∏k​Nμ+(j−N)θλ​⋅N!(λ/μ)N​π0​ (k>N),

with π0\pi_0π0​ normalizing. The abandonment probability PN{Ab}P_N\{Ab\}PN​{Ab} is the probability that a caller arriving in steady state abandons. An arrival finding N+nN+nN+n callers in the system abandons with probability (n+1)θ/(Nμ+(n+1)θ)(n+1)\theta/(N\mu+(n+1)\theta)(n+1)θ/(Nμ+(n+1)θ), so

PN{Ab}=∑n≥0πN+n (n+1)θNμ+(n+1)θ.P_N\{Ab\}=\sum_{n\ge0}\pi_{N+n}\,\frac{(n+1)\theta}{N\mu+(n+1)\theta}.PN​{Ab}=n≥0∑​πN+n​Nμ+(n+1)θ(n+1)θ​.

The blocking probability PN{Bl}P_N\{Bl\}PN​{Bl} of the loss system M/M/N/NM/M/N/NM/M/N/N with the same rates is Erlang's formula E(λ/μ,N)=(λ/μ)N/N!∑j=0N(λ/μ)j/j!E(\lambda/\mu,N)=\dfrac{(\lambda/\mu)^N/N!}{\sum_{j=0}^{N}(\lambda/\mu)^j/j!}E(λ/μ,N)=∑j=0N​(λ/μ)j/j!(λ/μ)N/N!​.

The asymptotic regime. The NNN-th system has NNN agents, arrival rate λN\lambda_NλN​, service rate μ\muμ independent of NNN, and patience rate θN\theta_NθN​. As in §4 of the paper, λN→∞\lambda_N\to\inftyλN​→∞ and θN→θ∈(0,∞)\theta_N\to\theta\in(0,\infty)θN​→θ∈(0,∞). The traffic intensity is ρN=λN/(Nμ)\rho_N=\lambda_N/(N\mu)ρN​=λN​/(Nμ).

Formalization targets

Goal: Theorem 1 (p. 215)

If ρN→ρ∞\rho_N\to\rho_\inftyρN​→ρ∞​ for some 0≤ρ∞≤∞0\le\rho_\infty\le\infty0≤ρ∞​≤∞, then

lim⁡N→∞PN{Ab}={0,0≤ρ∞≤1,1−1/ρ∞,ρ∞>1,\lim_{N\to\infty}P_N\{Ab\}=\begin{cases}0,&0\le\rho_\infty\le1,\\ 1-1/\rho_\infty,&\rho_\infty>1,\end{cases}N→∞lim​PN​{Ab}={0,1−1/ρ∞​,​0≤ρ∞​≤1,ρ∞​>1,​

with 1−1/∞=11-1/\infty=11−1/∞=1. The limit does not depend on θ\thetaθ.

Milestones

  1. The explicit π\piπ is the unique steady state of the Erlang-A birth–death process (Appendix B).
  2. Equation (2): θ E[# waiting]=λP{Ab}\theta\,E[\#\text{ waiting}]=\lambda P\{Ab\}θE[# waiting]=λP{Ab}.
  3. Utilization below one: λN(1−PN{Ab})<Nμ\lambda_N(1-P_N\{Ab\})<N\muλN​(1−PN​{Ab})<Nμ.
  4. Property (ii): PN{Ab}P_N\{Ab\}PN​{Ab} is increasing in θ\thetaθ.
  5. PN{Ab}→PN{Bl}P_N\{Ab\}\to P_N\{Bl\}PN​{Ab}→PN​{Bl} as θ→∞\theta\to\inftyθ→∞.
  6. PN{Ab}≤PN{Bl}P_N\{Ab\}\le P_N\{Bl\}PN​{Ab}≤PN​{Bl} for every 0<θ<∞0<\theta<\infty0<θ<∞.
  7. Erlang's formula is increasing in the offered load (published and proved: KellyStochasticNetworks.erlang_strictMono).
  8. Jagerman's expansion (10) of PN{Bl}P_N\{Bl\}PN​{Bl} for λN=Nμρ∞\lambda_N=N\mu\rho_\inftyλN​=Nμρ∞​, ρ∞>1\rho_\infty>1ρ∞​>1, as an asymptotic equivalence.
  9. If λN=Nμρ∞+o(N)\lambda_N=N\mu\rho_\infty+o(N)λN​=Nμρ∞​+o(N) with ρ∞>1\rho_\infty>1ρ∞​>1, then PN{Bl}→1−1/ρ∞P_N\{Bl\}\to1-1/\rho_\inftyPN​{Bl}→1−1/ρ∞​ and lim sup⁡NPN{Ab}≤1−1/ρ∞\limsup_N P_N\{Ab\}\le 1-1/\rho_\inftylimsupN​PN​{Ab}≤1−1/ρ∞​.
  10. Property (i): PN{Ab}P_N\{Ab\}PN​{Ab} is increasing in λ\lambdaλ.

Significance

Theorem 1 is the law-of-large-numbers description of an overloaded or critically loaded many-server queue with abandonment. It says that an overloaded center sheds exactly its excess load, λN−Nμ\lambda_N-N\muλN​−Nμ, to abandonment, and that a critically loaded center (ρ∞=1\rho_\infty=1ρ∞​=1) already has vanishing abandonment. This is what directs attention to the Halfin–Whitt (quality-and-efficiency-driven) regime N(1−ρN)→β\sqrt N(1-\rho_N)\to\betaN​(1−ρN​)→β, where the paper's later results (Theorems 2 and 4) refine the picture to order 1/N1/\sqrt N1/N​. It is also the fluid-scale input of later work on staffing with abandonment.

The theorem has been proved in the paper; to our knowledge none of the statements above has a machine-checked proof. The mission produces a formal model of the Erlang-A queue with its stationary law, a verified bridge between the Erlang-A and Erlang-B (loss) systems, and a formal limit theorem for Erlang's loss formula under linear load, each reusable in other many-server problems.

Difficulty

The heuristic is immediate: utilization is at most one, so λN(1−PN{Ab})≤Nμ\lambda_N(1-P_N\{Ab\})\le N\muλN​(1−PN​{Ab})≤Nμ gives the lower bound 1−1/ρN1-1/\rho_N1−1/ρN​. The upper bound is the substance. A direct estimate of the series defining PN{Ab}P_N\{Ab\}PN​{Ab} involves θ\thetaθ-dependent products whose asymptotics are not elementary, and the result must hold uniformly over patience rates θN\theta_NθN​ that are only known to be positive. Two further obstacles remain: the monotonicity of PN{Ab}P_N\{Ab\}PN​{Ab} in θ\thetaθ and in λ\lambdaλ is a stochastic-ordering property of the birth–death process, not a term-by-term inequality between the series, and any comparison with the loss system needs the asymptotics of Erlang's formula under a load that is linear in NNN only up to o(N)o(N)o(N). Nothing is assumed about how ρN\rho_NρN​ approaches its limit, so the critical case ρ∞=1\rho_\infty=1ρ∞​=1 cannot be read off from either side.

Formalization scope

  • Model. All objects live in the namespace ErlangA.Abandonment. The death rates, the unnormalized weights wkw_kwk​, πk=wk/∑jwj\pi_k=w_k/\sum_j w_jπk​=wk​/∑j​wj​ (a tsum) and PN{Ab}P_N\{Ab\}PN​{Ab} are explicit definitions of the parameters N∈NN\in\mathbb NN∈N and λ,μ,θ∈R\lambda,\mu,\theta\in\mathbb Rλ,μ,θ∈R; PN{Bl}P_N\{Bl\}PN​{Bl} is the published KellyStochasticNetworks.erlang (λ/μ) N.
  • Steady state. "Stationary" means a probability distribution on {0,1,2,… }\{0,1,2,\dots\}{0,1,2,…} solving the global balance equations (the published QueueingFundamentals.BirthDeath.IsSteadyState). The time limit lim⁡tP{Q(t)=n}\lim_t P\{Q(t)=n\}limt​P{Q(t)=n} is not formalized. The buffer is infinite.
  • Abandonment probability. PN{Ab}P_N\{Ab\}PN​{Ab} is defined by the arrival-sees-time-average form above; the balance form (θ/λ)∑k(k−N)+πk(\theta/\lambda)\sum_k(k-N)^+\pi_k(θ/λ)∑k​(k−N)+πk​ is milestone 2. It is a probability per arriving caller, not the abandonment rate and not the probability that someone is waiting.
  • Sequences. NNN is both the index and the number of agents; hypotheses on the NNN-th system are imposed for N≥1N\ge1N≥1. μ>0\mu>0μ>0 is fixed.
  • Limits. ρ∞∈[0,∞]\rho_\infty\in[0,\infty]ρ∞​∈[0,∞] is an extended nonnegative real and ρN→ρ∞\rho_N\to\rho_\inftyρN​→ρ∞​ is convergence in [0,∞][0,\infty][0,∞]; 1−1/ρ∞1-1/\rho_\infty1−1/ρ∞​ is evaluated there, giving 111 at ρ∞=∞\rho_\infty=\inftyρ∞​=∞. All limits are Filter.Tendsto along N→∞N\to\inftyN→∞; "∼\sim∼" is Asymptotics.IsEquivalent; lim sup⁡≤c\limsup\le climsup≤c is "for every ε>0\varepsilon>0ε>0, eventually ≤c+ε\le c+\varepsilon≤c+ε".
  • Monotonicity. "Increasing" in properties (i) and (ii) is read as nondecreasing, in one parameter at a time with the others fixed.
  • Ruling out trivial readings. Because π\piπ is a quotient by a tsum, a divergent normalizing series would make π≡0\pi\equiv0π≡0 and PN{Ab}=0P_N\{Ab\}=0PN​{Ab}=0, which would make the underloaded case of the goal vacuous; milestone 1 asserts that π\piπ is a genuine probability distribution for every N≥1N\ge1N≥1 and λ,μ,θ>0\lambda,\mu,\theta>0λ,μ,θ>0, and the goal is stated for exactly these parameters.
  • Welcome contributions. Stochastic-ordering arguments for birth–death processes (for properties (i) and (ii)), asymptotics of Erlang's loss formula (Jagerman's expansion, or a direct proof of the linear-load limit), and summation identities for the stationary law.

Selected references

  • O. Garnett, A. Mandelbaum, M. Reiman, Designing a Call Center with Impatient Customers, Manufacturing & Service Operations Management 4(3):208–227, 2002. https://doi.org/10.1287/msom.4.3.208.7753
  • P. P. Bhattacharya, A. Ephremides, Stochastic monotonicity properties of multiserver queues with impatient customers, Journal of Applied Probability 28(3):673–682, 1991. https://doi.org/10.2307/3214500
  • D. L. Jagerman, Some properties of the Erlang loss function, Bell System Technical Journal 53(3):525–551, 1974. https://doi.org/10.1002/j.1538-7305.1974.tb02756.x
  • S. Halfin, W. Whitt, Heavy-traffic limits for queues with many exponential servers, Operations Research 29(3):567–588, 1981. https://doi.org/10.1287/opre.29.3.567
14 thms5 active usersReviewed
🏆Completed
Functional AnalysisMarkov Chain·Captain: mikedeng1

Logarithmic Sobolev Inequalities for Finite Markov Chains 5: The Log-Sobolev Constant of K(x, y) = π(y) Is (1 − 2π_)/log(1/π_ − 1)Research Paper

Motivation

The log-Sobolev constant α\alphaα of a finite Markov chain controls how fast the chain forgets its starting point in relative entropy and in ℓ2\ell^2ℓ2, and it gives sharper mixing-time bounds than the spectral gap λ\lambdaλ when the stationary distribution has very small atoms. Diaconis and Saloff-Coste (Ann. Appl. Probab. 6 (1996)) made this constant a standard tool for finite chains. A practical obstacle runs through their paper: α\alphaα is defined by a nonlinear variational problem, and exact values are known for very few chains. Lower bounds on α\alphaα for a complicated chain are usually obtained by comparison with a simple chain whose constant is known exactly.

The Appendix of that paper computes such a reference value. For the chain that forgets its state in one step, K(x,y)=π(y)K(x,y)=\pi(y)K(x,y)=π(y), it determines α\alphaα in closed form for every positive π\piπ, and with it the log-Sobolev constant of every chain on two points and of the random walk on the complete graph.

Timeline. Rothaus's work on log-Sobolev inequalities (references [38–40] of the paper) studied the constant through its minimizers, the approach the Appendix follows. Diaconis and Saloff-Coste (1996) give the formula α=(1−2π∗)/log⁡(1/π∗−1)\alpha=(1-2\pi_*)/\log(1/\pi_*-1)α=(1−2π∗​)/log(1/π∗​−1), and note that Higuchi and Yoshida independently found the asymmetric two-point value.

Setting

Let X\mathcal XX be a finite set and KKK a Markov kernel on it: K(x,y)≥0K(x,y)\ge0K(x,y)≥0 and ∑yK(x,y)=1\sum_y K(x,y)=1∑y​K(x,y)=1. Let π\piπ be an invariant probability, ∑xπ(x)K(x,y)=π(y)\sum_x\pi(x)K(x,y)=\pi(y)∑x​π(x)K(x,y)=π(y), with π(x)>0\pi(x)>0π(x)>0 for every xxx. Functions on X\mathcal XX are real. Write Kf(x)=∑yK(x,y)f(y)Kf(x)=\sum_yK(x,y)f(y)Kf(x)=∑y​K(x,y)f(y), ⟨f,g⟩=∑xf(x)g(x)π(x)\langle f,g\rangle=\sum_x f(x)g(x)\pi(x)⟨f,g⟩=∑x​f(x)g(x)π(x), ∥f∥22=⟨f,f⟩\|f\|_2^2=\langle f,f\rangle∥f∥22​=⟨f,f⟩, Eπf=∑xf(x)π(x)E_\pi f=\sum_x f(x)\pi(x)Eπ​f=∑x​f(x)π(x) and Varπ(f)=∥f−Eπf∥22\mathrm{Var}_\pi(f)=\|f-E_\pi f\|_2^2Varπ​(f)=∥f−Eπ​f∥22​.

The Dirichlet form is E(f,g)=⟨(I−K)f,g⟩\mathcal E(f,g)=\langle (I-K)f,g\rangleE(f,g)=⟨(I−K)f,g⟩. The entropy functional is

L(f)=∑x∈X∣f(x)∣2log⁡∣f(x)∣2∥f∥22 π(x),\mathcal L(f)=\sum_{x\in\mathcal X}|f(x)|^2\log\frac{|f(x)|^2}{\|f\|_2^2}\,\pi(x),L(f)=x∈X∑​∣f(x)∣2log∥f∥22​∣f(x)∣2​π(x),

which is nonnegative and vanishes exactly when ∣f∣|f|∣f∣ is constant. The spectral gap and the log-Sobolev constant are

λ=inf⁡{E(f,f)Varπ(f):Varπ(f)≠0},α=inf⁡{E(f,f)L(f):L(f)≠0}.\lambda=\inf\Big\{\frac{\mathcal E(f,f)}{\mathrm{Var}_\pi(f)}:\mathrm{Var}_\pi(f)\ne0\Big\},\qquad \alpha=\inf\Big\{\frac{\mathcal E(f,f)}{\mathcal L(f)}:\mathcal L(f)\ne0\Big\}.λ=inf{Varπ​(f)E(f,f)​:Varπ​(f)=0},α=inf{L(f)E(f,f)​:L(f)=0}.

Equivalently, 1/α1/\alpha1/α is the best constant CCC in L(f)≤C E(f,f)\mathcal L(f)\le C\,\mathcal E(f,f)L(f)≤CE(f,f).

The chain of the mission is K(x,y)=π(y)K(x,y)=\pi(y)K(x,y)=π(y): at each step it draws a fresh point from π\piπ, ignoring its current state. Its invariant measure is π\piπ, and π∗=min⁡Xπ\pi_*=\min_{\mathcal X}\piπ∗​=minX​π is its smallest atom. In Lean the objects are dirichlet, entL, gap, logSobolev, indepChain and piMin in the namespace LogSobolevMC.TwoPoint.

Formalization targets

Goal: Theorem A.1

For a positive probability π\piπ on X\mathcal XX with π∗<1/2\pi_*<1/2π∗​<1/2, the chain K(x,y)=π(y)K(x,y)=\pi(y)K(x,y)=π(y) has

α=1−2π∗log⁡(1/π∗−1),\alpha=\frac{1-2\pi_*}{\log(1/\pi_*-1)},α=log(1/π∗​−1)1−2π∗​​,

and in particular, for π≡1/∣X∣\pi\equiv1/|\mathcal X|π≡1/∣X∣ with ∣X∣≥3|\mathcal X|\ge3∣X∣≥3, α=(1−2/∣X∣)/log⁡(∣X∣−1)\alpha=(1-2/|\mathcal X|)/\log(|\mathcal X|-1)α=(1−2/∣X∣)/log(∣X∣−1). The goal is an equality, so it contains both a log-Sobolev inequality with this constant and the existence of functions that make it sharp.

Milestones

  1. Lemma 3.1: 2α≤λ2\alpha\le\lambda2α≤λ for every chain.
  2. E(∣f∣,∣f∣)≤E(f,f)\mathcal E(|f|,|f|)\le\mathcal E(f,f)E(∣f∣,∣f∣)≤E(f,f) (proof of Theorem A.1).
  3. Either α=λ/2\alpha=\lambda/2α=λ/2, or the infimum is attained at a nonconstant nonnegative function (proof of Theorem A.1).
  4. (A.3): a positive minimizer uuu of a reversible chain satisfies 2ulog⁡u−2ulog⁡∥u∥2−α−1(I−K)u=02u\log u-2u\log\|u\|_2-\alpha^{-1}(I-K)u=02ulogu−2ulog∥u∥2​−α−1(I−K)u=0.
  5. (A.1): the explicit pair a=log⁡[(1−θ)/θ]/(1−2θ)a=\log[(1-\theta)/\theta]/(1-2\theta)a=log[(1−θ)/θ]/(1−2θ), s=(1−2θ)/(2θ(1−θ))s=(1-2\theta)/(2\theta(1-\theta))s=(1−2θ)/(2θ(1−θ)) solves the two-equation system of the proof of Theorem A.2.
  6. Theorem A.2: the two-point chain with both rows (θ,1−θ)(\theta,1-\theta)(θ,1−θ), 0<θ≤1/20<\theta\le1/20<θ≤1/2, has α(θ)=(1−2θ)/log⁡[(1−θ)/θ]\alpha(\theta)=(1-2\theta)/\log[(1-\theta)/\theta]α(θ)=(1−2θ)/log[(1−θ)/θ], with the limit value 1/21/21/2 at θ=1/2\theta=1/2θ=1/2.

Consequences

Corollary A.3 (every two-point chain), Corollary A.4 (α(K)≥(1−2π∗)λ(K)/log⁡[1/π∗−1]\alpha(K)\ge(1-2\pi_*)\lambda(K)/\log[1/\pi_*-1]α(K)≥(1−2π∗​)λ(K)/log[1/π∗​−1] for every finite chain) and Corollary A.5 (the complete graph, α=(∣X∣−2)/((∣X∣−1)log⁡(∣X∣−1))\alpha=(|\mathcal X|-2)/((|\mathcal X|-1)\log(|\mathcal X|-1))α=(∣X∣−2)/((∣X∣−1)log(∣X∣−1)), and α=1/(2log⁡2)\alpha=1/(2\log2)α=1/(2log2) on Z3\mathbb Z_3Z3​).

Significance

The result. Theorem A.1 is one of the few exact log-Sobolev constants known for a whole family of chains. Since this chain has λ=1\lambda=1λ=1, the formula shows that α\alphaα can be smaller than λ/2\lambda/2λ/2 by a factor of order log⁡(1/π∗)\log(1/\pi_*)log(1/π∗​), which answers the question on p. 715 of how far 2α2\alpha2α and λ\lambdaλ can be apart. Corollary A.4 turns this into a general tool: any spectral gap bound gives a log-Sobolev bound, losing only a factor log⁡(1/π∗−1)/(1−2π∗)\log(1/\pi_*-1)/(1-2\pi_*)log(1/π∗​−1)/(1−2π∗​). Corollary A.3 settles every chain on two points, and Corollary A.5 gives the complete graph, a frequent reference chain for comparison arguments.

Formalizing it. These results are proved in the paper. To our knowledge none of them, nor the log-Sobolev constant of a finite Markov chain itself, has a machine-checked formalization. The mission produces the definitions of E\mathcal EE, L\mathcal LL, λ\lambdaλ and α\alphaα for finite chains, and exact values that later comparison arguments can cite.

Difficulty

The upper bound α≤(1−2π∗)/log⁡(1/π∗−1)\alpha\le(1-2\pi_*)/\log(1/\pi_*-1)α≤(1−2π∗​)/log(1/π∗​−1) needs only a good test function. The lower bound is the hard part: it is a statement about every function on X\mathcal XX, and L\mathcal LL is neither quadratic nor convex. The obvious route, comparing with the spectral gap, loses exactly the logarithmic factor the theorem is about. Reducing to two-valued functions requires the infimum to be attained and analysed through its minimizers. The two-point problem that remains is a one-parameter inequality l(s)≤a e(s)l(s)\le a\,e(s)l(s)≤ae(s) on an interval. The authors describe its solution as a calculus exercise that depended on numerical guessing, and it has removable singularities at θ=1/2\theta=1/2θ=1/2.

Formalization scope

X\mathcal XX is a Fintype with decidable equality. KKK is a Matrix V V ℝ and π\piπ a function V → ℝ. Stochasticity, invariance, distributions and reversibility are the published MarkovMixing predicates (IsStochastic, IsStationary, IsDist, DetailedBalance) from mm_basic, and Varπ\mathrm{Var}_\piVarπ​ is MarkovMixing.distVar from mm_lower. Positivity of π\piπ is a hypothesis throughout, as in §2.1. The infima λ\lambdaλ and α\alphaα are Lean sInfs over exactly the sets of (2.4) and (3.1). E\mathcal EE is the bilinear form ⟨(I−K)f,g⟩\langle (I-K)f,g\rangle⟨(I−K)f,g⟩. λ\lambdaλ is the variational gap, not the eigenvalue-based MarkovMixing.spectralGap, which agrees with it only for reversible chains.

Disclosed additions, all at removable singularities of the printed formulas: π∗<1/2\pi_*<1/2π∗​<1/2 in Theorem A.1 (and ∣X∣≥3|\mathcal X|\ge3∣X∣≥3 in its uniform case); the explicit limit value 1/21/21/2 at θ=1/2\theta=1/2θ=1/2 in Theorem A.2; strict π(0)<π(1)\pi(0)<\pi(1)π(0)<π(1) in Corollary A.3; and ∣X∣≥3|\mathcal X|\ge3∣X∣≥3 in Corollary A.5. In (A.3), reversibility, positivity of uuu and α>0\alpha>0α>0 are added. Irreducibility is not assumed anywhere.

Trivializing formalizations are ruled out. A closed form evaluated at 0/00/00/0 would be Lean's value 000, so each such case is excluded or replaced by its limit. Real.log of a nonpositive number and an sInf over an empty or unbounded set do not occur under the stated hypotheses. Dropping the positivity or invariance of π\piπ, or replacing λ\lambdaλ by the eigenvalue gap, would change the statements. Stating the goal for two points only, or assuming the minimizer is two-valued, would state a step of the proof.

Contributions welcome: the general facts L≥0\mathcal L\ge0L≥0, E(f,f)=12∑x,y(f(x)−f(y))2K(x,y)π(x)\mathcal E(f,f)=\tfrac12\sum_{x,y}(f(x)-f(y))^2K(x,y)\pi(x)E(f,f)=21​∑x,y​(f(x)−f(y))2K(x,y)π(x) and the existence of minimizers are reusable for every log-Sobolev development on finite spaces. The two-point calculus of Theorem A.2 is self-contained real analysis.

Selected references

  • P. Diaconis and L. Saloff-Coste, Logarithmic Sobolev inequalities for finite Markov chains, Ann. Appl. Probab. 6(3):695–750, 1996. https://doi.org/10.1214/aoap/1034968224
  • D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times, AMS, 2009 (source of the MarkovMixing definitions used here). https://doi.org/10.1090/mbk/058
16 thms5 active usersReviewed
🏆Completed
Functional AnalysisMarkov Chain·Captain: mikedeng1

Logarithmic Sobolev Inequalities for Finite Markov Chains 4: The Metropolis Chain for the Binomial Distribution Is Within e^{1−c} of Stationarity after (n/2)(log n + 2c) StepsResearch Paper

Motivation

The Metropolis algorithm turns a simple random walk into a Markov chain with a prescribed stationary distribution, by accepting or rejecting the walk's proposals. It is the basic tool of Markov chain Monte Carlo, and the practical question it raises is quantitative: how many steps are needed before the chain's distribution is close to the target? For most chains used in practice there is no rigorous answer.

Diaconis and Saloff-Coste (Ann. Appl. Probab. 6 (1996) 695–750) developed logarithmic Sobolev inequalities for finite Markov chains as a tool for exactly this question. Their first illustration, stated as Theorem 1.1 in the introduction, is the Metropolis chain for the binomial distribution: a one-dimensional chain for which the spectral gap gives a bound of order n2n^2n2 steps, while the log-Sobolev constant gives the correct order nlog⁡nn\log nnlogn. This mission formalizes that theorem and the chain of results the paper uses to prove it: the log-Sobolev constant of a product chain, of the hypercube walk, of the Ehrenfest chain, a comparison principle, and a discrete-time convergence bound.

Setting

Let X\mathcal XX be a finite set. A Markov kernel KKK on X\mathcal XX is a matrix with K(x,y)≥0K(x,y)\ge 0K(x,y)≥0 and ∑yK(x,y)=1\sum_y K(x,y)=1∑y​K(x,y)=1; Kl(x,⋅)K^l(x,\cdot)Kl(x,⋅), written KxlK^l_xKxl​, is the law of the chain after lll steps from xxx. A probability π\piπ on X\mathcal XX is invariant if ∑xπ(x)K(x,y)=π(y)\sum_x\pi(x)K(x,y)=\pi(y)∑x​π(x)K(x,y)=π(y); throughout, π\piπ charges every point. (K,π)(K,\pi)(K,π) is reversible if π(x)K(x,y)=π(y)K(y,x)\pi(x)K(x,y)=\pi(y)K(y,x)π(x)K(x,y)=π(y)K(y,x).

For real functions f,gf,gf,g on X\mathcal XX write ⟨f,g⟩=∑xf(x)g(x)π(x)\langle f,g\rangle=\sum_x f(x)g(x)\pi(x)⟨f,g⟩=∑x​f(x)g(x)π(x), ∥f∥2=⟨f,f⟩1/2\|f\|_2=\langle f,f\rangle^{1/2}∥f∥2​=⟨f,f⟩1/2, Ef=∑xf(x)π(x)Ef=\sum_x f(x)\pi(x)Ef=∑x​f(x)π(x) and Var⁡(f)=∥f−Ef∥22\operatorname{Var}(f)=\|f-Ef\|_2^2Var(f)=∥f−Ef∥22​. The Dirichlet form is E(f,g)=⟨(I−K)f,g⟩\mathcal E(f,g)=\langle (I-K)f,g\rangleE(f,g)=⟨(I−K)f,g⟩, and

L(f)=∑x∣f(x)∣2log⁡∣f(x)∣2∥f∥22 π(x).\mathcal L(f)=\sum_x |f(x)|^2\log\frac{|f(x)|^2}{\|f\|_2^2}\,\pi(x).L(f)=x∑​∣f(x)∣2log∥f∥22​∣f(x)∣2​π(x).

The spectral gap and the log-Sobolev constant are

λ=inf⁡{E(f,f)Var⁡(f):Var⁡(f)≠0},α=inf⁡{E(f,f)L(f):L(f)≠0}.\lambda=\inf\Big\{\frac{\mathcal E(f,f)}{\operatorname{Var}(f)}:\operatorname{Var}(f)\neq0\Big\},\qquad \alpha=\inf\Big\{\frac{\mathcal E(f,f)}{\mathcal L(f)}:\mathcal L(f)\neq0\Big\}.λ=inf{Var(f)E(f,f)​:Var(f)=0},α=inf{L(f)E(f,f)​:L(f)=0}.

For reversible KKK, βmin⁡\beta_{\min}βmin​ is the smallest eigenvalue of KKK. The total variation distance is ∥μ−ν∥TV=max⁡A⊆X∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_{A\subseteq\mathcal X}|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA⊆X​∣μ(A)−ν(A)∣.

The chain of the goal lives on X={0,1,…,n}\mathcal X=\{0,1,\dots,n\}X={0,1,…,n}, n≥1n\ge1n≥1, with the binomial distribution π(x)=2−n(nx)\pi(x)=2^{-n}\binom nxπ(x)=2−n(xn​). The base chain is the nearest-neighbour walk K(x,x±1)=1/2K(x,x\pm1)=1/2K(x,x±1)=1/2 for 1≤x≤n−11\le x\le n-11≤x≤n−1, holding with probability 1/21/21/2 at 000 and at nnn. The Metropolis chain MMM accepts a proposed move x→y≠xx\to y\neq xx→y=x with probability min⁡{1,π(y)/π(x)}\min\{1,\pi(y)/\pi(x)\}min{1,π(y)/π(x)}, so M(x,y)=K(x,y)min⁡{1,π(y)/π(x)}M(x,y)=K(x,y)\min\{1,\pi(y)/\pi(x)\}M(x,y)=K(x,y)min{1,π(y)/π(x)} for y≠xy\ne xy=x, and M(x,x)=1−∑y≠xM(x,y)M(x,x)=1-\sum_{y\ne x}M(x,y)M(x,x)=1−∑y=x​M(x,y). Explicitly, M(x,x+1)=12M(x,x+1)=\frac12M(x,x+1)=21​ for x≤(n−1)/2x\le (n-1)/2x≤(n−1)/2 and M(x,x+1)=n−x2(x+1)M(x,x+1)=\frac{n-x}{2(x+1)}M(x,x+1)=2(x+1)n−x​ above, symmetrically for x−1x-1x−1; this is the kernel (1.9) of the paper.

Two auxiliary chains appear in the proof: the hypercube walk on {−1,1}n\{-1,1\}^n{−1,1}n, which flips a uniformly chosen coordinate, and the Ehrenfest chain P(x,x+1)=(n−x)/nP(x,x+1)=(n-x)/nP(x,x+1)=(n−x)/n, P(x,x−1)=x/nP(x,x-1)=x/nP(x,x−1)=x/n on {0,…,n}\{0,\dots,n\}{0,…,n}, which records the number of coordinates equal to 111.

Formalization targets

Goal: Theorem 1.1 (upper bound)

For every n≥1n\ge1n≥1, every starting point xxx, every c>0c>0c>0 and every integer lll,

∥Mxl−π∥TV≤e1−cwhenever l≥n2(log⁡n+2c).\|M^l_x-\pi\|_{TV}\le e^{1-c}\qquad\text{whenever } l\ge\frac n2(\log n+2c).∥Mxl​−π∥TV​≤e1−cwhenever l≥2n​(logn+2c).

The goal is stated about the explicit chain (1.9) only; it fixes the constants as printed.

Milestones

  1. Example 1.1, (1.9). The Metropolis construction gives the six-case kernel (1.9), and π(x)M(x,y)=π(y)M(y,x)\pi(x)M(x,y)=\pi(y)M(y,x)π(x)M(x,y)=π(y)M(y,x).
  2. Example 3.1. The two-point chain on {−1,1}\{-1,1\}{−1,1} has π≡1/2\pi\equiv1/2π≡1/2, λ=2\lambda=2λ=2 and α=λ/2=1\alpha=\lambda/2=1α=λ/2=1.
  3. Lemma 3.2. The product chain (2.9) of ddd chains, with the product measure (2.10), has λ=1dmin⁡iλi\lambda=\frac1d\min_i\lambda_iλ=d1​mini​λi​ and α=1dmin⁡iαi\alpha=\frac1d\min_i\alpha_iα=d1​mini​αi​.
  4. Example 3.2. The hypercube walk is that product of two-point chains and has α=λ/2=1/n\alpha=\lambda/2=1/nα=λ/2=1/n.
  5. Lemma 3.1. 2α≤λ2\alpha\le\lambda2α≤λ for every chain.
  6. Lemma 3.3. If E′≤AE\mathcal E'\le A\mathcal EE′≤AE and aπ≤π′a\pi\le\pi'aπ≤π′ with A,a>0A,a>0A,a>0, then λ′≤Aaλ\lambda'\le\frac Aa\lambdaλ′≤aA​λ and α′≤Aaα\alpha'\le\frac Aa\alphaα′≤aA​α.
  7. Example 3.3. The Ehrenfest chain is the projection of the hypercube walk, with λ=2/n\lambda=2/nλ=2/n and α(P)=1/n\alpha(P)=1/nα(P)=1/n; 12P(x,y)≤M(x,y)≤P(x,y)\frac12P(x,y)\le M(x,y)\le P(x,y)21​P(x,y)≤M(x,y)≤P(x,y) for x≠yx\ne yx=y, so EM≤EP≤2EM\mathcal E_M\le\mathcal E_P\le2\mathcal E_MEM​≤EP​≤2EM​; hence 1n≤λ(M)≤2n\frac1n\le\lambda(M)\le\frac2nn1​≤λ(M)≤n2​ and 12n≤α(M)≤1n\frac1{2n}\le\alpha(M)\le\frac1n2n1​≤α(M)≤n1​.
  8. Corollary 3.8. For reversible (K,π)(K,\pi)(K,π) and π(x)≤1/e\pi(x)\le1/eπ(x)≤1/e, with λ∗=min⁡{λ,1+βmin⁡}\lambda_*=\min\{\lambda,1+\beta_{\min}\}λ∗​=min{λ,1+βmin​}, ∥Kxm/π−1∥2≤(1+2e2)1/2e−c\|K^m_x/\pi-1\|_2\le(1+2e^2)^{1/2}e^{-c}∥Kxm​/π−1∥2​≤(1+2e2)1/2e−c for m≥14αlog⁡log⁡1π(x)+cλ∗+1m\ge\frac1{4\alpha}\log\log\frac1{\pi(x)}+\frac c{\lambda_*}+1m≥4α1​loglogπ(x)1​+λ∗​c​+1.
  9. Example 3.4. M(x,x)≥2/(n+3)M(x,x)\ge2/(n+3)M(x,x)≥2/(n+3), βmin⁡≥−1+4/(n+3)\beta_{\min}\ge-1+4/(n+3)βmin​≥−1+4/(n+3), and ∥Mxl/π−1∥2≤(1+2e2)1/2e−c\|M^l_x/\pi-1\|_2\le(1+2e^2)^{1/2}e^{-c}∥Mxl​/π−1∥2​≤(1+2e2)1/2e−c for l≥n2(log⁡n+2c)+1l\ge\frac n2(\log n+2c)+1l≥2n​(logn+2c)+1.

Significance

The theorem shows that the Metropolis chain for the binomial distribution mixes in n2log⁡n+O(n)\frac n2\log n+O(n)2n​logn+O(n) steps, matching the lower bound of order nlog⁡nn\log nnlogn quoted in the paper's converse. The spectral gap λ(M)≍1/n\lambda(M)\asymp1/nλ(M)≍1/n together with π∗=2−n\pi_*=2^{-n}π∗​=2−n only yields order n2n^2n2; the improvement comes from replacing log⁡(1/π∗)\log(1/\pi_*)log(1/π∗​) by log⁡log⁡(1/π∗)\log\log(1/\pi_*)loglog(1/π∗​), which is what the log-Sobolev constant buys. The intermediate results are reusable on their own: the tensorization of λ\lambdaλ and α\alphaα (Lemma 3.2), the comparison principle (Lemma 3.3) and the discrete-time bound (Corollary 3.8) apply to any finite chain, and the exact log-Sobolev constants of the two-point chain, the hypercube and the Ehrenfest chain are standard inputs elsewhere.

All results are proved in the paper (the gap λ=2/n\lambda=2/nλ=2/n of the Ehrenfest chain is quoted there as known). To our knowledge none of them is machine-checked: there is no log-Sobolev constant of a Markov chain in Mathlib or on the platform. The work is to formalize the known proofs.

Difficulty

The natural first idea is to bound the distance to stationarity by the spectral gap: ∥Kxl/π−1∥22≤π(x)−1β2l\|K^l_x/\pi-1\|_2^2\le\pi(x)^{-1}\beta^{2l}∥Kxl​/π−1∥22​≤π(x)−1β2l. With π(x)\pi(x)π(x) as small as 2−n2^{-n}2−n and 1−β≍1/n1-\beta\asymp 1/n1−β≍1/n, this needs lll of order n2n^2n2, so no amount of care with this argument reaches the theorem. The proof instead goes through the log-Sobolev constant, which is hard to compute even for simple chains: the paper obtains α(M)\alpha(M)α(M) only through a sequence of exact computations (two points, products, a projection) followed by a comparison. Each step involves the nonlinear functional L\mathcal LL, whose tensorization and behaviour under comparison of measures are less elementary than those of the variance. The passage from continuous to discrete time also needs control of βmin⁡\beta_{\min}βmin​, since a chain with eigenvalue near −1-1−1 does not converge.

Formalization scope

The state space {0,…,n}\{0,\dots,n\}{0,…,n} is Fin (n + 1), {−1,1}\{-1,1\}{−1,1} is Fin 2 (0↦−10\mapsto-10↦−1, 1↦11\mapsto11↦1), and {−1,1}n\{-1,1\}^n{−1,1}n is Fin n → Fin 2. Kernels are real matrices Matrix V V ℝ; stochasticity, invariance, irreducibility, reversibility (detailed balance), total variation, the rows KxlK^l_xKxl​, the product chain (2.9) and the generic Metropolis rule are the published MarkovMixing definitions (mm_basic, mm_mixing, mm_continuous, mm_mcmc). Functions are real valued. Time lll is a natural number and thresholds are compared in R\mathbb RR.

λ\lambdaλ, α\alphaα and βmin⁡\beta_{\min}βmin​ are defined variationally as real infima (sInf). βmin⁡\beta_{\min}βmin​ is the minimum of the Rayleigh quotient ⟨Kf,f⟩/⟨f,f⟩\langle Kf,f\rangle/\langle f,f\rangle⟨Kf,f⟩/⟨f,f⟩, which is the smallest eigenvalue for reversible chains. The eigenvalue-based MarkovMixing.spectralGap is not used, since it equals λ\lambdaλ only for reversible chains. Two hypotheses are added where Lean's conventions would otherwise falsify a statement: Lemma 3.2 assumes every factor has at least two points (Lean evaluates the infimum over an empty set as 000, the paper as +∞+\infty+∞), and Corollary 3.8 assumes 1+βmin⁡>01+\beta_{\min}>01+βmin​>0 (Lean evaluates c/0c/0c/0 as 000, the paper as +∞+\infty+∞). Lemmas 3.1 and 3.3 are stated without the section's irreducibility assumption, which they do not need.

A trivializing formalization is ruled out: the goal mentions only the explicit chain MMM, the binomial distribution, MxlM^l_xMxl​ and total variation, not a chain assumed to have α≥1/(2n)\alpha\ge1/(2n)α≥1/(2n); positivity and invariance of π\piπ are never dropped; and no statement relies on a junk value of sInf, Real.log or division. The converse half of Theorem 1.1, max⁡x∥Mxl−π∥TV≥14+o(1)\max_x\|M^l_x-\pi\|_{TV}\ge\frac14+o(1)maxx​∥Mxl​−π∥TV​≥41​+o(1) for l≤n8log⁡nl\le\frac n8\log nl≤8n​logn, is asymptotic and proved in the paper only by citation; it is not part of the mission. The second statement of Corollary 3.8 (the uniform bound on ∣k2n(x,y)−1∣|k^{2n}(x,y)-1|∣k2n(x,y)−1∣) is also left out.

A complete development needs the semigroup Ht=e−t(I−K)H_t=e^{-t(I-K)}Ht​=e−t(I−K) and the hypercontractivity theorem of the paper (Theorem 3.5) on the way to Corollary 3.8, a spectral decomposition of reversible kernels, and the entropy inequalities behind Lemmas 3.2 and 3.3. The general results (Lemmas 3.1–3.3, Corollary 3.8) are reusable beyond this mission. Contributions to any milestone, and alternative routes to the goal, are welcome.

Selected references

  • P. Diaconis and L. Saloff-Coste, Logarithmic Sobolev inequalities for finite Markov chains, Ann. Appl. Probab. 6(3) (1996), 695–750. https://doi.org/10.1214/aoap/1034968224
  • P. Diaconis and L. Saloff-Coste, What do we know about the Metropolis algorithm?, J. Comput. System Sci. 57 (1998), 20–36 (reference [18] of the paper, in its preprint form). https://doi.org/10.1006/jcss.1998.1576
  • D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times, AMS, 2009 (source of the published MarkovMixing definitions). https://doi.org/10.1090/mbk/058
23 thms5 active usersReviewed
🏆Completed
Machine LearningStatistics·Captain: mikedeng1

Rademacher and Gaussian Complexities: Risk Bounds and Structural Results 3: Monotone, Absolutely Homogeneous, Convex-Hull Invariant and Subadditive R_n, and the 2L Bound for L-Lipschitz Maps Fixing 0Research Paper

Motivation

Generalization bounds in statistical learning theory control the gap between the empirical and the true performance of a predictor chosen from a class FFF. Bartlett and Mendelson (JMLR 3, 2002) showed that this gap is governed by the Rademacher complexity of a loss class built from FFF, and that, unlike the VC dimension, this complexity can be estimated from data. Their bounds are useful only if the Rademacher complexity of a large class can be bounded in terms of simpler classes: voting methods take convex combinations of base classifiers, neural networks compose fixed squashing functions with linear combinations, and loss classes compose a class with a Lipschitz loss. Section 3.1 of the paper collects the elementary rules for such constructions in one statement, Theorem 12. These rules are used throughout the later literature on margin bounds, boosting, and neural-network generalization (e.g. Koltchinskii and Panchenko, Ann. Statist. 2002).

This mission formalizes those rules, as stated in the published journal article (J. Mach. Learn. Res. 3 (2002), pp. 463–482), Theorem 12 on p. 469.

Setting

Let X\mathcal XX be a measurable space, μ\muμ a probability measure on it, and n≥0n\ge0n≥0 an integer. A class is a set FFF of functions f:X→Rf:\mathcal X\to\mathbb Rf:X→R; no boundedness is assumed.

For a sample x=(x1,…,xn)∈Xnx=(x_1,\dots,x_n)\in\mathcal X^nx=(x1​,…,xn​)∈Xn, the empirical Rademacher complexity of FFF (Definition 2, p. 464) is

R^n(F)(x)=12n∑σ∈{±1}n sup⁡f∈F∣2n∑i=1nσif(xi)∣,\hat R_n(F)(x)=\frac1{2^n}\sum_{\sigma\in\{\pm1\}^n}\ \sup_{f\in F}\Big|\frac2n\sum_{i=1}^n\sigma_i f(x_i)\Big|,R^n​(F)(x)=2n1​σ∈{±1}n∑​ f∈Fsup​​n2​i=1∑n​σi​f(xi​)​,

the expectation over independent uniform random signs σ1,…,σn\sigma_1,\dots,\sigma_nσ1​,…,σn​. The Rademacher complexity is its expectation over an i.i.d. sample from μ\muμ:

Rn(F)=∫XnR^n(F)(x) dμ⊗n(x).R_n(F)=\int_{\mathcal X^n}\hat R_n(F)(x)\,d\mu^{\otimes n}(x).Rn​(F)=∫Xn​R^n​(F)(x)dμ⊗n(x).

In the Lean development these are empiricalRademacher n F x and rademacherComplexity μ n F, both valued in [0,∞][0,\infty][0,∞].

The constructions on classes are those of §2, p. 467: conv F\mathrm{conv}\,FconvF is the class of convex combinations of functions from FFF; −F={−f:f∈F}-F=\{-f:f\in F\}−F={−f:f∈F}; absconv F\mathrm{absconv}\,FabsconvF is the class of convex combinations of functions from F∪−FF\cup-FF∪−F; cF={cf:f∈F}cF=\{cf:f\in F\}cF={cf:f∈F}; for ϕ:R→R\phi:\mathbb R\to\mathbb Rϕ:R→R, ϕ∘F={ϕ∘f:f∈F}\phi\circ F=\{\phi\circ f:f\in F\}ϕ∘F={ϕ∘f:f∈F}; and ∑i=1kFi={f1+⋯+fk:fi∈Fi}\sum_{i=1}^kF_i=\{f_1+\dots+f_k:f_i\in F_i\}∑i=1k​Fi​={f1​+⋯+fk​:fi​∈Fi​}.

Formalization targets

Goal: Theorem 12, parts 1–4 and 7 (p. 469)

For all classes F,F1,…,Fk,HF,F_1,\dots,F_k,HF,F1​,…,Fk​,H of real functions:

(1)F⊆H ⇒ Rn(F)≤Rn(H),(2)Rn(F)=Rn(conv F)=Rn(absconv F),(3)Rn(cF)=∣c∣ Rn(F)(c∈R),(4)ϕ Lϕ-Lipschitz, ϕ(0)=0 ⇒ Rn(ϕ∘F)≤2LϕRn(F),(7)Rn(∑i=1kFi)≤∑i=1kRn(Fi).\begin{aligned} &\text{(1)}\quad F\subseteq H\ \Rightarrow\ R_n(F)\le R_n(H),\\ &\text{(2)}\quad R_n(F)=R_n(\mathrm{conv}\,F)=R_n(\mathrm{absconv}\,F),\\ &\text{(3)}\quad R_n(cF)=|c|\,R_n(F)\quad(c\in\mathbb R),\\ &\text{(4)}\quad \phi\ L_\phi\text{-Lipschitz},\ \phi(0)=0\ \Rightarrow\ R_n(\phi\circ F)\le 2L_\phi R_n(F),\\ &\text{(7)}\quad R_n\Big(\sum_{i=1}^kF_i\Big)\le\sum_{i=1}^kR_n(F_i). \end{aligned}​(1)F⊆H ⇒ Rn​(F)≤Rn​(H),(2)Rn​(F)=Rn​(convF)=Rn​(absconvF),(3)Rn​(cF)=∣c∣Rn​(F)(c∈R),(4)ϕ Lϕ​-Lipschitz, ϕ(0)=0 ⇒ Rn​(ϕ∘F)≤2Lϕ​Rn​(F),(7)Rn​(i=1∑k​Fi​)≤i=1∑k​Rn​(Fi​).​

The goal is the conjunction, each part quantified over its own classes.

Milestones

Parts 1, 3, 2 and 4 are milestones, in the order of the paper's proof. Part 7 remains a theorem item in the mission and a conjunct of the goal.

Significance

The result. Theorem 12 reduces the complexity of a constructed class to the complexities of its building blocks. Part 2 says that convex combinations come for free, which is why margin bounds for boosting depend only on the base class. Part 4 converts a complexity bound for a class into one for a Lipschitz loss composed with it, which is how the risk bounds of the paper's §2 are applied to concrete losses. Parts 1, 3 and 7 are the bookkeeping rules that combine the others; the paper uses parts 1 and 3 to show part 7 is tight.

Formalizing it. The results are proved, and part 4 is due to Ledoux and Talagrand (Probability in Banach Spaces, Springer 1991, Corollary 3.17). The platform already has a one-sided contraction lemma in a different normalization (UnderstandingML.contraction_lemma, Shalev-Shwartz and Ben-David's Lemma 26.9: per-coordinate Lipschitz maps, 1/m1/m1/m normalization, no absolute value, bounded nonempty sets of vectors), referenced here as supporting material, and a convex-hull identity for Mohri et al.'s empirical complexity without absolute value. None of the five parts is formalized for Definition 2's complexity (factor 2/n2/n2/n, absolute value inside the supremum, expectation over the sample, arbitrary classes). The mission provides machine-checked versions in exactly that normalization, reusable by the other missions of this paper and by any later development of Rademacher-complexity bounds.

Difficulty

Parts 1, 2, 3 and 7 are pointwise statements about finite averages of suprema, but they have to be carried through the expectation over the sample and through suprema that may be infinite. Part 2 needs the supremum of the absolute value of a linear functional over a convex hull to equal its supremum over the set, including the symmetric hull conv(F∪−F)\mathrm{conv}(F\cup-F)conv(F∪−F).

Part 4 is the substantial one. The natural first idea, comparing ∣∑iσiϕ(f(xi))∣|\sum_i\sigma_i\phi(f(x_i))|∣∑i​σi​ϕ(f(xi​))∣ with Lϕ∣∑iσif(xi)∣L_\phi|\sum_i\sigma_i f(x_i)|Lϕ​∣∑i​σi​f(xi​)∣ term by term for each sign vector, fails: the inequality holds only after averaging over the signs, and only with the factor 222 caused by the absolute value. Without the hypothesis ϕ(0)=0\phi(0)=0ϕ(0)=0 the statement fails (a constant ϕ≡1\phi\equiv1ϕ≡1 has Lϕ=0L_\phi=0Lϕ​=0 but Rn(ϕ∘F)>0R_n(\phi\circ F)>0Rn​(ϕ∘F)>0 for nonempty FFF and n≥1n\ge1n≥1), so any argument must use it.

Formalization scope

Representation. Classes are Set (X → ℝ). Signs are averaged over all 2n2^n2n vectors Fin n → Bool (encoded ±1\pm1±1). Complexities take values in ℝ≥0∞: a class unbounded on the sample has complexity +∞+\infty+∞, the empty class has complexity 000, and RnR_nRn​ is the lower Lebesgue integral against Measure.pi (fun _ : Fin n => μ) with μ a probability measure. This is the paper's meaning for arbitrary classes. A real-valued formalization would not be: a real supremum over an unbounded set and a Bochner integral of a non-integrable function both evaluate to 000. That would make the upper bounds false for unbounded classes and every comparison trivially satisfied for others. No boundedness hypothesis is added anywhere, since Theorem 12 is about arbitrary classes. conv F\mathrm{conv}\,FconvF is convexHull ℝ F (finite convex combinations, no closure); absconv F\mathrm{absconv}\,FabsconvF is convexHull ℝ (F ∪ -F); cFcFcF is c • F; ∣c∣|c|∣c∣ enters as ENNReal.ofReal |c|, and 0⋅∞=00\cdot\infty=00⋅∞=0 makes c=0c=0c=0 consistent. The Lipschitz map in part 4 is LipschitzWith Lφ φ on all of R\mathbb RR, as printed. The classes of part 7 are indexed by Fin k and summed pointwise. At n=0n=0n=0 all complexities are 000 and every part holds trivially, matching the page.

Added hypothesis. Part 7 (and its conjunct in the goal) assumes that each sample function x↦R^n(Fi)(x)x\mapsto\hat R_n(F_i)(x)x↦R^n​(Fi​)(x) is almost-everywhere measurable for μ⊗n\mu^{\otimes n}μ⊗n. The paper does not discuss measurability. The lower integral is monotone and positively homogeneous without it, so parts 1–4 need no such hypothesis, but it is not additive, and part 7 needs additivity. The hypothesis holds whenever each FiF_iFi​ is a countable class of measurable functions.

Omitted parts. Parts 5 and 6 of Theorem 12 are not posed. Part 5, Rn(F+h)≤Rn(F)+∥h∥∞/nR_n(F+h)\le R_n(F)+\|h\|_\infty/\sqrt nRn​(F+h)≤Rn​(F)+∥h∥∞​/n​, is false as printed: its proof (p. 470) bounds Esup⁡∣∑σi(f+h)(xi)∣\mathbf E\sup|\sum\sigma_i(f+h)(x_i)|Esup∣∑σi​(f+h)(xi​)∣ correctly but drops the factor 2/n2/n2/n of Definition 2, and the correct conclusion is Rn(F)+2∥h∥∞/nR_n(F)+2\|h\|_\infty/\sqrt nRn​(F)+2∥h∥∞​/n​. For F={0}F=\{0\}F={0}, h≡1h\equiv1h≡1, n=1n=1n=1 the left side is 222 and the printed right side is 111. Part 6 is derived from part 5. A corrected part 5 would not be the paper's statement, so neither is included. The remark after the theorem that parts 1–3 hold for the Gaussian complexity, and the others with an extra ln⁡n\ln nlnn factor, is also not included.

Contributions welcome. Proofs of the milestones; a proof of part 4 from the platform's one-sided contraction lemma, converted to Definition 2's normalization; and general lemmas about empiricalRademacher (finiteness on finite classes, measurability for countable classes) that the other missions of this paper can reuse.

Selected references

  • P. L. Bartlett and S. Mendelson, Rademacher and Gaussian Complexities: Risk Bounds and Structural Results, Journal of Machine Learning Research 3 (2002), 463–482. https://www.jmlr.org/papers/v3/bartlett02a.html
  • M. Ledoux and M. Talagrand, Probability in Banach Spaces: Isoperimetry and Processes, Springer, 1991. https://doi.org/10.1007/978-3-642-20212-4
  • V. Koltchinskii and D. Panchenko, Empirical margin distributions and bounding the generalization error of combined classifiers, Annals of Statistics 30 (2002), 1–50. https://doi.org/10.1214/aos/1015362183
  • S. Shalev-Shwartz and S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Lemma 26.9. https://doi.org/10.1017/CBO9781107298019
7 thms5 active usersReviewed
🏆Completed
Machine LearningStatistics·Captain: mikedeng1

Rademacher and Gaussian Complexities: Risk Bounds and Structural Results 2: With Probability 1 − δ, Every ±1 Classifier in F Has Error ≤ Training Error + R_n(F)/2 + √(ln(1/δ)/(2n))Research Paper

Motivation

A binary classifier is judged by its misclassification probability, the chance that it mislabels a fresh example. That probability is unknown; what a learner sees is the training error, the fraction of mistakes on the sample it was trained on. A generalization bound controls the gap between the two simultaneously for every classifier in a class, so that a classifier chosen by looking at the data still has a guaranteed error. The classical bounds of Vapnik and Chervonenkis measure the class by its VC dimension, a fixed combinatorial quantity that does not depend on the data distribution, and the paper recalls evidence that such fixed complexity penalties cannot be universally effective for model selection (p. 464).

Bartlett and Mendelson's paper in the Journal of Machine Learning Research (2002) studies two data-dependent alternatives, the Rademacher and Gaussian complexities, and proves risk bounds and structural rules for them. This mission formalizes the paper's classification bound, Theorem 5(b), which replaces the VC penalty by half the Rademacher complexity of the class. The source is the published JMLR article (jmlr.org/papers/v3/bartlett02a), pp. 463–482; all page numbers below are the journal's.

Timeline. Uniform convergence of empirical frequencies with a VC-dimension rate is due to Vapnik and Chervonenkis (1971). Rademacher penalties for model selection were introduced by Koltchinskii (2001) and by Bartlett, Boucheron and Lugosi (2002), who also proved Theorem 5(a) with the maximum discrepancy. The 2002 paper proves part (b) in Appendix B (p. 480) by adapting its proof of the general risk bound, Theorem 8 (p. 467).

Setting

Let X\mathcal XX be a measurable space and PPP a probability distribution on X×{±1}\mathcal X \times \{\pm 1\}X×{±1}; a pair (X,Y)∼P(X, Y) \sim P(X,Y)∼P is an example XXX with label YYY. Let FFF be a set of {±1}\{\pm 1\}{±1}-valued functions on X\mathcal XX (the classifiers), and let (Xi,Yi)i=1n(X_i, Y_i)_{i=1}^n(Xi​,Yi​)i=1n​ be an i.i.d. sample drawn from PnP^nPn.

  • The misclassification probability of f∈Ff \in Ff∈F is P(Y≠f(X))P(Y \ne f(X))P(Y=f(X)).
  • The training error of fff is P^n(Y≠f(X))=1n#{i:Yi≠f(Xi)}\hat P_n(Y \ne f(X)) = \frac1n \#\{i : Y_i \ne f(X_i)\}P^n​(Y=f(X))=n1​#{i:Yi​=f(Xi​)}, where P^n\hat P_nP^n​ is the empirical measure of the sample (p. 463).
  • Let σ1,…,σn\sigma_1, \dots, \sigma_nσ1​,…,σn​ be independent uniform {±1}\{\pm 1\}{±1}-valued random variables, independent of the sample. The empirical Rademacher complexity of a class GGG of real functions on X\mathcal XX at the points x1,…,xnx_1, \dots, x_nx1​,…,xn​ is
R^n(G)(x)=Eσsup⁡g∈G∣2n∑i=1nσi g(xi)∣,\hat R_n(G)(x) = \mathbb E_\sigma \sup_{g \in G}\Big|\frac2n \sum_{i=1}^n \sigma_i\, g(x_i)\Big|,R^n​(G)(x)=Eσ​g∈Gsup​​n2​i=1∑n​σi​g(xi​)​,

and the Rademacher complexity is Rn(G)=E R^n(G)(X1,…,Xn)R_n(G) = \mathbb E\, \hat R_n(G)(X_1, \dots, X_n)Rn​(G)=ER^n​(G)(X1​,…,Xn​) with X1,…,XnX_1, \dots, X_nX1​,…,Xn​ i.i.d. (Definition 2, p. 464). Note the factor 2/n2/n2/n and the absolute value.

  • In Theorem 5, Rn(F)R_n(F)Rn​(F) is the Rademacher complexity of FFF itself, viewed as a class of real functions with values ±1\pm1±1, under the marginal of PPP on X\mathcal XX.
  • With the 0–1 loss L(Y,f(X))=1(Y≠f(X))\mathcal L(Y, f(X)) = \mathbf 1(Y \ne f(X))L(Y,f(X))=1(Y=f(X)), the largest gap on a sample is Φ=sup⁡h∈L∘F(Eh−E^nh)=sup⁡f∈F(P(Y≠f(X))−P^n(Y≠f(X)))\Phi = \sup_{h \in \mathcal L \circ F}(\mathbb E h - \hat{\mathbb E}_n h) = \sup_{f\in F}\big(P(Y \ne f(X)) - \hat P_n(Y \ne f(X))\big)Φ=suph∈L∘F​(Eh−E^n​h)=supf∈F​(P(Y=f(X))−P^n​(Y=f(X))).

Formalization targets

Goal: Theorem 5(b), p. 465

For every 0<δ<10 < \delta < 10<δ<1, with probability at least 1−δ1 - \delta1−δ over the sample, every f∈Ff \in Ff∈F satisfies

P(Y≠f(X))≤P^n(Y≠f(X))+Rn(F)2+ln⁡(1/δ)2n.P(Y \ne f(X)) \le \hat P_n(Y \ne f(X)) + \frac{R_n(F)}{2} + \sqrt{\frac{\ln(1/\delta)}{2n}} .P(Y=f(X))≤P^n​(Y=f(X))+2Rn​(F)​+2nln(1/δ)​​.

The bound is uniform: the probability that some fff violates it is at most δ\deltaδ.

Milestones (Appendix B, p. 480)

  1. Bounded differences. Replacing one example changes Φ\PhiΦ by at most 1/n1/n1/n.
  2. McDiarmid step. With probability at least 1−δ1-\delta1−δ, every f∈Ff \in Ff∈F satisfies
P(Y≠f(X))≤P^n(Y≠f(X))+E Φ+ln⁡(1/δ)2n.P(Y \ne f(X)) \le \hat P_n(Y \ne f(X)) + \mathbb E\,\Phi + \sqrt{\frac{\ln(1/\delta)}{2n}} .P(Y=f(X))≤P^n​(Y=f(X))+EΦ+2nln(1/δ)​​.
  1. Symmetrization. E Φ≤Rn(F)/2\mathbb E\,\Phi \le R_n(F)/2EΦ≤Rn​(F)/2.

Supporting platform items, referenced and not restated: McDiarmid's inequality for i.i.d. samples (StabGen.Uniform.mcdiarmid_inequality, open) and the symmetrization lemma in the normalization of Shalev-Shwartz and Ben-David (UnderstandingML.representativeness_le_rademacher, proved).

Significance

The result. Theorem 5(b) is a distribution-dependent risk bound for classification whose complexity term can be estimated from a single sample. The paper shows (Theorem 6, p. 465) that it is never much worse than the VC bound, since the empirical Rademacher complexity of a {±1}\{\pm1\}{±1} class is O(d/n)O(\sqrt{d/n})O(d/n​) in terms of its empirical VC dimension ddd, and it can be much better. It also serves as the template for margin bounds for large-margin classifiers, kernel machines and voting methods in Section 4 of the paper.

Formalizing it. The result is proved in the paper; no machine-checked proof is known to exist. A formal proof needs McDiarmid's inequality, a symmetrization argument with a ghost sample, and the reduction of the 0–1 loss class to the classifier class through the identity 1(Y≠f(X))=(1−Yf(X))/2\mathbf 1(Y \ne f(X)) = (1 - Y f(X))/21(Y=f(X))=(1−Yf(X))/2. The milestones split these, so they can be proved independently. The symmetrization milestone also corrects a printed slip (see Formalization scope).

Difficulty

The bounded-difference step and the final union of the two halves are short. The difficulty is in the symmetrization. The supremum over an uncountable class is not automatically measurable, so the expectations in the paper's chain need not exist as written; a proof must work with exactly the random variables it integrates and use only the measurability it is given. The exchange of a sample point with its ghost copy, the conditioning on the sample, and the replacement of σiYi\sigma_i Y_iσi​Yi​ by σi\sigma_iσi​ must each be justified on finite sign averages and product measures. The obvious shortcut, bounding the gap by the Rademacher complexity of the loss class L∘F\mathcal L \circ FL∘F, does not give the stated term: with the absolute value of Definition 2, the loss class's complexity is not Rn(F)/2R_n(F)/2Rn​(F)/2, because (1−Yif(Xi))/2(1 - Y_i f(X_i))/2(1−Yi​f(Xi​))/2 contributes a sign sum that does not depend on fff.

Formalization scope

Lean conventions:

  • Labels {±1}\{\pm1\}{±1} are the units Z×={1,−1}\mathbb Z^\times = \{1, -1\}Z×={1,−1}, coerced to R\mathbb RR; the real class of FFF is {x↦(f(x):R)}\{x \mapsto (f(x) : \mathbb R)\}{x↦(f(x):R)}. Sample indices are 0,…,n−10, \dots, n-10,…,n−1; the sample law is the product measure PnP^nPn.
  • The Rademacher complexities take values in [0,∞][0, \infty][0,∞]: the sign expectation is the exact average over the 2n2^n2n sign vectors, and the sample expectation is a lower Lebesgue integral. An unbounded class therefore has complexity +∞+\infty+∞, not a junk 000. The goal compares values in [0,∞][0,\infty][0,∞] with ENNReal.ofReal on the real terms.
  • "With probability at least 1−δ1-\delta1−δ, every fff in FFF" is encoded as: the outer PnP^nPn-measure of {S:∃f∈F, the bound fails}\{S : \exists f \in F,\ \text{the bound fails}\}{S:∃f∈F, the bound fails} is at most δ\deltaδ.

Hypotheses added relative to the page, each necessary or a reading of the page:

  • n≥1n \ge 1n≥1: at n=0n = 0n=0 Lean's 2/0=02/0 = 02/0=0 makes R0(F)=0R_0(F) = 0R0​(F)=0 and the bound false.
  • 0<δ<10 < \delta < 10<δ<1, as in Theorem 8 (p. 467).
  • Every f∈Ff \in Ff∈F is measurable, and three random variables are measurable: the gap supremum Φ\PhiΦ, the double-sample supremum (S,S′)↦sup⁡f(P^n′−P^n)(Y≠f(X))(S, S') \mapsto \sup_f(\hat P'_n - \hat P_n)(Y \ne f(X))(S,S′)↦supf​(P^n′​−P^n​)(Y=f(X)), and x↦R^n(F)(x)x \mapsto \hat R_n(F)(x)x↦R^n​(F)(x). The paper does not discuss measurability; these are exactly the variables the proof integrates, as in the proved platform item UnderstandingML.representativeness_le_rademacher. They hold, for instance, for countable classes.
  • The two intermediate milestones assume FFF nonempty, so that the real suprema in them are genuine.

Corrected slip: the chain on p. 480 ends "=Esup⁡f1n∑iσif(Xi)=Rn(F)/2= \mathbb E \sup_f \frac1n\sum_i\sigma_i f(X_i) = R_n(F)/2=Esupf​n1​∑i​σi​f(Xi​)=Rn​(F)/2". The last equality is only "≤\le≤": RnR_nRn​ carries an absolute value, and for F={f}F = \{f\}F={f} the left side of that step is 000 while Rn(F)/2>0R_n(F)/2 > 0Rn​(F)/2>0. The symmetrization milestone states the chain's conclusion with ≤\le≤, which is all Theorem 5(b) needs.

Not a valid formalization: a version with a real-valued supremum or Bochner integral for RnR_nRn​ (which would read 000 on an unbounded or non-integrable class and make the bound false or free), one that drops the absolute value or uses the 1/n1/n1/n normalization, or one that measures RnR_nRn​ of the loss class instead of FFF. Theorem 5(a) (maximum discrepancy, due to Bartlett, Boucheron and Lugosi) is not part of this mission.

Contributions welcome: proofs of the three milestones and the goal; the general McDiarmid inequality (the referenced open item); and reusable lemmas on measurable suprema of classifier families.

Selected references

  • P. L. Bartlett, S. Mendelson, Rademacher and Gaussian Complexities: Risk Bounds and Structural Results, Journal of Machine Learning Research 3 (2002) 463–482. https://www.jmlr.org/papers/v3/bartlett02a.html
  • P. L. Bartlett, S. Boucheron, G. Lugosi, Model selection and error estimation, Machine Learning 48 (2002) 85–113. https://doi.org/10.1023/A:1013999503812
  • V. Koltchinskii, Rademacher penalties and structural risk minimization, IEEE Transactions on Information Theory 47(5) (2001) 1902–1914. https://doi.org/10.1109/18.930926
  • C. McDiarmid, On the method of bounded differences, Surveys in Combinatorics 1989, LMS Lecture Note Series 141, 148–188. https://doi.org/10.1017/CBO9781107359949.008
  • V. N. Vapnik, A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory of Probability and its Applications 16 (1971) 264–280. https://doi.org/10.1137/1116025
8 thms5 active usersReviewed
🏆Completed
Machine LearningStatistics·Captain: mikedeng1

Rademacher and Gaussian Complexities: Risk Bounds and Structural Results 1: With Probability 1 − δ, Expected Loss ≤ Empirical Dominating Cost + R_n(φ̃∘F) + √(8 ln(2/δ)/n) for Every f in FResearch Paper

Motivation

A learning algorithm picks a predictor fff from a class FFF after looking at nnn training examples, and the quantity of interest is its expected loss on a fresh example. Since fff depends on the data, its training error is a biased estimate of that loss, and a risk bound quantifies the bias uniformly over the class: with high probability, every f∈Ff \in Ff∈F has expected loss at most an observable sample average plus a complexity penalty. Classical penalties (VC dimension, covering numbers, fat-shattering dimension) are fixed in advance; data-dependent penalties such as the Rademacher complexity can be estimated from the sample itself and adapt to the distribution, which matters for model selection by complexity regularization.

Bartlett and Mendelson, Rademacher and Gaussian Complexities: Risk Bounds and Structural Results (JMLR 3, 2002, jmlr.org), state such a bound in a general decision-theoretic setting (Theorem 8, p. 467): the loss is any [0,1][0,1][0,1]-valued function of an outcome and an action, and the sample average is taken of a dominating cost ϕ≥L\phi \ge \mathcal Lϕ≥L, which may be Lipschitz and hence amenable to the structural results of the paper's §3 even when L\mathcal LL is a discontinuous 000–111 loss. Multiclass classification with error-correcting output codes is the paper's example. The ingredients — McDiarmid's inequality (McDiarmid, 1989) and symmetrization — are standard; the paper combines them for this setting with a centred cost class. The source is the published JMLR article (pp. 463–482); all page numbers below are its printed pages.

Setting

Let X\mathcal XX be an input space, Y\mathcal YY an output space and A\mathcal AA an action space with a distinguished action 0∈A0 \in \mathcal A0∈A, each a measurable space. A probability measure PPP on X×Y\mathcal X \times \mathcal YX×Y generates independent examples (X1,Y1),…,(Xn,Yn)(X_1, Y_1), \dots, (X_n, Y_n)(X1​,Y1​),…,(Xn​,Yn​), and (X,Y)(X, Y)(X,Y) is a fresh draw from PPP.

  • A loss is L:Y×A→[0,1]\mathcal L : \mathcal Y \times \mathcal A \to [0,1]L:Y×A→[0,1]; a cost ϕ:Y×A→[0,1]\phi : \mathcal Y \times \mathcal A \to [0,1]ϕ:Y×A→[0,1] dominates it if ϕ(y,a)≥L(y,a)\phi(y,a) \ge \mathcal L(y,a)ϕ(y,a)≥L(y,a) for all y,ay, ay,a.
  • FFF is a class of maps X→A\mathcal X \to \mathcal AX→A; the expected loss of fff is EL(Y,f(X))=∫L(y,f(x)) dP(x,y)\mathbf E\mathcal L(Y, f(X)) = \int \mathcal L(y, f(x))\, dP(x,y)EL(Y,f(X))=∫L(y,f(x))dP(x,y).
  • The empirical mean of h:X×Y→Rh : \mathcal X \times \mathcal Y \to \mathbb Rh:X×Y→R is E^nh=1n∑i=1nh(Xi,Yi)\hat{\mathbf E}_n h = \frac1n\sum_{i=1}^n h(X_i, Y_i)E^n​h=n1​∑i=1n​h(Xi​,Yi​).
  • The centred cost class is ϕ~∘F={(x,y)↦ϕ(y,f(x))−ϕ(y,0):f∈F}\tilde\phi\circ F = \{(x,y) \mapsto \phi(y, f(x)) - \phi(y, 0) : f \in F\}ϕ~​∘F={(x,y)↦ϕ(y,f(x))−ϕ(y,0):f∈F}.
  • For a class GGG of real functions on a space Z\mathcal ZZ and a sample z1,…,znz_1, \dots, z_nz1​,…,zn​, the empirical Rademacher complexity is
R^n(G)=Eσsup⁡g∈G∣2n∑i=1nσig(zi)∣,\hat R_n(G) = \mathbf E_\sigma \sup_{g \in G}\Bigl|\frac2n\sum_{i=1}^n \sigma_i g(z_i)\Bigr|,R^n​(G)=Eσ​g∈Gsup​​n2​i=1∑n​σi​g(zi​)​,

with σ1,…,σn\sigma_1, \dots, \sigma_nσ1​,…,σn​ independent uniform signs, and the Rademacher complexity is Rn(G)=ER^n(G)R_n(G) = \mathbf E\hat R_n(G)Rn​(G)=ER^n​(G), the expectation over an i.i.d. sample (Definition 2, p. 464). The factor is 2/n2/n2/n and the absolute value is inside the supremum.

In Lean these are RadGauss.RiskBound.empiricalRademacher, rademacherComplexity, empMean, supDev (the uniform deviation sup⁡h∈G(Eh−E^nh)\sup_{h \in G}(\mathbf Eh - \hat{\mathbf E}_nh)suph∈G​(Eh−E^n​h)), doubleSupDev and phiTildeComp.

Formalization targets

Goal: Theorem 8 (p. 467)

For every integer n≥1n \ge 1n≥1 and every 0<δ<10 < \delta < 10<δ<1, with probability at least 1−δ1-\delta1−δ over the sample, every f∈Ff \in Ff∈F satisfies

EL(Y,f(X))≤E^nϕ(Y,f(X))+Rn(ϕ~∘F)+8ln⁡(2/δ)n.\mathbf E\mathcal L(Y, f(X)) \le \hat{\mathbf E}_n\phi(Y, f(X)) + R_n(\tilde\phi\circ F) + \sqrt{\frac{8\ln(2/\delta)}{n}} .EL(Y,f(X))≤E^n​ϕ(Y,f(X))+Rn​(ϕ~​∘F)+n8ln(2/δ)​​.

The event is uniform over FFF. The constant 8\sqrt 88​ is the printed one.

Milestones (the steps of the paper's proof)

  1. Theorem 9 (McDiarmid's inequality), p. 467: for independent, not necessarily identically distributed XiX_iXi​ and fff with bounded differences cic_ici​,
P{f(X1,…,Xn)−Ef(X1,…,Xn)≥t}≤e−2t2/∑ici2.P\{f(X_1,\dots,X_n) - \mathbf Ef(X_1,\dots,X_n) \ge t\} \le e^{-2t^2/\sum_i c_i^2}.P{f(X1​,…,Xn​)−Ef(X1​,…,Xn​)≥t}≤e−2t2/∑i​ci2​.
  1. Bounded differences, p. 467: replacing one example changes sup⁡h∈ϕ~∘F(Eh−E^nh)\sup_{h \in \tilde\phi\circ F}(\mathbf Eh - \hat{\mathbf E}_nh)suph∈ϕ~​∘F​(Eh−E^n​h) by at most 2/n2/n2/n.
  2. Concentration, p. 467: with probability at least 1−δ/21 - \delta/21−δ/2,
sup⁡h(Eh−E^nh)≤Esup⁡h(Eh−E^nh)+2ln⁡(2/δ)/n.\sup_{h}(\mathbf Eh - \hat{\mathbf E}_nh) \le \mathbf E\sup_{h}(\mathbf Eh - \hat{\mathbf E}_nh) + \sqrt{2\ln(2/\delta)/n}.hsup​(Eh−E^n​h)≤Ehsup​(Eh−E^n​h)+2ln(2/δ)/n​.
  1. Combined bound, p. 468: with probability at least 1−δ1-\delta1−δ, for all f∈Ff \in Ff∈F,
EL(Y,f(X))≤E^nϕ(Y,f(X))+Esup⁡h∈ϕ~∘F(Eh−E^nh)+8ln⁡(2/δ)/n.\mathbf E\mathcal L(Y, f(X)) \le \hat{\mathbf E}_n\phi(Y, f(X)) + \mathbf E\sup_{h \in \tilde\phi\circ F}(\mathbf Eh - \hat{\mathbf E}_nh) + \sqrt{8\ln(2/\delta)/n}.EL(Y,f(X))≤E^n​ϕ(Y,f(X))+Eh∈ϕ~​∘Fsup​(Eh−E^n​h)+8ln(2/δ)/n​.
  1. Symmetrization, p. 468:
Esup⁡h∈ϕ~∘F(Eh−E^nh)≤Rn(ϕ~∘F).\mathbf E\sup_{h \in \tilde\phi\circ F}(\mathbf Eh - \hat{\mathbf E}_nh) \le R_n(\tilde\phi\circ F).Eh∈ϕ~​∘Fsup​(Eh−E^n​h)≤Rn​(ϕ~​∘F).

The platform's Proved UnderstandingML.representativeness_le_rademacher (Shalev-Shwartz and Ben-David, Lemma 26.2) is included as a supporting reference: it is the middle inequality of milestone 5 in the 1/n1/n1/n, absolute-value-free normalization.

Significance

Theorem 8 bounds the expected loss of any predictor in the class, including one selected by the data, by quantities the learner can compute or estimate: the empirical cost and the Rademacher complexity of the centred cost class, which concentrates around its empirical version. Combined with the paper's structural results (§3: contraction by Lipschitz maps, convex hulls, sums), it yields margin bounds for voting methods, neural networks and kernel machines (§4) from complexities of simple base classes. Centring by ϕ(y,0)\phi(y,0)ϕ(y,0) matters: with the absolute value inside the supremum, Rn(ϕ∘F)R_n(\phi\circ F)Rn​(ϕ∘F) can exceed Rn(ϕ~∘F)R_n(\tilde\phi\circ F)Rn​(ϕ~​∘F) by order 1/n1/\sqrt n1/n​ even for a single function.

The result is proved in the paper. As far as the platform's catalog shows, it has no machine-checked proof in this normalization; McDiarmid's inequality in the non-identically distributed form, the 2/n2/n2/n bounded-difference step and the absolute-value Rademacher symmetrization with factor 2/n2/n2/n are not on the platform. A Lean proof would give a reusable risk-bound template for any loss dominated by a bounded cost.

Difficulty

The obvious argument — bound Eϕ(Y,f(X))−E^nϕ(Y,f(X))\mathbf E\phi(Y,f(X)) - \hat{\mathbf E}_n\phi(Y,f(X))Eϕ(Y,f(X))−E^n​ϕ(Y,f(X)) for a fixed fff by Hoeffding's inequality — does not survive the choice of fff after seeing the data: the deviation must be controlled uniformly over FFF, and FFF is typically infinite. The supremum over FFF is a single random variable, but its expectation is not obviously small, and relating it to the Rademacher complexity requires a ghost sample and a sign-swap symmetry of the product measure. In a formal development, the supremum of an uncountable family is not automatically measurable; the expectations the argument manipulates must be genuine, not lower integrals, which is why the statements carry explicit measurability hypotheses. McDiarmid's inequality itself, for independent but not identically distributed coordinates, is a martingale-difference concentration argument that is not in Mathlib in this form.

Formalization scope

  • Sample and law. A sample is S : Fin n → X × Y, its law the product Measure.pi (fun _ => P). "With probability at least 1−δ1-\delta1−δ, every f∈Ff \in Ff∈F satisfies …" is encoded by bounding the (outer) measure of {S∣∃f∈F, ¬ bound}\{S \mid \exists f \in F,\ \neg\,\text{bound}\}{S∣∃f∈F, ¬bound} by δ\deltaδ, with 0<δ<10 < \delta < 10<δ<1.
  • Complexities in [0,∞][0,\infty][0,∞]. R^n\hat R_nR^n​ is an average over all 2n2^n2n sign vectors (Fin n → Bool, true =+1= +1=+1) of [0,∞][0,\infty][0,∞]-valued suprema; RnR_nRn​ is its Lebesgue integral. The goal is stated in [0,∞][0,\infty][0,∞], with the real terms embedded by ENNReal.ofReal (all are nonnegative). A real supremum or a Bochner integral would silently return 000 on an unbounded class or a non-integrable integrand, making the bound trivially false or vacuous; this is ruled out by the choice of codomain.
  • Added hypotheses, all implicit in the paper. n≥1n \ge 1n≥1 (at n=0n = 0n=0 Lean's 1/0=01/0 = 01/0=0 makes the bound read EL≤0\mathbf E\mathcal L \le 0EL≤0, which is false); measurability of L\mathcal LL, ϕ\phiϕ and every f∈Ff \in Ff∈F; a distinguished action 000 ([Zero A]).
  • Measurability guard. The goal and milestones 3–5 assume measurability of exactly the random variables the proof integrates: the uniform deviation S↦sup⁡h∈ϕ~∘F(Eh−E^nh)S \mapsto \sup_{h \in \tilde\phi\circ F}(\mathbf Eh - \hat{\mathbf E}_nh)S↦suph∈ϕ~​∘F​(Eh−E^n​h), the empirical Rademacher complexity S↦R^n(ϕ~∘F)S \mapsto \hat R_n(\tilde\phi\circ F)S↦R^n​(ϕ~​∘F), and the double-sample deviation (S,S′)↦sup⁡h(1n∑ih(Si′)−E^nh)(S,S') \mapsto \sup_h(\frac1n\sum_i h(S'_i) - \hat{\mathbf E}_nh)(S,S′)↦suph​(n1​∑i​h(Si′​)−E^n​h). These hold, for example, for countable FFF; the same guard is used by UnderstandingML.representativeness_le_rademacher.
  • No printed slip was found in the statements formalized here. In Theorem 9, if every ci=0c_i = 0ci​=0 the printed exponent has a zero denominator; Lean reads it as 000 and the bound as 111, which is true.
  • Not formalized: the paper's Theorem 10 and the applications; this mission covers Definition 2 and §2 up to the end of the proof of Theorem 8.

Contributions welcome: a proof of McDiarmid's inequality for Measure.pi (reusable well beyond this mission), the ghost-sample symmetrization with the sign-swap invariance of Pn⊗PnP^n \otimes P^nPn⊗Pn, and the final assembly.

Selected references

  • P. L. Bartlett and S. Mendelson, Rademacher and Gaussian Complexities: Risk Bounds and Structural Results, Journal of Machine Learning Research 3 (2002), 463–482. https://www.jmlr.org/papers/v3/bartlett02a.html
  • C. McDiarmid, On the method of bounded differences, Surveys in Combinatorics 1989, London Math. Soc. Lecture Note Series 141, Cambridge University Press, 148–188. https://doi.org/10.1017/CBO9781107359949.008
  • S. Shalev-Shwartz and S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 26. https://doi.org/10.1017/CBO9781107298019
  • V. Koltchinskii and D. Panchenko, Empirical margin distributions and bounding the generalization error of combined classifiers, Annals of Statistics 30 (2002), 1–50. https://doi.org/10.1214/aos/1015362183
10 thms5 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Introduction to the Scenario Approach I: The Violation Distribution of the Scenario SolutionTextbook

Motivation

Many design problems in control, finance and operations research are convex programs with uncertain constraints: a decision θ\thetaθ must satisfy θ∈Θδ\theta\in\Theta_\deltaθ∈Θδ​ for a parameter δ\deltaδ that is not known in advance. Enforcing the constraint for every possible δ\deltaδ (robust optimization) is often intractable or too conservative, and a chance-constrained formulation needs the distribution of δ\deltaδ, which in practice is rarely known. The scenario approach replaces the uncertain constraint by the constraints of NNN observed samples δ1,…,δN\delta_1,\dots,\delta_Nδ1​,…,δN​ and solves the resulting ordinary convex program. The question it answers is how much of the unseen uncertainty the resulting decision still violates.

The answer, the generalization theorem of the scenario approach, is distribution-free: the probability that the scenario solution violates more than a fraction ε\varepsilonε of the uncertainty is bounded by a binomial tail that depends only on NNN and on the number ddd of decision variables. This mission formalizes that theorem as it is presented in Chapters 3 and 5 of Campi and Garatti's textbook Introduction to the Scenario Approach (SIAM/MOS 2018), the first mission of a series on the book.

Timeline. Calafiore and Campi introduced scenario programs and bounded the violation of their solutions through the count of support constraints (Math. Program. 2005; IEEE TAC 2006). Campi and Garatti proved in 2008 that the binomial-tail bound of Theorem 3.7 holds for every convex scenario program under existence and uniqueness of the solution, and that it is attained with equality by fully supported problems (SIAM J. Optim. 2008), which settled the tightness question. The textbook (DOI 10.1137/1.9781611975444) presents the theorem with a complete proof for fully supported problems in the plane.

Setting

Fix a cost vector c∈Rdc\in\mathbb R^dc∈Rd, a domain Θ⊆Rd\Theta\subseteq\mathbb R^dΘ⊆Rd, a measurable space Δ\DeltaΔ of uncertainty instances with a probability P\mathbb PP, and a constraint set Θδ⊆Rd\Theta_\delta\subseteq\mathbb R^dΘδ​⊆Rd for each δ∈Δ\delta\in\Deltaδ∈Δ.

  • The violation of a decision θ\thetaθ (Definition 3.1) is V(θ)=P{δ∈Δ:θ∉Θδ}V(\theta)=\mathbb P\{\delta\in\Delta:\theta\notin\Theta_\delta\}V(θ)=P{δ∈Δ:θ∈/Θδ​}, the probability that θ\thetaθ fails the constraint of a fresh instance.
  • For a sample (δ1,…,δm)(\delta_1,\dots,\delta_m)(δ1​,…,δm​), the scenario program is
min⁡θ∈ΘcTθsubject toθ∈⋂i=1mΘδi.\min_{\theta\in\Theta}c^T\theta\quad\text{subject to}\quad\theta\in\bigcap_{i=1}^{m}\Theta_{\delta_i}.θ∈Θmin​cTθsubject toθ∈i=1⋂m​Θδi​​.

A solution is a feasible point of least cost. With m=Nm=Nm=N i.i.d. samples its solution is denoted θ∗\theta^*θ∗; it is a random vector, a function of the sample, and V(θ∗)V(\theta^*)V(θ∗) is a random variable in [0,1][0,1][0,1].

  • Assumption 3.4 (convexity): Θ\ThetaΘ and every Θδ\Theta_\deltaΘδ​ are convex and closed. Assumption 3.6 (existence and uniqueness): for every mmm and every sample, the program with mmm constraints has exactly one solution.
  • A constraint is a support constraint (Definition 5.1) if its removal improves the solution. A problem is fully supported (Definition 5.4) if for every m≥dm\ge dm≥d the program with mmm constraints has, with probability 1, exactly ddd support constraints.

Formalization targets

Goal: Theorem 3.7

For 1≤d≤N1\le d\le N1≤d≤N and every ε∈[0,1]\varepsilon\in[0,1]ε∈[0,1], under Assumptions 3.4 and 3.6,

PN{V(θ∗)>ε}≤∑i=0d−1(Ni)εi(1−ε)N−i.\mathbb P^N\{V(\theta^*)>\varepsilon\}\le\sum_{i=0}^{d-1}\binom Ni\varepsilon^i(1-\varepsilon)^{N-i}.PN{V(θ∗)>ε}≤i=0∑d−1​(iN​)εi(1−ε)N−i.

The right-hand side is the upper tail of a Beta(d,N−d+1)(d,N-d+1)(d,N−d+1) distribution. The statement leaves P\mathbb PP, Θ\ThetaΘ and the constraint family completely unspecified beyond the two assumptions.

Milestones

  1. Helly's lemma (Lemma 5.3), referenced from the platform in its ddd-dimensional form.
  2. Theorem 5.2: for every mmm and every sample, a convex scenario program has at most ddd support constraints.
  3. Eq. (5.3): for a fully supported problem with d=N=2d=N=2d=N=2, P2{V(θ∗)>ε}=1−ε2\mathbb P^2\{V(\theta^*)>\varepsilon\}=1-\varepsilon^2P2{V(θ∗)>ε}=1−ε2.
  4. Eq. (5.2): for fully supported problems, Theorem 3.7 holds with equality.
  5. Eqs. (3.5)–(3.6): the bound is the Beta(d,N−d+1)(d,N-d+1)(d,N−d+1) distribution function (a published incomplete-beta identity).
  6. Eq. (3.9): ∑i=0d−1(Ni)εi(1−ε)N−i≤2d−1(1−ε/2)N≤2d−1e−εN/2\sum_{i=0}^{d-1}\binom Ni\varepsilon^i(1-\varepsilon)^{N-i}\le 2^{d-1}(1-\varepsilon/2)^N\le2^{d-1}e^{-\varepsilon N/2}∑i=0d−1​(iN​)εi(1−ε)N−i≤2d−1(1−ε/2)N≤2d−1e−εN/2.
  7. Theorem 3.8: E[V(θ∗)]≤d/(N+1)\mathbb E[V(\theta^*)]\le d/(N+1)E[V(θ∗)]≤d/(N+1).
  8. Theorem 1.3: if N≥2ε(ln⁡1β+d−1)N\ge\frac2\varepsilon(\ln\frac1\beta+d-1)N≥ε2​(lnβ1​+d−1), then V(θ∗)≤εV(\theta^*)\le\varepsilonV(θ∗)≤ε with probability at least 1−β1-\beta1−β.

Significance

Theorem 3.7 is what makes the scenario approach usable as a design method: it certifies the reliability of a decision computed from data without any knowledge of the data-generating distribution, requiring only independence of the samples. Theorems 3.8 and 1.3 are its two most used consequences, an expected-violation bound and an explicit sample size, and later chapters of the book (constraint removal, the FAST algorithm, empirical-cost results) build on the same statement. Equality for fully supported problems shows that the bound cannot be improved for any ddd and NNN.

The theorem is proved in the literature; it has no machine-checked proof. A formalization produces, beyond the result itself, a reusable library of scenario programs, violation probabilities and support constraints on which the rest of the series (constraint removal, nonconvex support sets) can be stated, and it checks the measure-theoretic content that the book deliberately leaves aside ("measurability issues are glossed over throughout", p. 33).

Difficulty

The deterministic part, at most ddd support constraints, is a short consequence of Helly's theorem. The probabilistic part is where the obvious approach fails. A uniform-convergence argument over all θ\thetaθ (Vapnik–Chervonenkis theory, footnote 11 of the book) gives bounds of the wrong order and can be vacuous, because it ignores that only the solution matters. The sharp bound is an exact statement about the law of V(θ∗)V(\theta^*)V(θ∗), not a union bound, and problems with fewer than ddd support constraints, or with degenerate configurations of constraints, must be shown to be no worse than fully supported ones; the book treats the general case only in the plane and refers to Campi & Garatti 2008 for general ddd. Handling the null sets and the exchangeability of the samples under the product measure is a substantial part of the work.

Formalization scope

  • Decisions live in EuclideanSpace ℝ (Fin d); the cost is inner ℝ c θ. A sample of size mmm is ω : Fin m → Δ with law Measure.pi (fun _ : Fin m => P), and P is a probability measure.
  • The violation is the real number (P {δ | θ ∉ Θδ δ}).toReal; probabilities of events over the sample are compared in [0,∞][0,\infty][0,∞] through ENNReal.ofReal.
  • The solution θ∗\theta^*θ∗ is a function θstar : (Fin N → Δ) → EuclideanSpace ℝ (Fin d) together with the hypothesis that θstar ω solves the program for every sample; it is never an arbitrary map.
  • Assumption 3.6 is stated for every mmm including m=0m=0m=0 (a unique minimizer on Θ\ThetaΘ itself) and for every sample, as on the page.
  • Hypotheses the page leaves implicit are explicit: the constraint relation {(θ,δ):θ∈Θδ}\{(\theta,\delta):\theta\in\Theta_\delta\}{(θ,δ):θ∈Θδ​} is jointly measurable and θstar is measurable (the book's p. 33 convention); ε∈[0,1]\varepsilon\in[0,1]ε∈[0,1]; d≥1d\ge1d≥1.
  • A support constraint is one whose removal leaves a feasible point of strictly smaller cost than the solution; the count is a Finset.card over Fin m.
  • Theorem 3.8 asserts integrability of V(θ∗)V(\theta^*)V(θ∗) together with the bound, so it cannot hold through the convention that a non-integrable function integrates to 000. Theorem 1.3's own sentence omits the assumptions; they are added as in §3.2.1, where it is derived from Theorem 3.7.

A statement in which θ∗\theta^*θ∗ is any feasible point of the program, or merely a measurable function of the sample, is false and does not count as a formalization of Theorem 3.7; nor does one in which Assumption 3.6 is weakened to almost every sample. Contributions of general infrastructure are welcome: exchangeability arguments for product measures, the binomial–beta identity, and Helly-type counting lemmas are reusable well beyond this mission.

Selected references

  • M. C. Campi, S. Garatti, Introduction to the Scenario Approach, MOS-SIAM Series on Optimization 26, SIAM/MOS, 2018. https://doi.org/10.1137/1.9781611975444
  • M. C. Campi, S. Garatti, The exact feasibility of randomized solutions of uncertain convex programs, SIAM Journal on Optimization 19(3), 2008. https://doi.org/10.1137/07069821X
  • G. Calafiore, M. C. Campi, Uncertain convex programs: randomized solutions and confidence levels, Mathematical Programming 102, 2005. https://doi.org/10.1007/s10107-003-0499-y
  • G. Calafiore, M. C. Campi, The scenario approach to robust control design, IEEE Transactions on Automatic Control 51(5), 2006. https://doi.org/10.1109/TAC.2006.875041
  • E. Helly, Über Mengen konvexer Körper mit gemeinschaftlichen Punkten, Jahresbericht der DMV 32, 1923.
16 thms5 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Competitive Randomized Algorithms for Nonuniform Problems III: The Optimal Randomized Two-Server Ratio on the 1-d-d Isosceles TriangleResearch Paper

Motivation

The k-server problem of Manasse, McGeoch and Sleator (J. Algorithms 11 (1990)) asks how kkk mobile servers in a metric space should respond, on-line, to a sequence of requests at points of the space, each of which must be covered by a server. It is the central model of on-line computation: paging is the special case of a uniform metric, and many caching and scheduling problems reduce to it. For two servers the deterministic picture is complete: the optimal competitive ratio is 222 on every metric space with at least three points.

Randomization changes the picture, and the smallest nontrivial case already shows how. On the equilateral triangle the optimal randomized ratio against an oblivious adversary is 3/23/23/2. Karlin, Manasse, McGeoch and Owicki (Algorithmica 11 (1994) 542–571) computed the exact optimal randomized ratio for several nonuniform triangles, where the distances differ, and showed that it depends on the geometry. Their Theorem 12 settles the whole family of isosceles triangles with edge lengths 111, ddd, ddd. These exact values are among the few known optimal randomized ratios for server problems.

Timeline:

  • 1990: Manasse, McGeoch and Sleator introduce the kkk-server problem and prove the deterministic two-server ratio is 222.
  • 1990–1994: Karlin, Manasse, McGeoch and Owicki submit this paper (received August 1990, revised September 1991) and publish it in Algorithmica in 1994, with the isosceles-triangle ratios of Theorem 12 and the 3-4-5 triangle ratio 1652/10691652/10691652/1069 of Theorem 13.
  • Later: Karloff, Rabani and Ravid extend the technique to Ω(log⁡log⁡k)\Omega(\log\log k)Ω(loglogk) and Ω(log⁡k)\Omega(\log k)Ω(logk) randomized lower bounds (cited on p. 564); Bubeck, Coester and Rabani (STOC 2023) refute the randomized kkk-server conjecture.

Setting

Fix an integer d≥1d\ge1d≥1. The isosceles triangle MMM has three points aaa, bbb, ccc with

dist⁡(a,b)=1,dist⁡(a,c)=dist⁡(b,c)=d.\operatorname{dist}(a,b)=1,\qquad \operatorname{dist}(a,c)=\operatorname{dist}(b,c)=d.dist(a,b)=1,dist(a,c)=dist(b,c)=d.

A configuration C:{0,1}→MC:\{0,1\}\to MC:{0,1}→M places two labelled servers on points of MMM. A deterministic on-line algorithm assigns to every finite request sequence σ=(r1,…,rn)\sigma=(r_1,\dots,r_n)σ=(r1​,…,rn​) a configuration, computed from σ\sigmaσ alone and covering the last request; its value on the empty sequence is its initial configuration. Its cost CA(σ)C_A(\sigma)CA​(σ) is the total distance its servers move while serving σ\sigmaσ request by request. The off-line optimum Copt(σ)C_{opt}(\sigma)Copt​(σ) from an initial configuration C0C_0C0​ is the least total movement of any schedule that starts at C0C_0C0​ and covers each request in turn, knowing σ\sigmaσ in advance.

A randomized algorithm is a probability distribution on deterministic on-line algorithms; its expected cost is ECA(σ)\mathbf{E}C_A(\sigma)ECA​(σ). It is ρ\rhoρ-competitive against an oblivious adversary from C0C_0C0​ if every algorithm in its support starts at C0C_0C0​ and there is a constant aaa such that

ECA(σ)≤ρ⋅Copt(σ)+afor every request sequence σ.\mathbf{E}C_A(\sigma)\le\rho\cdot C_{opt}(\sigma)+a\qquad\text{for every request sequence }\sigma.ECA​(σ)≤ρ⋅Copt​(σ)+afor every request sequence σ.

The request sequence is fixed in advance and does not react to the algorithm's coin flips.

Write ep=(1+1/p)pe_p=(1+1/p)^pep​=(1+1/p)p and

αd=e2d−1+1/4d(e2d−1−1)+1/2d,e2d−1=(2d2d−1)2d−1.\alpha_d=\frac{e_{2d-1}+1/4d}{(e_{2d-1}-1)+1/2d},\qquad e_{2d-1}=\left(\frac{2d}{2d-1}\right)^{2d-1}.αd​=(e2d−1​−1)+1/2de2d−1​+1/4d​,e2d−1​=(2d−12d​)2d−1.

In Lean this is NonuniformCompetitive.Isosceles.isoscelesRatio d.

Formalization targets

Goal: Theorem 12

For every d≥1d\ge1d≥1 and every initial configuration C0C_0C0​:

∀A, ∀ρ,A is ρ-competitive from C0 ⟹ ρ≥αd,\forall A,\ \forall\rho,\quad A\text{ is }\rho\text{-competitive from }C_0\ \Longrightarrow\ \rho\ge\alpha_d,∀A, ∀ρ,A is ρ-competitive from C0​ ⟹ ρ≥αd​, ∃A: A is αd-competitive from C0.\exists A:\ A\text{ is }\alpha_d\text{-competitive from }C_0.∃A: A is αd​-competitive from C0​.

The two claims are also milestones of their own (no_better_ratio, ratio_attained).

The phase LP (§5, pp. 565–566)

For free real π1,…,π2d−1\pi_1,\dots,\pi_{2d-1}π1​,…,π2d−1​ and real α\alphaα with

(πk)2d+∑i=1k(1−πi)≤αk  (1≤k<2d),2d+∑i=12d−1(1−πi)+12≤α⋅2d,(\pi_k)2d+\sum_{i=1}^k(1-\pi_i)\le\alpha k\ \ (1\le k<2d),\qquad 2d+\sum_{i=1}^{2d-1}(1-\pi_i)+\tfrac12\le\alpha\cdot2d,(πk​)2d+i=1∑k​(1−πi​)≤αk  (1≤k<2d),2d+i=1∑2d−1​(1−πi​)+21​≤α⋅2d,

one has α≥αd\alpha\ge\alpha_dα≥αd​ (lp_lower_bound); and πk=(αd−1)((2d/(2d−1))k−1)\pi_k=(\alpha_d-1)\big((2d/(2d-1))^k-1\big)πk​=(αd​−1)((2d/(2d−1))k−1), π2d=1\pi_{2d}=1π2d​=1 is nondecreasing from π1≥0\pi_1\ge0π1​≥0 to 111 and makes every constraint an equality (lp_attained).

The limit remark (§5, p. 566)

α1<α2<α3<⋯ ,lim⁡d→∞αd=ee−1\alpha_1<\alpha_2<\alpha_3<\cdots,\qquad \lim_{d\to\infty}\alpha_d=\frac{e}{e-1}α1​<α2​<α3​<⋯,d→∞lim​αd​=e−1e​

(ratio_increases_to_e_ratio).

Significance

The theorem gives an exact optimal randomized ratio for an infinite family of metric spaces. It shows that the optimal randomized two-server ratio is not a constant: it runs from 3/23/23/2 on the equilateral triangle to e/(e−1)≈1.582e/(e-1)\approx1.582e/(e−1)≈1.582 as the triangle becomes long and thin, where the problem resembles ski rental. With the deterministic ratio 222, it quantifies exactly how much randomization gains on these spaces.

The results are proved in the paper; none is formalized on Prove2Me, and no machine-checked proof of them is known. A formal proof would require the paper's phase framework (Theorems 1–3 and the appendix's Theorem 15) for server problems, which this mission does not state separately, and a concrete randomized algorithm as a measurable mixed strategy. Both would be reusable for Theorem 13 (the 3-4-5 triangle) and for other exact ratios on small metric spaces.

Difficulty

The phase LP milestones are finite real arithmetic. The difficulty is the passage between them and the goal. The lower bound must hold for every randomized algorithm, not only phase-based lazy ones: an arbitrary algorithm may condition on the whole history, move non-lazily, and randomize in ways that do not reduce to the probabilities πk\pi_kπk​. The paper handles this with Theorem 3, which says that the LP bound of phase-based algorithms bounds the competitive factor of all algorithms; its proof uses an averaging argument over histories that must be made rigorous. The upper bound needs a mixed strategy over infinitely many phases, with measurable costs, an explicit additive constant covering the first partial phase from an arbitrary initial configuration, and an accounting of CoptC_{opt}Copt​ across phase boundaries.

Formalization scope

The model is the platform's published KServer_model and KServer_randomized (reference items): labelled servers Fin 2 → M; a deterministic on-line algorithm as a map from request prefixes to configurations; a randomized algorithm as a probability measure over deterministic algorithms, with the cost of each fixed sequence measurable in the random outcome; expected cost as a lower Lebesgue integral in [0,∞][0,\infty][0,∞]; the off-line optimum as a real infimum over schedules from C0C_0C0​ (nonempty and bounded below by 000); and IsCompetitiveFrom A C₀ c with a real additive constant.

Committed conventions:

  • The triangle is any metric space whose points are exactly a,b,ca,b,ca,b,c at distances 1,d,d1,d,d1,d,d, with ddd a natural number and d≥1d\ge1d≥1. Every such space is isometric to the paper's triangle; at d=0d=0d=0 it would not be a triangle.
  • Both claims are stated for every initial configuration, including both servers on one point. The paper treats the initial state {a,b}\{a,b\}{a,b} separately and absorbs the first partial phase into the additive constant.
  • The lower bound quantifies over all randomized algorithms (deterministic ones are point masses), never over phase-based ones only.
  • In the LP milestones the πk\pi_kπk​ are free reals, as printed; no box 0≤πk≤10\le\pi_k\le10≤πk​≤1 is imposed.
  • "Grows" in the limit remark is read as strictly increasing.
  • The paper prints the recurrence on p. 565 as πk=α−1+(πk−1)2d−12d\pi_k=\frac{\alpha-1+(\pi_{k-1})2d-1}{2d}πk​=2dα−1+(πk−1​)2d−1​; the equations (∗)(*)(∗) give πk=α−1+2d πk−12d−1\pi_k=\frac{\alpha-1+2d\,\pi_{k-1}}{2d-1}πk​=2d−1α−1+2dπk−1​​. The recurrence is not used; the closed form printed on p. 566 is correct and is the one stated.

Without the measurability field of a randomized algorithm the lower integral would under-report expected cost and the attainment claim would become easier than the paper's; the published definition includes it. The lower bound is not vacuous: the triangle hypotheses are satisfiable for every d≥1d\ge1d≥1.

Welcome contributions: a formal version of the phase framework (Theorems 1–3, 15) for finite metric spaces, reusable across missions III and IV; a measurable construction of phase-based randomized algorithms; and proofs of the LP milestones.

Selected references

  • A. R. Karlin, M. S. Manasse, L. A. McGeoch, S. Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994) 542–571. https://doi.org/10.1007/BF01189993
  • M. S. Manasse, L. A. McGeoch, D. D. Sleator, Competitive Algorithms for Server Problems, J. Algorithms 11 (1990) 208–230. https://doi.org/10.1016/0196-6774(90)90003-W
  • H. Karloff, Y. Rabani, Y. Ravid, Lower Bounds for Randomized k-Server and Motion-Planning Algorithms, SIAM J. Comput. 23 (1994) 293–312. https://doi.org/10.1137/S0097539792224838
  • S. Bubeck, C. Coester, Y. Rabani, The Randomized k-Server Conjecture Is False!, STOC 2023. https://arxiv.org/abs/2211.05753
9 thms5 active usersReviewed
🏆Completed
Algorithmic Game TheoryDynamical SystemsStochastic Systems·Captain: mikedeng1

On the Global Convergence of Stochastic Fictitious Play IV: Almost Sure Convergence in Supermodular Games with a Unique Rest PointResearch Paper

Motivation

Fictitious play is the oldest model of learning in games: each player repeatedly best-responds to the empirical frequencies of the opponents' past play. Stochastic fictitious play adds random payoff disturbances before each choice, so that players choose smoothed ("perturbed") best responses. It is a standard model in economics and in the study of learning in games (Fudenberg and Levine, 1998), and its long-run behavior is described through a deterministic mean dynamic, the perturbed best response dynamic, using stochastic approximation theory (Benaïm and Hirsch, 1999).

Supermodular games model strategic complementarities: the gain from moving to a higher strategy increases when opponents move to higher strategies. They arise in coordination, oligopoly and macroeconomic models (Milgrom and Roberts, 1990; Vives, 1990). Hofbauer and Sandholm (Econometrica 2002) show that in such games stochastic fictitious play converges almost surely whenever its mean dynamic has a unique rest point. This mission formalizes that result and the chain of lemmas behind it (Section 5 and the Appendix of the paper).

Timeline. Benaïm and Hirsch (1999) observed that supermodular games with exactly two strategies per player yield strongly monotone perturbed best response dynamics. Hofbauer and Sandholm (2002) extended this to any number of strategies by introducing stochastic dominance coordinates, and proved Theorem 6.1(iv). Benaïm (2000) supplied the low-dimensional convergence theorem used for the dimension ≤ 2 clause.

Setting

A ppp player normal form game gives player α\alphaα an ordered finite strategy set Sα={0,…,nα−1}S^\alpha = \{0,\dots,n^\alpha - 1\}Sα={0,…,nα−1} and a utility uαu^\alphauα on pure profiles. Σ=∏αΔSα\Sigma = \prod_\alpha \Delta S^\alphaΣ=∏α​ΔSα is the set of mixed profiles, and player α\alphaα's payoff vector is Uiα(x−α)=∑s: sα=iuα(s)∏β≠αxsββU^\alpha_i(x^{-\alpha}) = \sum_{s:\, s^\alpha = i} u^\alpha(s) \prod_{\beta \ne \alpha} x^\beta_{s^\beta}Uiα​(x−α)=∑s:sα=i​uα(s)∏β=α​xsββ​.

The game is strictly supermodular if for all distinct players α≠β\alpha \ne \betaα=β and all profiles s,s^s, \hat ss,s^ with sα>s^αs^\alpha > \hat s^\alphasα>s^α and s−α=s^−αs^{-\alpha} = \hat s^{-\alpha}s−α=s^−α, the difference uα(s)−uα(s^)u^\alpha(s) - u^\alpha(\hat s)uα(s)−uα(s^) is strictly increasing in sβ=s^βs^\beta = \hat s^\betasβ=s^β.

Each player α\alphaα has a shock density fαf^\alphafα on Rnα\mathbb R^{n^\alpha}Rnα, strictly positive, whose choice function Ciα(π)=P(argmax⁡jπj+εj=i)C^\alpha_i(\pi) = P(\operatorname{argmax}_j \pi_j + \varepsilon_j = i)Ciα​(π)=P(argmaxj​πj​+εj​=i) is continuously differentiable. The perturbed best response is B~α(x−α)=Cα(Uα(x−α))\tilde B^\alpha(x^{-\alpha}) = C^\alpha(U^\alpha(x^{-\alpha}))B~α(x−α)=Cα(Uα(x−α)), and the perturbed best response dynamic is

(P)x˙α=B~α(x−α)−xα.(\mathrm P)\qquad \dot x^\alpha = \tilde B^\alpha(x^{-\alpha}) - x^\alpha .(P)x˙α=B~α(x−α)−xα.

RP(P)RP(\mathrm P)RP(P) is its set of rest points in Σ\SigmaΣ and CR(P)CR(\mathrm P)CR(P) its chain recurrent set.

In standard stochastic fictitious play the shocks εtα\varepsilon^\alpha_tεtα​ have densities fαf^\alphafα and are independent over time and across players. From an arbitrary initial pure profile ζ1\zeta_1ζ1​, each player at time t+1t+1t+1 plays the pure strategy maximizing Ukα(Zt−α)+(εtα)kU^\alpha_k(Z_t^{-\alpha}) + (\varepsilon^\alpha_t)_kUkα​(Zt−α​)+(εtα​)k​, where Zt=1t∑u≤tζuZ_t = \frac1t \sum_{u \le t} \zeta_uZt​=t1​∑u≤t​ζu​ is the vector of empirical frequencies.

The stochastic dominance coordinates are (Tαxα)i=∑j>ixjα∈Rnα−1(T^\alpha x^\alpha)_i = \sum_{j > i} x^\alpha_j \in \mathbb R^{n^\alpha - 1}(Tαxα)i​=∑j>i​xjα​∈Rnα−1, the mass on strategies above iii; Tx≤TyT x \le T yTx≤Ty means each yαy^\alphayα stochastically dominates xαx^\alphaxα. In these coordinates (P) becomes a dynamic (T) on T(Σ)T(\Sigma)T(Σ).

Formalization targets

Goal: Theorem 6.1(iv), unique rest point clause

For a strictly supermodular game with p≥2p \ge 2p≥2 players and shock densities as above, if RP(P)={x∗}RP(\mathrm P) = \{x^*\}RP(P)={x∗} then

P(lim⁡t→∞Zt=x∗)=1,P\Big(\lim_{t\to\infty} Z_t = x^*\Big) = 1,P(t→∞lim​Zt​=x∗)=1,

on every probability space, for every independent shock family with the given densities and every initial profile.

Milestones

  • Lemma A.2, eq. (14), Lemma A.3 and eqs. (17)–(18): the order-theoretic and differential facts behind monotonicity.
  • Theorem 5.1: T−αy−α≥T−αx−α⇒TαB~α(y−α)≥TαB~α(x−α)T^{-\alpha} y^{-\alpha} \ge T^{-\alpha} x^{-\alpha} \Rightarrow T^\alpha \tilde B^\alpha(y^{-\alpha}) \ge T^\alpha \tilde B^\alpha(x^{-\alpha})T−αy−α≥T−αx−α⇒TαB~α(y−α)≥TαB~α(x−α).
  • Theorem 5.2: there are rest points x‾,xˉ\underline x, \bar xx​,xˉ with RP(P)⊆[x‾,xˉ]RP(\mathrm P) \subseteq [\underline x, \bar x]RP(P)⊆[x​,xˉ].
  • Proposition 5.3: (P) and (T) are linearly conjugate.
  • Theorem 5.4: (T) is cooperative and irreducible.
  • Corollary 5.5(i)–(ii): (P) is strongly monotone, and CR(P)⊆[x‾,xˉ]CR(\mathrm P) \subseteq [\underline x, \bar x]CR(P)⊆[x​,xˉ], so CR(P)={x∗}CR(\mathrm P) = \{x^*\}CR(P)={x∗} when the rest point is unique.

Significance

The result gives global almost-sure convergence of a stochastic learning process in a broad class of games with many strategies, where earlier results needed two strategies per player or specific payoff structures. It also shows which properties of the choice function matter: only eqs. (17)–(18), not the symmetry of its derivative used for potential and zero-sum games.

The paper's proof is complete but relies on outside results: stochastic approximation (Benaïm–Hirsch 1999, Benaïm 1999), monotone dynamical systems (Smith 1995), and the inclusion of the chain recurrent set in the global attractor (Robinson 1995). None of these, nor the Hofbauer–Sandholm theorem itself, is formalized in any proof assistant as far as known. The mission produces a machine-checked version of the theorem and of the Section 5 monotonicity theory.

Difficulty

The monotonicity lemmas are finite-dimensional calculus and summation by parts. The substantial steps are elsewhere. Strong monotonicity of a cooperative irreducible system (Corollary 5.5(i)) is a theorem of monotone dynamical systems that Mathlib does not have, and it must hold on the closed, non-open state space T(Σ)T(\Sigma)T(Σ). The step from the ODE to the random process needs the stochastic approximation theorem: the empirical frequencies are an asymptotic pseudotrajectory of (P), and their limit set is almost surely internally chain transitive. Knowing that x∗x^*x∗ is globally asymptotically stable for (P) does not by itself give almost-sure convergence of ZtZ_tZt​. The limit set of the random process must be related to the chain recurrent set of (P), which is where Corollary 5.5(ii) enters.

Formalization scope

Players are Fin p, strategies Fin (n α) (0-based, same order as the paper), with every nα≥1n^\alpha \ge 1nα≥1. Mixed profiles live in the ambient space ∏αRnα\prod_\alpha \mathbb R^{n^\alpha}∏α​Rnα with the sup norm. The fields of (P) and (T) are defined on the whole ambient space, so partial derivatives are ordinary Fréchet derivatives. Densities are [0,∞][0,\infty][0,∞]-valued. Solutions are forward solutions staying in the state space. The chain recurrent set quantifies over solutions, which are unique here because the fields are C1C^1C1. The process ZtZ_tZt​ is defined pathwise from the shocks, with ties in the argmax broken by the smallest index (a null event). Densities may differ across players.

A statement about the ODE (P), or about a single noise law such as logit, would be a different and much weaker theorem. The goal is about the random process ZtZ_tZt​, on every probability space carrying independent shocks with the given densities. Irreducibility and strong monotonicity additionally assume that two distinct players each have at least two strategies; when one player owns every stochastic dominance coordinate and has at least two of them, supermodularity holds vacuously while irreducibility fails.

A complete development needs: random utility choice functions and their derivatives; monotone and cooperative ODE theory on convex sets; the chain recurrent set and the global attractor; stochastic approximation for processes with step size 1/t1/t1/t. The last three are reusable well beyond this mission. Contributions to any milestone, and general-purpose lemmas on cooperative systems or stochastic approximation, are welcome.

Selected references

  • J. Hofbauer and W. H. Sandholm, On the Global Convergence of Stochastic Fictitious Play, Econometrica 70 (2002), 2265–2294. https://doi.org/10.1111/1468-0262.00376 (formalized from the authors' manuscript of February 21, 2002)
  • M. Benaïm and M. W. Hirsch, Mixed Equilibria and Dynamical Systems Arising from Repeated Games, Games and Economic Behavior 29 (1999), 36–72. https://doi.org/10.1006/game.1997.0636
  • M. Benaïm, Dynamics of Stochastic Approximation Algorithms, Séminaire de Probabilités XXXIII, Lecture Notes in Mathematics 1709, Springer (1999). https://doi.org/10.1007/BFb0096509
  • M. Benaïm, Convergence with Probability One of Stochastic Approximation Algorithms Whose Average is Cooperative, Nonlinearity 13 (2000), 601–616. https://doi.org/10.1088/0951-7715/13/3/305
  • H. L. Smith, Monotone Dynamical Systems, AMS Mathematical Surveys and Monographs 41 (1995). https://doi.org/10.1090/surv/041
  • P. Milgrom and J. Roberts, Rationalizability, Learning, and Equilibrium in Games with Strategic Complementarities, Econometrica 58 (1990), 1255–1277. https://doi.org/10.2307/2938316
  • D. Fudenberg and D. K. Levine, The Theory of Learning in Games, MIT Press (1998).
19 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine LearningOperations Research+1·Captain: mikedeng1

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 KKK 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 δ\deltaδ. 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 complexity Eμ[τδ]\mathbb E_{\boldsymbol\mu}[\tau_\delta]Eμ​[τδ​], 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 δ\deltaδ-PAC strategy (arXiv:1407.4443).
  • Garivier and Kaufmann (COLT 2016) identified the exact constant T∗(μ)T^*(\boldsymbol\mu)T∗(μ) in that lower bound and gave the first strategy, Track-and-Stop, whose sample complexity matches it asymptotically as δ→0\delta\to0δ→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 νθ\nu_\thetaνθ​, θ∈Θ\theta\in\Thetaθ∈Θ, on R\mathbb RR with density exp⁡(θx−b(θ))\exp(\theta x-b(\theta))exp(θx−b(θ)) with respect to a reference measure ξ\xiξ; bbb is twice differentiable and strictly convex, and νθ\nu_\thetaνθ​ has mean b˙(θ)\dot b(\theta)b˙(θ). Bernoulli, Poisson and Gaussian laws with known variance are examples. The divergence d(μ,μ′)d(\mu,\mu')d(μ,μ′) is the Kullback–Leibler divergence between the members with means μ\muμ and μ′\mu'μ′.

A bandit model μ=(μ1,…,μK)\boldsymbol\mu=(\mu_1,\dots,\mu_K)μ=(μ1​,…,μK​) assigns a member of the family to each arm. The class S\mathcal SS consists of models with a unique optimal arm a∗(μ)a^*(\boldsymbol\mu)a∗(μ). At each round t=1,2,…t=1,2,\dotst=1,2,… the learner picks an arm AtA_tAt​ as a function of past observations, observes a reward drawn from that arm's law, and at a stopping time τδ\tau_\deltaτδ​ recommends an arm. Na(t)N_a(t)Na​(t) is the number of draws of arm aaa in the first ttt rounds and μ^a(t)\hat\mu_a(t)μ^​a​(t) its empirical mean.

With Alt(μ)={λ∈S:a∗(λ)≠a∗(μ)}\mathrm{Alt}(\boldsymbol\mu)=\{\boldsymbol\lambda\in\mathcal S: a^*(\boldsymbol\lambda)\ne a^*(\boldsymbol\mu)\}Alt(μ)={λ∈S:a∗(λ)=a∗(μ)} and ΣK\Sigma_KΣK​ the probability simplex, the characteristic time is

T∗(μ)−1=sup⁡w∈ΣK inf⁡λ∈Alt(μ) ∑a=1Kwa d(μa,λa),T^*(\boldsymbol\mu)^{-1}=\sup_{w\in\Sigma_K}\ \inf_{\boldsymbol\lambda\in\mathrm{Alt}(\boldsymbol\mu)}\ \sum_{a=1}^K w_a\,d(\mu_a,\lambda_a),T∗(μ)−1=w∈ΣK​sup​ λ∈Alt(μ)inf​ a=1∑K​wa​d(μa​,λa​),

and the maximizer w∗(μ)w^*(\boldsymbol\mu)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))w^*(\hat{\boldsymbol\mu}(t))w∗(μ^​(t)) while forcing each arm to be drawn about t\sqrt tt​ times: C-Tracking tracks the cumulated sum of projections of w∗(μ^(s))w^*(\hat{\boldsymbol\mu}(s))w∗(μ^​(s)) onto ΣKϵs={w∈ΣK:wa≥ϵs}\Sigma^{\epsilon_s}_K=\{w\in\Sigma_K: w_a\ge\epsilon_s\}ΣKϵs​​={w∈ΣK​:wa​≥ϵs​}, ϵs=(K2+s)−1/2/2\epsilon_s=(K^2+s)^{-1/2}/2ϵs​=(K2+s)−1/2/2; D-Tracking draws an under-sampled arm when some Na(t)<t−K/2N_a(t)<\sqrt t-K/2Na​(t)<t​−K/2, and otherwise the arm maximizing t wa∗(μ^(t))−Na(t)t\,w^*_a(\hat{\boldsymbol\mu}(t))-N_a(t)twa∗​(μ^​(t))−Na​(t);
  • Chernoff's stopping rule, which stops at the first ttt at which some arm aaa beats every other arm bbb in a generalized likelihood ratio test, Za,b(t)>β(t,δ)Z_{a,b}(t)>\beta(t,\delta)Za,b​(t)>β(t,δ), here with β(t,δ)=log⁡(r(t)/δ)\beta(t,\delta)=\log(r(t)/\delta)β(t,δ)=log(r(t)/δ).

Formalization targets

Goal: Theorem 14 (p. 13)

For α∈[1,e/2]\alpha\in[1,e/2]α∈[1,e/2] and r(t)=O(tα)r(t)=O(t^\alpha)r(t)=O(tα), Chernoff's stopping rule with β(t,δ)=log⁡(r(t)/δ)\beta(t,\delta)=\log(r(t)/\delta)β(t,δ)=log(r(t)/δ) combined with C-Tracking or D-Tracking satisfies

lim sup⁡δ→0Eμ[τδ]log⁡(1/δ)≤α T∗(μ)\limsup_{\delta\to0}\frac{\mathbb E_{\boldsymbol\mu}[\tau_\delta]}{\log(1/\delta)}\le\alpha\,T^*(\boldsymbol\mu)δ→0limsup​log(1/δ)Eμ​[τδ​]​≤αT∗(μ)

for every μ∈S\boldsymbol\mu\in\mathcal Sμ∈S.

Milestones

  • Lemma 15 (p. 20): greedy tracking of cumulated proportions P(k)P(k)P(k) keeps max⁡i∣Ni(n)−Pi(n)∣≤K−1\max_i|N_i(n)-P_i(n)|\le K-1maxi​∣Ni​(n)−Pi​(n)∣≤K−1.
  • Lemma 7 (p. 7): C-Tracking ensures Na(t)≥t+K2−2KN_a(t)\ge\sqrt{t+K^2}-2KNa​(t)≥t+K2​−2K and max⁡a∣Na(t)−∑s<twa∗(μ^(s))∣≤K(1+t)\max_a|N_a(t)-\sum_{s<t}w^*_a(\hat{\boldsymbol\mu}(s))|\le K(1+\sqrt t)maxa​∣Na​(t)−∑s<t​wa∗​(μ^​(s))∣≤K(1+t​).
  • Lemma 8 (p. 7): D-Tracking ensures Na(t)≥(t−K/2)+−1N_a(t)\ge(\sqrt t-K/2)_+-1Na​(t)≥(t​−K/2)+​−1, and proportions within 3(K−1)ϵ3(K-1)\epsilon3(K−1)ϵ of w∗(μ)w^*(\boldsymbol\mu)w∗(μ) after a time tϵt_\epsilontϵ​ that does not depend on the trajectory, once the plug-in targets are within ϵ\epsilonϵ.
  • Proposition 9 (p. 8): under either rule, Na(t)/t→wa∗(μ)N_a(t)/t\to w^*_a(\boldsymbol\mu)Na​(t)/t→wa∗​(μ) almost surely.
  • Lemma 18 (p. 27): an explicit xxx with c1x≥log⁡(c2xα)c_1x\ge\log(c_2x^\alpha)c1​x≥log(c2​xα) for α∈[1,e/2]\alpha\in[1,e/2]α∈[1,e/2].
  • Proposition 13 (p. 11): with any sampling rule whose proportions converge almost surely to w∗w^*w∗, τδ<∞\tau_\delta<\inftyτδ​<∞ almost surely and lim sup⁡δ→0τδ/log⁡(1/δ)≤αT∗(μ)\limsup_{\delta\to0}\tau_\delta/\log(1/\delta)\le\alpha T^*(\boldsymbol\mu)limsupδ→0​τδ​/log(1/δ)≤αT∗(μ) almost surely.

Significance

Theorem 1 of the same paper shows Eμ[τδ]≥T∗(μ) kl(δ,1−δ)\mathbb E_{\boldsymbol\mu}[\tau_\delta]\ge T^*(\boldsymbol\mu)\,\mathrm{kl}(\delta,1-\delta)Eμ​[τδ​]≥T∗(μ)kl(δ,1−δ) for every δ\deltaδ-PAC strategy, and kl(δ,1−δ)∼log⁡(1/δ)\mathrm{kl}(\delta,1-\delta)\sim\log(1/\delta)kl(δ,1−δ)∼log(1/δ). Theorem 14 with α=1\alpha=1α=1 therefore shows that the lower bound is attained: T∗(μ)T^*(\boldsymbol\mu)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/δ)\tau_\delta/\log(1/\delta)τδ​/log(1/δ) does not control E[τδ]\mathbb E[\tau_\delta]E[τδ​], because on the rare events where the empirical means are far from μ\boldsymbol\muμ the stopping time may be very large. Theorem 14 needs a quantitative concentration of μ^(t)\hat{\boldsymbol\mu}(t)μ^​(t) on events whose complements have summable probability, which in turn relies on the forced exploration guaranteed by the t\sqrt tt​ lower bounds on Na(t)N_a(t)Na​(t) (the concentration step of App. D, Lemmas 19–20).

A second obstacle is the regularity of w∗w^*w∗: the tracking lemmas only transfer convergence of μ^(t)\hat{\boldsymbol\mu}(t)μ^​(t) to convergence of Na(t)/tN_a(t)/tNa​(t)/t through the continuity of μ↦w∗(μ)\boldsymbol\mu\mapsto w^*(\boldsymbol\mu)μ↦w∗(μ) on S\mathcal SS, proved from the characterization of w∗w^*w∗ in §2.2 (Proposition 6). The GLR statistic also needs its closed form (7) near μ\boldsymbol\muμ, which requires the empirical means to lie in the interior of the mean space.

Formalization scope

  • Model. The exponential family is a structure (ξ,Θ,b)(\xi,\Theta,b)(ξ,Θ,b) with Θ\ThetaΘ a nonempty open interval, each νθ\nu_\thetaνθ​ normalized, bbb twice continuously differentiable and b¨>0\ddot b>0b¨>0 on Θ\ThetaΘ. Openness and b¨>0\ddot b>0b¨>0 are added to the paper's "convex, twice differentiable"; strict convexity is what makes νμ\nu^\muνμ unique. Bandit models are parameter vectors θ∈ΘK\theta\in\Theta^Kθ∈ΘK with K≥2K\ge2K≥2; arms are indexed 0,…,K−10,\dots,K-10,…,K−1. S\mathcal SS is the set of parameter vectors with a unique arm of largest mean b˙(θa)\dot b(\theta_a)b˙(θa​).
  • Protocol. Policies, the trajectory law Pμ\mathbb P_{\boldsymbol\mu}Pμ​, pull counts, empirical means and T∗(μ)T^*(\boldsymbol\mu)T∗(μ) are the platform's published definitions (BanditPolicy, BanditTrajectory, TrackAndStop). T∗T^*T∗ uses Kullback–Leibler divergences of the arm laws over the class S\mathcal SS and takes values in [0,∞][0,\infty][0,∞]. Trajectory coordinate ttt is round t+1t+1t+1. An arm never drawn has empirical mean 000.
  • Target map. w∗(μ^(t))w^*(\hat{\boldsymbol\mu}(t))w∗(μ^​(t)) is undefined in the paper when μ^(t)∉S\hat{\boldsymbol\mu}(t)\notin\mathcal Sμ^​(t)∈/S (an unsampled arm, ties, a mean outside b˙(Θ)\dot b(\Theta)b˙(Θ)). Every tracking statement quantifies over every target map with values in ΣK\Sigma_KΣK​ that returns optimal proportions on S\mathcal SS, over every choice of L∞L^\inftyL∞ projections, and over every tie-breaking, including randomized ones.
  • Stopping rule. The two maxima in Za,b(t)Z_{a,b}(t)Za,b​(t) are suprema over Θ\ThetaΘ in the extended reals. Za,b(t)>βZ_{a,b}(t)>\betaZa,b​(t)>β is written without subtracting infinities. The stopping time is the first t≥1t\ge1t≥1 at which the test succeeds, +∞+\infty+∞ if none. "r(t)=O(tα)r(t)=O(t^\alpha)r(t)=O(tα)" is r(t)≤Dtαr(t)\le Dt^\alphar(t)≤Dtα for t≥1t\ge1t≥1; r>0r>0r>0 is added so that log⁡(r(t)/δ)\log(r(t)/\delta)log(r(t)/δ) is defined.
  • Values in [0,∞][0,\infty][0,∞]. Expectations of τδ\tau_\deltaτδ​, the ratios and T∗T^*T∗ live in [0,∞][0,\infty][0,∞]. No statement converts them to reals, so an infinite expected stopping time is never read as 000.
  • Corrections, disclosed. Proposition 9's printed Pw\mathbb P_wPw​ is Pμ\mathbb P_{\boldsymbol\mu}Pμ​. Lemma 18 adds c2/c1α>1c_2/c_1^\alpha>1c2​/c1α​>1 and x>0x>0x>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˙\dot bb˙ is the mean, the KL formula, concentration of empirical means); the continuity of w∗w^*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
  • H. Chernoff, Sequential Design of Experiments, Ann. Math. Statist. 30(3), 1959. doi:10.1214/aoms/1177706205
  • T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Ch. 33. doi:10.1017/9781108571401
15 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine LearningOperations Research+1·Captain: mikedeng1

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 KKK 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 δ\deltaδ. 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∗(μ)T^*(\boldsymbol\mu)T∗(μ) is exactly matched, as δ→0\delta \to 0δ→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 ξ\xiξ on R\mathbb RR, an open interval Θ⊂R\Theta \subset \mathbb RΘ⊂R and a function bbb, twice continuously differentiable on Θ\ThetaΘ with b¨>0\ddot b > 0b¨>0, such that the laws νθ\nu_\thetaνθ​ with density exp⁡(θx−b(θ))\exp(\theta x - b(\theta))exp(θx−b(θ)) with respect to ξ\xiξ are probability measures for θ∈Θ\theta \in \Thetaθ∈Θ. The mean of νθ\nu_\thetaνθ​ is b˙(θ)\dot b(\theta)b˙(θ). Bernoulli laws and Gaussian laws of known variance are examples.

A bandit model is a vector θ=(θ1,…,θK)∈ΘK\theta = (\theta_1, \dots, \theta_K) \in \Theta^Kθ=(θ1​,…,θK​)∈ΘK; arm aaa returns i.i.d. rewards with law νθa\nu_{\theta_a}νθa​​ and mean μa=b˙(θa)\mu_a = \dot b(\theta_a)μa​=b˙(θa​). Arm a∗(μ)a^*(\boldsymbol\mu)a∗(μ) is the unique optimal arm if μa∗>μa\mu_{a^*} > \mu_aμa∗​>μa​ for every a≠a∗a \ne a^*a=a∗. Let S\mathcal SS be any set of bandit models of the family each having a unique optimal arm, and put Alt(μ)={λ∈S:a∗(λ)≠a∗(μ)}\mathrm{Alt}(\boldsymbol\mu) = \{\boldsymbol\lambda \in \mathcal S : a^*(\boldsymbol\lambda) \ne a^*(\boldsymbol\mu)\}Alt(μ)={λ∈S:a∗(λ)=a∗(μ)}.

A strategy consists of a sampling rule π\piπ (the arm AtA_tAt​ drawn at round ttt depends, possibly with extra randomization, on the first t−1t - 1t−1 observations), a stopping time τ\tauτ of the natural filtration Ft=σ(A1,X1,…,At,Xt)\mathcal F_t = \sigma(A_1, X_1, \dots, A_t, X_t)Ft​=σ(A1​,X1​,…,At​,Xt​), and an Fτ\mathcal F_\tauFτ​-measurable decision a^τ\hat a_\taua^τ​. It is δ\deltaδ-PAC on S\mathcal SS if for every μ∈S\boldsymbol\mu \in \mathcal Sμ∈S, Pμ(τ<∞)=1\mathbb P_{\boldsymbol\mu}(\tau < \infty) = 1Pμ​(τ<∞)=1 and Pμ(a^τ≠a∗(μ))≤δ\mathbb P_{\boldsymbol\mu}(\hat a_\tau \ne a^*(\boldsymbol\mu)) \le \deltaPμ​(a^τ​=a∗(μ))≤δ. Na(t)N_a(t)Na​(t) is the number of draws of arm aaa among the first ttt rounds.

Write d(μa,λa)=KL(νθa,νλa)d(\mu_a, \lambda_a) = \mathrm{KL}(\nu_{\theta_a}, \nu_{\lambda_a})d(μa​,λa​)=KL(νθa​​,νλa​​) for the divergence between two arm laws, kl(x,y)=xlog⁡xy+(1−x)log⁡1−x1−y\mathrm{kl}(x, y) = x\log\frac{x}{y} + (1 - x)\log\frac{1 - x}{1 - y}kl(x,y)=xlogyx​+(1−x)log1−y1−x​, and ΣK\Sigma_KΣK​ for the probability simplex on the KKK arms. The characteristic time is defined by eq. (1):

T∗(μ)−1=sup⁡w∈ΣK inf⁡λ∈Alt(μ)∑a=1Kwa d(μa,λa).T^*(\boldsymbol\mu)^{-1} = \sup_{w \in \Sigma_K}\ \inf_{\boldsymbol\lambda \in \mathrm{Alt}(\boldsymbol\mu)} \sum_{a=1}^K w_a\, d(\mu_a, \lambda_a).T∗(μ)−1=w∈ΣK​sup​ λ∈Alt(μ)inf​a=1∑K​wa​d(μa​,λa​).

Formalization targets

Goal: Theorem 1 (p. 3)

For δ∈(0,1/2]\delta \in (0, 1/2]δ∈(0,1/2], every δ\deltaδ-PAC strategy on S\mathcal SS and every μ∈S\boldsymbol\mu \in \mathcal Sμ∈S,

Eμ[τ] ≥ T∗(μ) kl(δ,1−δ).\mathbb E_{\boldsymbol\mu}[\tau] \ \ge\ T^*(\boldsymbol\mu)\,\mathrm{kl}(\delta, 1 - \delta).Eμ​[τ] ≥ T∗(μ)kl(δ,1−δ).

The statement fixes no constant beyond those of the paper, and it holds for every δ\deltaδ, not only in the limit.

Milestone: eq. (2) (p. 4)

For every λ∈S\boldsymbol\lambda \in \mathcal Sλ∈S with a∗(λ)≠a∗(μ)a^*(\boldsymbol\lambda) \ne a^*(\boldsymbol\mu)a∗(λ)=a∗(μ),

∑a=1Kd(μa,λa) Eμ[Na(τ)] ≥ kl(δ,1−δ).\sum_{a=1}^K d(\mu_a, \lambda_a)\, \mathbb E_{\boldsymbol\mu}[N_a(\tau)] \ \ge\ \mathrm{kl}(\delta, 1 - \delta).a=1∑K​d(μ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∗(μ)T^*(\boldsymbol\mu)T∗(μ) as the exact problem-dependent complexity of fixed-confidence best arm identification: since kl(δ,1−δ)∼log⁡(1/δ)\mathrm{kl}(\delta, 1 - \delta) \sim \log(1/\delta)kl(δ,1−δ)∼log(1/δ), it gives lim inf⁡δ→0Eμ[τδ]/log⁡(1/δ)≥T∗(μ)\liminf_{\delta \to 0} \mathbb E_{\boldsymbol\mu}[\tau_\delta]/\log(1/\delta) \ge T^*(\boldsymbol\mu)liminfδ→0​Eμ​[τδ​]/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∗(μ)w^*(\boldsymbol\mu)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δ))\log(1/(4\delta))log(1/(4δ)); for δ≤1/2\delta \le 1/2δ≤1/2, kl(δ,1−δ)≥log⁡(1/(2.4δ))>log⁡(1/(4δ))\mathrm{kl}(\delta, 1 - \delta) \ge \log(1/(2.4\delta)) > \log(1/(4\delta))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)\mathrm{KL}(\mathbb P^n_{\boldsymbol\mu}, \mathbb P^n_{\boldsymbol\lambda}) = \sum_a \mathbb E_{\boldsymbol\mu}[N_a(n)]\,d(\mu_a, \lambda_a)KL(Pμn​,Pλn​)=∑a​Eμ​[Na​(n)]d(μa​,λa​) at a deterministic horizon nnn. That fails here: τ\tauτ is random and unbounded, the decision is Fτ\mathcal F_\tauFτ​-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−δ)\mathrm{kl}(\delta, 1 - \delta)kl(δ,1−δ), is the central difficulty. A second, smaller difficulty is to identify the paper's divergence ddd and its means b˙(θ)\dot b(\theta)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\mathrm{kl}kl is the platform's bernoulliRelativeEntropy and Na(t)N_a(t)Na​(t) is trajPullCount. Conventions:

  • arms are Fin K, 0-based (the paper's arm aaa is index a−1a - 1a−1); trajectory coordinate ttt is round t+1t + 1t+1;
  • Θ\ThetaΘ is a nonempty open interval and b¨>0\ddot b > 0b¨>0 on Θ\ThetaΘ (added: the paper says bbb is convex and twice differentiable; strict convexity is what makes "the unique distribution with mean μ\muμ" meaningful); the paper's ddd 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)\dot b(\theta_a)b˙(θa​);
  • S\mathcal SS is an arbitrary set of models with a unique optimal arm, not the specific set the paper fixes from p. 4 on;
  • δ\deltaδ-PAC keeps both halves of the paper's definition (almost-sure stopping and error at most δ\deltaδ);
  • T∗(μ)T^*(\boldsymbol\mu)T∗(μ), divergences and expectations of τ\tauτ take values in [0,∞][0, \infty][0,∞], never truncated to reals; T∗=0T^* = 0T∗=0 when Alt(μ)=∅\mathrm{Alt}(\boldsymbol\mu) = \emptysetAlt(μ)=∅ and T∗=∞T^* = \inftyT∗=∞ when the supremum in eq. (1) is 000;
  • δ≤1/2\delta \le 1/2δ≤1/2 is added. The paper states δ∈(0,1)\delta \in (0, 1)δ∈(0,1), but the theorem and eq. (2) are false for δ∈(1/2,1)\delta \in (1/2, 1)δ∈(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/21/21/2 is 0.90.90.9-PAC, while T∗(μ)→∞T^*(\boldsymbol\mu) \to \inftyT∗(μ)→∞ as the two means merge. At δ=1/2\delta = 1/2δ=1/2 the bound is 000.

A statement with log⁡(1/(4δ))\log(1/(4\delta))log(1/(4δ)) in place of kl(δ,1−δ)\mathrm{kl}(\delta, 1 - \delta)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[τ]\mathbb E[\tau]E[τ] or T∗T^*T∗ to real numbers.

Needed infrastructure: the transportation lemma at a stopping time (data processing for KL through an Fτ\mathcal F_\tauFτ​-measurable event, Wald-type identity for the stopped log-likelihood ratio), the identities "mean of νθ\nu_\thetaνθ​ =b˙(θ)= \dot b(\theta)=b˙(θ)" and "KL of two family members =b(θ′)−b(θ)−b˙(θ)(θ′−θ)= b(\theta') - b(\theta) - \dot b(\theta)(\theta' - \theta)=b(θ′)−b(θ)−b˙(θ)(θ′−θ)", and E[τ]=∑aE[Na(τ)]\mathbb E[\tau] = \sum_a \mathbb E[N_a(\tau)]E[τ]=∑a​E[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
  • T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 33. https://doi.org/10.1017/9781108571401
11 thms5 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Worst-Case Value-At-Risk and Robust Portfolio Optimization: A Conic Programming Approach 1: Exact Worst-Case VaR under Known Mean and Covariance and Its SDP RepresentationsResearch Paper

Motivation

Value-at-Risk (VaR) is the standard regulatory measure of downside risk of a portfolio: the loss level that is exceeded only with a prescribed small probability ε\varepsilonε. Computing it requires the full distribution of asset returns, which is rarely known. In practice one estimates a mean vector and a covariance matrix and then assumes a Gaussian distribution, which understates the probability of large losses when returns are heavy-tailed or skewed.

El Ghaoui, Oks and Oustry (Oper. Res. 51(4), 2003) replace the distributional assumption by a worst case: the VaR is computed against every distribution consistent with the known moments. For known mean and covariance they obtain an exact closed form and several semidefinite (SDP) representations of this worst-case VaR. The SDP forms are what make the approach extend to moment uncertainty (moments only known to lie in a set, §2.2 of the paper) and to robust portfolio optimization. The equivalence between the probabilistic statement and the closed form is also a multivariate one-sided Chebyshev bound, related to Bertsimas and Popescu (SIAM J. Optim. 15(3), 2005; working paper 2000).

Setting

There are nnn assets. Their returns over one period form a random vector x∈Rnx \in \mathbb R^nx∈Rn, and a portfolio w∈Rnw \in \mathbb R^nw∈Rn earns r(w,x)=w⊤xr(w,x) = w^\top xr(w,x)=w⊤x. The paper restricts www to an admissible set that does not contain 000; only w≠0w \neq 0w=0 is used.

The distribution of xxx is unknown except for its mean x^∈Rn\hat x \in \mathbb R^nx^∈Rn and covariance matrix Γ\GammaΓ, with Γ≻0\Gamma \succ 0Γ≻0 (positive definite). Let P\mathcal PP be the set of all probability distributions on Rn\mathbb R^nRn with these two moments. For a loss level γ\gammaγ, the loss set is S={x∣γ≤−x⊤w}\mathcal S = \{x \mid \gamma \le -x^\top w\}S={x∣γ≤−x⊤w}. The worst-case VaR at level ε\varepsilonε is (Eq. (4))

VP(w)=min⁡{γ  :  sup⁡P∈PP(S)≤ε}.V_{\mathcal P}(w) = \min\Big\{\gamma \;:\; \sup_{P\in\mathcal P} P(\mathcal S) \le \varepsilon\Big\}.VP​(w)=min{γ:P∈Psup​P(S)≤ε}.

Further notation: κ(ε)=(1−ε)/ε\kappa(\varepsilon) = \sqrt{(1-\varepsilon)/\varepsilon}κ(ε)=(1−ε)/ε​ (Eq. (8)); for symmetric matrices, A⪰BA \succeq BA⪰B means A−BA - BA−B is positive semidefinite and ⟨A,B⟩=Tr⁡(AB)\langle A, B\rangle = \operatorname{Tr}(AB)⟨A,B⟩=Tr(AB). The second-moment matrix is (Eq. (6))

Σ=[Sx^x^⊤1],S=Γ+x^x^⊤.\Sigma = \begin{bmatrix} S & \hat x \\ \hat x^\top & 1\end{bmatrix}, \qquad S = \Gamma + \hat x\hat x^\top.Σ=[Sx^⊤​x^1​],S=Γ+x^x^⊤.

Formalization targets

Goal: Theorem 1 (pp. 545–546)

For Γ≻0\Gamma \succ 0Γ≻0, w≠0w \neq 0w=0, ε∈(0,1)\varepsilon \in (0,1)ε∈(0,1) and γ∈R\gamma \in \mathbb Rγ∈R, the following five propositions are equivalent:

  1. sup⁡P∈PP{γ≤−w⊤x}≤ε\sup_{P \in \mathcal P} P\{\gamma \le -w^\top x\} \le \varepsilonsupP∈P​P{γ≤−w⊤x}≤ε;
  2. κ(ε) ∥Γ1/2w∥2−x^⊤w≤γ\kappa(\varepsilon)\,\|\Gamma^{1/2} w\|_2 - \hat x^\top w \le \gammaκ(ε)∥Γ1/2w∥2​−x^⊤w≤γ;
  3. there are a symmetric MMM and τ∈R\tau \in \mathbb Rτ∈R with ⟨M,Σ⟩≤τε\langle M, \Sigma\rangle \le \tau\varepsilon⟨M,Σ⟩≤τε, M⪰0M \succeq 0M⪰0, τ≥0\tau \ge 0τ≥0, and M+[0ww⊤−τ+2γ]⪰0M + \begin{bmatrix} 0 & w\\ w^\top & -\tau + 2\gamma\end{bmatrix} \succeq 0M+[0w⊤​w−τ+2γ​]⪰0;
  4. every xxx with [Γx−x^(x−x^)⊤κ(ε)2]⪰0\begin{bmatrix}\Gamma & x - \hat x\\ (x-\hat x)^\top & \kappa(\varepsilon)^2\end{bmatrix} \succeq 0[Γ(x−x^)⊤​x−x^κ(ε)2​]⪰0 satisfies −x⊤w≤γ-x^\top w \le \gamma−x⊤w≤γ;
  5. there are a symmetric Λ\LambdaΛ and v∈Rv \in \mathbb Rv∈R with ⟨Λ,Γ⟩+κ(ε)2v−x^⊤w≤γ\langle \Lambda, \Gamma\rangle + \kappa(\varepsilon)^2 v - \hat x^\top w \le \gamma⟨Λ,Γ⟩+κ(ε)2v−x^⊤w≤γ and [Λw/2w⊤/2v]⪰0\begin{bmatrix}\Lambda & w/2\\ w^\top/2 & v\end{bmatrix} \succeq 0[Λw⊤/2​w/2v​]⪰0.

In particular

VP(w)=κ(ε) ∥Γ1/2w∥2−x^⊤w.V_{\mathcal P}(w) = \kappa(\varepsilon)\,\|\Gamma^{1/2}w\|_2 - \hat x^\top w.VP​(w)=κ(ε)∥Γ1/2w∥2​−x^⊤w.

Milestones (the steps of the paper's proof)

  • Condition C.1 (l(x)=[x⊤ 1]M[x⊤ 1]⊤≥0l(x) = [x^\top\,1] M [x^\top\,1]^\top \ge 0l(x)=[x⊤1]M[x⊤1]⊤≥0 for all xxx) is equivalent to M⪰0M \succeq 0M⪰0 (p. 546).
  • Conditions C.1 and C.2 are equivalent to the existence of τ≥0\tau \ge 0τ≥0 with M⪰0M \succeq 0M⪰0 and M+[0τwτw⊤−1+2τγ]⪰0M + \begin{bmatrix} 0 & \tau w\\ \tau w^\top & -1+2\tau\gamma\end{bmatrix} \succeq 0M+[0τw⊤​τw−1+2τγ​]⪰0 (p. 546).
  • The worst-case probability sup⁡P∈PP(S)\sup_{P\in\mathcal P} P(\mathcal S)supP∈P​P(S) equals the value of the SDP inf⁡⟨M,Σ⟩\inf \langle M, \Sigma\rangleinf⟨M,Σ⟩ under the constraints above (Eq. (14), pp. 546–547).
  • The Schur-complement reduction (19)–(20) of the constraints of the dual problem (18) (p. 547).
  • The closed form of ϕ(y)\phi(y)ϕ(y) and its maximum at y=εy = \varepsilony=ε (p. 547).
  • Condition (10) describes the ellipsoid {x∣(x−x^)⊤Γ−1(x−x^)≤κ(ε)2}\{x \mid (x-\hat x)^\top\Gamma^{-1}(x-\hat x) \le \kappa(\varepsilon)^2\}{x∣(x−x^)⊤Γ−1(x−x^)≤κ(ε)2}, and the maximal loss −x⊤w-x^\top w−x⊤w over it is κ(ε)w⊤Γw−x^⊤w\kappa(\varepsilon)\sqrt{w^\top\Gamma w} - \hat x^\top wκ(ε)w⊤Γw​−x^⊤w (p. 546).

Significance

The result. Proposition 2 turns the worst-case VaR into a second-order cone function of www, so minimizing it over a polytope of portfolios is a second-order cone program (Eq. (12)). The SDP forms 3 and 5 are the basis of the paper's §2.2–§3: they extend, with the moments only known to lie in a convex set, to a single SDP whose value is the worst-case VaR over that set. Proposition 4 gives a deterministic reading: the worst-case VaR is the largest loss when the return vector is only known to lie in an ellipsoid, which connects distributional robustness to robust optimization with ellipsoidal uncertainty.

Formalizing it. The result is proved in the paper, with two imported steps: strong duality for the moment problem (Smith 1995; Bonnans and Shapiro 2000) and a Slater-type strong duality for the one-constraint quadratic condition. No machine-checked version is known. A formal proof would supply these steps with explicit hypotheses and would produce a Lean statement of the multivariate one-sided Chebyshev (Cantelli) bound with tightness over the full moment class.

Difficulty

The matrix equivalences (2 ⇔ 4 ⇔ 5 and 2 ⇔ 3) are Schur complements and finite-dimensional SDP duality. The difficulty is Proposition 1. The upper bound (Cantelli's inequality for w⊤xw^\top xw⊤x) handles one direction, but the converse requires tightness: for every γ\gammaγ below the closed form, a distribution on Rn\mathbb R^nRn with exactly the prescribed mean and full covariance matrix Γ\GammaΓ that puts probability more than ε\varepsilonε on the loss set. A scalar extremal distribution for w⊤xw^\top xw⊤x does not by itself have the right covariance in the other directions, and a Gaussian does not reach the bound. The paper's route through the moment problem instead needs strong duality between a supremum over measures and an infimum over matrices, which is where the positive definiteness of Σ\SigmaΣ enters.

Formalization scope

  • Vectors live in EuclideanSpace ℝ (Fin n); x⊤wx^\top wx⊤w is the inner product, and matrices are Matrix (Fin n) (Fin n) ℝ. Matrices of size n+1n+1n+1 are indexed by Fin n ⊕ Fin 1 and built with Matrix.fromBlocks (the helper bordered A v c is [[A,v],[v⊤,c]][[A, v],[v^\top, c]][[A,v],[v⊤,c]]). A⪰0A \succeq 0A⪰0 is PosSemidef, Γ≻0\Gamma \succ 0Γ≻0 is PosDef, ⟨A,B⟩\langle A, B\rangle⟨A,B⟩ is (A * B).trace, and ∥Γ1/2w∥2\|\Gamma^{1/2}w\|_2∥Γ1/2w∥2​ is written w⊤Γw\sqrt{w^\top\Gamma w}w⊤Γw​.
  • The class P\mathcal PP (HasMeanCov) contains every Borel probability measure on Rn\mathbb R^nRn whose coordinates are square-integrable, with mean x^\hat xx^ and centred covariance Γ\GammaΓ. It is not restricted to densities or to Gaussians: the Gaussian class gives a different constant, −Φ−1(ε)-\Phi^{-1}(\varepsilon)−Φ−1(ε).
  • Sup, inf and max: "sup⁡P∈PP(S)≤ε\sup_{P\in\mathcal P}P(\mathcal S) \le \varepsilonsupP∈P​P(S)≤ε" is stated as "P(S)≤εP(\mathcal S) \le \varepsilonP(S)≤ε for every P∈PP \in \mathcal PP∈P". The worst-case probability SDP is stated as IsLUB/IsGLB of one real number (no attainment is claimed). The maxima over vvv, over y∈[ε,1]y \in [\varepsilon,1]y∈[ε,1] and over the ellipsoid are IsGreatest.
  • Corrections to the printed statement. The paper prints ε∈(0,1]\varepsilon \in (0,1]ε∈(0,1]; at ε=1\varepsilon = 1ε=1 Proposition 1 holds for every γ\gammaγ while Propositions 2–5 require γ≥−x^⊤w\gamma \ge -\hat x^\top wγ≥−x^⊤w, so the goal assumes 0<ε<10 < \varepsilon < 10<ε<1. The goal also assumes w≠0w \neq 0w=0, the paper's standing assumption; with w=0w = 0w=0, γ=0\gamma = 0γ=0 Proposition 1 fails and Proposition 2 holds. Milestones that remain true at ε=1\varepsilon = 1ε=1 keep ε≤1\varepsilon \le 1ε≤1.
  • A goal that omits Proposition 1 would only be matrix algebra and is not this theorem. The five-way equivalence must be proved with the probabilistic statement included.
  • Useful infrastructure, reusable beyond this mission: the homogenization lemma for quadratic functions, the S-lemma with one affine constraint, the Schur-complement criteria for bordered PSD matrices, and duality for the moment problem. Proofs of any milestone, and of lemmas building a distribution with prescribed mean and covariance, are welcome.

Selected references

  • L. El Ghaoui, M. Oks, F. Oustry, Worst-Case Value-at-Risk and Robust Portfolio Optimization: A Conic Programming Approach, Operations Research 51(4):543–556, 2003. https://doi.org/10.1287/opre.51.4.543.16101
  • D. Bertsimas, I. Popescu, Optimal Inequalities in Probability Theory: A Convex Optimization Approach, SIAM J. Optim. 15(3):780–804, 2005. https://doi.org/10.1137/S1052623401399903
  • J. E. Smith, Generalized Chebychev Inequalities: Theory and Applications in Decision Analysis, Operations Research 43(5):807–825, 1995. https://doi.org/10.1287/opre.43.5.807
  • J. F. Bonnans, A. Shapiro, Perturbation Analysis of Optimization Problems, Springer, 2000. https://doi.org/10.1007/978-1-4612-1394-9
  • L. Vandenberghe, S. Boyd, K. Comanor, Generalized Chebyshev Bounds via Semidefinite Programming, SIAM Review 49(1):52–64, 2007. https://doi.org/10.1137/S0036144504440543
8 thms5 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

On Properties of Stochastic Inventory Systems I: Using the EOQ Order Quantity in the Stochastic (Q, r) Model Raises Costs by at Most 1/8Research Paper

Motivation

The economic order quantity (EOQ) is the most widely used formula in inventory management. It assumes that demand is a deterministic constant stream. Real demand is random, and the model that accounts for this, the continuous-review (Q,r)(Q, r)(Q,r) policy with stochastic demand, has no closed-form optimum: for decades its optimal parameters were computed numerically, one instance at a time, which gave little insight into how the stochastic system behaves. Practitioners nevertheless kept using the EOQ quantity in stochastic systems and observed that the cost penalty was small (Wagner, O'Hagan and Lundh 1965; Naddor 1975; Archibald and Silver 1978), without an analytical explanation.

Zheng (Management Science 38(1), 1992) supplied that explanation. By minimising the average cost first over the reorder point and then over the order quantity, he obtained two simple optimality equations and compared the stochastic model with the EOQ model under the same cost structure. One of the results is the goal of this mission: for every leadtime-demand distribution, using the EOQ order quantity in the stochastic system raises the average cost by at most one eighth. The paper extends Federgruen and Zheng (1988), who treated the discrete-demand version of the cost function.

Setting

A single item faces demand at rate λ>0\lambda > 0λ>0. Orders are delivered after a fixed leadtime L>0L > 0L>0, and stockouts are backordered. Each order costs a fixed K>0K > 0K>0. Inventory is held at cost rate h>0h > 0h>0 per unit and backorders are penalised at cost rate p>0p > 0p>0 per unit. Let D≥0D \ge 0D≥0 be the demand during a leadtime, with mean E(D)=λLE(D) = \lambda LE(D)=λL. The newsvendor cost

G(y)=E[h(y−D)++p(D−y)+]G(y) = E\big[h(y - D)^+ + p(D - y)^+\big]G(y)=E[h(y−D)++p(D−y)+]

is the rate at which expected inventory costs accrue at time t+Lt + Lt+L when the inventory position at time ttt is yyy. It is convex, and it is assumed, as in the paper, to attain its minimum at a unique point y0y^0y0.

A (Q,r)(Q, r)(Q,r) policy orders QQQ units whenever the inventory position falls to the reorder point rrr. Its long-run average cost is

c(Q,r)=λK+∫rr+QG(y) dyQ.(1)c(Q, r) = \frac{\lambda K + \int_r^{r+Q} G(y)\,dy}{Q}. \qquad (1)c(Q,r)=QλK+∫rr+Q​G(y)dy​.(1)

For a fixed Q>0Q > 0Q>0 let r(Q)r(Q)r(Q) be an optimal reorder point, and set

H(Q)=G(r(Q)) (Q>0),H(0)=G(y0),C(Q)=c(Q,r(Q)),A(Q)=QH(Q)−∫0QH(y) dy.H(Q) = G(r(Q)) \ (Q > 0),\quad H(0) = G(y^0),\quad C(Q) = c(Q, r(Q)),\quad A(Q) = Q H(Q) - \int_0^Q H(y)\,dy .H(Q)=G(r(Q)) (Q>0),H(0)=G(y0),C(Q)=c(Q,r(Q)),A(Q)=QH(Q)−∫0Q​H(y)dy.

C(Q)C(Q)C(Q) is the average cost when the reorder point is chosen optimally for QQQ; an order quantity Q∗>0Q^* > 0Q∗>0 minimising CCC over Q>0Q > 0Q>0 is the optimal order quantity, and C∗=C(Q∗)C^* = C(Q^*)C∗=C(Q∗) is the optimal cost.

The EOQ model is the special case in which the leadtime demand is the constant λL\lambda LλL. Its cost rate is Gd(y)=h(y−λL)++p(λL−y)+G_d(y) = h(y - \lambda L)^+ + p(\lambda L - y)^+Gd​(y)=h(y−λL)++p(λL−y)+, and its optimal order quantity is

Qd∗=2λK(h+p)hp.Q^*_d = \sqrt{\frac{2\lambda K(h+p)}{hp}} .Qd∗​=hp2λK(h+p)​​.

The subscript ddd marks every object of the EOQ model (rdr_drd​, HdH_dHd​, AdA_dAd​).

Formalization targets

Goal: Theorem 5

R=C(Qd∗)−C∗C∗  ≤  18−12(12−Qd∗Q∗)2  ≤  18.R = \frac{C(Q^*_d) - C^*}{C^*} \;\le\; \frac18 - \frac12\left(\frac12 - \frac{Q^*_d}{Q^*}\right)^2 \;\le\; \frac18 .R=C∗C(Qd∗​)−C∗​≤81​−21​(21​−Q∗Qd∗​​)2≤81​.

C(Qd∗)C(Q^*_d)C(Qd∗​) is the stochastic cost at the EOQ quantity with the reorder point re-optimised for it. The bound holds for every leadtime-demand distribution and every value of the parameters.

Milestones

In the order the goal's proof uses them:

  • Lemma 1 (joint convexity of ccc), Lemma 2 (r=r(Q)  ⟺  G(r)=G(r+Q)r = r(Q) \iff G(r) = G(r+Q)r=r(Q)⟺G(r)=G(r+Q)), Lemma 3 (properties of r(Q)r(Q)r(Q)), Corollary 1 (G(r(Q))≤max⁡(G(r),G(r+Q))G(r(Q)) \le \max(G(r), G(r+Q))G(r(Q))≤max(G(r),G(r+Q)));
  • Eq. (7) (C(Q)=(λK+∫0QH)/QC(Q) = (\lambda K + \int_0^Q H)/QC(Q)=(λK+∫0Q​H)/Q), Lemma 4 (HHH increasing, convex, asymptotic slope hp/(h+p)hp/(h+p)hp/(h+p)), Lemma 5 (CCC convex), Eq. (8) (H(Q∗)=C(Q∗)H(Q^*) = C(Q^*)H(Q∗)=C(Q∗)), Theorem 1 ((Q,r)(Q, r)(Q,r) optimal iff c(Q,r)=G(r)=G(r+Q)c(Q,r) = G(r) = G(r+Q)c(Q,r)=G(r)=G(r+Q)), Lemma 6 (AAA increasing convex, Q=Q∗  ⟺  A(Q)=λKQ = Q^* \iff A(Q) = \lambda KQ=Q∗⟺A(Q)=λK, comparative statics in KKK);
  • Eqs. (18), (20) (the EOQ model: Hd(Q)=hpQ/(h+p)H_d(Q) = hpQ/(h+p)Hd​(Q)=hpQ/(h+p) and the formula for Qd∗Q^*_dQd∗​), Eq. (22) (Gd≤GG_d \le GGd​≤G), Lemma 7 (H0≤Hd≤HH_0 \le H_d \le HH0​≤Hd​≤H, A≤AdA \le A_dA≤Ad​), and the first inequality of Theorem 2, Qd∗≤Q∗Q^*_d \le Q^*Qd∗​≤Q∗.

Significance

The theorem is a distribution-free worst-case guarantee for the most common heuristic in inventory practice. It says that the EOQ formula, which needs only the mean demand rate and three cost parameters, loses at most 12.5%12.5\%12.5% against the true optimum, and that the loss is smaller when Qd∗/Q∗Q^*_d/Q^*Qd∗​/Q∗ is close to 12\frac1221​ or to 111. Combined with the paper's Theorem 2 (the gap Q∗−Qd∗Q^* - Q^*_dQ∗−Qd∗​ is bounded as KKK grows), it implies that the relative loss vanishes as the fixed ordering cost grows. The milestones along the way (the optimality conditions of Theorem 1, the monotonicity of the optimal reorder point, the comparison of HHH with its EOQ counterpart) are the standard structural facts about continuous (Q,r)(Q, r)(Q,r) systems and are reused throughout the inventory literature.

The result is proved in the paper. No machine-checked version of it, or of the (Q,r)(Q, r)(Q,r) optimality conditions for the continuous cost (1), is known to exist. The platform has related but different formalizations: the discrete cost function with integer QQQ (InventoryControl_rqDiscrete), the (R,Q)(R, Q)(R,Q) cost under normal demand (InventoryControl_rq), and the EOQ without backorders (InventoryControl_eoq). A complete development here provides the continuous (Q,r)(Q, r)(Q,r) machinery for an arbitrary leadtime-demand distribution.

Difficulty

The paper's proofs differentiate r(Q)r(Q)r(Q) and H(Q)H(Q)H(Q) twice (Eqs. (4), (5)), which presupposes a leadtime demand with a smooth density. The formalization does not assume one, so that discrete demand, such as the Poisson demand of the paper's own numerical study, is covered. Every step that the paper takes through derivatives, in particular the convexity of HHH and the slope bound H′≤hp/(h+p)H' \le hp/(h+p)H′≤hp/(h+p), has to be established by other means: through one-sided derivatives or chord arguments for the convex function GGG, whose kinks are where the derivative-based argument breaks. The definition of r(Q)r(Q)r(Q) as a minimiser also means its existence and uniqueness must be proved before any property of HHH, CCC or AAA can be used.

Formalization scope

  • The model is a probability measure μ\muμ on R\mathbb{R}R (the law of DDD), concentrated on [0,∞)[0,\infty)[0,∞), integrable, with mean λL\lambda LλL; GGG is the integral of hmax⁡(y−x,0)+pmax⁡(x−y,0)h\max(y-x,0) + p\max(x-y,0)hmax(y−x,0)+pmax(x−y,0) against μ\muμ. The standing assumptions are bundled in IsQRModel: λ,L,h,p>0\lambda, L, h, p > 0λ,L,h,p>0, the conditions on μ\muμ, and the unique minimiser of GGG (paper, p. 90). K>0K > 0K>0 is a separate hypothesis. No density is assumed.
  • ccc, r(Q)r(Q)r(Q), y0y^0y0, HHH, H0H_0H0​, CCC, AAA and optimality of an order quantity are defined for an arbitrary cost rate GGG and applied both to the newsvendor cost and to GdG_dGd​; the EOQ objects rdr_drd​, HdH_dHd​, AdA_dAd​ are these definitions at GdG_dGd​, and Eqs. (18), (20) are theorems.
  • r(Q)r(Q)r(Q) is a chosen minimiser of c(Q,⋅)c(Q,\cdot)c(Q,⋅) (never defined by G(r)=G(r+Q)G(r) = G(r+Q)G(r)=G(r+Q), which is Lemma 2). H(0):=G(y0)H(0) := G(y^0)H(0):=G(y0); right-continuity of HHH at 000 is part of the Lemma 4 milestone. Order quantities range over (0,∞)(0,\infty)(0,∞) for ccc and CCC and over [0,∞)[0,\infty)[0,∞) for HHH, H0H_0H0​, AAA.
  • Q∗Q^*Q∗ in the goal is any Q>0Q > 0Q>0 with C(Q)≤C(Q′)C(Q) \le C(Q')C(Q)≤C(Q′) for all Q′>0Q' > 0Q′>0; Lemma 6 asserts that exactly one exists, so the goal is not vacuous. Qd∗Q^*_dQd∗​ is the explicit square-root formula.
  • Readings of informal words: "increasing" in Lemmas 4 and 6 means strictly increasing on [0,∞)[0,\infty)[0,∞); "Q∗Q^*Q∗ increasing, r∗r^*r∗ decreasing in KKK" means strictly; "asymptotic slope hp/(h+p)hp/(h+p)hp/(h+p)" means that every chord of HHH on [0,∞)[0,\infty)[0,∞) has slope at most hp/(h+p)hp/(h+p)hp/(h+p) and H(Q)/Q→hp/(h+p)H(Q)/Q \to hp/(h+p)H(Q)/Q→hp/(h+p); Lemma 3 part 3 is stated as strict monotonicity of r(Q)r(Q)r(Q) and r(Q)+Qr(Q) + Qr(Q)+Q, and its derivative clause −1<r′(Q)<0-1 < r'(Q) < 0−1<r′(Q)<0 is omitted because rrr need not be differentiable without a density; "the optimal order quantity" means existence and uniqueness; Lemma 7 is stated for Q≥0Q \ge 0Q≥0.
  • A trivializing formalization is ruled out: C(Qd∗)C(Q^*_d)C(Qd∗​) is the stochastic cost with the reorder point re-optimised in the stochastic model (not the EOQ reorder point rd∗r^*_drd∗​), and no positivity of C∗C^*C∗ is assumed (it follows from the model).
  • Out of scope: the discrete cost (2), the §4 numerical study, and the unnumbered remarks after Theorem 5.
  • Needed infrastructure: interval integrals of convex functions, partial minimisation of jointly convex functions, Jensen's inequality for μ\muμ, and one-sided derivatives of convex functions. The generic (Q,r)(Q, r)(Q,r) machinery (optimality conditions for arbitrary convex GGG) is reusable for other continuous-review models. Proofs of any milestone, and alternative proofs that avoid the paper's differentiability assumptions, are welcome.

Selected references

  • Yu-Sheng Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1):87–103, 1992. https://doi.org/10.1287/mnsc.38.1.87
  • Awi Federgruen and Yu-Sheng Zheng, An Efficient Algorithm for Computing an Optimal (r, Q) Policy in Continuous Review Stochastic Inventory Systems, Operations Research 40(4):808–813, 1992. https://doi.org/10.1287/opre.40.4.808
  • Paul H. Zipkin, Inventory Service-Level Measures: Convexity and Approximation, Management Science 32(8):975–981, 1986. https://doi.org/10.1287/mnsc.32.8.975
  • George Hadley and Thomson M. Whitin, Analysis of Inventory Systems, Prentice-Hall, 1963.
  • Daniel P. Heyman and Matthew J. Sobel, Stochastic Models in Operations Research, Vol. II, McGraw-Hill, 1984.
18 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations ResearchOptimization·Captain: naimengye

Multi-armed Bandit Allocation Indices III: Superprocesses, Condition D and the Index Theorem for a SFASTextbook

Motivation

The index theorem says that among several Markov reward processes, of which one may be advanced at each decision time, the right one to advance is the one of greatest Gittins index. Chapter 4 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), asks how far this extends when the constituents are not reward processes but decision processes, each with its own controls: a research project that can be run in several ways, a job that can be processed at different speeds, a sampling process that may be stopped and exploited. A family of such superprocesses requires two choices at every decision time, which superprocess to continue and with which control, and an index policy in the sense of Chapter 2 need not be optimal (Example 4.1). Whittle (1980) identified the condition under which it is: Condition D, that when a superprocess is played against a standard bandit process paying a constant rent, the control one should apply to it does not depend on the rent. Under that condition the index theorem survives (Theorem 4.3), the index is characterized (Note 4.2), stoppable bandit processes with improving stopping options satisfy the condition (Lemma 4.4), and the chapter adds two results about indices themselves: any index that works for all bandit processes is a strictly increasing function of the Gittins index (Theorem 4.8), and a policy that is within ε\varepsilonε of the index policy loses at most εγ−1(1−e−γ)−1\varepsilon\gamma^{-1}(1-e^{-\gamma})^{-1}εγ−1(1−e−γ)−1 (Theorem 4.18).

Setting

A decision process DDD on a countable state space SSS has in each state xxx a nonempty finite set Γ(x)\Gamma(x)Γ(x) of controls; applying uuu yields the reward r(x,u)r(x, u)r(x,u) and moves the state by P(⋅∣x,u)P(\cdot \mid x, u)P(⋅∣x,u). Adding the freeze control, which leaves the state unchanged and yields nothing, makes DDD a superprocess SSS. Operating DDD under a feasible deterministic stationary Markov policy ggg (that is, g(x)∈Γ(x)g(x) \in \Gamma(x)g(x)∈Γ(x)) gives an ordinary bandit process DgD_gDg​, and the superprocess index is

ν(S,x,u)=sup⁡g:g(x)=uν(Dg,x),ν(S,x)=max⁡u∈Γ(x)ν(S,x,u),(4.1)\nu(S, x, u) = \sup_{g : g(x) = u} \nu(D_g, x), \qquad \nu(S, x) = \max_{u \in \Gamma(x)} \nu(S, x, u), \tag{4.1}ν(S,x,u)=g:g(x)=usup​ν(Dg​,x),ν(S,x)=u∈Γ(x)max​ν(S,x,u),(4.1)

with ν(Dg,x)\nu(D_g, x)ν(Dg​,x) the Gittins index of the Bandit Algorithms model. A simple family of alternative superprocesses (SFAS) is nnn superprocesses on a common (S,U)(S, U)(S,U); at each decision time 0,1,2,…0, 1, 2, \dots0,1,2,… exactly one is continued, with a control from its control set, the others being frozen, and rewards are discounted by ata^tat. A policy is a Markov kernel per decision time from the history to the pair (superprocess, control); it is optimal if it is feasible and attains the supremum of the discounted payoff over feasible policies from every initial state-vector, and it is an index policy if it always continues a superprocess and control of maximal ν(Si,xi,u)\nu(S_i, x_i, u)ν(Si​,xi​,u).

Condition D. Let Λ\LambdaΛ be a standard bandit process with parameter λ\lambdaλ (one state, reward λ\lambdaλ). SSS satisfies Condition D if there is a function ggg such that, for every xxx and λ\lambdaλ for which it is optimal in the family {S,Λ}\{S, \Lambda\}{S,Λ} to select SSS in state xxx, it is optimal to apply the control g(x)g(x)g(x). A stoppable bandit process is a bandit process with a stop control that makes it behave as a standard bandit process with parameter μ(x)\mu(x)μ(x); its stopping option is improving if μ(x(t))\mu(x(t))μ(x(t)) is almost surely nondecreasing in process time.

Formalization targets

Goal: Theorem 4.3

For a decision process with bounded rewards and a Condition-D control ggg, every index policy with respect to ν(D,⋅,⋅)\nu(D, \cdot, \cdot)ν(D,⋅,⋅) that applies g(xi)g(x_i)g(xi​) to the superprocess iii it continues is optimal for the family of nnn superprocesses:

index policy π  ⟹  π feasible and Rπ(x)=sup⁡π′ feasibleRπ′(x)  for every x∈Sn.\text{index policy } \pi \implies \pi \text{ feasible and } R_\pi(x) = \sup_{\pi' \text{ feasible}} R_{\pi'}(x)\ \text{ for every } x \in S^n.index policy π⟹π feasible and Rπ​(x)=π′ feasiblesup​Rπ′​(x)  for every x∈Sn.

Milestones

Note 4.2 (under Condition D, SSS is selected in {S,Λ(λ)}\{S, \Lambda(\lambda)\}{S,Λ(λ)} iff ν(S,x)≥λ\nu(S, x) \ge \lambdaν(S,x)≥λ, and at λ=ν(S,x)\lambda = \nu(S, x)λ=ν(S,x) a control uuu is optimal iff ν(S,x,u)=ν(S,x)\nu(S, x, u) = \nu(S, x)ν(S,x,u)=ν(S,x); the printed equivalence fails for λ<ν(S,x)\lambda < \nu(S, x)λ<ν(S,x)); Lemma 4.4 (Condition D for stoppable bandit processes with improving stopping options); Theorem 4.8 (an index for the bandit processes with discount factor aaa is strictly increasing in ν\nuν); Theorem 4.18 (the ε\varepsilonε-index bound, ε/(1−a)2\varepsilon/(1-a)^2ε/(1−a)2 for the discrete-time index).

Significance

Theorem 4.3 is the widest form in which the index theorem holds without further structure, and Condition D is exactly the right hypothesis: it says the superprocess has a canonical control, and once it does the family reduces to a family of bandit processes and the prevailing-charge argument goes through. Lemma 4.4 gives the model where the condition is known to hold, a research project that may be exploited at any time; the buyer's problem of Bergman and Bather is the case where it fails. Theorem 4.8 explains why every index theorem in the book is about the Gittins index: any function that orders bandit processes optimally must order them as ν\nuν does. Theorem 4.18 is the quantitative version of the index theorem that heuristics and computations rely on.

Nothing here is machine-checked. The mission builds the first controlled multi-armed model on the platform, a run law for families of decision processes with an explicit feasibility constraint, and states Whittle's condition as a property of the two-member family, which is how the literature uses it. Theorems 4.8 and 4.18 are statements about the existing Bandit Algorithms model and are usable by any later work on that model.

Difficulty

The obvious attack on Theorem 4.3, "replace each superprocess by the bandit process DgD_{g}Dg​ for its Condition-D policy ggg and apply the index theorem", is the second half of the book's proof; the first half is to show that an optimal policy never gains by applying a control other than g(xi)g(x_i)g(xi​) to a superprocess it continues, and that uses the prevailing-stake accounting of §4.3 with the other superprocesses treated as one bandit process, plus the observation that the class of policies deviating at most kkk times is ε\varepsilonε-exhaustive. Both halves require the whole run law of the family to be related to the run laws of its constituents, which is where a formalization spends its effort. Note 4.2 is short on the page but needs the optimal-stopping characterization of Chapter 2 for the bandit process DgD_gDg​ under charge λ\lambdaλ. Theorem 4.8 is elementary given the value of {B,Λ}\{B, \Lambda\}{B,Λ} under a freezing rule, Rf(B)+λγ−1−λWf(B)R_f(B) + \lambda\gamma^{-1} - \lambda W_f(B)Rf​(B)+λγ−1−λWf​(B), but that identity is itself a computation on the run law. Theorem 4.18 has no proof in the book (Glazebrook 1982c); the natural route is the prevailing-charge upper bound with the charges perturbed by ε\varepsilonε.

Formalization scope

Decision processes carry their control sets as finsets with a nonemptiness proof and their kernels as Markov kernels; the state space is countable with measurable singletons (so stationary kernels and control-dependent maps are measurable without side conditions) and the control type is finite with measurable singletons. The family's run law is built decision time by decision time as the Bandit Algorithms model builds markovBanditMeasure, with the policy's kernel producing the pair (superprocess, control). Feasibility is an almost-sure condition on the policy kernel, and optimality is the book's: feasible, and the supremum from every initial state-vector. The superprocess index is a real supremum over feasible stationary policies with g(x)=ug(x) = ug(x)=u, bounded by the reward bound and nonempty for u∈Γ(x)u \in \Gamma(x)u∈Γ(x); for an unavailable uuu it is a default value that no index policy consults. Condition D is stated on the family {S,Λ}\{S, \Lambda\}{S,Λ} on S⊕UnitS \oplus \mathrm{Unit}S⊕Unit, where the standard state has every control available, all equivalent. A stoppable bandit process is the decision process with control type Bool. Theorem 4.8 quantifies over index functions defined on every measurable state space and takes as hypothesis only what its proof uses, optimality of μ\muμ-index policies for the families {B,Λ}\{B, \Lambda\}{B,Λ}. Theorem 4.18 is on the kkk-armed Bandit Algorithms model with ε≥0\varepsilon \ge 0ε≥0 and the bound ε/(1−a)2\varepsilon/(1-a)^2ε/(1−a)2: the book's εγ−1(1−e−γ)−1\varepsilon\gamma^{-1}(1 - e^{-\gamma})^{-1}εγ−1(1−e−γ)−1 is in continuous-time index units, γ/(1−a)\gamma/(1-a)γ/(1−a) times the discrete-time index used here, and read with the discrete index it is false for a<1/ea < 1/ea<1/e. Theorem 4.3's index policy applies the Condition-D control ggg to the superprocess it continues, as the book's proof does; an index policy that breaks ties among controls otherwise need not be optimal.

Trivializing readings are excluded: index policies must be feasible, optimality is required from every initial state, and Condition D is a statement about optimal policies of a genuine two-member family, not about a chosen policy. Welcome contributions: the relation between the family's run law and the constituents' chain laws, the freezing-rule value identity behind Theorem 4.8, and the prevailing-stake accounting of §4.3.

Selected references

  • J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 4. doi:10.1002/9780470980033
  • P. Whittle, Multi-armed bandits and the Gittins index, Journal of the Royal Statistical Society B 42(2), 1980. doi:10.1111/j.2517-6161.1980.tb01111.x
  • K. D. Glazebrook, Stoppable families of alternative bandit processes, Journal of Applied Probability 16(4), 1979. doi:10.2307/3213152
  • K. D. Glazebrook, On the evaluation of suboptimal strategies for families of alternative bandit processes, Journal of Applied Probability 19(3), 1982. doi:10.2307/3213524
  • T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 35. doi:10.1017/9781108571401
10 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations ResearchOptimization·Captain: naimengye

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\gamma \downarrow 0γ↓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 nnn jobs with service times si>0s_i > 0si​>0 and weights cic_ici​, and mmm 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 time CiC_iCi​ of a job is the total service time of the jobs on its machine up to and including it; the flow time is ∑iCi\sum_i C_i∑i​Ci​ and the weighted flow time ∑iciCi\sum_i c_i C_i∑i​ci​Ci​. The load of a machine is the total service time assigned to it, and δj\delta_jδj​ is its excess over the average S/mS/mS/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 nnn boxes, in box iii with probability pip_ipi​. A search of box iii costs cic_ici​ and finds the object with probability qiq_iqi​ if it is there. A search policy is a sequence of boxes; after NiN_iNi​ unsuccessful searches of box iii the posterior probability that the object is there is proportional to pi(1−qi)Nip_i(1-q_i)^{N_i}pi​(1−qi​)Ni​, and the search index of the box is pi′qi/cip'_i q_i/c_ipi′​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]\sum_k c_{\sigma_k}\Pr[\text{not found by the first } k \text{ searches}]∑k​cσk​​Pr[not found by the first k searches].

Two discount factors. Bandit process AAA (state space SAS_ASA​, kernel PAP_APA​, reward rAr_ArA​) discounts at rate aaa and BBB at rate bbb; a reward obtained at time ttt is worth ata^tat or btb^tbt 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τ]\nu_{AB}(x) = \sup_{\tau>0} \mathbb{E}\sum_{t<\tau} a^t r_A(x(t)) \big/ \mathbb{E}[1 - b^\tau]νAB​(x)=supτ>0​E∑t<τ​atrA​(x(t))/E[1−bτ] and νBA(y)\nu_{BA}(y)ν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τbt dt\mathbb{E}\int_0^\tau b^t\,dtE∫0τ​btdt and compares νAB(x)\nu_{AB}(x)νAB​(x) with νBA(y)\nu_{BA}(y)ν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⊕SBS_A \oplus S_BSA​⊕SB​.

Formalization targets

Goal: Theorem 3.6

For prior probabilities pi≥0p_i \ge 0pi​≥0 summing to one, detection probabilities 0<qi≤10 < q_i \le 10<qi​≤1 and costs ci>0c_i > 0ci​>0, a search policy is optimal if and only if at every step it searches a box of maximal current index pi′qi/cip'_i q_i / c_ipi′​qi​/ci​:

optimal(σ)  ⟺  ∀k, ∀i: pi(1−qi)Ni(k)qici≤pσk(1−qσk)Nσk(k)qσkcσk.\text{optimal}(\sigma) \iff \forall k,\ \forall i:\ \frac{p_i (1-q_i)^{N_i(k)} q_i}{c_i} \le \frac{p_{\sigma_k}(1-q_{\sigma_k})^{N_{\sigma_k}(k)} q_{\sigma_k}}{c_{\sigma_k}}.optimal(σ)⟺∀k, ∀i: ci​pi​(1−qi​)Ni​(k)qi​​≤cσk​​pσk​​(1−qσk​​)Nσk​​(k)qσk​​​.

Milestones

Theorem 3.3, as the identity ∑iciCi=κ2(∑isi2+S2/m+∑jδj2)\sum_i c_i C_i = \frac{\kappa}{2}\big(\sum_i s_i^2 + S^2/m + \sum_j \delta_j^2\big)∑i​ci​Ci​=2κ​(∑i​si2​+S2/m+∑j​δj2​) when ci=κsic_i = \kappa s_ici​=κsi​; Theorem 3.4 in discrete time and corrected, that a policy selecting, at time ttt, AAA when atνAB(x)>btνBA(y)a^t \nu_{AB}(x) > b^t \nu_{BA}(y)atνAB​(x)>btνBA​(y) and BBB when atνAB(x)<btνBA(y)a^t \nu_{AB}(x) < b^t \nu_{BA}(y)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 mmm machines and that the optimal schedules are exactly those placing the rrr-th block of mmm longest jobs at level rrr 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 ttt weighs the indices by ata^tat and btb^tbt, 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.180.180.18 (a=0.9a = 0.9a=0.9) and 111 (b=0.5b = 0.5b=0.5) are best played B,B,BB, B, BB,B,B and then AAA 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\sum_i \ell_i s_i∑i​ℓi​si​ with ℓi\ell_iℓ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,∞][0, \infty][0,∞] of nonnegative terms, so no summability hypothesis is needed and "infinite cost" is literal; the index is stated unnormalized, pi(1−qi)Niqi/cip_i(1-q_i)^{N_i} q_i/c_ipi​(1−qi​)Ni​qi​/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 AAA-state by PAP_APA​ and a BBB-state by PBP_BPB​; the payoff is the round-by-round series ∑t(atE[r1{At=A}]+btE[r1{At=B}])\sum_t (a^t \mathbb{E}[r\mathbf 1\{A_t = A\}] + b^t \mathbb{E}[r\mathbf 1\{A_t = B\}])∑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≥1m \ge 1m≥1, service times positive; pi≥0p_i \ge 0pi​≥0, ∑pi=1\sum p_i = 1∑pi​=1, 0<qi≤10 < q_i \le 10<qi​≤1, ci>0c_i > 0ci​>0; countable state spaces, bounded rewards, a,b∈(0,1)a, b \in (0,1)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 ata^tat, btb^tbt. 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.
  • P. Nash, A generalized bandit problem, Journal of the Royal Statistical Society B 42(2), 1980. doi:10.1111/j.2517-6161.1980.tb01119.x
8 thms5 active usersReviewed
PreviousPage 1 of 27Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me