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 · 287 completed

Missions

Open282Completed287All569
🏆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
🏆Completed
Harmonic AnalysisMachine Learning·Captain: Elsie66

ClockRoPE: Random Fourier RotationsResearch Paper

Motivation

Transformer sequence models modulate attention scores by a function of the relative position between a query and a key: the attention logit between token mmm and token nnn is scaled by a fixed profile f(pm−pn)f(p_m - p_n)f(pm​−pn​). Realizing this modulation the naive way means evaluating fff once per pair (m,n)(m,n)(m,n) and materializing an L×LL\times LL×L adjustment over the whole sequence — quadratic in the sequence length LLL. Rotary Position Embedding (RoPE) Su et al. 2021 avoids this entirely: it rotates the query at position pmp_mpm​ and the key at position pnp_npn​ independently, each by an angle depending only on its own position, so that the pairwise quantity f(pm−pn)f(p_m-p_n)f(pm​−pn​) falls out of the dot product of the two separately rotated vectors — fff is never evaluated pairwise, and no L×LL\times LL×L matrix is ever built. This is what lets RoPE stay a linear, per-token preprocessing step compatible with efficient (sub-quadratic) attention implementations, rather than an O(L2)O(L^2)O(L2) modulation. The catch is that RoPE's specific log-linear frequency schedule bakes in one particular profile: a monotone, decaying fff. That schedule is a poor fit whenever the correlation structure of the data is not monotonically decaying with distance — the leading example being periodicity: in sequential recommendation, interactions separated by exactly one day or one week are more correlated than interactions separated by, say, half a day, and a decaying profile cannot express that "attention comes back" at the period.

Chen, Ainslie, Choromanski et al., ClockRoPE: Random Fourier Rotations for Temporal Routine Modeling (arXiv:2607.26369), ask a more general question first: which attention-modulation profiles fff can be realized at all by this same per-token, pairwise-iteration-free rotation trick — rotate each token once, on its own, and let the pairwise profile emerge from the dot product — and by what rotation-frequency schedule? Their answer is a random-features construction — sample the rotation frequencies from the kernel's own Fourier transform, rather than fixing them log-linearly — that realizes any continuous, normalized, positive-definite profile in expectation, with a quantified concentration rate, all while keeping the exact same per-token rotate-then-dot-product computation RoPE already uses. ClockRoPE is the periodic instance of this general theory, later deployed in a production-scale generative-retrieval system.

Setting

Fix an embedding dimension d=2nd = 2nd=2n and group a vector v∈Rdv \in \mathbb{R}^dv∈Rd into nnn consecutive feature pairs v(j)=(v2j,v2j+1)∈R2v^{(j)} = (v_{2j}, v_{2j+1}) \in \mathbb{R}^2v(j)=(v2j​,v2j+1​)∈R2 for j=0,…,n−1j = 0, \dots, n-1j=0,…,n−1. For an angle θ\thetaθ, let

R(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}R(θ)=(cosθsinθ​−sinθcosθ​)

be the 2×22\times 22×2 (Givens) rotation matrix. A real kernel f:R→Rf : \mathbb{R} \to \mathbb{R}f:R→R is positive definite if for every finite family of points x1,…,xN∈Rx_1,\dots,x_N \in \mathbb{R}x1​,…,xN​∈R and complex coefficients c1,…,cNc_1,\dots,c_Nc1​,…,cN​, ∑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​) has nonnegative real part; it is normalized if f(0)=1f(0) = 1f(0)=1. When fff is also continuous and Lebesgue-integrable, its Fourier transform

τ(ξ)=∫Rf(x)e−i2πξx dx\tau(\xi) = \int_{\mathbb{R}} f(x) e^{-i2\pi\xi x}\,dxτ(ξ)=∫R​f(x)e−i2πξxdx

