Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Algorithmic stability of stochastic training

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

LemmaStatement: AI-adaptedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

An IID sample and ghost point are exchangeable

Statement

Let (Z,Σ) be a measurable space, let P be a probability measure on it, and let m≥1. If Z1,…,Zm,Z∗ are IID random elements with law P, define S=(Z1,…,Zm) and, for i∈{1,…,m}, let S(i) be S with coordinate i replaced by Z∗. Then the random vectors (S,Z∗) and (S(i),Zi) have the same distribution on the finite product measurable space (Zm+1,Σ⊗(m+1)).

Statement references

Hardt, Recht, and Singer, §2.2, proof of Theorem 2.2: full arXiv paper.

Matni, Lecture 16, §3.1, proof of Theorem 2: full lecture notes.

Facts & Assumptions

Given: A common measurable target, a probability law P, and the IID random elements in the Statement.

[F1]

Identical distribution and IID families: IID means mutual independence together with equality of all coordinate laws.

[F2]

Independent sigma-algebras and independent events: for any finite selection of coordinate events, their intersection has probability equal to the product of their probabilities.

[F3]

The product sigma-algebra and its finite iterates: finite product sigma-algebras are generated recursively by coordinate measurable rectangles.

[F4]

For sigma-finite factors, the product measure exists, has the rectangle formula, is sigma-finite, and is unique: a finite product measure is uniquely determined by its values on coordinate rectangles; this follows by iterating the stated two-factor uniqueness theorem.

Proof

1.1F1F2given

Fix i∈{1,…,m} and a measurable rectangle B1×⋯×Bm+1. By [F1] and [F2], its probability under (S,Z∗) is ∏j=1m+1P(Bj). The vector (S(i),Zi) swaps coordinates i and m+1, so the same rectangle has probability ∏j=1m+1P(Bj) under that vector as well.

2.1F3F4step 1.1given∎

Each vector is measurable: the preimage of a coordinate rectangle is a finite intersection of measurable coordinate events, and [F3] says these rectangles generate Σ⊗(m+1). Thus both vector laws are probability measures on that product sigma-algebra. They agree on its generating coordinate rectangles by step 1.1; iterating [F4] along the recursive finite product in [F3] identifies both with the same product measure. Hence their distributions agree.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Uniform stability for randomized learning rules

Definition

Fix a supervised prediction problem with observation space Z=X×Y, measurable predictor class F, and nonnegative measurable loss ℓ. Write Lf(x,y)=ℓ(f(x),y) for f∈F. Fix a sample size n≥1. A randomized learning rule at this sample size consists of internal randomness Un with law Qn, independent of the sample, and an output An(S,Un)∈F for every ordered sample S∈Zn. Assume the expected test losses below are finite. For ε≥0, the rule has uniform replacement stability at level ε if, for every pair S,S′∈Zn differing in at most one coordinate, and every test observation z∈Z,

∣EUnLAn(S,Un)(z)−EUnLAn(S′,Un)(z)∣≤ε.

The absolute value is outside expectation over the internal randomness. No permutation-invariance condition is imposed on the learning rule.

Definition references

Hardt, Recht, and Singer, Definition 2.1: full arXiv paper.

Matni, Lecture 16, Definition 1: full lecture notes.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Uniform stability implies expected generalization

Statement

Let n≥1 and consider a supervised prediction problem with measurable observation space Z=X×Y, probability law P, measurable predictor class F, and nonnegative measurable loss ℓ. For f∈F and z=(x,y), write Lf(z)=ℓ(f(x),y), RP(f)=∫Lf(z) P(dz), and, for S=(Z1,…,Zn), R^S(f)=n−1∑i=1nLf(Zi). Let Z1,…,Zn be IID with law P, and let Un be internal randomness independent of the sample. Suppose the randomized learning rule An(S,Un) takes values in F, the joint loss map (S,Un,z)↦LAn(S,Un)(z) is measurable, and all displayed risks are integrable. If An has uniform replacement stability at level ε, then

∣ES,Un[RP(An(S,Un))−R^S(An(S,Un))]∣≤ε.

The expectation is over both the IID sample and the algorithm's internal randomness. No permutation-invariance assumption on An is required.

Statement references

Hardt, Recht, and Singer, Theorem 2.2 and proof: full arXiv paper.

Matni, Lecture 16, Theorem 2 and proof: full lecture notes.

Facts & Assumptions

Given: The supervised prediction problem, IID sample, independent algorithmic randomness, measurable and integrable loss maps, and uniform replacement stability in the Statement.

[F1]

