Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Probability

569 missions · 281 completed

Missions

Open288Completed281All569
🏆Completed
Markov ChainStochastic Systems·Captain: naimengye

Introduction to Stochastic Networks II: Kolmogorov's Criterion for ReversibilityTextbook

Motivation

A Markov process is reversible when, in equilibrium, transitions from xxx to yyy occur at the same average rate as transitions from yyy to xxx. Algebraically this is the detailed balance condition π(x)q(x,y)=π(y)q(y,x)\pi(x)q(x,y)=\pi(y)q(y,x)π(x)q(x,y)=π(y)q(y,x), and it is the single most useful structural property a network process can have: it replaces a global linear system by one equation per pair of states, and it hands you the equilibrium measure as a product of rate ratios rather than as the solution of anything.

The catch is that detailed balance mentions π\piπ, which is exactly what one is trying to find. Chapter 2 of Richard Serfozo's Introduction to Stochastic Networks (Springer, 1999) removes the circularity. Kolmogorov's criterion characterizes reversibility by a condition on the rates alone: around every closed path, the product of the forward rates equals the product of the backward rates. And the proof is constructive — once the criterion holds, the invariant measure is

π(x)=∏i=1nq(xi−1,xi)q(xi,xi−1)\pi(x)=\prod_{i=1}^{n}\frac{q(x_{i-1},x_i)}{q(x_i,x_{i-1})}π(x)=i=1∏n​q(xi​,xi−1​)q(xi−1​,xi​)​

along any path from a fixed origin x0x^0x0 to xxx, the criterion being precisely what makes the answer independent of the path chosen.

Setting

q(x,y)q(x,y)q(x,y) is a non-negative rate function on a state space E\mathbb EE, with the two-way communication property that q(x,y)q(x,y)q(x,y) and q(y,x)q(y,x)q(y,x) are positive together — a process failing this is visibly not reversible, since some transition would be possible but its reverse would not. A path x0,…,xnx_0,\dots,x_nx0​,…,xn​ is a sequence with q(xi−1,xi)>0q(x_{i-1},x_i)>0q(xi−1​,xi​)>0 throughout, and qqq is assumed irreducible: every state is reachable from every other along a path. Write ρ(x,y)=q(x,y)/q(y,x)\rho(x,y)=q(x,y)/q(y,x)ρ(x,y)=q(x,y)/q(y,x) for the rate ratio.

qqq is reversible when some positive π\piπ satisfies the detailed balance equations. Such a π\piπ is automatically an invariant measure, the total balance equations being the sum of the detailed ones.

Formalization targets

Goal — Theorem 2.8, Kolmogorov's criterion and the canonical measure

Three statements are equivalent:

  1. qqq is reversible;
  2. (Kolmogorov's criterion) for every closed sequence x0,…,xn=x0x_0,\dots,x_n=x_0x0​,…,xn​=x0​,
∏i=1nq(xi−1,xi)=∏i=1nq(xi,xi−1);\prod_{i=1}^{n}q(x_{i-1},x_i)=\prod_{i=1}^{n}q(x_i,x_{i-1});i=1∏n​q(xi−1​,xi​)=i=1∏n​q(xi​,xi−1​);
  1. for every path, ∏i=1nρ(xi−1,xi)\prod_{i=1}^n\rho(x_{i-1},x_i)∏i=1n​ρ(xi−1​,xi​) depends on the path only through its endpoints.

And when they hold, fixing any origin x0x^0x0 there is a positive π\piπ with π(x0)=1\pi(x^0)=1π(x0)=1 satisfying detailed balance and given at every state by the product of ratios along any path from x0x^0x0.

Supporting levels

The canonical form (2.2), that qqq is reversible with respect to π\piπ exactly when q(x,y)=γ(x,y)/π(x)q(x,y)=\gamma(x,y)/\pi(x)q(x,y)=γ(x,y)/π(x) for a symmetric non-negative γ\gammaγ; Example 2.1, the birth–death process with π(x)=∏n=1xλ(n−1)/μ(n)\pi(x)=\prod_{n=1}^{x}\lambda(n-1)/\mu(n)π(x)=∏n=1x​λ(n−1)/μ(n); Theorem 2.2, that a process whose communication graph is a tree is reversible; and Theorem 2.5, the time-reversal criterion, which identifies a stationary distribution from a candidate reversed rate function without mentioning reversibility at all.

Significance

The results themselves. Kolmogorov's criterion is the working test. It is how one checks that a birth–death process, a random walk on a tree, a reversible Jackson network or a Whittle network with reversible routing is reversible, and it is a finite check on cycles rather than a search for an unknown measure. The ratio form (iii) is what gets used in practice: it says the product of ratios along a path is a well-defined function of the endpoints, which is exactly what licenses defining π\piπ by that product.

Theorem 2.2 is the structural special case with no computation at all — a tree has no cycles, so the criterion is vacuous and reversibility is automatic. Theorem 2.5 points in a different direction: it identifies a stationary distribution from a guess at the time-reversed rates, and it is the tool Serfozo uses later to prove the Whittle equilibrium theorem a second way and to establish that departure processes from networks are Poisson.

Formalizing them. Mathlib has no reversibility theory for Markov processes: no detailed balance, no Kolmogorov criterion, no time reversal of a rate function. It has SimpleGraph.IsTree, which the tree item uses, and nothing else that bears on this chapter. The whole apparatus is contributed here.

Difficulty

The goal is a genuine equivalence with a constructive core, and the three implications are of quite different character.

(i) ⇒\Rightarrow⇒ (ii) is the easy one: multiply the detailed balance equations around the closed path and cancel the π\piπ's, which is legitimate because the π\piπ values are positive. Note the criterion is asserted for arbitrary closed sequences, not only for paths; the two-way property is what makes both sides vanish together when some rate is zero.

(ii) ⇔\Leftrightarrow⇔ (iii) is a cycle-splicing argument: two paths with the same endpoints concatenate, one reversed, into a closed path, and the criterion says its forward and backward products agree, which is the equality of ratio products.

(ii) ⇒\Rightarrow⇒ (i) is where the construction lives. Fix an origin x0x^0x0; irreducibility gives a path to every state; define π\piπ by the ratio product; (iii) makes it well defined; and then detailed balance at an edge follows by extending a path by that edge. Serfozo's Remark 2.9 gives the same construction as a recursion over the sets En\mathbb E_nEn​ of states reachable in nnn steps, which may be the easier route to organize.

The birth–death item is a telescoping recursion, π(x+1)μ(x+1)=π(x)λ(x)\pi(x+1)\mu(x+1)=\pi(x)\lambda(x)π(x+1)μ(x+1)=π(x)λ(x), and the observation that the two families of detailed balance equations — for y=x+1y=x+1y=x+1 and for y=x−1y=x-1y=x−1 — are the same family. Theorem 2.2 is a cut argument: removing an edge of a tree splits the state space into two pieces joined by that edge alone, so the flow balance across the cut is the detailed balance equation for that edge. Theorem 2.5 is two lines of rearrangement once the sums are known to converge.

Formalization scope

The state space is an arbitrary type and qqq is an arbitrary non-negative real rate function; nothing here needs a process, a measure space or even countability, because reversibility as Serfozo defines it "applies to any nonnegative rates or probabilities as an algebraic property, not necessarily associated with a stochastic process". The same statements therefore cover discrete-time chains with qqq read as transition probabilities, which is what the book points out.

Paths are functions {0,…,n}→E\{0,\dots,n\}\to\mathbb E{0,…,n}→E with positive consecutive rates. A path of length zero is a single state and its ratio product is the empty product 111, which is consistent with π(x0)=1\pi(x^0)=1π(x0)=1.

Kolmogorov's criterion is stated for arbitrary closed sequences, exactly as the book states it, not only for closed paths. Under two-way communication the two readings agree — if one rate in the sequence vanishes then so does its reverse and both products are zero — but the book's form is the one that is directly checkable.

The canonical measure is not defined by a choice function. Instead the conclusion asserts the existence of a positive π\piπ with π(x0)=1\pi(x^0)=1π(x0)=1 satisfying detailed balance and agreeing with the ratio product along every path from the origin. That is the content of (2.9) without needing to pick a path for each state.

Theorem 2.2 is stated for a finite state space. Serfozo assumes the process is ergodic, and the cut-flow argument then sums the balance equations over one side of the cut; on an infinite state space that summation needs an integrability condition that the book leaves implicit in "ergodic". Finiteness makes the rearrangement unconditional and the statement clearly true; the general case is listed under contributions.

Theorem 2.5 is stated as the conclusion that π\piπ satisfies the balance equations, with explicit summability hypotheses for the three families of sums involved. That π\piπ is the stationary distribution additionally requires it to be normalized and the process to be ergodic, neither of which is part of the algebraic content.

Contributions welcome beyond the listed items: Theorem 2.4, the characterization of reversibility by invariance of the finite-dimensional distributions under time reversal; Remark 2.9's recursive construction of the canonical measure; Theorem 2.22 on reversible network processes with batch movements; Theorem 2.31 and the partition-reversible processes of Sections 2.8 and 2.9; and the reversibility criteria for Jackson and Whittle networks in Examples 2.24 and 2.25.

Selected references

  • Richard Serfozo, Introduction to Stochastic Networks, Applications of Mathematics 44, Springer, 1999, chapter 2, pp. 44–51; (2.1), (2.2), Example 2.1, Theorems 2.2, 2.5 and 2.8, Remark 2.9. DOI 10.1007/978-1-4612-1482-3
  • A. N. Kolmogoroff, Zur Theorie der Markoffschen Ketten, Mathematische Annalen 112 (1936), 155–160. DOI 10.1007/BF01565412
  • F. P. Kelly, Reversibility and Stochastic Networks, Wiley, 1979; reissued Cambridge University Press, 2011, chapter 1. DOI 10.1017/CBO9781139226424
  • P. Whittle, Systems in Stochastic Equilibrium, Wiley, 1986, chapters 1 and 10.
6 thms2 active usersReviewed
🏆Completed
AnalysisStochastic Systems·Captain: naimengye

Probability Theory and Examples V: Blumenthal's 0-1 Law and the Local Behaviour of Brownian PathsTextbook

Motivation

A Brownian path is continuous, and that is essentially all it is. It has no derivative anywhere, it crosses zero infinitely often in every interval (0,ϵ)(0,\epsilon)(0,ϵ), and it becomes positive and negative immediately after time zero. None of this is visible from the finite-dimensional distributions; it is a statement about the germ of the path at a point, and the tool that unlocks it is a zero-one law.

Chapter 7 of Rick Durrett's Probability: Theory and Examples (Version 5, 2019) develops that tool. The natural filtration Fs0=σ(Br:r≤s)\mathcal F^{0}_{s}=\sigma(B_r:r\le s)Fs0​=σ(Br​:r≤s) is enlarged to Fs+=⋂t>sFt0\mathcal F^{+}_{s}=\bigcap_{t>s}\mathcal F^{0}_{t}Fs+​=⋂t>s​Ft0​, which allows "an infinitesimal peek at the future" — a quantity like lim sup⁡t↓s(Bt−Bs)/f(t−s)\limsup_{t\downarrow s}(B_t-B_s)/f(t-s)limsupt↓s​(Bt​−Bs​)/f(t−s) is Fs+\mathcal F^{+}_{s}Fs+​-measurable but not Fs0\mathcal F^{0}_{s}Fs0​-measurable. Blumenthal's 0-1 law (Theorem 7.2.3) says that at s=0s=0s=0 this enlargement buys nothing probabilistically: the germ σ\sigmaσ-field F0+\mathcal F^{+}_{0}F0+​ is trivial.

Everything local follows. If the path had any chance of staying non-positive on some interval (0,ϵ)(0,\epsilon)(0,ϵ), that would be a germ event of probability at least 1/21/21/2 by symmetry, so it has probability one — and the path enters (0,∞)(0,\infty)(0,∞) immediately. Continuity then forces it to return to zero immediately as well. Combined with the time inversion Xt=tB(1/t)X_t=tB(1/t)Xt​=tB(1/t), which turns the germ at 000 into the tail at ∞\infty∞, the same law gives lim sup⁡t→∞Bt/t=∞\limsup_{t\to\infty}B_t/\sqrt t=\inftylimsupt→∞​Bt​/t​=∞ and the recurrence of one-dimensional Brownian motion.

Setting

Let (Ω,F,P)(\Omega,\mathcal F,\mathbb P)(Ω,F,P) be a probability space and B:R≥0→Ω→RB:\mathbb R_{\ge0}\to\Omega\to\mathbb RB:R≥0​→Ω→R a Brownian motion: its finite-dimensional laws are centred Gaussian with covariance cov⁡(Bs,Bt)=s∧t\operatorname{cov}(B_s,B_t)=s\wedge tcov(Bs​,Bt​)=s∧t, and almost every path is continuous. In particular B0=0B_0=0B0​=0 almost surely, so this is Durrett's P0\mathbb P_0P0​.

Three σ\sigmaσ-fields organize the chapter:

Ft0=σ(Bs:s≤t),F0+=⋂t>0Ft0,T=⋂t≥0σ(Bs:s≥t).\mathcal F^{0}_{t}=\sigma(B_s:s\le t),\qquad \mathcal F^{+}_{0}=\bigcap_{t>0}\mathcal F^{0}_{t},\qquad \mathcal T=\bigcap_{t\ge0}\sigma(B_s:s\ge t).Ft0​=σ(Bs​:s≤t),F0+​=t>0⋂​Ft0​,T=t≥0⋂​σ(Bs​:s≥t).

The first is the past, the second the germ at time zero, the third the tail at infinity.

A path fff is Lipschitz at the point sss with constant CCC when ∣f(t)−f(s)∣≤C∣t−s∣|f(t)-f(s)|\le C|t-s|∣f(t)−f(s)∣≤C∣t−s∣ for all ttt within some positive distance of sss. A path differentiable at sss is Lipschitz at sss, so failing this at every point and for every constant is a strong form of nowhere differentiability.

Formalization targets

Goal — Theorem 7.2.3, Blumenthal's 0-1 law

A∈F0+⟹P(A)∈{0,1}.A\in\mathcal F^{+}_{0}\quad\Longrightarrow\quad \mathbb P(A)\in\{0,1\}.A∈F0+​⟹P(A)∈{0,1}.

In words: the germ σ\sigmaσ-field is trivial. Nothing about the path in an arbitrarily short initial interval is genuinely random.

Supporting levels

Theorem 7.1.5, that Brownian paths are Hölder continuous of every exponent γ<1/2\gamma<1/2γ<1/2 on every bounded interval; Theorem 7.1.6, that with probability one they are not Lipschitz at any point, hence nowhere differentiable — the Paley–Wiener–Zygmund theorem in the proof of Dvoretsky, Erdős and Kakutani; Theorem 7.2.4, that the path enters (0,∞)(0,\infty)(0,∞) immediately; Theorem 7.2.5, that its zero set accumulates at 000; and Theorem 7.2.8, that lim sup⁡t→∞Bt/t=+∞\limsup_{t\to\infty}B_t/\sqrt t=+\inftylimsupt→∞​Bt​/t​=+∞ and lim inf⁡t→∞Bt/t=−∞\liminf_{t\to\infty}B_t/\sqrt t=-\inftyliminft→∞​Bt​/t​=−∞.

Significance

The results themselves. Blumenthal's law is the gateway to every local path property of Brownian motion, and Durrett uses it immediately for exactly that. Theorems 7.2.4 and 7.2.5 together say the path oscillates across zero infinitely often in every initial interval — the reason the zero set is an uncountable closed set of Lebesgue measure zero, and the reason the "first return to zero" is not a useful notion at time 000. Theorem 7.2.8 is the same law pushed to t→∞t\to\inftyt→∞ by time inversion, and it is what makes one-dimensional Brownian motion recurrent (Theorem 7.2.9).

The Hölder pair is the sharp description of path regularity. Exponent γ<1/2\gamma<1/2γ<1/2 always works, γ>1/2\gamma>1/2γ>1/2 never does, and the borderline 1/21/21/2 is subtle: P(t∈H1/2)=0\mathbb P(t\in H_{1/2})=0P(t∈H1/2​)=0 for each fixed ttt, but Davis (1983) showed P(H1/2≠∅)=1\mathbb P(H_{1/2}\ne\emptyset)=1P(H1/2​=∅)=1. Nowhere differentiability is the historical headline — Paley, Wiener and Zygmund (1933) — and the proof given here is a short covering argument rather than a series construction.

Formalizing them. Mathlib has the object but almost none of the theory. It defines IsPreBrownianReal and IsBrownianReal, proves that a centred Gaussian process with covariance s∧ts\wedge ts∧t is pre-Brownian, and supplies the invariances — negation, scaling t↦c−1/2B(ct)t\mapsto c^{-1/2}B(ct)t↦c−1/2B(ct), the shift t↦B(t0+t)−B(t0)t\mapsto B(t_0+t)-B(t_0)t↦B(t0​+t)−B(t0​), and the time inversion t↦tB(1/t)t\mapsto tB(1/t)t↦tB(1/t) — together with the weak Markov property IsPreBrownianReal.indepFun_shift. It does not have the germ or tail σ\sigmaσ-fields, Blumenthal's law, the strong Markov property, any path-regularity result, or the Kolmogorov–Chentsov continuity theorem: Probability/Process/Kolmogorov.lean defines IsKolmogorovProcess, the hypothesis, and stops there. So this mission supplies the σ\sigmaσ-fields and then everything Durrett proves with them.

Difficulty

The goal reduces to Durrett's Theorem 7.2.2, that E(Z∣Fs+)=E(Z∣Fs0)\mathbb E(Z\mid\mathcal F^{+}_{s})=\mathbb E(Z\mid\mathcal F^{0}_{s})E(Z∣Fs+​)=E(Z∣Fs0​) for bounded path-measurable ZZZ; at s=0s=0s=0, F00=σ(B0)\mathcal F^{0}_{0}=\sigma(B_0)F00​=σ(B0​) is trivial because B0=0B_0=0B0​=0 almost surely, so 1A=E(1A∣F0+)=P(A)\mathbf 1_A=\mathbb E(\mathbf 1_A\mid\mathcal F^{+}_{0})=\mathbb P(A)1A​=E(1A​∣F0+​)=P(A) almost surely, and an indicator almost surely equal to a constant forces that constant to be 000 or 111. Theorem 7.2.2 itself is a monotone class argument on top of the Markov property, and the Markov property in this setting is Mathlib's indepFun_shift plus the observation that the conditional expectation of a product ∏mfm(Btm)\prod_m f_m(B_{t_m})∏m​fm​(Btm​​) over Fs+\mathcal F^{+}_{s}Fs+​ lands in Fs0\mathcal F^{0}_{s}Fs0​. Assembling that is the work.

Theorem 7.2.4 is then three lines — P0(τ≤t)≥P0(Bt>0)=1/2\mathbb P_0(\tau\le t)\ge\mathbb P_0(B_t>0)=1/2P0​(τ≤t)≥P0​(Bt​>0)=1/2 by symmetry of the Gaussian, let t↓0t\downarrow0t↓0, apply the goal — provided the event has been shown to lie in the germ field, which is where continuity of paths enters. Theorem 7.2.5 follows from 7.2.4 applied to BBB and −B-B−B together with the intermediate value theorem.

Theorem 7.1.5 needs the Kolmogorov–Chentsov continuity theorem, which has to be built: from E∣Bt−Bs∣2m=Cm∣t−s∣m\mathbb E|B_t-B_s|^{2m}=C_m|t-s|^mE∣Bt​−Bs​∣2m=Cm​∣t−s∣m one gets Hölder-γ\gammaγ control for γ<(m−1)/2m\gamma<(m-1)/2mγ<(m−1)/2m, and m→∞m\to\inftym→∞ gives every γ<1/2\gamma<1/2γ<1/2. The dyadic chaining and Borel–Cantelli step is the substance, and it is worth building as a general theorem about IsKolmogorovProcess rather than only for Brownian motion.

Theorem 7.1.6 is self-contained and short: fix CCC, let AnA_nAn​ be the event that some s∈[0,1]s\in[0,1]s∈[0,1] has ∣Bt−Bs∣≤C∣t−s∣|B_t-B_s|\le C|t-s|∣Bt​−Bs​∣≤C∣t−s∣ whenever ∣t−s∣≤3/n|t-s|\le3/n∣t−s∣≤3/n, and bound P(An)≤n P(∣B1∣≤5Cn−1/2)3≤n{10Cn−1/2(2π)−1/2}3→0\mathbb P(A_n)\le n\,\mathbb P(|B_1|\le5Cn^{-1/2})^3\le n\{10Cn^{-1/2}(2\pi)^{-1/2}\}^3\to0P(An​)≤nP(∣B1​∣≤5Cn−1/2)3≤n{10Cn−1/2(2π)−1/2}3→0; since AnA_nAn​ increases, every P(An)=0\mathbb P(A_n)=0P(An​)=0.

Theorem 7.2.8 needs the tail 0-1 law, Theorem 7.2.7, which is the goal transported through the time inversion Xt=tB(1/t)X_t=tB(1/t)Xt​=tB(1/t) — Mathlib's IsPreBrownianReal.inv — because the tail field of BBB is the germ field of XXX. With that, P0(Bn/n≥K i.o.)≥P0(B1≥K)>0\mathbb P_0(B_n/\sqrt n\ge K\ \text{i.o.})\ge\mathbb P_0(B_1\ge K)>0P0​(Bn​/n​≥K i.o.)≥P0​(B1​≥K)>0 by scaling, so the probability is one, and KKK is arbitrary.

Formalization scope

The process is Mathlib's IsBrownianReal, indexed by ℝ≥0, on an abstract probability space — not the canonical path space C[0,∞)C[0,\infty)C[0,∞) that Durrett uses. This is why the shift operators θs\theta_sθs​ and the family {Px}\{\mathbb P_x\}{Px​} do not appear: there is one measure, the process starts at 000 almost surely, and each statement is about that process. Theorem 7.2.7 as Durrett states it quantifies over all starting points and has no direct analogue here; the tail 0-1 law for the process started at 000 does, and is listed under contributions as the route to Theorem 7.2.8.

The three σ\sigmaσ-fields are built as suprema and infima in the lattice of σ\sigmaσ-algebras on Ω\OmegaΩ: pastSigma B t is the supremum of the pullbacks of the Borel field along BsB_sBs​ for s≤ts\le ts≤t, and germSigma B, tailSigma B are the corresponding infima. The goal carries the hypothesis that each BtB_tBt​ is measurable, not merely almost-everywhere measurable, which is what IsPreBrownianReal gives and what puts these σ\sigmaσ-fields below the ambient one; the canonical construction satisfies it, and without it "P(A)\mathbb P(A)P(A)" for a germ event would be an outer measure.

Hölder continuity is stated locally — for almost every path, every TTT admits a constant — since global Hölder continuity on [0,∞)[0,\infty)[0,∞) is false. The order of quantifiers puts the null set first, so a single path works for every TTT at once.

The hitting statements avoid an infimum over a possibly empty set. "τ=0\tau=0τ=0 almost surely" is written as: almost surely, for every ϵ>0\epsilon>0ϵ>0 there is t∈(0,ϵ)t\in(0,\epsilon)t∈(0,ϵ) with Bt>0B_t>0Bt​>0; and "T0=0T_0=0T0​=0 almost surely" as the same with Bt=0B_t=0Bt​=0. These are equivalent to Durrett's statements and say what the infimum is there to say. Similarly Theorem 7.2.8 is written with ∃ᶠ … in atTop rather than as an extended-real lim sup⁡\limsuplimsup, which is what "lim sup⁡=+∞\limsup=+\inftylimsup=+∞" means and avoids a coercion.

LipschitzAtPoint f s C is "there is a scale δ>0\delta>0δ>0 on which ∣f(t)−f(s)∣≤C∣t−s∣|f(t)-f(s)|\le C|t-s|∣f(t)−f(s)∣≤C∣t−s∣". Its negation for every sss and every CCC is Theorem 7.1.6, and it has content in both directions: the identity path is Lipschitz at every point with C=1C=1C=1, while t↦tt\mapsto\sqrt tt↦t​ is not Lipschitz at 000 with C=1C=1C=1 — both checked in Lean before publishing.

Existence is not part of this mission. Mathlib proves nothing of the form "a Brownian motion exists", and nothing here needs it: every item takes a Brownian motion as a hypothesis. That the hypothesis is satisfiable is a theorem — Durrett's 7.1.1, via Kolmogorov extension and the continuity theorem — and it is listed under contributions, where it belongs, since building it is a project of its own.

Contributions welcome beyond the listed items: Kolmogorov–Chentsov as a general statement about IsKolmogorovProcess; Theorem 7.1.1, the existence of Brownian motion; Theorem 7.2.2 in full, for every sss; the tail 0-1 law and Theorem 7.2.9, recurrence; the strong Markov property and the reflection principle of section 7.3; and Exercise 7.1.5, that no path is Hölder of any exponent γ>1/2\gamma>1/2γ>1/2.

Selected references

  • Rick Durrett, Probability: Theory and Examples, Version 5 (11 January 2019), chapter 7, sections 7.1 and 7.2 (pp. 353–365); Theorems 7.1.5, 7.1.6, 7.2.3, 7.2.4, 7.2.5, 7.2.8. Published as the 5th edition, Cambridge University Press, 2019, DOI 10.1017/9781108591034
  • R. M. Blumenthal, An extended Markov property, Transactions of the American Mathematical Society 85 (1957), 52–72. DOI 10.1090/S0002-9947-1957-0088102-2
  • R. E. A. C. Paley, N. Wiener and A. Zygmund, Notes on random functions, Mathematische Zeitschrift 37 (1933), 647–668. DOI 10.1007/BF01474606
  • A. Dvoretzky, P. Erdős and S. Kakutani, Nonincrease everywhere of the Brownian motion process, Proceedings of the Fourth Berkeley Symposium II (1961), 103–116.
  • N. Wiener, Differential space, Journal of Mathematics and Physics 2 (1923), 131–174. DOI 10.1002/sapm192321131
  • I. Karatzas and S. E. Shreve, Brownian Motion and Stochastic Calculus, 2nd ed., Springer, 1991, chapter 2. DOI 10.1007/978-1-4612-0949-2
7 thms2 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: naimengye

Probability Theory and Examples III: The Markov Chain Convergence TheoremTextbook

Motivation

A Markov chain forgets. Run it long enough and the distribution of its position stops depending on where it started — that is the intuition behind shuffling a deck, behind Markov chain Monte Carlo, behind PageRank, and behind the stationary analyses of every queueing model. Chapter 5 of Rick Durrett's Probability: Theory and Examples (Version 5, 2019) makes it a theorem, and identifies exactly what can go wrong.

Two things can. The chain may fail to reach parts of the state space, and the answer is irreducibility. Or it may reach them only on a lattice of times — a chain alternating between two halves of its state space never forgets whether the clock is even or odd — and the answer is aperiodicity. Theorem 5.6.6 says that is the complete list: an irreducible, aperiodic chain with a stationary distribution has pn(x,y)→π(y)p^n(x,y)\to\pi(y)pn(x,y)→π(y), for every pair of states, whatever the starting point.

Setting

Let SSS be a countable state space and p(x,y)p(x,y)p(x,y) a transition probability: non-negative, with each row summing to one. The nnn-step transition probabilities are the matrix powers, p0(x,y)=δxyp^0(x,y)=\delta_{xy}p0(x,y)=δxy​ and pn+1(x,y)=∑zp(x,z)pn(z,y)p^{n+1}(x,y)=\sum_z p(x,z)p^n(z,y)pn+1(x,y)=∑z​p(x,z)pn(z,y).

Hitting is described by the first-passage probabilities fn(x,y)=Px(Ty=n)f^n(x,y)=\mathbb{P}_x(T_y=n)fn(x,y)=Px​(Ty​=n), given by f1(x,y)=p(x,y)f^1(x,y)=p(x,y)f1(x,y)=p(x,y) and fn+1(x,y)=∑z≠yp(x,z)fn(z,y)f^{n+1}(x,y)=\sum_{z\ne y}p(x,z)f^n(z,y)fn+1(x,y)=∑z=y​p(x,z)fn(z,y) — the chain moves once and then reaches yyy for the first time, having avoided it meanwhile. Summing them gives

ρxy=Px(Ty<∞)=∑n≥1fn(x,y),EyTy=∑n≥1n fn(y,y).\rho_{xy}=\mathbb{P}_x(T_y<\infty)=\sum_{n\ge1}f^n(x,y),\qquad \mathbb{E}_yT_y=\sum_{n\ge1}n\,f^n(y,y).ρxy​=Px​(Ty​<∞)=n≥1∑​fn(x,y),Ey​Ty​=n≥1∑​nfn(y,y).

A state is recurrent when ρyy=1\rho_{yy}=1ρyy​=1, the chain is irreducible when ρxy>0\rho_{xy}>0ρxy​>0 for all x,yx,yx,y, and a state xxx is aperiodic when the greatest common divisor of Ix={n≥1:pn(x,x)>0}I_x=\{n\ge1:p^n(x,x)>0\}Ix​={n≥1:pn(x,x)>0} is 111. A stationary distribution is a probability vector π\piπ with ∑xπ(x)p(x,y)=π(y)\sum_x\pi(x)p(x,y)=\pi(y)∑x​π(x)p(x,y)=π(y).

Formalization targets

Goal — Theorem 5.6.6, the convergence theorem

p irreducible, aperiodic, with stationary distribution π⟹pn(x,y)⟶π(y)  for all x,y.p \text{ irreducible},\ \text{aperiodic},\ \text{with stationary distribution } \pi \quad\Longrightarrow\quad p^n(x,y)\longrightarrow\pi(y)\ \text{ for all } x,y .p irreducible, aperiodic, with stationary distribution π⟹pn(x,y)⟶π(y)  for all x,y.

The goal asserts pointwise convergence of the transition probabilities, not convergence in total variation and not a rate; those are strengthenings, and stating the weakest useful form is what keeps the theorem stable.

Supporting levels

Theorem 5.3.1, that a state is recurrent exactly when ∑npn(y,y)\sum_n p^n(y,y)∑n​pn(y,y) diverges — the bridge between the hitting picture and the matrix picture; Theorem 5.3.2, that recurrence is contagious; Theorem 5.5.10, that every state in the support of a stationary distribution is recurrent; and Theorem 5.5.11, that for an irreducible chain with a stationary distribution π(x)=1/ExTx\pi(x)=1/\mathbb{E}_xT_xπ(x)=1/Ex​Tx​.

Significance

The result itself. Theorem 5.6.6 is what licenses reading a stationary distribution as a long-run frequency. Without it, π\piπ is merely a fixed point of a linear map; with it, π(y)\pi(y)π(y) is the limiting probability of being at yyy, from any start. Theorem 5.5.11 then gives the quantity a second, purely local meaning — π(x)\pi(x)π(x) is the reciprocal of the mean return time to xxx — which is the identity behind every renewal-reward computation in applied probability and behind the "expected time between visits" estimates that Monte Carlo methods rely on. The two necessary hypotheses are sharp: a periodic chain has pn(x,y)p^n(x,y)pn(x,y) oscillating rather than converging, and Durrett's Theorem 5.7.2 gives the corrected statement in that case.

Formalizing it. Mathlib has no countable-state Markov chain theory. It has ProbabilityTheory.Kernel and an Irreducible notion for kernels, but nothing about recurrence, transience, first-passage decompositions, stationary measures or the convergence theorem, and nothing that specializes to a transition matrix on a countable set. The mission therefore contributes the whole apparatus of sections 5.3, 5.5 and 5.6 — the nnn-step and first-passage probabilities, ρxy\rho_{xy}ρxy​, the mean return time, recurrence, irreducibility, aperiodicity and stationarity — together with the results that make it usable.

Difficulty

The usual proof of the goal is a coupling argument, and it is short but not obvious: run two independent copies of the chain, one from xxx and one from π\piπ, on the product space S×SS\times SS×S with transition probability pˉ((x1,x2),(y1,y2))=p(x1,y1)p(x2,y2)\bar p((x_1,x_2),(y_1,y_2))=p(x_1,y_1)p(x_2,y_2)pˉ​((x1​,x2​),(y1​,y2​))=p(x1​,y1​)p(x2​,y2​); aperiodicity plus irreducibility make the product chain irreducible, π×π\pi\times\piπ×π is stationary for it, so it is recurrent and the two copies meet almost surely; after they meet they can be exchanged. Each step of that is a separate obligation, and the one that consumes aperiodicity is the irreducibility of the product chain — for a periodic chain it fails, which is exactly why the theorem does.

The number-theoretic ingredient is worth flagging: irreducibility of the product needs that Ix={n:pn(x,x)>0}I_x=\{n:p^n(x,x)>0\}Ix​={n:pn(x,x)>0}, being closed under addition with gcd⁡1\gcd 1gcd1, contains every sufficiently large integer. That is the numerical semigroup fact, and it is where aperiodicity is actually used.

Formalization scope

The state space is any countable type with decidable equality, and the transition probability is a plain function S×S→RS\times S\to\mathbb{R}S×S→R constrained by IsTransition: non-negative entries, summable rows, rows summing to one. Sums over the state space are unconditional sums, so no finiteness is assumed anywhere.

The chain's law is not constructed. Every quantity here — pnp^npn, fnf^nfn, ρxy\rho_{xy}ρxy​, EyTy\mathbb{E}_yT_yEy​Ty​ — is defined by an explicit recursion on the transition matrix, not as an expectation against a measure on path space. This is a deliberate choice: building the path measure is a substantial project of its own, and none of the statements in these sections need it. The recursions are the standard ones and they are the definitions the book's own computations use. The cost is that probabilistic statements about paths, such as Theorem 5.6.1 on the almost-sure limit of the visit counts Nn(y)/nN_n(y)/nNn​(y)/n, cannot be phrased in this language and are not part of the mission.

Conventions: p0p^0p0 is the identity matrix; fnf^nfn vanishes at n=0n=0n=0; ρxy\rho_{xy}ρxy​ and EyTy\mathbb{E}_yT_yEy​Ty​ are unconditional sums over n≥1n\ge1n≥1, so an infinite mean return time appears as a non-summable series rather than as an extended real. Theorem 5.5.11 is therefore stated as summability together with π(x)⋅ExTx=1\pi(x)\cdot\mathbb{E}_xT_x=1π(x)⋅Ex​Tx​=1, which asserts finiteness of the mean return time rather than silently relying on a division convention.

Aperiodicity is "the only natural number dividing every element of IxI_xIx​ is 111", which is gcd⁡Ix=1\gcd I_x=1gcdIx​=1 written without needing a gcd of a set; it is false when IxI_xIx​ is empty, which is correct, since the period of such a state is undefined.

The goal is not vacuous: the hypotheses are satisfiable by any strictly positive transition matrix on a finite set.

Contributions welcome beyond the listed items: Theorem 5.3.3 on finite closed sets; the decomposition theorem 5.3.5; existence of a stationary measure from a recurrent state (5.5.7) and its uniqueness (5.5.9); the equivalence of positive recurrence and the existence of a stationary distribution (5.5.12); Theorem 5.7.2 for the periodic case; and the path-level results of section 5.6, which need the chain's law on path space.

Selected references

  • Rick Durrett, Probability: Theory and Examples, Version 5 (11 January 2019), chapter 5, sections 5.3, 5.5 and 5.6 (pp. 281–320); Theorems 5.3.1, 5.3.2, 5.5.10, 5.5.11, 5.6.6. Published as the 5th edition, Cambridge University Press, 2019, DOI 10.1017/9781108591034
  • J. R. Norris, Markov Chains, Cambridge University Press, 1998, chapter 1. DOI 10.1017/CBO9780511810633
  • D. A. Levin and Y. Peres, Markov Chains and Mixing Times, 2nd ed., American Mathematical Society, 2017. DOI 10.1090/mbk/107
  • W. Doeblin, Exposé de la théorie des chaînes simples constantes de Markoff à un nombre fini d'états, Revue Mathématique de l'Union Interbalkanique 2 (1938), 77–105.
6 thms2 active usersReviewed
🏆Completed
Operations ResearchStochastic Systems·Captain: naimengye

Stochastic Networks V: Random Access and the Critical Rate of Backoff SchemesTextbook

Motivation

When many stations share one broadcast channel, something has to decide who transmits. A token passed around the stations works when there are few of them and none is silent for long, but it scales badly and breaks if the token is lost. The alternative is to let stations transmit whenever they like and use randomness to recover from the resulting collisions. That is the design of ALOHA, built in the 1970s to connect terminals across the Hawaiian islands, and of Ethernet, and of essentially every contention-based access protocol since.

Chapter 5 of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014) asks what such protocols can achieve, and the answers are largely negative. ALOHA with a fixed retransmission probability jams: with probability one there is a finite random time after which every slot contains a collision and no packet ever succeeds again, for every positive arrival rate. Ethernet's binary exponential backoff does better, but only just: it has a positive critical arrival rate, above which only finitely many packets are ever transmitted, and it is still not positive recurrent at rates where it does transmit infinitely many. The chapter's general statement is the one this mission targets: any backoff slower than exponential jams at every positive arrival rate.