is (by Bochner's theorem) a genuine probability density on R\mathbb{R}R: this is the distribution the mission's rotation frequencies are sampled from.

Given a query qm∈R2nq_m \in \mathbb{R}^{2n}qm​∈R2n at position pmp_mpm​, a key kn∈R2nk_n \in \mathbb{R}^{2n}kn​∈R2n at position pnp_npn​, and nnn i.i.d. frequencies ξ0,…,ξn−1∼τ\xi_0, \dots, \xi_{n-1} \sim \tauξ0​,…,ξn−1​∼τ, the Random Fourier Rotation (RFR) estimator is

g^(qm,kn,pm,pn)=∑j=0n−1(R(2πξjpm) qm(j))⊤(R(2πξjpn) kn(j)).\hat g(q_m, k_n, p_m, p_n) = \sum_{j=0}^{n-1} \big(R(2\pi\xi_j p_m)\, q_m^{(j)}\big)^\top \big(R(2\pi\xi_j p_n)\, k_n^{(j)}\big).g^​(qm​,kn​,pm​,pn​)=j=0∑n−1​(R(2πξj​pm​)qm(j)​)⊤(R(2πξj​pn​)kn(j)​).

g^\hat gg^​ is exactly the modulated attention logit computed by rotating query/key feature pairs with per-pair, sampled RoPE frequencies — the same operation standard RoPE performs, but with ξj\xi_jξj​ drawn from τ\tauτ instead of fixed by a log-linear schedule.

Formalization targets

Goal — convergence of the RFR estimator (Proposition 3.2)

P ⁣(∣1ng^(qm,kn,pm,pn)−1n qm⊤knf(pm−pn)∣≥ϵ)≤2exp⁡ ⁣(−ϵ2(2n)28∑j=0n−1(∥qm(j)∥ ∥kn(j)∥)2)P\!\left(\left|\tfrac1n \hat g(q_m,k_n,p_m,p_n) - \tfrac1n\, q_m^\top k_n f(p_m-p_n)\right| \ge \epsilon\right) \le 2\exp\!\left(-\frac{\epsilon^2(2n)^2}{8\sum_{j=0}^{n-1}\big(\lVert q_m^{(j)}\rVert\, \lVert k_n^{(j)}\rVert\big)^2}\right)P(​n1​g^​(qm​,kn​,pm​,pn​)−n1​qm⊤​kn​f(pm​−pn​)​≥ϵ)≤2exp(−8∑j=0n−1​(∥qm(j)​∥∥kn(j)​∥)2ϵ2(2n)2​)

for every ϵ>0\epsilon > 0ϵ>0. This is the mission's central target: it upgrades the mean identity below into a quantitative, non-asymptotic guarantee that the sampled estimator is close to the target profile with high probability, at a rate that is exponential in the embedding dimension d=2nd = 2nd=2n.

Milestone — unbiasedness of the RFR estimator (Proposition 3.1)

Eξ0,…,ξn−1∼τ[g^(qm,kn,pm,pn)]=qm⊤kn f(pm−pn).\mathbb{E}_{\xi_0,\dots,\xi_{n-1}\sim\tau}\big[\hat g(q_m,k_n,p_m,p_n)\big] = q_m^\top k_n\, f(p_m-p_n).Eξ0​,…,ξn−1​∼τ​[g^​(qm​,kn​,pm​,pn​)]=qm⊤​kn​f(pm​−pn​).

The expectation identity that the concentration bound above sharpens; it is the feasibility half of the claim ("this construction is correct on average") that the convergence half needs as its starting point.

Milestone — periodic case via Herglotz's theorem (Corollary 3.3)

For a continuous, positive-definite, TTT-periodic fff with f(0)=1f(0)=1f(0)=1 and Fourier coefficients αk=1T∫0Tf(x)e−i2πkx/T dx\alpha_k = \frac1T \int_0^T f(x) e^{-i2\pi kx/T}\,dxαk​=T1​∫0T​f(x)e−i2πkx/Tdx,

αk≥0 for all k∈Z,∑k=−∞∞αk=f(0)=1.\alpha_k \ge 0 \text{ for all } k \in \mathbb{Z}, \qquad \sum_{k=-\infty}^{\infty} \alpha_k = f(0) = 1.αk​≥0 for all k∈Z,k=−∞∑∞​αk​=f(0)=1.

The periodic specialization needed to apply the goal and first milestone with a discrete frequency distribution over harmonics k/Tk/Tk/T — the regime ClockRoPE actually deploys, since daily/weekly routines are periodic rather than merely decaying.

Significance

The result gives a general recipe — sample, don't hand-design — for turning any admissible attention-modulation profile into a RoPE-compatible rotation schedule, with a concentration guarantee that says how many feature pairs are needed before the sampled schedule reliably approximates the target profile. Crucially, the recipe changes only which frequencies the per-token rotation uses — it never touches the computational shape of RoPE itself: each query and key is still rotated once, independently, by an angle depending only on its own position, and the target pairwise profile f(pm−pn)f(p_m-p_n)f(pm​−pn​) is still recovered purely from the dot product of the two rotated vectors. So realizing an arbitrary positive-definite fff this way costs exactly what realizing RoPE's own log-linear profile costs — linear in the sequence length, with no pairwise evaluation of fff and no L×LL\times LL×L matrix ever materialized — rather than the quadratic cost a direct, per-pair implementation of an arbitrary modulation function would require. This subsumes standard RoPE's log-linear schedule as one instance and explains, via the periodic corollary, why a schedule built from the kernel's own spectrum (rather than an arbitrary log-linear one) is the right way to encode periodicity: nothing about the construction, or its efficiency, is specific to decay. The paper reports this translated into measured gains in a production-scale generative-retrieval system, which is unusual weight of practical evidence behind a Bochner/Herglotz-style spectral argument.

At the time of writing, none of these three results have a machine-checked proof; this mission asks for the first formalization of all three, together with the shared scaffolding (feature-pair extraction, the rotation estimator, and the notion of a positive-definite kernel) they are stated over.

Difficulty

The natural first attempt at the concentration bound is a direct union bound or a naive variance argument, but the estimator g^\hat gg^​ is a sum of nnn terms that are each bounded (each rotated pair lies on a fixed-radius circle) rather than governed by a variance bound that shrinks with nnn under a fixed frequency; the source proof instead applies McDiarmid's bounded-differences inequality, treating each sampled frequency ξj\xi_jξj​ as one coordinate of the input and bounding the one-coordinate change in g^\hat gg^​ by 2∥qm(j)∥∥kn(j)∥2\lVert q_m^{(j)}\rVert\lVert k_n^{(j)}\rVert2∥qm(j)​∥∥kn(j)​∥ via the maximal distance between two points on the unit circle — not by directly bounding a variance term. Establishing Proposition 3.1 itself already requires care: it requires justifying that τ\tauτ, defined purely as an integral transform of fff, is in fact a legitimate probability density (Bochner's theorem), and then a real/complex bookkeeping argument identifying the real inner product of rotated pairs with the real part of a product of complex exponentials.

Formalization scope

The mission works over the reals and represents feature pairs as functions Fin (2 * n) → ℝ sliced into Fin n-indexed pairs, matching the "nnn feature pairs, dimension d=2nd = 2nd=2n" convention used throughout; 2×22\times22×2 rotations are ordinary Matrix (Fin 2) (Fin 2) ℝ values built with Matrix.mulVec/Matrix.dotProduct, and expectation over i.i.d. τ\tauτ-distributed frequencies is formalized as integration against the product measure MeasureTheory.Measure.pi of n independent copies of the measure with density τ\tauτ (MeasureTheory.Measure.withDensity) — this is mathematically equivalent to, and more directly usable in Lean than, introducing an abstract probability space with named i.i.d. random variables.

Since a general continuous positive-definite kernel need not have an integrable Fourier transform (the periodic case in Corollary 3.3 is exactly the counterexample: its "Fourier transform" is a discrete measure, not a density) — the goal and first milestone add Integrable f as an explicit hypothesis beyond what the paper states in prose, so that τ\tauτ is genuinely a density rather than a junk value. This is not a strengthening of the target profiles the paper cares about in practice (Gaussian, Laplace, and the cosine/Gaussian priors used by ClockRoPE itself are all integrable) and mirrors the paper's own split between the density case (Propositions 3.1–3.2) and the discrete, purely-periodic case (Corollary 3.3). A formalization that dropped this hypothesis and instead let the Fourier integral silently evaluate to Lean's junk value (0 for non-integrable integrands) would make the goal statement possible to "prove" vacuously and must be avoided.