Supervised prediction problems: the joint observation law is a probability measure and the loss is nonnegative and measurable.

[F2]

Population and empirical risk: population risk is the nonnegative integral of test loss and empirical risk is its finite sample average.

[F3]

Identical distribution and IID families: the observations are mutually independent and have common law P.

[F4]

An IID sample and ghost point are exchangeable: if Z∗ is an independent observation with law P, then (S,Z∗) and (S(i),Zi) have the same law for each i, where S(i) replaces coordinate i by Z∗.

[F5]

Fubini's theorem for L^1 functions on a sigma-finite product: for the integrable joint loss map, its product integral equals either iterated integral, including integration over the independent algorithm seed and test observation.

[F6]

The Lebesgue integral is linear on L1(μ): the integral of a finite sum of integrable functions is the sum of their integrals.

[F7]

The modulus of an integral is bounded by the integral of the modulus: the absolute value of an integral is at most the integral of the absolute value.

[F8]

Uniform stability for randomized learning rules: for every fixed adjacent pair of ordered samples and test observation, the difference of their expected losses over Un has absolute value at most ε.

[A1]

The joint loss map is measurable and integrable, as required in the Statement, so Fubini and every displayed expectation are defined.

Proof

1.1A1F1F2F3F4F5givenconstruct

Extend the sample by an independent ghost observation Z∗∼P. By [F1], [F2], and [F5], ES,UnRP(An(S,Un))=ES,Un,Z∗LAn(S,Un)(Z∗). For each i, [F4] and independence of Un imply ES,Un,Z∗LAn(S,Un)(Z∗)=ES,Un,Z∗LAn(S(i),Un)(Zi).

2.1A1F2F6F7F8step 1.1givenalgebra∎

By [F2] and [F6], subtracting the expected empirical risk and averaging the equalities in step 1.1 gives ES,Un[RP(An(S,Un))−R^S(An(S,Un))]=1n∑i=1nES,Un,Z∗[LAn(S(i),Un)(Zi)−LAn(S,Un)(Zi)]. For every fixed S,Z∗, the samples S(i) and S differ in one coordinate, so [F8] bounds the absolute value of the inner expectation over Un by ε. Applying [F7] to the outer expectations and then averaging gives the claimed absolute bound.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Expected generalization of convex stochastic gradient training

Statement

Let n,T,d≥1, let β>0 and L≥0, and let (X,ΣX), (Y,ΣY), and (A,ΣA) be measurable spaces. Let P be a probability measure on X×Y, let ℓ:A×Y→[0,+∞) be a measurable loss, and let fw:X→A be a measurable predictor for every w∈Rd. For z=(x,y) set g(w,z)=ℓ(fw(x),y) and assume this map and (w,z)↦∇wg(w,z) are jointly measurable. For every observation z, assume w↦g(w,z) is totally differentiable and convex, its Euclidean gradient is β-Lipschitz, and its values are L-Lipschitz in the sense that ∣g(w,z)−g(v,z)∣≤L∥w−v∥2 for all w,v∈Rd. Let S=(Z1,…,Zn) be IID with law P, and abbreviate RP(fw)=∫g(w,z) P(dz) and R^S(fw)=n−1∑i=1ng(w,Zi). Let I1,…,IT be random indices in {1,…,n}, independent of S and satisfying P(It=i)=1/n for every 1≤t≤T and 1≤i≤n; dependence between indices at different times is allowed. From a fixed w0∈Rd, set

wt=wt−1−αt∇wg(wt−1,ZIt),1≤t≤T,

where the deterministic steps satisfy 0≤αt≤2/β. Assume the displayed sample-dependent loss and risk maps are measurable and integrable. Then this randomized procedure has uniform replacement stability at level

εstab=2L2n∑t=1Tαt,

and its expected population-minus-empirical risk gap satisfies

∣ES,I[RP(fwT)−R^S(fwT)]∣≤εstab.

The result concerns the specified uniform-marginal sample-selection updates, including independent sampling with replacement and uniform random-permutation passes. It does not assert generalization for every stochastic-gradient oracle.

Statement references

Hardt, Recht, and Singer, arXiv-version Theorem 3.8 and proof (conference Theorem 3.7): full arXiv paper.

Matni, Lecture 16, Lemma 2 and Theorem 3 with proof: full lecture notes.

Facts & Assumptions

Given: The IID supervised sample, independent uniform-marginal indices, fixed initialization, loss hypotheses, and integrability conditions in the Statement.

[F1]

Convex and strictly convex functions on Euclidean convex sets: convexity is the segment inequality on a convex Euclidean domain.