Setting

Time is slotted, and a transmission attempt occupies exactly one slot. New packets arrive in a Poisson stream of rate ν\nuν, so the number arriving in a slot is Poisson with mean ν\nuν. A slot in which exactly one station transmits carries its packet successfully; a slot in which two or more transmit is a collision and carries nothing.

In an acknowledgement-based scheme a station learns nothing about the channel except whether its own transmissions succeeded. A packet arriving in slot ttt attempts transmission in slots t+x0,t+x1,…t+x_0, t+x_1, \dotst+x0​,t+x1​,… with 1=x0<x1<⋯1 = x_0 < x_1 < \cdots1=x0​<x1​<⋯, the sequence chosen independently for each packet, and

h(x)=P(x∈X),h(1)=1h(x) = \mathbb{P}(x \in X), \qquad h(1) = 1h(x)=P(x∈X),h(1)=1

is the retransmission function. For ALOHA, h(x)=fh(x) = fh(x)=f for every x>1x > 1x>1; for Ethernet's binary exponential backoff, ∑r≤th(r)∼log⁡2t\sum_{r \le t} h(r) \sim \log_2 t∑r≤t​h(r)∼log2​t.

Now imagine the channel externally jammed from time 000, so that every retransmission actually occurs. The attempts in slot ttt are then Poisson with mean ν∑r=1th(r)\nu\sum_{r=1}^{t}h(r)ν∑r=1t​h(r), and the probability that fewer than two attempts are made in slot ttt is

Pt=(1+ν∑r=1th(r))exp⁡(−ν∑r=1th(r)).P_t=\Bigl(1+\nu\sum_{r=1}^{t}h(r)\Bigr)\exp\Bigl(-\nu\sum_{r=1}^{t}h(r)\Bigr).Pt​=(1+νr=1∑t​h(r))exp(−νr=1∑t​h(r)).

The expected number of such slots is H(ν)=∑t≥1PtH(\nu)=\sum_{t\ge1}P_tH(ν)=∑t≥1​Pt​, which is decreasing in ν\nuν, and the critical rate is

νc=inf⁡{ν:H(ν)<∞}.\nu_c=\inf\{\nu : H(\nu)<\infty\}.νc​=inf{ν:H(ν)<∞}.

Theorem 5.11 of the book says νc\nu_cνc​ deserves its name: below it infinitely many packets are transmitted with probability one, above it only finitely many.

Formalization targets

Goal — condition (5.7): slower-than-exponential backoff has νc=0\nu_c=0νc​=0

1log⁡t∑x=1th(x)⟶∞⟹H(ν)=∑t≥1Pt<∞  for every ν>0.\frac{1}{\log t}\sum_{x=1}^{t}h(x)\longrightarrow\infty \quad\Longrightarrow\quad H(\nu)=\sum_{t\ge1}P_t<\infty \ \text{ for every } \nu>0 .logt1​x=1∑t​h(x)⟶∞⟹H(ν)=t≥1∑​Pt​<∞  for every ν>0.

Since H(ν)<∞H(\nu)<\inftyH(ν)<∞ for every positive ν\nuν, the critical rate is νc=0\nu_c=0νc​=0, and by Theorem 5.11 the expected number of successful transmissions is finite at every positive arrival rate. The goal fixes no constant and no rate: it says only that the dividing line between "jams always" and "has a positive capacity" sits at logarithmic growth of ∑x≤th(x)\sum_{x\le t}h(x)∑x≤t​h(x), which is exponential growth of the backoff.

Supporting levels

The ALOHA drift calculation of section 5.1 and its consequence that the drift is positive once the backlog is large enough; the summability ∑np(n)<∞\sum_n p(n)<\infty∑n​p(n)<∞ that combines with Borel–Cantelli to give Proposition 5.3; the monotonicity of PtP_tPt​ in ν\nuν; the opposite extreme, that a scheme with ∑xh(x)<∞\sum_x h(x)<\infty∑x​h(x)<∞ — one that gives up on a packet after finitely many attempts — has νc=∞\nu_c=\inftyνc​=∞; that ALOHA's own retransmission function satisfies condition (5.7); and the bound of Remark 5.14, that a positive recurrent acknowledgement-based scheme needs ν≤e−ν\nu\le e^{-\nu}ν≤e−ν and hence ν<0.5672\nu<0.5672ν<0.5672, which is strictly below Ethernet's νc=log⁡2\nu_c=\log 2νc​=log2.

Significance

The result itself. Condition (5.7) is the chapter's structural statement about random access, and it is a sharp one. Any retransmission rule under which a packet keeps trying at a rate that does not decay fast enough — a fixed probability, a polynomially growing backoff, anything short of exponential — has critical rate zero: the channel jams at every positive load. Exponential backoff is not a tuning choice, it is the minimum that makes the protocol work at all, and the log⁡b\log blogb formula for a backoff by factor bbb (Exercise 5.7) then says how much capacity each choice of bbb buys. The gap recorded in Remark 5.14 is the other half of the picture: even above the threshold, "infinitely many packets get through" is much weaker than "the backlog is stable", and between 0.5670.5670.567 and log⁡2≈0.693\log 2 \approx 0.693log2≈0.693 Ethernet does the first and provably not the second.

Formalizing it. None of this is open; the analysis is due to Kelly and MacPhee (1987) and Aldous (1987). What the mission contributes is a machine-checked account of the analytic core: the definitions of PtP_tPt​, H(ν)H(\nu)H(ν) and νc\nu_cνc​, the two extremes of the classification, and the ALOHA calculations. Mathlib has no protocol analysis and nothing about random access channels.

Difficulty

The obstacle is a modelling one and it is worth stating plainly rather than discovering halfway through. The chapter's headline results — Proposition 5.3 that ALOHA jams almost surely, Theorem 5.11 that νc\nu_cνc​ is the critical rate, Theorem 5.15 that geometric Ethernet is transient — are statements about sample paths of a Markov chain built on a Poisson arrival stream, and their proofs are coupling arguments comparing a system started empty with one started with a backlog. Nothing in Mathlib supports that construction, and building it is a research-scale project rather than a chapter. This mission therefore formalizes the analytic half and quotes the probabilistic half, which is the same division the book itself makes when it computes νc\nu_cνc​ for a scheme: Theorem 5.11 is proved once, and every subsequent statement about a protocol is a convergence question about ∑tPt\sum_t P_t∑t​Pt​.

Within that analytic half the difficulty is real but ordinary. The summand PtP_tPt​ is a product of a factor growing with ∑r≤th(r)\sum_{r\le t}h(r)∑r≤t​h(r) and one decaying exponentially in it, so the growth hypothesis has to be turned into a summable bound without assuming any regularity of hhh beyond non-negativity — in particular ∑r≤th(r)\sum_{r\le t}h(r)∑r≤t​h(r) need not be eventually monotone in any useful quantitative sense, only divergent faster than log⁡t\log tlogt.

Formalization scope

The retransmission function is any non-negative real sequence; the normalization h(1)=1h(1)=1h(1)=1 is not imposed, since none of the statements need it and imposing it would exclude the comparison schemes. PtP_tPt​ and the partial sums are real-valued, and "H(ν)<∞H(\nu)<\inftyH(ν)<∞" is stated as summability of the sequence rather than as a bound on an extended-real sum, so convergence is asserted rather than assumed. The goal is stated for each fixed ν>0\nu>0ν>0 separately, which is what makes νc=0\nu_c=0νc​=0; it is not stated as a claim about the infimum, because the infimum of the set {ν:H(ν)<∞}\{\nu : H(\nu)<\infty\}{ν:H(ν)<∞} adds nothing once the set is known to be all of (0,∞)(0,\infty)(0,∞).

The growth hypothesis is the book's condition (5.7) verbatim: (log⁡t)−1∑x≤th(x)→∞\bigl(\log t\bigr)^{-1}\sum_{x\le t}h(x)\to\infty(logt)−1∑x≤t​h(x)→∞. Note that at t=0t=0t=0 and t=1t=1t=1 the quotient involves log⁡t≤0\log t \le 0logt≤0 and is not meaningful; divergence to infinity is an eventual statement, so this costs nothing, but it is why the hypothesis is a limit rather than a pointwise bound.

The mission is not vacuous in either direction: the ALOHA milestone exhibits a retransmission function satisfying the hypothesis, and the ∑xh(x)<∞\sum_x h(x)<\infty∑x​h(x)<∞ milestone exhibits one that fails it as strongly as possible, with H(ν)=∞H(\nu)=\inftyH(ν)=∞ for every ν\nuν.

Contributions welcome beyond the listed items: Ethernet's ∑r≤th(r)∼log⁡2t\sum_{r\le t}h(r)\sim\log_2 t∑r≤t​h(r)∼log2​t and the resulting νc=log⁡2\nu_c=\log 2νc​=log2; the generalization νc=log⁡b\nu_c=\log bνc​=logb of Exercise 5.7; the scheme h(x)=1/(xlog⁡x)h(x)=1/(x\log x)h(x)=1/(xlogx) with νc=∞\nu_c=\inftyνc​=∞; the continuous-time halving νc=12log⁡b\nu_c=\frac12\log bνc​=21​logb of Kelly and MacPhee; and, for anyone willing to build the probabilistic layer, Proposition 5.3 and Theorem 5.11 themselves.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 5 (pp. 108–132); Definition 5.1, Proposition 5.3, Theorems 5.11 and 5.15, condition (5.7), Examples 5.8, 5.12 and 5.13, Remark 5.14. DOI 10.1017/cbo9781139565363
  • N. Abramson, The ALOHA system — another alternative for computer communications, AFIPS Conference Proceedings 37 (1970), 281–285. DOI 10.1145/1478462.1478502
  • F. P. Kelly and I. M. MacPhee, The number of packets transmitted by collision detect random access schemes, Annals of Probability 15 (1987), 1557–1568. DOI 10.1214/aop/1176991992
  • D. J. Aldous, Ultimate instability of exponential back-off protocol for acknowledgement-based transmission control of random access communication channels, IEEE Transactions on Information Theory 33 (1987), 219–223. DOI 10.1109/TIT.1987.1057295
  • R. M. Metcalfe and D. R. Boggs, Ethernet: distributed packet switching for local computer networks, Communications of the ACM 19 (1976), 395–404. DOI 10.1145/360248.360253
8 thms2 active usersReviewed
🏆Completed
Machine LearningRandom Matrix TheoryStatistics·Captain: mikedeng1

High-Dimensional Probability II: Concentration Inequalities for Sums of Independent Random VariablesTextbook

Motivation

The central limit theorem tells us that a normalized sum of independent random variables converges in distribution to a Gaussian. For applications — bounding the failure probability of a randomized algorithm, controlling the error of a Monte Carlo estimator, proving a generalization bound in learning theory — a limiting distribution is not enough: what is needed is a single, explicit, non-asymptotic inequality that holds for every fixed sample size NNN, not merely as N→∞N \to \inftyN→∞. Hoeffding's inequality (Wassily Hoeffding, 1963) and Bernstein's inequality (Sergei Bernstein, 1920s–1940s, in the form used here due to Vadim Bennett and later authors) are the two archetypal answers: both give an explicit Gaussian-type tail bound for a weighted sum of independent random variables, valid for every NNN, with all constants made explicit. They are the workhorses behind concentration of measure, high-dimensional statistics, and the non-asymptotic analysis of randomized algorithms; a textbook trying to reach the Johnson–Lindenstrauss lemma, random matrix norms, or the restricted isometry property has to pass through this chapter first, because every one of those results is itself an application of a weighted-sum concentration inequality to a specific choice of random variables.

The central limit theorem's own error term is the obstruction that direct concentration inequalities are built to avoid: the Berry–Esseen theorem (Andrew C. Berry, 1941; Carl-Gustav Esseen, 1942) bounds the normal approximation's error at order 1/N1/\sqrt N1/N​, which is too slow to recover a genuinely exponential tail bound for finite NNN. Hoeffding's and Bernstein's inequalities are proved instead by a direct argument — bounding the moment generating function of the sum and optimizing a Markov/Chernoff exponential tilt — that never invokes the central limit theorem or its error term at all.

The sub-gaussian and sub-exponential norms

Fix a probability space (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P). For a real random variable XXX on (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P), define its sub-gaussian norm

∥X∥ψ2:=inf⁡{t>0:Eexp⁡(X2/t2) is finite and ≤2}\|X\|_{\psi_2} := \inf\{t > 0 : \mathbb E \exp(X^2/t^2) \text{ is finite and } \le 2\}∥X∥ψ2​​:=inf{t>0:Eexp(X2/t2) is finite and ≤2}

and its sub-exponential norm

∥X∥ψ1:=inf⁡{t>0:Eexp⁡(∣X∣/t) is finite and ≤2}.\|X\|_{\psi_1} := \inf\{t > 0 : \mathbb E \exp(|X|/t) \text{ is finite and } \le 2\}.∥X∥ψ1​​:=inf{t>0:Eexp(∣X∣/t) is finite and ≤2}.

In both definitions, the requirement that the exponential moment be finite (i.e. that the moment-generating integrand be integrable), and not merely satisfy "≤2\le 2≤2" as a bare inequality, is essential: without it a moment that is genuinely infinite for a given ttt would vacuously count as "≤2\le 2≤2" under the Bochner integral's convention that a non-integrable function integrates to 000, and every random variable — however heavy-tailed — would trivially have norm 000. XXX is called sub-gaussian (respectively sub-exponential) when this infimum is over a nonempty set, i.e. when some finite ttt makes the moment finite and at most 222. These are genuine norms (up to the identification of almost-surely-equal random variables) on the vector space of random variables for which they are finite, and they are the natural non-asymptotic yardsticks for tail heaviness: ∥X∥ψ2<∞\|X\|_{\psi_2} < \infty∥X∥ψ2​​<∞ characterizes a Gaussian-type tail P{∣X∣≥t}≤2exp⁡(−ct2/∥X∥ψ22)P\{|X| \ge t\} \le 2\exp(-ct^2/\|X\|_{\psi_2}^2)P{∣X∣≥t}≤2exp(−ct2/∥X∥ψ2​2​), while ∥X∥ψ1<∞\|X\|_{\psi_1} < \infty∥X∥ψ1​​<∞ characterizes an exponential-type tail P{∣X∣≥t}≤2exp⁡(−ct/∥X∥ψ1)P\{|X| \ge t\} \le 2\exp(-ct/\|X\|_{\psi_1})P{∣X∣≥t}≤2exp(−ct/∥X∥ψ1​​). Every bounded random variable — in particular every Bernoulli or Rademacher (symmetric Bernoulli) random variable — is sub-gaussian, and the square of a sub-gaussian random variable is sub-exponential; a genuinely sub-exponential (not sub-gaussian) example is the squared coordinate gi2g_i^2gi2​ of a standard Gaussian vector, or the exponential distribution itself.

Formalization targets

Goal — Theorem 2.8.2 (Bernstein's inequality, weighted sum). Let X1,…,XNX_1, \dots, X_NX1​,…,XN​ be independent, mean-zero, sub-exponential random variables on (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P), and let a=(a1,…,aN)∈RNa = (a_1, \dots, a_N) \in \mathbb R^Na=(a1​,…,aN​)∈RN. Then, for every t≥0t \ge 0t≥0,

P{∣∑i=1NaiXi∣≥t}  ≤  2exp⁡[−cmin⁡(t2K2∥a∥22,tK∥a∥∞)],P\Bigl\{\Bigl|\sum_{i=1}^N a_i X_i\Bigr| \ge t\Bigr\} \;\le\; 2\exp\left[-c\min\left(\frac{t^2}{K^2\|a\|_2^2}, \frac{t}{K\|a\|_\infty}\right)\right],P{​i=1∑N​ai​Xi​​≥t}≤2exp[−cmin(K2∥a∥22​t2​,K∥a∥∞​t​)],

where K=max⁡i∥Xi∥ψ1K = \max_i \|X_i\|_{\psi_1}K=maxi​∥Xi​∥ψ1​​ and c>0c > 0c>0 is an absolute constant that does not depend on NNN, the XiX_iXi​, aaa, or ttt.

The goal is deliberately the weighted and sub-exponential form, the weakest of the chapter's results that is still stable under the improvements a solver might find: it neither fixes ai≡1a_i \equiv 1ai​≡1 (the unweighted Theorem 2.8.1, a special case) nor restricts to the lighter sub-gaussian tail (Theorem 2.6.3, which follows from a strictly stronger hypothesis). Both weaker theorems, plus Hoeffding's and Chernoff's inequalities, are included as milestones because Bernstein's own proof is built directly from them.

Significance

The result itself. Bernstein's inequality is the two-tail-regime concentration bound: a sub-gaussian tail exp⁡(−ct2/(K∥a∥2)2)\exp(-ct^2/(K\|a\|_2)^2)exp(−ct2/(K∥a∥2​)2) near the mean, transitioning to a heavier sub-exponential tail exp⁡(−ct/(K∥a∥∞))\exp(-ct/(K\|a\|_\infty))exp(−ct/(K∥a∥∞​)) far from it, exactly the behavior one should expect from a mixture of light-tailed terms with one heavy-tailed outlier. It underlies the concentration of quadratic forms (Chapter 6's Hanson–Wright inequality controls ∑εiεj\sum \varepsilon_i \varepsilon_j∑εi​εj​-type terms, which are themselves products of sub-gaussians and hence sub-exponential by Lemma 2.7.7), and it is the standard tool for bounding empirical-process suprema whose summands are not bounded but merely light-tailed.

Formalizing it. No formalization of Bernstein's inequality — in either the weighted or unweighted, or sub-gaussian or sub-exponential form — exists yet on Prove2Me (GET /theorems?q=Bernstein and q=sub-exponential return no relevant hits, checked 2026-09-17). What this mission produces is not just the statement but the machinery underneath it: a working Orlicz-norm treatment of ψ1\psi_1ψ1​ and ψ2\psi_2ψ2​ that a later mission (the Hanson–Wright inequality, or any future chapter that needs sub-exponential concentration) can build on directly.

Difficulty

The obvious first idea — squaring both sides and applying Chebyshev, as one does to prove the weak law of large numbers — gives only a polynomial tail bound decaying like 1/N1/N1/N, far too weak to be useful (this is exactly the point made by the chapter's opening discussion of the coin-tossing example, comparing the linear decay from Chebyshev against the target exponential decay). The central limit theorem promises the right shape of tail asymptotically but, per Berry–Esseen, with an error of order 1/N1/\sqrt N1/N​ that swamps any exponential gain for large deviations — the CLT approximation is simply not valid in the tail regime the inequality needs. The actual argument instead controls the moment generating function of the full sum directly and optimizes an exponential (Chernoff) tilt; this is why the sub-gaussian and sub-exponential norms — MGF-control objects, not moment or tail objects per se — are the right technical vehicle, even though Proposition 2.5.2 and 2.7.1 show all these characterizations are equivalent up to constants. The min of two terms in Bernstein's exponent is not an artifact of a loose proof: it reflects a genuinely two-regime tail (Gaussian near the mean, exponential in the far tail), and collapsing it to a single term in either direction would either be false (dropping the exponential term) or needlessly weak (dropping the Gaussian term, which is what a naive union bound over the worst single term would give).

Formalization scope

Random variables are ℝ-valued functions on an explicit probability space (Ω, mΩ, P) (Ω : Type, MeasurableSpace Ω, P : Measure Ω, [IsProbabilityMeasure P]), matching the book's setup throughout. Independence is Mathlib's ProbabilityTheory.iIndepFun, and tail probabilities are stated with P.real, Mathlib's ℝ-valued measure evaluation, which corresponds directly to the book's P{⋅}P\{\cdot\}P{⋅}.

Both Orlicz norms are defined locally, as genuine infima matching Definitions 2.5.6 and 2.7.5 verbatim (subgaussianNorm, subexponentialNorm, each sInf {t > 0 : Integrable (fun ω => E[...]) P ∧ E[...] ≤ 2}), rather than reused from Mathlib's HasSubgaussianMGF (Mathlib.Probability.Moments.SubGaussian). The Integrable conjunct is not optional dressing: Mathlib's Bochner integral of a non-integrable function is 0 by convention, so a bare E[...] ≤ 2 (without asserting integrability) would be satisfied by every t for which the moment is actually infinite, collapsing the sub-gaussian norm of a standard Gaussian (and, symmetrically, the sub-exponential norm of any heavy-tailed variable) to 0 — a trivializing formalization the mission was moderated to rule out. The same Integrable conjunct appears in every moment hypothesis (general_hoeffding, bernstein_unweighted, bernstein_weighted): ∃ s > 0, Integrable (...) P ∧ ∫ ... ≤ 2, so that the hypothesis is not satisfied vacuously by non-integrable exponential moments either. HasSubgaussianMGF bounds the moment generating function directly with a variance-proxy parameter σ2\sigma^2σ2 (E exp(tX) ≤ exp(c t²/2)), which is a different object definitionally from the Orlicz ψ2\psi_2ψ2​ norm — equivalent up to a constant factor by the book's own Proposition 2.5.2, but not interchangeable without restating that equivalence — and Mathlib has no sub-exponential analogue at all. Since the goal theorem and two of its milestones need the sub-exponential norm, one consistent convention (the book's own Orlicz norms) is used for both ψ1\psi_1ψ1​ and ψ2\psi_2ψ2​ throughout the mission, rather than mixing Mathlib's MGF-based sub-gaussian convention with a locally defined sub-exponential one.

Every occurrence of the book's "ccc is an absolute constant" is formalized as a genuine existential quantifier fixed before the random variables, the vector a, and t are introduced: ∃ c : ℝ, 0 < c ∧ ∀ ..., P.real {...} ≤ 2 * Real.exp (-(c * ...)). No numeral is substituted for c anywhere; a solver's proof may use any positive constant it can establish, exactly mirroring the book's own non-constructive existence claims. The trivializing formalization this rules out is fixing c to a specific small numeral (which would be a strictly stronger, easier, and unfaithful claim) or, in the other direction, weakening the statement by allowing c to depend on N, the XiX_iXi​, a, or t (which would make the theorem vacuous, since any such bound trivially holds for a small enough ccc depending on the instance).

Chernoff's inequality (Theorem 2.3.1) needs no Orlicz norm — Bernoulli parameters pip_ipi​ are given directly via P.real {X i = 1} = p i ∧ P.real {X i = 0} = 1 - p i, and the conclusion uses Real.rpow (^ on ℝ → ℝ → ℝ) for the real exponent ttt in (eμ/t)t(e\mu/t)^t(eμ/t)t. Hoeffding's inequality for symmetric Bernoulli variables (Theorem 2.2.2) is likewise self-contained, needing only the two-point probability hypothesis defining the Rademacher distribution.

Selected references

  • W. Hoeffding, Probability Inequalities for Sums of Bounded Random Variables, Journal of the American Statistical Association 58(301), 1963. https://doi.org/10.2307/2282952
  • S. Bernstein, The Theory of Probabilities, Gastehizdat Publishing House, Moscow, 1946 (Russian; the inequality is due to Bernstein's earlier 1920s–1930s work, this textbook states the modern sub-exponential form following later expositions).
  • A. C. Berry, The Accuracy of the Gaussian Approximation to the Sum of Independent Variates, Transactions of the American Mathematical Society 49(1), 1941. https://doi.org/10.2307/1990053
  • C.-G. Esseen, On the Liapunoff Limit of Error in the Theory of Probability, Arkiv för Matematik, Astronomi och Fysik A28, 1942.
  • R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science, Cambridge University Press, 2018, Chapter 2. https://doi.org/10.1017/9781108231596
7 thms2 active usersReviewed
🏆Completed
Machine LearningRandom Matrix TheoryStatistics·Captain: mikedeng1

High-Dimensional Probability I: Approximate Carathéodory's TheoremTextbook

Motivation

Many arguments in high-dimensional geometry, statistics and computer science need to approximate a point of a convex set by an average of a handful of extreme points, rather than represent it exactly. The classical Carathéodory theorem (1907) answers the exact question: every point of the convex hull of a set T⊆RnT \subseteq \mathbb{R}^nT⊆Rn is a convex combination of at most n+1n+1n+1 points of TTT. That bound is tight and grows with the dimension nnn, which makes it useless whenever nnn is large — exactly the regime of interest in high-dimensional probability.

B. Maurey's empirical method — an unpublished 1980–81 result reported by G. Pisier, "Remarques sur un résultat non publié de B. Maurey," Séminaire d'Analyse Fonctionnelle 1980–1981 — and later applied by B. Carl to bound covering numbers of operators between Banach spaces (Inequalities of Bernstein-Jackson-type and the degree of compactness of operators in Banach spaces, Ann. Inst. Fourier 35(3), 1985, 79–118), replaces the exact question with an approximate one and removes the dimension dependence entirely: to approximate xxx to accuracy ε\varepsilonε, the number of points needed depends only on ε\varepsilonε, never on nnn. Vershynin's High-Dimensional Probability opens with this result as its "Appetizer," using it to illustrate the book's central theme — that randomness is a tool for constructing deterministic combinatorial objects — before any probabilistic machinery has been introduced.

Setting

A convex combination of finitely many points z1,…,zm∈Rnz_1, \dots, z_m \in \mathbb{R}^nz1​,…,zm​∈Rn is a sum ∑i=1mλizi\sum_{i=1}^m \lambda_i z_i∑i=1m​λi​zi​ with λi≥0\lambda_i \ge 0λi​≥0 and ∑iλi=1\sum_i \lambda_i = 1∑i​λi​=1. The convex hull conv⁡(T)\operatorname{conv}(T)conv(T) of a set T⊆RnT \subseteq \mathbb{R}^nT⊆Rn is the set of all convex combinations of all finite collections of points of TTT. The diameter of TTT is diam⁡(T)=sup⁡{∥s−t∥2:s,t∈T}\operatorname{diam}(T) = \sup\{\|s-t\|_2 : s, t \in T\}diam(T)=sup{∥s−t∥2​:s,t∈T}, the Euclidean norm throughout.

The classical Carathéodory theorem states that every x∈conv⁡(T)x \in \operatorname{conv}(T)x∈conv(T) is a convex combination of at most n+1n+1n+1 points of TTT — with n+1n+1n+1 generally unavoidable, attained by a simplex. The question this mission answers is different: given that we are willing to approximate xxx rather than represent it exactly, and willing to use only combinations with equal coefficients 1/k1/k1/k (an average of kkk points, with repetition allowed), how large must kkk be as a function of the desired accuracy?

Formalization targets

Goal — Theorem 0.0.2, Approximate Carathéodory's theorem

diam(T)≤1, x∈conv⁡(T), k∈Z>0 ⟹ ∃ x1,…,xk∈T:∥x−1k∑j=1kxj∥2≤1k.\text{diam}(T) \le 1,\ x \in \operatorname{conv}(T),\ k \in \mathbb{Z}_{>0} \ \Longrightarrow\ \exists\, x_1,\dots,x_k \in T:\quad \left\| x - \frac{1}{k}\sum_{j=1}^{k} x_j \right\|_2 \le \frac{1}{\sqrt{k}}.diam(T)≤1, x∈conv(T), k∈Z>0​ ⟹ ∃x1​,…,xk​∈T:​x−k1​j=1∑k​xj​​2​≤k​1​.

The quantifiers are exactly this order: for every bounded TTT, every point of its convex hull, and every target kkk, such an averaging set exists. This is the weakest stable statement carrying the theorem's content — the number of points kkk does not depend on the dimension nnn, and the coefficients are forced to be uniform — and it is the form the corollary below invokes directly.

Milestone — Corollary 0.0.4, Covering polytopes by balls

P=conv⁡(T), ∣T∣=N, diam⁡(P)≤1, ε>0 ⟹ ∃ C, ∣C∣≤N⌈1/ε2⌉:P⊆⋃c∈CB‾(c,ε).P = \operatorname{conv}(T),\ |T| = N,\ \operatorname{diam}(P) \le 1,\ \varepsilon > 0 \ \Longrightarrow\ \exists\, C,\ |C| \le N^{\lceil 1/\varepsilon^2 \rceil}:\quad P \subseteq \bigcup_{c \in C} \overline{B}(c, \varepsilon).P=conv(T), ∣T∣=N, diam(P)≤1, ε>0 ⟹ ∃C, ∣C∣≤N⌈1/ε2⌉:P⊆c∈C⋃​B(c,ε).

This is a direct application of the goal to computational geometry's covering problem: how many balls of radius ε\varepsilonε are needed to cover a polytope, and where should they be centered.

Significance

The result itself. The approximate Carathéodory theorem is the prototype of a dimension-free approximation result: whenever a set is bounded, a fixed number of points (depending only on the target accuracy, not the ambient dimension) suffices to approximate any point of its convex hull. This is what makes possible dimension-independent covering-number bounds such as Corollary 0.0.4, which in turn are the starting point for the book's later treatment of entropy, packing and generic chaining (Chapters 4, 7–8). The technique generalizes far beyond Rn\mathbb{R}^nRn: it underlies covering-number bounds for operators between Banach spaces (Carl's original application) and is a recurring device in learning theory for bounding the size of an ε\varepsilonε-net of a hypothesis class.