Definitions needed: a positive-definite-kernel predicate, the real-valued Fourier transform of a kernel, feature-pair extraction, the 2×22\times22×2 rotation matrix, and the RFR estimator itself — all reusable by any future mission formalizing RoPE-family positional encodings (e.g. STRING, nD-RoPE) or other random-Fourier-feature results. McDiarmid's inequality, if not already in Mathlib in the needed form, is itself a independently reusable contribution.

Selected references

  • Yiwen Chen, Joshua Ainslie, Krzysztof Choromanski, Xiang Gao, Su-Lin Wu, Yiping Yuan, Qian Sun, ClockRoPE: Random Fourier Rotations for Temporal Routine Modeling, 2026. arXiv:2607.26369
  • Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, Yunfeng Liu, RoFormer: Enhanced Transformer with Rotary Position Embedding, arXiv, 2021. arXiv:2104.09864
  • Ali Rahimi, Benjamin Recht, Random Features for Large-Scale Kernel Machines, NeurIPS, 2007.
  • Salomon Bochner, Monotone Funktionen, Stieltjessche Integrale und harmonische Analyse, Springer, 1933.
  • 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.
5 thms1 active userReviewed
🏆Completed
Harmonic AnalysisMathematical Physics·Captain: lisamegawatts

Finite Reflection Positivity Methods I: Split Weights and Infrared ModesTextbook

Motivation

Reflection positivity and infrared bounds form a standard finite-volume route from the geometry of a lattice reflection to quantitative control of long wavelength fluctuations. In the classical argument, reflection positivity supplies a Cauchy--Schwarz inequality for reflected observables, while Fourier diagonalization of the lattice Laplacian identifies the free covariance used in the infrared comparison. These ingredients underlie rigorous results on continuous-symmetry lattice systems in Fröhlich, Simon, and Spencer's development of infrared bounds and spontaneous symmetry breaking (1976), and the general theory of reflection positivity developed by Fröhlich, Israel, Lieb, and Simon (1978). Related technology appears in Fröhlich and Spencer's treatment of the two-dimensional Abelian spin systems and Coulomb gas (1981).

The analytic and model-specific theorems are substantial, but their finite algebraic interface is sharply separable. This mission isolates that interface so later clock, XY, and Gaussian-domination developments can share one checked notion of reflection, one spectral covariance convention, and one treatment of the constant mode.

Setting

Let XXX be a finite set of configurations on one side of a reflection plane. A full split configuration is a pair (x,y)∈X×X(x,y)\in X\times X(x,y)∈X×X, and reflection exchanges its two entries. A plus-half observable is a function F:X→RF:X\to \mathbb RF:X→R lifted to X×XX\times XX×X through the first coordinate. Its reflected copy therefore depends on the second coordinate.

A split weight is specified by a finite feature index AAA, real coefficients cac_aca​, and features ϕa:X→R\phi_a:X\to\mathbb Rϕa​:X→R:

W(x,y)=∑a∈Acaϕa(x)ϕa(y).W(x,y)=\sum_{a\in A}c_a\phi_a(x)\phi_a(y).W(x,y)=a∈A∑​ca​ϕa​(x)ϕa​(y).

For a finite family of plus-half observables FiF_iFi​, the reflected kernel is

Kij=∑(x,y)∈X×XW(x,y)Fi(x)Fj(y).K_{ij}=\sum_{(x,y)\in X\times X} W(x,y)F_i(x)F_j(y).Kij​=(x,y)∈X×X∑​W(x,y)Fi​(x)Fj​(y).

A real matrix is positive semidefinite here when it is symmetric and its quadratic form is nonnegative on every real coordinate vector.

The spectral side uses a finite mode set III with a distinguished zero mode 000. An infrared spectrum consists of a function λ:I→R\lambda:I\to\mathbb Rλ:I→R that is nonnegative and vanishes exactly at 000. For β>0\beta>0β>0, the free mode covariance is diagonal, equals zero at the constant mode, and has entry

Gkk=1βλkG_{kk}=\frac{1}{\beta\lambda_k}Gkk​=βλk​1​

away from zero. Covariance domination is tested only on source vectors whose zero-mode coordinate vanishes. The concrete spectral fixture is the 4×44\times44×4 periodic square lattice, with tensor-product discrete Fourier modes and the nearest-neighbor graph Laplacian.

Formalization targets

Finite reflection positivity

The first target identifies the split reflection pairing with the explicit double sum over the two halves. Under ca≥0c_a\ge0ca​≥0, the resulting reflected kernel must be positive semidefinite:

∑i,juiKijuj≥0.\sum_{i,j}u_iK_{ij}u_j\ge0.i,j∑​ui​Kij​uj​≥0.

Every such kernel must satisfy the two-observable chessboard inequality

Kij2≤KiiKjj.K_{ij}^{2}\le K_{ii}K_{jj}.Kij2​≤Kii​Kjj​.

Typed finite spectrum

For every Torus-4 frequency kkk and site xxx, the registered Fourier mode ψk\psi_kψk​ must satisfy the pointwise eigenvalue equation

(ΔT4ψk)(x)=λkψk(x).(\Delta_{\mathrm{T4}}\psi_k)(x)=\lambda_k\psi_k(x).(ΔT4​ψk​)(x)=λk​ψk​(x).

The eigenvalues must be nonnegative and vanish exactly at the constant mode, and these laws must be packaged as the same spectrum type consumed by the infrared definitions.

Zero-mode-restricted infrared bound

The diagonal free covariance must be positive semidefinite for β>0\beta>0β>0. If an interacting covariance CCC is quadratically dominated by GGG on sources with u0=0u_0=0u0​=0, then every nonzero Fourier mode must satisfy

Ckk≤1βλk(k≠0).C_{kk}\le\frac{1}{\beta\lambda_k}\qquad(k\ne0).Ckk​≤βλk​1​(k=0).

Two finite counterfixtures are part of the target. They assert that an arbitrary full-vertex reflected two-point matrix need not be positive semidefinite, and that domination restricted away from the zero mode need not extend to full-matrix domination.

Significance