[F2]

The total (Fréchet) derivative Df(a) as the linear first-order approximation with o(∥h∥2) remainder and The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: total differentiability means a linear first-order approximation with normwise o(∥h∥2) remainder, and the scalar gradient is the vector of its partial derivatives.

[F3]

The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn: ⟨u,v⟩ is the Euclidean inner product and ∥u∥2=⟨u,u⟩.

[F4]

For a differentiable scalar field, Dvf(a)=⟨∇f(a),v⟩ and the unit direction of steepest ascent is the normalized gradient: for a totally differentiable scalar field, Dvg(w,z)=⟨∇wg(w,z),v⟩.

[F6]

Gradient steps of smooth convex functions are nonexpansive: for a differentiable convex loss with β-Lipschitz gradient, the update w↦w−α∇ℓ(w,z) is nonexpansive when 0≤α≤2/β.

[F7]

Uniform stability for randomized learning rules: stability compares expected test losses for every fixed neighboring ordered sample pair and every fixed test observation.

[F8]

Uniform stability implies expected generalization: uniform replacement stability at level ε implies an absolute expected generalization gap at most ε when the sample, algorithm, and risk maps satisfy its measurability and integrability hypotheses.

[F9]

Supervised prediction problems and Population and empirical risk: the test loss, population risk, and empirical risk use the stated measurable loss and law P.

[F10]

Identical distribution and IID families: the observations are mutually independent and have the common law P.

[A1]

The random index vector is independent of the sample and each coordinate is uniform; no independence between different indices is assumed.

[A2]

The population-risk and empirical-risk random variables are measurable and integrable, as required in the Statement.

Proof

1.1F2F3F4F5givenalgebra

Fix w,z and suppose ∇wg(w,z)≠0. Put v=∇wg(w,z)/∥∇wg(w,z)∥2, which is a unit vector by [F3] and [F5]. The directional derivative of t↦g(w+tv,z) at 0 is ⟨∇wg(w,z),v⟩=∥∇wg(w,z)∥2 by [F2] and [F4]. The L-Lipschitz inequality in the Statement bounds every difference quotient by L, so passage to the derivative gives ∥∇wg(w,z)∥2≤L; the same bound is immediate when the gradient is zero.

2.1A1F1F5F6step 1.1givenconstruct

Fix neighboring samples S,S′ differing at coordinate j and couple their runs using the same index vector. Put δt=∥wt(S)−wt(S′)∥2, so δ0=0. If It≠j, both runs apply the same convex-loss gradient step and [F6] gives δt≤δt−1. If It=j, the triangle inequality from [F5] and step 1.1 give δt≤δt−1+2αtL. Thus, pathwise, δt≤δt−1+2αtL1{It=j}.

3.1A1step 2.1algebra

Taking expectation in the pathwise inequality and using only P(It=j)=1/n yields Eδt≤Eδt−1+2αtL/n. Summing from t=1 to T gives EδT≤(2L/n)∑t=1Tαt.

4.1F7step 3.1givenalgebra

For every test observation z, the value-Lipschitz hypothesis gives EI∣g(wT(S),z)−g(wT(S′),z)∣≤LEδT≤(2L2/n)∑tαt. Hence the absolute difference of the two expected losses is at most this value, proving the stated uniform stability.

5.1A1A2F8F9F10step 4.1given∎

The sample is IID by [F10], the index vector is independent of it by [A1], and the risk maps RP(fwT) and R^S(fwT) are measurable and integrable by [A2]; they use the loss and risk conventions of [F9]. Apply [F8] with the stability level from step 4.1 to obtain the expected generalization bound.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Expected generalization of nonconvex stochastic gradient training

Statement

Let n≥2, T,d≥1, and let β,c>0 and L≥0. Let (X,ΣX), (Y,ΣY), and (A,ΣA) be measurable spaces, let P be a probability measure on X×Y, let ℓ:A×Y→[0,+∞) be a measurable loss, and let fw:X→A be a measurable predictor for every w∈Rd. For z=(x,y) set g(w,z)=ℓ(fw(x),y). Assume (w,z)↦g(w,z) and (w,z)↦∇wg(w,z) are jointly measurable. For every z, assume g(⋅,z) is totally differentiable, takes values in [0,1], is L-Lipschitz in values, and has a β-Lipschitz Euclidean gradient; these mean, respectively,

∣g(w,z)−g(v,z)∣≤L∥w−v∥2,∥∇wg(w,z)−∇wg(v,z)∥2≤β∥w−v∥2