Formalizing it. Both results are elementary and already fully proved in the literature; no open mathematical content remains. What this mission contributes is a machine-checked, faithful Lean statement of Maurey's construction and its corollary, phrased over Mathlib's existing convex-hull and metric-diameter machinery, so that later missions in this series (concentration inequalities, Johnson–Lindenstrauss, chaining) can build on a verified base case of "probability constructs a deterministic covering," and so that the empirical method itself becomes a reusable, linked component on the platform. The proof of the goal (via the probabilistic argument sketched by the book: interpret a convex combination as a probability distribution, average kkk i.i.d. samples, and bound the variance) is left open for solvers.

Difficulty

The identity that makes the proof work — averaging kkk independent copies of a random vector concentrates around its mean at rate 1/k1/\sqrt{k}1/k​ in mean-square — is a two-line computation once the convex combination is reinterpreted probabilistically. The step that is easy to miss is this reinterpretation itself: nothing in the statement mentions probability, so the "obvious" attack of manipulating the convex-combination weights directly, or trying to construct x1,…,xkx_1,\dots,x_kx1​,…,xk​ by some explicit combinatorial recipe, does not see a path to a bound independent of nnn. The probabilistic argument produces the points non-constructively, via an averaging/existence argument (the expected squared distance is small, so some realization achieves it) rather than an explicit formula — a solver has to introduce a probability space and a random vector that does not appear anywhere in the formal statement to be proved.

Formalization scope

Both results are stated over EuclideanSpace ℝ (Fin n) for an explicit dimension n : ℕ, so ‖·‖ is the Euclidean norm and Mathlib's Metric.diam is used directly for diam⁡(T)=sup⁡{∥s−t∥2}\operatorname{diam}(T) = \sup\{\|s-t\|_2\}diam(T)=sup{∥s−t∥2​}. The convex hull is Mathlib's convexHull ℝ T; by Mathlib's convexHull_eq, this already coincides with the book's own definition of a convex combination of finitely many points of TTT, so no bespoke convex-combination definition is introduced — this mission needs no supporting definitions of its own. In the corollary, "a polytope PPP with NNN vertices" is formalized, following the book's own proof, as P=conv⁡(T)P = \operatorname{conv}(T)P=conv(T) for a finite vertex set TTT with #T=N\#T = N#T=N, rather than via a separate Polytope structure (which Mathlib does not provide and the book's argument does not need). The covering bound N⌈1/ε2⌉N^{\lceil 1/\varepsilon^2\rceil}N⌈1/ε2⌉ is an exponent, not a product with NNN — matching the book's own proof, which counts the NkN^kNk ordered kkk-tuples of vertices with repetition, k:=⌈1/ε2⌉k := \lceil 1/\varepsilon^2\rceilk:=⌈1/ε2⌉; the typeset "N⌈1/ε2⌉N\lceil 1/\varepsilon^2\rceilN⌈1/ε2⌉" in the corollary statement is the same juxtaposition-as-exponent notation the proof uses for "NkN^kNk" one line earlier.

A trivializing formalization is ruled out explicitly: the goal must hold for every integer k>0k > 0k>0 and every x∈conv⁡(T)x \in \operatorname{conv}(T)x∈conv(T), not merely some convenient choice — e.g. k=1k = 1k=1 together with x∈Tx \in Tx∈T trivially satisfies the inequality but proves nothing about the theorem's actual content, that a fixed, dimension-independent kkk works uniformly over all points of the hull. The formal statement quantifies TTT, then xxx, then kkk, and only then asserts existence of the x1,…,xkx_1,\dots,x_kx1​,…,xk​, exactly in that order.