The resulting interface prevents three substitutions that otherwise look notational but change the theorem. Reflection positivity is tested on observables supported on one half rather than on an arbitrary matrix indexed by all vertices. The infrared comparison excludes the constant mode rather than forcing a fluctuating zero mode below a covariance with zero diagonal. The graph-Laplacian eigenvalue is connected to the Fourier mode by an explicit pointwise theorem rather than by assigning a function the name laplacianEigenvalue.

Several ingredients already have machine-checked Lean proofs in the LeanProofs repository: the finite matrix Cauchy--Schwarz theorem, the Torus-4 DFT diagonalization and zero-mode theorem, and the diagonal free-covariance calculation. This mission reorganizes those results around a corrected consumer boundary and adds the split-half and off-zero adapters. It does not present the finite statements as new mathematics.

Difficulty

The main difficulty is maintaining the correct domain at each interface. A reflection of lattice sites does not by itself imply positive semidefiniteness of a correlation matrix indexed by every site; the tested observables and their support are part of the assertion. Likewise, a free covariance whose constant-mode entry is defined to be zero cannot dominate an arbitrary covariance on all source vectors. Finally, a Fourier multiplier used for a pseudospectral derivative is not automatically the eigenvalue of the nearest-neighbor graph Laplacian. The formal statements must keep these three objects distinct.

Formalization scope

All configuration, feature, observable, and mode types are finite. Kernels, weights, coefficients, source vectors, and quadratic forms are real. Complex numbers occur only in the explicit discrete Fourier modes. Reflected pairings are unnormalized finite sums; no partition function or probability measure is introduced. The inverse temperature satisfies β>0\beta>0β>0. The distinguished zero mode is part of the spectrum interface, and infrared domination is restricted to source vectors that vanish at that coordinate.

The mission does not assert reflection positivity of a clock or XY Gibbs measure, nonnegative Fourier coefficients of a physical cross-bond weight, Gaussian domination, a thermodynamic limit, a Kosterlitz--Thouless transition, or a universal jump. It also does not identify the Torus-4 graph spectrum with the Grid3 pseudospectral multiplier from the Fourier--Hodge packet. Those are separate future missions requiring additional model and analytic input.

The reusable outputs are the split-weight RP interface, the finite positive-semidefinite kernel API, the typed spectrum object, and the zero-mode-restricted domination predicate. Contributions should preserve the explicit half support and zero-mode restrictions; a proof obtained by adding the desired conclusion as a hypothesis is outside scope.

Selected references

  • J. Fröhlich, B. Simon, and T. Spencer, Infrared bounds, phase transitions and continuous symmetry breaking, Communications in Mathematical Physics 50 (1976), 79--95. https://doi.org/10.1007/bf01608557
  • J. Fröhlich, R. Israel, E. H. Lieb, and B. Simon, Phase transitions and reflection positivity. I. General theory and long range lattice models, Communications in Mathematical Physics 62 (1978), 1--34. https://doi.org/10.1007/bf01940327
  • J. Fröhlich and T. Spencer, The Kosterlitz--Thouless transition in two-dimensional Abelian spin systems and the Coulomb gas, Communications in Mathematical Physics 81 (1981), 527--602. https://doi.org/10.1007/bf01208273
  • LeanProofs, ReflectionPositivityInfraredBound.lean, exact repository snapshot dbf503b2909cc17787d40a21eb75a0c9354cc6ef. https://github.com/MonumentalSystems/LeanProofs/blob/dbf503b2909cc17787d40a21eb75a0c9354cc6ef/LeanProofs/StatMech/ReflectionPositivityInfraredBound.lean
11 thms1 active userReviewed
🏆Completed
Operations ResearchOptimization·Captain: StellaXin

Capped Base-Stock Policies: A 2.33-ApproximationResearch Paper

A performance guarantee for a simple replenishment rule

When replenishment takes several periods, an inventory decision commits stock before the demand that will consume it is known. Too much stock incurs holding costs; too little loses sales. An optimal decision can depend on the entire pipeline of outstanding orders. A rule with only two adjustable parameters is easier to implement, but its simplicity alone gives no guarantee on the cost it can incur.

Capped base-stock policies combine an inventory-position target with a maximum order quantity. The class was introduced and analyzed by Xin (2021). The present target is the finite-lead-time guarantee in Linwei Xin's Capped Base-Stock Policies: A 2.33-Approximation, specifically the author-supplied manuscript with source label thm-main. A public listing of the paper identifies the July 17, 2026 working paper; the supplied text is the authoritative version for this formalization.

Demand, stock, and delayed orders

Periods are discrete. Demand is a sequence of independent, identically distributed nonnegative real random variables DtD_tDt​ with finite, strictly positive mean μ\muμ. The deterministic lead time is an integer L≥1L\ge1L≥1. Holding and lost-sales rates are h>0h>0h>0 and p>0p>0p>0.

At the beginning of period ttt, ItI_tIt​ is on-hand inventory and x1,t,…,xL,tx_{1,t},\ldots,x_{L,t}x1,t​,…,xL,t​ are outstanding orders, with x1,tx_{1,t}x1,t​ due immediately. That arrival is received, an order qt≥0q_t\ge0qt​≥0 is placed, demand is realized, and costs are charged. The new order arrives LLL periods later. The equations are

It+1=(It+x1,t−Dt)+,xi,t+1=xi+1,t (i<L),xL,t+1=qt.I_{t+1}=(I_t+x_{1,t}-D_t)^+,\qquad x_{i,t+1}=x_{i+1,t}\ (i<L),\qquad x_{L,t+1}=q_t.It+1​=(It​+x1,t​−Dt​)+,xi,t+1​=xi+1,t​ (i<L),xL,t+1​=qt​.

Here u+=max⁡{u,0}u^+=\max\{u,0\}u+=max{u,0}. Unfilled demand is lost rather than backlogged. With ℓt=(Dt−It−x1,t)+\ell_t=(D_t-I_t-x_{1,t})^+ℓt​=(Dt​−It​−x1,t​)+, the period cost is hIt+1+pℓthI_{t+1}+p\ell_thIt+1​+pℓt​. Initial inventory and every pipeline coordinate are zero. A nonanticipative policy chooses orders using only information available before the current demand; policies may depend on the entire observed past and on independent private randomization.