for all v,w∈Rd. No convexity is assumed. Let S=(Z1,…,Zn) be IID with law P, and abbreviate RP(fw)=∫g(w,z) P(dz) and R^S(fw)=n−1∑i=1ng(w,Zi). Let I1,…,IT be random indices in {1,…,n}, independent of S and satisfying P(It=i)=1/n for every 1≤t≤T and 1≤i≤n; dependence between indices at different times is allowed. From a fixed w0∈Rd, define

wt=wt−1−αt∇wg(wt−1,ZIt),1≤t≤T,

where 0≤αT≤⋯≤α1 and αt≤c/t. Assume the resulting random variables RP(fwT) and R^S(fwT) are measurable; they are integrable because 0≤g≤1. Then the randomized procedure has uniform replacement stability and absolute expected population-minus-empirical risk gap at most

(1+1βc)(2cL2)1/(βc+1)n−1 Tβc/(βc+1).

If L=0, the right side is interpreted as 0. The conclusion concerns only this expected gap for the stated random sample-selection procedure; it does not assert generalization for every stochastic-gradient oracle.

Statement references

Hardt, Recht, and Singer, arXiv-version Theorem 3.12 and complete proof (conference Theorem 3.8): full arXiv paper.

Matni, Lecture 16, §4: full lecture notes.

Facts & Assumptions

Given: The supervised IID sample, independent uniform-marginal indices, fixed initialization, loss range/Lipschitz/smoothness assumptions, nonincreasing steps, and integrable risk maps in the Statement.

[F1]

The total (Fréchet) derivative Df(a) as the linear first-order approximation with o(∥h∥2) remainder and The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: total differentiability means a linear first-order approximation with normwise o(∥h∥2) remainder, and the scalar gradient is the vector of its partial derivatives.

[F2]

The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn: ⟨u,v⟩ is the Euclidean inner product and ∥u∥2=⟨u,u⟩.

[F3]

For a differentiable scalar field, Dvf(a)=⟨∇f(a),v⟩ and the unit direction of steepest ascent is the normalized gradient: for a totally differentiable scalar field, Dvg(w,z)=⟨∇wg(w,z),v⟩.

[F5]

Uniform stability for randomized learning rules: uniform replacement stability bounds the absolute difference of expected test losses for every fixed adjacent sample pair and test observation.

[F6]

Uniform stability implies expected generalization: such a stability bound implies the same absolute expected population-minus-empirical risk gap under its IID, measurability, and integrability conditions.

[F8]

The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t and Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: log⁡b−log⁡a=∫abx−1 dx for 0<a≤b, and log⁡(b/a)=log⁡b−log⁡a.

[F9]

Real powers for positive bases, with the zero-base positive-exponent convention: for a>0, aq=exp⁡(qlog⁡a); Continuity and derivatives of positive-base real powers gives (xq)′=qxq−1 on (0,∞).

[F10]

The second fundamental theorem: if G is differentiable on [a,b] with G′=f and f is integrable, then ∫abf=G(b)−G(a): for a<b, if G is differentiable on [a,b] and G′ is integrable there, then ∫abG′=G(b)−G(a).

[F12]

Identical distribution and IID families: the observations are mutually independent and have the common law P.

[F13]

Supervised prediction problems and Population and empirical risk: the loss, population risk, and empirical risk use the stated measurable observation law and loss.

[F14]

A continuous function on [a,b] is Riemann integrable, by Heine-Cantor and Riemann's criterion: every continuous real function on a compact interval [a,b] with a<b is Riemann integrable there.

[A1]

The joint loss and gradient maps and the displayed population-risk and empirical-risk random variables are measurable. The loss range [0,1] makes all these risks integrable.

[A2]

Each sample index is uniform and the whole index vector is independent of the sample; no cross-time independence is assumed.

Proof

1.1F1F2F3F4givenalgebra

For any w,z with ∇wg(w,z)≠0, take v=∇wg(w,z)/∥∇wg(w,z)∥2, which is a unit vector by [F2] and [F4]. The directional derivative of t↦g(w+tv,z) at zero is ∥∇wg(w,z)∥2 by [F1] and [F3], while the value-Lipschitz condition bounds the absolute difference quotient by L. Thus ∥∇wg(w,z)∥2≤L; the zero-gradient case is immediate.

1.2F7F8F9F11givenalgebra