Classical Carathéodory (Theorem 0.0.1, stated for context in the source but not used by either formalized result's proof) is not drafted here: Mathlib already proves the corresponding statement via affine independence (Caratheodory.eq_pos_convex_span_of_mem_convexHull, Analysis/Convex/Caratheodory.lean), from which the book's "n+1n+1n+1 points" bound follows via AffineIndependent.card_le_finrank_succ. It is not added as a kind: reference milestone because no corresponding theorem is yet published on the Prove2Me platform to point at (checked 2026-09-17: GET /theorems?q=Caratheodory returns only unrelated tropical-convexity results), and re-drafting existing Mathlib content as a new platform theorem would duplicate rather than reuse it.

Selected references

  • R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science, Cambridge University Press, 2018, DOI 10.1017/9781108231596, Appetizer (pp. 1–5).
  • G. Pisier, "Remarques sur un résultat non publié de B. Maurey," Séminaire d'Analyse Fonctionnelle (Maurey–Schwartz), 1980–1981, exposé no. 5. numdam.org/item/SAF_1980-1981____A5_0
  • B. Carl, "Inequalities of Bernstein-Jackson-type and the degree of compactness of operators in Banach spaces," Annales de l'Institut Fourier, 35(3), 1985, 79–118. numdam.org/item/AIF_1985__35_3_79_0
2 thms2 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Introduction to Stochastic Programming VI: Jensen and Edmundson-Madansky BoundsTextbook

Motivation

Two-stage stochastic programs with recourse require evaluating Q(x)=Eξ[Q(x,ξ)]Q(x) = \mathbb E_\xi[Q(x,\xi)]Q(x)=Eξ​[Q(x,ξ)], the expected value of a recourse function, at every candidate first-stage decision xxx. When ξ\xiξ is high-dimensional or continuously distributed, this expectation is a multivariate integral of a piecewise-linear, generally nondifferentiable integrand, and classical quadrature rules — built for smooth integrands in low dimension — do not apply (Birge & Louveaux, §8.1). What does apply is convexity: Q(x,⋅)Q(x,\cdot)Q(x,⋅) is convex whenever the recourse problem is a linear program in ξ\xiξ, and convexity alone is enough to sandwich Eξ[Q(x,ξ)]\mathbb E_\xi[Q(x,\xi)]Eξ​[Q(x,ξ)] between two computable discrete approximations. This chapter develops that sandwich, and it is the standard device used throughout the stochastic-programming literature to bound and iteratively refine the recourse function: the lower bound goes back to Jensen [1906]; the upper bound is due to Edmundson [1956] and Madansky [1959], with the mean-consistent LP refinement due to Madansky [1960] and Gassmann & Ziemba [1986]. Refinements of both bounds appear in Huang, Ziemba & Ben-Tal [1977], Kall & Stoyan [1982] and Frauendorfer [1988].

Setting

Fix a probability space (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P) and an integrand g:D×Ξ→Rg : D \times \Xi \to \mathbb Rg:D×Ξ→R, where Ξ⊆E\Xi \subseteq EΞ⊆E is the (convex, closed) support of a random vector ξ:Ω→Ξ\xi : \Omega \to \Xiξ:Ω→Ξ and EEE is a real vector space (in the recourse application, g(x,⋅)=Q(x,⋅)g(x,\cdot) = Q(x,\cdot)g(x,⋅)=Q(x,⋅) and DDD is the first-stage feasible region). Write E(g(x))=Eξ[g(x,ξ)]=∫Ξg(x,ξ) P(dξ)\mathbb E(g(x)) = \mathbb E_\xi[g(x,\xi)] = \int_\Xi g(x,\xi)\, P(d\xi)E(g(x))=Eξ​[g(x,ξ)]=∫Ξ​g(x,ξ)P(dξ).

A partition of Ξ\XiΞ into ν\nuν measurable blocks Sν={S1,…,Sν}S^\nu = \{S_1,\dots,S_\nu\}Sν={S1​,…,Sν​} determines, for each block, its probability pl=P[ξ∈Sl]p_l = P[\xi \in S_l]pl​=P[ξ∈Sl​] and its conditional mean ξl=E[ξ∣Sl]\xi^l = \mathbb E[\xi \mid S_l]ξl=E[ξ∣Sl​]. Equivalently — and this is the convention this mission's Lean development uses — the blocks may be taken directly on the sample space as the pulled-back sets Sl=ξ−1(regionl)⊆ΩS_l = \xi^{-1}(\text{region}_l) \subseteq \OmegaSl​=ξ−1(regionl​)⊆Ω, with pl=P(Sl)p_l = P(S_l)pl​=P(Sl​) and ξl=pl−1∫Slξ dP\xi^l = p_l^{-1}\int_{S_l}\xi\,dPξl=pl−1​∫Sl​​ξdP the Bochner integral average of ξ\xiξ over the block; the two descriptions coincide.

Formalization targets

Goal — Chapter 8, Theorem 1 (Jensen lower bound), p. 346

g(x,⋅) convex on Ξ ⟹ E(g(x)) ≥ ∑l=1νpl g(x,ξl).g(x,\cdot) \text{ convex on } \Xi \ \Longrightarrow\ \mathbb E(g(x)) \ \ge\ \sum_{l=1}^{\nu} p_l\, g(x,\xi^l).g(x,⋅) convex on Ξ ⟹ E(g(x)) ≥ l=1∑ν​pl​g(x,ξl).

This is the sharpest statement the chapter proves for the lower bound: it holds for every finite measurable partition, with no assumption beyond convexity of g(x,⋅)g(x,\cdot)g(x,⋅) and integrability.

Chapter 8, Theorem 2 (Edmundson-Madansky upper bound), pp. 347-348

For Ξ\XiΞ compact, let ext Ξ\mathrm{ext}\,\XiextΞ be the extreme points of co Ξ\mathrm{co}\,\XicoΞ, carrying the Borel field of all its subsets. If, for every ξ∈Ξ\xi \in \Xiξ∈Ξ, φ(ξ,⋅)\varphi(\xi,\cdot)φ(ξ,⋅) is a probability measure on ext Ξ\mathrm{ext}\,\XiextΞ with barycenter ξ\xiξ (i.e. ∫ext Ξe φ(ξ,de)=ξ\int_{\mathrm{ext}\,\Xi} e\,\varphi(\xi,de) = \xi∫extΞ​eφ(ξ,de)=ξ) and ω↦φ(ξ(ω),A)\omega \mapsto \varphi(\xi(\omega), A)ω↦φ(ξ(ω),A) is measurable for every AAA, then

E(g(x)) ≤ ∫ext Ξg(x,e) λ(de),λ(A)=∫Ωφ(ξ(ω),A) P(dω).\mathbb E(g(x)) \ \le\ \int_{\mathrm{ext}\,\Xi} g(x,e)\, \lambda(de), \qquad \lambda(A) = \int_\Omega \varphi(\xi(\omega), A)\, P(d\omega).E(g(x)) ≤ ∫extΞ​g(x,e)λ(de),λ(A)=∫Ω​φ(ξ(ω),A)P(dω).

Together the two targets give the chapter's headline sandwich: for convex g(x,⋅)g(x,\cdot)g(x,⋅), the finite-partition Jensen value and the Edmundson-Madansky value bracket the true expectation, and refining the partition (resp. the disintegration) tightens both sides toward it.

Significance

The Jensen bound is the workhorse of discrete-distribution approximation in stochastic programming: it is what makes Qν(x)=∑lplQ(x,ξl)Q^\nu(x) = \sum_l p_l Q(x,\xi^l)Qν(x)=∑l​pl​Q(x,ξl) a valid, refinable lower-approximation of the true recourse function, and it underlies the partition-refinement schemes (§8.2, following Birge & Wets [1986] and Frauendorfer & Kall [1988]) used inside the LLL-shaped method and separable-programming solvers described later in the chapter (§8.3). The Edmundson-Madansky bound is its indispensable upper counterpart: without it there is no certificate of how far a lower approximation can be from the truth, and the mean-consistent LP refinement (eq. 2.9, not part of this mission) reduces to a moment-problem computation over λ\lambdaλ. Both bounds are, to date, unformalized: the platform holds no theorem matching either a finite-partition conditional-Jensen inequality or an extreme-point disintegration bound (searched GET /theorems?q=... for "Jensen", "conditional expectation", "Edmundson Madansky", "partition convex" — no relevant hits), so this mission is a first formalization of both, not a reformulation of existing platform content. Mathlib supplies the raw convexity substrate this mission is built from — finite Jensen (Analysis/Convex/Jensen.lean) and, critically, the set-average integral Jensen inequality (ConvexOn.map_set_average_le in Analysis/Convex/Integral.lean), exactly the per-block step the book's proof of Theorem 1 performs — but no existing lemma assembles these into the partitioned, conditional-mean statement the book actually states.

Difficulty

The obvious shortcut is to prove "convex functions lie above their tangent line" and stop — this captures no partition structure at all and is not the theorem the book states (the theorem is about Σlplg(x,ξl)\Sigma_l p_l g(x,\xi^l)Σl​pl​g(x,ξl), a sum over blocks, not a single linearization). The real content is bookkeeping across the partition: writing E(g(x))\mathbb E(g(x))E(g(x)) as ∑lP(Sl) E[g(x,ξ)∣Sl]\sum_l P(S_l)\,\mathbb E[g(x,\xi)\mid S_l]∑l​P(Sl​)E[g(x,ξ)∣Sl​] (an exact identity, no convexity needed), then applying ordinary Jensen inside each block to replace E[g(x,ξ)∣Sl]\mathbb E[g(x,\xi)\mid S_l]E[g(x,ξ)∣Sl​] by g(x,ξl)g(x,\xi^l)g(x,ξl) from below — the inequality only enters at the second step, once per block. Proving this in Lean means correctly discharging, for every block, the side conditions Mathlib's integral-Jensen lemma needs (closedness of Ξ\XiΞ, continuity of g(x,⋅)g(x,\cdot)g(x,⋅) on Ξ\XiΞ, integrability on the block) and then summing the ν\nuν per-block inequalities against weights plp_lpl​ that themselves depend on the partition — an easy step to get wrong by, e.g., letting ξl\xi^lξl be an arbitrary point of SlS_lSl​ rather than exactly its conditional mean, which understates what Jensen actually forces. Theorem 2 additionally requires setting up the disintegration λ\lambdaλ correctly: λ\lambdaλ is a probability measure defined as an integral of the kernel-like family φ\varphiφ against P∘ξ−1P\circ\xi^{-1}P∘ξ−1, and both the barycenter condition on φ\varphiφ and the measurability of ω↦φ(ξ(ω),A)\omega \mapsto \varphi(\xi(\omega),A)ω↦φ(ξ(ω),A) are load-bearing — dropping either makes λ\lambdaλ ill-defined or the bound's proof inapplicable.

Formalization scope

Ξ⊆E\Xi \subseteq EΞ⊆E for EEE a complete real normed vector space (NormedAddCommGroup E, NormedSpace ℝ E, CompleteSpace E); no finite-dimensionality is assumed since neither theorem's proof needs it. The parameter xxx ranges over an arbitrary type α\alphaα with D⊆αD \subseteq \alphaD⊆α, and ggg is left as a bare function α → E → ℝ, matching the book's level of abstraction (the recourse LP's own data A,b,c,q,W,T,hA,b,c,q,W,T,hA,b,c,q,W,T,h is never used in either proof).

The partition is formalized directly on the sample space Ω\OmegaΩ (a Partition structure: pairwise-disjoint measurable blocks covering Ω\OmegaΩ, each of positive measure) rather than on Ξ\XiΞ, per the equivalence noted under Setting; ξl\xi^lξl is defined as the Bochner-integral average pl−1∫Slξ dPp_l^{-1}\int_{S_l}\xi\,dPpl−1​∫Sl​​ξdP, so it is forced to be the conditional mean and cannot be weakened to an arbitrary sample point of the block — the change the chunk brief flags as the main faithfulness trap for this chapter.

Two explicit hypotheses are added beyond the book's own statement of Theorem 1, both needed by Mathlib's integral-Jensen lemma rather than narrowings of the mathematical content: ContinuousOn (g x) Ξ (finite-dimensional convex functions are automatically continuous on the interior of their domain, which is what the book implicitly relies on; stated explicitly since EEE is not assumed finite-dimensional) and integrability of ξ\xiξ and of g(x,ξ(⋅))g(x,\xi(\cdot))g(x,ξ(⋅)) (needed for E(g(x))\mathbb E(g(x))E(g(x)) and each ξl\xi^lξl to be well-defined). For Theorem 2, the disintegrating family φ\varphiφ is E → Measure Ext for an abstract type Ext (standing for ext Ξ\mathrm{ext}\,\XiextΞ) with the discrete MeasurableSpace (every subset measurable, matching the book's "Borel field ... the collection of all subsets"), mapped into EEE by an embedding toE whose range is exactly (convexHull ℝ Ξ).extremePoints ℝ; the measure λ\lambdaλ (named μExt in the Lean code, since λ is a reserved keyword) is a hypothesis satisfying its defining equation (2.6) rather than constructed, since constructing a measure from a set function is a separate, book-external piece of measure theory the chapter's own proof does not perform either — it simply asserts λ\lambdaλ is the probability measure with that value on every set.

A trivializing formalization is ruled out explicitly: a version that lets ξl\xi^lξl range over an arbitrary point of SlS_lSl​, or that proves only the ordinary (unconditional) Jensen inequality without ever introducing the partition, states something strictly weaker than the book and is not what is formalized here.

Both draft theorems end in := by sorry; a full Lean proof of Theorem 1 combines Mathlib's ConvexOn.map_set_average_le applied per block with the exact decomposition of ∫Ω\int_\Omega∫Ω​ into ∑l∫Sl\sum_l \int_{S_l}∑l​∫Sl​​ over the partition's disjoint, covering blocks. Reusable beyond this mission: the Partition structure and its weight/condMean accessors generalize to any chapter needing a finite measurable partition with conditional means (this book's later approximation schemes, §8.2-8.5 and Chapter 10, all build on the same device). Contributions solving either theorem, or formalizing the partition-refinement monotonicity E(g(x))≥Eν+1(g(x))≥Eν(g(x))\mathbb E(g(x)) \ge \mathbb E^{\nu+1}(g(x)) \ge \mathbb E^\nu(g(x))E(g(x))≥Eν+1(g(x))≥Eν(g(x)) (eq. 2.3, not part of this mission's milestone list since it is not itself a numbered theorem) as a follow-up, are welcome.

Selected references

  • J.R. Birge, F. Louveaux, Introduction to Stochastic Programming, 2nd ed., Springer Series in Operations Research and Financial Engineering, Springer, 2011. https://doi.org/10.1007/978-1-4614-0237-4
  • J.L.W.V. Jensen, Sur les fonctions convexes et les inégalités entre les valeurs moyennes, Acta Mathematica 30 (1906), 175-193. https://doi.org/10.1007/BF02418571
  • H.P. Edmundson, Bounds on the expectation of a convex function of a random variable, The RAND Corporation, Paper 982, 1956.
  • A. Madansky, Bounds on the expectation of a convex function of a multivariate random variable, Annals of Mathematical Statistics 30 (1959), 743-746. https://doi.org/10.1214/aoms/1177706207
  • A. Madansky, Inequalities for stochastic linear programming problems, Management Science 6 (1960), 197-204. https://doi.org/10.1287/mnsc.6.2.197
  • H.I. Gassmann, W.T. Ziemba, A tight upper bound for the expectation of a convex function of a multivariate random variable, Mathematical Programming Study 27 (1986), 39-53. https://doi.org/10.1007/BFb0121114
  • J.R. Birge, R.J-B. Wets, Designing approximation schemes for stochastic optimization problems, in particular for stochastic programs with recourse, Mathematical Programming Study 27 (1986), 54-102. https://doi.org/10.1007/BFb0121122
3 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Introduction to Stochastic Programming II: The Value of Perfect Information and of the Stochastic SolutionTextbook

Motivation

Every stochastic program is, in practice, compared against a shortcut. A decision maker facing genuine uncertainty is tempted either to replace the random data by its mean and solve one deterministic problem, or to imagine that perfect information about the future were available and solve a separate deterministic problem per scenario. Both temptations have precise answers: the expected value of perfect information (EVPI) measures how much a decision maker should be willing to pay for a perfect forecast, and the value of the stochastic solution (VSS) measures the cost of ignoring uncertainty altogether by solving the mean-value problem. Both concepts originate in decision analysis — EVPI traces to Raiffa and Schlaifer (1961) — and were brought into stochastic programming by Madansky (1960), who proved the first chain of inequalities relating the wait-and-see value, the recourse value and the expected-value-solution's cost. Birge and Louveaux, Introduction to Stochastic Programming, 2nd ed. (Springer, 2011), Chapter 4, gives the standard modern treatment, including a refined family of bounds — built from pairs subproblems against a chosen reference scenario — that sharpen VSS beyond the original mean-scenario comparison. This mission formalizes that chapter's capstone: the five-quantity, four-inequality chain that pins VSS between two computable optimal values.

Setting

Fix a two-stage stochastic program with fixed recourse: a finite family of K scenarios ξ1,…,ξK\xi_1,\dots,\xi_Kξ1​,…,ξK​ in Rd\mathbb R^dRd, each occurring with probability pk≥0p_k \ge 0pk​≥0, ∑kpk=1\sum_k p_k = 1∑k​pk​=1; a first-stage feasible set K1⊆Rn1K_1 \subseteq \mathbb R^{n_1}K1​⊆Rn1​; and, for every first-stage decision x∈Rn1x \in \mathbb R^{n_1}x∈Rn1​ and every scenario ξ∈Rd\xi \in \mathbb R^dξ∈Rd, a scenario cost z(x,ξ)z(x,\xi)z(x,ξ) — the optimal value of cTx+min⁡{qTy∣Wy=h(ξ)−Tx, y≥0}c^Tx + \min\{q^Ty \mid Wy = h(\xi) - Tx,\ y \ge 0\}cTx+min{qTy∣Wy=h(ξ)−Tx, y≥0}. By convention z(x,ξ)=+∞z(x,\xi) = +\inftyz(x,ξ)=+∞ when xxx has no feasible second-stage recourse under ξ\xiξ, and z(x,ξ)=−∞z(x,\xi) = -\inftyz(x,ξ)=−∞ when the second-stage program is unbounded below.

From zzz, five basic quantities are defined (Birge & Louveaux §4.1–§4.2):

  • The recourse problem's value, RP=min⁡x∈K1Eξ z(x,ξ)RP = \min_{x \in K_1} \mathbb E_\xi\, z(x,\xi)RP=minx∈K1​​Eξ​z(x,ξ) — the best a decision maker can do without foreknowledge of ξ\xiξ (the "here-and-now" solution).
  • The wait-and-see value, WS=Eξ[min⁡x∈K1z(x,ξ)]WS = \mathbb E_\xi\big[\min_{x \in K_1} z(x,\xi)\big]WS=Eξ​[minx∈K1​​z(x,ξ)] — the average cost if ξ\xiξ were revealed before choosing xxx.
  • The expected value of perfect information, EVPI=RP−WSEVPI = RP - WSEVPI=RP−WS.
  • The expected value problem's solution xˉ(ξˉ)\bar x(\bar\xi)xˉ(ξˉ​), optimal for the deterministic problem at the mean scenario ξˉ=E(ξ)\bar\xi = \mathbb E(\xi)ξˉ​=E(ξ); its recourse cost, the expected result of using the EV solution, is EEV=Eξ z(xˉ(ξˉ),ξ)EEV = \mathbb E_\xi\, z(\bar x(\bar\xi), \xi)EEV=Eξ​z(xˉ(ξˉ​),ξ).
  • The value of the stochastic solution, VSS=EEV−RPVSS = EEV - RPVSS=EEV−RP — the extra cost of implementing the mean-scenario decision instead of solving the recourse problem.

Section 4.6 refines VSS by replacing the mean scenario with an arbitrary reference scenario ξr\xi^rξr (not necessarily one of the KKK possible scenarios, e.g. a worst case), with assumed probability pr=P(ξ=ξr)p_r = P(\xi=\xi^r)pr​=P(ξ=ξr):

  • xˉr\bar x^rxˉr, optimal for min⁡x∈K1z(x,ξr)\min_{x\in K_1} z(x,\xi^r)minx∈K1​​z(x,ξr), gives the expected value of the reference-scenario solution, EVRS=Eξ z(xˉr,ξ)EVRS = \mathbb E_\xi\, z(\bar x^r,\xi)EVRS=Eξ​z(xˉr,ξ), and the generalized VSS=EVRS−RPVSS = EVRS - RPVSS=EVRS−RP.
  • For each scenario ξk\xi^kξk, the pairs subproblem of ξr\xi^rξr and ξk\xi^kξk treats them as a two-point distribution with weights prp_rpr​ and 1−pr1-p_r1−pr​: its optimal value is min⁡x∈K1[pr z(x,ξr)+(1−pr) z(x,ξk)]\min_{x\in K_1}\big[p_r\,z(x,\xi^r) + (1-p_r)\,z(x,\xi^k)\big]minx∈K1​​[pr​z(x,ξr)+(1−pr​)z(x,ξk)], attained at some xˉk\bar x^kxˉk. Averaging these optimal values over kkk (rescaled by 1/(1−pr)1/(1-p_r)1/(1−pr​)) gives the sum of pairs expected values, SPEVSPEVSPEV. Taking, instead, the smallest full expected cost Eξ z(xˉk,ξ)\mathbb E_\xi\,z(\bar x^k,\xi)Eξ​z(xˉk,ξ) among the K+1K{+}1K+1 candidate solutions {xˉ1,…,xˉK,xˉr}\{\bar x^1,\dots,\bar x^K,\bar x^r\}{xˉ1,…,xˉK,xˉr} gives the expectation of pairs expected value, EPEVEPEVEPEV.

Formalization targets

Goal — Chapter 4, Theorem 9 (p. 174)

0  ≤  EVRS−EPEV  ≤  VSS  ≤  EVRS−SPEV  ≤  EVRS−WS.0 \;\le\; EVRS - EPEV \;\le\; VSS \;\le\; EVRS - SPEV \;\le\; EVRS - WS .0≤EVRS−EPEV≤VSS≤EVRS−SPEV≤EVRS−WS.

Four links, each with independent content: nonnegativity of the leftmost gap, then two genuine inequalities (from the pairs-subproblem comparisons of Propositions 7 and 8), then the identity VSS=EVRS−RPVSS = EVRS - RPVSS=EVRS−RP folded against RP≥WSRP \ge WSRP≥WS's reverse-direction cousin. This is the weakest statement that keeps all five quantities distinct — stating only the outer bound 0≤VSS≤EVRS−WS0 \le VSS \le EVRS-WS0≤VSS≤EVRS−WS would erase exactly the refinement (via pairs subproblems) that makes the chapter's method useful.

Supporting propositions (milestones, in attack order)

  • Proposition 1 (p. 166): WS≤RP≤EEVWS \le RP \le EEVWS≤RP≤EEV.
  • Proposition 5(a) (pp. 167–168): 0≤EVPI0 \le EVPI0≤EVPI and 0≤VSS0 \le VSS0≤VSS (mean-scenario form), for any stochastic program.
  • Proposition 7 (p. 173): WS≤SPEV≤RPWS \le SPEV \le RPWS≤SPEV≤RP.
  • Proposition 8 (p. 174): RP≤EPEV≤EVRSRP \le EPEV \le EVRSRP≤EPEV≤EVRS.

Significance

The chain gives a decision maker two computable, non-obvious bounds on VSS — a quantity that is otherwise expensive to pin down exactly, since RPRPRP itself already requires solving the full recourse problem. EVRS−EPEVEVRS - EPEVEVRS−EPEV and EVRS−SPEVEVRS - SPEVEVRS−SPEV are both computable from K+1K+1K+1 (or KKK) two-scenario LPs, far cheaper than the full KKK-scenario recourse problem, so Theorem 9 turns an expensive exact quantity into a pair of cheap certified bounds. Formalizing it fixes, once and for all, the exact hypotheses and quantifier structure of Madansky's original inequality (Proposition 1) together with the later pairs-subproblem refinement (Propositions 6–8, Birge 1982), often cited informally as "the VSS bounds" without distinguishing EEVEEVEEV, EVRSEVRSEVRS, EPEVEPEVEPEV and SPEVSPEVSPEV. No part of this chain is on Mathlib or Formalpedia today (checked by concept query, not title); this is a first, from-scratch treatment of two-stage recourse value-of-information theory as formal objects.

Difficulty

The obvious first idea — collapse RPRPRP, WSWSWS, EVEVEV, EEVEEVEEV, EVRSEVRSEVRS, EPEVEPEVEPEV, SPEVSPEVSPEV to one "the optimal value of the LP" and prove a single inequality — throws away the entire content of the chapter. Each quantity restricts the minimization to a different feasible object: RPRPRP minimizes jointly over xxx; WSWSWS swaps the order of min⁡\minmin and E\mathbb EE; EEVEEVEEV/EVRSEVRSEVRS evaluate one fixed xxx under every scenario; SPEVSPEVSPEV and EPEVEPEVEPEV each minimize over a family of pairs subproblems rather than the full KKK-scenario problem. The chain's proof (Propositions 7–8) depends on this precisely: Proposition 7's lower bound uses that each pairs-subproblem-optimal (xˉk,yˉk)(\bar x^k,\bar y^k)(xˉk,yˉ​k) is feasible (not necessarily optimal) for the single-scenario problem at ξr\xi^rξr, and its upper bound uses that the recourse-optimal (x∗,y∗(ξr),y∗(ξk))(x^*, y^*(\xi^r), y^*(\xi^k))(x∗,y∗(ξr),y∗(ξk)) is feasible (not necessarily optimal) for the pairs subproblem — a feasible-but-not-optimal argument in each direction, not a direct comparison of objective values. Losing track of which solution is fixed and which is optimized destroys the argument entirely.

Formalization scope

An Instance bundles the finite scenario set (Fin K, probabilities p : Fin K → ℝ with p ≥ 0, ∑ p = 1, scenarios xi : Fin K → (Fin d → ℝ)), the first-stage feasible set K1 : Set (Fin n1 → ℝ), and the scenario cost z : (Fin n1 → ℝ) → (Fin d → ℝ) → EReal, using the extended reals to carry the book's own +∞/−∞ conventions for infeasibility and unboundedness rather than silently restricting to a finite-valued special case (a genuine risk of trivialization here, since Example 2 of the chapter exhibits EEV=+∞EEV = +\inftyEEV=+∞). All optimal values (RP, WS, EV, EVPI, EEV, VSS, EVRS, generalized VSS, SPEV, EPEV) are defined directly from z, matching the book's own level of abstraction in this chapter (which never unfolds z into the underlying LP's A,b,c,q,W,T,hA,b,c,q,W,T,hA,b,c,q,W,T,h data — those appear only in Chapter 3). Because EEV, the mean-scenario VSS, EVRS, the generalized VSS, and EPEV are each defined relative to an optimal solution of some sub-problem — the book itself only ever says "let xˉ(ξˉ)\bar x(\bar\xi)xˉ(ξˉ​) denote some optimal solution" — every theorem using them states that solution and its optimality as explicit hypotheses (x ∈ K1 and z x … = ⨅ …), never baking it into a Classical.choiced value; this keeps the quantifier structure faithful to the book's own "let ... be an optimal solution" phrasing. Proposition 5's part (b) — the upper bound EVPI≤EEV−EVEVPI \le EEV-EVEVPI≤EEV−EV, VSS≤EEV−EVVSS \le EEV-EVVSS≤EEV−EV "for stochastic programs with fixed recourse matrix and fixed objective coefficients" — needs a different scope: that hypothesis is a structural property of the underlying LP data (WWW, ccc, qqq fixed across scenarios) invisible once zzz is abstracted away as above, and pinning it down would require modeling the LP's A,b,c,q,W,T,h(ξ)A,b,c,q,W,T,h(\xi)A,b,c,q,W,T,h(ξ) data explicitly (as Chapter 3's mission does for its convexity theorem). That part is out of scope here and is not needed for Theorem 9's own chain, which rests only on Proposition 5(a).

Collapsing any two of RPRPRP, WSWSWS, EVEVEV, EEVEEVEEV, EVRSEVRSEVRS, EPEVEPEVEPEV, SPEVSPEVSPEV to a single "value of the LP" — the trivialization this book-wide series flags for Chapter 4 — is ruled out by construction: each is its own definition over its own feasible object, and Theorem 9's statement names all five quantities in the chain rather than only its outer bound. The two occurrences of "VSS" in the chapter (the original mean-scenario EEV−RPEEV-RPEEV−RP of §4.2, and the reference-scenario EVRS−RPEVRS-RPEVRS−RP generalization of §4.6, used only in Theorem 9) are likewise kept as two distinct definitions rather than conflated under one name.

Every addition and subtraction between EReal values in this mission — inside expect, WS, EVPI, VSS, EVRS's appearance in VSSRef, the pair sum inside pairsValue, the sum inside SPEV, and all four differences in Theorem 9's own chain — uses three explicit operations, badd/bsub/bsum, that implement the book's own convention (p. 164) that +∞ (infeasibility) dominates, i.e. (+∞)+(−∞)=+∞, rather than Mathlib's native EReal addition, whose ⊤+⊥=⊥ would make VSS ≥ 0 (Proposition 5(a)) and the goal's own leftmost inequality false whenever a witness solution is infeasible in a positive-probability scenario — exactly the situation of the book's own Example 2 (pp. 174-175). The reference scenario's probability pr=Pr⁡(ξ=ξr)p_r=\Pr(\xi=\xi^r)pr​=Pr(ξ=ξr) (p. 172) is likewise not a free parameter but a definition, refProb, computed from the instance itself as ∑k: ξk=ξrpk\sum_{k:\,\xi^k=\xi^r}p_k∑k:ξk=ξr​pk​; SPEV's sum is correspondingly restricted to the scenarios other than the reference scenario (ξk≠ξr\xi^k\ne\xi^rξk=ξr), matching the book's own proof of Proposition 7, which uses ∑k≠rpk=1−pr\sum_{k\ne r}p_k=1-p_r∑k=r​pk​=1−pr​. The single hypothesis refProb I xir < 1 on Propositions 7, 8 and the goal says that some other scenario remains possible, which the book's own (1−pr)−1(1-p_r)^{-1}(1−pr​)−1 factor presupposes.

Reusable beyond this mission: the Instance definition and the RP/WS/EV quantities are the natural base for any later chapter of this series that needs the two-stage recourse value (e.g. Chapter 3's convexity mission, Chapter 5's L-shaped method); contributions extending this Instance to the full LP data of the underlying two-stage program, or adding Proposition 5(b) and Proposition 2's Jensen-inequality argument on top of it, are welcome.

Selected references

  • J.R. Birge and F. Louveaux, Introduction to Stochastic Programming, 2nd ed., Springer Series in Operations Research and Financial Engineering, 2011, Chapter 4. DOI: 10.1007/978-1-4614-0237-4
  • A. Madansky, "Inequalities for Stochastic Linear Programming Problems", Management Science 6(2), 1960, 197–204.
  • H. Raiffa and R. Schlaifer, Applied Statistical Decision Theory, Harvard Business School, 1961.
  • J.R. Birge, "The Value of the Stochastic Solution in Stochastic Linear Programs with Fixed Recourse", Mathematical Programming 24(1), 1982, 314–325.
7 thms2 active usersReviewed
🏆Completed
CombinatoricsGraph Theory·Captain: burkh4rt

The Bunkbed Conjecture is FalseResearch Paper

Motivation

Let G=(V,E)G=(V,E)G=(V,E) be a finite connected graph. In Bernoulli bond percolation each edge is independently retained with probability PPP and deleted otherwise, and one writes PP[u↔v]\mathbb{P}_P[u \leftrightarrow v]PP​[u↔v] for the probability that vertices uuu and vvv lie in the same component of the resulting random subgraph. Comparing such connection probabilities is a basic and genuinely hard problem: computing them exactly is #P\#\mathsf{P}#P-hard.

The bunkbed graph is built from two copies of GGG, joined by vertical edges called posts above a chosen set T⊆VT \subseteq VT⊆V of transversal vertices. Percolation is performed on the two copies while every post is retained. Writing vvv for a vertex in the lower copy and v′v'v′ for its counterpart upstairs, Kasteleyn conjectured in 1985 that being connected within a level is always at least as likely as crossing between levels.

The conjecture is intuitively compelling — crossing levels appears to require "using up" a post — and it resisted proof for forty years. A short timeline:

  • 1985 — Kasteleyn formulates the conjecture; it is recorded as Remark 5 of van den Berg–Kahn (2001), which is how the source cites it.
  • Positive results accumulate for special cases: wheels, complete graphs, complete bipartite graphs, graphs symmetric with respect to an automorphism exchanging uuu and vvv, one or two transversal vertices, and in the P↑1P \uparrow 1P↑1 limit.
  • 2024 — Hollom refutes the 333-uniform hypergraph analogue. This alone does not settle the graph case: it is impossible to simulate a single 333-hyperedge by bond percolation on a gadget graph.
  • 2025 — Gladkov, Pak and Zimin disprove the conjecture outright, with an explicit counterexample and without computer assistance.

Section 7 of the source is a candid account of a large-scale machine-learning-guided search that failed to find a counterexample, and of why the problem is unusually ill-suited to experimental testing.

Setting

Fix a finite graph with vertex set VVV and edge set EEE, and a retention function w:E→[0,1]w : E \to [0,1]w:E→[0,1] (the uniform case is w≡Pw \equiv Pw≡P). A configuration is a subset S⊆ES \subseteq ES⊆E of open edges, occurring with probability

P(S)  =  ∏e∈Sw(e)∏e∈E∖S(1−w(e)),\mathbb{P}(S) \;=\; \prod_{e \in S} w(e) \prod_{e \in E \setminus S} \bigl(1 - w(e)\bigr),P(S)=e∈S∏​w(e)e∈E∖S∏​(1−w(e)),

and P[u↔v]\mathbb{P}[u \leftrightarrow v]P[u↔v] is the total probability of those SSS for which uuu and vvv are connected in (V,S)(V, S)(V,S).

Given T⊆VT \subseteq VT⊆V, the bunkbed graph has vertex set V×{0,1}V \times \{0,1\}V×{0,1}. Its edges are a copy of EEE in each level together with a post {(t,0),(t,1)}\{(t,0),(t,1)\}{(t,0),(t,1)} for every t∈Tt \in Tt∈T. In bunkbed percolation the two level-copies are percolated independently while all posts are retained; Pbb\mathbb{P}^{\mathrm{bb}}Pbb denotes the resulting connection probabilities.

Formalization targets

Goal — the bunkbed conjecture is false

¬  (∀ G connected, ∀ T⊆V, ∀ 0<P<1, ∀ u,v∈V:PPbb[u↔v]  ≥  PPbb[u↔v′])\neg\;\Bigl(\forall\,G \text{ connected},\ \forall\,T \subseteq V,\ \forall\,0<P<1,\ \forall\,u,v \in V:\quad \mathbb{P}^{\mathrm{bb}}_P[u \leftrightarrow v] \;\ge\; \mathbb{P}^{\mathrm{bb}}_P[u \leftrightarrow v'] \Bigr)¬(∀G connected, ∀T⊆V, ∀0<P<1, ∀u,v∈V:PPbb​[u↔v]≥PPbb​[u↔v′])

Supporting target — the explicit counterexample (Theorem 1.2)

∃ G, ∣V∣=7,222, ∣E∣=14,442, ∣T∣=3, ∃ u,v:P1/2bb[u↔v]  <  P1/2bb[u↔v′]\exists\, G,\ |V| = 7{,}222,\ |E| = 14{,}442,\ |T| = 3,\ \exists\, u,v:\qquad \mathbb{P}^{\mathrm{bb}}_{1/2}[u \leftrightarrow v] \;<\; \mathbb{P}^{\mathrm{bb}}_{1/2}[u \leftrightarrow v']∃G, ∣V∣=7,222, ∣E∣=14,442, ∣T∣=3, ∃u,v:P1/2bb​[u↔v]<P1/2bb​[u↔v′]

Supporting target — hyperedge simulation (Lemma 4.1)

For the gadget GnG_nGn​ on n+1n+1n+1 vertices,

Pabc Pa∣b∣c  −  Pab∣c Pac∣b  >  (n1−P1+P−1)Pa∣bc.P_{abc}\,P_{a|b|c} \;-\; P_{ab|c}\,P_{ac|b} \;>\; \Bigl(n\tfrac{1-P}{1+P} - 1\Bigr) P_{a|bc}.Pabc​Pa∣b∣c​−Pab∣c​Pac∣b​>(n1+P1−P​−1)Pa∣bc​.

Significance

The result itself. A forty-year-old conjecture in percolation theory is false, and prior positive results are thereby sharpened rather than superseded: it becomes interesting to delimit exactly which families of graphs do satisfy the inequality. The refutation also settles the Counting, Weighted, Alternative and Computational variants listed in §8.1, and shows the random-cluster analogue cannot be pushed from q=2q=2q=2 down to q=1q=1q=1.

Formalizing it. Nothing here is open; the mission produces machine-checked versions of published results, and as a by-product the first percolation theory in Lean. Mathlib currently contains no percolation of any kind — no connection probabilities, no bunkbed graph, no hypergraph percolation. That infrastructure is reusable far beyond this mission. The source itself notes (§8.2) that its central combinatorial lemma was independently verified by computer; a formal proof would replace that check with a certificate.

Difficulty

The obvious approach — exhibit a small graph and compute both probabilities — is hopeless, and the source explains why at length. A graph with mmm edges has 2m2^m2m configurations; for the counterexample here the probability gap is on the order of 10−433110^{-4331}10−4331, so no sampling argument can detect it, and exact enumeration is out of reach. Section 7 records a substantial computational search that found nothing and, in hindsight, could not have.

The proof is instead structural, and its difficulty is concentrated in one place. Hollom's refutation of the hypergraph version cannot be transferred directly, because a single 333-hyperedge cannot be simulated by bond percolation on any gadget graph. The source's answer is to prove a robust version of Hollom's lemma (Lemma 3.3) which survives the inexact simulation that gadget graphs do provide, and this robustness is what Lemma 4.1's inequality quantifies. Lemma 3.3 is proved by constructing a weight-preserving involution on a refined configuration space — the technical heart, and the milestone a solver should expect to spend the most effort on.

Formalization scope

The development commits to the following conventions.

  • Everything is finite and rational-valued, hence computable: connection probabilities are ℚ and evaluate by #eval, and small instances close by decide.
  • A graph is given by an explicit edge Finset and realised through SimpleGraph.fromEdgeSet; connectivity is Mathlib's SimpleGraph.Reachable.
  • Percolation is a sum over the powerset of the edge set, weighted as displayed above, of a reachability indicator. Edge weights are per-edge (Sym2 V → ℚ), since the gadget GnG_nGn​ genuinely needs two different weights: its spokes are retained with probability 1−P1-P1−P and its path edges with probability PPP.
  • In the bunkbed, level 0 is the lower copy; posts over T are unconditionally present and are not percolated. The two levels are percolated independently.
  • ⚠️ Planarity is omitted from the goal. Theorem 1.2 asserts the counterexample is planar, and Mathlib has no notion of a planar graph — no IsPlanar, no Euler formula, no Kuratowski. Building one is a larger project than this mission. The formalized statement of Theorem 1.2 is therefore strictly weaker than the published one, and the goal is instead the negation of the conjecture, which is exactly the source's own "In particular, the BBC is false." Contributions adding planarity are welcome and would strengthen the milestone.
  • Ruling out a trivializing reading: the conjecture must be negated as stated, over all connected graphs, transversal sets and 0<P<10<P<10<P<1. Weakening it to a fixed graph, or to P∈{0,1}P \in \{0,1\}P∈{0,1}, or dropping connectivity, would make the refutation vacuous.

Infrastructure. Mathlib supplies SimpleGraph, boxProd, Reachable with a DecidableRel instance, fromEdgeSet, edgeFinset and Finset.powerset. It supplies no percolation, so this mission ships two definition files: Bernoulli bond percolation with the bunkbed construction and the five triple-partition probabilities, and hypergraph percolation with Hollom's hypergraph and the Wierman–Ziff five-state model. One known gap: Mathlib's Reachable decision procedure enumerates walks and is far too slow to evaluate the 646464-configuration check of Lemma 3.1 by decide. A solver will want a linear-time reachability procedure together with a proof that it agrees with Reachable; that is itself a worthwhile reusable contribution.

Selected references

  • J. van den Berg and J. Kahn, A correlation inequality for connection events in percolation, Ann. Probab. 29 (2001), 123–126 — Kasteleyn's conjecture appears as Remark 5.
  • T. Hollom, A new proof of the bunkbed conjecture in the p↑1p \uparrow 1p↑1 limit, Discrete Math. 347 (2024), 113711.
  • T. Hollom, The bunkbed conjecture is not robust to generalisation, arXiv:2406.01790 (2024).
  • T. Hutchcroft, P. Nizić-Nikolac, A. Kent, The bunkbed conjecture holds in the p↑1p \uparrow 1p↑1 limit, Comb. Probab. Comput. 32 (2023), 363–369.
  • N. Gladkov, I. Pak, A. Zimin, The bunkbed conjecture is false, Proc. Natl. Acad. Sci. USA 122 (2025), no. 24, e2420725122. doi:10.1073/pnas.2420725122; preprint arXiv:2410.02545.
  • J. C. Wierman and R. M. Ziff, Self-dual planar hypergraphs and exact bond percolation thresholds, Electron. J. Combin. 18 (2011).
  • G. R. Grimmett, Percolation, 2nd ed., Springer, 1999.
38 thms2 active usersReviewed
🏆Completed
Machine Learning·Captain: naimengye

Speculative Actions: Cost-Latency Analysis for Agentic SpeculationResearch Paper

Motivation

An LLM agent acting in an environment spends most of its wall-clock time waiting. Each step — a model call, a tool or MCP request, a browser action, sometimes a human reply — must complete before the next can be issued, and the round trips dominate end-to-end latency: a chess game between two reasoning agents runs for hours, and an operating-system tuning task for tens of minutes. When a training or prompt-optimization loop repeats such a run thousands of times, the waiting is the cost.

Speculative actions (Ye, Ahuja, Liargkovas, Lu, Kaffes, Peng, ICLR 2026) transplants a classical systems idea — speculative execution in microprocessors, and speculative decoding for LLM inference — to the agent's environment loop. A cheap, fast speculator guesses the action a slow, authoritative actor is about to produce, the guess is used to launch the next environment call early, and the work is committed only when the actor's real action confirms the guess. The interface stays sequential and lossless; the internals run in parallel.

What makes this a formalization target rather than an engineering report is the paper's §5 cost–latency analysis. Speculating more branches buys hit probability but costs tokens, and the paper derives closed-form expressions for both sides of that trade — a self-contained piece of applied probability sitting underneath a systems paper. This mission asks for those expressions, machine-checked.

Setting

Fix a horizon TTT and index steps t=0,1,…,T−1t = 0, 1, \dots, T-1t=0,1,…,T−1. At each step a policy maps the state to an API call; the actor executes it with latency Exp(β)\mathrm{Exp}(\beta)Exp(β), while the speculator proposes candidate actions with latency Exp(α)\mathrm{Exp}(\alpha)Exp(α), where β<α\beta < \alphaβ<α (the speculator is faster in expectation). A speculative branch hits when the action it guesses implies the same next call the actor's true action would have implied; branches hit independently across steps with probability ppp.

Two knobs define the two regimes analyzed. Breadth kkk: at each step, launch kkk independent one-step speculations in parallel, each immediately followed by a real call. At least one of the kkk succeeds with probability

p(k)  =  1−(1−p)k.p(k) \;=\; 1 - (1-p)^k .p(k)=1−(1−p)k.

Depth: follow a single branch, extending it whenever a speculative or real call returns and pruning subtrees the actor contradicts.

The quantity driving both results is SnS_nSn​, the expected number of hits by round nnn. A hit consumes the following step's speculation window — after a correct guess the next call is already cached, so no new speculation is launched there — which yields the two-term recursion

S0=0,S1=p,Sn=p (1+Sn−2)+(1−p) Sn−1.S_0 = 0, \qquad S_1 = p, \qquad S_n = p\,(1 + S_{n-2}) + (1-p)\,S_{n-1}.S0​=0,S1​=p,Sn​=p(1+Sn−2​)+(1−p)Sn−1​.

Write Tseq,MseqT_{\mathrm{seq}}, M_{\mathrm{seq}}Tseq​,Mseq​ for the latency and token cost of strictly sequential execution, and Tspec,MspecT_{\mathrm{spec}}, M_{\mathrm{spec}}Tspec​,Mspec​ for their speculative counterparts. In the depth regime latencies are taken deterministic: aaa for a real call, b<ab < ab<a for a speculative one.

Target

The goal theorem is the finite-horizon latency ratio for breadth-focused speculation (Proposition 1), with p(k)p(k)p(k) abbreviated pkp_kpk​:

E[Tspec]E[Tseq]=1−1T αα+β[(T−1)pk1+pk+pk2(1+pk)2−pk2(1+pk)2(−pk)T−1].\frac{\mathbb{E}[T_{\mathrm{spec}}]}{\mathbb{E}[T_{\mathrm{seq}}]} = 1 - \frac{1}{T}\,\frac{\alpha}{\alpha+\beta} \left[\frac{(T-1)p_k}{1+p_k} + \frac{p_k^2}{(1+p_k)^2} - \frac{p_k^2}{(1+p_k)^2}(-p_k)^{T-1}\right].E[Tseq​]E[Tspec​]​=1−T1​α+βα​[1+pk​(T−1)pk​​+(1+pk​)2pk2​​−(1+pk​)2pk2​​(−pk​)T−1].

The supporting targets, ordered as the analysis builds them:

  1. the closed form Sn=p1+pn+p2(1+p)2(1−(−p)n)S_n = \frac{p}{1+p}n + \frac{p^2}{(1+p)^2}\bigl(1 - (-p)^n\bigr)Sn​=1+pp​n+(1+p)2p2​(1−(−p)n) solving the recursion;
  2. the per-hit saving E[(B−A)+]=αβ(α+β)\mathbb{E}[(B-A)^+] = \frac{\alpha}{\beta(\alpha+\beta)}E[(B−A)+]=β(α+β)α​ for independent A∼Exp(α)A \sim \mathrm{Exp}(\alpha)A∼Exp(α), B∼Exp(β)B \sim \mathrm{Exp}(\beta)B∼Exp(β);
  3. the T→∞T \to \inftyT→∞ limit 1−pk1+pk⋅αα+β1 - \frac{p_k}{1+p_k}\cdot\frac{\alpha}{\alpha+\beta}1−1+pk​pk​​⋅α+βα​, and the resulting 50% ceiling: the latency reduction is strictly below 12\tfrac1221​ for every pk≤1p_k \le 1pk​≤1;
  4. the cost counterpart (Theorem 4), finite-horizon and in the limit, with k~\tilde kk~ the number of distinct actions across the kkk branches;
  5. the depth-focused time and cost identities (Theorem 6), whose latency coefficient is ppp rather than p1+p\frac{p}{1+p}1+pp​ — raising the speedup ceiling from 12\tfrac1221​ to 111;
  6. the structure of confidence-aware selective speculation (Theorem 3 and Corollary 5): with sorted per-branch confidences, the marginal hit-probability gain is non-increasing, so the optimal breadth is the greedy threshold rule "add a branch while Δ⋆δq(m)≥c\Delta^\star \delta q(m) \ge cΔ⋆δq(m)≥c".

Significance

The analysis is what turns speculation from a trick into a tunable system. Proposition 1 and Theorem 4 are governed by the same quantity pkp_kpk​, so a practitioner who can estimate hit probability can choose kkk offline against a latency/cost budget rather than by trial. The 50% ceiling is a genuine negative result — it says breadth alone cannot do better, and motivates the depth regime, where the ceiling becomes 1. Theorem 3 explains why confidence-based branch selection is cheap in practice: the whole dynamic program collapses to one scalar continuation value, so a runtime system sorts confidences and adds branches greedily in O(k)O(k)O(k) per step.

The paper's proofs are pen-and-paper and, as far as we are aware, none of these results has a machine-checked proof. Three parts reward formalization specifically. The recursion's closed form is derived by a characteristic-equation argument with a particular solution that collides with the homogeneous part — routine but error-prone. The per-hit saving is an honest two-dimensional integral over independent exponentials. And Theorem 6's cost expression is stated in the paper with a floor function and then immediately replaced by an approximation, so formalizing it forces a decision about which claim is actually being asserted (see Formalization scope).

Difficulty

The obvious first move on the recursion — guess a constant particular solution — fails, because r=1r = 1r=1 is a root of the characteristic polynomial r2−(1−p)r−pr^2 - (1-p)r - pr2−(1−p)r−p and a constant trial collides with the homogeneous family; the particular solution is linear in nnn, and the p2(1+p)2\frac{p^2}{(1+p)^2}(1+p)2p2​ coefficient comes out of matching both initial conditions, not one.

The interesting hypothesis is the one the recursion's shape encodes and the prose states only in passing: a hit at round ttt removes the speculation window at round t+1t+1t+1. Drop it and the recursion becomes one-term and the answer changes.

For the per-hit saving, the difficulty is analytic rather than algebraic: the inner antiderivative of (b−a)αe−αa(b-a)\alpha e^{-\alpha a}(b−a)αe−αa must be handled, and the outer integral runs over an unbounded interval, so integrability has to be established rather than assumed.

The asymptotic statements need the oscillating term (−pk)T−1(-p_k)^{T-1}(−pk​)T−1 controlled uniformly — it is bounded, not vanishing termwise in an obvious way — before the 1T\tfrac1TT1​ prefactor can be taken to zero.

Formalization scope

Everything is over R\mathbb{R}R. The model lives in one definition bundle, Def_SpecActions_model, in namespace SpecActions; the mission's Lean names match the prose symbols (SnS_nSn​ is hits, p(k)p(k)p(k) is phit, k~\tilde kk~ is kt).

The model is formalized at the level the paper's own proofs use: E[T]\mathbb{E}[T]E[T] and E[M]\mathbb{E}[M]E[M] are defined by the expressions Appendix A derives for them (specTime, specCost, and their depth analogues), and the theorems assert the algebraic and asymptotic identities relating those quantities. Deriving those expressions from a measure-theoretic model of the execution trace is deliberately not in scope — with one exception: milestone 2 states the per-hit saving as a genuine iterated integral against the exponential densities, so the one probabilistic step the paper actually computes is formalized as an integral rather than assumed.

Conventions a solver should know before starting:

  • Statements are quantified over α,β>0\alpha, \beta > 0α,β>0 and 0≤pk≤10 \le p_k \le 10≤pk​≤1; the standing assumption β<α\beta < \alphaβ<α is not imposed, since none of the identities need it.
  • Finite-horizon statements carry 1≤T1 \le T1≤T, and T−1T-1T−1 is natural-number subtraction — the T=0T = 0T=0 case is excluded rather than silently truncated.
  • hits takes pkp_kpk​ (the per-step hit probability p(k)p(k)p(k)), not the per-branch ppp; phit relates the two, and Thm_SpecActions_phit_bounds supplies the 0≤p(k)≤10 \le p(k) \le 10≤p(k)≤1 range facts the other statements assume.
  • Theorem 6's cost is stated as the exact identity, not the paper's approximation. The paper gives an exact expression involving ⌊a/b⌋\lfloor a/b \rfloor⌊a/b⌋ and then an ≈\approx≈ form with a2b−12\frac{a}{2b} - \frac122ba​−21​; these coincide only when a/ba/ba/b is an integer. The milestone asserts the exact floor version, which is what the proof establishes.
  • The 50% ceiling is stated as the strict bound pk1+pk⋅αα+β<12\frac{p_k}{1+p_k}\cdot\frac{\alpha}{\alpha+\beta} < \frac121+pk​pk​​⋅α+βα​<21​, which holds for all admissible parameters; the paper's "upper bound of 50%, occurring when p=1p=1p=1 and α=∞\alpha = \inftyα=∞" describes an unattained supremum.
  • Theorem 3's dynamic program is formalized as the two facts that carry its content — diminishing marginal returns, and optimality of the greedy threshold breadth — rather than as a Bellman recursion over a mode process, which would require a full MDP development.

Reusable beyond this mission: the two-term linear recursion solved in milestone 1, and the E[(B−A)+]\mathbb{E}[(B-A)^+]E[(B−A)+] computation for independent exponentials, which is a standard fact absent from Mathlib. Contributions extending the model toward an actual measure on execution traces — deriving specTime rather than defining it — are welcome as follow-on work.

Selected references

  • Naimeng Ye, Arnav Ahuja, Georgios Liargkovas, Yunan Lu, Kostis Kaffes, Tianyi Peng. Speculative Actions: A Lossless Framework for Faster Agentic Systems. ICLR 2026. arXiv:2510.04371 — Proposition 1 (p. 4), Appendix A (pp. 13–14), Theorem 3 (p. 10), Theorem 4 (p. 19), Corollary 5 (p. 22), Theorem 6 (p. 23).
  • Yaniv Leviathan, Matan Kalman, Yossi Matias. Fast Inference from Transformers via Speculative Decoding. ICML 2023. arXiv:2211.17192 — the speculate-verify pattern at token level.
  • Wenyue Hua, Mengting Wan, Shashank Vadrevu, Ryan Nadel, Yongfeng Zhang, Chi Wang. Interactive Speculative Planning. 2024. arXiv:2410.00079 — depth-oriented speculation on a single planning branch.
  • Yilin Guan et al. Dynamic Speculative Agent Planning. 2025. arXiv:2509.01920 — online RL for choosing speculation depth under a cost-latency trade-off.
  • Robert M. Tomasulo. An Efficient Algorithm for Exploiting Multiple Arithmetic Units. IBM Journal of Research and Development, 1967. DOI:10.1147/rd.111.0025 — speculative execution in hardware.
13 thms2 active usersReviewed
🏆Completed
Optimization·Captain: viratkota

Kelly's Criterion: the optimal fraction for an even-money betResearch Paper

Motivation

In 1956 Kelly answered a question that looks like gambling and is really about information: if a channel gives you a noisy advance signal about a sequence of bets, how much is that signal worth? His answer was that the maximum exponential rate of growth of a gambler's capital equals the rate of transmission over the channel -- so information rate and capital growth rate are the same quantity in different units. The betting fraction that achieves it is now called the Kelly criterion, and it is the basis of a large practical literature on position sizing.

The result is short, entirely explicit, and has no analytic subtleties -- which makes it a good formalization target and a surprising gap: the platform currently has fifteen missions on bandit algorithms and none on optimal growth.

Setting

This mission formalizes the simplest case of Kelly's Section 4: an even-money bet with no track take, won independently with probability p and lost with probability q = 1 - p. A gambler stakes a fixed fraction l of current wealth on each bet, so wealth is multiplied by 1 + l on a win and 1 - l on a loss. The exponential rate of growth is

G(l)=plog⁡(1+l)+qlog⁡(1−l).G(l) = p \log(1+l) + q \log(1-l).G(l)=plog(1+l)+qlog(1−l).

Kelly shows this is maximised at l = p - q, with maximum value 1 + p log p + q log q in bits. We state G in nats (natural logarithm), so the maximum carries an additive log 2; dividing by log 2 recovers Kelly's bit-valued form, which is exactly 1 - H(p) for the binary entropy H. The maximiser is unaffected by the choice of base.

What is being asked

The goal theorem is that l = 2p - 1 maximises G over the admissible range (-1, 1) when the bet is favourable (p > 1/2). Milestones supply the maximum value (Kelly's information-rate identity), the admissibility of the maximiser, and the concavity that makes the first-order condition sufficient.

Source

J. L. Kelly Jr., A New Interpretation of Information Rate, Bell System Technical Journal 35 (1956) 917-926, Section 4 ("the simplest case"). The growth-rate expression and the maximiser l = p - q are stated there; the maximum value in bits is Kelly's eq. for G_max.

The identity and maximiser were checked numerically before drafting: for p = 0.55, 0.6, 0.7, 0.9 the claimed maximum matches log 2 + p log p + q log q to six decimals, and a grid search over (-1, 1) at 1e-5 resolution returns 2p - 1 in every case.

4 thms2 active usersReviewed
🏆Completed
Functional AnalysisHarmonic Analysis·Captain: Elsie66

Bochner's Theorem: Positive-Definite FunctionsTextbook

Motivation

Positive-definite functions sit at a crossroads of harmonic analysis, probability, and machine learning. A function f:R→Cf:\mathbb R\to\mathbb Cf:R→C is positive-definite if, for every finite family of points x1,…,xnx_1,\dots,x_nx1​,…,xn​ and complex coefficients c1,…,cnc_1,\dots,c_nc1​,…,cn​, the Hermitian quadratic form ∑i,jci‾cjf(xi−xj)\sum_{i,j}\overline{c_i}c_j f(x_i-x_j)∑i,j​ci​​cj​f(xi​−xj​) is real and nonnegative. This single algebraic condition is exactly what makes fff realizable as: the covariance kernel of a stationary stochastic process; the characteristic function of a random variable (up to normalization); a valid Mercer/RBF kernel in machine learning; or a valid random-features/spectral density in random-feature kernel approximation methods.

Bochner's theorem (1932) is the structural reason all of these examples work: it says positive-definiteness is not merely a necessary condition for such a representation, but exactly characterizes it. A continuous, normalized (f(0)=1f(0)=1f(0)=1) function is positive-definite if and only if it is the Fourier–Stieltjes transform of some probability measure ν\nuν on R\mathbb RR — i.e. fff is the characteristic function of a random variable. This mission asks for a machine-checked proof of that theorem, together with its most useful corollary: the case where fff is additionally Lebesgue-integrable, so that ν\nuν has an explicit continuous density given directly by the ordinary Fourier transform of fff.

Setting

Fix IsPositiveDefinite f as above, for f:R→Cf:\mathbb R\to\mathbb Cf:R→C (not restricted to real-valued kernels — the standard, fully general statement). A positive-definite function is automatically Hermitian-symmetric, f(−x)=f(x)‾f(-x)=\overline{f(x)}f(−x)=f(x)​ (IsPositiveDefinite.conj_neg), which is exactly what makes a representation by a genuine (positive) probability measure possible, rather than a signed or complex one. The theorem works with f continuous and normalized. No further hypothesis (in particular, no integrability of f) is assumed for the general representation theorem: the representing measure ν\nuν need not be absolutely continuous (e.g. for a periodic fff, ν\nuν is a discrete measure supported on the harmonics of the period — this is Herglotz's 1911 theorem, the periodic special case). Under the extra hypothesis that f is Lebesgue-integrable, the representing measure becomes absolutely continuous with a continuous density: this density is fourierTransform f, the (real part of the) Fourier transform of f — automatically real-valued, again by Hermitian symmetry — and Fourier inversion recovers f from it.

Formalization targets

Goal — Bochner's theorem, general case

f continuous, positive-definite, f(0)=1  ⟹  ∃ ν a probability measure on R,  ∀x,  f(x)=∫Rei2πξx dν(ξ).f \text{ continuous, positive-definite, } f(0)=1 \;\Longrightarrow\; \exists\, \nu \text{ a probability measure on } \mathbb R,\; \forall x,\; f(x) = \int_{\mathbb R} e^{i2\pi\xi x}\,d\nu(\xi).f continuous, positive-definite, f(0)=1⟹∃ν a probability measure on R,∀x,f(x)=∫R​ei2πξxdν(ξ).

The central representation theorem: no integrability hypothesis on fff, so ν\nuν may be any probability measure, not necessarily a density.

Milestone — Bochner's theorem, L¹ (density) case

f continuous, integrable, positive-definite, f(0)=1  ⟹  τ:=fourierTransform f is continuous,  τ≥0,  ∫τ=1, and f(x)=∫ei2πξxτ(ξ) dξ.f \text{ continuous, integrable, positive-definite, } f(0)=1 \;\Longrightarrow\; \tau:=\text{fourierTransform } f \text{ is continuous}, \;\tau \ge 0,\; \int \tau = 1, \text{ and } f(x) = \int e^{i2\pi\xi x}\tau(\xi)\,d\xi.f continuous, integrable, positive-definite, f(0)=1⟹τ:=fourierTransform f is continuous,τ≥0,∫τ=1, and f(x)=∫ei2πξxτ(ξ)dξ.

The special case where the representing measure of the goal theorem is absolutely continuous with an explicit density — the form most directly usable in applications. Provable independently of the general goal theorem via classical Fourier-inversion machinery, so it is a natural, self-contained first target.

Significance

Bochner's theorem is one of the load-bearing structural results of 20th-century harmonic analysis: it underlies Bochner–Minlos-type theorems for random fields, the entire theory of stationary Gaussian processes, kernel methods in statistics and machine learning, and (via its periodic specialization, Herglotz's theorem) the spectral theory of stationary time series. Formalizing it gives the platform a reusable, general-purpose characterization of positive-definite functions that any future mission on kernel methods, random features, or characteristic functions can build on directly.

Difficulty

The general representation theorem is the harder target: the standard proof (see the Wikipedia article linked below) constructs, from f, a strongly continuous unitary representation of R\mathbb RR on a Hilbert space via a GNS-type construction, then invokes Stone's theorem and the spectral theorem to extract the representing measure — a substantial functional-analytic argument, since f need not be integrable and ν\nuν need not have a density. The L¹ milestone is comparatively more tractable: it can be attacked directly via Mathlib's existing Fourier-transform and Fourier-inversion machinery for integrable functions, plus the elementary fact (already available for reuse: IsPositiveDefinite.conj_neg) that a positive-definite function is Hermitian-symmetric.

Formalization scope

IsPositiveDefinite is formalized exactly as the finite Hermitian-form condition above, over Fin n → ℝ point families and Fin n → ℂ coefficients, matching the standard convention in the literature, with f : ℝ → ℂ — the fully general, complex-valued statement, not restricted to real-valued kernels. fourierTransform f ξ is defined as the real part of ∫ Complex.exp(-i2πξ x) * f(x) dx; this is provably the exact (not merely real-part-of) Fourier transform once f is positive-definite, since Hermitian symmetry forces the integral to be real already.

Selected references

  • Bochner's theorem, Wikipedia — states the general locally-compact-abelian-group form and sketches the unitary-representation proof; a good map of the territory before diving into either target.
  • Salomon Bochner, Vorlesungen über Fouriersche Integrale, Akademische Verlagsgesellschaft, 1932.
  • Gustav Herglotz, Über Potenzreihen mit positivem, reellem Teil im Einheitskreis, Berichte über die Verhandlungen der Königlich Sächsischen Gesellschaft der Wissenschaften zu Leipzig, 1911.
  • Walter Rudin, Fourier Analysis on Groups, Interscience, 1962, Chapter 1.
8 thms2 active usersReviewed
🏆Completed
CombinatoricsTheoretical Computer Science·Captain: sr

Erdős (1947): The Probabilistic Ramsey Lower BoundResearch Paper

Motivation

Ramsey theory asks for the smallest number R(k)R(k)R(k) such that every graph on R(k)R(k)R(k) vertices contains either a clique of size kkk or an independent set of size kkk. Beyond being one of the oldest problems in extremal combinatorics, Ramsey numbers sit at the junction of combinatorics, probability, and computer science: the two-coloring of edges they quantify is exactly the distinction between a graph and its complement, and their growth controls constructions used in derandomization and in the theory of Boolean functions.

This mission formalizes the paper that started the probabilistic method as a systematic tool: Erdős's 1947 proof that R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2. It is also the natural companion to the platform's Sipser–Gács–Lautemann mission: the union-bound argument formalized here is the same counting technique that drives the Lautemann lemma used to place BPP\mathsf{BPP}BPP in Σ2p\Sigma_2^pΣ2p​.

Timeline. Ramsey proved in 1928 that R(k)R(k)R(k) is finite; Erdős and Szekeres gave the first upper bounds in 1935; Erdős's 1947 paper supplied the exponential lower bound R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2 by a one-page counting argument, introducing the probabilistic method. Better constants for specific regimes followed (Lovász local lemma 1975, Spencer 1977), but no general lower bound beyond 2(1+o(1))k/22^{(1+o(1))k/2}2(1+o(1))k/2 is known today.

Setting

Fix an integer k≥3k \ge 3k≥3 and put N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋. A graph is a pair (V,E)(V,E)(V,E) with EEE an irreflexive symmetric relation on VVV; here vertices are labeled 0,…,N−10, \dots, N-10,…,N−1. A subset s⊆Vs \subseteq Vs⊆V of size kkk is a clique if every two distinct vertices of sss are adjacent, and an independent set if every two distinct vertices of sss are non-adjacent. A kkk-set that is either a clique or an independent set is monochromatic: it is monochromatic in the two-coloring of the complete graph on VVV in which an edge is colored by the graph (present) or its complement (absent).

The ambient probability space is the uniform distribution over all graphs on NNN labeled vertices — equivalently, each of the (N2)\binom{N}{2}(2N​) possible edges is present independently with probability 1/21/21/2. This space has exactly 2(N2)2^{\binom{N}{2}}2(2N​) elements.

A graph with no monochromatic kkk-set is a graph with neither a kkk-clique nor an independent kkk-set. The mission's goal, "the Ramsey number satisfies R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2", is formalized as the bare existence of such a graph on N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋ vertices, without defining the Ramsey number itself.

Formalization targets

Goal: the probabilistic lower bound

R(k)>2k/2,k≥3R(k) > 2^{k/2}, \qquad k \ge 3R(k)>2k/2,k≥3

i.e. there exists a graph on N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋ labeled vertices that contains no monochromatic kkk-set.

Stronger: the three steps of the proof, as separate targets

  1. Count estimate. For k≥3k \ge 3k≥3 and N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋,
(Nk)⋅21−(k2)<1,equivalently(Nk)⋅2<2(k2).\binom{N}{k} \cdot 2^{1-\binom{k}{2}} < 1, \qquad \text{equivalently} \quad \binom{N}{k} \cdot 2 < 2^{\binom{k}{2}}.(kN​)⋅21−(2k​)<1,equivalently(kN​)⋅2<2(2k​).
  1. Union-bound principle. In any finite outcome space, if the total number of outcomes ruled out by all bad events together is less than the number of outcomes, some outcome avoids every bad event:
∑i∣{ω:bad i ω}∣<∣Ω∣  ⟹  ∃ ω, ∀i, ¬bad i ω.\sum_i \left| \{\omega : \mathrm{bad}\ i\ \omega\} \right| < |\Omega| \implies \exists\, \omega, \ \forall i,\ \neg \mathrm{bad}\ i\ \omega.i∑​∣{ω:bad i ω}∣<∣Ω∣⟹∃ω, ∀i, ¬bad i ω.
  1. Pair-count bound. Over all graphs on NNN vertices, the total number of pairs (G,s)(G, s)(G,s) with sss a monochromatic kkk-set in GGG is at most
(Nk)⋅21+(N2)−(k2).\binom{N}{k} \cdot 2^{1+\binom{N}{2}-\binom{k}{2}}.(kN​)⋅21+(2N​)−(2k​).

The goal follows by combining the three steps: the pair count is the sum over bad events in the union-bound principle, and the count estimate makes that sum smaller than the 2(N2)2^{\binom{N}{2}}2(2N​) graphs.

Significance

The result. The lower bound R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2 is exponential, matching (up to the constant in the exponent) the best known upper bound R(k)<4kR(k) < 4^kR(k)<4k from Erdős–Szekeres. It shows that the Ramsey function, despite being finite, grows genuinely fast — and the proof's method became more influential than the bound: the probabilistic method now permeates combinatorics, graph theory, and theoretical computer science (random graphs, discrepancy, property testing, derandomization).

Formalizing it. Mathlib currently contains no Ramsey theory at all: no definition of a Ramsey number and no lower bound. This mission closes that gap with the foundational result, in a way that is deliberately elementary — no measure theory, no randomness: the "probabilistic" argument is re-expressed as exact counting, which is why the statements are fully formalizable in Mathlib today. The union-bound principle (target 2) is a reusable lemma for future probabilistic-method formalizations, and the monochromatic-set infrastructure (targets 1 and 3) is the natural base layer for a future definition of the Ramsey number R(k)R(k)R(k).

Difficulty

The central difficulty is that the bad events — "the kkk-set sss is monochromatic" — overlap heavily: a typical graph contains many monochromatic kkk-sets, so the union bound must be crude enough to survive the overlap. Concretely, the estimate (Nk)⋅21−(k2)<1\binom{N}{k} \cdot 2^{1-\binom{k}{2}} < 1(kN​)⋅21−(2k​)<1 holds for N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋ but fails for N=2⌊k/2⌋+1N = 2^{\lfloor k/2 \rfloor+1}N=2⌊k/2⌋+1; the naive "take one vertex more" step is where the argument breaks. A solver who tries to strengthen the bound will find the exponent is tight.

A second difficulty is purely formal: the uniform distribution over graphs has to be eliminated. The mission's statements do this by counting graphs with a fixed monochromatic kkk-set (21+(N2)−(k2)2^{1+\binom{N}{2}-\binom{k}{2}}21+(2N​)−(2k​) of them) and applying the union-bound principle, so no probability theory enters the formalization.

Formalization scope

Representation. Graphs are SimpleGraph (Fin N): a relation on NNN labeled vertices. A candidate set is a Finset (Fin N) of cardinality kkk; "monochromatic" is IsClique ∨ IsIndepSet on the graph; "no monochromatic kkk-set" is the predicate NoMonoK. All counting is cardinality of finite sets; monoCount N k G is the number of monochromatic kkk-sets of GGG.

Conventions. N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋ uses natural-number division, so for odd kkk the graph lives on 2(k−1)/22^{(k-1)/2}2(k−1)/2 vertices — the standard reading of R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2. The hypothesis k≥3k \ge 3k≥3 is explicit. The theorem quantifies existence over all graphs; it does not define the Ramsey number R(k)R(k)R(k) (a definition item for it, with the re-stated bound R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2, is a natural follow-up contribution).

Reusability. The union-bound principle, the monochromatic-kkk-set machinery, and the pair-count bound are all reusable beyond this mission. Welcome contributions: defining ramseyNumber and restating the bound as R(k)>2⌊k/2⌋R(k) > 2^{\lfloor k/2 \rfloor}R(k)>2⌊k/2⌋; the Erdős–Szekeres upper bound R(k)≤4kR(k) \le 4^kR(k)≤4k as a companion mission; applications of the same principle elsewhere.

Selected references

  • Paul Erdős, Some remarks on the theory of graphs, Bulletin of the American Mathematical Society 53(4), 1947, pp. 292–294. https://doi.org/10.1090/S0002-9904-1947-08785-X — the source paper: main construction proving R(k)>2k/2R(k) > 2^{k/2}R(k)>2k/2.
  • Noga Alon, Joel H. Spencer, The Probabilistic Method, 4th ed., Wiley, 2016 — Chapter 1 (the Erdős lower bound) and Chapter 3 (Lovász local lemma); standard exposition of the technique.
  • Stanisław Radziszowski, Small Ramsey Numbers, Electronic Journal of Combinatorics, Dynamic Survey DS1 — survey of Ramsey number bounds and history.

Context: where this sits in the formalization landscape

This mission is not a duplicate of existing platform content, and the choice of target is deliberate:

  • Mathlib gap. The pinned environment (mathlib 0df444a) contains no Ramsey-number theory at all — nothing in Combinatorics/SimpleGraph, no ramseyNumber-style definition. This mission seeds that subfield with reusable infrastructure: the monochromatic-set model, the finite union-bound (probabilistic-method) principle, and the double-counting bound are all general-purpose lemmas, not one-off steps.
  • Existing Ramsey content is a different quantity. The platform's fully-proved Erdos183 mission concerns multicolour triangle Ramsey numbers R(3,…,3)R(3,\dots,3)R(3,…,3) and is driven by recursive palette constructions — a different Ramsey parameter and a different technique. The classical 2-colour diagonal bound formalized here appears nowhere on the platform as a proved statement.
  • Directly load-bearing for a live open problem. The public open problem diagonal_ramsey_asymptotics (same environment 0df444a) asks, eventually in kkk, for 2⌊k/2⌋≤R(k,k)≤4k2^{\lfloor k/2 \rfloor} \le R(k,k) \le 4^k2⌊k/2⌋≤R(k,k)≤4k; its upper half is already proved as ramsey_theory_upper_bound. The lower half is exactly what this mission's goal supplies: once ramsey_lower_bound is proved, closing that open problem reduces to a translation between the graph formulation used here (SimpleGraph / NoMonoK) and the edge-colouring formulation (ramseyDiag) used there, plus the eventual-quantifier wrapper.
  • Formalization convention. The bound is stated on N=2⌊k/2⌋N = 2^{\lfloor k/2 \rfloor}N=2⌊k/2⌋ vertices (natural-number division), matching the exponent convention of the existing platform open problem above. For even kkk this is exactly Erdős's 2k/22^{k/2}2k/2; for odd kkk it is the standard floor form, equivalent to the classical asymptotic reading R(k)1/k≥2R(k)^{1/k} \ge \sqrt{2}R(k)1/k≥2​.
5 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: Shuze Chen

Dynamic Programming and Optimal Control I: The DP AlgorithmTextbook

Motivation

Dynamic programming is the backbone of stochastic optimal control, operations research, and reinforcement learning. Its cornerstone — that the backward recursion of Bellman computes the optimal cost of a finite-horizon stochastic control problem — is stated as Proposition 1.3.1 of Bertsekas, Dynamic Programming and Optimal Control, Vol. I (3rd ed., Athena Scientific, 2005), the standard graduate text on the subject. Every convergence result for value iteration, every performance bound for approximate DP, and every correctness proof for a planning algorithm ultimately leans on this proposition. A machine-checked version of it — over a clean, reusable model of the basic problem — is the natural foundation stone for formalized control theory and RL theory alike.

Setting

The basic problem (§1.2 of the book): a discrete-time system

xk+1=fk(xk,uk,wk),k=0,1,…,N−1,x_{k+1} = f_k(x_k, u_k, w_k), \qquad k = 0, 1, \dots, N-1,xk+1​=fk​(xk​,uk​,wk​),k=0,1,…,N−1,

with state xk∈Sx_k \in Sxk​∈S, control uku_kuk​ constrained to a finite nonempty set Uk(xk)⊆CU_k(x_k) \subseteq CUk​(xk​)⊆C, and disturbance wkw_kwk​ drawn from a finite space WWW with conditional probabilities pk(w∣xk,uk)p_k(w \mid x_k, u_k)pk​(w∣xk​,uk​). A policy is a sequence π={μ0,μ1,… }\pi = \{\mu_0, \mu_1, \dots\}π={μ0​,μ1​,…} of feedback maps μk:S→C\mu_k : S \to Cμk​:S→C; it is admissible if μk(x)∈Uk(x)\mu_k(x) \in U_k(x)μk​(x)∈Uk​(x) everywhere. Its expected cost from x0x_0x0​ is

Jπ(x0)=E[gN(xN)+∑k=0N−1gk(xk,μk(xk),wk)].J_\pi(x_0) = \mathbb{E}\Big[ g_N(x_N) + \sum_{k=0}^{N-1} g_k(x_k, \mu_k(x_k), w_k) \Big].Jπ​(x0​)=E[gN​(xN​)+k=0∑N−1​gk​(xk​,μk​(xk​),wk​)].

In the Lean development these are BertsekasDPModel, BertsekasDPPolicyCost (backward recursion on remaining stages), and the DP recursion BertsekasDPValue:

JN=gN,Jk(x)=min⁡u∈Uk(x)Ew[gk(x,u,w)+Jk+1(fk(x,u,w))].J_N = g_N, \qquad J_k(x) = \min_{u \in U_k(x)} \mathbb{E}_w\big[ g_k(x,u,w) + J_{k+1}(f_k(x,u,w)) \big].JN​=gN​,Jk​(x)=u∈Uk​(x)min​Ew​[gk​(x,u,w)+Jk+1​(fk​(x,u,w))].

Section 1.6 of the book develops the minimax variant, where the disturbance is chosen antagonistically from a finite membership set Wk(x,u)W_k(x,u)Wk​(x,u); the mission mirrors it with BertsekasMinimaxDPModel, BertsekasMinimaxPolicyCost, BertsekasMinimaxValue.

Target

J0(x0)  =  min⁡π admissibleJπ(x0),with the minimum attained,J_0(x_0) \;=\; \min_{\pi \text{ admissible}} J_\pi(x_0), \qquad \text{with the minimum attained,}J0​(x0​)=π admissiblemin​Jπ​(x0​),with the minimum attained,

formalized as BertsekasDP.dp_algorithm_optimality: the DP value at the horizon is an IsLeast of the set of admissible policy costs. Milestones: the min–max interchange Lemma 1.6.1 (minimax_selection_interchange) and the minimax DP validity (minimax_dp_algorithm).

Significance

The proposition itself is the license to compute optimal policies stage by stage; downstream, Missions VI and VII of this series (lookahead bounds, infinite-horizon theory) consume exactly this model and recursion. Formalizing it produces the reusable model of the basic problem — the shared vocabulary for the whole series. The result is classical and proved in the book; the contribution here is a machine-checked proof over a model faithful to the book's, with the measurable-selection subtleties deliberately avoided by finiteness (see scope).

Difficulty

The proof is a backward induction, but the standard informal argument ("interchange expectation and minimization") must be carried out honestly: the induction hypothesis is about all states simultaneously, the minimizing control must be selected as a function of the state (choice over a finite set), and the policy-cost recursion must be related to the value recursion stage by stage. The minimax milestone needs the interchange lemma with its >−∞> -\infty>−∞ proviso — the classic trap is losing that hypothesis and asserting a false unconditioned interchange.

Formalization scope

Finite disturbance space (Fintype W), finite nonempty control-constraint sets (Finset, inf'), arbitrary (possibly infinite) state space; expectations are finite weighted sums, probabilities are required to be distributions only at admissible controls. Stage data are total functions on N\mathbb{N}N; only stages 0,…,N−10,\dots,N-10,…,N−1 matter. Policies are deterministic Markov feedback maps — for this class the book's result is exactly recovered. The trivializing risks (empty constraint sets, junk beyond horizon) are ruled out by the nonemptiness field and by evaluating at exactly NNN remaining stages. Lemma 1.6.1 is stated in the extended reals over arbitrary types with the book's finiteness-of-infimum proviso.

Selected references

  • D. P. Bertsekas, Dynamic Programming and Optimal Control, Vol. I, 3rd ed., Athena Scientific, 2005. ISBN 1-886529-26-4. (Prop. 1.3.1, §1.2–1.3, §1.6.) http://www.athenasc.com/dpbook.html
  • R. Bellman, Dynamic Programming, Princeton University Press, 1957.
5 thms2 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times XIII: Coupling from the PastTextbook

Motivation

Every sampling guarantee in this series so far is approximate: run the chain for tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) steps and the output is within ε\varepsilonε of stationarity. In 1996 Propp and Wilson showed that, astonishingly, one can often sample exactly from the stationary distribution of a chain — with no error at all and no knowledge of the mixing time — by running the chain not forward from the present but from the past. Their algorithm, coupling from the past (CFTP), drives all states simultaneously with the same sequence of random update maps drawn from times −1,−2,−3,…-1,-2,-3,\dots−1,−2,−3,…; as soon as the composed map from some time −t-t−t collapses the entire state space to a single value, that value is an exact sample from π\piπ. Chapter 22 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009; the chapter is by Propp and Wilson themselves) presents the algorithm, the monotone shortcut that makes it practical for huge state spaces, and the proof of exactness. This mission — the final one of the series — formalizes that correctness proof.

Setting

Throughout, PPP is a chain on a finite state space VVV with stationary distribution π\piπ. A random mapping representation of PPP is a probability distribution ν\nuν on update functions f:V→Vf:V\to Vf:V→V that reproduces the transition probabilities in one step:

ν{f:f(x)=y}  =  P(x,y)for all x,y.\nu\{f: f(x)=y\}\;=\;P(x,y)\qquad\text{for all }x,y.ν{f:f(x)=y}=P(x,y)for all x,y.

Sampling f∼νf\sim\nuf∼ν and applying it to the current state is exactly one PPP-step — simultaneously from every possible current state.

CFTP draws i.i.d. maps f−1,f−2,⋯∼νf_{-1},f_{-2},\dots\sim\nuf−1​,f−2​,⋯∼ν indexed by past times and composes them forward from the past up to time zero:

F−t0  =  f−1∘f−2∘⋯∘f−t.F^0_{-t}\;=\;f_{-1}\circ f_{-2}\circ\cdots\circ f_{-t}.F−t0​=f−1​∘f−2​∘⋯∘f−t​.

Note the order: extending the horizon deeper into the past prepends new randomness inside the composition, while the maps near time 000 stay fixed — this is the crucial asymmetry between running from the past and running into the future. The composition has coalesced when F−t0F^0_{-t}F−t0​ is a constant map — all starting states have been funneled to one common value — and the algorithm outputs that value. In the monotone variant, VVV carries a partial order with a bottom state 0^\hat00^ and a top state 1^\hat11^ and every update map is monotone; then it suffices to track the two extreme trajectories.

Formalization targets

Goal

Correctness of coupling from the past (Propp–Wilson; §22.2–22.3), the capstone of the series: if ν\nuν is a random mapping representation of PPP, π\piπ is stationary for PPP, and coalescence is almost sure, then for every state yyy the probability that the CFTP composition has coalesced to the value yyy within ttt steps from the past tends, as t→∞t\to\inftyt→∞, to exactly π(y)\pi(y)π(y) — the output of the algorithm is an exact sample from the stationary distribution, with no mixing-time error term.

Milestones

  • Proposition 1.5 / §22.3 — every finite Markov chain has a random mapping representation: a suitable ν\nuν always exists.
  • Coalescence (§22.3) — if some finite composition of update maps collapses the state space with positive probability, then coalescence is almost sure: the probability that F−t0F^0_{-t}F−t0​ is not yet constant tends to 000 as t→∞t\to\inftyt→∞.
  • Monotone CFTP (§22.2) — if the state space has a bottom 0^\hat00^ and a top 1^\hat11^ and every update map is monotone, then the composition is constant as soon as it merely identifies 0^\hat00^ and 1^\hat11^: checking two trajectories certifies coalescence of all of them.

Significance

The results. CFTP is one of the most striking algorithmic ideas probability has produced: a Las Vegas algorithm whose output distribution is exactly π\piπ, side-stepping every mixing-time estimate of the previous twelve missions. The monotone shortcut is what made it explode in practice — for the Ising model of Mission IX the 2n2^n2n trajectories collapse to two, and Propp–Wilson famously drew exact Ising samples on large grids at the critical temperature. CFTP remains the foundation of exact-simulation methods across statistical physics, spatial statistics, and randomized algorithms.

Formalizing it. The correctness argument is short but famously slippery — the standard pitfall (running the coupling into the future yields a biased sample) is precisely a statement about the order of composition, which a formal proof pins down mercilessly. Nothing about exact sampling exists in any proof-assistant library. Formalized CFTP correctness is a fitting keystone: it consumes the random-map representation (Chapter 1), stationarity (Mission I), and the almost-sure-coalescence analysis, and certifies the algorithm practitioners actually run.

Difficulty

The whole content lies in managing the composition order and the limiting argument without measure theory. The probability space at horizon ttt is the finite product of ttt copies of ν\nuν (tuples of update maps, weighted by products); the key observation — for fixed ttt, the law of F−t0F^0_{-t}F−t0​ applied to any fixed start equals the law of ttt forward steps — is a finite re-indexing argument. Exactness then follows from a sandwich: on the event of coalescence by time ttt, the output equals F−t0(x)F^0_{-t}(x)F−t0​(x) for every xxx; choosing the start according to π\piπ shows the output law differs from π\piπ by at most the non-coalescence probability, and the hypothesis drives that to zero. Formalizing this needs care at exactly the point where informal proofs wave: the event "coalesced by −t-t−t" is increasing in ttt because the maps near zero are shared between horizons — the tuple encoding must make this monotonicity provable. The coalescence milestone is a geometric-trials argument (independent blocks each collapse with probability bounded below), and the monotone milestone is an induction showing monotonicity of compositions plus the squeeze between the extreme trajectories. All randomness is finite products of a finite distribution; limits are limits of explicit real sequences.

Formalization scope

Update-map distributions are functions (V→V)→R(V\to V)\to\mathbb R(V→V)→R with the distribution predicate of Mission I; the random-map representation condition is a finite-sum identity. The composition F−t0F^0_{-t}F−t0​ is encoded by a tuple F:Fin t→(V→V)F:\mathrm{Fin}\,t\to(V\to V)F:Fint→(V→V) with F(i)F(i)F(i) the map used at time −(i+1)-(i{+}1)−(i+1), folded so that the last entry applies first — the from-the-past order. Coalescence probabilities and output probabilities are finite sums over tuples of products of ν\nuν-weights; "coalescence is almost sure" is the statement that the non-coalescence probability tends to 000, and the goal's conclusion is a limit of real sequences (Filter.Tendsto), not a measure-theoretic almost-sure statement. The monotone milestone is stated abstractly for any finite partial order with OrderBot and OrderTop and any tuple of monotone maps — reusable beyond CFTP. No measure theory, filtrations, or i.i.d. infrastructure is required anywhere.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009 (Chapter 22, by J. G. Propp and D. B. Wilson). https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • J. G. Propp, D. B. Wilson, Exact sampling with coupled Markov chains and applications to statistical mechanics, Random Structures Algorithms 9 (1996). https://doi.org/10.1002/(SICI)1098-2418(199608/09)9:1/2<223::AID-RSA14>3.0.CO;2-O
  • D. B. Wilson, How to couple from the past using a read-once source of randomness, Random Structures Algorithms 16 (2000). https://doi.org/10.1002/(SICI)1098-2418(200003)16:2<85::AID-RSA1>3.0.CO;2-H
5 thms2 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times II: The Convergence TheoremTextbook

Motivation

The first mission of this series established that an irreducible finite Markov chain has a unique stationary distribution π\piπ. The present mission, covering Chapters 3–4 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009), answers the two questions that make that fact useful. First, the inverse problem of sampling: given a target distribution π\piπ — uniform over proper colorings, a Gibbs measure, a posterior — how does one build a chain whose stationary distribution is π\piπ? The Metropolis and Glauber constructions of Chapter 3 are the universal answers, and they are the engine of Markov chain Monte Carlo across statistical physics, Bayesian statistics, and approximate counting. Second, the convergence question: in what sense, and how fast, does an irreducible aperiodic chain approach π\piπ? Chapter 4 introduces the total variation distance, proves the Convergence Theorem — geometric convergence to stationarity — and defines the mixing time, the parameter the entire remainder of the book estimates.

Setting

All chains live on a finite state space VVV and are presented by row-stochastic matrices, with the definitions of Mission I. The total variation distance between distributions μ\muμ and ν\nuν is

∥μ−ν∥TV=max⁡A⊆V ∣μ(A)−ν(A)∣,\|\mu-\nu\|_{\mathrm{TV}} = \max_{A\subseteq V}\,|\mu(A)-\nu(A)|,∥μ−ν∥TV​=A⊆Vmax​∣μ(A)−ν(A)∣,

the maximal discrepancy over events. A coupling of μ\muμ and ν\nuν is a distribution on V×VV\times VV×V whose marginals are μ\muμ and ν\nuν. For a chain PPP with stationary π\piπ one sets

d(t)=max⁡x∥Pt(x,⋅)−π∥TV,dˉ(t)=max⁡x,y∥Pt(x,⋅)−Pt(y,⋅)∥TV,d(t)=\max_x \|P^t(x,\cdot)-\pi\|_{\mathrm{TV}},\qquad \bar d(t)=\max_{x,y}\|P^t(x,\cdot)-P^t(y,\cdot)\|_{\mathrm{TV}},d(t)=xmax​∥Pt(x,⋅)−π∥TV​,dˉ(t)=x,ymax​∥Pt(x,⋅)−Pt(y,⋅)∥TV​,

and the mixing time is tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t : d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε}, with tmix=tmix(1/4)t_{\mathrm{mix}}=t_{\mathrm{mix}}(1/4)tmix​=tmix​(1/4).

The Metropolis chain for a target π\piπ and a symmetric proposal chain Ψ\PsiΨ accepts a proposed move x→yx\to yx→y with probability 1∧π(y)/π(x)1\wedge \pi(y)/\pi(x)1∧π(y)/π(x); a general (not necessarily symmetric) base chain is handled by the ratio (π(y)Ψ(y,x))/(π(x)Ψ(x,y))∧1\bigl(\pi(y)\Psi(y,x)\bigr)/\bigl(\pi(x)\Psi(x,y)\bigr)\wedge 1(π(y)Ψ(y,x))/(π(x)Ψ(x,y))∧1. The Glauber dynamics for a distribution π\piπ on configurations VsitesV^{\text{sites}}Vsites picks a uniform site and re-samples its value from π\piπ conditioned on the rest.

Formalization targets

Goal

P irreducible and aperiodic  ⟹  ∃ α∈(0,1), C>0:d(t)≤Cαt.\text{$P$ irreducible and aperiodic}\;\Longrightarrow\;\exists\,\alpha\in(0,1),\ C>0:\quad d(t)\le C\alpha^{t}.P irreducible and aperiodic⟹∃α∈(0,1), C>0:d(t)≤Cαt.

This is Theorem 4.9, the Convergence Theorem. It asserts only the geometric shape of convergence, leaving all quantitative rates to later missions, which is why it is the goal.

Milestones

The milestones are the chapter's working parts: stationarity and reversibility of the Metropolis chain for symmetric and general base chains (§3.2, Exercise 3.1), stationarity and reversibility of the Glauber dynamics (§3.3, Exercise 3.2); the three characterizations of total variation distance — the half-ℓ1\ell^1ℓ1 formula (Proposition 4.2 with Remark 4.3), the supremum over [−1,1][-1,1][−1,1]-bounded test functions (Proposition 4.5), and the coupling characterization with an optimal coupling attaining it (Proposition 4.7 with Remark 4.8); the comparison d≤dˉ≤2dd\le\bar d\le 2dd≤dˉ≤2d (Lemma 4.11) and submultiplicativity dˉ(s+t)≤dˉ(s)dˉ(t)\bar d(s+t)\le\bar d(s)\bar d(t)dˉ(s+t)≤dˉ(s)dˉ(t) (Lemma 4.12); the standard mixing-time consequences d(ℓ tmix(ε))≤(2ε)ℓd(\ell\, t_{\mathrm{mix}}(\varepsilon))\le(2\varepsilon)^\elld(ℓtmix​(ε))≤(2ε)ℓ and tmix(ε)≤⌈log⁡2ε−1⌉ tmixt_{\mathrm{mix}}(\varepsilon)\le\lceil\log_2\varepsilon^{-1}\rceil\, t_{\mathrm{mix}}tmix​(ε)≤⌈log2​ε−1⌉tmix​ (§4.5); and the equality of distance to stationarity for a group walk and its inverse walk (Lemma 4.13 and Corollary 4.14).

Significance

The results. The Convergence Theorem is the qualitative foundation on which quantitative mixing theory stands: it guarantees that tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) is finite, so every bound in Missions III–XIII is a bound on a well-defined quantity. The TV characterizations are used constantly — the coupling characterization is the engine of Mission III, the half-ℓ1\ell^1ℓ1 formula of every explicit computation. The Metropolis and Glauber stationarity results justify the chains analyzed in Missions III (colorings, hardcore), VIII (path coupling) and IX (Ising). Submultiplicativity of dˉ\bar ddˉ is what makes tmixt_{\mathrm{mix}}tmix​ a meaningful single number.

Formalizing them. None of this exists in Mathlib: there is no total variation distance for finitely supported distributions, no coupling theory, no mixing time, no MCMC correctness statement. The definition layer published here (TV distance, ddd, dˉ\bar ddˉ, tmixt_{\mathrm{mix}}tmix​, couplings, Metropolis, Glauber) is imported by every subsequent mission of the series.

Difficulty

The tempting proof of Theorem 4.9 via spectral decomposition fails twice: it needs reversibility, which the theorem does not assume, and spectral machinery that arrives only in Mission VII. The book's proof is the Doeblin decomposition: by Proposition 1.7 some power satisfies Pr(x,y)≥δπ(y)P^r(x,y)\ge\delta\pi(y)Pr(x,y)≥δπ(y), so Pr=(1−θ)Π+θQP^r=(1-\theta)\Pi+\theta QPr=(1−θ)Π+θQ with Π\PiΠ the rank-one matrix of rows π\piπ, and induction gives Prk=(1−θk)Π+θkQkP^{rk}=(1-\theta^k)\Pi+\theta^kQ^kPrk=(1−θk)Π+θkQk. The formal work is matrix algebra with careful bookkeeping of the remainder chain QQQ, plus the monotonicity of ddd needed to interpolate between multiples of rrr. For Proposition 4.7 the delicate half is constructing the optimal coupling: mass μ∧ν\mu\wedge\nuμ∧ν on the diagonal and the normalized product of the positive parts off it, with the degenerate case μ=ν\mu=\nuμ=ν handled separately. The Glauber stationarity statement must be phrased with care because configurations outside the support of π\piπ have junk rows; the formalization asserts stochasticity only at supported configurations, and detailed balance globally.

Formalization scope

Total variation distance is defined as the supremum over events, ⨆A ∣μ(A)−ν(A)∣\bigsqcup_{A}\,|\mu(A)-\nu(A)|⨆A​∣μ(A)−ν(A)∣ over Finset V, exactly as in (4.1); the half-ℓ1\ell^1ℓ1 formula is a milestone, not the definition. The mixing time is sInf of the set {t:d(t)≤ε}\{t : d(t)\le\varepsilon\}{t:d(t)≤ε} in N\mathbb NN (junk value 000 if empty — impossible under the goal theorem). Couplings are distributions on the product with prescribed marginals; no probability-space machinery is used. The mixing-time inequalities are stated with the integer-rounding slack made explicit (e.g. ⌈log⁡2ε−1⌉\lceil\log_2\varepsilon^{-1}\rceil⌈log2​ε−1⌉ via Nat.ceil of a real logarithm) so that no statement is true only "up to rounding". The Metropolis definitions use total real division, so the hypotheses require π>0\pi>0π>0 pointwise; this matches the book, which divides by π(x)\pi(x)π(x) throughout.

Welcome contributions beyond the milestones: simp lemmas for tvDist, monotonicity of ddd and dˉ\bar ddˉ in ttt, and triangle-inequality infrastructure — all reused by Missions III–XIII.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • N. Metropolis, A. Rosenbluth, M. Rosenbluth, A. Teller, E. Teller, Equation of state calculations by fast computing machines, J. Chem. Phys. 21 (1953). https://doi.org/10.1063/1.1699114
  • W. Doeblin, Exposé de la théorie des chaînes simples constantes de Markov à un nombre fini d'états, Rev. Math. Union Interbalkan. 2 (1938).
14 thms2 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchOptimization·Captain: mikedeng1

Optimal Policies for a Multi-Echelon Inventory Problem: The Two-Echelon Optimal Cost Splits into the Isolated Installation-1 Cost Plus a Function of Echelon StockResearch Paper

Motivation

Most physical supply chains hold stock at several levels: a factory warehouse feeds a regional depot, which feeds a retail outlet. Each level orders from the one above it, and a shortage upstream delays replenishment downstream. Optimizing such a multi-echelon system by dynamic programming looks hopeless, because the state is a vector of stock levels and stock in transit at every installation, and the value function of a two-installation system with a two-period shipping lag already depends on three continuous variables.

Andrew J. Clark and Herbert Scarf (Management Science 6(4):475–490, 1960) showed that for a serial system this curse of dimensionality disappears. Working with echelon stock (the stock at a level plus everything below it or in transit to a lower level), the optimal system cost separates into the cost of the lowest installation, optimized as if it stood alone, plus a function of echelon stock only. The result is the foundation of multi-echelon inventory theory: the echelon base-stock policies used in practice, the stationary analyses of Federgruen and Zipkin (1984) and Chen and Zheng (1994), and textbook treatments (Zipkin, Foundations of Inventory Management, 2000; Snyder and Shen, Fundamentals of Supply Chain Theory) all descend from it.

Timeline. Arrow, Harris and Marschak (1951) and Arrow, Karlin and Scarf (1958) set up periodic-review inventory models with discounted costs. Karlin and Scarf (1958) treated a single installation with a delivery lag, reducing it to a problem without lag (the paper's facts 1–3). Clark and Scarf (1960) proved the decomposition for serial systems with linear shipping costs and a setup cost permitted only at the top. Federgruen and Zipkin (1984) extended it to infinite horizons and Chen and Zheng (1994) gave a lower-bound proof that reaches more general structures.

Setting

Two installations are in series. Customer demand occurs only at installation 1; its demand in each period is non-negative with density φ\varphiφ on (0,∞)(0,\infty)(0,∞), independent across periods, and excess demand is backlogged. Installation 2 ships to installation 1 with a two-period lead time at unit cost c1≥0c_1\ge0c1​≥0. The system orders z≥0z\ge0z≥0 units from outside at cost c(z)=K+czc(z)=K+czc(z)=K+cz for z>0z>0z>0 and c(0)=0c(0)=0c(0)=0 (eq. (5)); these arrive at installation 2 one period later. Costs nnn periods ahead are discounted by αn\alpha^nαn, α≥0\alpha\ge0α≥0.

The state at the start of a period is (x1,w1,x2)(x_1,w_1,x_2)(x1​,w1​,x2​): x1x_1x1​ is the stock on hand at installation 1, w1w_1w1​ the stock that reaches installation 1 next period, and x2x_2x2​ the echelon-2 stock (on hand at both installations plus in transit), so x1+w1≤x2x_1+w_1\le x_2x1​+w1​≤x2​. Installation 1 pays the expected holding and shortage cost (1),

L(x)={hx+p∫x∞(t−x)φ(t) dt,x>0,p∫0∞(t−x)φ(t) dt,x≤0,L(x)=\begin{cases}hx+p\int_x^\infty(t-x)\varphi(t)\,dt,&x>0,\\ p\int_0^\infty(t-x)\varphi(t)\,dt,&x\le0,\end{cases}L(x)={hx+p∫x∞​(t−x)φ(t)dt,p∫0∞​(t−x)φ(t)dt,​x>0,x≤0,​

and echelon 2 pays a natural one-period cost L~(x2)\tilde L(x_2)L~(x2​) (Assumption 3).

With nnn periods remaining, the optimal system cost Cn(x1,w1,x2)C_n(x_1,w_1,x_2)Cn​(x1​,w1​,x2​) satisfies, with C0≡0C_0\equiv0C0​≡0,

Cn(x1,w1,x2)=min⁡x1+w1≤y≤x20≤z{c(z)+c1(y−x1−w1)+L~(x2)+L(x1)+α∫0∞Cn−1(x1+w1−t, y−x1−w1, x2+z−t)φ(t) dt}(14)C_n(x_1,w_1,x_2)=\min_{\substack{x_1+w_1\le y\le x_2\\0\le z}}\Big\{c(z)+c_1(y-x_1-w_1)+\tilde L(x_2)+L(x_1)+\alpha\int_0^\infty C_{n-1}(x_1+w_1-t,\,y-x_1-w_1,\,x_2+z-t)\varphi(t)\,dt\Big\}\qquad(14)Cn​(x1​,w1​,x2​)=x1​+w1​≤y≤x2​0≤z​min​{c(z)+c1​(y−x1​−w1​)+L~(x2​)+L(x1​)+α∫0∞​Cn−1​(x1​+w1​−t,y−x1​−w1​,x2​+z−t)φ(t)dt}(14)

where yyy is installation 1's target (stock on hand plus in transit after shipping). Installation 1 in isolation, buying at unit cost c1c_1c1​ with a two-period lag, has optimal cost C^n(x1,w1)\hat C_n(x_1,w_1)C^n​(x1​,w1​), C^0≡0\hat C_0\equiv0C^0​≡0:

C^n(x1,w1)=min⁡y≥x1+w1{c1(y−x1−w1)+L(x1)+α∫0∞C^n−1(x1+w1−t, y−x1−w1)φ(t) dt}.(15)\hat C_n(x_1,w_1)=\min_{y\ge x_1+w_1}\Big\{c_1(y-x_1-w_1)+L(x_1)+\alpha\int_0^\infty\hat C_{n-1}(x_1+w_1-t,\,y-x_1-w_1)\varphi(t)\,dt\Big\}.\qquad(15)C^n​(x1​,w1​)=y≥x1​+w1​min​{c1​(y−x1​−w1​)+L(x1​)+α∫0∞​C^n−1​(x1​+w1​−t,y−x1​−w1​)φ(t)dt}.(15)

In Lean these are ClarkScarf.Serial.Model.sysCost and isoCost; the expressions in braces are sysObj and isoObj, indexed by nnn for the problem with n+1n+1n+1 periods remaining.

Formalization targets

Goal: Theorem 1 (p. 482)

There are functions gng_ngn​ with g1=L~g_1=\tilde Lg1​=L~ such that, for all n≥1n\ge1n≥1 and x1+w1≤x2x_1+w_1\le x_2x1​+w1​≤x2​,

Cn(x1,w1,x2)=C^n(x1,w1)+gn(x2),(16)C_n(x_1,w_1,x_2)=\hat C_n(x_1,w_1)+g_n(x_2),\qquad(16)Cn​(x1​,w1​,x2​)=C^n​(x1​,w1​)+gn​(x2​),(16)

and installation 1 acts optimally by aiming at an isolated-optimal target y^\hat yy^​ and taking min⁡(x2,y^)\min(x_2,\hat y)min(x2​,y^​), as much as installation 2 can supply. The goal fixes no form for gng_ngn​ and needs no critical numbers.

Milestones

  1. Convexity of y↦α∫ ⁣ ⁣∫L(y−t1−t2)φ(t1)φ(t2)y\mapsto\alpha\int\!\!\int L(y-t_1-t_2)\varphi(t_1)\varphi(t_2)y↦α∫∫L(y−t1​−t2​)φ(t1​)φ(t2​) (§2 item 2, p. 478).
  2. The isolated decomposition C^n(x1,w1)=L(x1)+α∫0∞L(x1+w1−t)φ(t) dt+fn(x1+w1)\hat C_n(x_1,w_1)=L(x_1)+\alpha\int_0^\infty L(x_1+w_1-t)\varphi(t)\,dt+f_n(x_1+w_1)C^n​(x1​,w1​)=L(x1​)+α∫0∞​L(x1​+w1​−t)φ(t)dt+fn​(x1​+w1​) for n≥2n\ge2n≥2, with fnf_nfn​ of (7) (p. 480).
  3. Convexity of every fnf_nfn​ (§2 item 3, p. 478).
  4. Eqs. (18)–(19) (p. 483): the system cost when echelon-2 stock is above or below the isolated critical number xˉn\bar x_nxˉn​.
  5. Eqs. (21)–(25) (pp. 483–484): the shortfall cost Λn\Lambda_nΛn​ depends on x2x_2x2​ alone,
Λn(x2)=c1(x2−xˉn)+α2∫0∞ ⁣ ⁣∫0∞[L(x2−t−y)−L(xˉn−t−y)]φ(t)φ(y) dy dt+α∫0∞[fn−1(x2−t)−fn−1(xˉn−t)]φ(t) dt.\Lambda_n(x_2)=c_1(x_2-\bar x_n)+\alpha^2\int_0^\infty\!\!\int_0^\infty[L(x_2-t-y)-L(\bar x_n-t-y)]\varphi(t)\varphi(y)\,dy\,dt+\alpha\int_0^\infty[f_{n-1}(x_2-t)-f_{n-1}(\bar x_n-t)]\varphi(t)\,dt.Λn​(x2​)=c1​(x2​−xˉn​)+α2∫0∞​∫0∞​[L(x2​−t−y)−L(xˉn​−t−y)]φ(t)φ(y)dydt+α∫0∞​[fn−1​(x2​−t)−fn−1​(xˉn​−t)]φ(t)dt.
  1. Theorem 2 (p. 484), the explicit form: given critical numbers, gng_ngn​ is computed by (26), gn(x2)=min⁡z≥0{c(z)+L~(x2)+Λn(x2)+α∫gn−1(x2+z−t)φ(t) dt}g_n(x_2)=\min_{z\ge0}\{c(z)+\tilde L(x_2)+\Lambda_n(x_2)+\alpha\int g_{n-1}(x_2+z-t)\varphi(t)\,dt\}gn​(x2​)=minz≥0​{c(z)+L~(x2​)+Λn​(x2​)+α∫gn−1​(x2​+z−t)φ(t)dt}.

Significance

The result. Theorem 1 replaces one three-dimensional dynamic program by two one-dimensional ones. Installation 1 solves its own problem (15), whose solution is a critical-number policy, and echelon 2 solves a single-installation problem in x2x_2x2​ with one-period cost L~+Λn\tilde L+\Lambda_nL~+Λn​. When L~\tilde LL~ is convex the augmented cost is convex (the paper remarks this for Expression (10)), so the echelon-2 policy is of (S,s)(S,s)(S,s) type by Scarf's theorem, and the whole system runs on echelon base-stock rules. Every later serial-system result, finite or infinite horizon, uses this decomposition or its proof idea, and the "induced penalty" Λn\Lambda_nΛn​ is the prototype of the penalty functions used in the multi-echelon literature.

Formalizing it. The theorem is classical and proved, but no machine-checked version exists. The published platform items on Clark–Scarf are a stationary single-period decomposition with normal demand and a disproved infinite-horizon base-stock recursion, neither of which is this finite-horizon dynamic program. A formal development produces the value functions (14)–(15) with real infima and set integrals, the measurability and integrability of value functions defined by infima, the convexity propagation through the recursion (7), and the decomposition itself, which are reusable for any finite-horizon inventory recursion with lead times.

Difficulty

The obvious induction on nnn substitutes (16) into (14) and separates the minimizations over yyy and zzz. The separation is immediate; the hard step is that the constrained minimum over x1+w1≤y≤x2x_1+w_1\le y\le x_2x1​+w1​≤y≤x2​ differs from the unconstrained one by an amount that a priori depends on (x1,w1)(x_1,w_1)(x1​,w1​). Showing that it depends on x2x_2x2​ alone is the content of Theorem 1; nothing in the separation step itself rules out a dependence on (x1,w1)(x_1,w_1)(x1​,w1​). On the measure-theoretic side, every value function is defined by an infimum over an uncountable set and then integrated against φ\varphiφ. Its measurability and integrability are not automatic, and they must be established before any identity between integrals can be manipulated.

Formalization scope

Everything lives in ClarkScarf.Serial, one definition file Def_ClarkScarf_Serial_Model and seven theorem files. Conventions committed to:

  • The model is a structure Model whose fields carry the data and the standing hypotheses: h,p,α,c1,K,c≥0h,p,\alpha,c_1,K,c\ge0h,p,α,c1​,K,c≥0; φ≥0\varphi\ge0φ≥0 with ∫0∞φ=1\int_0^\infty\varphi=1∫0∞​φ=1; and two additions the page leaves implicit, disclosed in each statement: a finite demand mean (otherwise (1) is infinite for x≤0x\le0x≤0) and L~\tilde LL~ non-negative, continuous and of at most linear growth (Assumption 3 leaves L~\tilde LL~ unspecified; these make every expectation in (14) finite and measurable). No discount bound α<1\alpha<1α<1, no convexity of L~\tilde LL~, no K=0K=0K=0 and no sign condition on w1w_1w1​ is assumed.
  • Expectations are set integrals ∫(0,∞)F(t)φ(t) dt\int_{(0,\infty)}F(t)\varphi(t)\,dt∫(0,∞)​F(t)φ(t)dt; "Min" is a real infimum over a nonempty feasible set of a non-negative objective.
  • Every statement about CnC_nCn​ is restricted to the state domain x1+w1≤x2x_1+w_1\le x_2x1​+w1​≤x2​; outside it the feasible set of (14) is empty.
  • The horizon index counts periods remaining, C0≡C^0≡0C_0\equiv\hat C_0\equiv0C0​≡C^0​≡0, and fn≡0f_n\equiv0fn​≡0 for n≤2n\le2n≤2.

A formalization in which the feasible set of (14) is empty, in which the expectations are junk zeros of non-integrable integrands, or in which gng_ngn​ may depend on (x1,w1)(x_1,w_1)(x1​,w1​) would make (16) trivial; the domain restriction, the integrability conditions and the order ∃g ∀x1,w1,x2\exists g\,\forall x_1,w_1,x_2∃g∀x1​,w1​,x2​ rule these out. A sorry-free check (not part of the mission) verifies C1=L(x1)+L~(x2)C_1=L(x_1)+\tilde L(x_2)C1​=L(x1​)+L~(x2​) and C^1=L(x1)\hat C_1=L(x_1)C^1​=L(x1​) and exhibits a model with exponential demand satisfying all hypotheses.

Needed infrastructure: Fubini-type rearrangement of iterated set integrals against a density, integrability of functions of linear growth against a finite-mean density, convexity preserved under infimal projection u↦inf⁡y≥uu\mapsto\inf_{y\ge u}u↦infy≥u​ and under convolution with a density, and measurability of infimum-defined functions. Contributions of these general lemmas, of the base cases n=1,2n=1,2n=1,2, and of any milestone are welcome.

Selected references

  • A. J. Clark and H. Scarf, Optimal Policies for a Multi-Echelon Inventory Problem, Management Science 6(4):475–490, 1960. https://doi.org/10.1287/mnsc.6.4.475
  • S. Karlin and H. Scarf, Inventory Models of the Arrow-Harris-Marschak Type with Time Lag, in Arrow, Karlin, Scarf (eds.), Studies in the Mathematical Theory of Inventory and Production, Stanford University Press, 1958.
  • H. Scarf, The Optimality of (S, s) Policies in the Dynamic Inventory Problem, in Mathematical Methods in the Social Sciences, Stanford University Press, 1960.
  • A. Federgruen and P. Zipkin, Computational Issues in an Infinite-Horizon, Multiechelon Inventory Model, Operations Research 32(4):818–836, 1984. https://doi.org/10.1287/opre.32.4.818
  • F. Chen and Y.-S. Zheng, Lower Bounds for Multi-Echelon Stochastic Inventory Systems, Management Science 40(11):1426–1443, 1994. https://doi.org/10.1287/mnsc.40.11.1426
8 thms1 active userReviewed
🏆Completed
Linear algebraMachine Learning·Captain: Minghui

Fine-Tuning Can Distort Pretrained Features: Perfect-Feature LP-FT SeparationResearch Paper

Why initialization matters for transfer learning

Transfer learning starts with a representation learned on an earlier task and adapts it to a new one. Two common choices are linear probing, which changes only the final linear predictor, and fine-tuning, which changes the representation as well. These procedures optimize related training objectives, but their behavior away from the training data can differ. Kumar and coauthors study this distinction through two-layer linear networks, alongside experiments with nonlinear networks. This mission formalizes their perfect-feature LP-FT result, rather than the empirical claims or the general imperfect-feature comparison. See Section 3.4, Proposition 3.7, PDF p. 10.

LP-FT first learns a head by linear probing and then uses that head to initialize full fine-tuning. The perfect-feature setting isolates the effect of head initialization: the representation already contains exactly the features needed to predict the labels, but the head initially need not use them correctly. The mathematical question is whether joint training preserves or loses the representation's ability to predict outside the observed training subspace.

Linear predictors, training data, and OOD loss

An input is a vector x∈Rdx\in\mathbb R^dx∈Rd. A feature extractor is a matrix B∈Rk×dB\in\mathbb R^{k\times d}B∈Rk×d, and a head is a vector v∈Rkv\in\mathbb R^kv∈Rk. Together they predict v⊤Bxv^\top Bxv⊤Bx, with effective weight vector B⊤vB^\top vB⊤v. The fixed matrix X∈Rn×dX\in\mathbb R^{n\times d}X∈Rn×d contains the nnn training inputs as rows. Their span is S=rowspace⁡(X)S=\operatorname{rowspace}(X)S=rowspace(X), with dimension mmm.

The ground truth has orthonormal-row features B⋆B_\starB⋆​ and a nonzero head v⋆v_\starv⋆​. Write w⋆=B⋆⊤v⋆w_\star=B_\star^\top v_\starw⋆​=B⋆⊤​v⋆​ and Y=Xw⋆Y=Xw_\starY=Xw⋆​. Perfect pretrained features mean B0=UB⋆B_0=UB_\starB0​=UB⋆​ for an orthogonal matrix UUU. The corresponding aligned head is u=Uv⋆u=Uv_\staru=Uv⋆​. The dimensions satisfy 1≤k≤m1\le k\le m1≤k≤m and m+k<dm+k<dm+k<d.

The two geometric assumptions require the orthogonal projections from R0=rowspace⁡(B0)R_0=\operatorname{rowspace}(B_0)R0​=rowspace(B0​) into SSS and into S⊥S^\perpS⊥ to be injective. In this dimension regime these are exactly the positive largest-principal-angle cosine conditions used by the paper. They demand more than two subspaces having some nonorthogonal directions. The Lean definition spells out injectivity of v↦ΠTB0⊤vv\mapsto\Pi_T B_0^\top vv↦ΠT​B0⊤​v for each T∈{S,S⊥}T\in\{S,S^\perp\}T∈{S,S⊥}. See Definition 3.2 and Appendix A.1, PDF pp. 7 and 22-23.

An out-of-distribution law μ\muμ is any probability measure on Rd\mathbb R^dRd with a finite second moment and positive-definite uncentered second-moment matrix Σ=Eμ[xx⊤]\Sigma=\mathbb E_\mu[xx^\top]Σ=Eμ​[xx⊤]. Its mean need not be zero. Define

LOOD(v,B)=Ex∼μ[(v⊤Bx−w⋆⊤x)2].L_{\rm OOD}(v,B)=\mathbb E_{x\sim\mu} [(v^\top Bx-w_\star^\top x)^2].LOOD​(v,B)=Ex∼μ​[(v⊤Bx−w⋆⊤​x)2].

Both training methods use the unnormalized loss L^(v,B)=∥XB⊤v−Y∥22\widehat L(v,B)=\|XB^\top v-Y\|_2^2L(v,B)=∥XB⊤v−Y∥22​. Fine-tuning follows its gradient flow in both parameters; linear probing keeps B=B0B=B_0B=B0​. Time is real and nonnegative. These are the paper's equations (3.2)-(3.3), PDF p. 6.

Formalization targets

The goal is Proposition 3.7 in an explicit nonzero-signal regime. For σ>0\sigma>0σ>0, initialize an FT head with independent Gaussian coordinates, v0∼N(0,σ2Ik)v_0\sim\mathcal N(0,\sigma^2I_k)v0​∼N(0,σ2Ik​). Establish

Pr⁡ ⁣[∀t≥0,LOOD(vFT(t),BFT(t))>0]=1.\Pr\!\left[\forall t\ge0,\quad L_{\rm OOD}(v_{\rm FT}(t),B_{\rm FT}(t))>0\right]=1.Pr[∀t≥0,LOOD​(vFT​(t),BFT​(t))>0]=1.

Linear probing, from any initial head, must converge to uuu. Fine-tuning initialized at its limit must satisfy

vLP(t)⟶u,∀t≥0,LOOD(vLP-FT(t),BLP-FT(t))=0.v_{\rm LP}(t)\longrightarrow u,\qquad \forall t\ge0,\quad L_{\rm OOD}(v_{\rm LP\text{-}FT}(t),B_{\rm LP\text{-}FT}(t))=0.vLP​(t)⟶u,∀t≥0,LOOD​(vLP-FT​(t),BLP-FT​(t))=0.

The probability-one event applies to all times simultaneously. The goal also asserts existence of the relevant global flows; a conditional claim about a possibly nonexistent trajectory would not suffice. The statement does not assert a numerical error lower bound or a positive time-infimum.

Seven milestones supply the supporting results: global flow existence and FT uniqueness; unchanged features orthogonal to the training span; the balancedness invariant; the second-moment identity for OOD risk; almost-sure Gaussian head misalignment; exact LP recovery; and stationarity after LP initialization. The principal source is Appendices A.2 and A.7, PDF pp. 23-31 and 45-47.

What the result establishes

The result distinguishes two initializations of the same joint-training procedure. In this idealized setting, a head obtained by linear probing gives zero OOD loss throughout subsequent fine-tuning, while a Gaussian head almost surely has positive OOD loss at every finite time. The conclusion concerns population squared prediction error, not classification accuracy or a finite test-set estimate.

The paper establishes the mathematical claim; this mission asks for a Lean proof of the stated model and result. The scope is deliberately limited to perfect pretrained features. It does not claim an LP-FT upper bound for imperfect features, which the authors identify as a further challenge in Section 3.4, PDF p. 10. A completed development would also provide reusable components for finite dimensional gradient flows, factorized linear models, and population risk.

Why the proof needs the training dynamics

The training loss alone does not select a unique effective predictor in an overparameterized problem. Knowing that a predictor fits the observed examples therefore does not determine its OOD loss. Formalization must track the head and feature extractor together, and it must distinguish parameter stationarity from a claim that a derivative happens to vanish at one time. The Gaussian conclusion also requires one event controlling an uncountable set of times; separate probability-one statements for individual times would be weaker.

Formalization scope and conventions

Vectors use Mathlib's finite dimensional real Euclidean spaces. Matrices are represented as continuous linear maps, with Euclidean adjoints and operator norms. The feature update is written explicitly as the Frobenius-gradient equation; it is not a gradient with respect to the operator norm. Differentiability is imposed within [0,∞)[0,\infty)[0,∞), including the right derivative at zero.

The dimensions, nonzero target, positive Gaussian scale, finite second moments, and projection injectivity are explicit. The nonzero target restricts the formalization to the regime of the Gaussian alignment argument in Lemma A.12; k≤mk\le mk≤m makes the identifiability condition used in Proposition A.20 precise. The random-head law is the scaled standard Gaussian measure. No randomness of the fixed training matrix or independence from an additional data draw is assumed.

The model contains no assumed convergence, invariant, or desired risk bound. Each of those is a theorem obligation. The well-posedness milestone makes explicit an analytic prerequisite of the source's flow notation. The risk milestone uses the identity in (A.29)-(A.32), avoiding the reversed inequality printed in (A.28). The quantitative constant in Theorem 3.3 is outside this mission. Source-aligned proofs and the supporting analysis infrastructure are welcome; changing the learning rule or assuming a milestone inside the model would change the task.

Selected references

  • Ananya Kumar, Aditi Raghunathan, Robbie Jones, Tengyu Ma, and Percy Liang, Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution, ICLR 2022, arXiv:2202.10054v1. Main target: Section 3.4, Proposition 3.7, PDF p. 10, equations (3.10)-(3.11); proof: Appendix A.7, PDF pp. 45-47, Proposition A.20 and (A.208)-(A.218). Supporting invariants: Appendix A.2, PDF p. 24, Lemmas A.3-A.4, equations (A.15)-(A.20). Gaussian alignment: Appendix A.3, PDF pp. 34-35, Lemmas A.11-A.12.
9 thms1 active userReviewed
🏆Completed
Machine Learning·Captain: Minghui

Neural Tangent Kernel: The Infinite-Width Initialization LimitResearch Paper

Why an initialization kernel matters

A neural network is nonlinear in its parameters, but a small change in those parameters changes its predictions through a Jacobian. The neural tangent kernel is the Gram kernel of that Jacobian: it records which changes in predictions can be produced by common parameter updates. An initialization limit identifies a deterministic object behind this random kernel. It supplies a mathematical starting point for studying wide networks through kernel methods, before addressing the additional question of how the kernel changes during training. Jacot, Gabriel, and Hongler establish this initialization limit in Section 4.1, Theorem 1, PDF p. 5.

The requested result is already a theorem of the paper. The open work here is its formal proof in Lean, including the probability model and the order of limits. The mission is classified as OpenProblem at the request of its proposer; that label does not assert that the underlying mathematical result remains an unsolved research question.

The source appeared in 2018 and was published at NeurIPS 2018; this formalization fixes arXiv version 4, dated February 10, 2020, so that page references and conventions remain stable. Its Appendix A explicitly distinguishes the sequential limit proved there from a possible stronger simultaneous-width limit.

Networks, randomness, and the two kernels

Fix positive integers ddd and qqq, the input and output dimensions, a hidden-layer count h≥0h\ge0h≥0, a bias scale β>0\beta>0β>0, and a Lipschitz function σ:R→R\sigma:\mathbb R\to\mathbb Rσ:R→R. Write L=h+1L=h+1L=h+1 for the number of affine layers, with n0=dn_0=dn0​=d, nL=qn_L=qnL​=q, and positive hidden widths n1,…,nhn_1,\ldots,n_hn1​,…,nh​. The parameters are all entries of the weight matrices and bias vectors. Every parameter is sampled independently from N(0,1)\mathcal N(0,1)N(0,1).

For an input xxx, let a(0)(x)=xa^{(0)}(x)=xa(0)(x)=x and define

zj(ℓ+1)(x)=1nℓ∑iWji(ℓ)ai(ℓ)(x)+βbj(ℓ).z^{(\ell+1)}_j(x)=\frac1{\sqrt{n_\ell}} \sum_i W^{(\ell)}_{ji}a^{(\ell)}_i(x)+\beta b^{(\ell)}_j.zj(ℓ+1)​(x)=nℓ​​1​i∑​Wji(ℓ)​ai(ℓ)​(x)+βbj(ℓ)​.

At each hidden layer, a(ℓ)=σ(z(ℓ))a^{(\ell)}=\sigma(z^{(\ell)})a(ℓ)=σ(z(ℓ)) coordinatewise. The output is fθ(x)=z(L)(x)f_\theta(x)=z^{(L)}(x)fθ​(x)=z(L)(x), with no final activation. These are the conventions of Section 2, PDF pp. 2–3. Matrix storage order in Lean uses destination then source; the displayed operation is unchanged.

For output coordinates k,k′k,k'k,k′, set

Θkk′(L)(θ;x,y)=∑p∂θpfθ,k(x) ∂θpfθ,k′(y).\Theta^{(L)}_{kk'}(\theta;x,y)=\sum_p \partial_{\theta_p}f_{\theta,k}(x)\, \partial_{\theta_p}f_{\theta,k'}(y).Θkk′(L)​(θ;x,y)=p∑​∂θp​​fθ,k​(x)∂θp​​fθ,k′​(y).

The sum includes every weight and every bias, as in Section 4, PDF p. 5.

The covariance kernel starts with

Σ(1)(x,y)=⟨x,y⟩d+β2.\Sigma^{(1)}(x,y)=\frac{\langle x,y\rangle}{d}+\beta^2.Σ(1)(x,y)=d⟨x,y⟩​+β2.

Given a centered Gaussian pair (U,V)(U,V)(U,V) with covariance matrix obtained by evaluating Σ(ℓ)\Sigma^{(\ell)}Σ(ℓ) on (x,y)(x,y)(x,y), define

Σ(ℓ+1)(x,y)=E[σ(U)σ(V)]+β2,Σ˙(ℓ+1)(x,y)=E[σ′(U)σ′(V)].\Sigma^{(\ell+1)}(x,y)=\mathbb E[\sigma(U)\sigma(V)]+\beta^2, \qquad \dot\Sigma^{(\ell+1)}(x,y)=\mathbb E[\sigma'(U)\sigma'(V)].Σ(ℓ+1)(x,y)=E[σ(U)σ(V)]+β2,Σ˙(ℓ+1)(x,y)=E[σ′(U)σ′(V)].

The deterministic limiting NTK is

Θ∞(1)=Σ(1),Θ∞(ℓ+1)(x,y)=Θ∞(ℓ)(x,y)Σ˙(ℓ+1)(x,y)+Σ(ℓ+1)(x,y).\Theta_\infty^{(1)}=\Sigma^{(1)},\qquad \Theta_\infty^{(\ell+1)}(x,y)=\Theta_\infty^{(\ell)}(x,y) \dot\Sigma^{(\ell+1)}(x,y)+\Sigma^{(\ell+1)}(x,y).Θ∞(1)​=Σ(1),Θ∞(ℓ+1)​(x,y)=Θ∞(ℓ)​(x,y)Σ˙(ℓ+1)(x,y)+Σ(ℓ+1)(x,y).

These recurrences appear in Section 4.1, Proposition 1 and Theorem 1, PDF p. 5; their displays are unnumbered.

Formalization targets

The goal is Theorem 1, on every fixed finite family X=(x1,…,xN)X=(x_1,\ldots,x_N)X=(x1​,…,xN​) of inputs and for every ε>0\varepsilon>0ε>0:

Pr⁡ ⁣(∃i,j,k,k′:∣Θkk′(L)(θ;xi,xj)−Θ∞(L)(xi,xj)δkk′∣>ε)⟶0.\Pr\!\left(\exists i,j,k,k': \left|\Theta^{(L)}_{kk'}(\theta;x_i,x_j) -\Theta_\infty^{(L)}(x_i,x_j)\delta_{kk'}\right|>\varepsilon\right) \longrightarrow0.Pr(∃i,j,k,k′:​Θkk′(L)​(θ;xi​,xj​)−Θ∞(L)​(xi​,xj​)δkk′​​>ε)⟶0.

Here δkk′\delta_{kk'}δkk′​ is one when the output coordinates coincide and zero otherwise. The limit takes n1→∞n_1\to\inftyn1​→∞ first, then n2→∞n_2\to\inftyn2​→∞, through nh→∞n_h\to\inftynh​→∞, precisely as specified in Appendix A, PDF p. 11, and Appendix A.1, PDF pp. 12–13.

Two supporting milestones expose the required mathematical content. First, the recursively defined Σ(L)\Sigma^{(L)}Σ(L) has positive semidefinite Gram matrices on every finite input family and satisfies Σ(L)(x,x)≥β2\Sigma^{(L)}(x,x)\ge\beta^2Σ(L)(x,x)≥β2. This is a paper-derived well-definedness obligation for the covariance in Proposition 1. Second, Proposition 1 asserts joint convergence in distribution of (fθ,k(xi))i,k(f_{\theta,k}(x_i))_{i,k}(fθ,k​(xi​))i,k​ to the centered Gaussian vector with covariance Σ(L)(xi,xj)δkk′\Sigma^{(L)}(x_i,x_j)\delta_{kk'}Σ(L)(xi​,xj​)δkk′​. This expresses the paper's independent output Gaussian processes through all their finite-dimensional distributions.

What completing the mission would establish

The result connects an explicitly parameterized random finite network to a deterministic kernel computed from its activation and depth. All output correlations, bias contributions, and layer normalizations remain visible in that connection. It would provide a checked foundation on which a separate training-stability development could build.

The formal contribution is the passage from finite random Jacobians to the limiting kernel. It does not assume that the empirical NTK already equals its limit. Nor does the goal claim convergence of a training trajectory, positive definiteness on a sphere, an early-stopping guarantee, or a generalization bound; those are separate results and questions in the source.

Where the mathematical work lies

The parameter space changes with the widths. Outputs, hidden activations, and their parameter derivatives are dependent random quantities, so the limit of their products requires more than a scalar law of large numbers. The weak Gaussian limit alone also does not justify substituting an arbitrary discontinuous derivative into expectations. The Lipschitz-only hypothesis is part of the target and must be retained, including for nonsmooth activations. Remark 3, PDF p. 5 identifies almost-everywhere differentiation as the relevant convention.

Formalization scope and conventions

Lean represents parameter coordinates by a finite dependent index carrying a layer, destination neuron, and optional source neuron; the missing source denotes a bias. Initialization is the finite product of Mathlib's standard Gaussian measures. Network outputs are obtained by the displayed recursion, and NTK entries use actual Fréchet derivatives in coordinate directions. Mathlib's derivative is zero where differentiation fails; the proof must establish that the exceptional parameters are null under the stated initialization law.

Centered Gaussian laws use Mathlib's multivariateGaussian, including singular covariance. The covariance-validity milestone must justify its covariance interpretation. No invertibility, distinct-input, smooth-activation, or positive-definite-kernel assumption is added. Positive actual hidden widths are indexed as wi+1w_i+1wi​+1 for wi∈Nw_i\in\mathbb Nwi​∈N, a cofinal reindexing. Depth one, constant activations, repeated or zero inputs, and empty finite families are included. The empty family is harmless because the same theorem quantifies over every nonempty family as well.

The sequential filter puts the last hidden width outermost. For two hidden widths, a probability tolerance is met by first choosing a threshold for n2n_2n2​, then a threshold for n1n_1n1​ that may depend on n2n_2n2​. There is no uniform limit over the entire input space and no simultaneous-width assertion. The development uses Lean 4.30.0 and supported Mathlib revision c5ea00351c28e24afc9f0f84379aa41082b1188f. The model and statements are locally checked; the three theorem proofs remain open. Contributions to Gaussian covariance consistency, finite-dimensional distribution limits, almost-everywhere network differentiation, and the NTK limit are in scope.

Selected references

  • Arthur Jacot, Franck Gabriel, and Clément Hongler, Neural Tangent Kernel: Convergence and Generalization in Neural Networks, Advances in Neural Information Processing Systems 31, 2018. arXiv:1806.07572v4. Primary anchors: Section 2, PDF pp. 2–3; Section 4.1, PDF p. 5, Proposition 1, Theorem 1, Remarks 2–3; Appendix A and A.1, PDF pp. 11–13. Relevant displays have no equation numbers.
4 thms1 active userReviewed
🏆Completed
Machine LearningOptimization·Captain: Minghui

Optimization Methods for Large-Scale Machine Learning: Stochastic Gradient ConvergenceResearch Paper

Why stochastic-gradient convergence matters

Training a machine-learning model often means choosing a vector of parameters to minimize an average loss. Evaluating the full gradient can require processing an entire dataset. A stochastic-gradient method instead updates the parameters using a random direction obtained from a smaller amount of information. Its computational appeal raises a mathematical question: which assumptions on those directions and the stepsizes guarantee progress, and what kind of convergence follows?

This mission formalizes the core convergence theory in Section 4 of Bottou, Curtis, and Nocedal, Optimization Methods for Large-Scale Machine Learning. The results distinguish strongly convex objectives, where expected objective error can be controlled, from general smooth objectives, where the guarantee concerns gradients. They also distinguish constant stepsizes, which leave a noise-dependent error bound, from diminishing stepsizes.

Historical timeline

  • 1951: Robbins and Monro introduced stochastic approximation for finding a root using noisy observations. Their work is the historical foundation for the stepsize conditions used here; the original root-finding theorem is not a separate target of this mission. Original paper.
  • 2016: Bottou, Curtis, and Nocedal released the first version of their survey, organizing stochastic-gradient theory around smoothness and moment assumptions. arXiv record.
  • 2018: The revised survey appeared in SIAM Review. This mission fixes arXiv version 3 for stable theorem numbering and PDF page citations. Published article.

The mathematics targeted here is already proved in the literature; the task is its Lean formalization, not a claim that these convergence results are unresolved research conjectures.

Objective, algorithm, and probability model

Let F:Rd→RF:\mathbb R^d\to\mathbb RF:Rd→R be differentiable with an LLL-Lipschitz gradient, where L>0L>0L>0. On a probability space (Ω,A,P)(\Omega,\mathcal A,\mathbb P)(Ω,A,P), let Hk\mathcal H_kHk​ contain the history before step kkk. Starting from a deterministic vector w0w_0w0​, the algorithm uses positive deterministic stepsizes αk\alpha_kαk​ and random directions gkg_kgk​ to update

wk+1=wk−αkgk.w_{k+1}=w_k-\alpha_k g_k.wk+1​=wk​−αk​gk​.

The state wkw_kwk​ is measurable with respect to Hk\mathcal H_kHk​; the direction gkg_kgk​ is measurable with respect to Hk+1\mathcal H_{k+1}Hk+1​ and has a finite second moment. Conditional assertions hold almost surely. This uses the adapted-process formulation expressly permitted in footnote 4, PDF p. 22, rather than requiring independent sample seeds. The local index k=0k=0k=0 corresponds to the paper's k=1k=1k=1. Algorithm 4.1 and footnote 4.

Write Ek\mathbb E_kEk​ for conditioning on Hk\mathcal H_kHk​. The moment conditions use constants μG≥μ>0\mu_G\ge\mu>0μG​≥μ>0 and M,MV≥0M,M_V\ge0M,MV​≥0:

⟨∇F(wk),Ekgk⟩≥μ∥∇F(wk)∥2,∥Ekgk∥≤μG∥∇F(wk)∥,\langle\nabla F(w_k),\mathbb E_k g_k\rangle\ge\mu\|\nabla F(w_k)\|^2, \qquad \|\mathbb E_k g_k\|\le\mu_G\|\nabla F(w_k)\|,⟨∇F(wk​),Ek​gk​⟩≥μ∥∇F(wk​)∥2,∥Ek​gk​∥≤μG​∥∇F(wk​)∥, Ek∥gk∥2−∥Ekgk∥2≤M+MV∥∇F(wk)∥2.\mathbb E_k\|g_k\|^2-\|\mathbb E_k g_k\|^2 \le M+M_V\|\nabla F(w_k)\|^2.Ek​∥gk​∥2−∥Ek​gk​∥2≤M+MV​∥∇F(wk​)∥2.

Define MG=MV+μG2M_G=M_V+\mu_G^2MG​=MV​+μG2​. The iterates lie almost surely in an open region on which F≥Finf⁡F\ge F_{\inf}F≥Finf​ for a real lower bound Finf⁡F_{\inf}Finf​. These are Assumptions 4.1 and 4.3, PDF pp. 23–24, equations (4.6)–(4.9). Source.

Formalization targets

The goal is Theorem 4.10, Section 4.3, PDF p. 33, equations (4.30a)–(4.30b). Suppose

∑k=0∞αk=∞,∑k=0∞αk2<∞.\sum_{k=0}^\infty\alpha_k=\infty,\qquad \sum_{k=0}^\infty\alpha_k^2<\infty.k=0∑∞​αk​=∞,k=0∑∞​αk2​<∞.

For AK=∑k=0K−1αkA_K=\sum_{k=0}^{K-1}\alpha_kAK​=∑k=0K−1​αk​, establish both

∃S∈R:E ⁣[∑k=0K−1αk∥∇F(wk)∥2]⟶S,\exists S\in\mathbb R:\quad \mathbb E\!\left[\sum_{k=0}^{K-1}\alpha_k\|\nabla F(w_k)\|^2\right]\longrightarrow S,∃S∈R:E[k=0∑K−1​αk​∥∇F(wk​)∥2]⟶S, 1AKE ⁣[∑k=0K−1αk∥∇F(wk)∥2]⟶0.\frac{1}{A_K}\mathbb E\!\left[\sum_{k=0}^{K-1}\alpha_k\|\nabla F(w_k)\|^2\right] \longrightarrow0.AK​1​E[k=0∑K−1​αk​∥∇F(wk​)∥2]⟶0.

There is no convexity assumption and no restriction that the initial stepsizes already satisfy a small-step bound. Theorem 4.10.

Four milestones capture the surrounding theory. Lemma 4.4 gives the two successive conditional expected-descent inequalities (4.10a)–(4.10b), PDF pp. 24–25. It is a common input to the convergence results. Theorem 4.6 gives a geometric upper bound for strongly convex objectives with a constant stepsize. Theorem 4.7 gives the corresponding O(1/k)O(1/k)O(1/k) bound for αk=β/(γ+k+1)\alpha_k=\beta/(\gamma+k+1)αk​=β/(γ+k+1). These are parallel strongly convex targets, not prerequisites for the nonconvex goal. Theorem 4.8 gives finite-horizon sum and average squared-gradient bounds for general objectives with a constant stepsize. Section 4.

For example, if c>0c>0c>0 is the strong-convexity constant, d≥1d\ge1d≥1, and 0<a≤μ/(LMG)0<a\le\mu/(LM_G)0<a≤μ/(LMG​), Theorem 4.6 states, with B=aLM/(2cμ)B=aLM/(2c\mu)B=aLM/(2cμ) and F∗=inf⁡xF(x)F_*=\inf_xF(x)F∗​=infx​F(x),

E[F(wk)−F∗]≤B+(1−acμ)k(F(w0)−F∗−B).\mathbb E[F(w_k)-F_*]\le B+(1-ac\mu)^k(F(w_0)-F_*-B).E[F(wk​)−F∗​]≤B+(1−acμ)k(F(w0​)−F∗​−B).

The upper bound tends to BBB; this does not assert that the actual expected error tends to BBB. Every milestone retains the paper's constants and all displayed conclusions. Equations (4.13)–(4.14), PDF p. 26.

What a completed formalization provides

The result explains precisely how noise and stepsize interact. The general-objective goal guarantees that the stepsize-weighted expected squared gradients average to zero even when M>0M>0M>0. The strongly convex milestones quantify objective error and the effect of initialization. These results concern the stated quantities; they do not assert convergence of iterates, global optimality for a nonconvex objective, or almost-sure convergence. Sections 4.2–4.3.

A completed development would provide reusable Lean results for smooth objective functions, conditional moment bounds, stochastic updates, and expected convergence. The proposed statements are open proof obligations. Compilation establishes that the definitions and statements are well formed, not that their convergence claims have already been proved.

Mathematical and formal difficulties

Finite conditional expectations must be connected to unconditional integrals without relying on total-function defaults. The infinite-horizon result also requires careful handling of a finite initial segment: square summability gives eventually small steps, not a bound at every step. Strong convexity must justify the objective-gap estimates and the properties of the optimum. Treating a descent recurrence as a hypothesis would omit the analytic content that this mission is intended to formalize.

Formalization scope

The model uses real finite-dimensional Euclidean space, Mathlib gradients, filtrations, Bochner conditional expectations, and ordinary real integrals. The probability space is arbitrary; no finite-support or standard-Borel restriction is imposed. Directions have explicit finite second moments, making the finite-expectation convention in the paper visible. Square integrability of iterates and integrability of losses are consequences to establish, not extra model fields.

Strong convexity uses Mathlib's StrongConvexOn, equivalent here to Assumption 4.5's first-order inequality. The optimum is defined as the infimum of the range of FFF, with its finiteness to be derived in the strongly convex branch. That branch requires d≥1d\ge1d≥1: the paper's deduction c≤Lc\le Lc≤L implicitly uses a nontrivial space. The nonconvex statements allow d=0d=0d=0. Zero noise is allowed. Finite-horizon averages require K>0K>0K>0; the value assigned at K=0K=0K=0 does not affect an asymptotic limit.

Contributions to the conditional-descent infrastructure and any of the four milestones are welcome. Variance reduction, Newton-type methods, and the remainder of the survey are outside this initial mission.

Selected references

  • Léon Bottou, Frank E. Curtis, and Jorge Nocedal. Optimization Methods for Large-Scale Machine Learning. SIAM Review 60(2), 223–311, 2018. arXiv:1606.04838v3; DOI. All page numbers above refer to the 95-page arXiv v3 PDF.
  • Herbert Robbins and Sutton Monro. A Stochastic Approximation Method. Annals of Mathematical Statistics 22(3), 400–407, 1951. DOI. Historical background only.
6 thms1 active userReviewed
🏆Completed
Numerical Analysis·Captain: shivm

Randomized Kaczmarz: Exponential Convergence in ExpectationResearch Paper

Problem

Solve a consistent system Ax=bAx=bAx=b, with A∈Cm×nA\in\mathbb{C}^{m\times n}A∈Cm×n of full rank and m≥n≥1m\ge n\ge 1m≥n≥1. Kaczmarz's method (1937) projects the current iterate onto the solution hyperplane of one equation at a time. The cyclic version converges, but its rate depends on the order of the rows and has no clean bound in terms of a condition number.

Strohmer and Vershynin (2009) pick row iii at random with probability ∥ai∥22/∥A∥F2\|a_i\|_2^2/\|A\|_F^2∥ai​∥22​/∥A∥F2​ and prove

E ∥xk−x∥22≤(1−κ(A)−2)k ∥x0−x∥22,κ(A)=∥A∥Fσmin⁡(A).\mathbb{E}\,\|x_k-x\|_2^2 \le \bigl(1-\kappa(A)^{-2}\bigr)^k\,\|x_0-x\|_2^2,\qquad \kappa(A)=\frac{\|A\|_F}{\sigma_{\min}(A)}.E∥xk​−x∥22​≤(1−κ(A)−2)k∥x0​−x∥22​,κ(A)=σmin​(A)∥A∥F​​.

The rate does not depend on the number of equations mmm.

Setting

  • Rows. ai∈Cna_i\in\mathbb{C}^nai​∈Cn is the conjugate of row iii, so equation iii reads ⟨ai,x⟩=bi\langle a_i,x\rangle=b_i⟨ai​,x⟩=bi​.
  • Condition number. σmin⁡(A)=inf⁡∥z∥2=1∥Az∥2\sigma_{\min}(A)=\inf_{\|z\|_2=1}\|Az\|_2σmin​(A)=inf∥z∥2​=1​∥Az∥2​ and κ(A)=∥A∥F/σmin⁡(A)\kappa(A)=\|A\|_F/\sigma_{\min}(A)κ(A)=∥A∥F​/σmin​(A) (Demmel). It satisfies n≤κ(A)≤n ∥A∥2/σmin⁡(A)\sqrt n\le\kappa(A)\le\sqrt n\,\|A\|_2/\sigma_{\min}(A)n​≤κ(A)≤n​∥A∥2​/σmin​(A).
  • Algorithm 1. From any x0x_0x0​, draw row rrr independently with probability pr=∥ar∥22/∥A∥F2p_r=\|a_r\|_2^2/\|A\|_F^2pr​=∥ar​∥22​/∥A∥F2​ and set
xk+1=xk+br−⟨ar,xk⟩∥ar∥22 ar.x_{k+1}=x_k+\frac{b_r-\langle a_r,x_k\rangle}{\|a_r\|_2^2}\,a_r .xk+1​=xk​+∥ar​∥22​br​−⟨ar​,xk​⟩​ar​.
  • Expectation. E∥xk−x∥22\mathbb{E}\|x_k-x\|_2^2E∥xk​−x∥22​ is a finite sum over the mkm^kmk possible row sequences.

Targets

  • Theorem 2 (goal): the bound above, for every x0x_0x0​ and kkk.
  • Theorem 3: some x0≠xx_0\ne xx0​=x has E∥xk−x∥22≥(1−2k/κ(A)2)∥x0−x∥22\mathbb{E}\|x_k-x\|_2^2\ge(1-2k/\kappa(A)^2)\|x_0-x\|_2^2E∥xk​−x∥22​≥(1−2k/κ(A)2)∥x0​−x∥22​ for all k≥1k\ge1k≥1, so κ(A)−2\kappa(A)^{-2}κ(A)−2 is sharp up to a constant. Caveat: the source's proof only reaches the unsquared bound E∥xk−x∥2≥…\mathbb{E}\|x_k-x\|_2\ge\dotsE∥xk​−x∥2​≥… and then cites Jensen, which goes the wrong way. Its estimates give the squared bound with 444 in place of 222. Both forms are milestones.
  • Sharpness (§3.2): Theorem 2 is an equality when κ(A)=n\kappa(A)=\sqrt nκ(A)=n​.
  • Iteration count (§2.1): k≥2log⁡ε/log⁡(1−κ(A)−2)k\ge 2\log\varepsilon/\log(1-\kappa(A)^{-2})k≥2logε/log(1−κ(A)−2) steps give E∥xk−x∥22≤ε2∥x0−x∥22\mathbb{E}\|x_k-x\|_2^2\le\varepsilon^2\|x_0-x\|_2^2E∥xk​−x∥22​≤ε2∥x0​−x∥22​.

Proof idea

A single projection can barely reduce the error, when the error is almost orthogonal to the chosen row. On average it always does. If Z=aj/∥aj∥2Z=a_j/\|a_j\|_2Z=aj​/∥aj​∥2​ is drawn with probability pjp_jpj​, then

E ∣⟨z,Z⟩∣2=∥Az∥22∥A∥F2≥κ(A)−2∥z∥22.\mathbb{E}\,|\langle z,Z\rangle|^2=\frac{\|Az\|_2^2}{\|A\|_F^2}\ge\kappa(A)^{-2}\|z\|_2^2 .E∣⟨z,Z⟩∣2=∥A∥F2​∥Az∥22​​≥κ(A)−2∥z∥22​.

Pythagoras for one projection then gives E∥xk+1−x∥22≤(1−κ(A)−2) ∥xk−x∥22\mathbb{E}\|x_{k+1}-x\|_2^2\le(1-\kappa(A)^{-2})\,\|x_k-x\|_2^2E∥xk+1​−x∥22​≤(1−κ(A)−2)∥xk​−x∥22​; induct on kkk.

Formalization

  • Vectors live in EuclideanSpace ℂ (Fin n) and matrices in Matrix (Fin m) (Fin n) ℂ. Mathlib's inner product is conjugate-linear in its first argument, which is why aia_iai​ is a conjugated row.
  • Full rank is stated as injectivity of z↦Azz\mapsto Azz↦Az.
  • The expectation expErrSq is an explicit finite sum, so no measure theory is needed. The tower identity is a milestone.
  • A zero row makes the step the identity (Lean's division by zero) and has probability 000, so it is harmless.
  • Mathlib has no Kaczmarz iteration, scaled condition number or σmin⁡\sigma_{\min}σmin​ lower bound; the mission builds them.

History

  • 1937: Kaczmarz introduces the cyclic method and proves convergence, with no rate.
  • 1970: Gordon, Bender and Herman rediscover it as ART for tomography.
  • 2009: Strohmer and Vershynin give the first rate in terms of a condition number.
  • 2010 onward: extensions to noisy systems, block methods, SGD and sketch-and-project (Needell; Needell–Tropp; Needell–Srebro–Ward; Gower–Richtárik).

References

  • S. Kaczmarz, Angenäherte Auflösung von Systemen linearer Gleichungen, Bull. Int. Acad. Polon. Sci. Lett. A 35 (1937), 355–357.
  • T. Strohmer and R. Vershynin, A randomized Kaczmarz algorithm with exponential convergence, J. Fourier Anal. Appl. 15 (2009), 262–278. arXiv:math/0702226
  • J. Demmel, The probability that a numerical analysis problem is difficult, Math. Comp. 50 (1988), 449–480. DOI
  • D. Needell, Randomized Kaczmarz solver for noisy linear systems, BIT Numer. Math. 50 (2010), 395–403. arXiv:0902.0958
  • D. Needell, N. Srebro and R. Ward, Stochastic gradient descent, weighted sampling, and the randomized Kaczmarz algorithm, Math. Program. 155 (2016), 549–573. arXiv:1310.5715
  • R. M. Gower and P. Richtárik, Randomized iterative methods for linear systems, SIAM J. Matrix Anal. Appl. 36 (2015), 1660–1690. arXiv:1506.03296
12 thms1 active userReviewed
🏆Completed
Active InferenceBehaviorDynamical Systems+4·Captain: ActiveInference

Free Energy Principle I: the variational free-energy boundResearch Paper

Motivation

The free energy principle (FEP) proposes that a self-organizing system — a brain, an organism, an agent — persists by minimizing one quantity: the variational free energy of its sensory states under an internal generative model. Introduced by Karl Friston as a principle of brain function [Friston 2006] and stated in its unified form [Friston 2010], the principle makes a precise mathematical claim at its core: whatever internal state estimate the system holds, the free energy of incoming data is never below the data's surprisal (negative log marginal likelihood), and the excess is exactly the Kullback–Leibler divergence between the system's recognition density and the Bayesian posterior implied by the model. Active inference extends the same functional from perception to action and planning [Friston et al. 2017], and the same bound is known in machine learning as the evidence lower bound (ELBO) of variational inference [Parr et al. 2022].

Timeline of the mathematical content this mission formalizes:

  • 2006 — Friston, A free energy principle for the brain (J. Physiol. Paris 100): the bound stated for perception as variational inference on a generative model.
  • 2010 — Friston, The free-energy principle: a unified brain theory? (Nat. Rev. Neurosci. 11, 127–138): free energy as an upper bound on surprisal, presented as the core of a unified account.
  • 2017 — Friston, FitzGerald, Rigoli, Schwartenbeck, Pezzulo, Active inference: a process theory (Neural Comput. 29(1), 1–49): the same functional drives policy selection through expected free energy.
  • 2022 — Parr, Pezzulo, Friston, Active Inference (MIT Press): textbook treatment; the posterior-form identity F=DKL(Q ∥ P(s∣o))−log⁡P(o)F = D_{\mathrm{KL}}(Q\,\|\,P(s|o)) - \log P(o)F=DKL​(Q∥P(s∣o))−logP(o) as the central equation.
  • 2026 — fep_formal (Active Inference Institute): a machine-checked Lean 4 catalogue of 155 Free Energy Principle topics, compiled with zero proof holes against a pinned Mathlib. This mission transcribes the catalogue's core-free-energy chain — topic fep-002 and the foundation module active_inference — onto the platform, turning the first link of the FEP development into solvable community infrastructure.

Setting

Everything is finite, and laws are normalized real mass functions.

A finite law on a finite type α\alphaα is a function p:α→Rp : \alpha \to \mathbb{R}p:α→R with p(x)≥0p(x) \ge 0p(x)≥0 for every xxx and ∑xp(x)=1\sum_x p(x) = 1∑x​p(x)=1. A finite kernel from α\alphaα to β\betaβ assigns to each x∈αx \in \alphax∈α a normalized row over β\betaβ. The mission's definitions Def_fep_finite_laws and Def_fep_finite_information package these carriers with entropy, cross-entropy, and the KL divergence

DKL(p ∥ q)  =  ∑xq(x)⋅klFun ⁣(p(x)q(x)),klFun(x)=xlog⁡x+1−x,D_{\mathrm{KL}}(p\,\|\,q) \;=\; \sum_{x} q(x)\cdot \mathrm{klFun}\!\left(\frac{p(x)}{q(x)}\right), \qquad \mathrm{klFun}(x) = x\log x + 1 - x,DKL​(p∥q)=x∑​q(x)⋅klFun(q(x)p(x)​),klFun(x)=xlogx+1−x,

a totalized real-valued divergence that is finite even at zero-mass atoms (the convention 0⋅log⁡0=00 \cdot \log 0 = 00⋅log0=0 via Real.negMulLog) and nonnegative on normalized laws.

A finite generative model for active inference (definition Def_fep_generative_model) over finite types Policy,State,Outcome\mathsf{Policy}, \mathsf{State}, \mathsf{Outcome}Policy,State,Outcome consists of: an initial state law P(s)P(s)P(s); a policy-conditioned transition kernel; a state-to-outcome likelihood kernel; a preference law over outcomes; and a policy prior. Under a policy π\piπ the model predicts the state law P(s∣π)P(s \mid \pi)P(s∣π) and the outcome law P(o∣π)P(o \mid \pi)P(o∣π). A recognition density is any finite law QQQ over states — the system's internal estimate. At an outcome ooo with positive predicted mass, the Bayesian posterior P(⋅∣o,π)P(\cdot \mid o, \pi)P(⋅∣o,π) is the exact finite Bayes rule. The outcome surprisal is −log⁡P(o∣π)-\log P(o \mid \pi)−logP(o∣π), and the posterior-form variational free energy of a recognition density QQQ is

F[Q,o,π]  =  DKL(Q ∥ P(⋅∣o,π))  −  log⁡P(o∣π).F[Q, o, \pi] \;=\; D_{\mathrm{KL}}\big(Q \,\|\, P(\cdot \mid o, \pi)\big) \;-\; \log P(o \mid \pi).F[Q,o,π]=DKL​(Q∥P(⋅∣o,π))−logP(o∣π).

Formalization targets

Goal: the variational free-energy bound

For every generative model, every policy π\piπ, every outcome ooo with P(o∣π)>0P(o\mid\pi) > 0P(o∣π)>0, and every recognition density QQQ:

−log⁡P(o∣π)  ≤  F[Q,o,π].-\log P(o \mid \pi) \;\le\; F[Q, o, \pi].−logP(o∣π)≤F[Q,o,π].

The recognition density QQQ is universally quantified — the bound holds for whatever state estimate the system happens to carry.

Exactness, uniqueness, and the ELBO form

Three companions pin down the equality case, ordered weakest to strongest alongside the milestone list:

  • Exactness — the Bayesian posterior attains the bound:
F[P(⋅∣o,π), o, π]=−log⁡P(o∣π).F\big[P(\cdot \mid o, \pi),\, o,\, \pi\big] = -\log P(o \mid \pi).F[P(⋅∣o,π),o,π]=−logP(o∣π).
  • Uniqueness — equality characterizes the posterior, with no full-support assumption:
F[Q,o,π]=−log⁡P(o∣π)  ⟺  Q=P(⋅∣o,π).F[Q, o, \pi] = -\log P(o \mid \pi) \iff Q = P(\cdot \mid o, \pi).F[Q,o,π]=−logP(o∣π)⟺Q=P(⋅∣o,π).
  • ELBO form — negating both sides:
−F[Q,o,π]  ≤  log⁡P(o∣π).-F[Q, o, \pi] \;\le\; \log P(o \mid \pi).−F[Q,o,π]≤logP(o∣π).

Measure-theoretic core

Independently of the finite model, in Mathlib's nonnegative extended reals R≥0∪{∞}\mathbb{R}_{\ge0} \cup \{\infty\}R≥0​∪{∞}, with qqq, ppp measures on any measurable space and s∈R≥0∪{∞}s \in \mathbb{R}_{\ge0} \cup \{\infty\}s∈R≥0​∪{∞}:

s  ≤  s+DKL(q ∥ p),s \;\le\; s + D_{\mathrm{KL}}(q \,\|\, p),s≤s+DKL​(q∥p),

the unconditional shape of the bound (topic fep-002 of the source catalogue), with the divergence taken as ∞\infty∞ when the log-likelihood ratio is not integrable.

Significance

The result itself. This inequality is the load-bearing step of the FEP: it converts "minimize free energy" into "move recognition toward the posterior," and it is the exact statement whose continuous, dynamic, and policy-selecting extensions (expected free energy, Markov blankets, non-equilibrium thermodynamics) form the rest of the FEP literature. Without it, the principle's variational step has no mathematical content.

Formalizing it. The mathematics here is classical — Gibbs' inequality — and the source development already proves every row with no proof holes. What the mission adds is faithful, reusable infrastructure: the definitions are published as platform nodes in the shared namespace FreeEnergyPrinciple, so later missions in this programme (expected free energy and policy selection, Markov blankets, Gaussian and continuous-time variants, already proved in the source repository) can import them instead of re-deriving the substrate. Status honesty: all eight items below are formalized and machine-checked locally against the platform environment; each is an open problem on the platform only in the sense that no proof has yet been submitted to it.

Difficulty

The bound itself is a one-line consequence of KL nonnegativity — the naive idea "prove it by simp on the KL sum" is essentially right, and the source proofs are correspondingly short. The actual difficulty is boundary precision, where plausible renderings go silently wrong:

  • The positivity premise P(o∣π)>0P(o \mid \pi) > 0P(o∣π)>0 is not decoration: the Bayesian posterior is defined only where the evidence has positive mass, and hiding that in a totalized division would change the statement.
  • The uniqueness characterization is not a formality: at zero-mass reference atoms the logarithmic cross-entropy identity degenerates, and the proof needs the normalization lemma DKL(p ∥ q)=0↔p=qD_{\mathrm{KL}}(p\,\|\,q) = 0 \leftrightarrow p = qDKL​(p∥q)=0↔p=q, which forces the recognition law's mass to zero wherever the posterior's is zero. A solver who proves the bound but states equality with a full-support hypothesis has proved something different from the source.
  • The measure-theoretic core is deliberately unconditional; adding finiteness side conditions to it would weaken the source's point that R≥0∪{∞}\mathbb{R}_{\ge0} \cup \{\infty\}R≥0​∪{∞} absorbs the degenerate cases.

A vacuous formalization — quantifying over a single distinguished recognition law, or taking "posterior" as an arbitrary variable — would trivialize the goal; the targets below rule this out by fixing the exact finite Bayes rule and universally quantifying QQQ.

Formalization scope

Committed conventions of this mission's Lean development:

  • All model carriers are finite types (Fintype); laws are R\mathbb{R}R-valued normalized mass functions; kernels are normalized rows. No measure-theoretic machinery below the finite substrate except for the measure-theoretic core milestone.
  • KL is the totalized real-valued finite divergence DKL(p ∥ q)=∑xq(x)⋅klFun(p(x)/q(x))D_{\mathrm{KL}}(p\,\|\,q) = \sum_x q(x)\cdot \mathrm{klFun}(p(x)/q(x))DKL​(p∥q)=∑x​q(x)⋅klFun(p(x)/q(x)); entropy uses Real.negMulLog, so 0⋅log⁡0=00 \cdot \log 0 = 00⋅log0=0 exactly, not by exception-handling.
  • The posterior is the exact finite Bayes rule FiniteKernel.posterior, taken at the explicit hypothesis 0<P(o∣π)0 < P(o \mid \pi)0<P(o∣π).
  • One mission-wide namespace FreeEnergyPrinciple; definitions live in the published definition files Def_fep_finite_laws, Def_fep_finite_information, Def_fep_generative_model, and every theorem item imports them. A Free Energy Principle II mission (expected free energy) is expected to reuse the same namespace and definitions.
  • The measure-theoretic core uses Mathlib's InformationTheory.klDiv in ℝ≥0∞ with no finiteness hypotheses.
  • Contributions welcome: alternative measure-theoretic renderings of the core bound, the Gaussian instantiation of the same identity, and ports of the source repository's subsequent rows (Bayesian model reduction, expected free energy) onto these definitions.

Selected references

  • K. Friston, A free energy principle for the brain, Journal of Physiology (Paris) 100 (2006) 70–87. https://doi.org/10.1016/j.jphysparis.2006.10.001
  • K. Friston, The free-energy principle: a unified brain theory?, Nature Reviews Neuroscience 11 (2010) 127–138. https://doi.org/10.1038/nrn2787
  • K. Friston, T. FitzGerald, F. Rigoli, P. Schwartenbeck, G. Pezzulo, Active inference: a process theory, Neural Computation 29 (2017) 1–49. https://doi.org/10.1162/neco_a_00912
  • T. Parr, G. Pezzulo, K. J. Friston, Active Inference: The Free Energy Principle in Mind, Brain, and Behavior, MIT Press (2022). https://mitpress.mit.edu/9780262045354/active-inference/
  • D. A. Friedman, fep_formal: Towards Lean 4 Formalization of the Free Energy Principle (v1.2.0), Active Inference Institute (2026), the formal source of truth for this mission. https://github.com/ActiveInferenceInstitute/fep_formal
  • D. A. Friedman, Towards Lean 4 Formalization of the Free Energy Principle: AI-Driven Theorem Sketching and Verification for Active Inference and Bayesian Mechanics, Active Inference Journal (2026). https://doi.org/10.5281/zenodo.19699233
8 thms1 active userReviewed
🏆Completed
Machine LearningOptimization·Captain: Minghui

SCAFFOLD: Convergence with Client SamplingResearch Paper

Why control variates matter in federated optimization

Federated optimization trains one model using objectives held by many clients. Performing several local updates between communication rounds saves communication, but clients with different objectives can move in different directions. SCAFFOLD maintains a correction for each client to address this disagreement, including when only some clients participate. Karimireddy et al. establish convergence without a bound on how similar the client objectives are. The relevant result is Theorem III, Section 5, PDF p. 5.

SCAFFOLD: Convergence with Client Sampling concerns that known result's formalization. Its exact targets are finite-round bounds from the Appendix E analysis, covering strongly convex, general convex, and nonconvex objectives. The paper's FedAvg results and its separate quadratic-acceleration theorem are outside this scope.

Setting: local updates and sampled clients

There are N≥1N\ge1N≥1 clients, with differentiable objectives fi:Rd→Rf_i:\mathbb R^d\to\mathbb Rfi​:Rd→R. The global objective is f(x)=N−1∑ifi(x)f(x)=N^{-1}\sum_i f_i(x)f(x)=N−1∑i​fi​(x). Every client gradient is β\betaβ-Lipschitz, where β>0\beta>0β>0. A stochastic gradient query is conditionally unbiased and has conditional squared-error expectation at most σ2\sigma^2σ2, with σ≥0\sigma\ge0σ≥0. Current queries on different clients are conditionally independent given the full history. These make precise the fresh-oracle interpretation of A4–A5, Appendix B.1, PDF p. 14.

Each of T≥1T\ge1T≥1 rounds selects a uniform subset ArA_rAr​ of SSS clients, where 1≤S≤N1\le S\le N1≤S≤N. Each selected client takes K≥1K\ge1K≥1 local steps. Let xrx^rxr be the server model, circ_i^rcir​ its stored client control variates, and cr=N−1∑icirc^r=N^{-1}\sum_i c_i^rcr=N−1∑i​cir​. With constant local and global step sizes ηl>0\eta_l>0ηl​>0 and ηg≥1\eta_g\ge1ηg​≥1, a client starts at yi,0r=xry_{i,0}^r=x^ryi,0r​=xr and uses

yi,k+1r=yi,kr−ηl(gi,kr−cir+cr),xr+1=xr+ηgS∑i∈Ar(yi,Kr−xr).y_{i,k+1}^r=y_{i,k}^r-\eta_l\bigl(g_{i,k}^r-c_i^r+c^r\bigr), \qquad x^{r+1}=x^r+\frac{\eta_g}{S}\sum_{i\in A_r}(y_{i,K}^r-x^r).yi,k+1r​=yi,kr​−ηl​(gi,kr​−cir​+cr),xr+1=xr+Sηg​​i∈Ar​∑​(yi,Kr​−xr).

Option II replaces a participating client's control with K−1∑k=0K−1gi,krK^{-1}\sum_{k=0}^{K-1}g_{i,k}^rK−1∑k=0K−1​gi,kr​ and retains every other control. These are Algorithm 1, PDF p. 4, and Appendix E, equations (18)–(21), PDF pp. 25–26. Write h=Kηlηgh=K\eta_l\eta_gh=Kηl​ηg​ for the effective step size.

Formalization targets

Four milestones support a root goal that is the conjunction of the two convergence statements below.

GradientGrowth states, for convex clients and a global minimizer x⋆x^\starx⋆,

1N∑i∥∇fi(x)−∇fi(x⋆)∥2≤2β(f(x)−f(x⋆)).\frac1N\sum_i\|\nabla f_i(x)-\nabla f_i(x^\star)\|^2 \le2\beta\bigl(f(x)-f(x^\star)\bigr).N1​i∑​∥∇fi​(x)−∇fi​(x⋆)∥2≤2β(f(x)−f(x⋆)).

This is Appendix B.1, equation (9), PDF p. 14. PerturbedStrongConvexity states, for each μ\muμ-strongly convex client and μ≥0\mu\ge0μ≥0,

⟨∇fi(x),z−y⟩≥fi(z)−fi(y)+μ4∥y−z∥2−β∥z−x∥2,\langle\nabla f_i(x),z-y\rangle\ge f_i(z)-f_i(y) +\frac\mu4\|y-z\|^2-\beta\|z-x\|^2,⟨∇fi​(x),z−y⟩≥fi​(z)−fi​(y)+4μ​∥y−z∥2−β∥z−x∥2,

as in Appendix C, Lemma 5, PDF p. 17.

ConvexFiniteRoundConvergence allows arbitrary deterministic initial controls ci0c_i^0ci0​. Assume all clients are μ\muμ-strongly convex with μ≥0\mu\ge0μ≥0, including ordinary convexity when μ=0\mu=0μ=0, and fix a minimizer x⋆x^\starx⋆ of fff. Define

C0=1N∑i∥ci0−∇fi(x⋆)∥2,V0=∥x0−x⋆∥2+9Nh2SC0,C_0=\frac1N\sum_i\|c_i^0-\nabla f_i(x^\star)\|^2, \qquad V_0=\|x^0-x^\star\|^2+\frac{9Nh^2}{S}C_0,C0​=N1​i∑​∥ci0​−∇fi​(x⋆)∥2,V0​=∥x0−x⋆∥2+S9Nh2​C0​, q=1−μh2,wr=q−(r+1),WT=∑r=0T−1wr.q=1-\frac{\mu h}{2},\qquad w_r=q^{-(r+1)},\qquad W_T=\sum_{r=0}^{T-1}w_r.q=1−2μh​,wr​=q−(r+1),WT​=r=0∑T−1​wr​.

For h≤1/(81β)h\le1/(81\beta)h≤1/(81β) and μh≤S/(15N)\mu h\le S/(15N)μh≤S/(15N), the target is

1WT∑r=0T−1wr E[f(xr)−f(x⋆)]≤V0hWT+12hσ2KS(1+Sηg2).\frac1{W_T}\sum_{r=0}^{T-1}w_r\, \mathbb E\bigl[f(x^r)-f(x^\star)\bigr] \le\frac{V_0}{hW_T} +\frac{12h\sigma^2}{KS}\left(1+\frac S{\eta_g^2}\right).WT​1​r=0∑T−1​wr​E[f(xr)−f(x⋆)]≤hWT​V0​​+KS12hσ2​(1+ηg2​S​).

This is a finite-round formulation of Appendix E.1, Lemma 15, PDF p. 30; its μ=0\mu=0μ=0 case is the first bound on PDF p. 31.

NonconvexFiniteRoundConvergence assumes a lower bound flowerf_\mathrm{lower}flower​ for fff and initializes every client control with KKK fresh gradients at x0x^0x0. Put F0=f(x0)−flowerF_0=f(x^0)-f_\mathrm{lower}F0​=f(x0)−flower​. For h≤(S/N)2/3/(24β)h\le(S/N)^{2/3}/(24\beta)h≤(S/N)2/3/(24β), establish

1T∑r=0T−1E∥∇f(xr)∥2≤14F0hT+70βhσ2KS(1+Sηg2).\frac1T\sum_{r=0}^{T-1}\mathbb E\|\nabla f(x^r)\|^2 \le\frac{14F_0}{hT} +\frac{70\beta h\sigma^2}{KS}\left(1+\frac S{\eta_g^2}\right).T1​r=0∑T−1​E∥∇f(xr)∥2≤hT14F0​​+KS70βhσ2​(1+ηg2​S​).

This is the explicit finite-round consequence targeted from Appendix E.2, Lemma 19, PDF p. 34, with the initialization specified on PDF pp. 31 and 35. The full-client warm start's communication cost is separate from these TTT optimization rounds.

What the result establishes

The bounds quantify optimization progress under stochastic gradients, several local steps, and partial participation. They permit arbitrarily different client objectives within the stated smoothness and convexity assumptions. Their output is a weighted random server iterate, represented by its expected loss, or a uniform random server iterate for the squared-gradient guarantee; this follows the output convention in equation (22), PDF p. 26.

The mathematical convergence analysis is published. The open work here is a Lean proof under the explicit stochastic-run model. The proposed statements do not themselves supply a machine-checked convergence proof. A completed development would provide reusable results about sampled finite averages, adaptive gradient queries, and optimization with stored noisy controls.

Where the difficulty lies

Local gradients are evaluated at different client states, and inactive clients retain controls computed in earlier rounds. Consequently, treating the server update as a centralized stochastic-gradient step discards both local disagreement and stale-control error. The challenge is to control these quantities while preserving their dependence on earlier randomness, as reflected in Appendix E.1–E.2, PDF pp. 26–35.

The source also needs careful transcription. The printed Theorem VII nonconvex noise term on PDF p. 25 differs from Lemma 19 in its smoothness and sampling factors, while output indices differ between equation (22) and the finite sum on p. 31. The exact targets above use the proof's finite-round constants and explicit indexing; they do not claim a verbatim formalization of every printed asymptotic rate.

Formalization scope

SCAFFOLD.Space is finite-dimensional real Euclidean space; SCAFFOLD.Problem records differentiable client objectives and smoothness. SCAFFOLD.Run records a standard Borel probability space, full-history filtration, measurable square-integrable iterates and oracle samples, and the concrete updates. Virtual local paths are generated before a fresh uniform size-SSS subset is sampled, as permitted by the paragraph after equation (22), PDF p. 26.

The conventions include S=NS=NS=N, K=1K=1K=1, zero noise, and μ=0\mu=0μ=0. The output indices are precisely 0,…,T−10,\ldots,T-10,…,T−1. Convex initial controls are deterministic; the nonconvex branch uses the specified stochastic warm start. The run definition assumes no descent inequality or convergence conclusion. Contributions should establish the four named propositions and necessary analysis/probability infrastructure while retaining these semantics.

Selected references

  • Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, and Ananda Theertha Suresh, SCAFFOLD: Stochastic Controlled Averaging for Federated Learning, ICML 2020, PMLR 119:5132–5143; arXiv:1910.06378v4, revised 2021. Primary scope: Theorem III, PDF p. 5; A3–A5 and (9), p. 14; Lemma 5, p. 17; Appendix E, pp. 25–35, especially Lemmas 15 and 19.
6 thms1 active userReviewed
🏆Completed
Convex OptimizationMachine Learning·Captain: Minghui

A Field Guide to Federated Optimization: Convex FedAvg ConvergenceResearch Paper

Why local training needs a convergence guarantee

Federated optimization studies learning when data and computation are spread across clients. Communicating after every stochastic gradient step can be costly, so clients often take several steps before averaging their models. The difficulty is that different clients can optimize different objective functions. Their models then move apart between communication rounds. A convergence guarantee must account for both stochastic gradient noise and this disagreement. Wang et al. give an explicit analysis of this tradeoff in A Field Guide to Federated Optimization, Section 6.1.

The relevant historical sequence is the introduction of FedAvg by McMahan et al. in 2017, the development of local-SGD convergence analyses reviewed by Wang et al., and the unified illustrative analysis in the 2021 field guide. The present target is that guide's known convex convergence theorem, rather than a new conjecture about arbitrary federated learning. The remaining open task is a Lean proof of the stated result. The mission is categorized as ResearchPaper: it formalizes a specific known result rather than proposing a new mathematical conjecture.

Setting: full participation with uniform weights

There are M≥1M\ge1M≥1 clients and a parameter vector in Rd\mathbb R^dRd. Client iii has a differentiable convex objective FiF_iFi​. The global objective is F(x)=M−1∑i=1MFi(x)F(x)=M^{-1}\sum_{i=1}^M F_i(x)F(x)=M−1∑i=1M​Fi​(x). Every local gradient is LLL-Lipschitz for the same L>0L>0L>0. Fix a global minimizer x⋆x^\starx⋆ of FFF and a deterministic initial model x0x_0x0​, and write D=∥x0−x⋆∥D=\|x_0-x^\star\|D=∥x0​−x⋆∥.

Every client participates in every round. Each of T≥1T\ge1T≥1 rounds consists of τ≥1\tau\ge1τ≥1 local steps with constant learning rate η\etaη. If xit,kx_i^{t,k}xit,k​ is client iii's state after kkk local steps of round ttt, its next state is xit,k+1=xit,k−ηgit,kx_i^{t,k+1}=x_i^{t,k}-\eta g_i^{t,k}xit,k+1​=xit,k​−ηgit,k​. At the next round all clients restart from the average of the preceding round's terminal states. The shadow iterate is xˉt,k=M−1∑ixit,k\bar x^{t,k}=M^{-1}\sum_i x_i^{t,k}xˉt,k=M−1∑i​xit,k​; it is defined even at local steps where clients do not communicate.

On a probability space (Ω,A,P)(\Omega,\mathcal A,\mathbb P)(Ω,A,P), the history before a step contains all past oracle draws. The stochastic gradients are conditionally unbiased, their conditional squared errors have expectation at most σ2\sigma^2σ2, and the different clients' current gradients are conditionally independent. The heterogeneity bound is ∥∇Fi(x)−∇F(x)∥≤ζ\|\nabla F_i(x)-\nabla F(x)\|\le\zeta∥∇Fi​(x)−∇F(x)∥≤ζ for every client and every point, where σ,ζ≥0\sigma,\zeta\ge0σ,ζ≥0. These are the assumptions of Section 6.1.1, PDF p. 40, equations (11)–(14), with the history and independence convention used explicitly in Appendix D.1 immediately after equation (27), PDF p. 87.

Formalization targets

The principal goal is Theorem 1, equation (15). For 0<η≤1/(4L)0<\eta\le1/(4L)0<η≤1/(4L), establish

E ⁣[1τT∑t=0T−1∑k=1τ(F(xˉt,k)−F(x⋆))]≤D22ητT+ησ2M+4τη2Lσ2+18τ2η2Lζ2.\mathbb E\!\left[\frac1{\tau T}\sum_{t=0}^{T-1}\sum_{k=1}^{\tau} \bigl(F(\bar x^{t,k})-F(x^\star)\bigr)\right] \le \frac{D^2}{2\eta\tau T}+\frac{\eta\sigma^2}{M} +4\tau\eta^2L\sigma^2+18\tau^2\eta^2L\zeta^2.E[τT1​t=0∑T−1​k=1∑τ​(F(xˉt,k)−F(x⋆))]≤2ητTD2​+Mησ2​+4τη2Lσ2+18τ2η2Lζ2.

Two source milestones describe the intermediate results. Lemma 1 bounds the conditional average loss within a round by the decrease of squared distance to the minimizer, plus a noise term and a sum of client disagreements. Lemma 2 bounds each conditional squared disagreement by 18τ2η2ζ2+4τη2σ218\tau^2\eta^2\zeta^2+4\tau\eta^2\sigma^218τ2η2ζ2+4τη2σ2. Both are stated on PDF p. 41, Section 6.1.2, with proofs in Appendix D, PDF pp. 86–88. They remain genuine open proof obligations; the algorithm model does not assume either estimate.

An additional milestone records the same theorem's tuned-step consequence, equations (16)–(17), in the regime D,σ,ζ>0D,\sigma,\zeta>0D,σ,ζ>0. With

η=min⁡{14L,MDτTσ,D2/3τ2/3T1/3L1/3σ2/3,D2/3τT1/3L1/3ζ2/3},\eta=\min\left\{\frac1{4L}, \frac{\sqrt M D}{\sqrt\tau\sqrt T\sigma}, \frac{D^{2/3}}{\tau^{2/3}T^{1/3}L^{1/3}\sigma^{2/3}}, \frac{D^{2/3}}{\tau T^{1/3}L^{1/3}\zeta^{2/3}}\right\},η=min{4L1​,τ​T​σM​D​,τ2/3T1/3L1/3σ2/3D2/3​,τT1/3L1/3ζ2/3D2/3​},

the same expected loss is at most

2LD2τT+2σDMτT+5L1/3σ2/3D4/3τ1/3T2/3+19L1/3ζ2/3D4/3T2/3.\frac{2LD^2}{\tau T}+\frac{2\sigma D}{\sqrt{M\tau T}} +\frac{5L^{1/3}\sigma^{2/3}D^{4/3}}{\tau^{1/3}T^{2/3}} +\frac{19L^{1/3}\zeta^{2/3}D^{4/3}}{T^{2/3}}.τT2LD2​+MτT​2σD​+τ1/3T2/35L1/3σ2/3D4/3​+T2/319L1/3ζ2/3D4/3​.

The principal goal includes zero-noise and zero-heterogeneity cases. The extra positivity conditions apply only to the printed tuned-step formula, whose denominators otherwise require separate conventions.

What this establishes

The bound separates an initial-distance term, a noise term improved by the number of clients, and two costs of local updates. It quantifies how local work interacts with stochastic noise and differing client objectives. Its conclusion concerns the average objective gap along the post-update shadow sequence; it does not assert the same bound for every last iterate or for the average of client losses. These distinctions follow directly from the quantity defined in equation (14).

A completed formalization would provide reusable checked components for stochastic optimization: finite client averages, history-conditioned oracle assumptions, per-round potential estimates, and disagreement bounds. The paper supplies the mathematical proof; this draft supplies checked statements and definitions. No convergence proof is claimed by creating or compiling the proposal.

Where the difficulty lies

The average update evaluates each gradient at its own client's state. It therefore does not directly equal a centralized stochastic-gradient step at the shadow iterate. A proof must control that discrepancy quantitatively, preserve the conditioning on the round's starting history, and justify the 1/M1/M1/M noise improvement using independent client sampling. Ignoring the sampling relationship can invalidate the advertised bound even for scalar quadratic objectives.

Formalization scope

The model uses finite-dimensional real Euclidean space, including the harmless zero-dimensional case, and a standard Borel probability space. A filtration indexed by tτ+kt\tau+ktτ+k records the full past. Local states and gradients carry explicit measurability and finite-second-moment conditions. These probability conventions support actual Bochner and conditional expectations; integrals are not treated as arbitrary total functions without analytic obligations.

The local objectives, global objective, gradients, iterates, and shadow averages are concrete functions. The model assumes neither a drift bound nor a progress bound. Source hypotheses are uniform in the model point, and the minimizer is an actual minimizer of the averaged objective. Unequal weighting, partial client participation, nonconvex objectives, adaptive step sizes, and privacy mechanisms are outside this particular theorem. Contributions should prove the named source lemmas or their necessary analytic infrastructure while retaining these statements.

Selected references

  • Jianyu Wang et al., A Field Guide to Federated Optimization, 2021, arXiv:2107.06917v1, Section 6.1.1–6.1.2, PDF pp. 40–41; Appendix D, PDF pp. 86–88.
  • H. Brendan McMahan et al., Communication-Efficient Learning of Deep Networks from Decentralized Data, AISTATS 2017, arXiv:1602.05629, the FedAvg algorithm cited by the field guide. This is historical context, not an additional target.
5 thms1 active userReviewed
🏆Completed
Statistics·Captain: burkh4rt

Discriminative Kalman Filter asymptoticsResearch Paper

Motivation

Bayesian filtering estimates an unobserved state from measurements arriving over time. A filter combines what the state dynamics predict with what the newest observation says. In neural decoding, for example, the state may describe an intended movement while the observation contains activity from many recorded neurons. The observation can have many more coordinates than the state and need not follow a linear Gaussian observation model.

The Discriminative Kalman Filter (DKF) uses a Gaussian approximation to the state conditional on the newest observation. It combines that approximation with a Gaussian state transition and a correction for the stationary state distribution. The resulting recursion retains a mean vector and covariance matrix. Burkhart et al. developed this construction and proved an asymptotic justification in Theorem 2 of Appendix B.

The historical starting point is the linear Gaussian filter of Kalman (1960). The 2020 DKF paper changes how observation information enters the update and establishes a corresponding approximation theorem. The present mission concerns formal verification of that published theorem.

Setting

The state space is Rd\mathbb R^dRd for a positive finite dimension ddd. Write ηd(z;m,C)\eta_d(z;m,C)ηd​(z;m,C) for the ordinary multivariate Gaussian density with mean mmm and symmetric positive-definite covariance CCC. Densities and their L1L^1L1 distances are with respect to Lebesgue measure.

The state model has a matrix AAA and positive-definite covariance matrices Γ,S\Gamma,SΓ,S satisfying

S=ASA⊤+Γ.S=ASA^\top+\Gamma.S=ASA⊤+Γ.

Its stationary density and transition density are

p(z)=ηd(z;0,S),τ(y,z)=ηd(z;Ay,Γ).p(z)=\eta_d(z;0,S),\qquad \tau(y,z)=\eta_d(z;Ay,\Gamma).p(z)=ηd​(z;0,S),τ(y,z)=ηd​(z;Ay,Γ).

For an integrable density sss, prediction gives

(τs)(z)=∫τ(y,z)s(y) dy.(\tau s)(z)=\int\tau(y,z)s(y)\,dy.(τs)(z)=∫τ(y,z)s(y)dy.

The discriminative update combines a previous filtering density sss with a density uuu for the state given the current observation:

u τs/p∥u τs/p∥1.\frac{u\,\tau s/p}{\|u\,\tau s/p\|_1}.∥uτs/p∥1​uτs/p​.

This expression is a probability density when its nonnegative weight has a finite, strictly positive integral. Dividing by ppp is part of the standard DKF under consideration.

For Gaussian inputs with parameters (a,V)(a,V)(a,V) and (b,U)(b,U)(b,U), define

G=AVA⊤+Γ,T=(U−1+G−1−S−1)−1,G=AVA^\top+\Gamma,\qquad T=(U^{-1}+G^{-1}-S^{-1})^{-1},G=AVA⊤+Γ,T=(U−1+G−1−S−1)−1, c=T(U−1b+G−1Aa).c=T(U^{-1}b+G^{-1}Aa).c=T(U−1b+G−1Aa).

The DKF step returns mean ccc and covariance TTT when the precision is invertible and the covariance is positive definite. The recursive filter starts from mean zero and covariance SSS, using the current observation's functions fff and QQQ as the Gaussian input mean and covariance. These are the updates in equation (2.7) of the paper.

Formalization targets

Fix sequences of probability densities sn,uns_n,u_nsn​,un​, indexed by positive integers, whose exact normalized updates

pn=unτsn/p∥unτsn/p∥1p_n=\frac{u_n\tau s_n/p}{\|u_n\tau s_n/p\|_1}pn​=∥un​τsn​/p∥1​un​τsn​/p​

are well defined for every index. Fix Gaussian density sequences sn′,un′s'_n,u'_nsn′​,un′​, a point bbb, and a probability measure PPP. The five assumptions are

A1:sn⇒P,A2:∥sn−sn′∥1⟶0,A3:un⇒δb,A4:∥un−un′∥1⟶0,A5:pn⇒δb.\begin{aligned} \mathrm{A1}:&\quad s_n\Rightarrow P,\\ \mathrm{A2}:&\quad \|s_n-s'_n\|_1\longrightarrow0,\\ \mathrm{A3}:&\quad u_n\Rightarrow\delta_b,\\ \mathrm{A4}:&\quad \|u_n-u'_n\|_1\longrightarrow0,\\ \mathrm{A5}:&\quad p_n\Rightarrow\delta_b. \end{aligned}A1:A2:A3:A4:A5:​sn​⇒P,∥sn​−sn′​∥1​⟶0,un​⇒δb​,∥un​−un′​∥1​⟶0,pn​⇒δb​.​

Here ⇒\Rightarrow⇒ denotes weak convergence, characterized by convergence of expectations of every bounded continuous real function; δb\delta_bδb​ is the unit point mass at bbb. The measure PPP need not have a density and may be degenerate.

The main goal is the complete conjunction of Theorem 2's conclusions, with separate milestones for each:

  • C1: sn′⇒Ps'_n\Rightarrow Psn′​⇒P.
  • C2: un′⇒δbu'_n\Rightarrow\delta_bun′​⇒δb​.
  • C3: the specific update
pn′=un′τsn′/p∥un′τsn′/p∥1p'_n=\frac{u'_n\tau s'_n/p}{\|u'_n\tau s'_n/p\|_1}pn′​=∥un′​τsn′​/p∥1​un′​τsn′​/p​

is a well-defined Gaussian density for all sufficiently large nnn.

  • C4: pn′⇒δbp'_n\Rightarrow\delta_bpn′​⇒δb​.
  • C5: ∥pn−pn′∥1⟶0\|p_n-p'_n\|_1\longrightarrow0∥pn​−pn′​∥1​⟶0.

A sixth milestone is Lemma 1 (DKF equation): the normalized Gaussian-input update has the explicit mean and covariance above whenever valid, and the two input weak limits imply its eventual validity and convergence to δb\delta_bδb​. It includes both the exact equation and the asymptotic assertion from the source.

Significance

In addition to neurodecoding with intracortical brain-computer interfaces, the DKF has also found applications in optimization and sequential data augmentation (see references). The original study was successfully reproduced by Casco-Rodriguez, et al. in ReScience C.

Difficulty

The inverse stationary density can grow in the tails, so small L1L^1L1 errors in the input densities do not immediately control the error after division and renormalization. Normalizing constants must remain finite and nonzero. The candidate Gaussian covariance must also become positive definite as a conclusion of the assumptions, rather than through an extra validity assumption imposed at every index.

There is a second distinction between convergence to a point mass and approximation in L1L^1L1. Two sequences may concentrate at the same point while retaining different shapes at shrinking scales. The C5 target therefore requires the full approximation argument, beyond the weak-convergence conclusions.

Formalization scope

Lean represents states as Fin d → ℝ and covariance matrices as real square matrices. The Gaussian density is the standard determinant-and-quadratic-form formula. The definition of Gaussian PDF includes positive-definite covariance and equality of densities almost everywhere. Thus null-set changes do not constrain the theorem artificially.

Probability density validity explicitly includes nonnegativity almost everywhere, integrability and total integral one. The L1L^1L1 quantity is an extended nonnegative integral. The update's validity explicitly requires measurable weight and a finite, strictly positive normalizer. Total expressions outside that domain supply no assumed probability interpretation; C3 establishes validity on a tail.

All density sequences use positive integer indices. The limit measure is a Mathlib probability measure. Weak convergence is tested against Mathlib bounded continuous functions using the actual measures generated by the densities. The stationary model, standard recursive DKF, exact update and approximate update are defined independently of the theorem conclusions.

The mission addresses deterministic Theorem 2 of Appendix B. The random-sequence extension in Remark 4, conditions implying a Bernstein–von Mises theorem, and induction over filtering time are separate developments. The proof plan follows the appendix through C1–C2, Lemma 1, C3–C4, and the five-term comparison for C5.

Selected references

  • M. C. Burkhart, D. M. Brandman, B. Franco, L. R. Hochberg and M. T. Harrison, The Discriminative Kalman Filter for Bayesian Filtering with Nonlinear and Nongaussian Observation Models, Neural Computation 32(5), 969–1017, 2020. DOI: 10.1162/neco_a_01275.
  • R. E. Kalman, A New Approach to Linear Filtering and Prediction Problems, Journal of Basic Engineering 82(1), 35–45, 1960. DOI: 10.1115/1.3662552.
  • M. C. Burkhart, A Discriminative Approach to Bayesian Filtering with Applications to Human Neural Decoding, Ph.D. dissertation, Brown University, 2019. DOI: 10.26300/nhfp-xv22.
  • D. M. Brandman, M. C. Burkhart, J. Kelemen, B. Franco, M. T. Harrison and L. R. Hochberg, Robust Closed-Loop Control of a Cursor in a Person with Tetraplegia using Gaussian Process Regression, Neural Computation 30(11), 2986–3008, 2018. DOI: 10.1162/neco_a_01129.
  • D. M. Brandman, T. Hosman, J. Saab, M. C. Burkhart, B. E. Shanahan, J. G. Ciancibello et al., Rapid calibration of an intracortical brain–computer interface for people with tetraplegia, Journal of Neural Engineering 15(2), 026007, 2018. DOI: 10.1088/1741-2552/aa9ee7.
  • J. Casco-Rodriguez, C. Kemere and R. G. Baraniuk, [Re] The Discriminative Kalman Filter for Bayesian Filtering with Nonlinear and Non-Gaussian Observation Models, ReScience C 10(1), article 3, 2025. DOI: 10.5281/zenodo.15172014, published PDF.
  • M. C. Burkhart, Discriminative Bayesian filtering lends momentum to the stochastic Newton method for minimizing log-convex functions, Optimization Letters 17, 657–673, 2023. DOI: 10.1007/s11590-022-01895-5.
10 thms1 active userReviewed
PreviousPage 11 of 12Next

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me