For a policy π\piπ, its long-run expected average cost is

C(π)=lim sup⁡T→∞1T∑t=1TE[hIt+1π+pℓtπ],OPT=inf⁡π∈ΠC(π).C(\pi)=\limsup_{T\to\infty}\frac1T\sum_{t=1}^T\mathbb E[hI_{t+1}^\pi+p\ell_t^\pi],\qquad \mathrm{OPT}=\inf_{\pi\in\Pi}C(\pi).C(π)=T→∞limsup​T1​t=1∑T​E[hIt+1π​+pℓtπ​],OPT=π∈Πinf​C(π).

The capped rule is qt=min⁡{(S−It−∑i=1Lxi,t)+,r}q_t=\min\{(S-I_t-\sum_{i=1}^Lx_{i,t})^+,r\}qt​=min{(S−It​−∑i=1L​xi,t​)+,r} for finite S,r≥0S,r\ge0S,r≥0. Write CCBS∗=inf⁡S,r≥0C(πS,r)C^*_{\rm CBS}=\inf_{S,r\ge0}C(\pi_{S,r})CCBS∗​=infS,r≥0​C(πS,r​). Ordinary base stock is already included by taking r=Sr=Sr=S; no infinite order cap is required.

Formalization targets

For 0≤r≤μ0\le r\le\mu0≤r≤μ and m≥1m\ge1m≥1, set

Irm=max⁡0≤k≤m∑i=1k(r−Di),Gm(r,z)=E[(Irm+∑i=1m(Di−r)−z)+].I_r^m=\max_{0\le k\le m}\sum_{i=1}^k(r-D_i),\qquad G_m(r,z)=\mathbb E\left[\left(I_r^m+\sum_{i=1}^m(D_i-r)-z\right)^+\right].Irm​=0≤k≤mmax​i=1∑k​(r−Di​),Gm​(r,z)=E[(Irm​+i=1∑m​(Di​−r)−z)+].

Empty sums are zero. The lower certificate is

C‾=inf⁡{hz+p(μ−r):0≤r≤μ, z≥0, GL(r,z)≤L(μ−r), GL+1(r,z)≤(L+1)(μ−r)}.\underline C=\inf\{hz+p(\mu-r):0\le r\le\mu,\ z\ge0,\ G_L(r,z)\le L(\mu-r),\ G_{L+1}(r,z)\le(L+1)(\mu-r)\}.C​=inf{hz+p(μ−r):0≤r≤μ, z≥0, GL​(r,z)≤L(μ−r), GL+1​(r,z)≤(L+1)(μ−r)}.

The pair (0,0)(0,0)(0,0) is feasible. Both horizon constraints are retained. With

κL=1+4L2(L+1)(3L−1),\kappa_L=1+\frac{4L^2}{(L+1)(3L-1)},κL​=1+(L+1)(3L−1)4L2​,

the goal is Theorem 1's complete assertion:

CCBS∗≤κLC‾,CCBS∗≤κLOPT≤73OPT.C^*_{\rm CBS}\le\kappa_L\underline C,\qquad C^*_{\rm CBS}\le\kappa_L\mathrm{OPT}\le\frac73\mathrm{OPT}.CCBS∗​≤κL​C​,CCBS∗​≤κL​OPT≤37​OPT.

The exact rational constant is used; the title's 2.33 is a rounded description. Multiplicative inequalities also make sense when the optimal cost is zero.

Five supporting targets reproduce selected source statements: Proposition 1's lower-certificate bound; Proposition 2's finite-cap cost conclusion; Lemma 2's bound on a consecutive block in the greedy recursion; Proposition 3's ordinary-base-stock cost bound; and Proposition 4's two-branch inequality. The finite-cap and ordinary-base-stock parameters remain exactly (S,r)=((L+1)r+z,r)(S,r)=((L+1)r+z,r)(S,r)=((L+1)r+z,r) and S=(L+1)r+2zS=(L+1)r+2zS=(L+1)r+2z, respectively. Labels accompany the printed numbering so the supplied source is unambiguous.

What completing the mission establishes

The result gives a uniform cost guarantee for this policy class across all positive holding and penalty rates, every positive integer lead time, and arbitrary nonnegative demand laws with finite positive mean. It bounds the infimum of costs over the policy parameters; it does not by itself provide an algorithm for selecting parameters or assert that the infimum is attained. At L=1L=1L=1 the displayed coefficient is 2, while its uniform upper bound is 7/37/37/3.

The manuscript supplies mathematical proofs. This mission asks for checked proofs of their formal statements. Compiling the declarations confirms that they are well formed, not that the claims are proved. A completed development would provide reusable delayed-inventory dynamics, measurable history policies, average-cost optimization objects, finite-horizon demand envelopes, and policy-comparison results.

Where the formal work lies

The pipeline carries consequences of past decisions across multiple demand periods. Nonanticipativity and independence must be stated precisely before expectation and convexity arguments can be used. Also, existence of a stationary distribution alone does not identify its expected cost with a long-run cost from an empty initial system. The manuscript invokes stationary results from prior inventory work, including Xin and Goldberg (2016), and uses stationary CBS quantities in intermediate arguments. Their needed hypotheses and connections to the original objective require proof within a complete development.

The two cost bounds depend on both coordinates of a feasible lower-certificate pair. Losing either horizon constraint changes that certificate. Replacing it with an arbitrary scalar lower bound or assuming the policy comparisons would remove substantive parts of the result.

Formalization scope and conventions

Stock, orders, and demand take arbitrary nonnegative real values. Time is represented from zero in the operational model, corresponding to period one in the manuscript. The formal representation uses a canonical probability model with independent demand coordinates and an independent uniform private seed; measurable time-dependent decision functions use only preceding demands and that seed. Connecting arbitrary standard-Borel randomized controls to this canonical realization is a representation obligation. The zero-start optimum ranges over these general history policies, not only stationary or capped policies.

