The mathematical discipline of drawing inferences from data under uncertainty: estimation, hypothesis testing, prediction, and the quantification of confidence. Grounded in probability, it spans classical and Bayesian inference, experimental design, and modern high-dimensional and nonparametric theory, asking what data can reveal and with what guarantees.
The Markov Chain Central Limit TheoremResearch Paper
Markov chain Monte Carlo turns hard integration problems into long simulations: to estimate an expectation Eπf one runs a Markov chain with stationary distribution π and reports the sample average fˉn. The ergodic theorem guarantees fˉn→Eπf, but honest error bars require more: a central limit theorem
n(fˉn−Eπf)→dN(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 (α-, ρ-, φ-mixing) against moment conditions on f. 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.
Every time a streaming service guesses what you would rate a film you have never seen, it is solving a matrix completion problem: fill in the missing entries of a vast user-by-item table from the few that are observed. The question became famous during the Netflix Prize (2006-2009), and it looks hopeless - infinitely many matrices fit the observed entries - until one assumes the structure that makes recommendation possible: the table is essentially low rank, because tastes are governed by a few latent factors. In their landmark 2009 paper 'Exact Matrix Completion via Convex Optimization' (Foundations of Computational Mathematics), Emmanuel Candes and Benjamin Recht proved that an n-by-n matrix of rank r can be recovered exactly, with high probability, from only about n^1.2 * r * log n randomly observed entries - not by the NP-hard route of minimizing rank, but by minimizing the nuclear norm, a convex surrogate (the sum of the singular values) solvable efficiently. The proof, in the lineage of Candes-Romberg-Tao compressed sensing, turns on two ideas: an incoherence condition ensuring the singular vectors are spread out rather than spiky, and a dual certificate witnessing optimality, whose existence rests on delicate random-matrix concentration. It transformed a practical engineering puzzle into rigorous theory and seeded a decade of work across machine learning, signal processing, computer vision, and sensor localization. This mission formalizes the Candes-Recht exact-recovery theorem in Lean, decomposed into its dual-certificate construction and the probabilistic concentration reductions at its core.
Optimal Best Arm Identification with Fixed Confidence IV: Asymptotic Optimality of the Track-and-Stop StrategyResearch Paper
Motivation
In best arm identification with fixed confidence, a learner samples K unknown distributions (arms) sequentially and must, as early as possible, name the arm with the largest mean, while being wrong with probability at most a prescribed risk δ. The problem models adaptive A/B/n testing, clinical and simulation-based selection among alternatives, and the "ranking and selection" problem of operations research and simulation optimization. The quantity of interest is the sample complexityEμ[τδ], the expected number of samples a strategy takes before stopping.
Timeline of the question this mission formalizes:
Chernoff (1959) introduced sequential tests based on generalized likelihood ratios for adaptive design of experiments, with a finite set of hypotheses (doi:10.1214/aoms/1177706205).
Kaufmann, Cappé and Garivier (2016, JMLR) proved a change-of-measure lower bound on the sample complexity of every δ-PAC strategy (arXiv:1407.4443).
Garivier and Kaufmann (COLT 2016) identified the exact constant T∗(μ) in that lower bound and gave the first strategy, Track-and-Stop, whose sample complexity matches it asymptotically as δ→0 (arXiv:1602.04589). This mission covers the upper-bound half of that paper.
Setting
A canonical one-parameter exponential family is a family of laws νθ, θ∈Θ, on R with density exp(θx−b(θ)) with respect to a reference measure ξ; b is twice differentiable and strictly convex, and νθ has mean b˙(θ). Bernoulli, Poisson and Gaussian laws with known variance are examples. The divergence d(μ,μ′) is the Kullback–Leibler divergence between the members with means μ and μ′.
A bandit model μ=(μ1,…,μK) assigns a member of the family to each arm. The class S consists of models with a unique optimal arm a∗(μ). At each round t=1,2,… the learner picks an arm At as a function of past observations, observes a reward drawn from that arm's law, and at a stopping time τδ recommends an arm. Na(t) is the number of draws of arm a in the first t rounds and μ^a(t) its empirical mean.
With Alt(μ)={λ∈S:a∗(λ)=a∗(μ)} and ΣK the probability simplex, the characteristic time is
T∗(μ)−1=w∈ΣKsupλ∈Alt(μ)infa=1∑Kwad(μa,λa),
and the maximizer w∗(μ) are the optimal proportions of arm draws.
Track-and-Stop combines two ingredients:
a sampling rule that tracks the plug-in proportions w∗(μ^(t)) while forcing each arm to be drawn about t times: C-Tracking tracks the cumulated sum of projections of w∗(μ^(s)) onto ΣKϵs={w∈ΣK:wa≥ϵs}, ϵs=(K2+s)−1/2/2; D-Tracking draws an under-sampled arm when some Na(t)<t−K/2, and otherwise the arm maximizing twa∗(μ^(t))−Na(t);
Chernoff's stopping rule, which stops at the first t at which some arm a beats every other arm b in a generalized likelihood ratio test, Za,b(t)>β(t,δ), here with β(t,δ)=log(r(t)/δ).
Formalization targets
Goal: Theorem 14 (p. 13)
For α∈[1,e/2] and r(t)=O(tα), Chernoff's stopping rule with β(t,δ)=log(r(t)/δ) combined with C-Tracking or D-Tracking satisfies
Lemma 7 (p. 7): C-Tracking ensures Na(t)≥t+K2−2K and maxa∣Na(t)−∑s<twa∗(μ^(s))∣≤K(1+t).
Lemma 8 (p. 7): D-Tracking ensures Na(t)≥(t−K/2)+−1, and proportions within 3(K−1)ϵ of w∗(μ) after a time tϵ that does not depend on the trajectory, once the plug-in targets are within ϵ.
Proposition 9 (p. 8): under either rule, Na(t)/t→wa∗(μ) almost surely.
Lemma 18 (p. 27): an explicit x with c1x≥log(c2xα) for α∈[1,e/2].
Proposition 13 (p. 11): with any sampling rule whose proportions converge almost surely to w∗, τδ<∞ almost surely and limsupδ→0τδ/log(1/δ)≤αT∗(μ) almost surely.
Significance
Theorem 1 of the same paper shows Eμ[τδ]≥T∗(μ)kl(δ,1−δ) for every δ-PAC strategy, and kl(δ,1−δ)∼log(1/δ). Theorem 14 with α=1 therefore shows that the lower bound is attained: T∗(μ) is the exact asymptotic sample complexity of best arm identification in exponential family models, and Track-and-Stop is asymptotically optimal.
The result is proved in the paper. What is not available is a machine-checked proof for exponential families. The platform already holds a Lean development of the Gaussian case following Lattimore and Szepesvári, Bandit Algorithms, Ch. 33, stated for one existentially chosen policy with a different threshold. This mission asks for the universal statement: every run of either tracking rule, for every exponential family, with the paper's thresholds. The tracking lemmas (Lemmas 15, 7, 8) are deterministic combinatorics and reusable by any tracking-based algorithm.
Difficulty
The obvious argument plugs the almost-sure behaviour of Proposition 13 into an expectation. That step fails: almost-sure convergence of τδ/log(1/δ) does not control E[τδ], because on the rare events where the empirical means are far from μ the stopping time may be very large. Theorem 14 needs a quantitative concentration of μ^(t) on events whose complements have summable probability, which in turn relies on the forced exploration guaranteed by the t lower bounds on Na(t) (the concentration step of App. D, Lemmas 19–20).
A second obstacle is the regularity of w∗: the tracking lemmas only transfer convergence of μ^(t) to convergence of Na(t)/t through the continuity of μ↦w∗(μ) on S, proved from the characterization of w∗ in §2.2 (Proposition 6). The GLR statistic also needs its closed form (7) near μ, which requires the empirical means to lie in the interior of the mean space.
Formalization scope
Model. The exponential family is a structure (ξ,Θ,b) with Θ a nonempty open interval, each νθ normalized, b twice continuously differentiable and b¨>0 on Θ. Openness and b¨>0 are added to the paper's "convex, twice differentiable"; strict convexity is what makes νμ unique. Bandit models are parameter vectors θ∈ΘK with K≥2; arms are indexed 0,…,K−1. S is the set of parameter vectors with a unique arm of largest mean b˙(θa).
Protocol. Policies, the trajectory law Pμ, pull counts, empirical means and T∗(μ) are the platform's published definitions (BanditPolicy, BanditTrajectory, TrackAndStop). T∗ uses Kullback–Leibler divergences of the arm laws over the class S and takes values in [0,∞]. Trajectory coordinate t is round t+1. An arm never drawn has empirical mean 0.
Target map.w∗(μ^(t)) is undefined in the paper when μ^(t)∈/S (an unsampled arm, ties, a mean outside b˙(Θ)). Every tracking statement quantifies over every target map with values in ΣK that returns optimal proportions on S, over every choice of L∞ projections, and over every tie-breaking, including randomized ones.
Stopping rule. The two maxima in Za,b(t) are suprema over Θ in the extended reals. Za,b(t)>β is written without subtracting infinities. The stopping time is the first t≥1 at which the test succeeds, +∞ if none. "r(t)=O(tα)" is r(t)≤Dtα for t≥1; r>0 is added so that log(r(t)/δ) is defined.
Values in [0,∞]. Expectations of τδ, the ratios and T∗ live in [0,∞]. No statement converts them to reals, so an infinite expected stopping time is never read as 0.
Corrections, disclosed. Proposition 9's printed Pw is Pμ. Lemma 18 adds c2/c1α>1 and x>0, without which its expressions are undefined.
Ruled out. Specializing to Gaussian arms, or asserting that some sampling policy achieves the bound, would restate existing platform results and is not this theorem: the goal is about every C-Tracking or D-Tracking run in every exponential family.
Welcome contributions. Exponential-family facts (b˙ is the mean, the KL formula, concentration of empirical means); the continuity of w∗ (Proposition 6, App. A.3); Lemma 17 (App. B.2), from which Lemma 8 follows; the closed form (7) of the GLR statistic.
Selected references
A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016, JMLR W&CP 49. arXiv:1602.04589v2
E. Kaufmann, O. Cappé, A. Garivier, On the Complexity of Best-Arm Identification in Multi-Armed Bandit Models, JMLR 17, 2016. arXiv:1407.4443
Optimal Best Arm Identification with Fixed Confidence I: Non-Asymptotic Lower Bound on the Sample ComplexityResearch Paper
Motivation
Best arm identification with fixed confidence is the pure-exploration counterpart of the multi-armed bandit problem. A learner faces K unknown reward distributions ("arms"), samples them sequentially, and must stop and name the arm with the largest mean, being wrong with probability at most a prescribed δ. The question is how many samples this requires. It arises in adaptive A/B testing, in the selection of the best of several simulated systems (ranking and selection in simulation optimization), and in clinical trials that must declare the best treatment with a guaranteed error rate.
Lower bounds for this problem were first stated in terms of the gaps between means (Mannor and Tsitsiklis, 2004). Kaufmann, Cappé and Garivier (2016) replaced ad hoc changes of measure by a single "transportation" lemma relating expected sample counts, Kullback–Leibler divergences and the error probability. Garivier and Kaufmann (COLT 2016, arXiv:1602.04589v2) combine this lemma over all alternative models at once, in the spirit of Graves and Lai (1997), and obtain a lower bound whose constant T∗(μ) is exactly matched, as δ→0, by their Track-and-Stop strategy. This mission formalizes that lower bound (Theorem 1 of the paper, p. 3).
Setting
A canonical one-parameter exponential family is given by a reference measure ξ on R, an open interval Θ⊂R and a function b, twice continuously differentiable on Θ with b¨>0, such that the laws νθ with density exp(θx−b(θ)) with respect to ξ are probability measures for θ∈Θ. The mean of νθ is b˙(θ). Bernoulli laws and Gaussian laws of known variance are examples.
A bandit model is a vector θ=(θ1,…,θK)∈ΘK; arm a returns i.i.d. rewards with law νθa and mean μa=b˙(θa). Arm a∗(μ) is the unique optimal arm if μa∗>μa for every a=a∗. Let S be any set of bandit models of the family each having a unique optimal arm, and put Alt(μ)={λ∈S:a∗(λ)=a∗(μ)}.
A strategy consists of a sampling ruleπ (the arm At drawn at round t depends, possibly with extra randomization, on the first t−1 observations), a stopping timeτ of the natural filtration Ft=σ(A1,X1,…,At,Xt), and an Fτ-measurable decisiona^τ. It is δ-PAC on S if for every μ∈S, Pμ(τ<∞)=1 and Pμ(a^τ=a∗(μ))≤δ. Na(t) is the number of draws of arm a among the first t rounds.
Write d(μa,λa)=KL(νθa,νλa) for the divergence between two arm laws, kl(x,y)=xlogyx+(1−x)log1−y1−x, and ΣK for the probability simplex on the K arms. The characteristic time is defined by eq. (1):
T∗(μ)−1=w∈ΣKsupλ∈Alt(μ)infa=1∑Kwad(μa,λa).
Formalization targets
Goal: Theorem 1 (p. 3)
For δ∈(0,1/2], every δ-PAC strategy on S and every μ∈S,
Eμ[τ]≥T∗(μ)kl(δ,1−δ).
The statement fixes no constant beyond those of the paper, and it holds for every δ, not only in the limit.
Milestone: eq. (2) (p. 4)
For every λ∈S with a∗(λ)=a∗(μ),
a=1∑Kd(μa,λa)Eμ[Na(τ)]≥kl(δ,1−δ).
This is Lemma 1 of Kaufmann et al. (2016), which the paper quotes without proof; Theorem 1 follows from it for every alternative simultaneously.
Significance
Theorem 1 identifies T∗(μ) as the exact problem-dependent complexity of fixed-confidence best arm identification: since kl(δ,1−δ)∼log(1/δ), it gives liminfδ→0Eμ[τδ]/log(1/δ)≥T∗(μ), and the paper's Track-and-Stop strategy attains this rate (the subject of mission IV of this series). The bound also explains which proportions of draws an optimal strategy must use: the maximizer w∗(μ) of eq. (1) (mission II).
Both results are proved in the literature. Neither is formalized in the paper's generality. The platform holds the textbook form of Lattimore and Szepesvári (Theorem 33.5), which is stated for an arbitrary class with the weaker constant log(1/(4δ)); for δ≤1/2, kl(δ,1−δ)≥log(1/(2.4δ))>log(1/(4δ)), so Theorem 1 is strictly stronger. A formal proof here yields the transportation lemma for exponential families on the platform's infinite-horizon bandit model, which later missions (II–IV, and any lower bound by change of measure) can reuse.
Difficulty
The obvious proof applies the finite-horizon divergence decomposition KL(Pμn,Pλn)=∑aEμ[Na(n)]d(μa,λa) at a deterministic horizon n. That fails here: τ is random and unbounded, the decision is Fτ-measurable, and the relevant divergence is between the laws of the stopped observations. The step from a fixed horizon to a stopping time, together with the data-processing inequality that turns the error guarantees under two models into kl(δ,1−δ), is the central difficulty. A second, smaller difficulty is to identify the paper's divergence d and its means b˙(θ) with the measure-theoretic KL divergence and mean of the arm laws of the exponential family.
Formalization scope
Lean namespace OptimalBAI.LowerBound. The bandit protocol is the platform's (BanditAlgorithm.BanditPolicy, banditTrajMeasure, IsBanditStoppingTime, IsSoundBAI, baiComplexity); kl is the platform's bernoulliRelativeEntropy and Na(t) is trajPullCount. Conventions:
arms are Fin K, 0-based (the paper's arm a is index a−1); trajectory coordinate t is round t+1;
Θ is a nonempty open interval and b¨>0 on Θ (added: the paper says b is convex and twice differentiable; strict convexity is what makes "the unique distribution with mean μ" meaningful); the paper's d is written as the KL divergence of the arm laws (its first equality on p. 3), and the unique optimal arm is defined through the parameter means b˙(θa);
S is an arbitrary set of models with a unique optimal arm, not the specific set the paper fixes from p. 4 on;
δ-PAC keeps both halves of the paper's definition (almost-sure stopping and error at most δ);
T∗(μ), divergences and expectations of τ take values in [0,∞], never truncated to reals; T∗=0 when Alt(μ)=∅ and T∗=∞ when the supremum in eq. (1) is 0;
δ≤1/2 is added. The paper states δ∈(0,1), but the theorem and eq. (2) are false for δ∈(1/2,1): with two unit-variance Gaussian arms, drawing arm 1 once and naming arm 1 exactly when the fractional part of the reward is below 1/2 is 0.9-PAC, while T∗(μ)→∞ as the two means merge. At δ=1/2 the bound is 0.
A statement with log(1/(4δ)) in place of kl(δ,1−δ), or restricted to Gaussian arms, is the platform's existing textbook theorem and does not count as this mission's goal; nor does any version that drops the almost-sure stopping clause or truncates E[τ] or T∗ to real numbers.
Needed infrastructure: the transportation lemma at a stopping time (data processing for KL through an Fτ-measurable event, Wald-type identity for the stopped log-likelihood ratio), the identities "mean of νθ=b˙(θ)" and "KL of two family members =b(θ′)−b(θ)−b˙(θ)(θ′−θ)", and E[τ]=∑aE[Na(τ)]. All are reusable beyond this mission. Contributions of any of these lemmas, of eq. (2) alone, or of the Gaussian and Bernoulli special cases as stepping stones are welcome.
Selected references
A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016 (JMLR W&CP 49), arXiv:1602.04589v2. https://arxiv.org/abs/1602.04589
E. Kaufmann, O. Cappé, A. Garivier, On the Complexity of Best-Arm Identification in Multi-Armed Bandit Models, Journal of Machine Learning Research 17(1), 2016. https://arxiv.org/abs/1407.4443
T. L. Graves, T. L. Lai, Asymptotically Efficient Adaptive Choice of Control Laws in Controlled Markov Chains, SIAM Journal on Control and Optimization 35(3), 1997. https://doi.org/10.1137/S0363012994275440
S. Mannor, J. N. Tsitsiklis, The Sample Complexity of Exploration in the Multi-Armed Bandit Problem, Journal of Machine Learning Research 5, 2004. https://www.jmlr.org/papers/v5/mannor04b.html
Chapter 2's tail bounds mostly rest on moment-generating-function control, obtained either
directly (sub-Gaussianity) or through explicit combinatorial arguments (Hoeffding, bounded
differences). The entropic method offers a different, more structural route: bound a
specific information-theoretic quantity — the φ-entropy of eλX — and convert
that bound mechanically into a tail bound via a short ODE argument (the Herbst argument). This
method's real payoff appears once it is combined with the tensorization property of entropy
across independent coordinates, which is what lets it handle Lipschitz functions of many
independent variables — including cases, such as separately convex functions, that elude the
purely martingale-based techniques of Chapter 2. This mission formalizes the entropic method's
two foundational entropy-to-tail conversions and its central Lipschitz-concentration
application, following Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint
(Cambridge University Press, 2019), Chapter 3.
Setting
For φ(u):=ulogu (u>0), φ(0):=0, the φ-entropy of a nonnegative
random variable Z is H(Z):=E[ZlogZ]−E[Z]logE[Z] (Eqs. (3.1)-(3.2)).
Writing φX(λ):=E[eλX] for the moment generating function of X,
the entropy of eλX has the explicit form H(eλX)=λφX′(λ)−φX(λ)logφX(λ) (Eq. (3.3)).
A function f:Rn→R is separately convex if, for each coordinate k, the
univariate function obtained by fixing every coordinate but the k-th is convex — strictly
weaker than joint convexity of f itself. f is L-Lipschitz with respect to the Euclidean
norm if ∣f(x)−f(x′)∣≤L∥x−x′∥2 for all x,x′.
Let {Xi}i=1n be independent, each supported on [a,b], and f separately convex and
L-Lipschitz. Then for all δ>0,
P[f(X)≥E[f(X)]+δ]≤exp(−4L2(b−a)2δ2).
Milestone — Proposition 3.2 (the Herbst argument)
If H(eλX)≤21σ2λ2φX(λ) for all λ∈I
(I=[0,∞) or R), then logE[eλ(X−E[X])]≤21λ2σ2 for all λ∈I — the basic entropy-to-sub-Gaussian-tail
conversion.
Milestone — Proposition 3.3 (the Bernstein entropy bound)
The sub-exponential analogue: if H(eλX)≤λ2{bφX′(λ)+φX(λ)(σ2−bE[X])} for λ∈[0,1/b), then logE[eλ(X−E[X])]≤σ2λ2(1−bλ)−1 on the same range.
Significance
Propositions 3.2 and 3.3 are the two basic entropy-to-tail conversions the entire chapter's
entropic method rests on — every subsequent Lipschitz-concentration result in the chapter
(including Theorem 3.4 and the more advanced Theorem 3.24) is obtained by first establishing an
entropy bound of one of these two forms and then invoking the corresponding proposition.
Theorem 3.4 is itself the direct analogue, for independent bounded variables, of Chapter 2's
Gaussian Lipschitz concentration (Theorem 2.26) — but crucially requires the extra hypothesis of
separate convexity, which the Gaussian case does not need and which cannot be dropped in
general.
Formalizing it. No faithful prior art exists on the platform. The one candidate flagged in
BRIEF.md, Talagrand.lipschitz_concentration, was read in full: it is a weighted-Hamming-
distance concentration bound for functions on a finite-alphabet product spaceFin n → α,
proved via Talagrand's convex-distance method — a different underlying space (finite alphabet
vs. real-valued bounded coordinates) and a different Lipschitz norm (weighted Hamming vs.
Euclidean) from Theorem 3.4, and not reused here. A search for "log-Sobolev" and "Herbst" turned
up bousquet_herbst_cgf_le_phi_via_herbst/bousquet_herbst_cgf_le_phi_double_integration: these
are abstract calculus lemmas about a generic function G satisfying an ODE-type growth
condition (G′′≤vex), concluding G(L)≤v(eL−1−L) — a genuinely different statement
shape from Proposition 3.2/3.3's entropy-to-CGF conversions (which conclude a quadratic, not
exponential, bound on logE[eλ(X−EX)]), and not a faithful match. All
three theorems here are drafted as open goals (:= by sorry).
Difficulty
The naive approach to Theorem 3.4 — try to adapt the bounded-differences (martingale) method of
Chapter 2 directly — fails, because the bounded-differences method needs f to have small
coordinatewise oscillation in an absolute sense, while separate convexity alone gives no such
uniform bound (a separately convex function can vary arbitrarily fast within the interior of its
domain, only its slope is controlled by the Lipschitz condition). The entropic method
sidesteps this by working with the φ-entropy of eλf(X) directly: entropy has
a tensorization property across independent coordinates (not itself part of this mission, but
what the entropic method's proof of Theorem 3.4 uses) that reduces a multivariate entropy bound
to a sum of "one coordinate at a time" contributions, each of which convexity and the Lipschitz
condition jointly control — a route with no analogue in the bounded-differences approach.
Formalization scope
Separate convexity and Euclidean-Lipschitzness are both restated locally in this chapter's own
sub-namespace (HighDimStat.Concentration), per this book series' rule against importing
another chapter's draft definitions, even though Chapter 2 already defines an
IsLLipschitz for the same Euclidean condition. φ_X'(\lambda)$ (Proposition 3.3) is realized via Mathlib's deriv, a legitimate way to state a hypothesis on a derivative without separately proving differentiability, appropriate at the draft-statement stage. Explicit Integrable`
hypotheses guard the Bochner integral's junk value on non-integrable functions throughout (trap
2), not literal in the book's own propositions but implied by what "the entropy H(eλX) exists" (an explicit qualifier the book itself makes when introducing Eq. (3.2)) means.
Goal substitution, disclosed.BRIEF.md recommends Theorem 3.24 (the two-sided, jointly
convex analogue) as the primary goal, but explicitly names Theorem 3.4 as a fallback "if 3.24's
dependence on the unnumbered transportation-cost inequality (Eq. 3.73, attributed to Samson)
proves too heavy to state faithfully in the time available." Theorem 3.24's proof route depends
on Theorem 3.19 (a general "transportation cost implies concentration" result for an abstract
metric measure space, itself needing a from-scratch formalization of the transportation-cost
inequality (3.58) and the concentration function αP,(X,ρ)) plus the
unproven-in-chapter Eq. (3.73). Building this full stack faithfully was judged to exceed this
chunk's time budget; Theorem 3.4 is drafted instead, using this mission's own budget on
Propositions 3.2 and 3.3 (the two most load-bearing entropy-to-tail conversions of the chapter)
rather than the heavier transportation-cost machinery. Theorem 3.19, Theorem 3.24, and Eq.
(3.73) are all out of scope for this mission and named here as natural follow-on work.
Selected references
M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge
University Press, 2019. DOI: 10.1017/9781108627771.
Chapter 3.
M. Ledoux, The Concentration of Measure Phenomenon, American Mathematical Society, 2001.
I. Herbst, unpublished (the argument bearing his name is attributed in Ledoux (2001) and
standard references on log-Sobolev inequalities).
Variance-based Regularization with Convex Objectives III: Localized-Rademacher Risk Bounds for the Robust MinimizerResearch Paper
Why variance-regularized risk bounds
In statistical learning, one picks a function f from a class F to make the population risk E[f] small, with access only to an i.i.d. sample x1,…,xn from an unknown distribution P. Empirical risk minimization replaces E[f] by the empirical mean EPn[f], and its classical guarantees decay like 1/n regardless of how concentrated f is. Bernstein-type inequalities show that the deviation of EPn[f] from E[f] scales with the standard deviation of f, so a procedure that minimizes "empirical risk plus a standard-deviation penalty" can, in principle, achieve faster rates when the variance at the optimum is small (Maurer and Pontil, 2009). The penalized objective is non-convex even when every f is convex in its parameters, which makes it hard to optimize.
J. C. Duchi and H. Namkoong (arXiv:1610.02581v3, 2017) replace the penalty by a distributionally robust objective: the worst-case risk over all reweightings of the sample within a χ2-divergence ball. This objective is convex whenever the losses are, and (Theorem 1 of the paper) it equals the empirical mean plus a standard-deviation penalty up to an error of order 1/n. This mission formalizes the paper's guarantee for the minimizer of that robust objective in terms of localized Rademacher complexities (Section 3.2, Theorem 4), the sharpest of the paper's three generalization analyses. It is the third of four missions on the paper.
Setting
Let P be a probability measure on a measurable space X and x1,…,xn, n≥1, an i.i.d. sample from P with empirical distribution Pn. Let M≥1 and let F be a collection of measurable functions f:X→[0,M] (losses).
The χ2 ball of radius ρ≥0 is the set Pn of weight vectors p∈Rn with pi≥0, ∑ipi=1 and 21∑i(npi−1)2≤ρ; equivalently, the distributions P on the sample with Dϕ(P∥Pn)≤ρ/n for ϕ(t)=21(t−1)2.
The robust risk of f is supP:Dϕ(P∥Pn)≤ρ/nEP[f]=supp∈Pn∑ipif(xi), and a robust minimizerf minimizes it over F.
The empirical Rademacher complexity is Rn(F)=Eε[supf∈Fn1∑iεif(xi)] with i.i.d. uniform signs εi∈{−1,1}, and E[Rn(F)] averages it over the sample.
A function ψ:R+→R+ is sub-root if it is nonnegative, nondecreasing, and r↦ψ(r)/r is nonincreasing on r>0.
The localization inequality (20) asks that, for all r≥0,
ψn(r)≥E[Rn({cf:f∈F,c∈[0,1],E[c2f2]≤r})],
with ψn sub-root, and rn⋆>0 is a point with rn⋆≥ψn(rn⋆).
Formalization targets
Goal: Theorem 4, inequality (23), as its proof establishes it
Let 0<t<n and let ρ satisfy (21): nρ≥8(n45M(t+log⌈logtn⌉)+18rn⋆). With probability at least 1−4e−t, every robust minimizer f satisfies
In attack order: Bousquet's form of Talagrand's inequality (Lemma B.2); the elementary root bound (Lemma D.4); the contraction principle (Lemma D.5, a published theorem); the uniform Bernstein inequality with Rademacher complexity (Lemma D.1); its localized version in terms of rn⋆ (Lemma D.2); localized second-moment bounds (Lemma D.3); the deterministic expansion (10) of Theorem 1,
The bound (23) says that the robust minimizer competes with the best trade-off between risk and standard deviation in the class, and that the complexity of the class enters only through the fixed point rn⋆ of a localized complexity bound. For bounded VC classes rn⋆ is of order ndlog(n/d) (Bartlett, Bousquet and Mendelson, 2005, Corollary 3.7), so when the optimal function has small variance the excess risk is of order ρ/n, faster than the 1/n of uniform covering arguments; and localized complexities apply to classes, such as balls of reproducing kernel Hilbert spaces, whose covering numbers are too large for the covering-number analysis of the paper's Theorem 3 (mission II of this series).
The paper's result is proved, not open. No part of it, and none of the localized-complexity machinery of Bartlett, Bousquet and Mendelson, is formalized in Lean or Mathlib to our knowledge. The mission produces a checked version of the theorem with every constant explicit and, along the way, the localization lemmas D.1–D.3, which are reusable for any localized-complexity analysis. Reading the proof also exposed three arithmetic slips in the printed statements; the mission states what the proof establishes (see Formalization scope).
Difficulty
The obvious route applies a uniform concentration inequality to F and then a Bernstein bound to each f. Talagrand's inequality applied to the whole class gives a deviation governed by the largest variance in the class and by the global complexity E[Rn(F)], which yields only 1/n rates. Obtaining a deviation that scales with each function's own second moment requires peeling the class into shells of comparable second moment and a fixed-point argument on the sub-root bound, with a union bound whose cost appears as log⌈logtn⌉. The two directions of the localized inequalities (population to sample, and sample to population for second moments) must then be combined with the deterministic expansion (10) while keeping the constants explicit. A further subtlety is the self-normalized rescaling f↦r/(E[f2]∨r)f, which differs from the variance normalization of Bartlett et al. and is what makes the bound compatible with the robust objective.
Formalization scope
Lean conventions. The sample is the coordinate map of the product measure Pn on Fin n → X. Distributions on the sample are weight vectors in the χ2 ball; the robust risk is the real supremum over that ball (attained, since the ball is nonempty and compact for n≥1, ρ≥0). Population means and variances are ∫ x, f x ∂P and ProbabilityTheory.variance f P for measurable bounded f; empirical means and variances are normalized by 1/n. The empirical Rademacher complexity is the published UnderstandingML_Rademacher definition evaluated on {(f(x1),…,f(xn))}. Its expectation is a Bochner integral, and every hypothesis that bounds it also asserts that the integrand is integrable: otherwise the integral is 0, (20) would hold for free, and the theorem would be false. Probability bounds are stated for the failure event under Pn (an outer measure when the event is not measurable). The goal speaks about every minimizer of the robust risk, so it is not vacuous when the set of minimizers is empty. The condition rn⋆>0 is part of the page's "root" (and the proof divides by rn⋆); with rn⋆=0 allowed, ψ(r)=r would remove the complexity term from (21). The condition t<n makes log⌈logtn⌉ defined.
Corrections of printed statements, each recorded in the item's docstring and Formalization Note (the milestone texts stay verbatim):
(22) is stated with probability 1−2e−t; the paper prints 1−e−t, and its proof (p. 41) concludes 1−2e−t.
(23) is stated with probability 1−4e−t (printed 1−3e−t; the proof adds two fixed-f events to the two of (22)) and with 45n182ρ (printed 45n91ρ; the proof's step ρ+t≤91ρ/45 multiplies 2Var(f)/n).
Lemma D.3 is stated with the additive term 72M2(1+η)rn⋆+(4(1+η)+314)nM2t and, in the reversed direction, the coefficient 1+1+η1, as its proof yields (printed: nMt(4+37M) and 1+1+ηη), under Theorem 4's standing hypothesis M≥1.
Lemma D.5 is linked to the published contraction lemma UnderstandingML.contraction_lemma, which states it at a fixed sample for nonempty bounded classes and allows a different Lipschitz map per coordinate.
Contributions welcome: proofs of the milestones in any order; Lemma B.2 (Bousquet's inequality) is the deepest single ingredient and is reusable well beyond this mission, as are the peeling Lemma D.1 and the sub-root fixed-point Lemma D.2.
Selected references
J. C. Duchi and H. Namkoong, Variance-based regularization with convex objectives, arXiv:1610.02581v3, 2017. https://arxiv.org/abs/1610.02581
O. Bousquet, A Bennett concentration inequality and its application to suprema of empirical processes, Comptes Rendus Mathématique 334(6), 2002. https://doi.org/10.1016/S1631-073X(02)02292-6
A. Maurer and M. Pontil, Empirical Bernstein bounds and sample variance penalization, COLT 2009. https://arxiv.org/abs/0907.3740
Optimal Best Arm Identification with Fixed Confidence III: δ-PAC Guarantee of Chernoff's Stopping Rule for Bernoulli BanditsResearch Paper
Motivation
In best arm identification with fixed confidence, a learner samples K unknown distributions ("arms") one at a time, and must eventually stop and name the arm with the largest mean, with an error probability at most a prescribed risk δ, while using as few samples as possible. The problem goes back to the sequential design of experiments (Chernoff, 1959; Even-Dar, Mannor and Mansour, 2006) and underlies adaptive A/B testing, clinical trial design and hyperparameter selection.
Any fixed-confidence strategy consists of three parts: a sampling rule, a stopping rule and a decision rule. Garivier and Kaufmann (arXiv:1602.04589, COLT 2016) proposed the Track-and-Stop strategy, the first shown to match the asymptotic lower bound on the expected sample complexity. Its stopping rule is a generalized likelihood ratio (GLR) test, Chernoff's stopping rule. Its correctness, the guarantee that the recommended arm is wrong with probability at most δ, must hold whatever the sampling rule, which is what allows the sampling rule to be tuned freely for efficiency. This mission formalizes that guarantee for Bernoulli arms, Theorem 10 of the paper, with its explicit threshold β(t,δ)=log(2t(K−1)/δ).
Setting
The arms are A={1,…,K}. A Bernoulli bandit model is a mean vector μ=(μ1,…,μK)∈[0,1]K: pulling arm a returns reward 1 with probability μa and 0 otherwise, independently of the past. The class S contains the models with a unique optimal arma∗(μ), i.e. μa∗>μi for all i=a∗.
At round t the learner chooses an arm At as a (possibly randomized) function of the past observations and observes a reward Xt. Write Na(t) for the number of pulls of arm a among the first t rounds, sa(t) for the number of those pulls that returned 1, and μ^a(t)=Na(t)−1∑s≤tXs1{As=a} for the empirical mean. The likelihood of arm a's observations under mean u is pu(XNa(t)a)=usa(t)(1−u)Na(t)−sa(t).
The GLR statistic for "arm a is at least as good as arm b" is
Chernoff's stopping rule with exploration rateβ(t,δ) is
τδ=inf{t≥1:∃a∈A,∀b=a,Za,b(t)>β(t,δ)},
and the decision rule recommends a^τδ∈argmaxaμ^a(τδ).
The Krichevsky–Trofimov (KT) distribution on binary sequences x∈{0,1}n is kt(x)=∫01(πu(1−u))−1pu(x)du, the Bernoulli likelihood mixed over the Beta(1/2,1/2) prior.
Formalization targets
Goal: Theorem 10
For every δ∈(0,1), every sampling strategy, and the threshold β(t,δ)=log(2t(K−1)/δ),
∀μ∈S,Pμ(τδ<∞,a^τδ=a∗)≤δ.
Milestone: Lemma 11 (Willems, Shtarkov and Tjalkens, 1995)
kt is a probability law on {0,1}n, and for n≥1,
x∈{0,1}nsupu∈[0,1]supkt(x)pu(x)≤2n.
Milestone: the pairwise crossing bound of Appendix C.1
With Ta,b=inf{t:Za,b(t)>β(t,δ)}, for all arms with μa<μb,
Pμ(Ta,b<∞)≤K−1δ.
Significance
Theorem 10 decouples correctness from efficiency. Because the guarantee holds for every sampling strategy, any sampling rule, including the C-Tracking and D-Tracking rules of Track-and-Stop, the uniform rule, or a heuristic, inherits δ-correctness as soon as it is paired with Chernoff's stopping rule at this threshold. The asymptotic optimality result of the paper (Theorem 14) then only has to control the sample complexity. The threshold is explicit, with no unspecified constant, in contrast to the deviational threshold of Proposition 12.
The result is proved in the paper, in Appendix C.1, and rests on Lemma 11, which the paper quotes from the universal coding literature without proof. As far as the platform's catalog shows, none of these results is formalized. The platform holds a machine-checkable statement of the analogous result for Gaussian arms with the Lattimore–Szepesvári threshold (BanditAlgorithm.chernoff_stopping_rule_sound, Lemma 33.7 of Bandit Algorithms), which is a different model and a different threshold. Formalizing Theorem 10 adds a proof of Lemma 11 (the KT regret bound, reusable in information theory and universal prediction), the Bernoulli GLR statistic, and a change of measure from the true bandit law to a Bayesian mixture law on the trajectory space.
Difficulty
The obvious approach bounds, for each fixed t, the probability that Za,b(t) exceeds β(t,δ) by a concentration inequality and sums over t. This fails: the sampling strategy is arbitrary and adaptive, so Na(t) and Nb(t) are random and depend on the past rewards, and a fixed-sample-size deviation bound does not apply; a union bound over the possible values of the counts loses more than the threshold allows. The maximum likelihood in the numerator of Za,b is also not a probability density, so the likelihood ratio cannot directly be read as a change of measure. The argument must control the whole trajectory law under an arbitrary randomized policy, and must handle empty samples (an arm never pulled contributes likelihood 1) and the boundary means 0 and 1.
Formalization scope
The formalization is in Lean 4 with Mathlib and reuses the platform's canonical bandit model: StochasticBandit, BanditPolicy (a Markov kernel per round from the observed history to the next arm, so randomized strategies are included), banditTrajMeasure (the law of the infinite trajectory, where coordinate s is round s+1) and IsSoundBAI from BanditTrajectory; bernoulliBandit from bernoulliRelativeEntropy; and only the pull counts trajPullCount and empirical means trajEmpiricalMean from TrackAndStop. The Gaussian GLR and threshold of TrackAndStop are not used.
Conventions committed to:
Arms are Fin K. Bernoulli means range over [0,1], degenerate laws included; the paper's exponential-family mean space is (0,1), so the [0,1] statement implies the paper's.
Za,b(t) is defined as the ratio of the two maxima over [0,1]2, not by the closed form (7), which holds only when μ^a(t)≥μ^b(t). Both maxima are attained and positive.
The stopping rule ranges over t≥1; at t=0 there is no observation and the paper's β(0,δ)=log0 is undefined. τδ=∞ when the rule never fires.
The decision rule is quantified: the goal holds for every recommendation that maximizes the empirical mean at τδ, whatever the tie-breaking.
Probabilities of events are outer measures under the trajectory law; no measurability is assumed.
K≥1 only. For K=1 the statement is trivially true (no suboptimal arm).
Disclosed deviations from the page: Lemma 11's ratio bound is stated for n≥1, since at n=0 the printed bound reads 1≤0; the use of the lemma in Appendix C.1 is unaffected. Appendix C.1 calls the result "Proposition 10" (a slip for Theorem 10) and prints the KT density as 1/πu(1−u) (a slip for 1/(πu(1−u)) of Lemma 11, which is the normalized one); the formalization follows Lemma 11.
A trivializing formalization is ruled out: stating the result for Gaussian arms or with the Lattimore–Szepesvári threshold is the platform's existing Lemma 33.7 and is not Theorem 10, and a free decision rule without the argmax hypothesis would make the claim false rather than faithful.
Contributions welcome: a proof of Lemma 11; a change-of-measure lemma for banditTrajMeasure under a mixture of environments; and the union-bound reduction from the goal to the pairwise claim.
Selected references
A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016 (JMLR W&CP 49), arXiv:1602.04589v2, 2016. https://arxiv.org/abs/1602.04589
F. M. J. Willems, Y. M. Shtarkov, T. J. Tjalkens, The context-tree weighting method: basic properties, IEEE Transactions on Information Theory 41(3), 1995. https://doi.org/10.1109/18.382012
R. Krichevsky, V. Trofimov, The performance of universal encoding, IEEE Transactions on Information Theory 27(2), 1981. https://doi.org/10.1109/TIT.1981.1056331
A Distributional Interpretation of Robust Optimization II: Box-Robust Sample Average Optimization Is ConsistentResearch Paper
Why robustify a sampled stochastic program
Many decision problems under uncertainty take the form of a stochastic program: choose a decision v from a feasible set F to maximise the expected utility Ex∼μ[f(v,x)], where the distribution μ of the uncertain parameter x∈Rm is known only through i.i.d. samples x1,…,xn. The standard remedy, sample average approximation, maximises n1∑if(v,xi) instead. Its consistency (convergence of the optimal expected utility of its solutions to the true optimum) is classical, but it needs regularity assumptions of its own, for example those of King and Wets (Stochastics and Stochastic Reports, 1991), cited on p. 98 of the paper; the paper presents its construction as a route to consistency under weaker conditions.
Robust optimization (RO) takes a different route: it protects each sample by an uncertainty set and optimises against the worst point in it. Xu, Caramanis and Mannor (Math. Oper. Res. 2012) show that RO over several overlapping uncertainty sets is equivalent to a distributionally robust stochastic program (their Theorem 2.1, the subject of mission I of this series). Section 3 of the paper uses that equivalence to show that a specific robustification of the sampled problem, with ℓ∞ boxes of shrinking radius around each sample, is consistent under only boundedness and equicontinuity of f. This mission formalizes that result, Theorem 3.1.
Setting
Equip Rm with the sup norm ∥z∥∞=maxk∣zk∣, its Borel σ-algebra and Lebesgue measure dx. The data are:
a set of decisions V and a nonempty feasible setF⊆V;
a utilityf:V×Rm→R, Borel measurable in x for each v;
a true densityh∗ on Rm (nonnegative, ∫h∗dx=1) and i.i.d. samples x1,x2,… with distribution h∗(x)dx;
radiiϵ(n)>0.
For a sample x1,…,xn the boxes are Zi={xi+δ∣∥δ∥∞≤ϵ(n)}, and the box-robust sample objective is
The RO solution v(n) is a maximiser of Jn over F. The equicontinuity modulus of f is
d(ϵ)=v,x,∥δ∥∞≤ϵsup∣f(v,x)−f(v,x+δ)∣.
The proof works with the distribution setPn of probability measures μ with μ(⋃i∈SZi)≥∣S∣/n for every S⊆{1,…,n}, and with the uniform box kernel density estimator
hn is the density of a probability measure in Pn.
Jn(v)≤∫f(v,x)hn(x)dx for every v.
Oscillation over a box: supZif(v,⋅)−infZif(v,⋅)≤d(2ϵ(n)).
Eq. (7): with Mn=C∫∣hn−h∗∣dx, for every v,
Jn(v)−Mn≤∫f(v,x)h∗(x)dx≤Jn(v)+Mn+d(2ϵ(n)).
Strong L1 consistency of the box kernel density estimator: if ϵ(n)→0 and nϵ(n)m→∞, then ∫∣hn−h∗∣dx→0 almost surely.
Milestones 1–4 are deterministic statements about a fixed sample; milestone 5 is the only probabilistic input.
Significance
Theorem 3.1 gives consistency of a tractable robust reformulation of a sampled stochastic program under conditions the paper notes are weaker than those of King and Wets for sampled stochastic programs: f need only be bounded and equicontinuous in x, uniformly in v, and the true distribution need only have a density. It also gives an explicit schedule for the size of the uncertainty set, ϵ(n)→0 with nϵ(n)m→∞, the bandwidth condition of kernel density estimation. Section 4 of the paper applies the same distributional interpretation to regularised learning methods such as the support vector machine and the Lasso.
The result is proved in the paper, with the L1 consistency of kernel density estimators (Devroye 1983; Devroye and Györfi 1985) cited rather than proved. No part of it is formalized in Lean or on this platform as far as a search of the platform found. A complete development would produce, besides Theorem 3.1, a machine-checked strong L1 consistency theorem for kernel density estimators, which is a basic result of nonparametric statistics in its own right.
Difficulty
The deterministic part (milestones 1–4) is measure-theoretic bookkeeping: the kernel integrates to one only because the box is a sup-norm ball of volume (2ϵ)m, and every infimum and supremum must be handled with care, since f need not attain them.
The obstacle is milestone 5. Almost-sure L1 convergence of hn to an arbitrary density h∗, with no continuity or support assumption, does not follow from the strong law of large numbers applied pointwise: hn(x) is an average of n terms whose law changes with n through ϵ(n), and almost-sure convergence at each fixed x does not give convergence of the integral along a single sample path. The theorem needs both a bias estimate valid for every integrable density and a concentration estimate for the random L1 error. Mathlib has Lebesgue differentiation and the strong law, but no kernel density estimator and no such concentration result.
Formalization scope
Rm is Fin m → ℝ, whose Mathlib norm is the sup norm; boxes are Metric.closedBall. The integrals ∫f(v,x)h∗(x)dx are Bochner integrals against Lebesgue measure of integrable integrands.
The samples are a sequence X : ℕ → Ω → Fin m → ℝ on a probability space, independent (iIndepFun) and each with law volume.withDensity h*; x1,x2,… become X 0, X 1, …, and the n-th problem uses the first n. "With probability one" is ∀ᵐ ω ∂P.
The goal quantifies over every selection v(n) of maximisers, with no measurability assumed; a version with one chosen maximiser would be weaker and is ruled out.
Readings and corrections of the printed text:
the kernel argument printed (x−xi)/ϵ on p. 98 is read as (x−xi)/ϵ(n), as the proof on p. 99 writes it;
"maxv,x∣f(v,x)∣≤C" is read as the uniform bound ∣f∣≤C and the "max" in d(ϵ) as a supremum;
"d(ϵ)↓0" is read as d(ϵ)→0 as ϵ↓0;
implicit hypotheses made explicit: F=∅, ϵ(n)>0, measurability of f(v,⋅), h∗ a Lebesgue density;
the monotonicity in "ϵ(n)↓0, nϵ(n)m↑∞" is kept in the goal; milestone 5 uses the limits only, as the paper states it;
the paper's Mn ("there exists {Mn}→0") is made explicit as Mn=C∫∣hn−h∗∣, so Eq. (7) is stated for every sample.
Remark 3.2 and Appendix B (an integrable envelope in place of boundedness) are not part of this mission.
Every real infimum and supremum ranges over a nonempty set of values bounded by C in absolute value, so no statement holds through a junk value; a formalization in which the supremum over F or the box infimum could be vacuous is excluded.
The definitions (boxes, Pn, the kernel, the estimator, Jn, d) live in one definition file. Pn duplicates, with weights 1/n, the distribution set of mission I; the duplication is deliberate because draft missions cannot import each other.
Welcome contributions: the kernel density estimator and its strong L1 consistency as reusable infrastructure, and any of the deterministic milestones.
Selected references
H. Xu, C. Caramanis, S. Mannor, A Distributional Interpretation of Robust Optimization, Mathematics of Operations Research 37(1):95–110, 2012. https://doi.org/10.1287/moor.1110.0531
L. Devroye, The equivalence of weak, strong and complete convergence in L1 for kernel density estimates, Annals of Statistics 11(3):896–904, 1983.
L. Devroye, L. Györfi, Nonparametric Density Estimation: The L1 View, Wiley, 1985.
A. J. King, R. J.-B. Wets, Epi-consistency of convex stochastic programs, Stochastics and Stochastic Reports 34(1), 1991 (reference [22] of the paper).
Learnability, Stability and Uniform Convergence III: For an ERM, Leave-One-Out Stability, Universal Consistency and Universal Generalization Are EquivalentResearch Paper
Motivation
Algorithmic stability asks how much the output of a learning algorithm changes when its training sample is perturbed. Since Devroye and Wagner (IEEE Trans. Inf. Theory 1979) it has served as a route to generalization bounds that does not go through the complexity of the hypothesis class. Bousquet and Elisseeff (JMLR 2002) popularised uniform stability, and Mukherjee, Niyogi, Poggio and Rifkin (Adv. Comput. Math. 2006) showed that for empirical risk minimisation in supervised learning, a leave-one-out type of stability is necessary and sufficient for consistency.
Shalev-Shwartz, Shamir, Srebro and Sridharan (JMLR 11, 2010) study stability in Vapnik's General Learning Setting, where uniform convergence can fail even though the problem is learnable. In Appendix A.2 they compare replace-one and leave-one-out (LOO) stability. For an empirical risk minimiser they prove that LOO stability is equivalent to consistency and to generalization, provided each property holds with one rate for all distributions (Theorem 31, p. 2667). This mission formalizes that theorem and the lemmas of Section 5.3 on which its proof rests.
Timeline:
1979, Devroye–Wagner: leave-one-out estimates for local rules.
2002, Kutin–Niyogi (UAI 2002): a taxonomy of stability notions.
2006, Mukherjee et al.: LOO stability characterises consistency of ERM in supervised learning.
2010, Shalev-Shwartz et al.: in the General Learning Setting, for ERMs, LOO stability, universal consistency and universal generalization are equivalent (Theorem 31). Universally consistent AERMs need not be LOO stable (Example 6).
Setting
A learning problem consists of an instance space Z with a σ-algebra, a nonempty hypothesis class H, and an objective f:H×Z→R with ∣f(h;z)∣≤B for all h,z. For a probability measure D on Z:
the risk is F(h)=Ez∼D[f(h;z)] and the optimal risk is F∗=infhF(h);
for a sample S=(z1,…,zm)∼Dm of m i.i.d. draws, the empirical risk is FS(h)=m1∑if(h;zi), and FS(h^S)=infhFS(h) denotes the minimal empirical risk;
a learning ruleA maps each sample of size m≥1 to a hypothesis A(S). It is an ERM if FS(A(S))=FS(h^S) for every sample. It is an AERM with rate εerm if E[FS(A(S))−FS(h^S)]≤εerm(m);
A is consistent with rate ε if ES∼Dm[F(A(S))−F∗]≤ε(m). It generalizes with rate ε if E[∣F(A(S))−FS(A(S))∣]≤ε(m), and it on-average generalizes if ∣E[F(A(S))−FS(A(S))]∣≤ε(m);
writing S∖i for S with zi removed, A is LOO stable with rate ε (Definition 29) if
Lemma 14: an AERM that on-average generalizes with rate εoag generalizes with rate εoag+2εerm+2B/m.
Lemma 15: under the same hypotheses the rule is consistent with rate εoag+εerm.
Lemma 16 (Main Converse Lemma): in a learnable problem, E∣FS(h^S)−F∗∣≤2εcons(m′)+2B/m+2Bm′2/m for 2≤m′≤m/2.
Lemma 17: Eq. (12), together with an AERM that is consistent, gives generalization with rate εemp+εerm+εcons.
First display of the proof of Theorem 31: a generalizing ERM is LOO stable with rate εgen(m−1).
Second display: a LOO stable ERM on-average generalizes on samples of size m−1 with rate εstable(m)+2B/m.
Significance
Theorem 31 shows that for exact ERMs, LOO stability is not only sufficient but necessary for consistency. It transfers the supervised-learning characterisation of Mukherjee et al. to the General Learning Setting, where uniform convergence is no longer available as an intermediate. The hypothesis is sharp in one direction: Example 6 of the paper gives a universally consistent AERM that is not LOO stable. The equivalence therefore depends on exact minimisation, and an asymptotic minimiser does not suffice.
The lemmas are useful on their own. Lemmas 14 and 15 are the standard bridges between on-average generalization, generalization and consistency. Lemma 16 says that the minimal empirical risk estimates F∗ consistently in every learnable problem, even when no ERM learns. Lemma 16 also underlies Theorem 7, the paper's main characterisation of learnability, which is the subject of mission I of this series.
The results are proved in the paper. As far as is known they have not been formalized in any proof assistant. The platform has the textbook side of this framework (Shalev-Shwartz and Ben-David, Understanding Machine Learning, Chapter 13). Those statements are in Rd and use a replace-one stability notion; they do not cover leave-one-out stability or the General Learning Setting.
Difficulty
The implications between stability and generalization change the sample size: S∖i has m−1 points, so a statement about the rule at size m has to be compared with the rule at size m−1 under the marginal law of the reduced sample. The step from universal consistency to generalization needs Lemma 16. That lemma estimates F∗ from a sample on which the ERM itself may be inconsistent, and it is the only place where universality of the consistency rate is used. Per-distribution consistency of an ERM does not imply generalization (Example 1 of the paper). An argument that fixes D throughout therefore cannot succeed.
Formalization scope
Samples are tuples S:Finm→Z with law Measure.pi (the i.i.d. product), and S∖i is Fin.removeNth i S. A learning rule is a family Am:Zm→H. Its value at m=0 is never used, and LOO stability is required only for m≥2. FS(h^S) is the infimum infhFS(h) and no minimiser is chosen. An ERM is a rule attaining this infimum at every sample. A rate is non-increasing on m≥1 and tends to 0. Universal properties are stated as "there exists ε with IsRate ε such that for every probability measure D …", with the rate chosen before the distribution. The bound B is any bound on ∣f∣; the paper's B is sup∣f∣, and all its rates increase with B.
Measurability is not discussed in the paper. The formalization assumes that each f(h;⋅) is measurable and that the rule is measurable in the sense that (S,z)↦f(Am(S);z) is jointly measurable. Lemmas 14–17 also assume that S↦infhFS(h) is measurable. For a measurable ERM this holds automatically, so Theorem 31 makes no such assumption. Without these assumptions Lean's integral of a non-measurable function is 0 and every rate bound would hold trivially. For the same reason Utility Lemma 13 assumes X,Y integrable. The ERM hypothesis of the goal must not be weakened to an AERM: the statement would then be false (Example 6).
One statement corrects the printed text. In the second display of the proof of Theorem 31 (p. 2668), the chain adds 2B/m and then drops it. The milestone states the bound the argument proves, εstable(m)+2B/m. The rate-free Theorem 31 is unaffected.
The development needs product measures, independence and variance bounds, all available in Mathlib, and the marginals of Measure.pi under removal of a coordinate. The definitions of risks, rules and stability notions can be reused by other stability results. Proofs of any milestone are welcome, and so are alternative proofs of the goal.
Selected references
S. Shalev-Shwartz, O. Shamir, N. Srebro, K. Sridharan, Learnability, Stability and Uniform Convergence, Journal of Machine Learning Research 11 (2010) 2635–2670. https://jmlr.org/papers/v11/shalev-shwartz10a.html
S. Mukherjee, P. Niyogi, T. Poggio, R. Rifkin, Learning theory: stability is sufficient for generalization and necessary and sufficient for consistency of empirical risk minimization, Advances in Computational Mathematics 25 (2006) 161–193. https://doi.org/10.1007/s10444-004-7634-z
S. Kutin, P. Niyogi, Almost-everywhere algorithmic stability and generalization error, UAI 2002. https://arxiv.org/abs/1301.0579
L. Devroye, T. Wagner, Distribution-free performance bounds for potential function rules, IEEE Transactions on Information Theory 25(5) (1979) 601–604. https://doi.org/10.1109/TIT.1979.1056087
Learnability, Stability and Uniform Convergence II: Tikhonov-Regularized ERM Learns Convex Lipschitz Stochastic Optimization in Hilbert Space with High ProbabilityResearch Paper
Motivation
Statistical learning theory asks when a rule that sees only an i.i.d. sample z1,…,zm from an unknown distribution D can return a hypothesis whose expected loss is close to the best possible. In supervised classification the classical answer is uniform convergence: learnability holds exactly when empirical risks converge to expected risks uniformly over the hypothesis class, and then empirical risk minimization (ERM) learns. Shalev-Shwartz, Shamir, Srebro and Sridharan (JMLR 11, 2010) showed that in Vapnik's broader General Learning Setting this picture breaks down. Their motivating example is stochastic convex optimization in a Hilbert space: minimizing an expected convex, Lipschitz objective over a bounded convex set from samples. This problem underlies regularized linear prediction, kernel methods and online-to-batch conversions, and the paper shows (§4.1) that in infinite dimension uniform convergence can fail and the plain empirical minimizer can fail to converge, while the problem is still learnable.
This mission formalizes the positive half of that example: Tikhonov-regularized ERM learns every such problem, with an explicit bound holding with probability 1−δ (Theorem 3, p. 2644), through the stability of strongly convex empirical minimization (Theorem 2).
Setting
Let Z be a measurable space of instances and E a real Hilbert space. A stochastic convex optimization problem consists of a nonempty, closed, convex, bounded set H⊆E and an objective f:E×Z→R such that for every z the map h↦f(h;z) is convex and L-Lipschitz on H, each f(h;⋅) is measurable, and ∣f(h;z)∣≤C on H×Z. For a distribution D on Z define the risk and optimal risk
F(h)=Ez∼D[f(h;z)],F∗=h∈HinfF(h),
and for a sample S=(z1,…,zm)∼Dm the empirical riskFS(h)=m1∑i=1mf(h;zi). A function g is λ-strongly convex on H if g−2λ∥⋅∥2 is convex there. The regularized empirical minimizer is
h^λ∈h∈Hargmin(FS(h)+2λ∥h∥2).(5)
For the general part, a learning ruleA maps samples to hypotheses; it is an AERM with rate εerm if E[FS(A(S))−infhFS(h)]≤εerm(m), consistent with rate εcons if E[F(A(S))−F∗]≤εcons(m), and uniform-RO stable with rate εstable if replacing any one sample point changes the loss at any test point by at most εstable(m) on average over the replaced index (Definition 4).
Formalization targets
Goal: Theorem 3
If ∥h∥≤B on H, L,B>0, δ∈(0,1), m≥1 and λ=16L2/(δB2m), then with probability at least 1−δ over S∼Dm
F(h^λ)−F∗≤4δmL2B2(1+δm8).
The constants are the paper's.
Milestones, in the order the proof uses them
Quadratic growth at a minimizer of a λ-strongly convex g: g(h′)−g(h)≥2λ∥h′−h∥2 (§4.2, p. 2644).
Eq. (6): if f(⋅;z) is λ-strongly convex and L-Lipschitz, empirical minimizers of S and of S(i) satisfy ∣f(h^S,z)−f(h^S(i),z)∣≤4L2/(λm) for all z (p. 2645).
Theorem 8: a uniform- or average-RO stable AERM is consistent with rate εstable+εerm and generalizes with rate εstable+2εerm+2C/m (p. 2649).
ES∼Dm[F(h^S)−F∗]≤4L2/(λm) for the strongly convex empirical minimizer (p. 2645).
Theorem 2: with probability 1−δ, F(h^S)−F∗≤4L2/(δλm) (p. 2644).
Theorem 2 applied to r(h;z)=2λ∥h∥2+f(h;z): with probability 1−δ, 2λ∥h^λ∥2+F(h^λ)≤infh(2λ∥h∥2+F(h))+4(L+λB)2/(δλm) (p. 2645).
Significance
The result. Theorem 3 shows that every convex, Lipschitz, bounded stochastic optimization problem over a bounded subset of a Hilbert space is learnable at rate O(LB/δm), with no dimension dependence and no uniform convergence. Together with the counterexamples of §4.1 it separates learnability from uniform convergence and from ERM, and it motivates the paper's general characterization: a problem is learnable if and only if it admits a uniform-RO stable asymptotic empirical risk minimizer (Theorem 7). Theorem 8 is the sufficiency half of that characterization and is reused wherever stability arguments give generalization bounds.
Formalizing it. The results are proved in the paper; to our knowledge none has a machine-checked proof. The closest platform material is the textbook treatment in Understanding Machine Learning, chapter 13 (Shalev-Shwartz and Ben-David): Corollary 13.9 (UnderstandingML.convex_lipschitz_bounded_learnable), Corollary 13.6 (rlm_lipschitz_stable) and Lemma 13.5 (strongly_convex_lemma). Those are stated in Rd, bound the risk in expectation, use the regularizer λ∥w∥2 over all of Rd, and have different constants; the present mission works in an arbitrary Hilbert space, over a constraint set H, with high-probability bounds and the paper's constants. Its definitions of learning rules, AERM, consistency and replace-one stability in the General Learning Setting are reusable by the other missions of this series.
Difficulty
The obvious route, bounding suph∈H∣F(h)−FS(h)∣, is unavailable: §4.1 exhibits problems of exactly this type in which that supremum stays bounded away from zero for every sample size. Any successful argument therefore has to rely on a property of the learning rule rather than of the class H, and the plain empirical minimizer does not have it: §4.1 shows it can stay a constant away from F∗ at every sample size. A second difficulty is purely formal: the regularization parameter λ depends on δ and m, so the regularized minimizer changes with them, and all expectations involve a data-dependent hypothesis in a possibly non-separable Hilbert space, where measurability is not automatic.
Formalization scope
Lean conventions, fixed for every item:
E is a real inner product space with CompleteSpace E, never assumed finite-dimensional; H is Hset : Set E, and all infima, suprema, strong convexity and Lipschitz conditions are taken on Hset only. F∗ is ⨅ h : Hset, F h.
Samples are Fin m → Z, Dm is Measure.pi, S(i) is Function.update S i z', and m≥1 throughout.
The paper's standing loss bound ∣f∣≤B (p. 2637) is named C, because Theorem 3 uses B for the norm bound ∥h∥≤B. L>0 and B>0 are implicit in Theorem 3's choice of λ and are stated.
Strong convexity is Mathlib's StrongConvexOn Hset λ, which is the paper's definition.
Minimizers are selections S↦h^S∈H satisfying the minimization property; the theorems hold for every such selection, hence for the minimizer, which is unique by strong convexity.
Measurability, not discussed in the paper, is the series' single standing convention: each f(h;⋅) is measurable and the selection makes (S,z)↦f(h^S;z) jointly measurable; for Theorem 8, the rule is measurable in the same sense and S↦infhFS(h) is measurable.
"With probability at least 1−δ" is the bound Dm{failure}≤δ with 0<δ<1.
No statement of the paper is corrected: all printed constants were checked against the proofs and are reproduced exactly.
A formalization in which the expected excess risk is a Bochner integral of a non-measurable or non-integrable function, or in which F∗ is an infimum over all of E or over an unbounded family, would make the bounds trivially true; the measurability hypotheses, the bound ∣f∣≤C and the infimum over the nonempty set H rule this out.
Contributions welcome: proofs of the milestones in order, and in particular a reusable replace-one identity E[FS(A(S))]=m1∑iE[f(A(S(i));zi′)] under Measure.pi, and Markov's inequality in the form used for high-probability bounds.
Selected references
S. Shalev-Shwartz, O. Shamir, N. Srebro, K. Sridharan, Learnability, Stability and Uniform Convergence, Journal of Machine Learning Research 11 (2010) 2635–2670. https://jmlr.org/papers/v11/shalev-shwartz10a.html
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, chapter 13. https://doi.org/10.1017/CBO9781107298019
V. N. Vapnik, Statistical Learning Theory, Wiley, 1998.
A Unified Framework for High-Dimensional Analysis of M-Estimators with Decomposable Regularizers: Error Bounds under Decomposability and Restricted Strong ConvexityResearch Paper
Motivation
High-dimensional statistics studies estimation when the number of parameters p is comparable to, or larger than, the number of observations n. The standard estimators in this regime are regularized M-estimators: minimise an empirical loss plus a penalty that encodes structure, such as the Lasso (ℓ1 penalty, sparse vectors), the group Lasso (block norms, group sparsity) and nuclear-norm regularization (low-rank matrices). Before 2009 each of these estimators came with its own consistency proof. Negahban, Ravikumar, Wainwright and Yu (arXiv:1010.2731; Statistical Science 27(4), 2012, doi:10.1214/12-STS400) isolated two properties that these proofs share, decomposability of the regularizer and restricted strong convexity of the loss, and proved one deterministic theorem from them. The Lasso rates of Bickel, Ritov and Tsybakov (arXiv:0801.1095), rates under ℓq-sparsity, and group-sparse and low-rank rates then follow as corollaries. The framework is the organising principle of Chapter 9 of Wainwright's textbook High-Dimensional Statistics (Cambridge University Press, 2019).
Setting
Let E be a finite-dimensional real inner product space with inner product ⟨⋅,⋅⟩ and induced error norm∥⋅∥. Given a loss L:E→R, a regularizer R:E→R and a constant λn>0, program (1) is
θ^λn∈argθ∈Emin{L(θ)+λnR(θ)}.
For a subspace S write uS for the orthogonal projection of u onto S, and S⊥ for the orthogonal complement.
Decomposability. For subspaces M⊆M, the norm R is decomposable with respect to (M,M⊥) if R(θ+γ)=R(θ)+R(γ) for all θ∈M and γ∈M⊥. Example: the ℓ1-norm with M=M={θ:θj=0∀j∈/S}.
Dual norm.R∗(v)=supR(u)≤1⟨u,v⟩.
Subspace compatibility constant.Ψ(M)=supu∈M∖{0}R(u)/∥u∥; for the ℓ1-norm on an s-dimensional coordinate subspace, Ψ=s.
The set C. For a point θ∗∈E,
C(M,M⊥;θ∗)={Δ∣R(ΔM⊥)≤3R(ΔM)+4R(θM⊥∗)}.
Restricted strong convexity (RSC). With the Taylor error δL(Δ,θ∗)=L(θ∗+Δ)−L(θ∗)−⟨∇L(θ∗),Δ⟩, the loss satisfies RSC with curvature κL>0 and tolerance τL(θ∗) if δL(Δ,θ∗)≥κL∥Δ∥2−τL2(θ∗) for every Δ∈C(M,M⊥;θ∗).
The conditions of the paper's main theorem are (G1): R is a norm, decomposable with respect to (M,M⊥) with M⊆M; and (G2): L is convex, differentiable and satisfies RSC. The Lean development lives in the namespace UnifiedMEstimator.General, with these objects named IsNormFn, IsDecomposable, dualNorm, compat, setC, taylorErr, RSC and IsOptimal.
Formalization targets
Goal: Theorem 1 (p. 10), tolerance term corrected
Under (G1) and (G2), if λn>0 and λn≥2R∗(∇L(θ∗)), then every optimal solution of program (1) satisfies
The bound holds for every pair (M,M) over which R decomposes, and for every optimum, not only a distinguished one.
Milestones
Lemma 1 (p. 7): under the dual-norm condition on λn, the error Δ^=θ^λn−θ∗ lies in C(M,M⊥;θ∗). This milestone links an existing platform statement of the same lemma (Wainwright, Proposition 9.13).
Section 2.4, p. 10, first display: if θ∗∈M and Δ∈C, then R(Δ)≤4Ψ(M)∥Δ∥.
Further statements
Corollary 1 (p. 11): if θ∗∈M and τL(θ∗)=0, then ∥θ^λn−θ∗∥≤3λnΨ(M)/κL and R(θ^λn−θ∗)≤12λnΨ2(M)/κL.
Section 2.4, p. 10, second display: a lower bound δL≥κ1∥Δ∥2−κ2gR2(Δ) on the unit ball gives curvature κ1−16κ2Ψ2(M)g on C when θ∗∈M.
Example 1 (p. 5) and the value Ψ(M(S))=∣S∣ (p. 9): the ℓ1-norm instance, which shows that the hypotheses of the goal can be met.
Significance
Theorem 1 reduces a consistency proof for a new regularized estimator to two checks: that the regularizer decomposes over a pair of subspaces adapted to the model, and that the loss is curved on the set C, together with a bound on R∗(∇L(θ∗)) that is usually a concentration inequality. The paper derives from it the slogp/n Lasso rate under restricted eigenvalue conditions, rates for weakly sparse (ℓq-ball) vectors, and group-Lasso rates; companion papers use it for low-rank matrix estimation, matrix completion and generalized linear models. Because the bound holds for every pair (M,M), it gives an explicit trade-off between an estimation error and an approximation error R(θM⊥∗).
The theorem is proved in the paper's supplementary appendix. No machine-checked proof of it is known. On Prove2Me, Wainwright's textbook restatement (Theorem 9.19, HighDimStat.Decomposability.thm9_19_general_bound) is a related but different statement: its RSC condition is local, on a ball, with a tolerance proportional to R2(Δ), and it has extra side conditions and a different bound. A formal proof of the present goal certifies the deterministic core that every corollary of the paper relies on.
Difficulty
The obvious argument compares the objective at θ^ and at θ∗ and applies RSC to the error. RSC, however, is available only on the set C, not on all of E: in high dimensions the loss is flat in many directions, so strong convexity fails. The work is to show first that the error lies in C (Lemma 1, which rests on decomposability and the choice of λn), and then to relate the regularizer to the error norm through the projections onto M and M⊥. The distinction between M and M matters throughout: the compatibility constant is taken on the larger space M, while the approximation error projects θ∗ onto the complement of the smaller one. The bound comes from a quadratic inequality in ∥Δ^∥, and the constants depend on how its terms are split.
Formalization scope
Representation. The parameter space is an arbitrary finite-dimensional real inner product space E (equivalently Rp with any inner product, as the paper allows); matrices are covered by the same abstraction. Subspaces are Submodule ℝ E, projections are Submodule.starProjection, and the gradient is Mathlib's gradient, under the hypothesis that L is differentiable. The dual norm and Ψ are real suprema (sSup). They equal the paper's quantities because R is required to be a genuine norm (nonnegative, definite, absolutely homogeneous, subadditive) and E is finite-dimensional; Ψ({0})=0. The tolerance is a real number τ entering as τ2; RSC contains κ>0 and is quantified over exactly C(M,M⊥;θ∗) for the same pair and point as the decomposability. Every statement is for every optimal solution of program (1). The data Z1n are fixed and absorbed into L, and θ∗ is an arbitrary point: the paper's requirement that θ∗ minimise the population risk is never used by the theorem and is dropped.
Corrections of the printed statements.
Display (22) prints the tolerance term as κLλn⋅2τL2(θ∗). As printed the statement is false: for E=R, R=∣⋅∣, M=M=R, L(θ)=(max(0,∣θ∣−1))2, θ∗=0.9, λn=0.01, κL=1/2, τL2=10, the optimum is 0 and ∥Δ^∥2=0.81 exceeds the printed bound 0.4036. The goal states 2τL2(θ∗)/κL; the two forms agree when τL=0, and the constants 9 and 4 are the paper's.
Corollary 1's (25a) prints ∥θ^−θ∗∥≤9λn2Ψ2(M)/κL, which fails for L(θ)=(θ−0.002)2, θ∗=0.001, λn=0.004 on R; the mission states 3λnΨ(M)/κL. Its "C(M,M,θ∗)" is read as C(M,M⊥;θ∗).
Trivializations ruled out. A regularizer predicate weaker than a norm would let the real suprema collapse to the junk value 0 and make the λn condition or the Ψ term free; RSC over all of E would be classical strong convexity, and RSC over the cone without the 4R(θM⊥∗) slack would make the goal false; decomposability without M⊆M or with the bars misplaced changes the theorem. None of these is used. The ℓ1 example and a checked one-dimensional instance show that all hypotheses of the goal can hold simultaneously.
Infrastructure and contributions. A complete development needs: Hölder's inequality for a norm and its dual norm, boundedness of the two suprema in finite dimension, the decomposability inequality R(θ∗+Δ)−R(θ∗)≥R(ΔM⊥)−R(ΔM)−2R(θM⊥∗), the first-order characterization of convexity, and the solution of a scalar quadratic inequality. The dual-norm and compatibility-constant lemmas are reusable for every decomposable-regularizer mission. Proofs of the milestones, of the goal, and of the ℓ1 instance are all welcome.
Selected references
S. N. Negahban, P. Ravikumar, M. J. Wainwright, B. Yu, A Unified Framework for High-Dimensional Analysis of M-Estimators with Decomposable Regularizers, Statistical Science 27(4), 2012, 538–557. arXiv:1010.2731v3, doi:10.1214/12-STS400
P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous Analysis of Lasso and Dantzig Selector, Annals of Statistics 37(4), 2009, 1705–1732. arXiv:0801.1095
M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge University Press, 2019, Chapter 9. doi:10.1017/9781108627771
Weak Convergence and Optimal Scaling of Random Walk Metropolis Algorithms: Langevin Diffusion Limit of the First CoordinateResearch Paper
Motivation
The random walk Metropolis algorithm is one of the most widely used Markov chain Monte Carlo methods for sampling from a density known up to a constant. Its one tuning parameter is the variance of the Gaussian proposal. If the variance is too small, the chain accepts almost every move but barely moves. If it is too large, it proposes long jumps that are almost always rejected. Practitioners need a rule for choosing it, and the rule has to work in high dimension, where both failure modes are severe.
Roberts, Gelman and Gilks (Ann. Appl. Probab. 7(1), 1997) gave the first rigorous answer for product targets. As the dimension grows, one coordinate of the suitably speeded-up chain converges to a Langevin diffusion. The speed of that diffusion is an explicit function of the proposal scale, and maximising it gives the rule "tune the proposal so that about 23% of proposals are accepted". This rule, and the 2.38/√I scaling behind it, is now standard advice in applied Bayesian statistics.
Setting
Let f:R→R be a target density: positive, C2, integrating to one, with f′/f Lipschitz, and satisfying the moment conditions (A1) Ef[(f′/f)8]<∞ and (A2) Ef[(f′′/f)4]<∞. Here Ef[g(X)]=∫g(x)f(x)dx. In dimension n≥2 the target is the product densityπn(x)=∏i=1nf(xi) on Rn.
Fix a scale l>0 and set σn2=l2/(n−1). The random walk Metropolis chainXn=(X0n,X1n,…) moves as follows. From Xm−1n it proposes Y∼N(Xm−1n,σn2In). It sets Xmn=Y with probability α(Xm−1n,Y)=1∧πn(Y)/πn(Xm−1n), and Xmn=Xm−1n otherwise. The chain starts from πn, which is stationary for it. The speeded-up first coordinate is Utn=X⌊nt⌋,1n for t≥0.
Let Φ be the standard normal distribution function, and define the roughnessI=Ef[(f′(X)/f(X))2]. The speed and the limiting acceptance rate are
h(l)=2l2Φ(−2lI),a(l)=2Φ(−2lI).
The Langevin generator is GV(x)=h(l)[21V′′(x)+21(logf)′(x)V′(x)]. It generates the Langevin diffusion dUt=h(l)1/2dBt+h(l)2f(Ut)f′(Ut)dt.
Formalization targets
Goal: Theorem 1.1
As n→∞,
Un⇒U,
where ⇒ denotes weak convergence in the Skorokhod topology, U0 has density f, and U is the Langevin diffusion with speed h(l). The limit is asserted to exist. No constants appear in the statement beyond those the model defines.
Milestones: the proof
Lemma 2.1. The stationary chain stays in the sets Fn={∣Rn−I∣<n−1/8}∩{∣Sn−I∣<n−1/8} up to time t with probability tending to one. Here Rn and Sn are the empirical averages of ((logf)′)2 and −(logf)′′ over coordinates 2,…,n.
Proposition 2.2. ∣1∧ex−1∧ey∣≤∣x−y∣.
Lemma 2.3. supx∈FnE∣Wn∣→0, where Wn is the second-order part of the log acceptance ratio.
Proposition 2.4. E[1∧eA]=Φ(μ/σ)+eμ+σ2/2Φ(−σ−μ/σ) for A∼N(μ,σ2).
Lemma 2.5. limsupnsupx1n∣E[V(Y1)−V(x1)]∣<∞ for V∈Cc∞.
Lemma 2.6. The discrete generator GnV(x)=nE[(V(Y)−V(x))α(x,Y)] converges to GV uniformly on Fn, for V∈Cc∞ a function of the first coordinate (stated with bounded (logf)′′′, the assumption its proof uses).
Corollary 1.2 (ii). h is maximised at l^=2.38/I, with a(l^)=0.23 and h(l^)=1.3/I, to the printed precision.
Significance
Theorem 1.1 shows that, run for n times as many steps, the chain in dimension n looks like a fixed one-dimensional diffusion. The algorithm's cost therefore grows linearly in dimension, and its efficiency is measured by the single number h(l). Corollary 1.2 turns this into the 0.234 acceptance-rate heuristic and the 2.38/I scaling. The same diffusion-limit method has since been applied to the Metropolis-adjusted Langevin algorithm, to Hamiltonian Monte Carlo and to non-product targets.
The theorem is proved on paper; it has no machine-checked proof. A formal development would give the first verified diffusion limit of an MCMC algorithm. It would also yield reusable components: the Metropolis chain on Rn as a measurable random mapping, a martingale-problem characterisation of one-dimensional diffusions, and a Gaussian computation (Proposition 2.4) that recurs throughout the optimal-scaling literature.
Difficulty
The obvious approach, a Taylor expansion of the log acceptance ratio, gives a sum of n−1 terms of size 1/n. That sum does not concentrate uniformly over the state space, since the coordinates 2,…,n are arbitrary. The expansion is controlled only on the sets Fn, where the empirical averages Rn and Sn are close to I. The limit therefore holds only after showing that the chain rarely leaves Fn over a time horizon of nt steps. A pointwise law of large numbers is not enough for that, because the bound has to survive a union over nt steps. Passing from generator convergence on a set of high probability to weak convergence of processes requires the Ethier–Kurtz convergence theory: a core for the limit generator, and convergence of processes that are not themselves Markov. None of this theory is in Mathlib.
Formalization scope
All declarations live in the namespace Roberts1997.RWM. The following conventions are fixed.
Vectors are Fin n → ℝ, and the paper's first coordinate x1 is index 0. Its coordinates 2,…,n are the indices i ≠ 0.
σn2=l2/(n−1) is computed in R. All statements concern n≥2 or large n.
l>0 is assumed. The paper leaves it implicit, but h(−l)=h(l).
"f is a density" is read as ∫f=1. The moment conditions are read as integrability of (f′/f)8f and (f′′/f)4f. The standing assumption "f′/f is Lipschitz" (p. 111) is carried by every statement.
The chain is built as a random mapping on an explicit probability space: x0∼πn, with i.i.d. standard normal innovations and uniform acceptance variables. Theorem 1.1's initial condition (components i.i.d. f, shared across dimensions) is read as "the n-th chain starts from πn", since weak convergence depends only on the law of each Un.
"U satisfies the Langevin SDE" is read as "the law of U solves the martingale problem for G on Cc∞, with continuous paths and initial law f(x)dx". This is equivalent by Ethier–Kurtz (1986), Ch. 5, Prop. 3.1 and Thm 3.3, and follows the platform definition EthierKurtz_IsContinuousDiffusionLaw.
"Un⇒U" is read as the existence of an almost-sure coupling in which càdlàg copies of the Un converge to a continuous Langevin path uniformly on compact time intervals. For a continuous limit this is equivalent to weak convergence in DR[0,∞), by Skorokhod's representation theorem and Ethier–Kurtz Ch. 3, Thm 1.8, Prop. 5.3 and Prop. 7.1. It follows the platform encoding of Ethier–Kurtz Theorem 7.4.1.
"sup→0" and "limsupsup<∞" are stated as eventual uniform bounds. This avoids real suprema, whose value on an unbounded set is a default.
In Lemma 2.6, "as d→∞" is a misprint for n→∞, and "2f(Ut)" in (1.2) is read as 2f(Ut).
Corollary 1.2 (ii) is stated for an arbitrary constant I>0. "To two decimal places" is read as explicit rounding intervals: 1.3 is read to one decimal, and all maximisers over l>0 are covered.
The goal cannot be satisfied trivially. The limit law Q must exist, and it must be a probability measure whose initial marginal is f(x)dx, so the zero measure is excluded. The coupled copies must carry exactly the laws of the paths Un, not an arbitrary process with the same one-time marginals.
The statements carry the paper's hypotheses, with one exception. The printed proof of Lemma 2.6 bounds supz∣(logf)′′′(z)∣, which Theorem 1.1 does not assume, and under C2 alone the uniform convergence over Fn claimed by Lemma 2.6 fails (narrow spikes of (logf)′′ far out let a positive fraction of the coordinates shift the log acceptance ratio by a constant while Rn and Sn stay close to I). Lemma 2.6 is therefore stated with the proof's own assumption, f∈C3 with (logf)′′′ bounded, named as an addition. Theorem 1.1 and the other results keep the paper's hypotheses.
A complete development needs several pieces not yet available: path spaces and the Skorokhod topology (or the coupling reading), the martingale problem and its well-posedness for Lipschitz drift, and the Ethier–Kurtz theorem on convergence of generators on sets of high probability. Proofs of the Gaussian milestones (Propositions 2.2 and 2.4, Lemma 2.5) and of Corollary 1.2 (ii) are independent of this infrastructure and are welcome contributions.
Selected references
G. O. Roberts, A. Gelman, W. R. Gilks, Weak convergence and optimal scaling of random walk Metropolis algorithms, Ann. Appl. Probab. 7(1), 110–120, 1997. https://doi.org/10.1214/aoap/1034625254
A. Gelman, G. O. Roberts, W. R. Gilks, Efficient Metropolis jumping rules, Bayesian Statistics 5, Oxford University Press, 599–607, 1996.
G. O. Roberts, J. S. Rosenthal, Optimal scaling for various Metropolis–Hastings algorithms, Statistical Science 16(4), 351–367, 2001. https://doi.org/10.1214/ss/1015346320
Simultaneous Analysis of Lasso and Dantzig Selector V: Estimation, Prediction and Sparsity Bounds for the LassoResearch Paper
Motivation
In a linear regression with many more candidate variables than observations, least squares is not defined uniquely and does not estimate anything useful. The Lasso (Tibshirani, 1996) replaces it by an ℓ1-penalised least-squares problem, which is convex, can be solved at scale, and returns sparse coefficient vectors. The question that a statistician, a signal-processing engineer or an operations researcher fitting a sparse model must answer before trusting it is quantitative: how far is the Lasso estimate from the true coefficient vector, how well does it predict, and how many variables does it select, as functions of the sample size n, the number of variables M and the sparsity s of the truth?
Bickel, Ritov and Tsybakov (arXiv:0801.1095, Ann. Statist. 37(4), 2009) answered this under the restricted eigenvalue (RE) condition, which they introduced, with explicit constants and an explicit failure probability. Their Theorem 7.2, the goal of this mission, is a standard reference result of high-dimensional statistics and a model for the Lasso analyses in the textbooks of Bühlmann and van de Geer (2011) and Wainwright (2019).
Timeline, restricted to what each work proved:
2007: Candès and Tao (arXiv:math/0506081) prove ℓ2 bounds for the Dantzig selector under a uniform uncertainty principle.
2007: Bunea, Tsybakov and Wegkamp (doi:10.1214/07-EJS008) prove sparsity oracle inequalities for the Lasso under mutual-coherence conditions; Lemma B.1 of the present paper is essentially their Lemma 1.
2008/2009: Bickel, Ritov and Tsybakov prove Theorem 7.2 under RE(s,3) and RE(s,m,3), conditions weaker than those of the previous works.
Setting
A deterministic design matrixX∈Rn×M with columns x(1),…,x(M) is observed together with
y=Xβ∗+w,
where β∗∈RM is unknown and w=(W1,…,Wn) has independent N(0,σ2) entries with σ>0. Throughout, n≥1, M≥2, and every diagonal entry of the Gram matrixΨn=X⊤X/n equals 1.
For δ∈RM write ∣δ∣p=(∑j∣δj∣p)1/p, J(δ)={j:δj=0} for the support, M(δ)=∣J(δ)∣ for the sparsity, and δJ for the vector that agrees with δ on J and vanishes off J. The largest eigenvalue of Ψn is ϕmax.
The Lasso estimator with tuning parameter r>0 is any minimiser
Assumption RE(s,m,c0) (1≤s≤M/2, m≥s, s+m≤M) is the same with ∣δJ01∣2 in the denominator, where J01=J0∪J1 and J1 collects the m largest in absolute value coordinates of δ outside J0.
Formalization targets
Goal: Theorem 7.2
Let M(β∗)≤s, let RE(s,3) hold, and let r=AσlogM/n with A>22. With probability at least 1−M1−A2/8, every Lasso solution satisfies
In the order in which the paper's proof uses them:
(B.4): the noise event A=⋂j{2∣n1x(j)⊤w∣≤r} has P(Ac)≤M1−A2/8.
(B.6): the optimality conditions of the Lasso.
Lemma B.1 (Section 7 case): the basic inequality (B.1) for all β, the residual bound (B.2) and the sparsity bound M(β^L)≤4ϕmax∥fβ^L−f∥n2/r2 (B.3).
Corollary B.2: the error δ=β^L−β lies in the cone ∣δJ0c∣1≤3∣δJ0∣1.
(B.30)–(B.31): on A, n1∣Xδ∣22≤16r2s/κ2 and ∣δJ0∣2≤4rs/κ2.
(B.27) and (B.28) with c0=3: ℓ1 and ℓ2 norms of a cone vector.
The ℓp interpolation∑ajp≤b12−pb2p−1.
Significance
The result. Theorem 7.2 gives, for fixed n and M rather than asymptotically, the rate slogM/n for the prediction loss and slogM/n for the ℓ1 loss of the Lasso, under a condition on the design only (RE), with no assumption on how M compares with n. The dependence on M is only logarithmic, which is what makes the Lasso usable when M≫n. Bound (7.9) shows that the Lasso selects at most a constant multiple of s variables, and (7.10) covers every ℓp loss between ℓ1 and ℓ2. Together with Theorem 7.1 for the Dantzig selector, the result shows that the two estimators have the same rates.
Formalizing it. The theorem is proved on paper. As far as a search of the platform shows, there is no machine-checked proof of a probabilistic Lasso rate. The closest platform statement, HighDimStat.SparseLinear.lasso_l2_error_bound (Wainwright, Theorem 7.13(a)), is deterministic, assumes a lower bound on the regularisation parameter in place of Gaussian noise, uses a restricted eigenvalue condition over the cone of one fixed support, and concludes an ℓ2 bound with a different constant. A formal proof of Theorem 7.2 would supply the Gaussian maximal inequality, the Lasso optimality conditions, and the cone and interpolation inequalities as reusable lemmas.
Difficulty
Each step is short on paper, and none of the steps is deep. The main work is in three places. First, the probability: the event on which the deterministic argument runs involves all M correlations n1x(j)⊤w at once, and its probability must be bounded by exactly M1−A2/8, which requires the law of a linear combination of independent Gaussians and a sharp Gaussian tail estimate, not a generic concentration bound with unspecified constants. Second, the Lasso is defined only through its minimising property, while the sparsity bound (7.9) is a statement about the number of non-zero coordinates of a minimiser of a non-differentiable objective; the characterisation (B.6) of minimisers is not in Mathlib. Third, (7.10) involves two restricted eigenvalue constants, a ranking of coordinates with possible ties, and real exponents, and every constant has to come out exactly.
The obvious idea of proving (7.7)–(7.10) for one fixed minimiser does not suffice: the statement quantifies over every minimiser on a single event.
Formalization scope
The design X is a Matrix (Fin n) (Fin M) ℝ; vectors are functions Fin M → ℝ. The noise is a family W : Fin n → Ω → ℝ of independent, measurable random variables with law gaussianReal 0 σ² on a probability space, and y(ω)=Xβ∗+W(ω). The probabilistic conclusion is one measurable event E with P(E)≥1−M1−A2/8 on which every minimiser of (7.2) satisfies all bounds; the event does not depend on the minimiser, on m or on p. log is the natural logarithm.
RE(s,3) and RE(s,m,3) are stated through witnesses: a predicate "κn∣δJ0∣2≤∣Xδ∣2 for every admissible J0 and δ", and the theorem holds for every witness κ>0. Because the paper's κ(s,c0) is an attained minimum, every witness is at most it and the bounds decrease in κ, so this is equivalent to the printed statement. The assumption quantifies over every J0 with ∣J0∣≤s, as on page 7, not only over the support of β∗. ϕmax is the supremum of n1∣Xx∣22 over unit vectors x. Lemma B.1 is stated in its Section-7 specialisation (unit column norms, f=Xβ∗), the form used in the proof of Theorem 7.2; (B.28) is stated for every c0>0 and (B.27) likewise, since the paper writes them with c0=1 and invokes them with c0=3. The printed Theorem 7.2 needs no correction; all four constants were checked against the proof.
A formalization in which the noise is not Gaussian, the Lasso predicate can be vacuous, the RE condition is imposed only on the support of β∗, or the probability is that of a non-measurable set, is not this theorem and is ruled out by the statement.
Needed infrastructure: Gaussian tail bounds and the law of a linear combination of independent Gaussians (largely in Mathlib), subdifferential calculus for ℓ1-penalised least squares, and elementary finite-sum inequalities. The cone inequalities (B.27)–(B.28), the interpolation inequality and the optimality conditions (B.6) are reusable in other sparse-estimation missions; contributions to any milestone are welcome.
F. Bunea, A. B. Tsybakov, M. H. Wegkamp, Sparsity oracle inequalities for the Lasso, Electron. J. Statist. 1, 169–194, 2007. https://doi.org/10.1214/07-EJS008
E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://arxiv.org/abs/math/0506081
M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge University Press, 2019, Chapter 7. https://doi.org/10.1017/9781108627771
Simultaneous Analysis of Lasso and Dantzig Selector IV: Estimation and Prediction Error Bounds for the Dantzig SelectorResearch Paper
Motivation
In high-dimensional linear regression the number of unknown coefficients M may be much larger than the number of observations n, and the coefficient vector can only be recovered because it is assumed to be sparse: few of its entries are non-zero. Two convex estimators dominate this setting: the Lasso of Tibshirani (1996), an ℓ1-penalized least-squares estimator, and the Dantzig selector of Candès and Tao (2007), which minimizes the ℓ1 norm subject to a bound on the correlation between the residual and the columns of the design. Both are used routinely in statistics, signal processing and machine learning, and their rates of convergence determine how many observations suffice to estimate a sparse vector.
Bickel, Ritov and Tsybakov (arXiv:0801.1095; Ann. Statist. 37(4), 2009) analysed the two estimators side by side under a single, weak condition on the design, the restricted eigenvalue (RE) assumption. This mission formalizes their rates for the Dantzig selector, Theorem 7.1 of the paper.
Timeline. Candès and Tao (Ann. Statist. 35, 2007) introduced the Dantzig selector and bounded its ℓ2 error under a uniform uncertainty principle on the design. Bickel, Ritov and Tsybakov (2009) replaced that condition by the RE assumptions, which are implied by it (their Lemma 4.1), and obtained ℓp bounds for every 1≤p≤2 and a prediction bound, with explicit constants. Later work (van de Geer and Bühlmann, EJS 2009) compared RE with the compatibility condition and other design conditions.
Setting
Observations follow the linear model
y=Xβ∗+w,
where X∈Rn×M is a deterministic design matrix, n≥1, M≥2, β∗∈RM is unknown, and w=(W1,…,Wn) has independent N(0,σ2) coordinates with σ>0. The columns are normalized: every diagonal element of the Gram matrixXTX/n equals 1.
For β∈RM, J(β)={j:βj=0} is its support and M(β)=∣J(β)∣ its sparsity; β∗ satisfies M(β∗)≤s for an integer 1≤s≤M. Norms are ∣δ∣p=(∑j∣δj∣p)1/p and ∣v∣22=∑ivi2; for an index set J, δJ keeps the coordinates of δ in J and sets the others to 0, and Jc is the complement of J.
With a tuning level r=AσlogM/n, A>2, the Dantzig selector is any minimizer
β^D∈argβ∈Λmin∣β∣1,Λ={β∈RM:n1XT(y−Xβ)∞≤r}.
The cone condition at an index set J0 with constant c0>0 is ∣δJ0c∣1≤c0∣δJ0∣1. Assumption RE(s,c0) asks that
Assumption RE(s,m,c0) is the same with ∣δJ01∣2 in the denominator, where J01=J0∪J1 and J1 collects the m largest ∣δj∣ outside J0; it is used for s≤m, s+m≤M.
Formalization targets
Goal: Theorem 7.1
With probability at least 1−M1−A2/2, every Dantzig selector satisfies
The noise eventB=⋂j{∣n1∑iXijWi∣≤r∥fj∥n} has P{Bc}≤M1−A2/2 (proof of Lemma B.3).
Lemma B.3, (B.9): for any β satisfying the Dantzig constraint, δ=β^D−β satisfies the cone condition at J(β) with c0=1.
(B.25): on B, β∗∈Λ, n1∣XTXδ∣∞≤2r, and n1∣Xδ∣22≤4rs∣δJ0∣2.
(B.26): under RE(s,1), n1∣Xδ∣22≤16r2s/κ2 and ∣δJ0∣2≤4rs/κ2.
(B.27): on the cone, ∣δ∣1≤(1+c0)s∣δJ0∣2.
(B.28): on the cone, ∣δ∣2≤(1+c0s/m)∣δJ01∣2.
(B.29): under RE(s,m,1), ∣δ∣22≤16(1+s/m)2(rs/κ2)2.
Interpolation:∑jaj≤b1, ∑jaj2≤b2, aj≥0 imply ∑jajp≤b12−pb2p−1 for 1<p≤2.
Significance
The result. Theorem 7.1 shows that, up to the factor logM, the Dantzig selector estimates an s-sparse vector as well as least squares would if the support were known: the prediction error n1∣X(β^D−β∗)∣22 is of order σ2slogM/n, and the ℓp errors are of order s1/pσlogM/n. The bounds hold for any M, including M≫n, provided only that RE holds, and every constant is explicit. The paper's Theorem 7.2 gives the same rates for the Lasso; comparing the two is the paper's main message.
Formalizing it. The theorem is proved in the paper; to the best of current knowledge it has not been machine-checked. A complete formal proof would provide: a verified Gaussian maximal inequality for the noise event, the deterministic cone and RE arithmetic that underlies essentially all ℓ1-regularized estimation theory, and a reusable ℓ1–ℓ2 interpolation lemma. Most milestones are deterministic and independent of the probability layer.
Difficulty
The obvious argument — compare β^D with β∗ in Euclidean norm using the smallest eigenvalue of XTX/n — fails because that eigenvalue is 0 whenever M>n. The proof must instead show that the error vector lies in a cone on which X is injective in a quantitative sense, and this uses the optimality of β^D (not just feasibility) together with the event B on which β∗ itself is feasible. The ℓp bound needs a second, stronger condition RE(s,m,1) and a control of the tail of the error outside the m largest coordinates. On the formal side, handling the non-uniqueness of the minimizer, real powers with exponent p−1 or 2−p, and the union over M Gaussian tails with the exact constant M1−A2/2 all need care.
Formalization scope
Vectors are functions Fin M → ℝ, the design is Matrix (Fin n) (Fin M) ℝ; the paper's dictionary of functions enters only through X. The unit diagonal of XTX/n is a hypothesis, not a normalization performed in the proof. The noise is W : Fin n → Ω → ℝ on a probability space, measurable, mutually independent, each of law N(0,σ2); log is the natural logarithm. The Dantzig selector is a predicate (feasible and of minimal ℓ1 norm among feasible vectors), and every result is stated for every minimizer. RE(s,c0) and RE(s,m,c0) are stated through a witnessκ (a number with the defining lower-bound property); κ(s,c0) is the largest witness and the bounds decrease in κ, so the statements are equivalent to the paper's while avoiding the value of a real infimum over an empty set. Two witnesses are kept apart: κ for RE(s,1) in (7.4)–(7.5), κ′ for RE(s,m,1) in (7.6). Ties in the choice of the m largest coordinates are handled by quantifying over every admissible J1. The probability statement asserts one measurable event E with P(E)≥1−M1−A2/2 on which all three bounds hold for every minimizer, every admissible m, every witness κ′ and every p.
The event E is fixed before the minimizer is quantified, so a formalization in which the event depends on β^D, or in which RE is a hypothesis about the random error vector rather than the design, would be a different (weaker) statement and is not accepted. The deterministic milestones (B.26)–(B.29) take the conclusion of (B.25) as a hypothesis; they are true for every vector satisfying their hypotheses and are not restricted to the event.
A complete development needs Gaussian tail bounds and a union bound (Mathlib's gaussianReal), finite Hölder-type inequalities for real exponents, and elementary sorting arguments for the tail outside J01. The cone, RE and interpolation lemmas are reusable for the Lasso (Theorem 7.2, a sister mission) and beyond. Proofs of any milestone are welcome independently.
Selected references
P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3: https://arxiv.org/abs/0801.1095
E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://doi.org/10.1214/009053606000001523
S. van de Geer, P. Bühlmann, On the conditions used to prove oracle results for the Lasso, Electron. J. Statist. 3, 1360–1392, 2009. https://doi.org/10.1214/09-EJS506
Simultaneous Analysis of Lasso and Dantzig Selector II: Approximate Equivalence of the Lasso and Dantzig Prediction LossesResearch Paper
Motivation
Two estimators dominate sparse high-dimensional regression, where the number M of candidate regressors can far exceed the sample size n. The Lasso (Tibshirani, 1996) minimises a least-squares criterion plus an ℓ1 penalty. The Dantzig selector (Candès and Tao, 2007) minimises the ℓ1 norm of the coefficients subject to a bound on the correlation between the residual and the regressors, and is computed by a linear program. They were proposed independently and first analysed under different assumptions: sparsity oracle inequalities for the Lasso (Bunea, Tsybakov and Wegkamp, 2007) and ℓ2 bounds for the Dantzig selector under a uniform uncertainty principle (Candès and Tao, 2007). A practitioner choosing between them needs to know whether guarantees for one say anything about the other.
Bickel, Ritov and Tsybakov (arXiv:0801.1095; Ann. Statist. 37(4), 2009, doi:10.1214/08-AOS620) analyse both estimators in parallel under one assumption on the design, the restricted eigenvalue condition. Their main message is that, under sparsity, the two estimators "exhibit similar behavior" (p. 2). Section 5 makes this precise: the prediction losses of the two estimators are close. The result holds in a nonparametric model: the regression function need not be a combination of the regressors. This mission formalizes that comparison, Theorem 5.1 of the paper.
Setting
Let f1,…,fM be real functions (the dictionary) on a set Z, and Z1,…,Zn∈Z fixed design points, with n≥1 and M≥2. The design matrix is X=(fj(Zi))∈Rn×M. Observations are Yi=f(Zi)+Wi, where f is an unknown function and W1,…,Wn are independent N(0,σ2) with σ>0. Write y=(Yi), f=(f(Zi)) and w=(Wi), so y=f+w.
The empirical norm of g is ∥g∥n=(n1∑ig(Zi)2)1/2. Every column has ∥fj∥n=0, and fmax=maxj∥fj∥n. For β∈RM, fβ=∑jβjfj has value vector Xβ. The support is J(β)={j:βj=0} and the sparsity is M(β)=∣J(β)∣. For J⊆{1,…,M}, δJ agrees with δ on J and vanishes elsewhere.
Fix r>0. The Lassoβ^L is any minimiser of
n1i=1∑n(Yi−fβ(Zi))2+2rj=1∑M∥fj∥n∣βj∣.
With D=diag(∥f1∥n2,…,∥fM∥n2), the Dantzig constraint is ∣n1D−1/2X⊤(y−Xβ)∣∞≤r. The Dantzig selectorβ^D is any vector of smallest ∣β∣1=∑j∣βj∣ that satisfies it. The estimators are f^L=fβ^L and f^D=fβ^D.
The result. Theorem 5.1 bounds the gap between the two prediction losses by the rate M(β^L)σ2logM/n of a sparse regression with M(β^L) parameters. The bound carries a factor fmax2/κ2(s,1) that measures how ill-conditioned the Gram matrix is on sparse vectors. A prediction bound for one estimator therefore transfers to the other at this cost. The paper uses this transfer in Proposition 6.3, which combines Theorem 5.1 with the Lasso oracle inequality of Section 6 to derive an oracle inequality for the Dantzig selector. The theorem requires no assumption relating f to the dictionary.
Formalizing it. The result has been proved since 2009, and this mission formalizes that proof. None of the objects involved exists on Prove2Me yet: the weighted Lasso, the Dantzig selector and the Gaussian noise events. The Wainwright series on the platform defines a differently normalised Lasso with an unweighted penalty, a single fixed support and a different restricted eigenvalue condition, so it cannot be reused here. A machine-checked proof would also confirm the paper's constants, 16A2 and the thresholds 22 and M1−A2/8, which appear in all later analyses.
Difficulty
Each estimator is defined only implicitly, as the solution of an optimisation problem, and neither need be unique. Comparing their losses directly gives ±n2δ⊤X⊤(f−Xβ^) plus n1∣Xδ∣22 with δ=β^L−β^D. A crude bound on the cross term, ∣δ∣1⋅∣X⊤(⋅)∣∞, yields an error proportional to ∣δ∣1. This does not produce the sparse rate unless ∣δ∣1 is controlled by ∣Xδ∣2. That control needs δ to lie in the restricted eigenvalue cone at the support of the random, data-dependent vector β^L. The restricted eigenvalue condition must therefore hold uniformly over supports of size at most s; a condition for one fixed support does not suffice. The probabilistic part is a union bound over M Gaussian coordinates, and it must be arranged so that a single event serves every minimiser of both programs.
Formalization scope
The dictionary and the design points enter every statement only through X and f, so the Lean statements take X : Matrix (Fin n) (Fin M) ℝ and f : Fin n → ℝ directly, and f is arbitrary. The noise is a family W : Fin n → Ω → ℝ of measurable, mutually independent random variables with law gaussianReal 0 σ², and y=f+W(ω). The Lasso and the Dantzig selector are predicates (IsLasso, IsDantzig), and every theorem is stated for every solution. The Dantzig constraint is written coordinatewise as ∣n1∑iXij(yi−(Xβ)i)∣≤r∥fj∥n. The Lasso penalty and the Dantzig constraint are weighted by ∥fj∥n, and the Dantzig objective ∣β∣1 is unweighted, exactly as in the paper. Theorem 5.1 does not normalise the columns.
RE(s,c0) is stated through a witness: a real κ>0 with κn∣δJ0∣2≤∣Xδ∣2 on the cone, for all ∣J0∣≤s. The paper's κ(s,c0) is attained, so it is the largest witness. Every bound decreases in κ, so this reading is equivalent to the paper's and avoids a real infimum over an empty set. "With probability at least p" becomes the existence of a measurable event E with P(E)≥p on which the conclusion holds for every Lasso solution and every Dantzig selector. The condition M(β^L)≤s is imposed inside the event, per realisation. The milestones (B.2), (B.10), (B.15) and (B.17) are stated deterministically, on the noise events A and B as predicates on the noise vector; this is how the proof uses them. (B.4) is stated for every A>0, which is stronger than the paper's A>22 and still true.
The goal cannot be made vacuous. For A>22 the probability bound 1−M1−A2/8 is positive. Lasso solutions exist because r>0 and every ∥fj∥n>0, and Dantzig selectors exist because the Lasso is feasible. RE(s,1) with κ=1 holds for X=nI.
A complete development needs:
subgradient optimality for the weighted Lasso;
a Gaussian tail bound P(∣η∣≥t)≤e−t2/2 together with the law of a weighted sum of independent Gaussians;
Cauchy–Schwarz on supports;
the quadratic bound bx−x2≤b2/4.
The noise-event lemmas and the Lasso optimality condition can be reused by the companion missions on this paper. Proofs of any milestone are welcome, including proofs that route (B.4) through Mathlib's sub-Gaussian API.
Selected references
P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3: https://arxiv.org/abs/0801.1095 ; doi:10.1214/08-AOS620
E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://doi.org/10.1214/009053606000001523
F. Bunea, A. B. Tsybakov, M. H. Wegkamp, Sparsity oracle inequalities for the Lasso, Electron. J. Stat. 1, 169–194, 2007. https://doi.org/10.1214/07-EJS008
Generalization Bounds in the Predict-then-Optimize Framework I: Natarajan-Dimension Generalization Bound for Polyhedral Feasible RegionsResearch Paper
Motivation
In many operational problems (shortest paths, assignment, planning) the decision solves a linear program whose cost vector is unknown at decision time and is predicted from contextual features. The predict-then-optimize pipeline fits a model f that maps a feature vector x to a predicted cost vector c^=f(x), and then acts on the decision that is optimal for c^. Elmachtoub and Grigas (Smart "Predict, then Optimize", Management Science 2022) proposed to measure the quality of such a model not by the prediction error but by the SPO loss (Smart Predict-then-Optimize loss): the excess true cost of the decision induced by the prediction over the best decision in hindsight.
The question is whether a small SPO loss on the training sample implies a small SPO loss on new data, uniformly over the models a training procedure may return. The SPO loss is neither convex nor continuous in the prediction, so the standard Lipschitz-based bounds for regression do not apply. El Balghiti, Elmachtoub, Grigas and Tewari (arXiv:1905.11488v3, Mathematics of Operations Research 2023; a preliminary version appeared at NeurIPS 2019) give the first such generalization bounds. This mission formalizes their first one, for polyhedral feasible regions, which treats every vertex of the feasible region as a class label of a multiclass classification problem. The bound has since been used by later work, e.g. Hu, Kallus and Mao (Fast rates for contextual linear optimization, Management Science 2022), who sharpen it by a logn factor (as noted on p. 4 of the paper).
Setting
A feasible regionS⊆Rd is nonempty, compact and convex. For a cost vector c∈Rd the nominal problem is minw∈Sc⊤w. An optimization oracle is a fixed map w∗:Rd→S with w∗(c)∈argminw∈Sc⊤w for every c; nothing is assumed about how it breaks ties. The SPO loss of a prediction c^ when the realized cost is c is
ℓSPO(c^,c)=c⊤w∗(c^)−c⊤w∗(c)≥0.
The linear optimization gap is ωS(c)=maxw∈Sc⊤w−minw∈Sc⊤w, and for a set C of cost vectors ωS(C)=supc∈CωS(c); the SPO loss of a cost in C lies in [0,ωS(C)].
Data are pairs (x,c) drawn from a distribution D on X×C. A hypothesis classH is a family of predictors f:X→Rd. The SPO risk is RSPO(f)=ED[ℓSPO(f(x),c)], and on an i.i.d. sample (x1,c1),…,(xn,cn) the empirical SPO risk is R^SPO(f)=n1∑iℓSPO(f(xi),ci). The empirical Rademacher complexity with respect to the SPO loss is
with independent uniform signs σi∈{±1}, and RSPOn(H) is its expectation over the sample.
The decisions induced by H form the class w∗(H)={x↦w∗(f(x)):f∈H}. A class FN-shatters a finite set X⊆X if there are two labelings g1,g2 that differ at every point of X such that every mixture of them (follow g1 on a subset T, g2 on the rest) is realized by some member of F. The Natarajan dimensiondN(F) is the largest size of an N-shattered set. When S is a polyhedron, S denotes its finite set of extreme points.
Formalization targets
Goal: Theorem 2, second display (p. 11)
For a polyhedral S and every δ>0, with probability at least 1−δ over an i.i.d. sample of size n, every f∈H satisfies
Theorem 1 (p. 9): with probability 1−δ, RSPO(f)≤R^SPO(f)+2RSPOn(H)+ωS(C)log(1/δ)/(2n) for all f∈H.
Massart step (Appendix B.1, p. 31): for a fixed sample with costs in C, R^SPOn(H)≤ωS(C)2log∣F∣X∣/n, where F∣X is the set of decision vectors (w∗(f(x1)),…,w∗(f(xn))).
Natarajan lemma (cited on p. 31; proved on the platform as UnderstandingML.natarajan_lemma): a class from an m-point set to k labels with Natarajan dimension d has at most mdk2d members.
Empirical bound (Appendix B.1, p. 31): for a fixed sample, R^SPOn(H)≤ωS(C)2dN(w∗(H))log(n∣S∣2)/n.
Theorem 2, first display (p. 11): the same bound for the expected complexity RSPOn(H).
Significance
The bound controls the out-of-sample decision cost of every predictor in the class, not only of an empirical risk minimizer, so it applies to any training procedure (SPO+ surrogate minimization, decision trees, heuristics) that returns a member of H. Its dependence on the feasible region is only through ωS(C) and log∣S∣: the number of vertices of a combinatorial polytope is typically exponential in d, and enters only logarithmically. For linear predictors x↦Bx the paper's Corollary 2 bounds dN(w∗(Hlin)) by dp, giving a rate of order dplog(n∣S∣)/n.
The results are proved in the paper; this mission formalizes them. No statement about predict-then-optimize or the SPO loss is known to have a machine-checked proof. The platform already has the Natarajan lemma (proved) and several Massart-type lemmas for generic classes; this mission connects that multiclass machinery to decision losses, and its Theorem 1 is a reusable Rademacher generalization bound for a loss with range [0,ω].
Difficulty
The obvious route through Lipschitz contraction fails: the SPO loss jumps when the prediction crosses a point where the optimum is not unique, so the Rademacher complexity of the composed class cannot be bounded by that of H times a Lipschitz constant. Any argument through the finitely many vertices of S needs the decisions w∗(f(xi)) to take finitely many values on a sample, i.e. the oracle to return vertices; for an oracle that returns a non-vertex optimal point under ties, w∗(H) may take infinitely many values on a sample. On the probabilistic side, the passage from the empirical to the expected complexity and the McDiarmid concentration step (Theorem 1) require the suprema over an uncountable class to be measurable, which the paper does not discuss.
Formalization scope
Lean works in Rd = EuclideanSpace ℝ (Fin d); cost vectors and decisions live in the same space and c⊤w is the inner product. The standing assumptions of §2 are hypotheses of every theorem: S nonempty, compact and convex; w∗ an arbitrary oracle (a hypothesis IsOracle S w, never a specific selection); C nonempty and bounded, with the cost component of D in C almost surely (or, for fixed-sample statements, every ci∈C); n≥1. "Polyhedron" means the solution set of finitely many linear inequalities; with compactness it is a polytope, and ∣S∣ is the cardinality of Set.extremePoints ℝ S. The expectation over signs is the exact average over the 2n sign vectors; RSPO and RSPOn are Bochner integrals. "With probability at least 1−δ" is stated as: the product measure of the set of samples on which some f∈H violates the bound is at most δ.
The formalization commits to the following disclosed additions:
In the empirical bound, Theorem 2 and its first display, the oracle returns extreme points of S. This is the proof's own "w.l.o.g." (p. 31), made explicit because p. 10 allows non-vertex outputs under ties. The hypothesis is needed: on the unit square, an oracle that returns distinct interior points of an edge under ties can have dN(w∗(H))=1 and empirical complexity near 21, which exceeds the printed bound for large n.
The Natarajan dimension is not defined as a number (a supremum in N would silently be 0 for unboundedly large shattered sets). Statements carry a natural number k bounding the size of every N-shattered set, in place of dN(w∗(H)). This is equivalent when dN is finite; the printed bound is vacuous otherwise.
Theorem 1 and the goal carry three measurability hypotheses: each loss function z↦ℓSPO(f(z1),z2) is measurable; the uniform deviation supf(RSPO(f)−R^SPO(f)) and, for each sign vector, the signed supremum supfn1∑iσiℓSPO(f(xi),ci) are almost-everywhere measurable functions of the sample. Without them the integral defining RSPOn could default to 0.
The Massart step assumes F∣X finite, the case in which its printed right-hand side is finite.
A formalization that let dN be an sSup in N, or chose a specific tie-breaking oracle inside the definitions, would prove a different and in part trivial statement; both are excluded.
Infrastructure needed: McDiarmid's bounded-differences inequality and symmetrization for the product measure; Massart's finite-class lemma (a proved version is on the platform as RademacherMassart.rad_le_massart, with its own normalization); the Natarajan lemma (proved, UnderstandingML.natarajan_lemma, stated with its own but identical notion of N-shattering over finite types); finiteness and nonemptiness of the extreme points of a nonempty polytope. Theorem 1 and the Massart step do not use polyhedrality and are reusable for any bounded decision loss. Contributions of these infrastructure lemmas are welcome.
Selected references
O. El Balghiti, A. N. Elmachtoub, P. Grigas, A. Tewari, Generalization Bounds in the Predict-then-Optimize Framework, arXiv:1905.11488v3, 2022; Mathematics of Operations Research, 2023. https://arxiv.org/abs/1905.11488
A. N. Elmachtoub, P. Grigas, Smart "Predict, then Optimize", Management Science 68(1), 9–26, 2022. https://arxiv.org/abs/1710.08005
P. L. Bartlett, S. Mendelson, Rademacher and Gaussian complexities: risk bounds and structural results, Journal of Machine Learning Research 3, 463–482, 2002. https://www.jmlr.org/papers/v3/bartlett02a.html
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014 (Lemma 29.4). https://doi.org/10.1017/CBO9781107298019
M. Mohri, A. Rostamizadeh, A. Talwalkar, Foundations of Machine Learning, 2nd ed., MIT Press, 2018 (Theorem 3.3, Corollary 3.8). https://cs.nyu.edu/~mohri/mlbook/
The MDL and Occam principles of Chapter 7 rank hypotheses by description length and pay for a hypothesis according to its rank. Chapter 31 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019), generalizes this to the PAC-Bayesian approach of McAllester: prior knowledge is a prior distribution P over the class, the learner outputs a posterior Q, read as the randomized predictor that draws h∼Q, and the price of Q is its Kullback–Leibler divergence from P. The PAC-Bayes theorem (Theorem 31.1) says that with probability 1−δ, simultaneously for every posterior, the generalization loss exceeds the training loss by at most (D(Q∥P)+ln(m/δ))/(2(m−1)). Its proof is a compact and elegant argument: Markov's inequality for an exponential moment, a change of measure from Q to P by Jensen's inequality, an exchange of expectations that is possible because the prior does not depend on the sample, and a moment bound for the deviation of a single hypothesis. The bound suggests the learning rule of Remark 31.1, minimize LS(Q) plus the divergence penalty, which is regularized risk minimization in disguise, and for a finite class with a uniform prior it recovers an Occam-type bound (Exercise 2).
Setting
H is a measurable space of hypotheses, ℓ:H×Z→[0,1] a jointly measurable loss, D a distribution over Z, and P a prior probability measure on H. For a posterior Q, ℓ(Q,z)=Eh∼Q[ℓ(h,z)], LD(Q)=Eh∼Q[LD(h)] and LS(Q)=Eh∼Q[LS(h)], and D(Q∥P)=Eh∼Q[ln(dQ/dP)] is the Kullback–Leibler divergence, a real number when Q≪P and the log-density is Q-integrable.
Formalization targets
Goal: Theorem 31.1
For m≥2 and δ∈(0,1), with probability at least 1−δ over S∼Dm, every probability measure Q≪P with finite divergence satisfies
LD(Q)≤LS(Q)+2(m−1)D(Q∥P)+ln(m/δ).
Milestones
The identity Ez∼D[ℓ(Q,z)]=LD(Q) (§31.1); the moment bound ES[e2(m−1)Δ(h)2]≤m of the proof (p. 417); Exercise 2, the bound for a finite class with the uniform prior.
Significance
PAC-Bayes bounds are among the tightest generalization bounds known in practice, and the reason is visible in Theorem 31.1: the complexity term is not a property of the class but of the posterior actually chosen, measured against a prior, so a learner that stays close to its prior generalizes even in a huge class. The theorem is the ancestor of a large literature (Seeger, Langford, Catoni, Maurer) and of modern nonvacuous bounds for neural networks. Formally it is a pleasant target: the change-of-measure inequality Eh∼Q[f(h)]−D(Q∥P)≤lnEh∼P[ef(h)] is the Donsker–Varadhan inequality, of independent value, and the moment bound is a sharp sub-Gaussian fact. On the platform, the mission introduces Gibbs risks and the Kullback–Leibler divergence between measures on a class, ending the book's series with its last learning principle.
Difficulty
The Gibbs risk identity is Fubini for a bounded jointly measurable function. The moment bound is the delicate step: the book derives it from Hoeffding's tail bound through Exercise 1, whose one-sided hypothesis is not enough (a constant negative variable satisfies it with an unbounded moment), and even the two-sided tail integrates only to 2m−1; the claim ≤m is nevertheless true, for instance by writing eaΔ2=Eg[e2agΔ] for a standard Gaussian g and applying Hoeffding's lemma to the sample mean, which gives ES[e2(m−1)Δ2]≤(1−(m−1)/m)−1/2=m. Theorem 31.1 then follows the book: Markov's inequality on ef(S) with f(S)=supQ(2(m−1)Eh∼QΔ(h)2−D(Q∥P)), the change of measure (31.2) by Jensen's inequality for ln applied to the density dQ/dP (the Donsker–Varadhan inequality, which needs Q≪P and an integrable log-density), the exchange of expectations (31.4) by Fubini, the moment bound, and finally Jensen for x2 in (31.6); formally the supremum over all posteriors is handled by proving the bound for each Q on the event {S:Eh∼P[e2(m−1)Δ(h)2]≤m/δ}, whose complement has probability at most δ by Markov, which sidesteps any measurability question about f. Exercise 2 is the theorem with Q=δh, for which D(Q∥P)=ln∣H∣.
Formalization scope
The class is an arbitrary measurable space, priors and posteriors are probability measures on it, and Q(h)/P(h) is Mathlib's Radon–Nikodym derivative; the divergence is a Bochner integral, so the theorem quantifies over posteriors Q≪P whose log-density is Q-integrable, exactly the posteriors with a finite divergence, for which the bound has content, and no junk value can make a case false. Posteriors may depend on the sample: the statement bounds the outer measure of the set of samples for which some admissible Q violates the bound. The loss is jointly measurable so that h↦LD(h) and (S,h)↦LS(h) are measurable and the Gibbs risks are genuine integrals; m≥2 is forced by the denominator 2(m−1). The moment bound is stated as the claim the proof needs rather than as Exercise 1, whose printed hypothesis is insufficient; the item text records this. Exercise 2 is stated as a simultaneous bound over the finite class, the form in which the theorem delivers it.
Not stated: Remark 31.1 (a learning rule, not a theorem), Exercise 1 as printed, and the second part of Exercise 2.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 31. doi:10.1017/CBO9781107298019
An Introduction to Computational Learning Theory III: The Vapnik-Chervonenkis Dimension, ε-Nets and Sample ComplexityTextbook
Motivation
Chapter 3 of Kearns and Vazirani, An Introduction to Computational Learning Theory (MIT Press, 1994, doi:10.7551/mitpress/3897.001.0001), asks how many random examples suffice to learn a concept from an infinite class. The cardinality bound of Occam's Razor is useless there, yet the rectangle game of Chapter 1 shows that some infinite classes are learnable from a finite sample. The answer is the Vapnik–Chervonenkis dimension: the size of the largest set on which the class realizes every labeling. Sauer's lemma says that a class of VC dimension d realizes only Φd(m)=∑i≤d(im)≤(em/d)d labelings on any m points, polynomially many rather than 2m, and the ε-net theorem of Blumer, Ehrenfeucht, Haussler and Warmuth turns this into a sample bound: a consistent hypothesis from a class of VC dimension d is probably approximately correct once m is of order (1/ϵ)(log(1/δ)+dlog(1/ϵ)). A matching lower bound shows that Ω(d/ϵ) examples are necessary. The chapter thus gives a single combinatorial parameter that characterizes, up to a logarithmic factor, the sample complexity of learning any class in the distribution-free model.
Setting
For a class C of concepts X→{0,1} and a finite S⊆X, ΠC(S) is the set of dichotomies of S realized by C; S is shattered if all 2∣S∣ are realized; VCD(C) is the supremum of the sizes of shattered sets, possibly ∞; ΠC(m) is the largest ∣ΠC(S)∣ over ∣S∣=m; and Φd(m) is defined by Φd(m)=Φd(m−1)+Φd−1(m−1), Φd(0)=Φ0(m)=1. For a target c the error regions are cΔh for h in the hypothesis class, and a set of points is an ε-net if it meets every error region of weight at least ϵ under the target distribution D. Samples, their product law, consistency and the error of a hypothesis are those of Mission I.
Formalization targets
Goal: Theorems 3.3 and 3.4
Let H be a class of VC dimension at most d, well-behaved for the target c (the double-sample event of the proof is null-measurable), and m≥8/ϵ. The points of a random sample of m examples of a target c fail to be an ε-net for the error regions {cΔh:h∈H} with probability at most
2Φd(2m)2−ϵm/2,
so any algorithm that outputs a hypothesis in H consistent with its sample has error greater than ϵ with at most that probability; with m≥(4/ϵ)log2(2/δ) and m≥(8d/ϵ)log2(13/ϵ) the probability is at most δ; and, if H is nonempty, every class contained in H for whose targets H is well-behaved is PAC learnable using H.
Milestones
Lemma 3.1 (Sauer's lemma, ΠC(m)≤Φd(m)); Lemma 3.2 (Φd(m)=∑i≤d(im)); the polynomial bound Φd(m)≤(em/d)d of p. 57; Theorem 3.5 (the Ω(d/ϵ) lower bound, in the two explicit forms of its proof).
Significance
Theorem 3.3 is the fundamental theorem of PAC learning: it replaces log∣H∣ in Occam's Razor by the VC dimension and thereby covers rectangles, halfspaces, polygons, neural networks with a fixed architecture, and every class whose dichotomies grow polynomially. Its proof, the double sample and random partition argument, is the origin of symmetrization in empirical process theory. Sauer's lemma is a cornerstone of extremal combinatorics with independent proofs by Sauer, Shelah and Vapnik–Chervonenkis, and the lower bound of Theorem 3.5 shows that the upper bound is tight to within log(1/ϵ), so the VC dimension genuinely characterizes sample complexity. None of these is machine-checked. Formalizing them puts on the platform the VC dimension, the growth function and the ε-net theorem with explicit constants, stated on the same sample law as the rest of this series, and the first information-theoretic lower bound for learning.
Difficulty
Sauer's lemma is a double induction on d and m through the auxiliary class C′ of dichotomies whose two extensions to a distinguished point are both realized, which needs care with the identification of dichotomies of S and of S∖{x}. The ε-net theorem needs: the reduction Pr[A]≤2Pr[B] from a failed ε-net on the first half to a region hit at least ϵm/2 times by the second half, which is a Chebyshev bound on a binomial variable and is where m≥8/ϵ enters; the exchangeability of the 2m draws with a random partition into two halves; the counting bound (ℓm)/(ℓ2m)≤2−ℓ; and Sauer's lemma applied to the error regions, whose growth function equals that of H. The explicit constants require the numerical inequality 2(2em/d)d2−ϵm/2≤δ under the two stated conditions. The lower bound is a probabilistic argument with a random target: conditional on the sample, the labels of unseen points are fair coins, so the number of errors on them is binomial and exceeds half its range with probability at least 1/2; the refined bound scales this construction to a region of weight 16ϵ and uses Markov's inequality to bound the number of draws landing in it. Measurability of the failure sets is avoided by stating outer-measure bounds, except for the double-sample event, which the proof integrates: it is assumed null-measurable (the well-behavedness of Blumer et al., without which the theorem is false for a class of VC dimension 1 on ω1). For the lower bound it is avoided by working over a finitely supported distribution on a space with measurable singletons.
Formalization scope
The VC dimension is a supremum in N∪{∞}, the growth function a supremum in N (bounded by 2m), and Φd the book's recurrence, with its closed form and polynomial bound stated as separate theorems. The goal is stated for a hypothesis class H (Theorem 3.4), Theorem 3.3 being the case C=H; it carries the exact bound of the proof, the explicit constants of Blumer et al. in place of the book's c0, the requirement m≥8/ϵ of the proof's Chebyshev step, measurability of the hypotheses and the target, well-behavedness of H for the target, and 0<ϵ,δ<1. PAC learnability of the subclasses of H needs H nonempty, since no algorithm outputs hypotheses in the empty class. The lower bound is stated for every deterministic learning function, on an instance space with measurable singletons, for a class shattering some set of d≥1 points, with the explicit constants derived in the proof sketch (m≤d/2: error ≥1/8 with probability ≥1/2; ϵ≤1/16 and m≤(d−1)/(64ϵ): error >ϵ with probability ≥1/4). Running time is not modelled. The composition bound for layered networks (Theorems 3.6 and 3.7) is not stated.
Trivializing readings are excluded: the ε-net event ranges over every hypothesis of H, the failure bounds are uniform over all consistent learners, and the lower bound holds for every learning function. Welcome contributions: Sauer's lemma, the closed form and the (em/d)d bound, the random-partition counting lemma, and the binomial median inequality used in the lower bound.
Selected references
M. J. Kearns, U. V. Vazirani, An Introduction to Computational Learning Theory, MIT Press, 1994, Chapter 3. doi:10.7551/mitpress/3897.001.0001
A. Blumer, A. Ehrenfeucht, D. Haussler, M. K. Warmuth, Learnability and the Vapnik–Chervonenkis dimension, Journal of the ACM 36(4), 1989. doi:10.1145/76359.76371
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(2), 1971. doi:10.1137/1116025
N. Sauer, On the density of families of sets, Journal of Combinatorial Theory, Series A 13(1), 1972. doi:10.1016/0097-3165(72)90019-2
A. Ehrenfeucht, D. Haussler, M. Kearns, L. Valiant, A general lower bound on the number of examples needed for learning, Information and Computation 82(3), 1989. doi:10.1016/0890-5401(89)90002-3
High-Dimensional Probability VI: The Hanson-Wright InequalityTextbook
Motivation
Sums of independent random variables are well understood: Bernstein's inequality and its
relatives give sharp, non-asymptotic tail bounds for ∑iaiXi whenever the Xi are
independent and light-tailed. Many quantities that arise in high-dimensional statistics and
random matrix theory, however, are not linear but quadratic in an independent sample —
the squared norm of a random vector after a linear transformation, a quadratic-form
test statistic, the diagonal of a sample covariance matrix, or the number of edges cut by a
random partition in a random graph. A quadratic form X⊤AX=∑i,jAijXiXj
is a sum with dependent terms: XiXj and XiXk share the factor Xi, so classical
sum-of-independent-variables tools do not apply directly.
The Hanson-Wright inequality, first obtained by Hanson and Wright (1971) for sub-gaussian
variables and later sharpened and popularized in this form by Rudelson and Vershynin
(2013, "Hanson-Wright inequality and sub-gaussian concentration," Electronic Communications
in Probability), closes this gap: it gives a concentration inequality for X⊤AX around
its mean with the same two-regime (sub-gaussian near the center, sub-exponential in the tail)
shape as Bernstein's inequality for linear sums. It is now a standard tool wherever quadratic
statistics of independent data are analyzed: covariance estimation, compressed sensing,
randomized numerical linear algebra, and the analysis of random matrices more broadly draw on
it routinely.
Setting
Fix a probability space and let X=(X1,…,Xn) be a random vector whose coordinates
X1,…,Xn are independent, mean zero, and sub-gaussian: each Xi has a finite
sub-gaussian (Orlicz ψ2) norm ∥Xi∥ψ2, the smallest t>0 with Eexp(Xi2/t2)≤2. Write K=maxi∥Xi∥ψ2.
Let A=(Aij)i,j=1n be an n×n real matrix, with no constraint on its diagonal,
and form the quadratic form
X⊤AX=i,j=1∑nAijXiXj.
Two matrix norms measure the size of A: the Frobenius norm∥A∥F=(∑i,jAij2)1/2 (the Euclidean norm of A's entries) and the operator (spectral) norm∥A∥=sup∥x∥2=1∥Ax∥2 (the largest singular value of A). Always ∥A∥≤∥A∥F≤n∥A∥, so the two norms can differ by a factor as large as n —
the gap between them is exactly what produces the inequality's two regimes below.
Formalization targets
Goal — Theorem 6.2.1 (Hanson-Wright inequality)
P{∣X⊤AX−EX⊤AX∣≥t}≤2exp[−cmin(K4∥A∥F2t2,K2∥A∥t)]for every t≥0,
where c>0 is an absolute constant, not depending on n, X, A, or t. Stating the
constant only as "some absolute c" (rather than pinning it to a numeral) is deliberate: the
book's own proof does not track a sharp value, and a goal that only asserts the shape of the
bound survives any later improvement to c.
Significance
The result itself. Hanson-Wright turns a two-dimensional (in i,j) dependency structure
into a one-dimensional concentration statement controlled by two scalar quantities, ∥A∥F
and ∥A∥. This is what makes it usable: a practitioner bounding a quadratic statistic need
only compute these two norms, not analyze the joint dependency structure of {XiXj}
directly. It specializes to Bernstein's inequality (Chapter 2 of this book) when A is
diagonal, and it underlies non-asymptotic guarantees for covariance estimation, the
Johnson-Lindenstrauss lemma via a different route, and the concentration of Lipschitz functions
of sub-gaussian vectors.
Formalizing it. The published proof of Hanson-Wright is not a single argument but a chain
of four steps: a decoupling reduction (Section 6.1), a direct computation for Gaussian chaos
(Lemma 6.2.2), a comparison lemma extending the Gaussian bound to general sub-gaussian vectors
via a replacement trick (Lemma 6.2.3), and a final assembly that separates the diagonal part
(handled by Bernstein's inequality) from the off-diagonal part (handled by decoupling and
comparison). This mission formalizes the goal theorem's statement and the first, most reusable
link in that chain — the decoupling machinery of Section 6.1, which reduces the analysis of the
dependent chaos X⊤AX to the independent-once-conditioned bilinear form X⊤AX′ —
together with the chapter's separate contraction principle (Section 6.7), a general comparison
tool for Rademacher-weighted sums used repeatedly in the book's later chaining chapters. The
Gaussian MGF computation and the replacement-trick comparison lemma (Lemmas 6.2.2–6.2.3) are
left as future milestones on top of this mission: they require Gaussian rotation invariance and
the singular value decomposition of A, substantially more machinery than the milestones
included here.
Difficulty
The obvious first idea — treat X⊤AX=∑i,jAijXiXj as if it were a sum of
independent terms and apply Bernstein's inequality termwise — fails immediately: the terms
AijXiXj for fixed i are not independent across j, since they all share the factor
Xi. Decoupling (Theorem 6.1.1) is the non-obvious fix: it replaces the off-diagonal chaos by
a bilinear form X⊤AX′ in an independent copy X′, which genuinely does become a sum
of independent terms once one of the two vectors is conditioned on. The price is a universal
constant factor of 4 and the restriction to diagonal-free matrices, which is exactly why the
full Hanson-Wright proof must separate the diagonal contribution to EX⊤AX
(handled directly by Bernstein's inequality, Chapter 2) before decoupling can be applied to what
remains.
Formalization scope
Random variables and vectors are real-valued on an explicit probability space (Ω,F,P). The sub-gaussian norm is HighDimProb.Concentration.subgaussianNorm, the
Orlicz-ψ2-norm definition already published for this series (01-concentration), reused
here as a reference item rather than redefined. K=maxi∥Xi∥ψ2 is written as a
finite supremum over the coordinate index, ⨆ i, subgaussianNorm P (X i); because the index
type is always a Fintype (Fin n), this supremum is well-defined and, at the degenerate index
n=0, reduces to a true (if content-free) instance of the inequality rather than a vacuous or
false one. The Frobenius and operator norms of A are this mission's own frobeniusNorm and
opNorm, stated directly from their defining formulas rather than through Mathlib's scoped
matrix-norm typeclass instances, which are deliberately not global defaults (to avoid a diamond
between the two norms) and so are unsuitable for a statement that needs both simultaneously.
Every place the goal or a milestone integrates a quantity, that quantity is required
Integrable, guarding against Mathlib's convention of returning 0 for the Bochner integral of
a non-integrable function — without these hypotheses, a mean-zero or expectation hypothesis
could hold vacuously, or a conclusion could hold trivially, for reasons having nothing to do
with the book's mathematics.
The formalization deliberately does not restrict A's diagonal in the goal theorem: doing
so would collapse Hanson-Wright to a restatement of Bernstein's inequality for the special case
of a diagonal matrix, discarding the chapter's actual content, which is handling the
off-diagonal, genuinely quadratic dependence between coordinates. The diagonal-free restriction
does appear, correctly, in the Decoupling theorem (6.1.1), whose proof needs it.
Reusable beyond this mission: frobeniusNorm and opNorm are needed by any future chapter
using matrix norms (Chapter 4's random matrix norms, Chapter 9's matrix deviation inequality);
the decoupling theorem and convex decoupling lemma are the standard entry point for any later
formalization of chaos concentration; the contraction principle is reused throughout the book's
chaining chapters (7 and 8). Welcome contributions include the Gaussian MGF and comparison
lemmas (6.2.2–6.2.3) needed to complete a full proof of the goal theorem, and the two-sided
version of Bernstein's inequality needed for the diagonal part of that proof.
Selected references
R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data
Science, Cambridge University Press, 2018. DOI: 10.1017/9781108231596.
D. L. Hanson, F. T. Wright, "A bound on tail probabilities for quadratic forms in independent
random variables," Annals of Mathematical Statistics 42 (1971), 1079–1083.
M. Rudelson, R. Vershynin, "Hanson-Wright inequality and sub-gaussian concentration,"
Electronic Communications in Probability 18 (2013), no. 82, 1–9.
https://arxiv.org/abs/1306.2872
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 X with mean μ=E[X] is sub-Gaussian with parameter σ
(Definition 2.2) if E[eλ(X−μ)]≤eσ2λ2/2 for all
λ∈R; it is sub-exponential with parameters (ν,α) (Definition 2.7,
a strictly milder condition) if the same bound holds only for ∣λ∣<1/α, with the
convention 1/0=+∞ so that α=0 recovers the sub-Gaussian case exactly.
A sequence {Dk}k≥1, adapted to a filtration {Fk}, is a martingale
difference sequence if each Dk is Fk-measurable and
E[Dk∣Fk−1]=0. Such sequences arise throughout statistics via the
Doob martingale construction: given a function f of independent variables
X1,…,Xn, setting Dk:=E[f(X)∣X1,…,Xk]−E[f(X)∣X1,…,Xk−1] telescopes to f(X)−E[f(X)]=∑kDk, converting a deviation
question about f(X) into a martingale concentration question.
A function f:Rn→R is L-Lipschitz with respect to the Euclidean norm
if ∣f(x)−f(y)∣≤L∥x−y∥2 for all x,y (Eq. (2.38)).
Formalization targets
Goal — Theorem 2.26 (Gaussian concentration of Lipschitz functions)
Let (X1,…,Xn) be i.i.d. standard Gaussian and f be L-Lipschitz with respect to the
Euclidean norm. Then f(X)−E[f(X)] is sub-Gaussian with parameter at most L, and
hence
P[∣f(X)−E[f(X)]∣≥t]≤2e−t2/2L2for all t≥0.
The bound is dimension-free: it depends on n only through f's Lipschitz constant, not the
ambient dimension itself.
For any differentiable f and convex φ,
E[φ(f(X)−E[f(X)])]≤E[φ(2π⟨∇f(X),Y⟩)] for X,Y∼N(0,In) independent — the interpolation identity Theorem 2.26's
proof is built on.
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 for ∣λ∣<1/αk, the sum ∑kDk is itself sub-exponential
with parameters (∑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)] directly via a
Lipschitz-type argument in Rn — has no obvious route to a dimension-free bound,
since a union bound over coordinates (or over an ε-net of the domain) picks up a
factor that grows with n. 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)] with the linear, and hence exactly
computable, Gaussian quantity ⟨∇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 n times
while keeping track of the interplay between the two parameters ν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 0 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) 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⟩ is realized as
fderiv ℝ f (X ω) (Y ω), the Fréchet derivative applied to Y(ω) — equal to
⟨∇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,α∗)," is formalized
as (∑kνk2,α∗): Definition 2.7 parametrizes the sub-exponential MGF bound
by ν (with ν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.
Foundations of Reinforcement Learning III: Structured Bandits and the Decision-Estimation CoefficientTextbook
Motivation
Every algorithm in the first three chapters of Foster and Rakhlin's Foundations of
Reinforcement Learning and Interactive Decision Making — ε-Greedy and UCB for the
multi-armed bandit, Inverse Gap Weighting and SquareCB for contextual bandits — is a
special case of the same two-step recipe: estimate a model of the world with an online
regression oracle, then convert the estimate into a decision that trades exploration
against exploitation. Chapter 4 asks whether this recipe can be made generic: given
any structured decision-making problem, specified only by a function class F and a
decision space Π, is there a single quantity that governs the best achievable
regret, the way A/γ governs the multi-armed bandit and d/γ
governs the linear bandit? The chapter's answer is the Decision-Estimation
Coefficient (DEC), introduced by Foster, Kakade, Qian, and Rakhlin [40] as a
complexity measure that both upper- and lower-bounds achievable regret for a general
decision-making protocol, unifying results that were previously proved from scratch,
case by case, for each structured setting. This mission formalizes the chapter's
central upper bound (Proposition 13) together with the machinery that makes it
computable in two concrete cases — the multi-armed bandit (Proposition 14) and the
linear bandit (Propositions 16–17).
Setting
Fix a finite decision space Π and a class F⊆RΠ of candidate
mean-reward functions, with a ground-truth f⋆∈F (realizability). Over T
rounds, at each round t the learner observes an estimate f^t produced by an
online regression oracle, plays a decision distribution pt∈Δ(Π)
(possibly depending on f^t and the history), and the regret is
Reg:=t=1∑Tf⋆(π⋆)−t=1∑TEπ∼pt[f⋆(π)],
where π⋆=argmaxπf⋆(π). The oracle's cumulative estimation
error is assumed bounded: ∑t=1TEπ∼pt[(f^t(π)−f⋆(π))2]≤EstSq(F,T,δ) with probability at least 1−δ
(Definition 7). Writing πf:=argmaxπf(π), the DEC game value at a
reference model f^ and scale γ>0 is the min-max quantity
and the DEC of F itself is decγ(F):=supf^∈co(F)decγ(F,f^). The Estimation-to-Decisions (E2D) algorithm plays,
at each round, a pt certifying (i.e. attaining or beating) the value of this min-max
game at f^t.
Formalization targets
Goal — Proposition 13 (E2D regret bound)
Reg≤decγ(F)⋅T+γ⋅EstSq(F,T,δ)
with probability at least 1−δ, for any exploration parameter γ>0. This
is the weakest stable statement the chapter proves about E2D: it holds for an
arbitrary function class and an arbitrary regression oracle, with no structural
assumption on F beyond realizability, and the chapter's later sections instantiate
it rather than strengthen it.
Milestones
Lemma 9 (Decoupling), general form: for any distribution ν over a finite
model class and any fˉ, Ef∼ν[f(πf)−fˉ(πf)]≤A⋅Ef∼νEπ∼p[(f(π)−fˉ(π))2] —
the estimation-to-decisions bridge the whole chapter's approach rests on, decoupling
the model index from the played decision.
Proposition 14 (IGW minimizes the DEC): for the multi-armed bandit (Π=[A],
F=RA), Inverse Gap Weighting is the exact minimizer of the DEC game,
giving decγ(F)=(A−1)/(4γ) — the first concrete computation of
an abstract quantity, recovering Chapter 3's rate from Proposition 13 alone.
Proposition 16 (G-optimal design): existence, for any compact
full-dimensional-span set Z⊆Rd, of a distribution p with
supz∈Z⟨Σp−1z,z⟩≤d — the classical convex-analysis
primitive Proposition 17 needs.
Proposition 17 (DEC for linear bandits): combining the G-optimal design with
inverse gap weighting gives decγ(F)≲d/γ for the linear
bandit function class, leading via Proposition 13 to a dT regret bound.
Significance
The Decision-Estimation Coefficient is, in the book's own words, "the main result" of
this line of work: Foster, Kakade, Qian, and Rakhlin [40] show it is not merely an
upper bound but (in a suitable localized form, developed further in Chapter 6) a
tight characterization of the minimax regret for structured bandits and, more
generally, for the interactive decision-making protocol the rest of the book studies.
Proposition 13 is the mechanism that makes this useful in practice: it reduces regret
analysis for a new structured problem to a single, purely convex-analytic computation
of decγ(F), in place of a bespoke exploration argument. Propositions
14–17 are the demonstration that this reduction is not vacuous — they recompute, via
the DEC alone, the two rates (multi-armed and linear bandit) that earlier chapters of
the book derived by direct, setting-specific arguments, and the match is exact.
Formalizing this chapter therefore captures the book's unifying abstraction itself,
not just one more instance of it. No formalization of the Decision-Estimation
Coefficient, in any form, currently exists on the platform (see Formalization scope).
Difficulty
The obvious formalization mistake is to state Proposition 13's conclusion with
decγ(F) left as an unconstrained free real-number parameter satisfying
only the inequality the theorem asserts — a formalization under which the "theorem"
would be a triviality about an arbitrary real number, since nothing about the actual
min-max game would ever be checked. The chapter's content is precisely the opposite:
that this specific minimax quantity can be computed (Proposition 14) or bounded
via a concrete strategy (Proposition 17), and — as Chapter 6 shows for a lower bound
outside this chunk's scope — that no smaller quantity would do. A second difficulty is
proof-theoretic rather than notational: the book's own proof of Proposition 13 bounds
regret by an unconstrained supremum over all reference functions f^:Π→R, and only identifies this with the official, co(F)-restricted
decγ(F) of Eq. (4.16) via Proposition 24 — a fact stated on p. 80,
outside this chapter's numbered range, whose own proof the book defers to an exercise.
A formalization that quietly imports Proposition 24 to close this gap would rest the
goal theorem on an unverified fact; this mission instead states the hypothesis the
book's own text uses to motivate restricting to co(F) in the first place
(online estimation algorithms produce f^t∈co(F)), so the goal is
faithful to what is actually established within the chapter's own pages.
Formalization scope
Every item fixes a finite decision space (Fin A, Fin n, or a generic Fintype S)
and states the DEC as the literal sInf-of-sSup transcription of the min-max game
(Eqs. (4.15)–(4.16)), never as an opaque bound — this is the trivializing
formalization the chunk's own reading of the chapter rules out (see Difficulty).
piStar : (S → ℝ) → S is a hypothesized global maximizer selector throughout,
constrained to be a genuine argmax only on the function class in scope (F or
Set.univ), matching how the book treats πf as a fixed but arbitrary
tie-breaking choice. The goal theorem (Proposition 13) adds the explicit hypothesis
hfhat : ∀ t, fhat t ∈ convexHull ℝ F, replacing an appeal to the out-of-range
Proposition 24 (see Difficulty); this is the one place this mission's statement is not
a line-by-line transcription of the book's own displayed proof steps, and it is
recorded here and in MODERATION_NOTES.md. Proposition 14's and Proposition 17's
≲ are replaced by the explicit constants the book's own proofs establish
((A−1)/(4γ) exactly, and (4d+1)/(2γ) respectively — the latter obtained
by summing the three terms the proof of Proposition 17 isolates). Proposition 14's
Lean statement splits the book's single equality decγ(F,f^)=(A−1)/(4γ) into an upper bound on the literal decGf, a lower bound restricted
to full-support distributions, and IGW's own exact game value, because the book's
min over the whole simplex is not provable as a literal Lean equality: a
distribution with a zero-weight arm makes the inner supremum genuinely unbounded, and
Lean's total Real.sSup returns a junk value smaller than (A−1)/(4γ) there
(caught in moderation, MODERATION_NOTES.md); the three-conjunct statement recovers
exactly the book's real content without asserting that false literal equality. Lemma 9
is restated
inside FoundationsRL.Structured rather than imported from the Chapter 2 mission,
since draft items across chunks cannot import one another; its source citation still
points to its original location (p. 32). Proposition 16 is not drafted: the
platform's existing BanditAlgorithm.kiefer_wolfowitz_equivalence (Lattimore &
Szepesvári, Theorem 21.1) states the identical existence claim — compact set with
full-dimensional span, a design with G-value at most d — as one clause of a larger
equivalence, and is reused as a reference item rather than redrafted. Proposition 22
(primal/dual DEC equivalence, §4.4) is deliberately excluded: the book states it "under
mild regularity conditions" it does not pin down in the statement itself, which is
exactly the kind of unquantified hypothesis this series' faithfulness standard
excludes from a goal or milestone. Contributions extending this mission with Chapter
6's lower bound (matching decγ(F) from below, establishing tightness)
or with a formalization of Proposition 24 itself (removing this mission's hfhat
hypothesis) are welcome.
Selected references
D. Foster, S. Kakade, J. Qian, and A. Rakhlin, The Statistical Complexity of Interactive Decision Making, arXiv:2112.13487, 2021. https://arxiv.org/abs/2112.13487
D. Foster and A. Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730, 2023. https://arxiv.org/abs/2312.16730
T. Lattimore and C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020.
J. Kiefer and J. Wolfowitz, The Equivalence of Two Extremum Problems, Canadian Journal of Mathematics, 1960.
Modern A/B tests must infer lifetime treatment effects — e.g. customer lifetime value under a new feature — from short-horizon experiment data. Chen, Simchi-Levi and Wang (arXiv:2407.19618) model the experiment as a Markov decision process and exploit a structural fact of many practical interventions: the treatment is local, modifying the system at a single crucial state only. This mission formalizes the core asymptotic theory of the paper: for any differentiable estimator built from the experiment's transition and reward statistics, information sharing — pooling across test arms the samples collected away from the treated state — keeps the estimator asymptotically normal with the same asymptotic bias and never increases its asymptotic variance (Theorem 9), and is asymptotically efficient among unbiased estimators (Theorem 5). The route runs through a Markov chain central limit theorem with the asymptotic variance identified as the autocovariance series, and the linearization/delta method for functionals of chain statistics.
Matrix Completion has No Spurious Local MinimumResearch Paper
Matrix completion — recovering a low-rank matrix M=ZZ⊤ from a small random subset of its entries — powers recommender systems and collaborative filtering. In practice it is solved by running (stochastic) gradient descent on the non-convex objective
f(X)=Xmin21∥PΩ(M−XX⊤)∥F2+λR(X)
where Ω={(i,j)∣Mi,j is observed} and R(X) is a certain regularizer. from a random starting point, and it just works.
Ge, Lee and Ma (NeurIPS 2016 Best student paper award) explained why: the regularized objective has no spurious local minima — every local minimum is global and exactly recovers M. This mission formalizes that landmark theorem in Lean 4, in its strongest known form and along its simplest known proof: the unified landscape analysis of Ge–Jin–Zheng (ICML 2017) and an improved sampling bound in Chen–Li (JMLR 2019). Conditional on an explicit good-sample predicate (which holds with high probability under Bernoulli sampling), every local minimum X of f satisfies XX⊤=ZZ⊤.
The Dantzig Selector: Statistical Estimation When p Is Much Larger than n 2: Oracle Inequality within a Logarithmic Factor of the Ideal Mean Squared ErrorResearch Paper
Motivation
Many regression problems have far more unknown coefficients p than observations n: gene expression studies with tens of samples and thousands of genes, imaging from few measurements, nonparametric curve recovery from a finite number of noisy samples. Estimation is hopeless in general, but becomes possible when the parameter is sparse, that is, has few nonzero entries. Candès and Tao (arXiv:math/0506081; Ann. Statist. 35(6), 2007, doi:10.1214/009053606000001523) proposed the Dantzig selector, an estimator computed by a single linear program, and showed that its squared error is within a logarithmic factor of what an oracle that knew which coefficients matter could achieve.
The estimator became one of the two standard ℓ1 methods for high-dimensional regression, alongside the Lasso; the comparison of the two by Bickel, Ritov and Tsybakov (arXiv:0801.1095, 2009) is built on it. This mission targets the paper's main result, the oracle inequality (Theorem 1.2). A companion mission covers the simpler ℓ2 bound for sparse parameters (Theorem 1.1).
Setting
Observations follow the linear model
y=Xβ+z,
where X∈Rn×p is a deterministic design matrix with columns X1,…,Xp, each of Euclidean norm ∥Xj∥ℓ2=1; β∈Rp is an unknown deterministic parameter; and z=(z1,…,zn) has independent N(0,σ2) coordinates, σ>0. The vector β is S-sparse if at most S of its entries are nonzero.
Two constants of X measure how close sparse sets of columns are to being orthonormal. The restricted isometry constantδS is the smallest δ≥0 such that (1−δ)∥c∥ℓ22≤∥Xc∥ℓ22≤(1+δ)∥c∥ℓ22 for every c supported on at most S indices. The restricted orthogonality constantθS,S′ (defined for S+S′≤p) is the smallest θ≥0 with ∣⟨Xc,Xc′⟩∣≤θ∥c∥ℓ2∥c′∥ℓ2 whenever c,c′ are supported on disjoint sets of sizes at most S and S′. Below δ:=δ2S and θ:=θS,2S.
For a tuning level λp>0, a Dantzig selectorβ^ is any solution of
The ideal mean squared error is ∑i=1pmin(βi2,σ2): the risk of an oracle that keeps exactly the coordinates above the noise level.
Formalization targets
Goal: Theorem 1.2 (pp. 8–9)
Let t>0, a≥0, and λp:=(1+a+t−1)2logp. If β is S-sparse and δ2S+θS,2S<1−t, then with probability exceeding 1−(πlogp⋅pa)−1 every Dantzig selector obeys
Lemma 3.2: ∥Xβ∥ℓ2≤1+δ(∥β∥ℓ2+(2S)−1/2∥β∥ℓ1) for every β.
Lemma A.1 (dual sparse reconstruction, ℓ2 version): for c supported on ∣T∣≤2S, a vector β on T whose correlations ⟨Xβ,Xj⟩ equal cj on T and are small off T except on an exceptional set of size at most S, with bounds (6.1)–(6.6).
Corollary A.2 (ℓ∞ version): the same without exceptional set, constants 1/(1−δ−θ).
Corollary A.3 (constrained thresholding): an S-sparse β with ∥β∥ℓ2<λS splits as β′+β′′ with β′ small in ℓ2 and ℓ1 and ∥X∗Xβ′′∥ℓ∞<1−δ−θ1−δ2λ.
Gaussian tail bound (Section 3, p. 15): P(supj∣⟨z,Xj⟩∣>u)≤2pφ(u)/u for standard Gaussian noise.
Lemma 3.1: the ℓ2 mass of h on T0 and its top S positions outside T0 is controlled by ∥XT01TXh∥ℓ2 and ∥h∥ℓ1(T0c).
Significance
The result. Theorem 1.2 says that a single linear program, which knows neither the support of β nor which coefficients exceed the noise, matches the oracle risk ∑imin(βi2,σ2) up to a factor O(logp), uniformly over S-sparse parameters and with explicit, nonasymptotic constants. For coefficients well below the noise level it is far sharper than the σ2Slogp bound of Theorem 1.1. It is the template for later oracle inequalities for ℓ1-penalized estimators under restricted isometry or restricted eigenvalue conditions.
Formalizing it. The theorem is proved in the paper, but parts of the argument are only sketched: Corollary A.2 refers to the 2005 Decoding by Linear Programming paper for its convergence argument, and Corollary A.3's ℓ1 bound is printed with a constant its own proof does not deliver. A machine-checked proof settles these steps. The restricted isometry and orthogonality constants used here are already published on the platform from the decoding series; the appendix lemmas on dual vectors are reusable for any compressed-sensing result in that framework. No formalization of the Dantzig selector's oracle inequality is known to us.
Difficulty
The natural proof compares β^ with the hard-thresholded parameter β(1) that keeps only the large coefficients: if β(1) were feasible for the Dantzig constraint, the analysis of Theorem 1.1 would apply directly. It is not feasible in general, because the small coefficients β(2), though individually below the noise level, can add up to a large correlation X∗Xβ(2). The central difficulty is to split β(2) into a part with controlled ℓ1 and ℓ2 norm and a part invisible to the constraint; this requires constructing dual vectors with prescribed correlations (Lemma A.1, Corollary A.2), via an iterative, geometrically convergent correction. The probabilistic part is a Gaussian tail estimate plus a union bound, and the bookkeeping of constants must be carried through exactly.
Formalization scope
Vectors are functions Fin p → ℝ, the design is Matrix (Fin n) (Fin p) ℝ, and the noise is a family z : Fin n → Ω → ℝ of mutually independent random variables (iIndepFun) each with law gaussianReal 0 σ². δ2S and θS,2S are the published CandesTao.Decoding.restrictedIsometryConst X (2*S) and restrictedOrthogonalityConst X S (2*S) (infima, absolute value in the orthogonality condition). Domain: S≥1 and 3S≤p (the paper defines θS,S′ for S+S′≤p), which forces p≥3 and logp>0. A Dantzig selector is anyℓ1 minimizer over the feasible set; the ℓ∞ constraint is a bound on every coordinate.
The goal bounds from above the (outer) probability of the bad event "no Dantzig selector exists, or some Dantzig selector violates (1.13)". Because the event includes non-existence, a definition no vector satisfies cannot make the theorem vacuous; and the constant C2 is the printed (1.14), evaluated at δ2S, θS,2S of X, not a free constant chosen after the fact.
Corrected constant: Corollary A.3 is stated with ∥β′∥ℓ1≤21−δ−θ1+δ∥β∥ℓ22/λ, the bound its proof gives once Corollary A.2 is applied at an integer sparsity level; the printed statement omits the factor 2. Corollary A.2 carries Lemma A.1's standing hypothesis δ+θ<1. The deterministic lemmas (3.1, 3.2, A.1–A.3) assume nothing about column norms, since their statements do not need it.
Useful infrastructure: monotonicity of δS and θS,S′ in their indices (the proof applies the lemmas at a smaller sparsity level), the Gaussian tail bound 1−Φ(u)<φ(u)/u, existence of minimizers of the Dantzig linear program, and a sorting/blocking toolkit for "the S largest positions". Proofs of individual milestones are welcome independently.
P. Bickel, Y. Ritov and A. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4):1705–1732, 2009. arXiv:0801.1095, doi:10.1214/08-AOS620
D. Donoho and I. Johnstone, Ideal spatial adaptation by wavelet shrinkage, Biometrika 81(3):425–455, 1994. doi:10.1093/biomet/81.3.425
Shadow Tomography of Quantum States 2: Even the Classical Special Case Needs Ω(min{D, log M}/ε²) CopiesResearch Paper
Why the copy count matters
Shadow tomography asks for predictions of many specified measurements of an unknown quantum state, while using as few prepared copies of that state as possible. The requested output is a list of acceptance probabilities, not a full description of the state. A procedure might exploit the fact that these are only M numbers, even when the state has dimension D. The natural question is how far this saving can go. Aaronson's paper gives upper bounds and separates two sources of difficulty: one already present for ordinary probability distributions, and one arising from noncommuting quantum measurements.
This mission concerns the first source. It formalizes Theorem 16, which says that even when the state and every requested measurement are diagonal in the same basis, the number of copies must grow with min{D,logM}/ε2 in the relevant asymptotic regime. In that special case, the unknown state is an ordinary distribution on D outcomes. The theorem therefore puts a limit on any proposed improvement to shadow tomography that would promise fewer copies in all instances.
States, measurements, and estimates
A mixed stateρ on a D-dimensional system is a positive semidefinite D×D complex matrix with trace one. A two-outcome measurement is represented by an effect E satisfying 0⪯E⪯I; it accepts ρ with probability Tr(Eρ). When ρ is diagonal, its diagonal entries are the probabilities of the D basis outcomes. When E is diagonal too, it specifies a randomized yes-or-no test on those outcomes. These conventions are stated in Section 3 of the paper.
Given effects E1,…,EM, a shadow-tomography strategy measures k independent copies ρ⊗k and outputs estimates b1,…,bM. It succeeds on ρ when every estimate differs from Tr(Eiρ) by at most ε. The lower bound requires success probability at least 2/3 for every diagonal mixed state. The strategy may make a joint quantum measurement on all copies and may choose its estimates from its observed outcome. This is the same measurement model used in Problem 1.
Formalization targets
Classical special-case lower bound
The goal is the classical clause of Theorem 16. There are absolute constants c>0 and N0 such that, for D≥N0, log2M≥N0, and 0<ε≤1/6, there are M diagonal effects with 0/1 entries, corresponding to the known Boolean functions in Section 6.1, for which every strategy successful on all diagonal states must use
k≥cε2min{D,log2M}.
The hard measurements are chosen before the strategy is quantified. The statement therefore also rules out a strategy with a smaller copy count that works uniformly for all quantum states and measurements. Its constants and threshold express the Ω notation in Theorem 16, rather than specifying a numerical optimum.
Supporting targets
Four milestones come from the proof on pages 20–21: the high-probability overlap bound for independently chosen half-size subsets (Eq. (1)); the acceptance probability of a subset under its associated biased distribution; an upper bound on the mutual information between the hidden subset index and the observed samples; and the exact entropy formula with a quadratic entropy deficit. These statements expose the combinatorial and information-theoretic parts of the lower bound while leaving the goal as the paper's copy-complexity result.
What the result supplies
Theorem 16 sets a floor for shadow tomography that survives even when all operators commute. Any uniform copy bound for the full quantum task must respect this floor. The result also distinguishes the difficulty of predicting many properties of a distribution from the extra difficulty possible for noncommuting states and measurements, which the paper treats in a separate lower bound. Section 6 presents both bounds.
A complete formalization would give machine-checked statements and proofs for the finite subset construction, the entropy calculation, the information inequality, and the reduction from a successful quantum measurement procedure on diagonal states to a lower bound on k. The theorem is proved on paper; these draft statements are open Lean goals and do not claim that its proof has been machine checked. The finite-distribution and information-theory infrastructure is reusable for other lower bounds based on hidden-index families.
Where the argument is delicate
Counting how many possible measurements there are does not by itself show that samples reveal enough about which distribution generated them. The lower bound needs a quantitative relation between estimation accuracy and information about a hidden index, while each individual sample carries limited information. The paper's printed overlap condition (1) is too weak for the next displayed ε/2 estimate: at its boundary it gives ε. The milestone preserves Eq. (1) as printed; closing the goal requires the correspondingly sharper overlap fact with N/24, which follows from the same type of concentration statement after adjusting its constant. The printed assertion that learning the index requires mutual information at least log2K is also imprecise at success probability 2/3; a quantitative decoding inequality is needed. Neither incorrect display is a draft milestone.
Formalization scope
Matrices are indexed by Fin D. WildeQIT.IsDensityOperator supplies the mixed-state predicate ρ⪰0 and Tr(ρ)=1. Diagonal states and effects use the standard matrix diagonal predicate. An effect is positive semidefinite together with its complement. The tensor power uses functions Fin k → Fin D as basis indices; at k=0 it is a one-by-one identity matrix. A strategy is a finite-outcome POVM on that tensor power, followed by a real estimate vector for each outcome. The output values are not restricted to [0,1]: clipping them to this interval cannot worsen an estimate of a probability. No restriction to classical estimators is placed in the goal; that would change the allowed strategies before the theorem has been proved.
The asymptotic threshold excludes the one-dimensional and single-measurement corners where the claimed rate does not describe the problem. The bound ε≤1/6 keeps the biased distributions used on page 20 nonnegative; ε≥1/2 would permit a zero-copy constant estimate. Subset milestones require even N or explicitly require a half-size subset, so N/2 has its intended meaning. The natural logarithm appears nowhere in the lower-bound rate; entropy, mutual information, and log2M use base two. At zero probability the entropy convention is 0log0=0.
The finite distributions, entropy, conditional entropy, and mutual information reuse the published WildeQIT definitions. Contributions that prove the four source milestones, establish the sharper overlap fact, or supply the quantitative decoding step are welcome. The goal must retain its order of quantifiers: one hard measurement family, then every strategy, with success demanded on every diagonal state.
Selected references
Scott Aaronson, Shadow Tomography of Quantum States, arXiv preprint arXiv:1711.01053v2, 2018. Preprint.