The science of systems that learn from data and experience. Its scope runs from the statistical and mathematical foundations of learning, including generalization, expressivity, and computational limits, through the design of learning algorithms, deep learning, reinforcement learning, and probabilistic methods, to the empirical study of large models and the trustworthiness, interpretability, and societal impact of learned systems.
The Principles of Deep Learning Theory II: Deep Linear Networks at InitializationTextbook
Motivation
Chapter 3 of The Principles of Deep Learning Theory by D. A. Roberts and S. Yaida (arXiv:2106.10165) is the book's first complete example of its effective-theory method. For deep linear networks at initialization, the two- and four-point correlators of the network outputs can be computed exactly at any width and depth. The resulting formulas exhibit, in the simplest setting, the phenomena that organize the rest of the book: criticality of the weight variance CW=1, non-Gaussianity that grows with depth, and the depth-to-width ratio ℓ/n as the parameter controlling deviations from the infinite-width limit. This mission formalizes §§3.1–3.3. It is the second mission in a series formalizing the book (namespace DeepLearningTheory).
Setting
A deep linear network with widths n0,n1,n2,… (all positive) and zero biases maps an input x∈Rn0 to preactivations
(eqs. 3.1–3.2 with b(ℓ)=0). At initialization all weights Wij(ℓ) are independent centered Gaussians with E[Wi1j1(ℓ)Wi2j2(ℓ)]=δi1i2δj1j2CW/nℓ−1 (eq. 3.4), with a layer-independent CW≥0. For inputs xα1,xα2 let Gα1α2(0)=n01∑jxj;α1xj;α2 (eq. 3.9).
Formalization targets
Goal: the exact four-point correlator (eqs. 3.21, 3.25)
For every layer ℓ≥1, a single input x, and neurons i1,…,i4,
Eqs. (3.12), (3.15) — two-point correlator in layer ℓ: δi1i2CWℓGα1α2(0).
Eq. (3.18) — first-layer four-point correlator.
Eq. (3.20) — the layer-to-layer recursion for the four-point correlator.
Eqs. (3.21)–(3.24) — the recursion G4(ℓ+1)=CW2(1+2/nℓ)G4(ℓ) for the coefficient of the Wick tensor structure.
Eq. (3.30) — the connected four-point correlator between two distinct neurons, G4(ℓ)−(G2(ℓ))2.
Significance
The closed forms show that a deep linear network is exactly Gaussian only in the strict infinite-width limit: at criticality CW=1 the connected four-point correlator (3.29)–(3.30) is [∏(1+2/nℓ′)−1](G(0))2≈n2(ℓ−1)(G(0))2 for equal widths n, the first appearance of the depth-to-width ratio as the book's emergent scale. The same recursive method is reused for nonlinear networks in Chapters 4–5. The results are exact computations in the book; this mission formalizes them.
Difficulty
Each correlator is an expectation of a polynomial in exponentially many Gaussian weights. The book's recursion uses that the layer-(ℓ+1) weights are independent of the layer-ℓ preactivations, followed by Wick contraction of the two or four new weights. In Lean this requires independence of a weight family from a measurable function of the earlier layers, integrability of products of Gaussian polynomials, and careful handling of the Kronecker-delta bookkeeping in the sums (3.23).
Formalization scope
Widths are n : ℕ → ℕ with n 0 the input dimension; neural indices are 0,…,nℓ−1. Weights are a random field W : Ω → ℕ → ℕ → ℕ → ℝ on a probability space, only entries Wij(ℓ) with ℓ≥1, i<nℓ, j<nℓ−1 are used.
IsLinearNetInit P n CW W states mutual independence of all these weights and that each has law gaussianReal 0 (CW / n (ℓ-1)).
linearPreact n (W ω) x ℓ i is zi(ℓ)(x); inputKernel (n 0) x₁ x₂ is Gα1α2(0); kron and wickDelta4 are the Kronecker delta and the three-term tensor structure.
Widths are assumed positive where the source's formulas require it (division by nℓ, nonempty hidden layers). Every hypothesis is satisfiable by a product of independent Gaussians.
Selected references
D. A. Roberts, S. Yaida (with B. Hanin), The Principles of Deep Learning Theory, Cambridge University Press, 2022, Chapter 3. arXiv:2106.10165
B. Hanin, M. Nica, Products of many large random matrices and gradients in deep neural networks, Commun. Math. Phys. 376 (2020). arXiv:1812.05994
The Principles of Deep Learning Theory III: Preactivation Statistics in the First Two LayersTextbook
Motivation
Chapter 4 of The Principles of Deep Learning Theory by D. A. Roberts and S. Yaida (arXiv:2106.10165) begins the analysis of general multilayer perceptrons (MLPs) with a nonlinear activation function σ at initialization. The first layer is exactly Gaussian; the second layer is the first place where non-Gaussianity appears, as a connected four-point correlator suppressed by 1/n1 and governed by the four-point vertexV(2). This mission formalizes §§4.1–4.2, which are exact at any width. It is the third mission in a series formalizing the book (namespace DeepLearningTheory) and reuses the definitions of Mission II (Deep Linear Networks at Initialization).
Setting
An MLP with widths n0,n1,n2,… and activation σ:R→R maps inputs xα∈Rn0 to preactivations
(eqs. 4.2, 4.30). At initialization all biases and weights are independent centered Gaussians with E[bi(ℓ)bj(ℓ)]=δijCb(ℓ) and E[Wi1j1(ℓ)Wi2j2(ℓ)]=δi1i2δj1j2CW(ℓ)/nℓ−1 (eqs. 4.3–4.4). The first-layer metric is Gα1α2(1)=Cb(1)+CW(1)n01∑jxj;α1xj;α2 (eq. 4.8), and ⟨F(zα1,…,zαm)⟩g denotes the expectation over a centered Gaussian vector (zα) with covariance g (eq. 4.25), with σα≡σ(zα).
Eq. (4.9) — first-layer four-point correlator is the Wick value.
Eq. (4.23) — the first-layer preactivations are exactly Gaussian with covariance δi1i2Gα1α2(1).
Eqs. (4.27), (4.28), (4.29) — activation correlators in the first layer as Gaussian expectations.
Eq. (4.40) — two-point correlator of the second-layer metric fluctuation.
Eq. (4.41) — second-layer two-point correlator.
Significance
These identities are the base case of the book's recursion (Chapter 4.3 onward) for the kernel and four-point vertex in deeper layers, and they show concretely that a finite-width network is not a Gaussian process: the 1/n1 connected correlator is generically nonzero for nonlinear σ. The results are exact computations in the book; this mission formalizes them.
Difficulty
The second layer is a Gaussian conditional on the first layer, with a random covariance (the stochastic metric, eq. 4.36). Turning this into unconditional correlators requires conditioning on the first-layer preactivations, independence of different first-layer neurons, and the identification of first-layer activation correlators with Gaussian expectations over the metric G(1), which may be degenerate (e.g. repeated inputs). Integrability of σ against Gaussians must be controlled.
Formalization scope
Definitions from Mission II are reused: kron, inputKernel, WeightIndex. New definitions: mlpPreact (zi(ℓ)(x)), IsMLPInit (independent Gaussian biases and weights with layer-dependent Cb(ℓ),CW(ℓ)), firstLayerMetric (G(1) on finitely many inputs), gaussAvg (⟨⋅⟩g, via Mathlib's multivariateGaussian, which handles singular positive-semidefinite g), and HasPolyGrowth.
Statements about activations assume σ measurable with polynomial growth, the standing convention guaranteeing that all Gaussian averages are finite; this covers ReLU, tanh, sigmoid, GELU, SWISH and the perceptron step function.
The sample set is Fin D (for the specific statements, D=2 or 4 inputs, possibly repeated). n1>0 is assumed where the formulas divide by n1.
Selected references
D. A. Roberts, S. Yaida (with B. Hanin), The Principles of Deep Learning Theory, Cambridge University Press, 2022, Chapter 4. arXiv:2106.10165
Chapter 13 showed that convex-Lipschitz-bounded and convex-smooth-bounded problems are learnable by regularized loss minimization; Chapter 14 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) shows how to learn them with the simplest possible algorithm. Gradient descent moves against the gradient with a fixed step size and outputs the average of its iterates; its analysis (Lemma 14.1) is a single telescoping identity that bounds ∑t⟨w(t)−w⋆,vt⟩ for any sequence of directions vt, and this generality is the whole point. It gives the rate Bρ/T for convex Lipschitz functions (Corollary 14.2), extends to nondifferentiable functions through subgradients (Definition 14.4, Lemmas 14.3 and 14.7), and, because it never used that the directions were gradients, extends to stochastic gradient descent, in which each direction is random with a subgradient as its conditional expectation (Theorem 14.8). Applied to the risk LD(w) with a fresh example at each step, SGD is a learning algorithm whose sample complexity is the iteration count: B2ρ2/ϵ2 examples for convex-Lipschitz-bounded problems (Corollary 14.12) and 12B2β/ϵ2 for convex-smooth-bounded ones (Theorem 14.13, Corollary 14.14). A projected, decreasing-step variant for strongly convex objectives has rate (ρ2/(2λT))(1+logT) (Theorem 14.11).
Setting
Hypotheses are vectors in Rd; convex, Lipschitz and smooth losses, convex-Lipschitz-bounded and convex-smooth-bounded problems, and strong convexity are those of Mission IX. A vector v is a subgradient of f at w if f(u)≥f(w)+⟨u−w,v⟩ for all u. The iterates of an update rule w(1)=0, w(t+1)=w(t)−ηvt are indexed from 0, and the output after T steps is wˉ=T1∑t<Tw(t). The randomness of SGD is modelled as the chapter uses it in §14.5: a sample z0,…,zT−1 drawn i.i.d. from D and an oracle g with vt=g(w(t),zt), where g is a stochastic subgradient oracle for f if Ez∼Dg(w,z)∈∂f(w) for every w. This is the book's condition E[vt∣w(t)]∈∂f(w(t)) in the case where the direction depends on the past only through w(t) and on fresh randomness, which is what every application in the book does; the expectation E[f(wˉ)] is then an integral over DT. For learning, g(w,z) is a subgradient of ℓ(⋅,z) at w, so that Ezg(w,z) is a subgradient of LD at w (14.13). The projection of w onto a convex set H is a nearest point of H, and the strongly convex variant projects after each step with step size 1/(λt).
Formalization targets
Goal: Theorem 14.8
For a convex f, B,ρ>0, a measurable oracle g with Ezg(w,z)∈∂f(w) and ∥g(w,z)∥≤ρ, any w⋆ with ∥w⋆∥≤B, T≥1 and η=B/(ρT): E[f(wˉ)]−f(w⋆)≤Bρ/T; and for every ϵ>0, T≥B2ρ2/ϵ2 gives E[f(wˉ)]−f(w⋆)≤ϵ.
Milestones
Lemma 14.1. For any directions, ∑t<T⟨w(t)−w⋆,vt⟩≤∥w⋆∥2/(2η)+(η/2)∑t<T∥vt∥2; with ∥vt∥≤ρ, ∥w⋆∥≤B and η=B/(ρT) the average is at most Bρ/T.
Corollary 14.2. Subgradient descent on a convex ρ-Lipschitz f with η=B/(ρT) has f(wˉ)−f(w⋆)≤Bρ/T for every ∥w⋆∥≤B, and T≥B2ρ2/ϵ2 gives ϵ.
Lemma 14.7. A convex f on Rd is ρ-Lipschitz iff all its subgradients have norm at most ρ.
Lemma 14.9. For the projection v of w onto a convex H and u∈H, ∥w−u∥2≥∥v−u∥2.
Theorem 14.11. For λ-strongly convex f, a closed convex H, an oracle with Ez∥g(w,z)∥2≤ρ2 and any w⋆∈H, the projected variant with ηt=1/(λt) has E[f(wˉ)]−f(w⋆)≤(ρ2/(2λT))(1+logT).
Corollary 14.12. SGD on the risk of a convex-Lipschitz-bounded problem with T≥B2ρ2/ϵ2 examples has E[LD(wˉ)]≤LD(w)+ϵ for every w∈H.
Theorem 14.13. For convex, β-smooth, nonnegative losses and ηβ<1, SGD with gradient directions has E[LD(wˉ)]≤1−ηβ1(LD(w⋆)+∥w⋆∥2/(2ηT)).
Corollary 14.14. For a convex-smooth-bounded problem with ℓ(0,z)≤1 and any ϵ>0, SGD with η=1/(β(1+3/ϵ)) and T≥12B2β/ϵ2 has E[LD(wˉ)]≤LD(w)+ϵ for every w∈H.
Further items: Lemma 14.3, Claims 14.5, 14.6 and 14.10, and the hinge-loss subgradient of Example 14.2.
Significance
SGD is the algorithm behind most of modern machine learning, and Theorem 14.8 is its basic guarantee: dimension-free, independent of the form of f beyond convexity, and with a sample complexity matching the regularization bound of Chapter 13 up to a constant. Lemma 14.1 isolates the deterministic identity that makes both gradient descent and its stochastic version work, and Lemma 14.7 is the bridge between the Lipschitz assumption of Chapter 12 and the bounded directions the analysis needs. The learning corollaries make the point that runs through Part II of the book: for convex problems, optimization and learning are the same activity, and one pass over the data suffices.
Nothing here is machine-checked. The chapter's statements are essentially correct, and the formalization records the reading choices rather than corrections: the i.i.d.-oracle model of the randomness, the subgradient form of gradient descent, the bound at every point of the ball rather than at a minimizer, and, in Corollary 14.14, the assumptions ϵ≤1 and 0∈H under which the derivation from Theorem 14.13 goes through.
Difficulty
Lemma 14.1 is a completed square and a telescoping sum and is the intended entry point; the Bρ/T clause is the substitution of η. Corollary 14.2 is Lemma 14.1 with Jensen's inequality for the average and the subgradient inequality at each iterate, plus Lemma 14.7 to bound the directions. The subgradient facts need convex analysis: Lemma 14.3 in the direction "convex implies subgradients exist" is the supporting hyperplane theorem on Rd, which Mathlib does not offer directly; Claim 14.5 uses the first-order characterization of convexity for differentiable functions; Lemma 14.7's "Lipschitz implies bounded subgradients" is the book's one-line argument along u=w+ϵv/∥v∥. Theorem 14.8 is Lemma 14.1 plus the conditioning argument of the book, which in the i.i.d.-oracle model is Fubini on the product DT: the iterate w(t) is a measurable function of z0,…,zt−1, and integrating ⟨w(t)−w⋆,g(w(t),zt)⟩ over zt first gives ⟨w(t)−w⋆,Ezg(w(t),z)⟩≥f(w(t))−f(w⋆). Theorem 14.11 adds the projection lemma, the strong-convexity inequality of Claim 14.10, the telescoping of 2λt(at−at+1)−2λat and the harmonic sum ∑t≤T1/t≤1+logT; the second-moment hypothesis makes E∥w(t)−w⋆∥2 finite inductively. Corollary 14.12 is Theorem 14.8 for f=LD with the oracle of (14.13), which requires exchanging a subgradient inequality with the integral over z. Theorem 14.13 replaces the Lipschitz bound by self-boundedness, ∥∇ℓ∥2≤2βℓ, and rearranges; Corollary 14.14 is its arithmetic under the added assumptions. In all expectation statements the measurability of the iterates in the sample, from the measurability of the oracle, is a routine but necessary lemma.
Formalization scope
Iterates are defined by structural recursion, so no argmin is chosen; the sample-driven SGD stops after T updates; the projection onto H is a chosen nearest point, unique for closed convex H. Bounds are stated for every w⋆ in the ball (or in H) rather than for a minimizer, which is what the proofs give and is stronger. The oracle bound ∥g(w,z)∥≤ρ is required surely (the book: with probability 1); the almost-sure version is a routine extension. The second-moment hypothesis of Theorem 14.11 is a lower Lebesgue integral, so that a non-integrable oracle cannot satisfy it vacuously. The learning corollaries assume a measurable loss, nonnegative and bounded at the origin, so that the risks are genuine integrals, and a measurable selector of subgradients. Variable step sizes (§14.4.2), other averaging schemes (§14.4.3), SGD for regularized loss minimization (§14.5.3) and the exercises are not stated.
Trivializing readings are excluded: the expectations are over the product law of the examples with measurable integrands, the subgradient conditions are pointwise inequalities, and the iteration counts are the book's. Welcome contributions: Lemma 14.1 as a reusable telescoping lemma, the measurability of the SGD iterates, and the Fubini step that turns an oracle condition into the inequality (14.10).
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 14. doi:10.1017/CBO9781107298019
H. Robbins, S. Monro, A stochastic approximation method, Annals of Mathematical Statistics 22(3), 1951. doi:10.1214/aoms/1177729586
M. Zinkevich, Online convex programming and generalized infinitesimal gradient ascent, Proceedings of ICML, 2003.
A. Nemirovski, A. Juditsky, G. Lan, A. Shapiro, Robust stochastic approximation approach to stochastic programming, SIAM Journal on Optimization 19(4), 2009. doi:10.1137/070704277
S. Shalev-Shwartz, Online learning and online convex optimization, Foundations and Trends in Machine Learning 4(2), 2012. doi:10.1561/2200000018
Understanding Machine Learning IX: Convex Learning Problems, Regularization and StabilityTextbook
Motivation
Chapters 12 and 13 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) leave binary classification for the general framework in which a hypothesis is a vector w∈Rd and the loss ℓ(w,z) is a convex function of w. Convexity makes the ERM problem tractable (Lemma 12.11), but Examples 12.8 and 12.9 show that convexity, even with a bounded class, does not by itself make a problem learnable: one-dimensional linear regression with the squared loss defeats every learner. The chapter therefore isolates two families, the convex-Lipschitz-bounded and the convex-smooth-bounded problems (Definitions 12.12 and 12.13), and Chapter 13 proves that both are learnable, not by ERM but by Regularized Loss Minimization with Tikhonov regularization, A(S)∈argminwLS(w)+λ∥w∥2. The proof goes through a new idea: stability. Theorem 13.2 expresses the expected overfitting E[LD(A(S))−LS(A(S))] exactly as the expected effect of replacing one training example, strong convexity of the regularized objective bounds that effect (Lemma 13.5, Corollaries 13.6 and 13.7), and balancing the regularization against the fit gives oracle inequalities (Corollaries 13.8 and 13.10) and sample-complexity guarantees (Corollaries 13.9 and 13.11), with ridge regression as the worked example (Theorem 13.1).
Setting
Hypotheses are vectors in Rd with the Euclidean norm, as in Mission VI; risk, empirical risk, the product law of a sample and agnostic PAC learnability are those of Mission I. A problem is convex when H is convex and every ℓ(⋅,z) is convex; it is convex-Lipschitz-bounded with parameters ρ,B when moreover ∥w∥≤B on H and every ℓ(⋅,z) is ρ-Lipschitz on Rd, and convex-smooth-bounded with parameters β,B when every ℓ(⋅,z) is nonnegative and differentiable with a β-Lipschitz gradient. Lipschitzness and smoothness are required on all of Rd because the RLM rule is unconstrained and its outputs need not lie in H. The RLM rule is a relation: w is an output on S if it minimizes LS(w)+λ∥w∥2 over Rd, and a learner implements the rule if all its outputs are minimizers. For the losses of the chapter the minimizer exists and is unique. Given S=(z1,…,zm) and a further example z′, S(i) is S with zi replaced by z′; a learner is on-average-replace-one-stable with rate ϵ(m) if E(S,z′)∼Dm+1,i∼U(m)[ℓ(A(S(i)),zi)−ℓ(A(S),zi)]≤ϵ(m) for every distribution. Strong convexity is Mathlib's StrongConvexOn, which is Definition 13.4 verbatim.
Expectations over samples are integrals against product laws. For them to be genuine, the theorems about arbitrary learners assume a jointly measurable loss bounded by a constant and a measurable learner, and the theorems about RLM assume a jointly measurable, nonnegative loss bounded at the origin and a measurable learner; for RLM the latter is automatic, since the minimizer is unique.
Formalization targets
Goal: Corollary 13.9
For a convex-Lipschitz-bounded problem with parameters ρ,B>0 and the RLM learner with λ(m)=2ρ2/(B2m): for every distribution, every m≥1 and every w∈H, ES[LD(A(S))]≤LD(w)+ρB8/m; hence for every ϵ>0 and m≥8ρ2B2/ϵ2, ES[LD(A(S))]≤LD(w)+ϵ.
Milestones
Examples 12.8–12.9. Linear regression on R with the squared loss is not agnostic PAC learnable, over H=R or over H=[−1,1].
Theorem 13.2. For any measurable learner and m≥1, ES[LD(A(S))−LS(A(S))] equals the replace-one expectation of (13.6).
Lemma 13.5.λ∥w∥2 is 2λ-strongly convex; a strongly convex function plus a convex one is strongly convex; at a minimizer u of a λ-strongly convex f, f(w)−f(u)≥2λ∥w−u∥2.
Corollary 13.6. For a convex ρ-Lipschitz loss and λ>0, RLM satisfies ℓ(A(S(i)),zi)−ℓ(A(S),zi)≤2ρ2/(λm) for every S,z′,i, is stable with that rate, and has ES[LD(A(S))−LS(A(S))]≤2ρ2/(λm).
Corollary 13.7. For a convex, nonnegative, β-smooth loss and λ≥2β/m, the replace-one expectation is at most (48β/(λm))E[LS(A(S))], and at most 48βC/(λm) if ℓ(0,z)≤C.
Corollary 13.8.ES[LD(A(S))]≤LD(w∗)+λ∥w∗∥2+2ρ2/(λm) for every w∗.
Corollary 13.11. A convex-smooth-bounded problem with ℓ(0,z)≤1 is learned by RLM with λ=ϵ/(3B2) once m≥150βB2/ϵ2.
Theorem 13.1. Ridge regression on the unit ball with labels in [−1,1], λ=ϵ/(3B2) and m≥150B2/ϵ2 has ES[LD(A(S))]≤min∥w∥≤BLD(w)+ϵ.
Further items: Lemma 12.11, the hinge loss as a convex surrogate of the 0–1 loss, the stability-implies-no-overfitting remark of §13.2, and the ridge regression system (13.4)–(13.5).
Significance
Stability is the third route to learnability in the book after uniform convergence and nonuniform learnability, and the only one that applies to convex-Lipschitz-bounded problems in general, for which uniform convergence can fail (the book's Exercise 13.2). The chain from strong convexity through replace-one stability to oracle inequalities is the template for the analysis of every regularized learner, and Theorem 13.2 is an exact identity, not a bound. Ridge regression, support vector machines (Chapter 15) and the regularized algorithms of later chapters are all instances.
Nothing here is machine-checked. The sample sizes of Corollary 13.11 and Theorem 13.1 are the book's 150. Chaining Corollary 13.10 as printed would need 216, but the derivation of Corollary 13.7 actually gives the stability rate 20β/(λm), with which 90 suffices.
Difficulty
Lemma 12.11 and the hinge surrogate are direct. Lemma 13.5 is elementary but part (3) needs the limit α→0 of the strong-convexity inequality at a minimizer. Examples 12.8–12.9 require constructing the two finitely supported distributions of the book and computing the risk of a fixed output on each; the probability that all m examples are of the second type is at least 0.99 under both, and the deterministic learner's output on that sample decides which distribution defeats it. Theorem 13.2 is the exchangeability argument of the book: E[ℓ(A(S),z′)]=E[ℓ(A(S(i)),zi)] because swapping zi and z′ preserves the product law; the formal work is the measure-preserving transposition on Zm+1 and the integrability of the functions involved. Corollaries 13.6 and 13.7 follow the book's pointwise derivation from (13.7) to (13.11) and (13.12) to (13.14), where the smooth case uses the self-boundedness ∥∇ℓ∥2≤2βℓ of nonnegative smooth functions and the inequality (a+b)2≤3(a2+b2); passing to expectations then uses Theorem 13.2 and, for the smooth case, the symmetry E[ℓ(A(S(i)),z′)]=E[ℓ(A(S),zi)]. Corollaries 13.8 to 13.11 are the arithmetic of the book once (13.16), E[LS(A(S))]≤LD(w∗)+λ∥w∗∥2, is in hand, with the corrected constant for 13.11. The ridge system is the gradient condition for a strongly convex quadratic, and Theorem 13.1 is Corollary 13.11 applied to 21(⟨w,x⟩−y)2, which is ∥x∥2-smooth with ℓ(0,z)=y2/2≤1/2 on the support. In every expectation statement the measurability of S↦A(S) for the RLM rule, which the theorems take as a hypothesis, is provable from uniqueness of the minimizer and is worth a lemma.
Formalization scope
Losses are real-valued functions of a vector and an example; Lipschitz and smoothness conditions are global on Rd. The RLM rule is a minimizer relation with the regularization parameter as an explicit argument, and Corollary 13.9's learner uses a parameter depending on m. Stability quantifies over m≥1 and averages over the replaced index. Expectation statements carry measurability hypotheses that make every integral genuine, and the theorems about arbitrary learners assume a bounded loss. The minimum over H is stated as "for every w∈H", so no minimizer is needed. Definitions 12.1–12.9 and Claims 12.4–12.9 (general convex analysis) are not restated, nor are Examples 12.10–12.11, the discussion of §12.3 beyond the surrogate property, Remark 13.1, and Exercises 12.1–12.4 and 13.1–13.2.
Trivializing readings are excluded: the nonlearnability examples are stated as negations of the framework's learnability, the stability identity is an equality with both sides genuine integrals, and the constants of the oracle inequalities are the book's. Welcome contributions: the transposition invariance of product laws behind Theorem 13.2, the bound ∥A(S)∥2≤LS(0)/λ for RLM outputs, the measurability of the RLM minimizer, and the self-boundedness inequality (12.6).
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapters 12 and 13. doi:10.1017/CBO9781107298019
O. Bousquet, A. Elisseeff, Stability and generalization, Journal of Machine Learning Research 2, 2002.
S. Shalev-Shwartz, O. Shamir, N. Srebro, K. Sridharan, Learnability, stability and uniform convergence, Journal of Machine Learning Research 11, 2010.
A. N. Tikhonov, On the stability of inverse problems, Doklady Akademii Nauk SSSR 39(5), 1943.
Flow Matching Theorem 1: Marginal Continuity EquationResearch Paper
From conditional motion to a marginal probability path
Flow matching models a changing probability distribution using a time-dependent velocity field. A conditional model specifies a density and a velocity separately for each conditioning point. The mathematical question is whether those conditional descriptions determine a velocity for the mixture distribution. This mission concerns the continuity-equation formulation of Theorem 1 of Lipman, Chen, Ben-Hamu, Nickel, and Le, Flow Matching for Generative Modeling (ICLR 2023). The source is arXiv:2210.02747v2, Section 3.1 and Appendix A.
Densities, velocities, and probability flux
Fix a natural number d and let E=Rd. The conditioning distributionQ is a Borel probability measure on E. At time t, position x, and conditioning point z, write ρ(t,x,z) for the conditional density and v(t,x,z)∈E for the conditional velocity. The variable x is integrated against Lebesgue measure; z is integrated against Q. These roles remain distinct even though both variables take values in the same space.
The conditional flux is F(t,x,z)=ρ(t,x,z)v(t,x,z). The marginal density, marginal flux, and marginal velocity are defined by
These definitions express equations (6) and (8) using a probability measure rather than a data-density function. This representation also allows discrete conditioning distributions. Every conditional density is strictly positive and normalized on 0≤t≤1, jointly measurable in (x,z), and integrable in z at each fixed (t,x).
The divergence of a differentiable vector field is the sum of the diagonal entries of its derivative. A density and velocity satisfy the classical continuity equation when their flux is spatially differentiable and the density has time derivative equal to minus that divergence.
Formalization targets
The goal asserts that p(t,⋅) is a positive probability density for every t∈[0,1] and that
∂tp(t,x)+divx(p(t,x)u(t,x))=0(0<t<1,x∈E).
The hypotheses require the conditional continuity equation for Q-almost every conditioning point, at each interior time and spatial point. They also specify a sufficient local domination package for differentiation under the integral. This is an explicit classical interpretation of the regularity qualification in the proof of Theorem 1.
Four supporting targets isolate the mathematical assertions used by this formulation: the probability-density property of equation (6); time differentiation under the conditioning integral; spatial divergence under the conditioning integral; and the velocity/flux identity corresponding to equation (8). The source contains these equations and operations rather than separately numbered supporting lemmas, so the milestone titles identify the relevant equation or proof passage.
What completing the formalization provides
The deliverable is a checked interface for passing from a measurable family of conditional continuity equations to the continuity equation of its mixture. It records which variables are differentiated, which measure is used for averaging, where positivity is needed, and which assumptions justify each analytic operation. The time and spatial differentiation lemmas are stated for general measures and integrands, making them reusable outside this particular probability model.
The mathematical result is already proved in the cited paper. The uploaded theorem items are open formalization targets, with explicit proof placeholders. Successful local compilation checks their types and imports; it does not establish their conclusions. The definition module contains no proof placeholders.
Analytic obligations
Pointwise differentiability of every conditional function does not by itself justify differentiating an integral over the conditioning variable. The regularity predicates therefore require a neighborhood independent of that variable, an integrable bound for the derivative norm throughout that neighborhood, and almost-everywhere measurability of the integrand and derivative. Time and space receive separate predicates because their derivatives take values in different spaces.
There is also a distinction between density normalization in x and integrability in z at a fixed position. The formal assumptions record both. A probability measure on the conditioning space does not make every measurable function integrable. These conditions prevent the totalized Bochner integral from silently supplying a default value where an intended integral fails to exist.
Formalization scope
Space is represented by Fin d → ℝ, with its standard finite-product Borel structure and Lebesgue measure. Its norm is the standard product norm used by mathlib. All finite dimensions, including dimension zero, are included. Time-dependent functions are defined on all real times, while density assumptions apply on the closed unit interval and derivative conclusions apply on its interior. No endpoint time derivative is asserted.
The regularity package is one sufficient realization of the source's Leibniz-rule assumption, not a claim to the weakest possible hypotheses. Conditional continuity equations may hold almost everywhere in the conditioning variable; their exceptional sets may depend on the fixed time and position. Spatial differentiability of the marginal flux is part of the conclusion, so the equation cannot be satisfied merely through the default value of an undefined derivative.
The target is the PDE formulation. It does not assert existence of a global ODE flow, uniqueness of transported measures, or equality with a flow pushforward. Those require a separate transport development. It also asserts no endpoint approximation to a data distribution and no theorem about optimization, neural networks, or Gaussian paths. No marginal continuity equation or differentiation–integration interchange is assumed as an input.
Required infrastructure consists of Bochner integration, finite-dimensional differentiation, finite sums of derivative coordinates, and product-measure integration. Contributions may prove the supporting targets or the goal directly while preserving their statements and the distinction between classical PDE and flow-transport claims.
Selected references
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow Matching for Generative Modeling. ICLR 2023. arXiv:2210.02747v2, Section 2, Section 3.1, Theorem 1, equations (6), (8), and (26), and Appendix A's proof of Theorem 1.
Understanding Machine Learning VII: Boosting and AdaBoostTextbook
Motivation
Boosting answers a question raised by Kearns and Valiant: can a learner that is only slightly better than random guessing be turned into one that is arbitrarily accurate? Chapter 10 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) defines γ-weak learnability (Definition 10.1), the PAC requirement with the accuracy ϵ replaced by the fixed value 1/2−γ, and presents AdaBoost, the algorithm of Freund and Schapire that, given weak hypotheses, reweights the training set round by round and outputs a weighted majority vote. The chapter's main result (Theorem 10.2) is that the training error of AdaBoost's output decreases as e−2γ2T in the number of rounds. Since the output is a halfspace over the predictions of T base hypotheses, the chapter then bounds the VC-dimension of that class (Lemma 10.3), so that the number of rounds becomes a knob for the bias–complexity tradeoff. Example 10.1 shows a concrete weak learner, ERM over decision stumps for the class of 3-piece classifiers on the line, and the chapter remarks that, statistically, weak learnability is no easier than strong learnability: a class of infinite VC-dimension is not weakly learnable either.
Setting
The framework is that of Missions I and IV: binary classification over a domain X with the 0–1 loss, distributions D over X with a labeling function f, learners as functions of the sample, the VC-dimension, and ERM. Labels and hypotheses are Boolean, with ±1 values obtained through sgn(true)=1, sgn(false)=−1, and sign(z) is true exactly when z>0. A γ-weak learner for H with the function mH:(0,1)→N returns, for every δ, every D and every measurable f realizable by H, a hypothesis with L(D,f)(h)≤1/2−γ with probability at least 1−δ once m≥mH(δ); the failure event is bounded in outer measure as in Definition 3.1.
AdaBoost is formalized as a deterministic function of the sample S=(x1,y1),…,(xm,ym) and of the sequence of weak hypotheses h0,h1,… that the weak learner returned. The distributions are defined by recursion: D(0) is uniform, ϵt=∑iDi(t)1[ht(xi)=yi], wt=21log(1/ϵt−1), and Di(t+1)∝Di(t)exp(−wtyiht(xi)); the output after T rounds is x↦sign(∑t<Twtht(x)). Rounds are indexed from 0, so D(0) is the book's D(1). The class L(B,T) of Equation (10.4) consists of the functions x↦sign(∑t=1Twtht(x)) with ht∈B. Decision stumps over R are the threshold functions x↦[θ<x] and their negations x↦[x≤θ]; a 3-piece classifier is b outside [θ1,θ2] and −b inside, with θ1<θ2.
Formalization targets
Goal: Theorem 10.2
If γ>0 and every round t<T has 0<ϵt≤1/2−γ, then the empirical 0–1 risk of AdaBoost's output after T rounds is at most exp(−2γ2T).
Milestones
§10.1. A class of infinite VC-dimension is not γ-weak-learnable for any γ>0 (domain with measurable singletons, measurable hypotheses).
Example 10.1. There is one sample-size function with which every ERM learner over the decision stumps is a 1/12-weak learner for the 3-piece classifiers.
Exercise 10.3. For a nonempty sample and ϵt∈(0,1), the error of ht under D(t+1) is exactly 1/2.
Lemma 10.3. If T≥3 and VCdim(B)=d≥3, then VCdim(L(B,T))≤T(d+1)(3log(T(d+1))+2).
Further item: Exercise 10.4 (1), VCdim(B)≤VCdim(L(B,T)) for T≥1.
Significance
Theorem 10.2 is the reason AdaBoost works and the template for every analysis of boosting: a potential function, here m1∑ie−yift(xi), bounds the 0–1 training error and contracts by the factor 2ϵt(1−ϵt)≤1−4γ2 at every round. Lemma 10.3 supplies the other half of the picture, an estimation-error bound growing only like T⋅VCdim(B) up to logarithms, so that Theorem 6.8 turns the pair into a generalization guarantee for boosting. The remark of §10.1 places weak learning in the statistical landscape of Part I: the VC-dimension characterizes it too, and the gain of boosting is computational.
Nothing here is machine-checked. Two points where the book's text needs care are built into the statements. The weight wt is undefined when ϵt=0, and the algorithm's normalization then divides 0 by 0; in Lean the logarithm of a negative number is 0, so with ϵt=0 the formal algorithm would ignore a perfect weak hypothesis and the bound could fail. The theorems therefore assume ϵt>0, which is the case in which the book's formulas are defined. And the book's derivation of "infinite VC-dimension implies not weakly learnable" from the lower bound of Theorem 6.8 at ϵ=1/2−γ uses that bound outside the range in which Chapter 28 proves it; the statement itself is true, by the km-point form of the No-Free-Lunch argument (Exercise 5.3 of Mission III) and Lemma B.1.
Difficulty
Exercise 10.4 (1) is a one-line embedding of B into L(B,T) with the weights (1,0,…,0) and is the entry point. Exercise 10.3 is the computation of the book: after the update, the weight of the mistakes of ht is ewtϵt and the weight of the correct examples is e−wt(1−ϵt), and with ewt=(1−ϵt)/ϵt these are equal. Theorem 10.2 needs, by induction on the round, the closed form Di(t)=e−yift(xi)/∑je−yjft(xj) of the distribution, the pointwise bound 1[sign(f(x))=y]≤e−yf(x) for the sign convention used, the telescoping product (10.2), the identity Zt+1/Zt=2ϵt(1−ϵt), the monotonicity of a(1−a) on [0,1/2] and 1−a≤e−a. Lemma 10.3 counts dichotomies: Sauer's lemma bounds the restrictions of B to a shattered set by (em/d)d, choosing T of them gives (em/d)dT, the halfspaces of RT contribute (em/T)T by Theorem 9.2, and the inequality 2m≤m(d+1)T is solved with Lemma A.1; the finite-VC lower bound m≤d+1 handles small m, and the numeric slack of the book's chain must be checked. Example 10.1 combines a geometric observation, that one of the three regions of a 3-piece classifier has mass at most 1/3 and a stump agrees with the other two, with the agnostic guarantee for ERM over the stumps from Theorem 6.7, applied with accuracy 1/12; the best stump may only approach error 1/3 because constant functions are not stumps, and the slack absorbs this. The §10.1 remark is the argument sketched above.
Formalization scope
AdaBoost is a function of the sample and of the returned weak hypotheses; the weak learner's randomness and its failure probability (Remark 10.2) are not modelled, and Theorem 10.2 is the deterministic statement the book proves. Rounds are indexed from 0. The output uses sign(0)= negative, consistently with Mission VI. The class L(B,T) is a set of functions, so Lemma 10.3 is a statement about the VC-dimension of Mission IV, with the bound taken in N∪{∞} through the integer part of the real right-hand side and the natural logarithm. Decision stumps are closed under negation, as the book's sign(x−θ)⋅b; constant functions are not stumps. The efficient ERM for decision stumps (§10.1.1), the face-recognition features (§10.4), Exercises 10.1, 10.2, 10.4 (2)–(3) and 10.5 are not stated. The claims of §10.3 that piecewise-constant classifiers with T pieces lie in L(stumps,T) and that this class shatters T+1 points depend on treating sign(x−(−∞)) as a stump and on the sign convention; with real thresholds, L(stumps,2) does not shatter three points under either convention, so these claims are not stated.
Trivializing readings are excluded: the weak-error hypotheses are strict where the book's formulas require it, the VC bounds are in N∪{∞}, and the weak-learner guarantee quantifies over all distributions and all realizable labelings. Welcome contributions: the closed form of D(t), the contraction identity for Zt+1/Zt, and the dichotomy count behind Lemma 10.3.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 10. doi:10.1017/CBO9781107298019
Y. Freund, R. E. Schapire, A decision-theoretic generalization of on-line learning and an application to boosting, Journal of Computer and System Sciences 55(1), 1997. doi:10.1006/jcss.1997.1504
R. E. Schapire, The strength of weak learnability, Machine Learning 5(2), 1990. doi:10.1007/BF00116037
M. Kearns, L. Valiant, Cryptographic limitations on learning Boolean formulae and finite automata, Journal of the ACM 41(1), 1994. doi:10.1145/174644.174647
R. E. Schapire, Y. Freund, Boosting: Foundations and Algorithms, MIT Press, 2012.
Understanding Machine Learning VI: Linear Predictors, the Perceptron and Least SquaresTextbook
Motivation
Part II of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) turns from the theory of learnability to hypothesis classes that can actually be learned by algorithms, and it starts with the family that almost every practical method is built on: linear predictors. Chapter 9 introduces the affine functions Ld and the three classes obtained by composing them with a link: halfspaces for classification, linear regression for real-valued prediction, and logistic regression in between. For each class it gives an ERM algorithm and the guarantee that goes with it. For halfspaces in the separable case the algorithm is Rosenblatt's Perceptron, and the guarantee is the classical mistake bound (Theorem 9.1): the number of updates is at most (RB)2, where R bounds the data and B is the norm of the smallest vector separating it with margin one. The chapter then computes the VC-dimension of halfspaces (Theorems 9.2 and 9.3), which by the fundamental theorem of Mission IV makes them learnable, derives the Least Squares normal equations for regression, and observes that the logistic loss is convex, the property later chapters exploit.
Setting
Vectors live in Rd with its Euclidean inner product and norm. The affine functions are hw,b(x)=⟨w,x⟩+b, homogenous when b=0; a halfspace hypothesis is x↦sign(⟨w,x⟩+b), formalized as a Boolean predictor that is true exactly when ⟨w,x⟩+b>0 (the book leaves sign(0) unspecified; the VC computations do not depend on the convention). A sample (x1,y1),…,(xm,ym) with labels yi∈{±1} is separable if some w has yi⟨w,xi⟩>0 for all i; the constants of Theorem 9.1 are B=inf{∥w∥:∀i,yi⟨w,xi⟩≥1} and R=maxi∥xi∥. The Batch Perceptron starts at w(0)=0 and, while some example has yi⟨w(t),xi⟩≤0, adds yixi; since the algorithm may pick any mistaken example, a run is any sequence of updates obeying this rule, and the theorem is stated for all runs. For regression the loss is (h(x)−y)2 and the Least Squares system is Aw=b with A=∑ixixi⊤, written as the linear map w↦∑i⟨xi,w⟩xi, and b=∑iyixi. The logistic function is φsig(z)=1/(1+e−z) and the logistic loss is log(1+exp(−y⟨w,x⟩)). The learning-theoretic notions (ERM, PAC and agnostic PAC learnability, VC-dimension) are those of Missions I and IV.
Formalization targets
Goal: Theorem 9.1 (Perceptron convergence)
For a separable sample with labels in {±1}, every run of the Batch Perceptron of T iterations satisfies T≤(RB)2, and some run of at most (RB)2 iterations ends with yi⟨w(T),xi⟩>0 for every i.
Milestones
Equation (9.1). A sample is separable if and only if some w satisfies yi⟨w,xi⟩≥1 for all i.
Theorem 9.2. The VC-dimension of the homogenous halfspaces in Rd is d.
Theorem 9.3. The VC-dimension of the halfspaces in Rd is d+1.
Least Squares (9.6). The system Aw=b always has a solution, and w solves it if and only if hw is an ERM hypothesis for the squared loss over the homogenous linear predictors.
Further items: Exercise 9.3, the tightness of Theorem 9.1 (for every m a sample with R≤1, (BR)2≤m and a run of exactly m updates); the learnability of halfspaces by ERM, a consequence of Theorem 9.3 and the fundamental theorem; Exercise 9.2, A is invertible iff the xi span Rd; and the convexity of the logistic loss in w.
Significance
The Perceptron bound is one of the oldest results of learning theory (Novikoff 1962) and the model for every mistake bound in the online-learning chapters: it is independent of the dimension and of the number of examples, depending only on the geometry of the data through R and B. Theorems 9.2 and 9.3 are the first VC-dimension computations of a class used in practice and give, through Theorem 6.8, the sample complexity Θ((d+log(1/δ))/ϵ) of learning halfspaces. The normal equations are the algorithmic content of linear regression, and the convexity of the logistic loss is why logistic regression is tractable in the nonseparable case, where ERM for halfspaces with the 0–1 loss is hard.
Nothing here is machine-checked in this form. Mathlib has the inner-product geometry, the Cauchy–Schwarz inequality, linear algebra of finite-dimensional spaces and convexity of compositions, but neither the Perceptron nor the VC-dimension of halfspaces.
Difficulty
Equation (9.1) is a rescaling and the intended entry point. The convexity of the logistic loss is the composition of the convex function log(1+e−t) with the linear map w↦y⟨w,x⟩. Exercise 9.2 is the identification of the kernel of ∑i⟨xi,⋅⟩xi with the orthogonal complement of the span. The normal equations require showing that a convex quadratic is minimized exactly where its gradient vanishes, and that b lies in the range of A, which is the span of the xi. Theorem 9.1 is the book's proof: by induction on the run, ⟨w∗,w(T)⟩≥T and ∥w(T)∥2≤TR2 for any feasible w∗, then Cauchy–Schwarz, and finally the passage from a feasible w∗ to the infimum B; the existence clause follows because a run can be extended as long as the stopping condition fails and all runs are bounded. Theorem 9.2 is the linear-dependence argument of the book, with a case analysis on the signs of the coefficients and on which side is nonempty, and the shattering of the standard basis; Theorem 9.3 lifts it to Rd+1 by appending a constant coordinate. The learnability of halfspaces is Theorem 6.7 applied to a class that must be shown measurable, nonempty, of finite VC-dimension and pointwise separable; the last needs rational approximations (wn,bn) in which the offset moves below b more slowly than wn approaches w, so that boundary points keep their label.
Formalization scope
Halfspaces are Boolean predictors with sign(0) negative; the classes are sets of functions, so the VC-dimension is that of Mission IV. The Perceptron is a relation on sequences, not a program: this captures the algorithm's freedom to choose any mistaken example and makes the bound apply to all implementations. B is an infimum, which is attained (the feasible set is closed and the norm is coercive), but the theorem does not need attainment. R is a real supremum over the finite index set, equal to 0 for the empty sample, where every run has length 0. The Least Squares statement is about the homogenous class and the sample i↦(xi,yi), with ERM in the sense of Mission I; the bias term is handled by the book's reduction, appending a constant coordinate, and is not formalized separately. The learnability item states qualitative learnability and the ERM guarantee with an unspecified sample-complexity function; the quantitative rate is Theorem 6.8 of Mission IV. Linear programming (§9.1.1), the pseudo-inverse (§9.2.1), polynomial regression (§9.2.2), Exercises 9.1 and 9.4–9.6 are not stated.
Trivializing readings are excluded: labels are constrained to ±1, runs must start at 0 and update only on mistakes, the VC equalities are in N∪{∞}, and the ERM equivalence is a biconditional. Welcome contributions: the two Perceptron invariants as separate lemmas, the shattering of the standard basis, and the pointwise separability of halfspaces.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 9. doi:10.1017/CBO9781107298019
F. Rosenblatt, The perceptron: a probabilistic model for information storage and organization in the brain, Psychological Review 65(6), 1958. doi:10.1037/h0042519
A. B. J. Novikoff, On convergence proofs on perceptrons, Proceedings of the Symposium on the Mathematical Theory of Automata 12, 1962.
S. Agmon, The relaxation method for linear inequalities, Canadian Journal of Mathematics 6, 1954. doi:10.4153/CJM-1954-037-2
S. Ben-David, H. U. Simon, Efficient learning of linear perceptrons, Advances in Neural Information Processing Systems 13, 2001.
The fundamental theorem of Mission IV says that a class of binary classifiers is PAC learnable exactly when its VC-dimension is finite. That leaves out classes one would like to learn, such as all polynomial classifiers over the line, whose VC-dimension is infinite although each degree separately is learnable. Chapter 7 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) relaxes the definition. In nonuniform learnability (Definition 7.1) the sample size may depend on the hypothesis the learner is competing with: the learner must, for every h∈H, eventually do as well as h up to ϵ, but how soon may depend on h. The chapter's main result (Theorem 7.2) characterizes the nonuniformly learnable classes of binary classifiers as the countable unions of agnostic PAC learnable classes. The learning rule behind it is Structural Risk Minimization (SRM): write H=⋃nHn, weight the pieces, and minimize the empirical risk plus a confidence term that grows with the index (Theorems 7.3–7.5). Applied to a countable class described by a prefix-free code, SRM becomes the Minimum Description Length rule and yields a quantitative form of Occam's razor (Lemma 7.6, Theorem 7.7). The chapter closes the circle with a No-Free-Lunch result for the relaxed notion (Remark 7.2, Exercise 7.5).
Setting
The framework is that of Missions I, II and IV: examples in a domain Z, a hypothesis type with a class H, a loss ℓ, risk LD and empirical risk LS, learners as functions of the sample, the uniform convergence property with an explicit rate mHUC, agnostic PAC learnability, and for binary classification the 0–1 loss, the VC-dimension and pointwise separability. The new module adds Definition 7.1 with an explicit rate mNUL and, as in Definition 3.4, learners whose outputs lie in H; the same notion for a family of learners indexed by the confidence δ, since the SRM and MDL rules take δ as an input; the rate ϵn(m,δ)=inf{ϵ∈(0,1):mHnUC(ϵ,δ)≤m} of Equation (7.1), which is meaningful only when that set is nonempty; the index n(h)=min{n:h∈Hn} of Equation (7.4); the SRM rule as a minimizer of LS(h)+ϵn(h)(m,w(n(h))δ) over the admissible hypotheses, those whose index has positive weight and a defined rate; prefix-free description languages d:H→{0,1}∗ and the MDL rule; and shattering of an infinite set.
Formalization targets
Goal: Theorem 7.2
For a class H of measurable binary classifiers over a domain with measurable singletons, every subclass of which is pointwise separable, H is nonuniformly learnable if and only if there are classes Hn with ⋃nHn=H, each agnostic PAC learnable.
Milestones
Theorem 7.3. If H=⋃nHn is nonempty and each Hn has the uniform convergence property, then H is nonuniformly learnable (general loss).
Theorem 7.4. For weights w(n)∈[0,1] with partial sums at most 1, uniformly convergent pieces Hn with rates mHnUC, δ∈(0,1), any D and any m: with probability at least 1−δ, for every n with w(n)>0 at which ϵn(m,w(n)δ) is defined and every h∈Hn, ∣LD(h)−LS(h)∣≤ϵn(m,w(n)δ).
Theorem 7.5. With w(n)=6/(π2n2) and H0=∅, every family of learners implementing the SRM rule satisfies the nonuniform guarantee with rate mNUL(ϵ,δ,h)=mHn(h)UC(ϵ/2,6δ/(πn(h))2).
Lemma 7.6 (Kraft). For a prefix-free set S of binary strings, every finite subfamily satisfies ∑σ2−∣σ∣≤1.
Theorem 7.7. For a prefix-free description language on a class with a [0,1]-valued loss, m≥1 and δ>0: with probability at least 1−δ, every h∈H satisfies LD(h)≤LS(h)+(∣h∣+ln(2/δ))/(2m).
Further items: nonuniform learnability is implied by agnostic PAC learnability (§7.1); a nonuniformly learnable class of binary classifiers is a countable union of classes of finite VC-dimension (Exercise 7.5 (1)–(2)); a class shattering an infinite set admits no countable cover by classes of finite VC-dimension (Exercise 7.5 (3)) and is not nonuniformly learnable; over an infinite domain the class of all measurable classifiers is not nonuniformly learnable (Remark 7.2).
Significance
Theorem 7.2 is the second characterization theorem of the book's Part I and the one that explains why model selection works: any class that can be stratified into learnable pieces is learnable in the nonuniform sense, with the price of not knowing the index paid in sample size rather than in principle. SRM is the abstract form of every penalized learning rule, and the MDL bound of Theorem 7.7 is the cleanest instance, a bound in which the only property of the hypothesis that matters is the length of its description. Remark 7.2 shows the relaxation is not free: even nonuniformly, no learner handles all classifiers over an infinite domain.
Nothing here is machine-checked. The chapter's arguments are short but they combine everything before them: Hoeffding, the union bound with weights, the VC lower bound of Corollary 6.4 and the fundamental theorem. Three places where the book's statements need care are recorded in the formalization: the rate ϵn is an infimum that may be undefined for small m; the SRM rule takes δ as an input and so is a family of learners; and the fundamental theorem's uniform-convergence direction needs a measurability condition, which appears in Theorem 7.2 as hereditary pointwise separability.
Difficulty
The relaxation remark is a direct comparison of two definitions. Kraft's inequality is the coin-tossing argument of the book or an induction on the maximal length: it is the intended entry point. Theorem 7.4 is Theorem 7.3's engine: for each index and each ϵ in the set of Equation (7.1), the uniform convergence property bounds the failure by w(n)δ; the passage from "every ϵ in the set" to the infimum uses continuity of the outer measure along an increasing union; the union over n uses countable subadditivity and the partial-sum condition. Theorem 7.5 is Theorem 7.4 on the good event together with the two inequalities of the book's proof, using that the target is admissible when m≥mHn(h)UC(ϵ/2,w(n(h))δ) and that admissibility of the SRM output gives the bound for it. Theorem 7.3 asks for a single learner: SRM with a confidence schedule δm→0 chosen so that, for each fixed index, the rate at level δm eventually falls below any ϵ, together with an approximate minimizer within 1/m; the target hypothesis is admissible for m large. Theorem 7.7 is Theorem 7.4 with singleton pieces and the weights 2−∣h∣, a one-sided Hoeffding bound for each h, and Kraft's inequality. Exercise 7.5 (3) is the combinatorial construction of the book's hint, disjoint finite subsets Kn of the shattered set with ∣Kn∣>VCdim(Hn) and a labeling that no Hn realizes. The first half of Theorem 7.2 is Corollary 6.4 applied to the nonuniform learner at fixed ϵ0,δ0, with constants chosen so that the two probability bounds actually contradict; the second half is the fundamental theorem on each piece followed by Theorem 7.3.
Formalization scope
Learners output hypotheses in H, in Definition 7.1 as in Definition 3.4. The rate ϵn is an infimum over the set of Equation (7.1), and every statement that uses it is guarded by the nonemptiness of that set; the weight w(n) may be 0, and H0=∅ encodes the book's indices 1,2,…. The SRM rule minimizes over admissible hypotheses, and an SRM family is one that returns an admissible minimizer whenever some hypothesis is admissible, which is the book's assumption that the argmin is attained (automatic for the 0–1 loss). Theorem 7.4's sum condition is on partial sums, and Kraft's inequality is on finite subfamilies, so no divergent series is silently zero. Theorem 7.7 assumes a [0,1]-valued loss and m≥1. The binary-classification results assume measurable singletons and measurable hypotheses; Theorem 7.2 also assumes every subclass pointwise separable, which every class over a countable domain satisfies. Definition 7.8 (consistency) and the Memorize algorithm of §7.4 are not stated.
Trivializing readings are excluded: outputs in H keep the risk an honest integral, the rate is never a junk infimum of the empty set, and the failure events are bounded in outer measure. Welcome contributions: a reusable weighted union bound over a countable family of uniform-convergence events, the continuity argument for the infimum rate, and the shattered-set combinatorics of Exercise 7.5.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 7. doi:10.1017/CBO9781107298019
Understanding Machine Learning III: The No-Free-Lunch TheoremTextbook
Motivation
Missions I and II of this series showed that finite hypothesis classes are learnable, with and without the realizability assumption, by empirical risk minimization. Chapter 5 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) asks the converse question: is prior knowledge, in the form of a restricted hypothesis class, really necessary? Could there be a universal learner, an algorithm that, given enough examples from any distribution, outputs a predictor of low risk? The No-Free-Lunch theorem (Theorem 5.1) answers no: for binary classification with the 0–1 loss over a domain X, for every learning algorithm and every training-set size m smaller than ∣X∣/2 there is a distribution on which the learner fails with probability at least 1/7, even though that distribution is perfectly predictable by some function f, so that another learner (ERM over {f}) succeeds. The consequence for the framework is Corollary 5.2: over an infinite domain, the class of all functions is not PAC learnable. This is the first lower bound of the book and the reason the rest of it is about the complexity of hypothesis classes rather than about universal algorithms.
Setting
The framework is the UnderstandingML_Framework module of Mission I, cited as a reference. Binary classification over a domain X uses examples in X×{0,1}, hypotheses h:X→{0,1} and the 0–1 loss, so the risk of h under a distribution D over X×{0,1} is LD(h)=D({(x,y):h(x)=y}), computed as the integral of the 0–1 loss. A learner is a function from samples of each size to hypotheses, and a sample of size m has the law Dm. PAC learnability of a class H (Definition 3.1) requires a sample-complexity function mH and a learner A such that for every ϵ,δ∈(0,1), every distribution D over X and every measurable labeling function f realizable by H, samples of size m≥mH(ϵ,δ) yield L(D,f)(A(S))≤ϵ with probability at least 1−δ.
Two conventions specific to this mission. The domain X is assumed to have measurable singletons (the book's Remark 3.1 assumes away measurability issues); this makes the finitely supported distributions of the proof honest probability measures and makes every LD(h) under them a genuine integral. And "m smaller than ∣X∣/2" is written 2m<∣X∣ in the extended natural numbers, so that an infinite domain satisfies it for every m.
Formalization targets
Goal: Theorem 5.1 (No-Free-Lunch)
Let A be any learning algorithm for binary classification with respect to the 0–1 loss over a domain X with measurable singletons, and let m be a training-set size with 2m<∣X∣. Then there exists a probability distribution D over X×{0,1} such that
there is a measurable f:X→{0,1} with LD(f)=0;
there is a measurable set E of samples of size m with Dm(E)≥1/7 on which LD(A(S))≥1/8.
Milestones
Lemma B.1 (Appendix B). If Z takes values in [0,1] and E[Z]=μ, then for every a∈(0,1), P[Z>1−a]≥(μ−(1−a))/a, and consequently P[Z>a]≥(μ−a)/(1−a)≥μ−a.
Equation (5.2). Under the hypotheses of Theorem 5.1 there are D and a measurable f with LD(f)=0 and ES∼Dm[LD(A(S))]≥1/4.
Corollary 5.2. For an infinite domain X with measurable singletons, the class of all functions X→{0,1} is not PAC learnable.
Two further items: Exercise 5.1, the passage from an expectation of at least 1/4 to a probability of at least 1/7 of exceeding 1/8 for a [0,1]-valued variable; and Exercise 5.3, the k-fold version of Equation (5.2), with bound 1/2−1/(2k) when km≤∣X∣, k≥2 and X is nonempty.
Significance
The No-Free-Lunch theorem is the book's first impossibility result and the conceptual pivot of Part I: it shows that learnability is a property of the pair (hypothesis class, learner) and not of the learner alone, and it motivates the bias–complexity tradeoff of §5.2 and the VC-dimension of Chapter 6, whose lower bound (Theorem 6.7, the "only if" direction of the fundamental theorem) is proved by the same symmetrization argument. Corollary 5.2 is the statement that the class of all functions has infinite sample complexity, the negative half of the characterization of learnable classes.
Nothing here is machine-checked. The proof is combinatorial and elementary but has real content for a formalization: a finite subset C of the domain, the 22m labelings of C, the uniform distribution on C labeled by each of them, an exchange of a maximum, an average and a minimum over labelings and sample sequences, and a pairing argument on labelings that differ at exactly one unseen point. Lemma B.1 is a reverse Markov inequality for bounded variables that later chapters also use.
Difficulty
Lemma B.1 is Markov's inequality applied to 1−Z and is the entry point; Exercise 5.1 is its instance with a=1/8 and μ≥1/4, giving (1/4−1/8)/(7/8)=1/7, together with the inclusion of {θ>1/8} in {θ≥1/8}. Theorem 5.1 follows from Equation (5.2) and Exercise 5.1 once one knows that S↦LD(A(S)) is, under the finitely supported Dm, almost everywhere equal to a measurable function with values in [0,1]; the set E is the intersection of the event with the finite support of Dm, which is measurable because singletons are. Equation (5.2) is the heart of the mission. One picks C⊆X of size 2m (available because 2m<∣X∣), lets Di be uniform on C labeled by the i-th function fi:C→{0,1} extended by 0 off C, and computes ES∼Dim[LDi(A(S))] as an average over the (2m)m sequences of instances, which requires identifying Dim as a finitely supported measure on sequences, that is, the product of finitely supported measures. The inequalities (5.4)–(5.6) exchange max, average and min and restrict to the unseen points, and the pairing argument shows that for each unseen point the average over i of the indicator that A errs on it is exactly 1/2. Exercise 5.3 is the same argument with ∣C∣=km, where at least (k−1)m points are unseen. Corollary 5.2 takes ϵ<1/8, δ<1/7, m=mH(ϵ,δ) and a set C of size 2m in the infinite domain, and derives the contradiction from Theorem 5.1 via the identification of LD for D uniform on C labeled by f with the true error L(DX,f) of Definition 3.1, where DX is uniform on C; the case m=0 is handled separately with a single point.
Formalization scope
The items are stated in the joint-distribution form of the book's Chapter 5, with D over X×{0,1} and LD the risk under the 0–1 loss, rather than in the (D,f) form of Definition 3.1; Corollary 5.2 is the bridge and is stated with the framework's PACLearnable. Witness labeling functions are required to be measurable, because a non-measurable f would make LD(f)=0 true by Lean's convention for non-integrable functions rather than by content. Clause (2) of Theorem 5.1 is stated in the inner form (a measurable set of probability at least 1/7 inside the event) rather than as a lower bound on the outer measure of the event, which for a non-measurable event would be the weaker statement. The size condition uses ENat.card, so infinite domains satisfy it. Learners are deterministic functions of the sample; the book's argument goes through for randomized learners by averaging, but the framework does not model them.
Trivializing readings are excluded: the distribution must be a probability measure, the failing set must be measurable with an honest lower bound, and the witness f must be measurable. Welcome contributions: the finitely supported product law on sequences, the averaging identity (5.3), and the pairing argument on labelings of C.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 5 and Appendix B. doi:10.1017/CBO9781107298019
D. H. Wolpert, W. G. Macready, No free lunch theorems for optimization, IEEE Transactions on Evolutionary Computation 1(1), 1997. doi:10.1109/4235.585893
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
V. N. Vapnik, Statistical Learning Theory, Wiley, 1998.
Understanding Machine Learning II: Learning via Uniform ConvergenceTextbook
Motivation
Mission I of this series set up the statistical learning framework of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019) and proved, in the book's Chapters 2 and 3, that finite classes are PAC learnable under the realizability assumption. Chapter 4 removes that assumption. Its idea is the one that organizes the rest of the theory: if the empirical risks LS(h) of all hypotheses in H are simultaneously close to their true risks LD(h), then minimizing LS over H is nearly as good as minimizing LD over H, whatever the distribution D is. A sample with that property is called ϵ-representative (Definition 4.1), and a class for which representative samples are guaranteed at some sample size is said to have the uniform convergence property (Definition 4.3). Lemma 4.2 turns representativeness into a guarantee for ERM, Corollary 4.4 turns uniform convergence into agnostic PAC learnability, Hoeffding's inequality (Lemma 4.5) gives uniform convergence for a single hypothesis, and a union bound gives it for a finite class: Corollary 4.6, the capstone, says every finite class with a loss in [0,1] is agnostic PAC learnable by ERM with sample complexity ⌈2log(2∣H∣/δ)/ϵ2⌉.
Setting
The framework is the UnderstandingML_Framework module of Mission I, cited here as a reference. A domain Z is a measurable space, hypotheses form a type with a class H, and a loss ℓ:H×Z→R is given. The risk is LD(h)=Ez∼Dℓ(h,z), the empirical risk on S=(z1,…,zm) is LS(h)=m1∑iℓ(h,zi), and a sample of size m has the product law Dm. A hypothesis is an ERM hypothesis for S if it lies in H and minimizes LS over H; a learner is a function from samples of each size to hypotheses, and an ERM learner returns an ERM hypothesis on every sample.
S is ϵ-representative with respect to H, ℓ and D if ∣LS(h)−LD(h)∣≤ϵ for every h∈H. H has the uniform convergence property with the function mHUC if for every ϵ,δ∈(0,1) and every distribution D over Z, a sample of m≥mHUC(ϵ,δ) i.i.d. examples is ϵ-representative with probability at least 1−δ. H is agnostic PAC learnable with the function mH and the learner A if A returns hypotheses in H and, for every ϵ,δ∈(0,1), every D and every m≥mH(ϵ,δ), LD(A(S))≤minh′∈HLD(h′)+ϵ with probability at least 1−δ over S∼Dm. As in Mission I, "with probability at least 1−δ" is an upper bound δ on the outer measure of the failure event, "minh′∈HLD(h′)+ϵ<LD(h)" is written as "∃h′∈H, LD(h′)+ϵ<LD(h)", and sample-complexity functions are carried explicitly rather than as minimal functions.
Formalization targets
Goal: Corollary 4.6
Let H be a finite hypothesis class, Z a domain and ℓ:H×Z→[0,1] a loss function whose sections ℓ(h,⋅) are measurable. Then
H has the uniform convergence property with the function mHUC(ϵ,δ)=⌈log(2∣H∣/δ)/(2ϵ2)⌉;
every ERM learner for H is an agnostic PAC learner with the function mH(ϵ,δ)=⌈2log(2∣H∣/δ)/ϵ2⌉, which is mHUC(ϵ/2,δ);
if H is nonempty, H is agnostic PAC learnable.
Milestones
Lemma 4.2. If S is ϵ/2-representative and hS is an ERM hypothesis for S, then LD(hS)≤LD(h)+ϵ for every h∈H.
Corollary 4.4. If H has the uniform convergence property with mHUC, then every ERM learner for H is an agnostic PAC learner with the function (ϵ,δ)↦mHUC(ϵ/2,δ), and H is agnostic PAC learnable as soon as an ERM learner exists.
Lemma 4.5 (Hoeffding's inequality). For a probability measure D, a measurable θ with a≤θ≤b almost surely and mean μ=∫θdD, and ϵ>0,
Dm[m1∑i=1mθ(ωi)−μ>ϵ]≤2exp(−2mϵ2/(b−a)2).
Significance
Chapter 4 is where the book's account of learnability becomes distribution-free in the agnostic sense: nothing is assumed about D beyond being a probability distribution, and the guarantee is relative to the best hypothesis in the class. Lemma 4.2 and Corollary 4.4 are the reduction that every later generalization bound in the book (VC dimension, Rademacher complexity, covering numbers, compression) plugs into: prove uniform convergence, get ERM learnability. Corollary 4.6 is the first instance, and its log∣H∣/ϵ2 dependence, against the log∣H∣/ϵ of the realizable case, is the standard illustration of the price of agnosticism. Hoeffding's inequality is stated in the form the book uses everywhere afterward, for the product law of one distribution, with an almost-sure range bound and the mean written as an integral.
Nothing here is machine-checked. Mathlib has no Hoeffding inequality for sums of i.i.d. bounded variables on a product measure in this form, so Lemma 4.5 is a genuine contribution; its proof in the book's Appendix B goes through Hoeffding's lemma on the moment generating function of a bounded centered variable and the Chernoff bounding method, both of which will be needed by the concentration results of later missions.
Difficulty
Lemma 4.2 is three inequalities on real numbers and is the intended entry point. Corollary 4.4 is Lemma 4.2 applied on the complement of the failure event of uniform convergence at ϵ/2: the failure set of the learner is contained in the failure set of representativeness, and outer measure is monotone. Hoeffding's inequality is the substantial item: one needs the moment generating function bound Eeλ(θ−μ)≤eλ2(b−a)2/8 (Lemma B.7 of the book, by convexity of the exponential on [a,b]), independence of the coordinates under Measure.pi to factor the expectation of the product, Markov's inequality, and the optimization over λ; the two tails are treated separately and added. The degenerate cases are genuine: for m=0 the bound is 2 and the claim holds trivially, and for a=b Lean's convention x/0=0 makes the bound 2 again. Corollary 4.6 combines Hoeffding for each h∈H with a union bound over the finite class and an arithmetic step showing that m≥log(2∣H∣/δ)/(2ϵ2) gives 2∣H∣e−2mϵ2≤δ; the empty class makes the uniform convergence clause vacuous. The second and third clauses of the goal then follow from Corollary 4.4, the third by exhibiting an ERM learner, which exists for a nonempty finite class by choosing a minimizer of LS.
Formalization scope
The four items live in the general loss framework, not the binary-classification special case, because the chapter is stated for an arbitrary loss; Mission I's IsRepresentative and HasUniformConvergenceWith already carry the chapter's definitions, so no new definition module is introduced. Losses in Corollary 4.6 are real-valued with the range condition ℓ(h,z)∈[0,1] for every z and measurability of ℓ(h,⋅) for h∈H, which is what the book's "ℓ:H×Z→[0,1]" and Remark 3.1 give. The book's "mH(ϵ,δ)≤⋯" is stated as "the guarantee holds with the function ⌈⋯⌉", the same convention as Mission I. In Corollary 4.4 the ERM clause is universal over ERM learners, matching "the ERM paradigm is a successful agnostic PAC learner" for every choice of minimizer; the existence of an ERM learner is a separate hypothesis for the learnability clause because a class with no minimizers on some sample has no ERM rule. Hoeffding's inequality is on i.i.d. coordinates of Measure.pi; the book's "E[θi]=μ" is the definition of μ rather than an assumption.
Trivializing readings are excluded: the failure events are bounded in outer measure, so measurability of the events is not a loophole; representativeness is required for every h∈H; the sample-complexity functions are the book's, with ceilings. Welcome contributions: Hoeffding's lemma on bounded centered variables, the factorization of the moment generating function under Measure.pi, and a reusable union bound over a finite class.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 4 and Appendix B. doi:10.1017/CBO9781107298019
W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58(301), 1963. doi:10.1080/01621459.1963.10500830
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
S. Boucheron, G. Lugosi, P. Massart, Concentration Inequalities: A Nonasymptotic Theory of Independence, Oxford University Press, 2013, Chapter 2. doi:10.1093/acprof:oso/9780199535255.001.0001
Understanding Machine Learning I: The Statistical Learning Framework, ERM and Finite ClassesTextbook
Motivation
Chapters 2 and 3 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (Cambridge University Press, 2014, doi:10.1017/CBO9781107298019), set up the framework in which the whole book asks what learning is. A learner sees a sample drawn independently from an unknown distribution over examples, chooses a hypothesis from a class fixed in advance, and is judged by its risk, the expected loss on a fresh example. The natural rule is Empirical Risk Minimization: pick a hypothesis that does best on the sample. Chapter 2 shows that ERM over an unrestricted class overfits, that restricting the class is what makes learning possible, and that a finite class never overfits once the sample is larger than log(∣H∣/δ)/ϵ (Corollary 2.3). Chapter 3 turns this into a definition, Probably Approximately Correct learnability with its sample-complexity function mH(ϵ,δ), restates the finite-class result as Corollary 3.2, and then generalizes in two directions that the rest of the book lives in: the agnostic model, in which no hypothesis need be perfect and the learner competes with the best hypothesis in the class, and general loss functions, which cover regression, multiclass prediction and unsupervised tasks. Chapter 4 adds the notion of an ε-representative sample and of uniform convergence, the tool by which the finite-class result extends to the agnostic case; its definitions are included here since they complete the framework.
Setting
A domain Z of examples, a class H of hypotheses and a loss ℓ:H×Z→R. The risk of h under a distribution D is LD(h)=Ez∼Dℓ(h,z) and its empirical risk on S=(z1,…,zm) is LS(h)=m1∑iℓ(h,zi); a sample is drawn i.i.d., S∼Dm; an ERM hypothesis minimizes LS over H; a learning algorithm maps samples of each size to hypotheses. In binary classification the examples are (x,f(x)) with x∼D over X and f a labeling function, and the true error is L(D,f)(h)=D({x:h(x)=f(x)}); the realizability assumption says some h⋆∈H has L(D,f)(h⋆)=0. H is PAC learnable if some sample-complexity function mH and algorithm guarantee, for all ϵ,δ∈(0,1), all D and all realizable f, true error at most ϵ with probability at least 1−δ from m≥mH(ϵ,δ) examples; agnostic PAC learnability with respect to a loss asks instead for LD(h)≤minh′∈HLD(h′)+ϵ for every distribution over Z.
Formalization targets
Goal: Corollary 3.2
Every finite hypothesis class is PAC learnable with sample complexity
mH(ϵ,δ)≤⌈ϵlog(∣H∣/δ)⌉,
by the ERM rule: for a nonempty finite class of measurable hypotheses there is an ERM learner satisfying the PAC guarantee with that sample-complexity function.
Milestone
Corollary 2.3: under realizability, with m≥log(∣H∣/δ)/ϵ examples, every ERM hypothesis has true error at most ϵ with probability at least 1−δ.
Significance
Corollaries 2.3 and 3.2 are the first learning theorem of the book and the template for all later sample-complexity bounds: a bad hypothesis is consistent with an i.i.d. sample with probability at most (1−ϵ)m≤e−ϵm, and a union bound over the class turns this into a guarantee that holds uniformly over all distributions and all realizable labelings. Everything that follows, uniform convergence for finite classes, the fundamental theorem for classes of finite VC dimension, structural risk minimization, replaces the count ∣H∣ by a finer measure of the class's complexity but keeps the argument. None of this is machine-checked. The mission fixes on the platform the objects that the rest of the series uses without change: risks, empirical risks, the product law of a sample, the ERM relation, and the four learnability notions of Definitions 3.1, 3.4, 4.1 and 4.3.
Difficulty
The milestone needs that, for a fixed measurable hypothesis whose true error exceeds ϵ, the product law gives the event "zero empirical risk" probability at most (1−ϵ)m; this is the product structure of Measure.pi on the event that each labeled example lies in the measurable set where the hypothesis agrees with f, followed by 1−ϵ≤e−ϵ, the union bound over the finite class and the observation that under realizability every ERM hypothesis has zero empirical risk, so a bad ERM hypothesis is a consistent bad hypothesis. The goal packages this as a learner: existence of an ERM hypothesis for every sample (a finite nonempty class has a minimizer), and the arithmetic of the ceiling.
Formalization scope
The framework is the book's, with the risk as a Bochner integral, the sample law as a product measure, ERM as a relation and learners as deterministic functions of the sample; failure probabilities are stated as upper bounds on the outer measure of the failure set, the strong form of "with probability at least 1−δ"; the comparison with minh′∈HLD(h′) is written without an infimum. Sample-complexity functions are carried explicitly: the book's mH as the minimal such function is not defined, and "mH≤f" is stated as "the learner satisfies the guarantee with the function f". Hypotheses and labeling functions are assumed measurable (Remark 3.1). The union bound (Lemma 2.2) is Mathlib's measure_union_le and is not an item. Hypotheses: ϵ>0, δ∈(0,1), H finite (and nonempty for the learner to exist).
Trivializing readings are excluded: the milestone's failure event ranges over every ERM hypothesis, and the goal quantifies over all distributions, all realizable labelings and all ϵ,δ. Welcome contributions: the product-law bound for a fixed hypothesis and the union bound over a finset, which every later mission of the series reuses.
Selected references
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapters 2–4. doi:10.1017/CBO9781107298019
L. G. Valiant, A theory of the learnable, Communications of the ACM 27(11), 1984. doi:10.1145/1968.1972
D. Haussler, Decision theoretic generalizations of the PAC model for neural net and other learning applications, Information and Computation 100(1), 1992. doi:10.1016/0890-5401(92)90010-D
An Introduction to Computational Learning Theory II: Occam's Razor, Set Cover and Decision ListsTextbook
Motivation
Chapter 2 of Kearns and Vazirani, An Introduction to Computational Learning Theory (MIT Press, 1994, doi:10.7551/mitpress/3897.001.0001), gives a formal justification of Occam's Razor inside the PAC model. An Occam algorithm is judged not by the predictive power of its hypothesis but by how succinctly the hypothesis explains the sample before it: it must be consistent with the data and short, in the sense that its representation has fewer bits than the data it reproduces. The chapter's theorems say that, when the examples are drawn independently from a fixed distribution, such compression automatically yields prediction: a consistent hypothesis drawn from a small class is, with high probability, accurate on unseen examples. This turns the design of PAC learning algorithms into a combinatorial task, finding a short consistent hypothesis, and the chapter demonstrates the method three times: it shaves a logarithmic factor off the conjunction bound of Chapter 1, it learns conjunctions with few relevant variables through the greedy set-cover heuristic, and it learns Rivest's decision lists, a class strictly more expressive than k-CNF and k-DNF, by a greedy algorithm whose correctness is a one-line consequence of consistency.
Setting
The framework is that of Mission I: a measurable instance space, concepts as boolean functions, a target distribution D, the product law of a sample of m labeled examples, the error error(h)=Prx∼D[h(x)=c(x)], and consistency of a hypothesis with a sample. Hypotheses may be represented by binary strings through a representation map, with size the bit length; an (α,β)-Occam algorithm outputs a consistent hypothesis of size at most (n⋅size(c))αmβ with 0≤β<1. The set cover problem asks for a minimum subcollection of a collection S of subsets of a finite universe U that covers U; the greedy heuristic repeatedly picks the set covering the most uncovered elements. A k-decision list is a sequence of conditions, each a conjunction of at most k literals, with a bit attached to each and a default bit; it evaluates to the bit of the first satisfied condition. The greedy decision-list algorithm repeatedly finds a useful condition, one satisfied by some remaining examples all of which carry the same label, appends it with that label and removes those examples.
For a finite hypothesis class H, a target c, a distribution D and 0<ϵ≤1, the probability that a sample of m examples is consistent with some h∈H of error greater than ϵ is at most ∣H∣(1−ϵ)m; hence
m≥ϵ1(ln∣H∣+lnδ1)
makes this probability at most δ, and any algorithm that outputs a consistent hypothesis from H has error greater than ϵ with probability at most ∣H∣(1−ϵ)m.
Milestones
Theorem 2.1 (an (α,β)-Occam algorithm is a PAC algorithm, with explicit sample-size conditions in place of the constant a); the greedy set-cover bound of §2.3 (∣Ui∣≤(1−1/opt)i∣U∣ and optln∣U∣ sets cover); the improved conjunction bound of §2.2; Theorem 2.3 (k-decision lists are PAC learnable by the greedy algorithm, which never fails and whose outputs are consistent).
Significance
Theorem 2.2 is the single most used tool of the subject: every finite-class sample bound, including the ones for conjunctions, decision lists, k-CNF and the discretized geometric classes, is an instance of it, and the Vapnik–Chervonenkis theory of Chapter 3 is its extension to infinite classes with the growth function in place of ∣H∣. Theorem 2.1 is the philosophical statement, that succinct explanation implies prediction, and its converse (Exercise 2.3, and more strongly the boosting theorem of Chapter 4) makes Occam learning equivalent to PAC learning. The greedy set-cover bound is Chvátal's classical approximation guarantee, used in the book for learning with few relevant variables and again in later chapters. Theorem 2.3 is Rivest's result, and its proof exhibits the pattern "consistency by construction plus a counting bound" in its purest form. None of these is machine-checked. Their formalization gives the platform the union-bound-over-a-finite-class argument once and for all, in a form that the later missions of this series reuse verbatim.
Difficulty
Theorem 2.2 requires that, for a fixed measurable hypothesis with error greater than ϵ, the product law gives the event "consistent with all m examples" probability at most (1−ϵ)m, which is the product structure of Measure.pi applied to the event that each coordinate lies in the set where h agrees with c; the union bound over H and the elementary inequality (1−ϵ)m≤e−ϵm finish. Theorem 2.1 adds only the count of binary strings of length at most K and arithmetic with real exponents. The set-cover bound is a discrete induction: an optimal cover of U restricted to the uncovered elements has at most opt sets, so one of them, hence the greedy choice, covers a 1/opt fraction; the covering clause needs the strict inequality 1−1/opt<e−1/opt. Theorem 2.3 needs that a run of the greedy algorithm never repeats a condition (its satisfied examples are removed), so outputs lie in an explicit finite class, that the first condition of the target list satisfied by a remaining example is useful, and that a complete run is consistent; the bound is then Theorem 2.2.
Formalization scope
Everything is in the sample-complexity sense on the Mission I framework; running time is not modelled and "efficient" is dropped from every statement, which is recorded in the natural-language statements. Theorem 2.2's constant b is 1 with natural logarithms; Theorem 2.1's constant a is replaced by three explicit sufficient conditions. Hypotheses in the finite class are required to be measurable. The greedy heuristic and the greedy decision-list algorithm are relations (any tie-breaking), and the theorems quantify over every run; the decision-list theorem is stated for every k with the k-conjunctions as conditions, so that its hypothesis is a k-decision list rather than the expansion the book sketches for k>1. The conjunction count is 3n+1, including the empty concept that the elimination algorithm outputs on a sample without positive examples. The few-relevant-variables algorithm of §2.3 is not stated (its bound has an unspecified constant and m on both sides). Hypotheses: 0<ϵ≤1, 0<δ (and δ<1 where ln(1/δ) must be nonnegative).
Trivializing readings are excluded: the bad-consistent event is over all of H, the decision-list failure event ranges over every possible output, and the set-cover bound holds for every greedy run. Welcome contributions: the product-law bound for a fixed hypothesis, the union bound over a finset, the string-counting lemma, and the no-repetition lemma for greedy runs.
Selected references
M. J. Kearns, U. V. Vazirani, An Introduction to Computational Learning Theory, MIT Press, 1994, Chapter 2. doi:10.7551/mitpress/3897.001.0001
A. Blumer, A. Ehrenfeucht, D. Haussler, M. K. Warmuth, Occam's razor, Information Processing Letters 24(6), 1987. doi:10.1016/0020-0190(87)90114-1
V. Chvátal, A greedy heuristic for the set-covering problem, Mathematics of Operations Research 4(3), 1979. doi:10.1287/moor.4.3.233
R. L. Rivest, Learning decision lists, Machine Learning 2(3), 1987. doi:10.1007/BF00058680
D. Haussler, Quantifying inductive bias: AI learning algorithms and Valiant's learning framework, Artificial Intelligence 36(2), 1988. doi:10.1016/0004-3702(88)90002-1
An Introduction to Computational Learning Theory I: The PAC Model, Conjunctions, Rectangles and 3-CNFTextbook
Motivation
Chapter 1 of Kearns and Vazirani, An Introduction to Computational Learning Theory (MIT Press, 1994, doi:10.7551/mitpress/3897.001.0001), introduces Valiant's Probably Approximately Correct model, the framework for the whole book. A learner sees labeled examples of an unknown target concept drawn from an unknown but fixed distribution, and must output a hypothesis that, with probability at least 1−δ over the sample, misclassifies a fresh example with probability at most ϵ; the model is distribution-free, and the hypothesis is judged on the same distribution it was trained on. The chapter's three positive results are the templates for everything that follows. The rectangle game (Theorem 1.1) shows that an infinite class can be learned from a finite sample by exploiting the geometry of the error region. Conjunctions (Theorem 1.2) are learned by the elimination algorithm, whose analysis, a union bound over "bad" literals, is the prototype of every sample-size bound in the book. And 3-CNF formulae (Theorem 1.4) are learned by a change of variables that reduces them to conjunctions, which, set against the intractability of learning 3-term DNF as 3-term DNF (Theorem 1.3), is the reason the final definition of the model lets the hypothesis class differ from the concept class.
Setting
The instance space is a measurable space X, a concept is a function c:X→{0,1}, and the target distribution D is a probability measure on X. The error of a hypothesis h is error(h)=Prx∼D[h(x)=c(x)]. A sample of m examples is S=((x1,c(x1)),…,(xm,c(xm))) with the xi independent draws from D; a learning algorithm is a function from samples to hypotheses; it has the (ϵ,δ) guarantee on a class C if for every c∈C and every D the probability that its hypothesis has error greater than ϵ is at most δ; C is PAC learnable using H if for all ϵ,δ∈(0,1/2) some sample size and algorithm with hypotheses in H achieve the guarantee. For X={0,1}n a literal is a variable or its negation and a conjunction is a finite set of literals; the elimination algorithm starts from all 2n literals and deletes every literal contradicted by a positive example. For X=R2 the concepts are the closed axis-aligned rectangles and the tightest-fit algorithm returns the smallest rectangle containing the positive examples. A 3-CNF formula is a conjunction of clauses of at most three literals; the expansion a↦a′ records for each triple (u,v,w) of literals the value u∨v∨w.
Formalization targets
Goal: Theorem 1.2
Conjunctions of boolean literals are PAC learnable by the elimination algorithm: for every target conjunction, every distribution on {0,1}n and ϵ,δ>0, the elimination hypothesis is consistent with every sample labeled by the target, and with
m≥ϵ2n(ln2n+lnδ1)
examples its error exceeds ϵ with probability at most δ; hence conjunctions are PAC learnable using conjunctions.
Milestones
Theorem 1.1 (rectangles by the tightest fit, m≥(4/ϵ)ln(4/δ)) and Theorem 1.4 (3-CNF formulae by elimination over the (2n)3 expanded variables, the hypothesis being itself a 3-CNF formula).
Significance
Theorem 1.2 is Valiant's original result and the first instance of the two ideas that organize the subject: a hypothesis that is more specific than the target never errs on negative examples, and the error of the hypothesis decomposes as a sum over a polynomial number of "bad" events, each of which is avoided with probability exponentially close to one. Theorem 1.1 is the first learning result for an infinite concept class and the seed of the Vapnik–Chervonenkis theory of Chapter 3. Theorem 1.4 is the first reduction between learning problems and, together with Theorem 1.3, the demonstration that the choice of hypothesis representation can separate tractable from intractable. None of these theorems is machine-checked. Formalizing them fixes, for the rest of the series, the framework in which the error of a hypothesis, the law of a sample and the learnability of a class are stated, so that the Occam, VC-dimension, boosting and noise results of later chapters can be stated on the same objects.
Difficulty
The elimination analysis needs that the hypothesis contains every literal of the target, that its error is at most the sum over its literals z of p(z)=Pr[c(a)=1∧z=0 in a], and that a literal with p(z)≥ϵ/2n survives m independent examples with probability at most (1−ϵ/2n)m; the probabilistic content is the independence of the coordinates of the sample law, which is a product measure, and the inequality 1−x≤e−x. The rectangle analysis is the four-strip argument, which for an arbitrary distribution, possibly with atoms, requires choosing the strip {y≥t∗} with t∗ the supremum of the heights at which the strip has weight at least ϵ/4 and using the left-continuity of the weight in the height. The 3-CNF result transports the conjunction bound along the injective expansion: the pushforward of the sample law is the sample law of the expanded distribution, and the error of the composed hypothesis equals the error over the expanded variables. The deduction of PACLearnable from the explicit bounds is a choice of sample size.
Formalization scope
The model is stated in the sample-complexity sense: algorithms are functions of the sample, and the guarantee bounds the outer measure of the failure set under the product law of the sample, which is the strong form of "with probability at least 1−δ" and requires no measurability of the failure set. Running time, and hence "efficiently", is not modelled, and the hardness Theorem 1.3 is not stated; each theorem carries instead the explicit algorithm and the explicit sample bound of the book's analysis. Concepts on general instance spaces are required to be measurable in the guarantee. The cube is {0,1}n as functions Fin n → Bool; the expanded variables are indexed by the triples of literals, so N=(2n)3 is a Fintype.card. Rectangles are closed, possibly empty; the tightest fit of a sample without positive examples is the empty concept. Hypotheses: ϵ>0, 0<δ<1; the sample bounds are as printed, with natural logarithms.
Trivializing readings are excluded: the failure bound is uniform over all distributions and all targets in the class, consistency is asserted for every sample labeled by the target, and the learnability clause quantifies over all ϵ,δ. Welcome contributions: the product-law bound Pr[a fixed event of probability≥p is missed by all m examples]≤(1−p)m, the union bound over literals, and the pushforward identity for the expanded sample.
Selected references
M. J. Kearns, U. V. Vazirani, An Introduction to Computational Learning Theory, MIT Press, 1994, Chapter 1. doi:10.7551/mitpress/3897.001.0001
L. G. Valiant, A theory of the learnable, Communications of the ACM 27(11), 1984. doi:10.1145/1968.1972
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
L. Pitt, L. G. Valiant, Computational limitations on learning from examples, Journal of the ACM 35(4), 1988. doi:10.1145/48014.63140
Wasserstein Distributionally Robust Optimization IV: Regularization by Robustification in Classification and RegressionTextbook
Motivation
Regularization — adding a penalty on model complexity to an empirical risk minimization
objective — is one of the oldest and most reliably effective tools in statistical learning: ridge
regression, LASSO, and margin-based support vector machines all fit this template. For decades the
regularization weight and penalty function were chosen heuristically or by cross-validation, with
only asymptotic or worst-case generalization bounds explaining why they help. Kuhn, Mohajerin
Esfahani, Nguyen & Shafieezadeh-Abadeh's 2019 INFORMS TutORials chapter on Wasserstein
distributionally robust optimization (DRO) gives regularization a different, non-asymptotic
justification: a decision rule that is robust to adversarial perturbations of its training data,
measured in Wasserstein distance, is exactly a regularized empirical risk minimizer — no
approximation, no asymptotics. This mission formalizes the general form of that equivalence,
Theorem 10 (p. 14), which underlies every regularization-by-robustification result the chapter
derives for classification and regression alike.
Setting
Fix a normed space Ξ=Rm, a convex loss function ℓ:Ξ→R, a
radius ε≥0, and N training samples ξ^1,…,ξ^N∈Ξ (N≥1). The empirical distribution is P^N=N1∑i=1Nδξ^i. The
worst-case risk of ℓ at radius ε (eq. (6), p. 6) is
Rε,p(P^N,ℓ)=Q∈Bε,p(P^N)supEQ[ℓ(ξ)],
where Bε,p(P^N) is the type-p Wasserstein ball of radius ε around
P^N (Definition 1, p. 3) — the set of probability measures on Ξ within Wasserstein
distance ε of the empirical distribution, under a norm ∥⋅∥ on Ξ and its
transportation exponent p. The Lipschitz modulusLip(ℓ)=supξ=ξ′∥ξ−ξ′∥∣ℓ(ξ)−ℓ(ξ′)∣ (possibly +∞) measures how fast ℓ can grow.
Formalization targets
Goal (Theorem 10, convex loss and p=1). If ℓ is convex and p=1, then the worst-case
risk of ℓ over the type-1 Wasserstein ball around the empirical distribution coincides with
the Lipschitz-regularized empirical loss:
Rε,1(P^N,ℓ)=R(P^N,ℓ)+ε⋅Lip(ℓ),
where R(P^N,ℓ)=N1∑i=1Nℓ(ξ^i) is the ordinary empirical risk.
The left side is the worst-case expected loss under adversarial perturbations of the training data
of bounded aggregate Wasserstein cost; the right side is the ordinary empirical risk plus a
regularization term proportional to the perturbation radius ε and the loss's own
Lipschitz modulus — no approximation, an exact equality for every convex ℓ.
Significance
This is the single result underlying every specific regularization-by-robustification corollary
the chapter derives — the ℓ2-regularized SVM and its ℓ1/ℓ∞ variants,
regularized logistic regression, and the regression analogue with a Lipschitz loss (Proposition 3)
— because each of those is obtained by substituting a specific convex, Lipschitz loss (hinge,
logloss, a linear-model margin loss) for the general ℓ here and reading off
Lip(ℓ) in closed form. Theorem 10 is exact (p=1, Ξ = R^m) precisely because a
type-1 transportation cost is dual to the Lipschitz modulus (a consequence of the Kantorovich-
Rubinstein duality this book's earlier duality theorems establish), whereas the corresponding
statement for p≥2 (Theorem 11 elsewhere in the chapter) needs a strictly stronger hypothesis
on ℓ. Formalizing Theorem 10 fixes, machine-checkably, the exact scope of the equivalence —
which losses qualify (convex, no boundedness or smoothness needed), which transportation exponent
is required (p=1, not any p≥1), and that the equality is exact, not an upper or lower bound —
the single fact every classification- and regression-specific robustification corollary in the
chapter cites without re-deriving.
Difficulty
The natural first attempt treats the worst-case risk as an instance of the general finite convex
reduction (Theorem 8, which needs ℓ or a related concave/convex-conjugate structure and
applies for a general norm exponent p,q with 1/p+1/q=1) and specializes it to p=1. This is
not the paper's own route for Theorem 10: at p=1 the dual exponent q=∞, and the general
finite-convex-program reduction (11) degenerates in a way that is more naturally derived directly
from the type-1 Wasserstein distance's own dual (Kantorovich-Rubinstein) representation — a
Lipschitz test function pairs exactly with a type-1 transportation cost, which is why the answer is
Lipschitz-regularization and not some other penalty. The Lean statement records only the final
equality (the proof itself, via Theorem 8 or the direct Kantorovich-Rubinstein route, is left as
sorry, as required for a draft item), but the choice of which milestones would support that proof
is exactly this: the type-1/Lipschitz-modulus duality is a structurally different argument from the
finite-convex-program machinery Theorem 8 needs for other p, which is why this chapter's earlier
draft mistakenly tried to reach a specialization of Theorem 10 (Proposition 2, restated for a
labeled, κ=∞ ambiguity set) through a finite-atom shortcut that does not actually
capture the general type-1 ball Theorem 10's own proof needs — see Formalization scope.
Formalization scope
Ξ is EuclideanSpace ℝ (Fin m) (fixed to Set.univ, matching the theorem's own "Ξ = R^m"
hypothesis) with an arbitrary fixed norm as a type-class parameter, not specialized to Euclidean.
The worst-case risk, Wasserstein distance, ambiguity set, nominal risk, empirical distribution and
Lipschitz modulus are all redefined locally in this chapter's own namespace, verbatim restatements
of 01-duality's own drafts of the same objects (identical EReal/ENNReal/Integrable
conventions), because 01-duality is not yet a published mission
(CAPTAIN_ADDENDUM_WAVE2.md rule 5); a later upload can retire the duplication once it is live.
hN : 0 < N excludes the empty-sample case the paper's own "N training samples" presupposes;
hℓ : Integrable ℓ (empiricalDistribution ξhat) guards the empirical risk's Bochner integral
(automatically satisfied under any real-valued ℓ since the empirical distribution is a finite
convex combination of Dirac masses, but stated explicitly rather than assumed silently). No
constant is pinned to a numeral. This mission originally targeted Proposition 2 (regularization
by robustification for classification, p. 25), a specialization of Theorem 10 to a labeled,
κ=∞ input-output ambiguity set — but that draft's κ=∞ ambiguity set restricted admissible
perturbations to a finite family of exactly N atoms, each sample's entire mass moving as one
indivisible unit, which is a strict, non-faithful subset of the true κ=∞ Wasserstein ball
(splitting a sample's mass across several destinations is a legitimate, and for a convex loss
strictly more powerful, perturbation by Jensen's inequality). This made the goal theorem false for
at least one of the three loss functions (Table 1) the mission itself certified as covered
(logloss), not merely narrower than the paper's claim — moderation caught this and required either
a faithful general-ambiguity-set reformulation or retargeting the goal. This mission takes the
latter: Theorem 10 itself, already correctly and generally stated using the unrestricted
Wasserstein ball throughout, is now the goal, with no further milestone (no other numbered result
in this chunk's scope is needed for Theorem 10's own statement beyond the shared definitions
above). A future mission in this series can revisit Proposition 2/3 with a properly general
labeled ambiguity set once that construction (label-pinned marginal plus an aggregate coupling
condition on the input coordinate, rather than a finite atom family) is built.
Selected references
Kuhn, D., Mohajerin Esfahani, P., Nguyen, V. A., & Shafieezadeh-Abadeh, S. (2019). Wasserstein
Distributionally Robust Optimization: Theory and Applications in Machine Learning. INFORMS
TutORials in Operations Research. https://doi.org/10.1287/educ.2019.0198
Shafieezadeh-Abadeh, S., Esfahani, P. M., & Kuhn, D. (2015). Distributionally robust logistic
regression. Advances in Neural Information Processing Systems, 28.
Blanchet, J., Kang, Y., & Murthy, K. (2019). Robust Wasserstein profile inference and
applications to machine learning. Journal of Applied Probability, 56(3), 830–857.
Wasserstein Distributionally Robust Optimization III: Finite-Sample and Asymptotic Performance GuaranteesTextbook
Motivation
A decision maker who solves a distributionally robust optimization (DRO) problem over a
Wasserstein ball chooses a radius ε by hand, and it is natural to ask what guarantee
that choice actually buys: how large must ε be, as a function of the sample size N
and a desired confidence level, before the resulting worst-case risk is provably not an
underestimate of the true (unknown-distribution) risk? Kuhn, Mohajerin Esfahani, Nguyen &
Shafieezadeh-Abadeh's 2019 INFORMS TutORials chapter answers this for the mean-covariance
relaxation of Wasserstein DRO introduced via the Gelbrich hull (Section 2.3): Theorem 21 gives a
concentration inequality for how fast the sample mean and covariance approach the true mean and
covariance, and Theorem 22 turns that concentration bound into a finite-sample statistical
guarantee for the Gelbrich risk itself. This mission formalizes both.
Setting
Fix m∈N. Let P be the unknown true distribution on Rm with mean
vector μ and covariance matrix Σ∈S+m, and suppose P is light-tailed: there
exist α>2 and A>0 with EP[exp(∥ξ∥2α)]≤A. Let ξ^1,…,ξ^N be N independent, identically distributed samples from P; write PN for their joint
law (the N-fold product measure) and μ^,Σ^ for the resulting sample mean and
sample covariance, i.e. the mean and covariance of the empirical distribution P^N=N1∑iδξ^i. Recall from the Gelbrich construction the
mean-covariance uncertainty setUε(μ^,Σ^)={(μ,Σ)∈Rm×S+m:∥μ^−μ∥22+Tr[Σ^+Σ−2(Σ^1/2ΣΣ^1/2)1/2]≤ε2}, and the Gelbrich riskRε(μ^,Σ^,ℓ)=supQ∈Gε(μ^,Σ^)EQ[ℓ(ξ)] of a loss function ℓ over the Gelbrich hull Gε(μ^,Σ^).
Formalization targets
Milestone (Theorem 21, concentration inequalities II). There is c>1, depending on P
only through μ,Σ,α,A,m (not on any finer feature of P), such that for every
η∈(0,1],
Goal (Theorem 22(a), finite sample guarantees II). Under the same hypotheses, for every
η∈(0,1) and ε≥εN(η),
PN{R(P,ℓ)≤Rε(μ^,Σ^,ℓ)∀ℓ∈L}≥1−η.
With probability at least 1−η over the draw of the training sample, the Gelbrich risk
computed from that sample upper-bounds the true risk of every admissible loss function
simultaneously — not just of one fixed ℓ chosen in advance. (The paper's part (b), the
analogous guarantee $P^N\{R(P,\ell^\star) \le R_\varepsilon(\hat\mu,\hat\Sigma,\ell^\star)\} \ge 1-\eta$ for the specific optimizer ℓ⋆ of the Gelbrich risk minimization problem, is not
formalized in this mission — see Formalization scope.)
Significance
Theorem 22 is what makes the Gelbrich-risk relaxation of Wasserstein DRO more than a
computational convenience: it certifies that solving the tractable Gelbrich risk minimization
problem gives a decision whose true out-of-sample risk is, with high probability, no worse than
the value the solver reports — a genuine confidence guarantee, not merely an approximation of the
Wasserstein worst-case risk. Theorem 21's rate, εN(η)=O(N−1/2), is also of
independent interest: it is dimension-free (no curse of dimensionality), in contrast to the
paper's earlier general-distribution concentration result (Theorem 18, out of scope for this
mission) whose rate degrades with m. Formalizing Theorem 21 fixes, machine-checkably, the exact
functional form of εN(η) and the precise sense in which c is "distribution-free"
given (μ,Σ,α,A,m) — a subtlety easy to state informally but easy to get wrong
formally (see Difficulty).
Difficulty
The central formalization difficulty is not proving the theorems (both are left as sorry in this
draft) but stating the existential constant c correctly. The paper says c "depends on P only
through μ,Σ,α,A,m" — informally, a promise that c is uniform across every
distribution P sharing those five parameters, not merely that some c exists for each P
separately (a vacuously true, much weaker statement obtained by naively quantifying c after P).
The correct encoding places ∃cbefore the universal quantifier over P: for fixed
(μ,Σ,α,A,m), one c must work for every P with that mean, covariance, and tail
bound. Getting this quantifier order backwards silently converts a genuine finite-sample guarantee
into a triviality (FAITHFULNESS_TRAPS.md trap 8).
Formalization scope
Distributions live on EuclideanSpace ℝ (Fin m); PN, the law of N iid samples, is the
N-fold product measure MeasureTheory.Measure.pi (fun _ => P) on Fin N → EuclideanSpace ℝ (Fin m) — an event about the random sample sequence is a set of such tuples, and "PN[event]≥1−η" is that product measure's mass on the event set. All risk and uncertainty-set
definitions (meanVector, covarianceMatrix, meanCovarianceUncertaintySet, gelbrichHull,
gelbrichRisk, nominalRisk, empiricalDistribution) are redefined locally in this chapter's own
namespace, matching 02-gelbrich's conventions exactly, since neither 01-duality nor
02-gelbrich is yet a published mission (CAPTAIN_ADDENDUM_WAVE2.md rule 5); a later upload can
retire the duplication once those missions are live. The existential constant c is placed before
the universal quantifier over P in both theorems, exactly capturing "depends on P only through
µ,Σ,α,A,m" — see Difficulty. Only Theorem 22's part (a) (the uniform bound over a loss class
L) is formalized; part (b) — the bound for the specific optimizer ℓ* of the Gelbrich risk
minimization problem (19) — is left out, because it requires first formalizing "ℓ* is an
optimizer of problem (19)" as an object (an infimum-attaining selection over a data-dependent
optimization problem), which is additional infrastructure this mission's time budget did not
cover; formalizing it as an unconditional bound over an arbitrary data-dependent ℓ* (dropping the
optimality hypothesis) would be unfaithful — the guarantee genuinely depends on ℓ* being an
optimizer, not an arbitrary measurable function of the sample. The goal theorem also carries
hΞ, stating Ξ contains the support of P (the paper's own standing assumption, p. 6, for
every later use of Ξ), and hLInt, an Integrable ℓ P guard for every ℓ ∈ L, matching
Assumption 1 (p. 9); both were added after moderation found the goal's original statement,
without them, admitted a counter-instance (Ξ = ∅ collapses the Gelbrich hull to empty and the
risk supremum to ⊥, making the guarantee provably false rather than merely undisclosed). Theorem 18 (the general, dimension-
dependent concentration inequality with its piecewise ε_N(η) formula) and Theorems 19/20/23 (its
downstream guarantees and the asymptotic-consistency results) are out of scope for this mission,
which targets the Gelbrich-risk branch (Theorems 21/22) specifically.
Selected references
Kuhn, D., Mohajerin Esfahani, P., Nguyen, V. A., & Shafieezadeh-Abadeh, S. (2019). Wasserstein
Distributionally Robust Optimization: Theory and Applications in Machine Learning. INFORMS
TutORials in Operations Research. https://doi.org/10.1287/educ.2019.0198
Fournier, N., & Guillin, A. (2015). On the rate of convergence in Wasserstein distance of the
empirical measure. Probability Theory and Related Fields, 162(3), 707–738.
Gao, R., & Kleywegt, A. J. (2023). Distributionally robust stochastic optimization with
Wasserstein distance. Mathematics of Operations Research, 48(2), 603–655.
Foundations of Machine Learning XIII: The Johnson-Lindenstrauss LemmaTextbook
Motivation
High-dimensional data is often computationally expensive to work with and hard to visualize.
The Johnson-Lindenstrauss lemma answers a striking question in this setting: can any finite
set of points, no matter how high-dimensional the ambient space, be squeezed into a space of
dimension depending only on the number of points (logarithmically) and the desired accuracy,
while barely disturbing the distances between them? The answer is yes, and — remarkably — a
single, data-independent random construction (a random Gaussian matrix) achieves it with
positive probability for any point set. This mission formalizes the lemma and the two
probabilistic results its proof is built from.
Setting
For a set V of m points in RN, a map f:RN→Rk is a
(1±ϵ)-distance-preserving embedding of V if
(1−ϵ)∥u−v∥2≤∥f(u)−f(v)∥2≤(1+ϵ)∥u−v∥2 for every u,v∈V. The
book's proof constructs f=A/k from a random matrix A∈Rk×N with
i.i.d. standard normal (N(0,1)) entries, and argues by the probabilistic method: for a
fixed pair of points, Lemma 15.3 shows f preserves their squared distance up to
(1±ϵ) with probability at least 1−2e−(ϵ2−ϵ3)k/4, because the
ratio ∥f(x)∥2/∥x∥2 (for x the difference of the two points) is exactly a χk2
random variable, whose two-sided concentration around its mean k is Lemma 15.2. A union bound
over the O(m2) pairs in V then shows the probability that every pair is simultaneously
preserved is still strictly positive — so a map with the desired property must exist, even
though no single fixed matrix is exhibited.
Formalization targets
Lemma 15.2 (Chi-squared concentration, milestone). If Q∼χk2, then for
0<ϵ<1/2, P[(1−ϵ)k≤Q≤(1+ϵ)k]≥1−2e−(ϵ2−ϵ3)k/4.
Lemma 15.3 (Gaussian random projection distortion, milestone). For x∈RN,
k<N, and A∈Rk×N with i.i.d. N(0,1) entries,
P[(1−ϵ)∥x∥2≤k1Ax2≤(1+ϵ)∥x∥2]≥1−2e−(ϵ2−ϵ3)k/4.
Lemma 15.4 — the mission's goal (Johnson-Lindenstrauss). For 0<ϵ<1/2, integer
m>4, and k=20log(m)/ϵ2, any set V of m points in RN admits a map
f:RN→Rk with (1−ϵ)∥u−v∥2≤∥f(u)−f(v)∥2≤(1+ϵ)∥u−v∥2 for all u,v∈V.
Significance
This is one of the cleanest instances in the book of the probabilistic method: existence is
proved without exhibiting the object, by showing a random construction succeeds with positive
probability. The target dimension k=O(logm/ϵ2) is independent of the ambient
dimension N — the embedding works no matter how large the original feature space is, which
is exactly why the lemma has inspired random-projection methods throughout dimensionality
reduction, streaming algorithms, and compressed sensing. Prior art on the Prove2Me platform is
not faithful here: HighDimProb.Isoperimetry.johnson_lindenstrauss (Vershynin series) proves a
Johnson-Lindenstrauss-type bound, but via a uniformly-random m-dimensional subspace and its
orthogonal projection, rescaled by n/m — a genuinely different construction from this
book's explicit i.i.d.-Gaussian-matrix map f=A/k, and with different (existentially
quantified, unspecified) constants rather than this book's explicit k=20log(m)/ϵ2.
The two are classically known to give essentially the same qualitative guarantee, but showing
them equivalent would require an independent equivalence proof neither platform item nor this
mission undertakes; per the chunk's own brief, the Vershynin theorem is cited here only as
related work, not reused as a kind: reference item.
Not formalized here: Theorem 15.1 (the PCA solution), the chapter's other headline result.
BRIEF.md explicitly flags PCA and JL as the chapter's two independent capstones, not a
proof chain, and recommends dropping PCA if the mission focuses purely on JL. Theorem 15.1's
proof is an Eckart-Young-type Frobenius-norm optimization argument over the set of rank-k
orthogonal projection matrices — sharing no definitions, hypotheses, or proof technique with
the probabilistic-method argument this mission's three items are built from. Formalizing it
would mean standing up a second, unrelated piece of mathematics (constrained matrix
optimization, singular value decomposition) from scratch for a single additional item; per the
captain brief's guidance to leave out, rather than approximate, material disproportionate to
the time budget, it is omitted. §15.2 (kernel PCA) and §15.3 (Isomap, LLE, Laplacian
eigenmaps) are likewise out of scope, per BRIEF.md's own page-range restriction — applications-
heavy manifold-learning material with no numbered result feeding Lemma 15.4's proof.
Difficulty
Lemma 15.2's proof is a genuine Chernoff-bound argument: apply Markov's inequality to
exp(λQ), substitute the chi-squared distribution's own moment-generating function
(1−2λ)−k/2, and optimize the resulting bound over λ∈(0,1/2) by calculus
(the book's own choice λ=ϵ/(2(1+ϵ)) is exactly the minimizer) — not a
one-line union of tail bounds, and the same argument must be repeated (with a sign flip) for
the lower tail before combining via a union bound. Lemma 15.3's proof needs the non-obvious
observation that Tj=xj/∥x∥ (for x=Ax) are themselves i.i.d. standard
normal — a consequence of A's i.i.d. Gaussian entries and E[xj2]=∥x∥2,
not immediate from the definitions alone — before the sum of their squares can be recognized as
exactly a χk2 variable and Lemma 15.2 applied. Lemma 15.4's own proof, while
conceptually simple (a single union bound), needs the specific numerical accounting
2m2e−(ϵ2−ϵ3)k/4=2m5ϵ−3<2m−1/2 at the chosen
k=20log(m)/ϵ2 and ϵ≤1/2 to conclude the success probability is strictly
positive — a formalization that merely asserted "the union bound gives a positive probability"
without this exact accounting would not establish the book's specific, tight constant
k=20log(m)/ϵ2.
Formalization scope
SqNorm is the coordinate-wise squared Euclidean norm (∑ᵢ vᵢ²), used in place of Mathlib's
EuclideanSpace/PiLp norm typeclass machinery to keep the statements close to the book's own
concrete ℝ^N/ℝ^k-coordinate notation. IsChiSquaredMGF states the moment-generating-function
characterization of a chi-squared distribution that the proof of Lemma 15.2 itself cites
(Eq. C.25), rather than restating the book's own Definition C.7, which sits in an out-of-chapter
appendix not read for this mission; this is checked (in SELF_REVIEW.md) to be a faithful,
uniquely-determining substitute, since a real random variable's law is determined by its MGF
wherever it is finite near 0. IsIIDStandardGaussianMatrix states "i.i.d. standard normal
entries" via Mathlib's gaussianReal 0 1 (marginal law) together with iIndepFun (joint
independence). The goal theorem's target dimension k is taken as ⌈20 log(m)/ε²⌉ (Nat.ceil)
rather than the book's real-valued 20 log(m)/ε², since a map's codomain dimension must be a
natural number; this rounding only strengthens (never weakens) the existential conclusion, since
the union-bound success probability is monotonically increasing in k. No numerical constant in
any of the three items is otherwise altered from the book's own displayed form. A trivializing
formalization this mission avoids: stating Lemma 15.4 with an unspecified k = O(log m/ε²)
(an asymptotic, not an explicit constant) — per BRIEF.md's own naming of this as one of the
series' "explicit-constant" results, k's exact formula 20 log(m)/ε² (up to the ceiling
needed for well-typedness) is stated directly.
Selected references
M. Mohri, A. Rostamizadeh, A. Talwalkar, Foundations of Machine Learning, 2nd ed., MIT
Press, 2018, Chapter 15, §15.4.
W. B. Johnson, J. Lindenstrauss, "Extensions of Lipschitz mappings into a Hilbert space,"
Contemporary Mathematics 26, 1984, 189-206.
S. Vempala, The Random Projection Method, DIMACS Series in Discrete Mathematics and
Theoretical Computer Science, 2004.
Estimating a d×d covariance matrix Σ from n samples is a canonical
high-dimensional problem: the natural estimator, the sample covariance Σ^, is
consistent in operator norm only when n≳d, which fails outright in the regime
d≫n common to modern applications. When Σ is additionally known to be sparse —
few nonzero entries per row — a simple fix restores consistency even when d≫n: threshold
every entry of Σ^ below a data-dependent level to zero. This mission formalizes the
matrix concentration machinery behind that fix and the resulting guarantee, following
Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint (Cambridge University
Press, 2019), Chapter 6.
Setting
For a random matrix Q, the matrix variance is var(Q):=E[Q2]−(E[Q])2, and the Loewner orderA⪯B on symmetric matrices means B−A is positive
semidefinite. A zero-mean symmetric random matrix Q satisfies Bernstein's condition
(Definition 6.10) with parameter b>0 if E[Qj]⪯21j!bj−2var(Q)
for j=3,4,… — the matrix analogue of the scalar Bernstein condition of Chapter 2. The
operator (spectral) norm∣∣∣M∣∣∣2 is M's largest singular value.
Given a threshold λ>0, the hard-thresholding operator is Tλ(u):=u⋅1[∣u∣>λ], extended entrywise to matrices (Eq. (6.52)). A covariance matrix
Σ's sparsity pattern is captured by its adjacency matrixAjℓ:=1[Σjℓ=0] (p. 181); ∣∣∣A∣∣∣2≤d always, with equality only when
Σ has no zero entries, and ∣∣∣A∣∣∣2≤s whenever Σ has at most s
nonzero entries per row.
Let {xi}i=1n be i.i.d. zero-mean random vectors with covariance Σ, each
coordinate sub-Gaussian with parameter at most σ. If n>logd, then for any δ>0,
the thresholded sample covariance Tλn(Σ^) with λn/σ2=8logd/n+δ satisfies
The error scales with the graph sparsity ∣∣∣A∣∣∣2, not with d directly — the
whole point of thresholding when the ambient dimension is much larger than the sample size.
Milestone — Theorem 6.17 (the matrix Bernstein bound)
For independent, zero-mean, symmetric random matrices {Qi} satisfying Bernstein's
condition with parameter b,
This is the general matrix concentration tool the whole chapter builds toward; Theorem 6.23 is
one of its corollaries.
Milestone — Eq. (6.54) (the deterministic thresholding bound)
For any λn with ∥Σ^−Σ∥max≤λn,
∣∣∣Tλn(Σ^)−Σ∣∣∣2≤2∣∣∣A∣∣∣2λn — a purely
deterministic fact, with no probability involved, that reduces Theorem 6.23's proof to a single
probabilistic input: controlling ∥Σ^−Σ∥max.
Significance
Theorem 6.17 is the workhorse of the whole chapter: besides Theorem 6.23, it also underlies
Corollary 6.20's operator-norm bound for the unstructured sample covariance matrix (used in
turn for the two example ensembles in Section 6.4.5), by taking Qi:=xixiT−Σ. Theorem
6.23 itself is the standard justification for thresholding-based covariance estimators used
throughout high-dimensional statistics whenever the sparsity pattern of Σ, though
unknown, is believed to be structured.
Formalizing it. No faithful prior art exists on the platform for the matrix Bernstein bound
or covariance thresholding (a fresh search for "matrix Bernstein," "Bernstein condition
matrix," "thresholding covariance," and "sparse covariance" returned no hits). The existing
RademacherWigner.* items formalize spectral-edge and empirical-spectral-distribution bounds
for the Wigner ensemble specifically (a symmetric matrix with i.i.d. entries) — a narrower,
different random-matrix model from the general Bernstein-condition matrices this chapter treats,
and not reused here. All three theorems are drafted as open goals (:= by sorry).
Difficulty
The naive approach to a matrix tail bound — apply the scalar Chernoff/Bernstein technique
directly to the operator norm — fails because the operator norm is not a linear functional of
Q, so the scalar moment generating function bound does not translate directly. The resolution
(Lemma 6.13, not itself part of this mission) instead bounds the trace of the matrix
exponential of the sum, which is linear-algebraically tractable via the Golden–Thompson-type
inequality and the union bound over the (at most rank(Vˉ)) nonzero eigenvalue
directions of the aggregate variance Vˉ=∑ivar(Qi) — this is exactly why the
bound's prefactor is rank(Vˉ), not the ambient dimension d: a low-rank
aggregate variance (e.g. from a highly structured collection of matrices) yields a much
tighter bound than a naive union bound over all d eigen-directions would. Theorem 6.23's own
difficulty is entirely in the reduction to Theorem 6.17 plus Eq. (6.54): checking that
Qi:=xixiT−Σ satisfies the Bernstein condition with the stated parameters, and that
∥Σ^−Σ∥max concentrates at the stated rate via a union bound over the
O(d2) matrix entries.
Formalization scope
"Symmetric" is realized via Mathlib's Matrix.IsSymm; the Loewner order via
(B-A).PosSemidef. The matrix moment generating function itself (ΨQ(λ):=E[e^{λQ}]) is not
formalized, since none of this mission's three theorem statements need it directly — Bernstein's
condition (Definition 6.10) is stated purely in terms of polynomial moments E[Qj],
avoiding the substantial extra machinery (Mathlib's NormedSpace.exp for matrices) that a
faithful matrix-exponential definition would require, at no cost to faithfulness for the three
statements actually drafted.
Independence of {Qi}/{xi} is realized via Mathlib's iIndepFun; this required adding
a local MeasurableSpace (Matrix (Fin d) (Fin d) ℝ) instance in the workspace, since Matrix is
a def, not an abbrev, over the underlying Pi type, so Lean's instance search does not
automatically find the Pi-type MeasurableSpace instance for it. "Identically distributed" is
realized via Mathlib's IdentDistrib against a fixed reference index. "Each component
sub-Gaussian" is restated locally as an explicit MGF bound at the reference index, per this
book's cross-chapter rule against importing another chapter's draft definitions.
If a statement admits a trivializing formalization: the rank(...) prefactor of Theorem 6.17
is kept exactly, not replaced by the ambient dimension d (which would be a strictly weaker,
non-trivializing but unfaithful simplification, since the bound's whole point is that
rank(...) ≤ d can be much smaller). ‖·‖_max and opNorm at d=0 return Mathlib's junk
value 0 (harmless: no matrix entries or singular values exist at that degenerate size either).
Out of scope for this mission: Theorem 6.15 (the sub-Gaussian-tail matrix concentration result
that precedes Theorem 6.17 in the same section) and Corollary 6.20 (the unstructured
covariance-estimation corollary) — both natural follow-on work, cut for this chunk's time
budget; see STATUS.md.
Selected references
M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge
University Press, 2019. DOI: 10.1017/9781108627771.
Chapter 6.
J. A. Tropp, "User-friendly tail bounds for sums of random matrices," Foundations of
Computational Mathematics, 12(4):389–434, 2012.
Foundations of Machine Learning IX: Ranking and the Margin BoundTextbook
Motivation
Ranking is the learning problem behind search engines, recommendation systems and fraud-alert
triage: what matters is not a single classification decision but the relative order the system
assigns to a set of items, because a user or analyst can only act on the very top of a ranked
list. Chapter 10 develops margin-based generalization theory for the score-based ranking
setting, transplanting chunk 05-svm's single-sample Rademacher-complexity machinery to a
genuinely two-sample structure: a ranking example is a pair of points, one drawn from each of
two positions, and the chapter's bound must therefore control two marginal complexities rather
than one. It also introduces RankBoost, the ranking analogue of AdaBoost, with a boosting-style
empirical-error guarantee proved by the same normalization-factor telescoping argument as
chunk 07's AdaBoost bound, adapted to RankBoost's own pairwise per-round quantities.
Setting
A ranking example is a pair (x,x') drawn from a distribution D over X×X, labeled by a
preference function f; restricted to {-1,+1} labels (the simplification §10.2 adopts), a
scoring function h:X→ℝ misranks (x,x') when f(x,x')(h(x')-h(x)) ≤ 0 (Eq. 10.1/10.2). The
empirical margin loss R̂_{S,ρ}(h) (Eq. 10.3) uses the same Φ_ρ (Definition 5.5) as chunk
05-svm, restated locally here. Writing S1, S2 for the two coordinate projections of a
pair sample S, and D1, D2 for the corresponding marginals of D, R_m^{D1}(H) and
R_m^{D2}(H) are the Rademacher complexities of H under each marginal (p. 241). Theorem
10.1 bounds R(h) in terms of these two Rademacher-complexity terms, both in their population
form (R_m^{D1}, R_m^{D2}) and their empirical form (R̂_{S1}, R̂_{S2}), via chunk 03's
Theorem 3.3 applied through an auxiliary hypothesis family H̃ = {((x,x'),y) ↦ y[h(x')-h(x)]}.
Corollary 10.2 specializes this to kernel-based linear scoring hypotheses; §10.4 introduces
RankBoost (Figure 10.1), whose per-round weighted pairwise-outcome fractions ε_t^+, ε_t^-
(Eq. 10.11) play the role AdaBoost's single ε_t plays in chunk 07, and Theorem 10.3 bounds
RankBoost's empirical error in terms of them. Corollary 10.4 combines Theorem 10.1 with Lemma
7.4 (the convex hull of H has the same empirical Rademacher complexity as H, restated as a
standing fact of the boosting series) to give RankBoost's own margin-based guarantee.
Formalization targets
Theorem 10.1 — the mission's goal. For H a set of real-valued functions, ρ>0, δ>0,
with probability at least 1-δ, for all h∈H:
Corollary 10.2 (milestone). For a PDS kernel K with r an upper bound on K(x,x),
feature map Φ, and H = {x↦w·Φ(x) : ‖w‖≤Λ}, fixed ρ>0: R(h) ≤ R̂_{S,ρ}(h) + 4√(r²Λ²/ρ²/m) + √(log(1/δ)/(2m)).
Theorem 10.3 (milestone). RankBoost's empirical error verifies R̂_S(f) ≤ exp(-2∑_t((ε_t^+-ε_t^-)/2)²), and ≤ exp(-2γ²T) if the edge is uniformly at least γ>0.
Corollary 10.4 (milestone). Theorem 10.1's first bound, applied to h∈conv(H).
Significance
Theorem 10.1's proof is the chapter's genuine new technique, not a restatement of chunk 05's
Theorem 5.8: the two-sample decomposition (splitting the supremum over H̃ into a term on x'
alone and a term on x alone, each bounded by the Rademacher complexity under its own
marginal) is what the 2/ρ · (R_m^{D1}+R_m^{D2}) structure expresses, and collapsing it to a
single-sample bound would either be false or silently assume D1=D2 (which only holds for a
symmetric D, an assumption the theorem does not make). Corollary 10.2 is the direct
theoretical basis for the ranking SVM algorithm §10.3 derives. Theorem 10.3 mirrors chunk
07-boosting's Theorem 7.2 almost line for line in its proof technique (the same telescoping
product of normalization factors Z_t), but with genuinely different per-round quantities
(ε_t^+, ε_t^- rather than a single ε_t) that must not be conflated with AdaBoost's own, per
BRIEF.md's pitfall note. Corollary 10.4 is what makes RankBoost's output (a linear, not
convex, combination — normalized by ‖α‖_1) provably generalize independently of the number of
boosting rounds T, the ranking analogue of chunk 07's Corollary 7.5. No prior art exists on
the platform: GET /theorems?q=ranking%20loss returns zero hits.
Difficulty
Theorem 10.1's proof needs the two-sample structure carried through explicitly: H̃'s
Rademacher complexity splits, via the sub-additivity of sup and the fact that y_iσ_i and
σ_i have the same distribution, into a term on S2 alone and a term on S1 alone — treating
a ranking sample as an ordinary single sample (chunk 03's single-hypothesis-set machinery
applied naively) would drop this structure entirely and is exactly the pitfall BRIEF.md
names. Theorem 10.3's proof requires Z_t = ε_t^0 + 2√(ε_t^+ε_t^-) be bounded via the identity
4ε_t^+ε_t^- = (1-ε_t^0)^2 - (ε_t^+-ε_t^-)^2 and the inequality 1-x ≤ e^{-x} — the same
telescoping-normalizer technique as AdaBoost's Theorem 7.2, but RankBoost's own D_t,
ε_t^+, ε_t^- genuinely differ (they are defined via pairwise outcomes y_i(h(x'_i)-h(x_i)) ∈ {-1,0,+1}, not a single-point disagreement h(x_i)≠y_i) and must be modeled as their own
recursively-defined algorithm state, not obtained by substitution into chunk 07's AdaBoost
Lean.
Formalization scope
MarginLossFunction restates chunk 05-svm's Definition 5.5; EmpiricalRademacherComplexity/
RademacherComplexity restate chunk 03-rademacher-vc's Definitions 3.1/3.2; IsPDS restates
chunk 06-kernels's PDS-kernel definition; ConvHull restates chunk 07-boosting's convex-hull
definition — all duplicated rather than imported since a draft item cannot import another
chunk's draft module, and none is listed as reusable in missions/README.md's "Published
definitions" table at the time of this session. D1, D2 are computed directly as
Measure.map Prod.fst D/Measure.map Prod.snd D rather than posited via a separate marginal
hypothesis, so the theorem statement itself pins down that they are genuinely the marginals of
the sampling distribution D, not independent parameters. Corollary 10.2's r is an explicit
upper bound on K(x,x) (hrK : ∀ x, K x x ≤ r) rather than a literal sSup, per BRIEF.md's
pitfall note about the possibly-infinite supremum — the theorem's conclusion is monotonic in
r, so this is not a weakening. RankBoost's D_t, ε_t^+, ε_t^-, α_t, Z_t and returned
function f are modeled as their own recursively-defined algorithm state (mirroring chunk
07's AdaBoostDist/AdaBoostEpsilon/AdaBoostEnsemble pattern exactly, but built from
RankBoost's own pairwise-outcome quantities, never by substituting into the AdaBoost Lean, per
BRIEF.md's pitfall note) — RankBoostEpsilonPlus/RankBoostEpsilonMinus are already tied to
RankBoost's own D_t and selected base ranker, so Theorem 10.3 needs no separate hypothesis
connecting them (the same trivialization guard chunk 07's own Theorem 7.2 documents). No
numerical constant is altered from the book in any of the four theorems.
Not formalized: §10.3's ranking-SVM primal/dual optimization problems (an algorithm derived
from Corollary 10.2, not a generalization-theoretic result); §10.4.2 (RankBoost as coordinate
descent, an algorithmic-equivalence argument, not a generalization bound); §10.5 (bipartite
ranking, its own distinct problem formulation with a different generalization error, Eq. 10.20,
explicitly out of scope per BRIEF.md); §10.6-10.7 (preference-based ranking, other criteria),
out of scope per BRIEF.md. The uniform-over-ρ extension mentioned after both Theorem 10.1's
and Corollary 10.2's proofs (referencing Theorem 5.9's technique from a different chapter) is
not drafted, matching chunk 09-multiclass's identical scope decision for the analogous remark.
Selected references
M. Mohri, A. Rostamizadeh, A. Talwalkar, Foundations of Machine Learning, 2nd ed., MIT
Press, 2018, Chapter 10 (§10.1-10.4).
Y. Freund, R. Iyer, R. E. Schapire, Y. Singer, "An efficient boosting algorithm for combining
preferences," JMLR 4, 2003 (RankBoost's origin).
C. Cortes, M. Mohri, "AUC optimization vs. error rate minimization," NeurIPS 2003 (the
ranking-SVM connection §10.3 develops).
High-Dimensional Statistics XIV: Fano's Method for Minimax Lower BoundsTextbook
Motivation
Every convergence-rate result in the preceding chapters is an upper bound: some specific
estimator (the Lasso, PCA, kernel ridge regression) achieves a given error rate. A natural
and much harder question is the complementary one: is that rate actually the best any
procedure could achieve, no matter its computational cost? Answering this requires a theory
of lower bounds that holds simultaneously for every conceivable estimator — a fundamentally
different kind of argument from constructing and analyzing one particular algorithm.
Wainwright's High-Dimensional Statistics: A Non-Asymptotic Viewpoint (Cambridge University
Press, 2019), Chapter 15, develops this theory, unifying classical techniques (Le Cam, Assouad,
Fano) under one reduction: converting continuous estimation into discrete hypothesis testing.
Setting
Let X be a sample space and P a class of probability distributions on
X. A functional θ:P→Ω assigns each distribution a
parameter of interest. An estimator is a measurable map θ^:X→Ω. Fix a semi-metricρ:Ω×Ω→[0,∞) — symmetric,
triangle-inequality-satisfying, ρ(θ,θ)=0, but possibly ρ(θ,θ′)=0
for θ=θ′ — and an increasing Φ:[0,∞)→[0,∞). The minimax risk
is
M(θ(P);Φ∘ρ):=θ^infP∈PsupEP[Φ(ρ(θ^,θ(P)))],
the smallest worst-case expected loss achievable by any measurable estimator (Eq. (15.2)).
Given a 2δ-separated set{θ1,…,θM}⊆θ(P)
(every pair satisfies ρ(θj,θk)≥2δ) with representative distributions
Pθ1,…,PθM, Wainwright constructs a testing problem: sample J
uniformly from [M], then Z∼PθJ; write Q for the resulting joint law of
(J,Z). A test functionψ:X→[M] attempts to recover J from Z; its
error probability is Q[ψ(Z)=J].
Formalization targets
Goal (Proposition 15.1, "From estimation to testing")
For any increasing Φ and any 2δ-separated set with its induced joint testing measure
Q,
M(θ(P);Φ∘ρ)≥Φ(δ)ψinfQ[ψ(Z)=J].
This mission formalizes Proposition 15.1 alone (see Formalization scope below for why, and
what a follow-up mission would add to reach Fano's method proper, Proposition 15.12).
Significance
Proposition 15.1 is the single reduction every subsequent technique in the chapter
specializes: Le Cam's two-point method (Lemma 15.9, M=2, bounding the testing error via
total variation distance), Fano's method (Proposition 15.12, bounding it via mutual
information I(Z;J) and Fano's inequality), and Assouad's method (a different, hypercube-based
packing). Formalizing it in full generality — general Φ, general semi-metric, general
M-ary packing set — gives a single reusable lemma that a future mission proving any of these
specific bounds can build on directly, rather than re-deriving the reduction each time.
The theorem is already proved in the source; this mission's contribution is a machine-checked
formal statement (and, eventually, proof) of the reduction, in a form composing with any future
formalization of the chapter's testing-error bounds (total variation, Fano, or otherwise).
Difficulty
The proof combines two ingredients that must each be kept in their sharpest form: Markov's
inequality applied to Φ(ρ(θ^,θ)) (which only needs Φ increasing, not
convex or any specific shape — a premature specialization to Φ(t)=t2 would silently prove
a weaker, less reusable statement), and the reduction of any estimator to a test via nearest-
packing-point assignment (Eq. (15.4)), which uses the triangle inequality on ρ in a
specific direction (bounding ρ(θk,θ^) from below via ρ(θj,θk)
and ρ(θj,θ^)) to show that a small estimation error forces the induced test
to be correct. Getting the direction and strictness of every inequality right — non-strict
separation, but strict distance in the "test is correct" event — is where a naive restatement
goes wrong.
Formalization scope
X, Ω are arbitrary measurable spaces; the distribution class P is
realized as an indexed family measure : Idx → Measure 𝒳 rather than a bare set of measures,
composing directly with θ : Idx → Ω. The semi-metric ρ is a bare function with explicit
nonnegativity/reflexivity/symmetry/triangle-inequality hypotheses, matching the book's own
footnote definition, rather than Mathlib's PseudoMetricSpace typeclass (kept self-contained,
no extra instance machinery). The minimax risk is valued in ENNReal via the lower Lebesgue
integral ∫⁻, not the Bochner integral, specifically to avoid the non-integrable-loss junk
value 0 that a Bochner-integral formalization would silently introduce — a trivializing
formalization would use ∫ (Bochner) here, letting a non-integrable loss vanish and making the
inequality easier to satisfy than the book's actual claim; this mission does not do that. The
joint testing measure Q is characterized by its slice-measure equations directly on the
product space [M]×X, avoiding Mathlib's general conditional/disintegration
machinery while remaining exactly equivalent to "J uniform, Z∣J=j∼Pθj".
Disclosed major scope decision.BRIEF.md recommended Proposition 15.12 (the Fano bound
itself, Φ(δ)(1 - (I(Z;J)+\log 2)/\log M)) as this mission's goal. That statement requires, in
addition to everything above, a formalized notion of mutual information I(Z;J) between a
finite-valued and a general (possibly continuous) random variable, and its use of a Fano-type
inequality (Eq. (15.31), itself deferred by the book to "Section 15.4" and not fully quoted in
the brief). Building a faithful mutual-information formalization general enough for this
setting (finite J, arbitrary measurable Z) — matching Mathlib's or this repo's existing,
narrower information-theoretic developments (SourceCoding.*, built for a different,
channel-coding purpose per BRIEF.md's own prior-art note) or building one from scratch — is
substantially more than this session's remaining budget after building and self-reviewing
08-pca and 07-sparse-linear. This mission instead formalizes Proposition 15.1, the
foundational reduction Proposition 15.12 itself specializes (via a particular bound on
infψQ[ψ(Z)=J]), so that a follow-up mission can add the mutual-information/Fano
step on top of HighDimStat.Minimax.estimation_to_testing without redoing this reduction.
This mission's name, fixed from missions/README.md, still names "Fano's Method" as the
series slot this chunk occupies; its actual content is the reduction step every method in that
family (including Fano's) shares — recorded explicitly here and in STATUS.md, not left
implicit.
Selected references
Wainwright, M. J. High-Dimensional Statistics: A Non-Asymptotic Viewpoint.
Cambridge University Press, 2019. Chapter 15. DOI: 10.1017/9781108627771.
Le Cam, L. "Convergence of estimates under dimensionality restrictions." Annals of
Statistics, 1(1), 1973, 38–53.
Fano, R. M. Transmission of Information: A Statistical Theory of Communications. MIT
Press, 1961.
Yu, B. "Assouad, Fano, and Le Cam." In Festschrift for Lucien Le Cam, Springer, 1997,
423–435.
High-Dimensional Statistics XII: An Oracle Inequality for Nonparametric Least SquaresTextbook
Motivation
Regression is usually taught with a fixed parametric model: linear regression fits a
d-dimensional coefficient vector, and the estimation error is controlled by d/n. Many
regression problems in practice have no such finite-dimensional description — the regressor
is only known to be, say, convex, monotone, or smooth, and the estimator is a least-squares
fit over the (infinite-dimensional) set of functions with that shape. This is nonparametric
regression, and the basic question is the same as in the parametric case: how close is the
fitted function to the truth, as a function of the sample size n? Answering it requires
replacing "dimension" with a genuinely functional notion of complexity, since an infinite-
dimensional function class can still be small enough to estimate well (a Sobolev ball) or too
large to estimate at all. The theory in this mission, due to van de Geer and developed in
Chapter 13 of Wainwright (High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge
University Press, 2019), gives a single non-asymptotic template — the localized Gaussian
complexity — that answers this question for an arbitrary star-shaped function class, and
recovers the familiar parametric and Sobolev/RKHS rates as special cases.
Setting
Fix n design points x1,…,xn in an arbitrary covariate space X (fixed,
not random — this is the fixed-design setting) and observe
yi=f∗(xi)+σwi,i=1,…,n,
where f∗ is the unknown regression function, σ>0 is a known noise level, and
w1,…,wn are i.i.d. standard Gaussian. Given a class F of candidate functions, the
nonparametric least-squares estimate is any minimizer
f^n∈argf∈Fminn1i=1∑n(yi−f(xi))2.
Error is measured in the empirical (design-dependent) seminorm ∥g∥n2:=n1∑i=1ng(xi)2. A class H of functions is star-shaped if h∈H and
α∈[0,1] together imply αh∈H — every convex class containing the origin
has this property, and it is the minimal structural assumption under which the theory below
applies. For a star-shaped class H and radius δ>0, the local Gaussian complexity
measures how much a mean-zero Gaussian process can be made to look like a member of H
restricted to the ball of radius δ. A critical radiusδn is any positive
solution of Gn(δ;H)/δ≤δ/(2σ); by Lemma 13.6, δ↦Gn(δ;H)/δ is non-increasing on H star-shaped, so this inequality always has a
smallest positive solution.
Formalization targets
Lemma 13.6. For any star-shaped H, δ↦Gn(δ;H)/δ is
non-increasing on (0,∞), and consequently Gn(δ;H)/δ≤cδ has a
smallest positive solution for every c>0.
Theorem 13.5 (special case, f∗∈F).
P[∥f^n−f∗∥n2≥16tδn]≤e−ntδn/(2σ2)for all t≥δn.
Theorem 13.13 (goal — general oracle inequality, f∗ not assumed in F). With
δn solving the critical inequality for ∂F:=F−F, there are universal
constants (c0,c1,c2) such that for all t≥δn,
∥f^n−f∗∥n2≤γ∈(0,1)inf[1−γ1+γ∥f−f∗∥n2+γ(1−γ)c0tδn]for all f∈F,
with probability at least 1−c1e−c2ntδn/σ2. The goal is deliberately the
statement with unresolved universal constants and an infimum over γ, rather than any
single instantiated bound, so the target survives sharper constant tracking.
Significance
Theorem 13.13 is the "master" result behind essentially every concrete rate in the chapter:
orthogonal series regression, convex/monotone regression, and (via the KRR specialization of
Section 13.4) kernel ridge regression rates for Sobolev and Gaussian-kernel classes are all
obtained by bounding Gn for a particular F and reading off δn. Its value is that
it isolates exactly the one place where the geometry of F enters — the local Gaussian
complexity — while the probabilistic argument (a peeling/chaining argument controlling a
localized empirical process) is generic. Formalizing it produces, for the first time on the
platform, the statement-level infrastructure (star-shaped classes, local Gaussian complexity,
critical radius) that any future mission on a concrete nonparametric-regression rate — kernel
ridge regression, convex regression, isotonic regression — can specialize, without re-deriving
the oracle inequality from scratch. The proof itself (concentration of Gaussian complexity via
Borell-TIS/Gaussian comparison plus a peeling argument over dyadic scales) is not attempted
here; only the statement is formalized, as a draft goal for future proof contributions.
Difficulty
The naive route to Theorem 13.13 is to bound ∥f^n−f∗∥n pointwise via the basic
inequality 21∥f^n−f∗∥n2≤nσ∑iwi(f^n(xi)−f∗(xi))
and then bound the right side by σGn(δ;∂F) for δ=∥f^n−f∗∥n — but δ is itself random (it depends on the estimate), so this is
circular: the bound on the right depends on the very quantity being bounded. The chapter's
actual argument resolves this with a peeling device: partition the event space by which
dyadic annulus ∥f^n−f∗∥n falls into, and apply a uniform (non-circular) bound on
each annulus separately via Gaussian concentration, summing a geometric series of tail
probabilities. This is the step every first attempt misses, and it is why the local Gaussian
complexity — rather than the simpler global complexity of Chapter 4/5 — is the right object:
localizing to radius δ is what makes the per-annulus bound tight enough for the final
sum to converge.
Formalization scope
Design points are an arbitrary type X (no topology or metric structure is needed for the
statements themselves); the least-squares estimate is represented as a Prop
(IsLeastSquaresEstimate) picking out any function achieving the empirical minimum, matching
the book's "any minimizer" phrasing rather than assuming uniqueness. The local Gaussian
complexity is defined as an expectation over an explicit i.i.d.-standard-Gaussian noise vector
on an abstract probability space, with the inner supremum taken over the subtype of the
radius-restricted slice of the class — this is well-defined (not the junk value 0 of an
unbounded Set ℝ supremum) whenever the slice is nonempty, which holds automatically for any
nonempty star-shaped class (taking α=0 exhibits 0 in the class). Since neither X nor
H carries a topology, separability or countability constraint, SatisfiesCriticalInequality
adds an explicit Integrable hypothesis on that same supremum (added in revision), guarding
against Mathlib's Bochner integral silently returning the junk value 0 for a non-measurable
integrand — a value that would otherwise trivially satisfy the critical inequality for every
positive δ, regardless of the function class's actual local complexity. The trivializing
formalization to rule out here is stating Theorem 13.13's universal constants after the
quantification over the function class and sample size, which would let (c0,c1,c2)
secretly depend on the instance and make the "universal" claim vacuous; this mission places
the constant quantifiers first, before the class, design and noise data they must not depend
on. A complete downstream development would add: the concentration-of-Gaussian-complexity step
(Borell–TIS or a comparable tail bound), the peeling argument, and the metric-entropy /
Dudley-integral machinery of Section 13.2.1 for bounding Gn explicitly on concrete classes
(Sobolev balls, RKHS balls) — none of which is attempted here.
Selected references
M. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint, Cambridge
University Press, 2019, Chapter 13. https://doi.org/10.1017/9781108627771
S. van de Geer, Empirical Processes in M-Estimation, Cambridge University Press, 2000.
First-Order and Stochastic Optimization Methods for Machine Learning I: The Separation Theorem, Strong Duality and the KKT ConditionsTextbook
Motivation
Every convex optimization algorithm in machine learning — from projected gradient descent to
support vector machines to the mirror-descent methods of later chapters of this book — is
justified by a small set of optimality certificates: a checkable condition on a candidate
solution that guarantees it actually solves the problem, without searching the whole feasible
set. The most widely used such certificate is the Karush–Kuhn–Tucker (KKT) system: a set of
gradient and complementary-slackness equations that a solution of a convex program with
differentiable data must satisfy, and that (under a mild constraint qualification) is also
sufficient. It is the tool a practitioner reaches for to check optimality of a numerical solver's
output, and the tool a theorist reaches for to derive an algorithm (dual ascent, augmented
Lagrangian, interior point methods) in the first place. Every convex machine learning model
introduced in Chapter 1 of this book — regularized least squares, support vector machines,
logistic regression with constraints — is an instance of the general convex program these
milestones analyze.
The result traces back to Kuhn and Tucker's 1951 paper Nonlinear Programming, with Karush's
1939 unpublished thesis establishing the same conditions independently and earlier; Slater's 1950
unpublished note is the source of the constraint qualification that bears his name and that makes
the necessity direction possible. Lan's Chapter 2 gives a compact, modern, purely
finite-dimensional derivation of the whole chain — separation, duality, saddle points, KKT — from
first principles, self-contained in about twenty pages, aimed squarely at the convex programs
that appear in machine learning.
Setting
Fix n,m,p∈N and work in Rn with its standard inner product ⟨⋅,⋅⟩. A convex program (2.3.16) is
where X⊆Rn is a nonempty closed convex set, f,g1,…,gm:X→R are convex, and h1,…,hp are affine. A point x∈X is feasible if it
satisfies every gi(x)≤0 and hj(x)=0; x∗ is optimal if it is feasible and
f(x∗)≤f(x) for every feasible x.
The normal cone of X at x is NX(x):={w∈Rn:⟨w,y−x⟩≤0∀y∈X} — the set of directions that make an obtuse angle with every direction into
X from x; it is {0} when X=Rn, recovering unconstrained first-order
optimality. The Lagrangian is L(x,λ,y):=f(x)+∑iλigi(x)+∑jyjhj(x) for multipliers λ≥0, y∈Rp; the Lagrange dual value is
φ(λ,y):=minx∈XL(x,λ,y), and the Lagrange dual problem is
φ∗:=maxλ≥0,yφ(λ,y). Weak duality, φ∗≤f∗, holds
unconditionally by construction. Slater's condition asks for xˉ∈intX with g(xˉ)<0, h(xˉ)=0; the restricted Slater condition weakens the interior
requirement to the relative interior rintX while keeping strict inequality for
every (here: every) nonlinear constraint.
Formalization targets
Goal — Theorem 2.8(b), KKT necessity
x∗ optimal (with a restricted-Slater point)⟹∃λ∗≥0,y∗:∇f(x∗)+i∑λi∗∇gi(x∗)+j∑yj∗∇hj(x∗)∈NX(x∗),λi∗gi(x∗)=0∀i.
Companion — Theorem 2.8(a), KKT sufficiency
∃λ∗≥0,y∗ satisfying stationarity and complementary slackness at a feasible, differentiable x∗⟹x∗ optimal.
Supporting milestones, in attack order
Theorem 2.1 (separation): a point outside a closed convex set is strictly separated from it
by a hyperplane.
Proposition 2.9 (Convex Theorem on Alternative): insolvability of a strict-inequality
system, plus a Slater point, forces solvability of a dual multiplier system.
Theorem 2.6 (strong duality): under Slater's condition, φ∗=f∗ and the dual is
solvable.
Theorem 2.7(a)/(b) (saddle points): x∗ is optimal iff it extends to a saddle point of
L (the "only if" needs Slater's condition; the "if" needs nothing beyond the saddle
inequalities).
Each of these five is stated the way the book states it — no constant is hard-coded, no O(·) is
involved, and every hypothesis (closedness, convexity, Slater/restricted-Slater) is exactly the
one the corresponding proof uses.
Significance
The KKT system is the interface between convex optimization theory and every algorithm that
exploits it: primal-dual methods track approximate KKT residuals as a stopping criterion, and the
derivation of the Lagrange dual (used throughout the book's later treatment of composite and
constrained problems) rests on strong duality, milestone strong_duality here. The saddle-point
characterization (saddle_point_sufficient/saddle_point_necessary) is the standard route to
designing an algorithm: a method that provably drives a pair (xk,λk) to a saddle point
of L is provably convergent to an optimal x∗, without ever needing to verify optimality
directly against the primal problem.
None of the six substantive results here has a machine-checked proof on Prove2Me. The platform
holds a genuinely weaker unconstrained-in-K condition (OnlineConvexOpt.ConvexBasics. kkt_optimality, Hazan's Theorem 2.2: ⟨∇f(x∗),y−x∗⟩≥0 for y∈K,
with no inequality/equality constraints or multipliers at all) and a structurally different,
strictly more general cone-based Lagrange-duality development (VectorSpaceOpt.lagrange_duality
and VectorSpaceOpt.lagrangian_saddle_sufficient_pointed, from Luenberger, which bundle all
constraints into a single map into a convex cone in a general normed space, rather than Lan's
explicit Rm inequality / Rp equality split). Formalizing this mission
produces the finite-dimensional convex-program version of KKT in exactly the shape it is used and
taught: separate multiplier vectors for inequality and equality constraints, an explicit normal
cone rather than a cone-map abstraction, and both directions of the necessity/sufficiency split.
Difficulty
The separation theorem (Theorem 2.1) itself is routine once the projection onto a closed convex
set is available. The real difficulty is entirely in the direction of the Convex Theorem on
Alternative that Proposition 2.9 states: the naive idea — "insolvability of (I) should give a
separating hyperplane between {x:f(x)<c} and {x:g(x)≤0} directly" — fails, because
these are sets in Rn and separating them there does not produce a sign-definite
multiplier vector. Lan's proof instead lifts to Rm+1 and separates the epigraph-like
set T={u:∃x∈X,f(x)≤u0,g(x)≤u1:m} from the open orthant-like set S={u:u0<c,u1:m≤0}; only in this lifted space does the separating normal's sign
constraint (forced by S's unboundedness in the positive directions) translate into λ≥0. Getting the sign of the 0-th coordinate strictly positive — needed to normalize and divide
— is itself a small separate argument using the Slater subsystem's solution. The KKT necessity
direction (the goal) then chains three of these already-nontrivial results (separation →
CTA → strong duality → saddle necessity) before translating the saddle-point condition on L
into the gradient/normal-cone form via differentiability of f,g at x∗.
Formalization scope
All milestones are stated over EuclideanSpace ℝ (Fin n) with Convex/ConvexOn from Mathlib.
Affine equality constraints hj are represented by explicit witnesses wj∈Rn,bj∈R with hj(x)=⟨wj,x⟩+bj, so that ∇hj=wj is
available without a separate affine-differentiability lemma. The normal cone NX∗(x) is Lan's
own primal-space object (normalCone); the restricted Slater condition uses Mathlib's
intrinsicInterior ℝ X for rintX, distinct from the plain interior X used by
the un-restricted Slater condition of Theorems 2.6/2.7(b). Primal optimal values and Lagrange dual
values are stated via IsGLB/pointwise-inequality forms rather than raw sInf, so that no
hypothesis is silently made true by an empty or unbounded set defaulting sInf to a junk value —
in every milestone here the relevant set is guaranteed nonempty by the Slater-point hypothesis
already present.
A trivializing formalization this mission rules out: stating kkt_necessary/kkt_sufficient
with X=Rn (no set constraint) and empty g,h (no functional constraints) would
collapse the normal-cone condition to ∇f(x∗)=0 and make the whole KKT apparatus vacuous
of any duality content; the milestones here keep X, g and h as genuine free parameters (the
theorems are stated for arbitrary m, p : ℕ, including but not restricted to the degenerate case)
so that the constrained content of Lan's theorem is what gets proved.
Reusable beyond this mission: normalCone and lagrangian are generic enough that any later
chapter of this book needing Lagrangian duality or normal-cone stationarity (none of the current
first-wave chapters 03/06 needs them directly) could import them once published rather than
redeclaring. Contributions most welcome on the two hardest milestones,
cta_solvable_of_insolvable and kkt_necessary, since they carry the mission's real difficulty;
separation_point_closed can likely be discharged quickly via Mathlib's
geometric_hahn_banach_point_closed.
Selected references
G. Lan, First-Order and Stochastic Optimization Methods for Machine Learning, Springer Series
in the Data Sciences, Springer 2020, Chapter 2. https://doi.org/10.1007/978-3-030-39568-1
H. W. Kuhn and A. W. Tucker, "Nonlinear Programming," Proceedings of the Second Berkeley
Symposium on Mathematical Statistics and Probability, 1951, pp. 481–492.
W. Karush, "Minima of Functions of Several Variables with Inequalities as Side Constraints,"
M.Sc. thesis, University of Chicago, 1939.
R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970 (standard modern
reference for the separation theorem and Lagrangian duality used throughout).
High-Dimensional Statistics XI: The Moore-Aronszajn TheoremTextbook
Motivation
Many statistical problems — nonparametric regression, density estimation, dimension
reduction, testing — are naturally posed as optimization over a space of functions rather
than a finite-dimensional parameter vector. Hilbert spaces provide the right generality: they
carry an inner product and a norm, so notions of projection, orthogonality and least-squares
fitting all make sense, exactly as in ordinary Euclidean space, even though the "vectors" are
now functions. Reproducing kernel Hilbert spaces (RKHSs) are the particular class of
function-valued Hilbert spaces that make this program computationally tractable: they are
generated by a single bivariate kernel function, and every RKHS computation reduces to
evaluating that kernel, never to manipulating an infinite-dimensional object directly (the
"kernel trick"). Wainwright's High-Dimensional Statistics (2019), Chapter 12, develops the
foundational correspondence between kernels and Hilbert spaces that makes this possible, and
this mission formalizes its two central theorems.
Setting
A Hilbert space is a complete inner product space (Definitions 12.1–12.2); this mission
uses Mathlib's own NormedAddCommGroup/InnerProductSpace ℝ/CompleteSpace typeclasses for
this notion throughout. A linear functionalL:H→R is bounded if
∣L(f)∣≤M∥f∥H for some M<∞ and all f∈H; the Riesz representation theorem
(Theorem 12.5) says every such functional is L(f)=⟨f,g⟩H for a unique g∈H.
A bivariate function K:X×X→R is a positive semidefinite (PSD) kernel
(Definition 12.6) if it is symmetric and every finite Gram matrix
(K(xi,xj))i,j=1n is positive semidefinite — the natural generalization of a PSD matrix
to a (possibly infinite) index set X, with no topological structure on X required. A
reproducing kernel Hilbert space (RKHS) for a kernel K is a Hilbert space H of
functions on X such that, for every x∈X, the function K(⋅,x) belongs to H and
⟨f,K(⋅,x)⟩H=f(x)for all f∈H(12.3)
— the reproducing property. Equivalently (Definition 12.12), H is an RKHS exactly when
every evaluation functional f↦f(x) is bounded on H.
Formalization targets
Goal (Theorem 12.11, the Moore-Aronszajn theorem)
Given any PSD kernel function K on any set X, there is a Hilbert space H (embedded into
functions on X) in which K satisfies the reproducing property (12.3) — and this Hilbert
space is unique: any two Hilbert spaces with this property for the same K are linearly
isometric via an isometry intertwining their embeddings into functions on X.
Milestones
Theorem 12.5 (Riesz representation). Every bounded linear functional on a Hilbert space
H has a unique representer g∈H: L(f)=⟨f,g⟩H for all f. Used inside
the proof of Theorem 12.13 to produce the representer Rx of each evaluation functional.
Theorem 12.13 (the converse correspondence). Given any Hilbert space H of functions on
X in which every evaluation functional is bounded, there is a unique PSD kernel K
satisfying the reproducing property for H — completing the Moore-Aronszajn equivalence
between PSD kernels and Hilbert spaces with bounded evaluation functionals.
Theorem 12.20 (Mercer's theorem). Under compactness of X, continuity of K, and the
Hilbert-Schmidt condition ∫X×XK2dPdP<∞, the integral operator
TK(f)(x)=∫XK(x,z)f(z)dP(z) has an orthonormal eigenbasis (φj) of
L2(X;P) with non-negative eigenvalues (μj), and
K(x,z)=∑jμjφj(x)φj(z), with the series converging absolutely and
uniformly.
Significance
Theorem 12.11 is the theorem that makes the entire RKHS apparatus well-posed: every time a
statistician writes down a kernel — linear, polynomial, Gaussian — Theorem 12.11 guarantees
that a canonical Hilbert space of functions exists in which that kernel reproduces, so that
optimizing over "the RKHS associated with K" is a well-defined problem, not merely a
suggestive shorthand. Theorem 12.13's converse shows the correspondence is exact — the class of
kernel-generated Hilbert spaces is exactly the class of function spaces with bounded
evaluation, the class relevant to any statistical application that samples a function at
finitely many points. Together, these two results are the foundation the book's own later
chapters build directly on: Chapter 13's nonparametric least-squares oracle inequality, and
Chapter 14's kernel density estimation, both work by optimizing over an RKHS and are only
well-posed because of this correspondence. Mercer's theorem, in turn, is what connects the
RKHS viewpoint back to the earlier feature-map viewpoint of Chapter 12.2.2 (Eq. 12.2): the
eigenfunctions (μjφj)j give an explicit feature map into ℓ2(N)
realizing K, and its expansion is what later underlies the book's discussion of kernel PCA
and of RKHS balls as ellipsoids in ℓ2(N)-coordinates.
Difficulty
The formalization difficulty is concentrated in getting the type of the existence-and-
uniqueness claim right, not in any single hypothesis. A Hilbert space is not naturally a
subtype of a fixed ambient space in Lean, so "the Hilbert space H" of Theorem 12.11 is
formalized as an abstract type together with its own NormedAddCommGroup/InnerProductSpace ℝ/CompleteSpace instances, connected to "a space of functions on X" via an injective
linear embedding into X→R — and uniqueness must then be stated as an isometric
equivalence between any two witnessing Hilbert spaces that respects this embedding, the
faithful rendering of the book's own proof, which literally shows two candidate Hilbert spaces
are equal as sets of functions. A second subtlety is keeping Theorem 12.11's hypotheses
(a bare PSD kernel, no topology on X) cleanly separated from Mercer's theorem's additional
compactness, continuity and measure-theoretic apparatus — the two theorems are frequently
conflated informally, but the book is explicit that Theorem 12.11 needs none of Mercer's
structure.
Formalization scope
X is an unconstrained Type* for Theorem 12.5, 12.11 and 12.13 — no topology, matching the
book's own generality. Mercer's theorem (Theorem 12.20) additionally requires [MetricSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] and a finite measure P, matching its
own compactness/continuity/measure-theoretic hypotheses exactly, never applied outside that
scope. The integral operator TK of Eq. (12.11a) is presented as an abstract linear map on
Lp ℝ 2 P tied to the defining integral formula via an explicit hypothesis, rather than
constructed as a def, since constructing it as a genuine well-defined operator (needing
integrability and a.e.-measurability arguments) is proof content, not definitional content,
and this mission's definitions file is sorry-free by convention. Mercer's orthonormal-basis
index type is existentially quantified over a countable ι (∃ (ι : Type) (_ : Countable ι), ...) rather than fixed to ℕ, since L²(X;P) can be finite-dimensional for finite X
(Example 12.18/12.21), where no infinite orthonormal basis exists; the uniform-convergence
conjunct is correspondingly quantified over every bijection e : ℕ ≃ ι (vacuous when ι is
finite, a genuine order-independent claim when ι is countably infinite). A trivializing formalization
of this chapter would state only existence in Theorem 12.11 and drop uniqueness (explicitly
warned against by this chapter's own brief), or state Mercer's convergence merely pointwise
or in L2 rather than absolutely and uniformly; this mission avoids both. Out of scope: the
constructive proof detail of Theorem 12.11 (the explicit span-and-complete construction is proof
content, not part of the statement), the chapter's worked kernel examples (linear, polynomial,
Gaussian kernels, Examples 12.7–12.9), and the further consequences of Mercer's theorem
(Corollary 12.26 on RKHS-ball ellipsoids, the feature-map connection of Eq. 12.14) — all natural
follow-on work for a future mission on kernel-based nonparametric regression (Chapter 13,
mission 13-nonparametric-ls), which restates whatever RKHS objects it needs locally rather
than importing this mission's draft, per this book's series-wide convention.
Selected references
Wainwright, M. J. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge
University Press, 2019. Chapter 12. DOI: 10.1017/9781108627771.
Aronszajn, N. "Theory of reproducing kernels." Transactions of the American Mathematical
Society, 68(3), 1950, 337–404.
Mercer, J. "Functions of positive and negative type, and their connection with the theory of
integral equations." Philosophical Transactions of the Royal Society A, 209, 1909, 415–446.
High-Dimensional Statistics VIII: Oracle Inequalities for Decomposable RegularizersTextbook
Motivation
Chapters 2 through 8 of Wainwright's High-Dimensional Statistics build up sharp error
bounds for a sequence of specific high-dimensional models — sparse linear regression via the
Lasso (Chapter 7), sparse principal components (Chapter 8) — each proved from scratch with
techniques tailored to that model's own penalty and loss. Chapter 9 steps back and asks what
made all of those arguments work, and isolates the answer into two structural ingredients: a
decomposable regularizer, whose triangle inequality is tight across a well-chosen subspace
pair, and a restricted curvature condition on the loss, holding only on the cone that
decomposability forces the estimation error into. Once these two ingredients are checked for a
particular model, a single, already-proved oracle inequality hands back the error bound — no
further optimization-theoretic argument is needed. This mission formalizes that oracle
inequality itself, together with its two supporting theorems, as the reusable core the book's
later chapters (nuclear-norm matrix regression in Chapter 10, graphical model selection in
Chapter 11, group-sparse and overlap-group Lassos) each specialize.
Setting
Let Ω be a finite-dimensional real inner product space (e.g. Rd, or a matrix
space with the Frobenius inner product), and consider the regularized M-estimator
θ^∈θ∈Ωargmin{Ln(θ)+λnΦ(θ)},
where Ln:Ω→R is a convex empirical cost function, Φ:Ω→[0,∞)
is a norm-based regularizer, and λn>0 is a user-chosen regularization weight. Write
θ∗ for the true parameter and Δ:=θ^−θ∗ for the estimation error.
A pair of subspaces M⊆Mˉ of Ω — the model subspace
and its (possibly larger) closure — has an associated perturbation subspaceMˉ⊥, the orthogonal complement of Mˉ. The regularizer
Φ is decomposable with respect to (M,Mˉ) if the triangle
inequality Φ(α+β)≤Φ(α)+Φ(β) is an equality whenever
α∈M and β∈Mˉ⊥ — the regularizer penalizes
deviations away from the model subspace exactly as much as it possibly could. The canonical
example is the ℓ1-norm with M=Mˉ the subspace of vectors
supported on a fixed index set S.
Writing Φ∗(v):=supΦ(u)≤1⟨u,v⟩ for the dual norm, the good
eventG(λn):={Φ∗(∇Ln(θ∗))≤λn/2} says the
regularization weight dominates the dual norm of the score function at the truth — the
non-probabilistic conditioning hypothesis every result in this chapter is stated under. The
subspace Lipschitz constantΨ(S):=supu∈S∖{0}Φ(u)/∥u∥ measures the
worst-case price of converting between the regularizer Φ and the error norm ∥⋅∥ on
a subspace S.
Formalization targets
Goal (Theorem 9.19, "Bounds for general models")
Under (A1) Ln convex, satisfying restricted strong convexity (RSC) with curvature
κ>0, radius R and tolerance τn2 — En(Δ):=Ln(θ∗+Δ)−Ln(θ∗)−⟨∇Ln(θ∗),Δ⟩≥2κ∥Δ∥2−τn2Φ2(Δ)
for ∥Δ∥≤R — and (A2) Φ decomposable with respect to (M,Mˉ): conditioned on G(λn), any optimal θ^ satisfies
Proposition 9.13. Under (A2) alone, conditioned on G(λn), the error
Δ=θ^−θ∗ lies in the cone Cθ∗(M,Mˉ):={Δ∣Φ(ΔMˉ⊥)≤3Φ(ΔMˉ)+4Φ(θM⊥∗)} — the purely geometric
fact Theorem 9.19's curvature argument is built on.
Corollary 9.20. When θ∗∈M exactly, the approximation-error term of
εn2 vanishes and Theorem 9.19 collapses to
Φ(θ^−θ∗)≤κ6λnΨ2(Mˉ),
∥θ^−θ∗∥2≤κ29λn2Ψ2(Mˉ) — the form
used directly against every concrete model in the rest of the book.
Theorem 9.24. Under an alternative, gradient-based curvature condition (Φ∗-curvature,
Definition 9.22) and θ∗∈M, the dual-norm error is controlled directly:
Φ∗(θ^−θ∗)≤3λn/κ.
Significance
Theorem 9.19 is the book's own claimed unifying result: as it remarks explicitly, the theorem
is a deterministic implication, and every later probabilistic corollary in Parts II and III of
the book is obtained by (i) checking that a specific loss/regularizer pair is decomposable with
respect to a natural subspace pair for the problem at hand, (ii) certifying the RSC condition
with high probability for that loss (via concentration arguments from Chapters 2–6), and (iii)
choosing λn large enough that the good event holds with high probability — then reading
off the rate directly from εn2(M,Mˉ). Chapter 7's Lasso
bound (Theorem 7.13, mission 07-sparse-linear) is exactly Corollary 9.20 specialized to
Φ=∥⋅∥1 and M the subspace of s-sparse vectors — but Chapter 9 proves it
once, in a form that Chapter 10's nuclear-norm-regularized low-rank matrix regression (mission
10-matrix-rank), Chapter 11's graphical model selection, and the chapter's own group-Lasso and
overlap-group-Lasso examples all instantiate without re-deriving the optimization argument.
Difficulty
The formalization difficulty here is almost entirely conceptual rather than syntactic: getting
the two-subspace apparatus (M,Mˉ) exactly right. The book explicitly
allows Mˉ to be a strict superset of M (needed for the nuclear norm
in Chapter 10, where the naive choice M=Mˉ fails to be decomposable at
all), so every definition and theorem in this mission is parameterized by the pair, not by a
single subspace — and three genuinely different projections appear across the statements: the
error vector's projection onto Mˉ and onto Mˉ⊥ (both keep
the bar), versus the true parameter's projection onto M⊥ (the complement of the
small, unbarred subspace). A further subtlety specific to this printed source: several of the
book's own displayed equations for Ψ(⋅) in Theorem 9.19 and Corollary 9.20 lose the
overbar on Mˉ in PDF text extraction (a rendering artifact, not a mathematical
ambiguity); resolving which subspace is meant required reading the surrounding proof text line
by line, since only Ψ(Mˉ) — not Ψ(M) — is mathematically
consistent with how the constant is derived and used (see MODERATION_NOTES.md).
Formalization scope
Ω is [NormedAddCommGroup Ω] [InnerProductSpace ℝ Ω] [FiniteDimensional ℝ Ω], matching
the book's implicit assumption of a finite-dimensional inner-product parameter space throughout
this part of the book. The regularizer's norm axioms (IsRegularizerNorm), the dual norm, and
the subspace Lipschitz constant are all defined via sSup/sInf-free explicit formulas or
sSup over an explicitly-described set (never an unconstrained supremum over all of Ω),
so no faithfulness trap from an unbounded or empty supremum arises (see
MODERATION_NOTES.md's trap table). κ > 0 and λ_n > 0 are made explicit hypotheses of every
theorem, matching Definition 9.15's own stated positivity of κ and the chapter's
running convention that λn is a positive regularization weight — never a narrowing
of the theorem's actual scope. A trivializing formalization of this chapter would either collapse
the two-subspace machinery to a single subspace M=Mˉ (which is faithful
only for the ℓ1/group-Lasso examples, not the general theorem, and not what Chapter 10
needs) or silently drop the second conjunct of Theorem 9.19's conclusion (part (b), the actual
quantitative rate) in favor of only the qualitative part (a); this mission formalizes the full
two-subspace statement and both conjuncts of the goal theorem. Out of scope: the chapter's
worked examples (sparse GLMs, Corollary 9.26; group Lasso; nuclear-norm matrix regression) that
specialize the goal to concrete models — Chapter 10's own mission (10-matrix-rank) restates
the needed instance of this framework locally rather than importing this mission's draft, per
this book's series-wide convention that no draft imports another chunk's draft. Also out of
scope: the RSC-implies-restricted-eigenvalue correspondence (Example 9.16) and the
μn(Φ∗)-based general RSC certification (Theorem 9.36, Section 9.8), both purely
probabilistic results that lie outside this chapter's own deterministic core.
Selected references
Wainwright, M. J. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge
University Press, 2019. Chapter 9. DOI: 10.1017/9781108627771.
Negahban, S. N., Ravikumar, P., Wainwright, M. J., Yu, B. "A unified framework for
high-dimensional analysis of M-estimators with decomposable regularizers." Statistical
Science, 27(4), 2012, 538–557.
Tibshirani, R. "Regression shrinkage and selection via the Lasso." Journal of the Royal
Statistical Society: Series B, 58(1), 1996, 267–288.
Support Vector Machines VII: Consistency of Support Vector Machines for RegressionTextbook
Motivation
Chapter 9 asks whether the support vector machine — a regularized empirical risk minimizer
fD,λ over an RKHS H — is a statistically consistent estimator for regression: does
RL,P(fD,λn)→RL,P∗ as the sample size n→∞, for a suitable
regularization schedule λn→0? The chapter's main theorem (Theorem 9.1) answers yes,
under an explicit polynomial rate condition on λn. Its proof reduces the question to
bounding how far the empirical regularized solution can be from the population regularized
solution, and that reduction bottoms out in a single concentration-of-measure fact: how tightly
does an empirical mean of i.i.d. Hilbert-space-valued random variables concentrate around its
true mean, given only a bound on one q-th moment (no exponential-moment assumption at all)? That
fact is Lemma 9.2, "the following lemma to bound the probability of ∣RL,P(fD,λ)−RL,P(fP,λ)∣≤ε for ∣D∣→∞" — the technical core the whole
chapter's consistency argument rests on, and this mission's goal.
Setting
Fix a measurable space Z, a distribution P on Z, a separable Hilbert space H, and a
measurable g:Z→H. Its q-th moment norm, for q∈(1,∞), is ∥g∥q:=(EP∥g∥Hq)1/q — the direct Hilbert-space analogue of an ordinary Lq norm. The
proof machinery behind concentration results of this kind is symmetrization: replacing a
centered i.i.d. sum n1∑i(ξi−EPξi) by a Rademacher-randomized sum
n1∑iεiξi, where a Rademacher sequenceε1,…,εn
is a family of independent ±1-valued random variables, each taking each sign with probability
1/2. Once randomized, the sum's Lp-norms (for different p) become comparable to each other
via Kahane's inequality, with a universal constant depending only on the two exponents
involved — never on the sample size or the ambient Banach space.
Formalization targets
Goal: Lemma 9.2 (concentration of Hilbert-space-valued sample means)
for a universal constant cq>0 depending only on q, every ε>0 and every n≥1.
This is a genuine generalization of Chebyshev's inequality to Hilbert-space-valued means, sharp
enough (via the explicit rate n−q∗) to drive Theorem 9.1's own polynomial regularization
condition λnp∗n→∞.
Milestones (attack order)
Theorem A.8.1 (Symmetrization) — EPΨ(∥n1∑i(ξi−EPξi)∥)≤EPEνΨ(2∥n1∑iεiξi∥) for convex
non-decreasing Ψ, i.i.d. P-integrable ξi valued in a separable Banach space, and a
Rademacher sequence εi. Directly cited in Lemma 9.2's proof ("Using the
symmetrization argument given in Theorem A.8.1...").
Theorem A.8.3 (Kahane's inequality) — for a Rademacher sequence, every two Lp(ν) and
Lq(ν) norms of ∥∑iεixi∥ are comparable via a universal constant
Kp,q, independent of n and the Banach space E. Directly cited in Lemma 9.2's proof
("If q∈(1,2], we obtain with Kahane's inequality, see Theorem A.8.3, that...").
Theorem 9.1 itself (BRIEF.md's recommended goal — the full SVM-regression consistency theorem)
was not attempted this session; see STATUS.md for the reason and the fallback taken instead.
Significance
Lemma 9.2 is stated and proved once, in the Appendix's general Rademacher-sequence toolkit and
this chapter, and then used directly to obtain Theorem 9.1's consistency guarantee: substituting
g:= the pointwise SVM "difference process" into Lemma 9.2 converts a purely probabilistic
concentration fact into a statement about how close the empirical SVM solution's risk is to the
population solution's risk, for every sample size. Because the bound depends on nothing but a
single moment ∥g∥q — no boundedness, no sub-Gaussian tail — it is what lets Theorem 9.1 avoid
assuming the loss or the label distribution has any exponential tail control, which is essential
for regression (where Y⊂R need not be bounded, unlike the classification setting
of this series' earlier chapters). Symmetrization and Kahane's inequality are themselves standard,
reusable tools of empirical process theory (used throughout Chapter 7's entropy-number program,
excluded from this series, and Chapter 6's classification oracle inequality).
Difficulty
The published proof of Lemma 9.2 is a short but dense computation: Markov's inequality reduces the
tail bound to bounding EPn∥h∥Hq for the centered mean h; Theorem A.8.1
symmetrizes; for q∈(1,2], Theorem A.8.3 (Kahane) converts the q-th moment of the
Rademacher sum to its second moment, which an explicit orthogonality computation (the book's Eq.
(9.4), Eνn∥∑iεixi∥2=∑i∥xi∥2 for any fixed
x1,…,xn, an immediate consequence of the Rademacher signs' independence and the Hilbert
space's parallelogram identity) reduces to a sum of individual second moments; the case q>2
argues analogously with a different exponent split. None of this computation is captured by this
mission's two milestones alone — they supply the two cited theorems, not the connecting algebra
— so a complete proof of the goal from the milestones as stated still requires reconstructing this
argument, exactly as the captain brief's milestones are meant to be (the book's own attack path,
not a fully mechanized proof outline).
Formalization scope
Z and Θ (the Rademacher sequence's own probability space) are arbitrary measurable
spaces; H is [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] [MeasurableSpace H] [BorelSpace H] [SeparableSpace H] (a separable real Hilbert space with its Borel
σ-algebra), matching "H be a separable Hilbert space" without narrowing to a concrete
space (e.g. ℓ2) the book itself does not assume. IsRademacherSequence states independence
via Mathlib's iIndepFun and the ±1-probability-1/2 condition directly, since no ready-made
"Rademacher distribution" object exists in this Mathlib revision (checked by search). q∗:=min{1/2,1−1/q} is substituted algebraically rather than introducing a separate conjugate
exponent q′, since 1/q+1/q′=1 pins q′ down uniquely — not a change of content. In Theorem
A.8.3, "for all Banach spaces E" quantifies over E : Type (the Type 0 universe) rather than
every universe Type*, a disclosed minor restriction with no effect on this mission's own use of
the theorem (with E instantiated to a Type* Hilbert space H that is, in every actual
application, itself at the Type level).
A trivializing formalization here would drop the "independent" half of IsRademacherSequence
(leaving only the marginal ±1-probability-1/2 condition, true even for perfectly correlated
signs) or drop the "i.i.d." qualifier on ξ1,…,ξn in Theorem A.8.1 (both symmetrization
and Kahane's inequality are false, or at least unproven by the book's own argument, without
independence) — both are ruled out here by stating iIndepFun explicitly rather than only the
marginal distribution conditions.
IsRademacherSequence is reusable beyond this mission: any future formalization of Chapter 7's
entropy-number/Rademacher-complexity program, or of Chapter 6's oracle inequality's own use of
Rademacher averages, would restate it locally (per Hard Rule 9) from the same book definition.
Contributions completing the three sorrys are welcome; Theorem 9.1 itself remains a natural,
substantially larger follow-up mission built on top of this one's two milestones together with
the RKHS/regularized-risk-minimizer apparatus already available in this series' 04-representer
mission (restated locally, per Hard Rule 9).
Selected references
I. Steinwart & A. Christmann, Support Vector Machines, Springer, Information Science and
Statistics, 2008. https://doi.org/10.1007/978-0-387-77242-4 (Chapter 9, §§9.1-9.2, pp. 333-337,
and Appendix §A.8, pp. 535-537).
J.-P. Kahane, Some Random Series of Functions, 2nd ed., Cambridge University Press, 1985
(Kahane's inequality, Theorem A.8.3's original source).
A. W. van der Vaart & J. A. Wellner, Weak Convergence and Empirical Processes, Springer, 1996
(Lemma 2.3.1, the source of Theorem A.8.1's proof technique).
High-Dimensional Statistics VII: Eigenvector Perturbation for High-Dimensional PCATextbook
Motivation
Principal component analysis (PCA) is one of the oldest and most widely used tools in
multivariate statistics: given data with covariance matrix Σ, project onto the
top eigenvector(s) of Σ to find the directions of maximal variance. In practice
one never observes Σ itself, only a perturbed version — a sample covariance
matrix Σ^=Σ+P, with P the (random) estimation error. The natural
question, asked since at least Davis and Kahan (1970) and Wedin (1972), is: how close
is the top eigenvector of Σ^ to that of Σ? Wainwright's
High-Dimensional Statistics: A Non-Asymptotic Viewpoint (Cambridge University Press,
2019), Chapter 8, gives a self-contained, sharp, non-asymptotic answer, phrased
entirely in terms of two deterministic quantities: the eigengap of Σ, and a
single scalar summarizing how the perturbation P couples to the top eigendirection.
Unlike most of the results in this book series, this one is a statement of pure linear
algebra: no probability, no concentration inequality, no sample size is needed to state
or prove it. Randomness enters only afterward, when P is instantiated as an actual
sampling error and bounded using the machinery of earlier chapters (Corollary 8.7, out
of this mission's scope).
Setting
Let Σ∈Rd×d be a symmetric positive semidefinite matrix. Say
θ∈Rd is a maximal unit eigenvector of Σ if ∥θ∥2=1
and θ maximizes the Rayleigh quotient ⟨θ,Σθ⟩ over
the whole unit sphere Sd−1 — the variational characterization of the top
eigenvector/eigenvalue pair, matching Eq. (8.14) of the book. Write
γ1(Σ):=⟨θ∗,Σθ∗⟩ for the corresponding
top eigenvalue. Say Σ has eigengapν>0 at θ∗ if every unit
vector v orthogonal to θ∗ satisfies ⟨v,Σv⟩≤γ1(Σ)−ν — the Courant-Fischer variational form of the book's
ν:=γ1(Σ)−γ2(Σ).
For a symmetric perturbation matrix P∈Rd×d, write
∣∣∣P∣∣∣2:=sup∥v∥2=1∣⟨v,Pv⟩∣ for its ℓ2-operator
norm, and
p~:=Pθ∗−⟨Pθ∗,θ∗⟩θ∗
for the component of Pθ∗ orthogonal to θ∗ — the piece of the
perturbation that actually couples the top eigendirection to the rest of the space
(Eq. (8.11)). Note ∥p~∥2 can be far smaller than ∣∣∣P∣∣∣2: a
perturbation can be large in every direction yet barely move the top eigenvector, if
its interaction with θ∗ specifically is small.
Formalization targets
Goal (Theorem 8.5)
Let Σ be symmetric positive semidefinite with maximal unit eigenvector
θ∗ and eigengap ν>0. For any symmetric P with ∣∣∣P∣∣∣2<ν/2, and any maximal unit eigenvector θ^ of Σ^:=Σ+P
with ⟨θ^,θ∗⟩≥0,
∥θ^−θ∗∥2≤ν−2∣∣∣P∣∣∣22∥p~∥2.
Milestone (Lemma 8.6, the PCA basic inequality)
Under the same eigengap hypothesis, with $\Psi(\Delta;P) := \langle\Delta,P\Delta\rangle
The bound isolates exactly what drives eigenvector instability: not the raw size of
the perturbation but its projection onto the top eigendirection, rescaled by the
inverse eigengap. This explains, in one inequality, the qualitative phenomenon
Example 8.4 illustrates numerically (a tiny perturbation can move the eigenvector far
when the eigengap is small) and quantifies exactly how far. It is the deterministic
engine behind every consistency result for PCA in the rest of the chapter: Corollary
8.7 (rates for the spiked covariance model) and the sparse-PCA guarantee (Theorem
8.10) both specialize this same bound, after bounding ∥p~∥2 and
∣∣∣P∣∣∣2 using concentration for a specific random design. It is also a
sharp instance of the general Davis-Kahan-type perturbation theory for symmetric
matrices, phrased with an explicit, non-asymptotic constant rather than an O(⋅).
The theorem is already proved in the source; this mission's contribution is a
machine-checked formal statement (and, eventually, proof) of the bound and its
supporting basic inequality, composing with any future formalization of the chapter's
probabilistic corollaries.
Difficulty
The proof is genuinely variational, not spectral: it never diagonalizes Σ or
Σ^, only uses that θ∗ and θ^ are optimal for their
respective Rayleigh-quotient maximizations. The one place a naive argument fails is
in bounding ∣Ψ(Δ;P)∣ itself (the proof of Lemma 8.6): a direct
Cauchy-Schwarz bound on ⟨Δ,PΔ⟩ using ∣∣∣P∣∣∣2 alone
would produce a bound in terms of ∣∣∣P∣∣∣2 throughout, not the sharper
∥p~∥2 the theorem actually delivers; getting the sharper dependence
requires decomposing Δ along θ∗ and its orthogonal complement and
tracking the two pieces separately (the ϱ, z decomposition on p. 244). The
sharpness of the threshold ∣∣∣P∣∣∣2<ν/2 is also not a proof artifact:
the book's own 2×2 example (Σ=diag(2,1),
P=diag(−1/2,1/2)) shows the perturbed matrix can lose a unique maximal
eigenvector exactly at ∣∣∣P∣∣∣2=ν/2.
Formalization scope
Σ, P, Σ^=Σ+P are Matrix (Fin d) (Fin d) ℝ; "symmetric" is
M.transpose = M; "positive semidefinite" is the quadratic-form condition
⟨v,Σv⟩≥0 for all v, stated directly rather than via a
Mathlib PosSemidef typeclass. "Maximal unit eigenvector" and "eigengap" are both
given their variational (Rayleigh-quotient) characterizations rather than defined
through Mathlib's enumerated matrix-eigenvalue API — mathematically equivalent to the
book's spectral definitions by the Courant-Fischer theorem, and the same
characterization the book's own proof works with throughout (Eq. (8.14)). The operator
norm ∣∣∣⋅∣∣∣2 is likewise realized variationally, valid because this
mission only ever applies it to symmetric matrices, exactly as the book does in this
chapter. p~ is realized as a basis-independent vector in Rd (the
component of Pθ∗ orthogonal to θ∗) rather than the book's
basis-dependent Rd−1 representative; its ℓ2-norm — the only quantity
the theorem's conclusion uses — is identical either way.
Deliberate scope decision, disclosed here rather than silently: the book's own
Theorem 8.5 concludes that Σ^ "has a unique maximal eigenvector
θ^" satisfying the bound — asserting both existence and uniqueness as part
of the theorem, on top of the quantitative bound. This mission formalizes only the
quantitative bound, for an arbitrary maximal unit eigenvector θ^ of
Σ^ satisfying the sign condition ⟨θ^,θ∗⟩≥0 —
exactly what the book's own proof establishes (the proof never separately argues
existence or uniqueness; both are consequences that could be derived from the bound
together with a compactness argument for existence, left to a future extension) and
exactly what every downstream use in the chapter (Examples, Corollary 8.7) actually
invokes. A trivializing formalization would instead drop the sharp threshold
∣∣∣P∣∣∣2<ν/2 to ≤, or conflate the general operator norm with the
symmetric-matrix Rayleigh-quotient characterization for a non-symmetric P; this
mission does neither. Corollary 8.7 (spiked covariance rates) and Theorem 8.10
(sparse PCA, needing the uniform deviation condition of Eq. (8.26)) are out of this
mission's scope; a companion mission formalizing them on top of this one's
pca_eigenvector_perturbation_bound is natural future work, together with a proof
of existence of a maximal unit eigenvector via compactness of the sphere.
Selected references
Wainwright, M. J. High-Dimensional Statistics: A Non-Asymptotic Viewpoint.
Cambridge University Press, 2019. Chapter 8. DOI: 10.1017/9781108627771.
Davis, C., Kahan, W. M. "The rotation of eigenvectors by a perturbation. III."
SIAM Journal on Numerical Analysis, 7(1), 1970, 1–46.
Wedin, P.-Å. "Perturbation bounds in connection with singular value decomposition."
BIT Numerical Mathematics, 12(1), 1972, 99–111.