Expected nonnegative costs, their upper limits, and cost infima are represented in the extended nonnegative reals. Thus a policy with infinite expected cost does not acquire a fictitious zero value through a totalized real integral. The finite-horizon envelope expectations use the original integrable demand law. The greedy lemma uses integer-indexed sequences so subtraction of earlier times has no natural-number truncation; its blocks are nonempty, as required to define their maximum.

Definitions contain no unproved facts. In particular, stationarity, convergence from the empty initial state, lower bounds, and upper policy comparisons are not fields assumed by the model. Contributions to these intermediate obligations and to any of the five source targets support the central theorem.

Selected references

  • Linwei Xin, Capped Base-Stock Policies: A 2.33-Approximation, working paper, 2026. SSRN listing. Author-supplied LaTeX is authoritative: Theorem 1 (thm-main), Proposition 1 (lemma-lb), Proposition 2 (prop-finite-cap-bound), Lemma 2 (lem-greedy-window), Proposition 3 (prop-base-stock-bound), Proposition 4 (lem-two-branch). Source SHA-256: f353793c255e1ebed5f3ec541037284bd926183e3e5b71941f13e79c2d67cb7a.
  • Linwei Xin, Technical Note—Understanding the Performance of Capped Base-Stock Policies in Lost-Sales Inventory Models, Operations Research 69(1), 61–70, 2021. DOI.
  • Linwei Xin and David A. Goldberg, Optimality Gap of Constant-Order Policies Decays Exponentially in the Lead Time for Lost Sales Models, Operations Research 64(6), 1556–1565, 2016. DOI.
14 thms1 active userReviewed
🏆Completed
Operations Research·Captain: viratkota

Coherent Measures of Risk: the axioms, and why Value-at-Risk fails themResearch Paper

Motivation

In 1999 Artzner, Delbaen, Eber and Heath asked what a risk measure ought to satisfy, wrote down four axioms, and observed that the industry standard of the day -- Value-at-Risk -- fails one of them. The failing axiom is subadditivity: merging two positions should never require more capital than holding them apart. VaR can violate it, so under VaR a diversified book can appear riskier than its parts.

That observation did not stay academic. It is the reason the Basel framework moved its market-risk capital standard from Value-at-Risk to Expected Shortfall. Few results in mathematical finance have had a more direct regulatory consequence, and the mathematics is elementary enough to state completely.

Setting

A position is a payoff X : Fin (n+1) -> R across finitely many equally-weighted states, and a risk measure rho sends it to the capital that must be added to make it acceptable. Following Definition 2.4 of the paper, rho is coherent when it is translation-invariant, subadditive, positively homogeneous and monotone. Nonemptiness of the state space is carried in the index type so the worst case is always attained; no probability measure is needed for these four axioms, which is faithful to the paper -- Artzner et al. state T, S, PH and M without reference to one.

Value-at-Risk is defined here at an integer tolerance k rather than a probability level, which keeps the quantile unambiguous on a finite space: VaR X k is the least capital leaving at most k states in loss, corresponding to level k/(n+1).

The goal

The mission's goal theorem is the negative result: Value-at-Risk is not subadditive. A witness is 25 equiprobable states with X losing 100 in state 0 alone and Y losing 100 in state 1 alone. Each has one losing state in twenty-five, so at tolerance k = 1 both have VaR = 0; their sum loses in two states, exceeding the tolerance, so VaR (X+Y) 1 = 100 > 0 + 0. The witness was checked numerically before this mission was drafted; what is open is the Lean proof.

The milestones establish the positive contrast on the same footing: worst-case risk, the most conservative measure, satisfies all four axioms, so the failure is specific to VaR rather than inherent to risk measurement.

Source

P. Artzner, F. Delbaen, J.-M. Eber and D. Heath, Coherent Measures of Risk, Mathematical Finance 9 (1999) 203-228. Axioms T, S, PH and M are Definition 2.4; the failure of subadditivity for VaR and the diversification consequence are discussed in Section 3.

4 thms1 active userReviewed
🏆Completed
Machine LearningStatistics·Captain: willma

Don't Label Twice: Game, Set, MatchOpen Problem

The problem

(a) In a tennis match, you are the favorite, and win each point independently with probability q∈(1/2,1)q\in(1/2,1)q∈(1/2,1). Let n,mn,mn,m be odd positive integers greater than 111. You have the choice between playing a best-of-nmnmnm (i.e., you play nmnmnm points and whoever wins the majority of points wins the match), or a best-of-nnn of best-of-mmm's (i.e., the match is won by winning the majority of nnn "sets", and each "set" is won by winning the majority of mmm points). Prove that your probability of winning the match is strictly greater by playing the best-of-nmnmnm.

(b) We now consider two generalizations: m1,…,mkm_1,\ldots,m_km1​,…,mk​ are odd positive integers, while nnn is any positive integer, with all integers being greater than 111. You have the choice between playing a best-of-nm1⋯mknm_1\cdots m_knm1​⋯mk​, or a best-of-nnn of "sets", which are best-of-m1m_1m1​'s of "games", …, which are best-of-mkm_kmk​'s of "points". In both cases, now that nnn may be even, it is possible for the players to tie, in which case the match winner is determined by an independent fair coin. Prove again that your probability of winning the match is strictly greater by playing the best-of-nm1⋯mknm_1\cdots m_knm1​⋯mk​.

(c) We consider a further generalization where each completed "set" counts toward the match score in an independently random way:

  • with probability aaa, the winner gains 111 in the match score, as usual;
  • with probability bbb, the set is ignored and does not count toward the match score;
  • with probability ccc, the loser gains 111 in the match score;

with a+b+c=1a+b+c=1a+b+c=1 and a>ca>ca>c, so players are still incentivized to win sets (previously we had a=1a=1a=1, b=c=0b=c=0b=c=0). This random scoring rule is applied once per completed set, at the outermost layer only: the games and points inside a set are decided by plain majorities, with no randomness, and only the set's final result is scored. If you choose to play the best-of-nm1⋯mknm_1\cdots m_knm1​⋯mk​, then each individual point counts as a set and is subject to the same randomness with probabilities a,b,ca,b,ca,b,c. Prove that your probability of winning the match is still strictly greater by playing the best-of-nm1⋯mknm_1\cdots m_knm1​⋯mk​ (the fair-coin-on-ties convention continues).