Put q=βc>0. By [F7], αk≤c/k, and finite multiplication, ∏k=s+1T(1+βαk)≤exp⁡ ⁣(q∑k=s+1T1k). If s=T, the product is empty and equals (T/s)q=1. If s<T, then for each k>s and x∈[k−1,k], 1/x≥1/k, so [F11] gives 1/k≤∫k−1kdx/x. Additivity over these nondegenerate intervals and [F8] yield ∑k=s+1T1/k≤∫sTdx/x=log⁡(T/s). Therefore the product is at most (T/s)q by [F8] and [F9].

2.1A2F4step 1.1givenconstruct

Fix neighboring samples S,S′ that differ at coordinate j and couple their runs using the same index vector. Let δt=∥wt(S)−wt(S′)∥2, with δ0=0. If It≠j, the same example is used in both updates, so gradient smoothness gives δt≤(1+βαt)δt−1. If It=j, add and subtract ∇wg(wt−1(S′),Zj); smoothness for the common example, the triangle inequality from [F4], and step 1.1 give δt≤(1+βαt)δt−1+2αtL. Thus, for every update, δt≤(1+βαt)δt−1+2αtL1{It=j}.

3.1A2step 2.1givenalgebra

Iterating the finite recurrence in step 2.1 from δ0=0 yields δT≤2L∑s=1Tαs1{Is=j}∏k=s+1T(1+βαk). The loss difference at any fixed test point is at most 1 by the range hypothesis and at most LδT by value-Lipschitzness. For nonnegative as, min⁡(1,∑sas)≤∑smin⁡(1,as): if any as≥1 the right side is at least 1, and otherwise it equals ∑sas. Applying this to the displayed kicks and using P(Is=j)=1/n gives EI∣g(wT(S),z)−g(wT(S′),z)∣≤1n∑s=1Tmin⁡ ⁣(1,2L2αs∏k=s+1T(1+βαk)).

4.1F9F11F14step 1.1step 1.2step 3.1givenalgebra

If L=0, step 1.1 gives zero gradients, so the output is independent of the sample and stability is zero; set r=0. Suppose L>0 and put r=(2cL2)1/(q+1)Tq/(q+1)>0. By step 1.2 and αs≤c/s, the sth summand in step 3.1 is at most h(s), where h(x)=min⁡{1,(r/x)q+1} for x≥1. This function is continuous by [F9]. If r≥1, it equals 1 up to r and then decreases; if r<1, it decreases throughout, since (r/x)q+1 has negative derivative. Thus it is nonincreasing. If T=1, the sum is h(1). If T≥2, [F14] makes h integrable on [1,T]; for each integer s≥2, [F11] gives h(s)≤∫s−1sh(x) dx. Additivity over these adjacent intervals then yields ∑s=1Th(s)≤h(1)+∫1Th(x) dx.

5.1F9F10F11F14step 3.1step 4.1algebra

If L=0, step 4.1 gives stability zero. Suppose L>0. When T=1 and r≥1, h(1)=1≤(1+1/q)r; when T=1 and 0<r<1, h(1)=rq+1≤(1+1/q)r. Now let T≥2. The displayed integrands are continuous on their compact intervals and hence integrable by [F14]. If r≥1, then h(1)=1. For T≤r, h=1 on [1,T] and ∫1Th(x) dx=T−1≤r−1. For T>r=1, h(x)=x−(q+1) on [1,T], so [F9] and [F10] give ∫1Th(x) dx=(1/q)(1−T−q)≤1/q. For T>r>1, split at r using [F11] and integrate 1 on [1,r] and rq+1x−(q+1) on [r,T] to get ∫1Th(x) dx=(r−1)+(r/q)(1−(r/T)q)≤r−1+r/q. In each case h(1)+∫1Th≤(1+1/q)r. If 0<r<1, then h(1)=rq+1 and [F9]–[F10] give ∫1Th(x) dx=rq+1q(1−T−q)≤rq+1q, so h(1)+∫1Th≤(1+1/q)rq+1≤(1+1/q)r. In every case, step 4.1 now bounds the sum in step 3.1 by (1+1/q)r. Therefore the right side of step 3.1 is at most (1+1/q)r/n.

6.1A1F5F6F12F13step 3.1step 4.1step 5.1givenalgebra∎

Steps 3.1, 4.1, and 5.1 show that every neighboring sample pair and test point has expected absolute loss change at most (1+1/q)r/n. This implies uniform replacement stability at that level by [F5]. Since n≥2, (1+1/q)r/n≤(1+1/q)r/(n−1). The sample is IID by [F12], the risk conventions are [F13], and the measurable, integrable risks meet [A1]. Apply [F6] and substitute q=βc and the value of r to obtain the stated expected-gap bound.

4 · Examples, counterexamples and false statements

None yet.

Sources