(d) Continue from part (c), but change the fair-coin-on-ties convention so that you only win the match if you have a strictly greater match score than your opponent. Assuming b≥1/2b\ge1/2b≥1/2, prove that your probability of winning the match is strictly greater by playing the best-of-nm1⋯mknm_1\cdots m_knm1​⋯mk​.

Source and connection to Dorner–Hardt

Florian E. Dorner and Moritz Hardt, Don't Label Twice: Quantity Beats Quality when Comparing Binary Classifiers on a Budget, ICML 2024. arXiv:2402.02249 (v3, 8 April 2026).

The paper asks how to spend a fixed budget of noisy crowdworker labels when comparing two binary classifiers: one label each for many data points, or several labels per data point aggregated by majority vote. It proves, via Cramér's theorem, that one label each is asymptotically optimal, and states the finite-sample version as an open conjecture (Section 5, Conjecture 1), still open in the April 2026 revision. Its Section 3 displays the finite-sample inequality for the independent, homogeneous-label case and verifies it numerically over about five billion parameter settings.

Part (d) of this mission with one level of sets is that Section 3 inequality in tennis language. A point is a single crowdworker label being correct (qqq is the label accuracy); a set is a data point, whose test label is the majority of its mmm labels; and the scoring rule is what the two classifiers do with that label. Writing ppp for the worse classifier's accuracy and p+ϵp+\epsilonp+ϵ for the better one's, a set is scored to its winner when the better classifier alone matches the test label, ignored when the two classifiers agree, and scored to its loser when the worse classifier alone matches:

a=(p+ϵ)(1−p),c=p(1−p−ϵ),b=1−a−c,a=(p+\epsilon)(1-p),\qquad c=p(1-p-\epsilon),\qquad b=1-a-c,a=(p+ϵ)(1−p),c=p(1−p−ϵ),b=1−a−c,

so that a−c=ϵ>0a-c=\epsilon>0a−c=ϵ>0, and b≥1/2b\ge1/2b≥1/2 always holds because two classifiers of accuracy at least 1/21/21/2 agree on at least half the data. Substituting into the paper's Proposition 1 recovers its gap-indicator probabilities exactly: Pr⁡(+1)=qϵ+p(1−p−ϵ)\Pr(+1)=q\epsilon+p(1-p-\epsilon)Pr(+1)=qϵ+p(1−p−ϵ), Pr⁡(−1)=(1−q)ϵ+p(1−p−ϵ)\Pr(-1)=(1-q)\epsilon+p(1-p-\epsilon)Pr(−1)=(1−q)ϵ+p(1−p−ϵ). The paper's inequality also allows n=1n=1n=1 and q=1q=1q=1, which parts (c)–(d) exclude only because the inequality can fail to be strict at b=0b=0b=0 there; for b≥1/2b\ge1/2b≥1/2 the same argument covers those edge cases. The paper's Conjecture 1 as literally stated concerns a correlated-error setting (its Section 3.2) and is not claimed here.

Parts (a)–(c) go beyond the paper's setting: arbitrary nesting depth, a fair-coin tie rule, and no constraint on the ignore rate bbb. The hypothesis b≥1/2b\ge1/2b≥1/2 in part (d) cannot be dropped: with one level, (a,b,c)=(0.9,0.1,0)(a,b,c)=(0.9,0.1,0)(a,b,c)=(0.9,0.1,0), q=0.6q=0.6q=0.6, m=3m=3m=3, n=1n=1n=1, the single best-of-3 finishes strictly ahead with probability 0.58320.58320.5832 while three single points do so with probability 0.57610.57610.5761.

Timeline

  • Feb 2024 — arXiv v1; ICML 2024. Asymptotic theorem via Cramér; finite-sample statement conjectured; ~5·10⁹-configuration numerical sweep.
  • Oct 2024 — arXiv v2.
  • Apr 2026 — arXiv v3; conjecture still stated as open.
  • Aug 2026 — private proof of the Section 3 inequality (strict win, b≥1/2b\ge1/2b≥1/2, one level) via exponential tilting of the tie probability.
  • Sep 2026 — private proof of the fair-coin version with no constraint on bbb (Bernstein degree elevation and a hypergeometric parity argument), then of the full four-part statement via a pairing lemma for player-symmetric rules. This mission formalizes that proof.

Conventions in the formal statement

"Greater than 111" is read as n≥2n\ge2n≥2 and each mi≥3m_i\ge3mi​≥3 odd; the list of set sizes in (b)–(d) is nonempty. Laws are functions Z→R\mathbb Z\to\mathbb RZ→R and every probability is a finite sum — no measure theory. The goal theorem is the conjunction of the four parts.

39 thms1 active userReviewed
🏆Completed
Functional AnalysisOperations ResearchOptimization+1·Captain: Shuze Chen

Vector Space Methods II: Gauss–Markov EstimationTextbook

Motivation

Chapter 4 of Luenberger's Optimization by Vector Space Methods (Wiley, 1969) develops linear least-squares estimation as an application of the Hilbert space projection theorem formalized in Mission I of this series. The chapter's centerpiece is the classical Gauss–Markov theorem: among all linear unbiased estimators of an unknown parameter vector from noisy linear measurements, the estimator (W⊤Q−1W)−1W⊤Q−1y(W^\top Q^{-1} W)^{-1} W^\top Q^{-1} y(W⊤Q−1W)−1W⊤Q−1y has minimum variance — componentwise, not merely in trace. This result is foundational for statistics and econometrics, and its Hilbert-space derivation is the cleanest known.

Setting

Measurements are modeled as y=Wβ+εy = W\beta + \varepsilony=Wβ+ε, where yyy is an mmm-dimensional data vector, WWW a known m×nm \times nm×n matrix (n<mn < mn<m) with linearly independent columns, β\betaβ an unknown nnn-dimensional parameter vector, and ε\varepsilonε a random mmm-vector of measurement errors with Eε=0E\varepsilon = 0Eε=0 and covariance E[εε⊤]=QE[\varepsilon\varepsilon^\top] = QE[εε⊤]=Q, positive definite. A linear estimate is β^=Ky\hat\beta = Kyβ^​=Ky for a constant n×mn \times mn×m matrix KKK; it is unbiased when Eβ^=βE\hat\beta = \betaEβ^​=β for every β\betaβ, which holds iff KW=IKW = IKW=I. The optimality criterion is the error second moment E∥β^−β∥2E\|\hat\beta - \beta\|^2E∥β^​−β∥2, and the book's key observation (p. 85) is that the problem splits into nnn independent minimum norm problems, one per component, each solvable by the dual approximation theorem of Mission I.

Formally, randomness is carried by an abstract probability space: a measure space (Ω,μ)(\Omega, \mu)(Ω,μ) with μ\muμ a probability measure, random vectors as functions Ω→Rm\Omega \to \mathbb{R}^mΩ→Rm with explicit integrability hypotheses for all first and second moments, and E[⋅]=∫⋅ dμE[\cdot] = \int \cdot \, d\muE[⋅]=∫⋅dμ.

Formalization targets

The goal is §4.4 Theorem 1 (Gauss–Markov): with K0=(W⊤Q−1W)−1W⊤Q−1K_0 = (W^\top Q^{-1} W)^{-1} W^\top Q^{-1}K0​=(W⊤Q−1W)−1W⊤Q−1,

K0W=I,E[(K0y−β)i2]≤E[(Ky−β)i2]for every i and every K with KW=I,K_0 W = I, \qquad E\big[(K_0 y - \beta)_i^2\big] \le E\big[(K y - \beta)_i^2\big] \quad \text{for every } i \text{ and every } K \text{ with } KW = I,K0​W=I,E[(K0​y−β)i2​]≤E[(Ky−β)i2​]for every i and every K with KW=I,

with error covariance

E[(K0y−β)(K0y−β)⊤]=(W⊤Q−1W)−1.E\big[(K_0 y - \beta)(K_0 y - \beta)^\top\big] = (W^\top Q^{-1} W)^{-1}.E[(K0​y−β)(K0​y−β)⊤]=(W⊤Q−1W)−1.

Milestones: the deterministic least-squares estimate β^=(W⊤W)−1W⊤y\hat\beta = (W^\top W)^{-1} W^\top yβ^​=(W⊤W)−1W⊤y (§4.3 Theorem 1); the book's deterministic reduction — minimize the diagonal entries of KQK⊤KQK^\topKQK⊤ subject to KW=IKW = IKW=I (p. 85); the minimum-variance estimate β^=E[βy⊤](E[yy⊤])−1y\hat\beta = E[\beta y^\top] (E[y y^\top])^{-1} yβ^​=E[βy⊤](E[yy⊤])−1y for random β\betaβ (§4.5 Theorem 1); and the information-form identities RW⊤(WRW⊤+Q)−1=(W⊤Q−1W+R−1)−1W⊤Q−1RW^\top(WRW^\top + Q)^{-1} = (W^\top Q^{-1}W + R^{-1})^{-1}W^\top Q^{-1}RW⊤(WRW⊤+Q)−1=(W⊤Q−1W+R−1)−1W⊤Q−1 and R−RW⊤(WRW⊤+Q)−1WR=(W⊤Q−1W+R−1)−1R - RW^\top(WRW^\top+Q)^{-1}WR = (W^\top Q^{-1}W + R^{-1})^{-1}R−RW⊤(WRW⊤+Q)−1WR=(W⊤Q−1W+R−1)−1 (§4.5 Corollary 2).

Significance

The Gauss–Markov theorem justifies weighted least squares as the optimal linear unbiased procedure and is the standard benchmark against which biased and nonlinear estimators are measured. The minimum-variance estimate of §4.5 is the Bayesian counterpart with prior covariance RRR; the information-form identities connect the two and exhibit Gauss–Markov as the limit R−1→0R^{-1} \to 0R−1→0. Mission III builds the recursive (Kalman) estimator directly on these results.

All results are classical and proved in the source. Mathlib has mature measure-theoretic integration but, to date, no Gauss–Markov theorem and no linear estimation theory; the matrix milestones (trace reduction, information form) are also absent as stated. The probabilistic statements here are deliberately phrased with elementary integrals of products of real-valued components — no Bochner integration of vector-valued maps — so they are approachable with MeasureTheory.integral alone.

Difficulty

The subtlety is bookkeeping, not depth. Unbiasedness must be encoded as the algebraic constraint KW=IKW = IKW=I (the book proves the equivalence with Eβ^=βE\hat\beta = \betaEβ^​=β for all β\betaβ); the componentwise variance claim is strictly stronger than the trace claim and requires the per-component minimum norm argument, not a single matrix inequality. Positive definiteness of QQQ enters through invertibility of W⊤Q−1WW^\top Q^{-1} WW⊤Q−1W, which itself needs the linear independence of the columns of WWW — dropping either hypothesis makes the goal false. In the probabilistic statements every integral needs an integrability hypothesis; the drafts supply integrability of all pairwise products of components, from which integrability of every derived expression follows.

Formalization scope

Random vectors are plain functions Ω → Fin m → ℝ on a MeasurableSpace Ω with a probability measure μ; second moments are hypotheses of the form ∫ ω, ε ω i * ε ω j ∂μ = Q i j with explicit Integrable assumptions; no independence, Gaussianity, or distributional assumptions are used anywhere. Matrices are Matrix (Fin m) (Fin n) ℝ with Mathlib's Matrix.PosDef, nonconstructive inverse ⁻¹, and mulVec. Norms on parameter space are written as explicit finite sums of squares, avoiding any ambiguity between Euclidean and supremum norms on pi types. The estimators under comparison are strictly linear (β^=Ky\hat\beta = Kyβ^​=Ky, no affine offset), exactly as in the source; §4.5's affine extension (its Problem 6) is out of scope.

Selected references

  • David G. Luenberger, Optimization by Vector Space Methods, John Wiley & Sons, 1969. Chapter 4, pp. 78–102. ISBN 0-471-55359-X.
  • A. C. Aitken, On least squares and linear combination of observations, Proc. Roy. Soc. Edinburgh 55 (1935), 42–48 (the weighted-least-squares form of Gauss–Markov).
8 thms1 active userReviewed
PreviousPage 12 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