Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Stochastic Systems

434 missions · 143 completed

The mathematics of systems that evolve under randomness, modeled as families of random variables indexed by time — from Markov chains and martingales to Brownian motion and stochastic differential equations. The field spans stochastic analysis, filtering and optimal control under uncertainty, ergodic behavior of random dynamics, and concentration of measure, with models reaching across physics, engineering, finance, and biology.

Missions

Open291Completed143All434
Dynamical SystemsProbabilityReinforcement Learning·Captain: mikedeng1

The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning II: Mean-Square Error under Bounded StepsizesResearch Paper

Motivation

Stochastic approximation is the family of recursive algorithms that locate a zero of a vector field hhh from noisy evaluations of it. Temporal-difference learning, Q-learning, actor–critic methods and stochastic gradient descent are all instances. In practice these algorithms are often run with a constant or bounded, non-vanishing stepsize: the iterate keeps adapting to new data and never freezes, at the price of never converging exactly. The natural question for such a scheme is quantitative: how far from the target does the iterate stay in the long run, and how does that distance scale with the stepsize?

Borkar and Meyn (SIAM J. Control Optim. 38(2), 2000) answer both halves of the question under one set of hypotheses. First, stability of a "fluid" ODE obtained by scaling hhh at infinity implies that the iterates have bounded second moments, with no a priori boundedness or projection assumption. Second, if the ODE x˙=h(x)\dot x = h(x)x˙=h(x) has a globally exponentially stable equilibrium x∗x^*x∗, the asymptotic mean-square error is of the order of the largest stepsize. The first result replaced the usual stochastic-Lyapunov-function verification in reinforcement-learning applications (Section 3 of the paper). This mission formalizes the bounded-stepsize branch of the paper. A companion mission (… I: Stability and Almost-Sure Convergence under Tapering Stepsizes) covers the vanishing-stepsize branch.

Setting

Fix d≥1d \ge 1d≥1 and a Lipschitz vector field h:Rd→Rdh : \mathbb{R}^d \to \mathbb{R}^dh:Rd→Rd. The stochastic approximation recursion (1.1) is

X(n+1)=X(n)+a(n)[h(X(n))+M(n+1)],n≥0,X(n+1) = X(n) + a(n)\big[h(X(n)) + M(n+1)\big], \qquad n \ge 0,X(n+1)=X(n)+a(n)[h(X(n))+M(n+1)],n≥0,

with a deterministic step sequence {a(n)}\{a(n)\}{a(n)} and a noise sequence {M(n)}\{M(n)\}{M(n)} on a probability space (Ω,F,P)(\Omega, \mathcal F, \mathsf P)(Ω,F,P). The associated ODE (1.2) is x˙=h(x)\dot x = h(x)x˙=h(x).

  • The scaled fields are hr(x)=r−1h(rx)h_r(x) = r^{-1} h(rx)hr​(x)=r−1h(rx). Assumption (A1) asks that hhh be Lipschitz, that hr(x)→h∞(x)h_r(x) \to h_\infty(x)hr​(x)→h∞​(x) for every xxx as r→∞r \to \inftyr→∞, and that the origin be an asymptotically stable equilibrium of the fluid ODE x˙=h∞(x)\dot x = h_\infty(x)x˙=h∞​(x).
  • Let Fn=σ(X(0),…,X(n))\mathcal F_n = \sigma(X(0), \dots, X(n))Fn​=σ(X(0),…,X(n)). Assumption (A2) asks that {M(n)}\{M(n)\}{M(n)} be a martingale difference sequence, E[M(n+1)∣Fn]=0\mathsf E[M(n+1) \mid \mathcal F_n] = 0E[M(n+1)∣Fn​]=0, with conditional second moments E[∥M(n+1)∥2∣Fn]≤C0(1+∥X(n)∥2)\mathsf E[\|M(n+1)\|^2 \mid \mathcal F_n] \le C_0(1 + \|X(n)\|^2)E[∥M(n+1)∥2∣Fn​]≤C0​(1+∥X(n)∥2) for a constant C0C_0C0​.
  • Assumption (BS), bounded stepsizes: 0<α‾≤a(n)≤αˉ<10 < \underline\alpha \le a(n) \le \bar\alpha < 10<α​≤a(n)≤αˉ<1 for all nnn, with α‾<αˉ\underline\alpha < \bar\alphaα​<αˉ.
  • The error (2.2) is e(n)=∥X(n)−x∗∥e(n) = \|X(n) - x^*\|e(n)=∥X(n)−x∗∥.

An equilibrium x∗x^*x∗ of (1.2) is globally asymptotically stable if it is Lyapunov stable and attracts every solution. It is globally exponentially asymptotically stable if there are bbb and δ>0\delta > 0δ>0 with ∥x(t)−x∗∥≤b e−δt∥x(0)−x∗∥\|x(t) - x^*\| \le b\,e^{-\delta t}\|x(0) - x^*\|∥x(t)−x∗∥≤be−δt∥x(0)−x∗∥ for every solution.

The proofs compare the iterates with ODE solutions on a time grid: t(n)=∑i<na(i)t(n) = \sum_{i<n} a(i)t(n)=∑i<n​a(i), blocks T(j)=t(m(j))T(j) = t(m(j))T(j)=t(m(j)) of length about TTT, the interpolated path ψ\psiψ of the iterates, its rescaled version ϕj=ψ/r(j)\phi_j = \psi/r(j)ϕj​=ψ/r(j) with r(j)=max⁡(1,∥X(m(j))∥)r(j) = \max(1, \|X(m(j))\|)r(j)=max(1,∥X(m(j))∥), and the ODE solutions ψ^\hat\psiψ^​, ϕ^j\hat\phi_jϕ^​j​ restarted at each block.

Formalization targets

Goal: Theorem 2.3(ii)

Under (A1), (A2) and (BS), if x∗x^*x∗ is a globally asymptotically and globally exponentially asymptotically stable equilibrium of (1.2), there are α∗>0\alpha^* > 0α∗>0 and b2<∞b_2 < \inftyb2​<∞ such that for all 0<αˉ≤α∗0 < \bar\alpha \le \alpha^*0<αˉ≤α∗ and every initial condition X(0)X(0)X(0),

lim sup⁡n→∞E[e(n)2]≤b2 αˉ.\limsup_{n \to \infty} \mathsf E\big[e(n)^2\big] \le b_2\, \bar\alpha .n→∞limsup​E[e(n)2]≤b2​αˉ.

The constant b2b_2b2​ is uniform in the stepsizes and in X(0)X(0)X(0). No rate constant is fixed: only the linear dependence on αˉ\bar\alphaαˉ is asserted.

Milestones

  1. Lemma 4.7. For fixed T>0T > 0T>0 there is C2C_2C2​, independent of the stepsizes, with E[∥ϕj(t)−ϕ^j(t)∥2∣Fm(j)]≤C2αˉ\mathsf E[\|\phi_j(t) - \hat\phi_j(t)\|^2 \mid \mathcal F_{m(j)}] \le C_2\bar\alphaE[∥ϕj​(t)−ϕ^​j​(t)∥2∣Fm(j)​]≤C2​αˉ and E[∥ϕj(t)∥2∣Fm(j)]≤C2\mathsf E[\|\phi_j(t)\|^2 \mid \mathcal F_{m(j)}] \le C_2E[∥ϕj​(t)∥2∣Fm(j)​]≤C2​ on every block.
  2. Theorem 2.1(ii). There are α∗>0\alpha^* > 0α∗>0 and C1C_1C1​ with lim sup⁡nE∥X(n)∥2≤C1\limsup_n \mathsf E\|X(n)\|^2 \le C_1limsupn​E∥X(n)∥2≤C1​ whenever αˉ<α∗\bar\alpha < \alpha^*αˉ<α∗.
  3. Lemma 4.8. For αˉ≤α∗\bar\alpha \le \alpha^*αˉ≤α∗, sup⁡t≥0E∥ψ^(t)−ψ(t)∥2≤C3αˉ\sup_{t \ge 0} \mathsf E\|\hat\psi(t) - \psi(t)\|^2 \le C_3 \bar\alphasupt≥0​E∥ψ^​(t)−ψ(t)∥2≤C3​αˉ.

Significance

The result. Theorem 2.1(ii) says that a stability property of a deterministic ODE at infinity controls a stochastic recursion in mean square, uniformly over initial conditions. Theorem 2.3(ii) turns this into an error bound: with a non-vanishing stepsize the iterate does not converge, but its mean-square distance from x∗x^*x∗ is eventually O(αˉ)O(\bar\alpha)O(αˉ). This is the quantitative justification for constant-stepsize stochastic approximation in reinforcement learning and adaptive control, and it is the starting point of the trade-off between bias (small stepsize) and speed (large stepsize) discussed in Section 2.2 of the paper.

Formalizing it. The results are proved in the paper, partly by sketch: Lemma 4.8's proof refers to "familiar arguments using the Bellman–Gronwall lemma", and the paper writes several bounds as O(αˉ)O(\bar\alpha)O(αˉ). A formal proof makes every constant and its dependence explicit, which the paper's quantifier order leaves partly implicit (see the scope section). No machine-checked proof of these results, or of any stochastic-approximation stability theorem in this generality, is known to exist.

Difficulty

The natural first argument, that the iterates track the ODE and the ODE converges, needs the iterates to be bounded. Bounded iterates are exactly what is being proved, so the argument is circular. The paper breaks the circularity by rescaling: on each block the iterate is divided by r(j)r(j)r(j), so that on large scales it tracks the fluid ODE, whose stability contracts the norm by a fixed factor per block. Making this work in mean square requires conditional second-moment estimates that are uniform in the stepsize and the scale (Lemma 4.7). A second difficulty is that the stepsize does not vanish: the tracking error per block does not go to zero, and the goal's content is precisely that it is of order αˉ\bar\alphaαˉ with a constant that does not depend on αˉ\bar\alphaαˉ.

Formalization scope

  • The state space is EuclideanSpace ℝ (Fin d). ODE solutions are forward solutions: continuous on [0,∞)[0,\infty)[0,∞) with right derivatives. Stability notions are the standard ones, with exponential stability in the form the proof of Theorem 2.3(ii) uses.
  • The filtration is the natural filtration of the iterates. (A2) includes integrability of M(n+1)M(n+1)M(n+1) and ∥M(n+1)∥2\|M(n+1)\|^2∥M(n+1)∥2 so that the conditional expectations are meaningful. Each theorem quantifies over every probability space, every measurable process satisfying (1.1) and (A2), and every deterministic X(0)X(0)X(0).
  • Second moments, suprema and lim sup⁡\limsuplimsup are computed in [0,∞][0,\infty][0,∞], so a bound is a genuine finiteness claim.
  • Constant placement. α∗\alpha^*α∗, C1C_1C1​ and b2b_2b2​ depend only on hhh, h∞h_\inftyh∞​, C0C_0C0​ (and x∗x^*x∗). C2C_2C2​ depends in addition on TTT, and C3C_3C3​ on TTT and X(0)X(0)X(0). None depends on the stepsizes. Theorem 2.3's page text puts b2b_2b2​ after α\alphaα. Read literally, that would allow b2=C1/αˉb_2 = C_1/\bar\alphab2​=C1​/αˉ and make the goal a restatement of Theorem 2.1(ii). The formal goal fixes b2b_2b2​ before the stepsizes and the initial condition, as the proof (16C3αˉ16C_3\bar\alpha16C3​αˉ) gives. α∗\alpha^*α∗ is existential in Theorem 2.3(ii) and Lemma 4.8 rather than tied to Theorem 2.1(ii)'s witness.
  • The proof objects ψ^\hat\psiψ^​, ϕ^j\hat\phi_jϕ^​j​ are characterized by predicates (initial value, continuity, ODE on the block). Lemmas 4.7 and 4.8 hold for every function satisfying them.
  • Not included: Theorem 2.3(i) (its proof chooses a radius depending on αˉ\bar\alphaαˉ), Theorem 2.4 and the Markov-chain results of Section 4.3, and the asynchronous extension (Theorem 2.5). The deterministic ODE lemmas 4.1–4.4 belong to the companion mission.

Useful infrastructure, reusable beyond this mission: Bellman–Gronwall inequalities in discrete time (Lemma 4.3 of the paper), stability of scaled ODEs, and conditional second-moment estimates for martingale-difference-driven recursions. Contributions of any of these as separate lemmas are welcome.

Selected references

  • V. S. Borkar and S. P. Meyn, The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning, SIAM J. Control Optim. 38(2):447–469, 2000. https://doi.org/10.1137/S0363012997331639
  • M. Benaïm, Dynamics of stochastic approximation algorithms, Séminaire de Probabilités XXXIII, Lecture Notes in Math. 1709, Springer, 1999. https://doi.org/10.1007/BFb0096509
  • H. J. Kushner and G. G. Yin, Stochastic Approximation and Recursive Algorithms and Applications, 2nd ed., Springer, 2003. https://doi.org/10.1007/b97441
7 thms1 active userReviewed
Dynamic ProgrammingOperations ResearchProbability·Captain: mikedeng1

On the Optimal Dividend Problem for a Spectrally Negative Lévy Process II: Optimality of the Double-Barrier Strategy at d* with Bail-Out LoansResearch Paper

Dividends, ruin and bail-out loans

An insurance company's surplus in the Cramér–Lundberg model grows linearly with premiums and falls by claims arriving as a compound Poisson process. When premium income exceeds the expected claims, the surplus drifts to infinity. De Finetti (1957) proposed that the surplus above a barrier should instead be paid to shareholders as dividends, and the resulting optimal dividend problem — maximize the expected discounted dividends — is a central problem of risk theory. A barrier policy, however, drives the surplus below zero with probability one. Harrison and Taylor (1978) and Løkka and Zervos studied, for Brownian motion, a variant with bail-out loans: ruin is forbidden, and the shareholders must inject capital whenever the surplus would become negative, at a cost φ>1\varphi>1φ>1 per unit.

Avram, Palmowski and Pistorius (Ann. Appl. Probab. 17 (2007)) solved the bail-out problem when the surplus is a general spectrally negative Lévy process, which includes the Cramér–Lundberg model, Brownian motion with drift and their sums. They showed that the optimal policy is a double barrier policy for every initial capital. This mission formalizes that result, Theorem 3 of the paper.

Timeline:

  • 1957 — de Finetti introduces dividend barriers.
  • 1978 — Harrison and Taylor: optimal control of a Brownian storage system with two reflecting barriers.
  • 1995 — Jeanblanc and Shiryaev: optimal dividends for Brownian motion with drift.
  • 2004 — Avram, Kyprianou and Pistorius: exit problems for spectrally negative Lévy processes reflected at their infimum and supremum, in terms of scale functions.
  • 2007 — Avram, Palmowski and Pistorius: Theorems 1 and 3 of the present paper; Pistorius' pathwise construction of the doubly reflected process is used.

Setting

A spectrally negative Lévy process X={Xt}t≥0X=\{X_t\}_{t\ge0}X={Xt​}t≥0​ on a filtered probability space (Ω,F,F,P)(\Omega,\mathcal F,\mathbb F,P)(Ω,F,F,P) starts at X0=0X_0=0X0​=0, has càdlàg paths, is F\mathbb FF-adapted, and has stationary increments with Xt−XsX_t-X_sXt​−Xs​ independent of Fs\mathcal F_sFs​. Its jumps are all negative, and E[eθXt]=etψ(θ)E[e^{\theta X_t}]=e^{t\psi(\theta)}E[eθXt​]=etψ(θ) for θ≥0\theta\ge0θ≥0, where the Laplace exponent is

ψ(θ)=cθ+σ22θ2+∫(−∞,0)(eθy−1−θy1{∣y∣<1}) ν(dy).\psi(\theta)=c\theta+\tfrac{\sigma^2}{2}\theta^2+\int_{(-\infty,0)}(e^{\theta y}-1-\theta y\mathbf 1_{\{|y|<1\}})\,\nu(dy).ψ(θ)=cθ+2σ2​θ2+∫(−∞,0)​(eθy−1−θy1{∣y∣<1}​)ν(dy).

With initial capital x≥0x\ge0x≥0 the surplus is x+Xx+Xx+X. The standing assumptions are: XXX does not have monotone paths; E[X1]>−∞E[X_1]>-\inftyE[X1​]>−∞ (so ψ′(0+)=E[X1]\psi'(0+)=E[X_1]ψ′(0+)=E[X1​] is finite); σ>0\sigma>0σ>0, or ∫(−1,0)∣y∣ν(dy)=∞\int_{(-1,0)}|y|\nu(dy)=\infty∫(−1,0)​∣y∣ν(dy)=∞, or ν\nuν has a density (condition (3.3)).

A policy πˉ=(L,R)\bar\pi=(L,R)πˉ=(L,R) consists of nondecreasing adapted processes with L0=R0=0L_0=R_0=0L0​=R0​=0: cumulative dividends LLL (left-continuous) and cumulative injected capital RRR (right-continuous). The controlled surplus is Vt=x+Xt−Lt+RtV_t=x+X_t-L_t+R_tVt​=x+Xt​−Lt​+Rt​. The policy is admissible if Vt≥0V_t\ge0Vt​≥0 for t>0t>0t>0 and ∫0∞e−qtdRt<∞\int_0^\infty e^{-qt}dR_t<\infty∫0∞​e−qtdRt​<∞ almost surely. Its value and the value function are

vˉπˉ(x)=E[∫0∞e−qtdLt−φ∫0∞e−qtdRt],vˉ∗(x)=sup⁡πˉ admissiblevˉπˉ(x),\bar v_{\bar\pi}(x)=E\Bigl[\int_0^\infty e^{-qt}dL_t-\varphi\int_0^\infty e^{-qt}dR_t\Bigr],\qquad \bar v_*(x)=\sup_{\bar\pi\ \text{admissible}}\bar v_{\bar\pi}(x),vˉπˉ​(x)=E[∫0∞​e−qtdLt​−φ∫0∞​e−qtdRt​],vˉ∗​(x)=πˉ admissiblesup​vˉπˉ​(x),

with discount rate q>0q>0q>0 and cost φ>1\varphi>1φ>1. The double-barrier strategy πˉ0,a\bar\pi_{0,a}πˉ0,a​ pays out (x−a)+(x-a)^+(x−a)+ at once and then the minimal dividends and injections that keep VVV in [0,a][0,a][0,a]: dLdLdL is carried by {V=a}\{V=a\}{V=a} and dRdRdR by {V=0}\{V=0\}{V=0}.

The qqq-scale function W=W(q)W=W^{(q)}W=W(q) vanishes on (−∞,0)(-\infty,0)(−∞,0), is continuous and nondecreasing on [0,∞)[0,\infty)[0,∞), and satisfies ∫0∞e−θyW(y)dy=1/(ψ(θ)−q)\int_0^\infty e^{-\theta y}W(y)dy=1/(\psi(\theta)-q)∫0∞​e−θyW(y)dy=1/(ψ(θ)−q) for θ>Φ(q)\theta>\Phi(q)θ>Φ(q), the largest root of ψ=q\psi=qψ=q. Set W‾(y)=∫0yW\overline W(y)=\int_0^yWW(y)=∫0y​W, Z=1+qW‾Z=1+q\overline WZ=1+qW, Z‾(y)=∫0yZ\overline Z(y)=\int_0^yZZ(y)=∫0y​Z. The candidate value of πˉ0,a\bar\pi_{0,a}πˉ0,a​ is

vˉa(x)=φ(Z‾(x)+ψ′(0+)/q)+Z(x)1−φZ(a)qW(a)(0≤x≤a),vˉa(x)=x−a+vˉa(a)(x>a),\bar v_a(x)=\varphi\bigl(\overline Z(x)+\psi'(0+)/q\bigr)+Z(x)\frac{1-\varphi Z(a)}{qW(a)}\quad(0\le x\le a),\qquad \bar v_a(x)=x-a+\bar v_a(a)\quad(x>a),vˉa​(x)=φ(Z(x)+ψ′(0+)/q)+Z(x)qW(a)1−φZ(a)​(0≤x≤a),vˉa​(x)=x−a+vˉa​(a)(x>a),

and the barrier level is d∗=inf⁡{a>0:[φZ(a)−1]W′(a)−φqW(a)2≤0}d^*=\inf\{a>0:[\varphi Z(a)-1]W'(a)-\varphi qW(a)^2\le0\}d∗=inf{a>0:[φZ(a)−1]W′(a)−φqW(a)2≤0}, with inf⁡∅=∞\inf\emptyset=\inftyinf∅=∞.

Formalization targets

Goal: Theorem 3

d∗<∞,vˉ∗(x)=vˉd∗(x)  (x≥0),πˉ0,d∗ exists, is admissible and attains vˉ∗(x).d^*<\infty,\qquad \bar v_*(x)=\bar v_{d^*}(x)\ \ (x\ge0),\qquad \bar\pi_{0,d^*}\ \text{exists, is admissible and attains }\bar v_*(x).d∗<∞,vˉ∗​(x)=vˉd∗​(x)  (x≥0),πˉ0,d∗​ exists, is admissible and attains vˉ∗​(x).

Milestones

  • Lemma 1: W‾(y)/W‾(a)≤W(y)/W(a)\overline W(y)/\overline W(a)\le W(y)/W(a)W(y)/W(a)≤W(y)/W(a) for 0≤y≤a0\le y\le a0≤y≤a.
  • Proposition 2, (3.17): the expected discounted undershoot Ex[e−qT0−XT0−]E_x[e^{-qT_0^-}X_{T_0^-}]Ex​[e−qT0−​XT0−​​] in closed form.
  • Theorem 1: the expected discounted dividends and injections of πˉ0,a\bar\pi_{0,a}πˉ0,a​, a>0a>0a>0, in closed form; hence vˉπˉ0,a=vˉa\bar v_{\bar\pi_{0,a}}=\bar v_avˉπˉ0,a​​=vˉa​.
  • Lemma 2(ii): d∗=0d^*=0d∗=0 if and only if σ=0\sigma=0σ=0 and ν(−∞,0)≤q/(φ−1)\nu(-\infty,0)\le q/(\varphi-1)ν(−∞,0)≤q/(φ−1).
  • Proposition 3(ii): d∗<∞d^*<\inftyd∗<∞ and vˉa≤vˉd∗\bar v_a\le\bar v_{d^*}vˉa​≤vˉd∗​ for all levels aaa.
  • Lemma 3(ii)–(iv): 1≤vˉd∗′≤φ1\le\bar v_{d^*}'\le\varphi1≤vˉd∗′​≤φ with boundary slopes; a↦vˉa(x)a\mapsto\bar v_a(x)a↦vˉa​(x) nonincreasing for a>d∗a>d^*a>d∗; vˉd∗\bar v_{d^*}vˉd∗​ concave.
  • Lemma 5: (Γvˉd∗−qvˉd∗)≤0(\Gamma\bar v_{d^*}-q\bar v_{d^*})\le0(Γvˉd∗​−qvˉd∗​)≤0 on (0,∞)(0,\infty)(0,∞), with equality on (0,d∗)(0,d^*)(0,d∗).
  • Proposition 4(ii): any C2C^2C2 solution of the variational inequality (5.9) dominates vˉ∗\bar v_*vˉ∗​.

Significance

Theorem 3 answers the bail-out problem completely: for every initial capital and every spectrally negative Lévy surplus, the optimal policy is a double barrier with an explicit level and an explicit value in terms of scale functions. In the classical problem without injections (Theorem 2 of the same paper) the analogous conclusion needs an extra generator condition, and Azcue and Muler exhibited Cramér–Lundberg models where barrier policies are not optimal. The result is the basis of later work on dividends with capital injection, transaction costs and Parisian ruin.

The result has a published proof. What this mission adds is a machine-checked version. As far as is known, no part of the theory used — Lévy processes, scale functions, doubly reflected processes, the generator of a Lévy process, singular stochastic control — has been formalized in Lean's Mathlib.

Difficulty

The value function is a supremum over all adapted singular controls. Its upper bound requires a verification argument: Itô's formula for e−qtw(Vt)e^{-qt}w(V_t)e−qtw(Vt​) with a semimartingale VVV that has jumps, a controlled bounded-variation part and a possibly nonzero continuous martingale part, followed by localization and limits. A function that satisfies the variational inequality only in the viscosity sense is not enough, so the candidate vˉd∗\bar v_{d^*}vˉd∗​ must be shown to be regular enough and to satisfy Γvˉd∗−qvˉd∗≤0\Gamma\bar v_{d^*}-q\bar v_{d^*}\le0Γvˉd∗​−qvˉd∗​≤0 everywhere on (0,∞)(0,\infty)(0,∞). Above the barrier this inequality does not follow from a martingale property: the paper derives it from concavity and a comparison with higher barriers, through the resolvent of the doubly reflected process. The lower bound requires the existence and value of the doubly reflected process, and computing that value needs fluctuation identities (two-sided exit, overshoot) that are themselves theorems about scale functions.

Formalization scope

Time is indexed by R≥0\mathbb R_{\ge0}R≥0​. The process is a structure carrying the triplet (c,σ,ν)(c,\sigma,\nu)(c,σ,ν), the paths, adaptedness, independence of future increments from Fs\mathcal F_sFs​, stationarity, the Laplace-exponent identity, and the usual conditions on the filtration. PxP_xPx​ is the law of x+Xx+Xx+X. Policy values are computed as E[∫e−qtdL]−φE[∫e−qtdR]E[\int e^{-qt}dL]-\varphi E[\int e^{-qt}dR]E[∫e−qtdL]−φE[∫e−qtdR] in the extended reals from two [0,∞][0,\infty][0,∞]-valued expectations, and the value function is a supremum in the extended reals; a policy with both expectations infinite gets −∞-\infty−∞. Stieltjes integrals include the jump at time 000. The scale function is a hypothesis IsScaleFunction (it is unique), and d∗d^*d∗ lives in [0,∞][0,\infty][0,∞], so an empty defining set gives ∞\infty∞. The double-barrier strategy is characterized by the two-sided Skorokhod conditions plus mutual singularity of dLdLdL and dRdRdR, which pins the level-000 policy of bounded-variation processes. These conditions hold almost surely, and they are stated on the post-decision surplus Vt+=x+Xt−Lt++RtV_{t+}=x+X_t-L_{t+}+R_tVt+​=x+Xt​−Lt+​+Rt​: dLdLdL is carried by {Vt+=a}\{V_{t+}=a\}{Vt+​=a} and dRdRdR by {Vt+=0}\{V_{t+}=0\}{Vt+​=0}. This is the paper's "minimal amount" (p. 4) and matches its construction on pp. 10–11. The closure-of-support wording of (4.2) on its own would also admit non-minimal lump dividends. Admissibility, Vt≥0V_t\ge0Vt​≥0 for t>0t>0t>0 together with (2.3), is likewise required almost surely.

Printed slips corrected (milestone texts are verbatim):

  • Theorem 3 and Proposition 3(ii) print "ψ′(0+)<∞\psi'(0+)<\inftyψ′(0+)<∞", which always holds; the intended ψ′(0+)>−∞\psi'(0+)>-\inftyψ′(0+)>−∞ is used.
  • (3.3) prints ∫−10x ν(dx)=∞\int_{-1}^0x\,\nu(dx)=\infty∫−10​xν(dx)=∞ for ∫(−1,0)∣x∣ ν(dx)=∞\int_{(-1,0)}|x|\,\nu(dx)=\infty∫(−1,0)​∣x∣ν(dx)=∞.
  • (3.4) prints e−θxe^{-\theta x}e−θx in a dydydy-integral.
  • p. 20 prints the extension vˉd∗(x)+φx\bar v_{d^*}(x)+\varphi xvˉd∗​(x)+φx for vˉd∗(0)+φx\bar v_{d^*}(0)+\varphi xvˉd∗​(0)+φx.
  • Lemma 3(iv) is printed for every a>0a>0a>0 but proved and used only for a=d∗a=d^*a=d∗, and is stated for a=d∗a=d^*a=d∗.
  • Proposition 3(ii) at a=0a=0a=0 is stated only for bounded variation, where vˉ0\bar v_0vˉ0​ is defined.

The goal cannot be satisfied trivially. It asserts equality of the value function with vˉd∗\bar v_{d^*}vˉd∗​, not only an inequality. Existence of the optimal policy is part of the conclusion. Generator statements carry integrability of the jump integrand, so a non-integrable integrand cannot make them true with the junk value 000.

A complete development needs Lévy processes and their Laplace exponents, scale functions, first-passage and two-sided exit identities, reflected and doubly reflected processes, Itô's formula for semimartingales with jumps, and a verification theorem for singular control. All of these are reusable well beyond this mission. Contributions of any of these foundations are welcome, as are proofs of the analytic milestones (Lemma 3, Proposition 3(ii)) from the scale-function properties.

Selected references

  • F. Avram, Z. Palmowski, M. R. Pistorius, On the optimal dividend problem for a spectrally negative Lévy process, Ann. Appl. Probab. 17 (2007) 156–180. https://arxiv.org/abs/math/0702893
  • F. Avram, A. E. Kyprianou, M. R. Pistorius, Exit problems for spectrally negative Lévy processes and applications to (Canadized) Russian options, Ann. Appl. Probab. 14 (2004) 215–238. https://doi.org/10.1214/aoap/1075828052
  • M. R. Pistorius, On doubly reflected completely asymmetric Lévy processes, Stochastic Process. Appl. 107 (2003) 131–143. https://doi.org/10.1016/S0304-4149(03)00065-9
  • J. M. Harrison, A. J. Taylor, Optimal control of a Brownian storage system, Stochastic Process. Appl. 6 (1978) 179–194. https://doi.org/10.1016/0304-4149(78)90059-5
  • A. E. Kyprianou, Introductory Lectures on Fluctuations of Lévy Processes with Applications, Springer, 2006. https://doi.org/10.1007/978-3-540-31343-4
15 thms1 active userReviewed
Control TheoryDynamical SystemsOperations Research+1·Captain: mikedeng1

Stabilization of Hybrid Systems by Feedback Control Based on Discrete-Time State Observations I: Almost Sure Asymptotic StabilityResearch Paper

Motivation

Many engineered systems switch between a finite number of operating modes at random times: a power grid after a line failure, a networked controller whose links drop, a manufacturing plant whose machines break down and are repaired. A standard model for such systems is a hybrid stochastic differential equation, also called an SDE with Markovian switching: the state follows an Itô equation whose coefficients depend on a mode that evolves as a continuous-time Markov chain. The monograph of Mao and Yuan (Stochastic Differential Equations with Markovian Switching, 2006) develops the stability theory of these equations.

A controller that stabilizes such a system usually needs the current state. In practice the state is sampled: it is observed at times 0,τ,2τ,…0,\tau,2\tau,\dots0,τ,2τ,… and the control is held between observations. Mao (Automatica 49, 2013) showed that, under a global Lipschitz condition on the drift and diffusion, a feedback control based on discrete-time observations stabilizes a hybrid SDE in the sense of mean-square exponential stability when τ\tauτ is small enough. You, Liu, Lu, Mao and Qiu (SIAM J. Control Optim. 53(2), 2015) replaced that condition by local Lipschitz continuity plus linear growth, gave an explicit bound (3.5) on the admissible observation interval τ\tauτ, and proved H∞H_\inftyH∞​-stability, mean-square asymptotic stability, almost sure asymptotic stability and exponential stability of the controlled system. This mission formalizes the almost sure asymptotic stability result, Theorem 3.4, and the results it is built on.

Setting

Let (Ω,F,{Ft}t≥0,P)(\Omega,\mathcal F,\{\mathcal F_t\}_{t\ge0},\mathbb P)(Ω,F,{Ft​}t≥0​,P) be a probability space with a filtration satisfying the usual conditions (increasing, right-continuous, F0\mathcal F_0F0​ contains the null sets). On it live an mmm-dimensional {Ft}\{\mathcal F_t\}{Ft​}-Brownian motion www and a right-continuous {Ft}\{\mathcal F_t\}{Ft​}-Markov chain rrr on S={1,…,N}S=\{1,\dots,N\}S={1,…,N} with generator Γ=(γij)\Gamma=(\gamma_{ij})Γ=(γij​) (γij≥0\gamma_{ij}\ge0γij​≥0 for i≠ji\ne ji=j, zero row sums), independent of www. Fix τ>0\tau>0τ>0 and the sampling time δt=[t/τ]τ\delta_t=[t/\tau]\tauδt​=[t/τ]τ, the last observation time up to ttt. The controlled system is

dx(t)=(f(x(t),r(t),t)+u(x(δt),r(t),t))dt+g(x(t),r(t),t) dw(t),x(0)=x0, r(0)=r0,(2.1)dx(t)=\big(f(x(t),r(t),t)+u(x(\delta_t),r(t),t)\big)dt+g(x(t),r(t),t)\,dw(t),\qquad x(0)=x_0,\ r(0)=r_0,\tag{2.1}dx(t)=(f(x(t),r(t),t)+u(x(δt​),r(t),t))dt+g(x(t),r(t),t)dw(t),x(0)=x0​, r(0)=r0​,(2.1)

with f,u:Rn×S×R+→Rnf,u:\mathbb R^n\times S\times\mathbb R_+\to\mathbb R^nf,u:Rn×S×R+​→Rn and g:Rn×S×R+→Rn×mg:\mathbb R^n\times S\times\mathbb R_+\to\mathbb R^{n\times m}g:Rn×S×R+​→Rn×m. The feedback uuu sees the state only at the observation times.

The hypotheses are:

  • Assumption 2.1: f,gf,gf,g locally Lipschitz in xxx, and ∣f(x,i,t)∣≤K1∣x∣|f(x,i,t)|\le K_1|x|∣f(x,i,t)∣≤K1​∣x∣, ∣g(x,i,t)∣≤K2∣x∣|g(x,i,t)|\le K_2|x|∣g(x,i,t)∣≤K2​∣x∣ (∣g∣|g|∣g∣ the trace norm).
  • Assumption 2.2: ∣u(x,i,t)−u(y,i,t)∣≤K3∣x−y∣|u(x,i,t)-u(y,i,t)|\le K_3|x-y|∣u(x,i,t)−u(y,i,t)∣≤K3​∣x−y∣ and u(0,i,t)=0u(0,i,t)=0u(0,i,t)=0.
  • Assumption 3.1: there are U∈C2,1(Rn×S×R+;R+)U\in C^{2,1}(\mathbb R^n\times S\times\mathbb R_+;\mathbb R_+)U∈C2,1(Rn×S×R+​;R+​) and λ1,λ2>0\lambda_1,\lambda_2>0λ1​,λ2​>0 with LU(x,i,t)+λ1∣Ux(x,i,t)∣2≤−λ2∣x∣2\mathcal LU(x,i,t)+\lambda_1|U_x(x,i,t)|^2\le-\lambda_2|x|^2LU(x,i,t)+λ1​∣Ux​(x,i,t)∣2≤−λ2​∣x∣2, where
LU=Ut+Ux[f+u]+12trace⁡[gTUxxg]+∑jγijU(x,j,t).\mathcal LU=U_t+U_x[f+u]+\tfrac12\operatorname{trace}[g^TU_{xx}g]+\sum_j\gamma_{ij}U(x,j,t).LU=Ut​+Ux​[f+u]+21​trace[gTUxx​g]+j∑​γij​U(x,j,t).
  • Condition (3.5): λ2>τK32λ1[2τ(K12+2K32)+K22]\lambda_2>\frac{\tau K_3^2}{\lambda_1}\big[2\tau(K_1^2+2K_3^2)+K_2^2\big]λ2​>λ1​τK32​​[2τ(K12​+2K32​)+K22​] and τ≤14K3\tau\le\frac1{4K_3}τ≤4K3​1​.

In Lean these are Assumption21, Assumption22, C21, LU, Assumption31, Condition35, in the namespace You2015.Asymp; the basis is HybridSetup, the Itô integral IsItoIntegral, the sampling time delta, and solutions SolvesSampledHybridSDE, in the namespace You2015.Shared shared with the companion mission.

Formalization targets

Goal: Theorem 3.4 (almost sure asymptotic stability)

Under the hypotheses above, every solution of (2.1) satisfies

lim⁡t→∞x(t)=0a.s.\lim_{t\to\infty}x(t)=0\quad\text{a.s.}t→∞lim​x(t)=0a.s.

for all x0∈Rnx_0\in\mathbb R^nx0​∈Rn and r0∈Sr_0\in Sr0​∈S. No rate is claimed; the statement is the qualitative convergence of almost every path.

Milestones, in the order the proof uses them

  1. (3.15) E∣x(t)−x(δt)∣2≤2E∫δtt[τ∣f+u(x(δs),⋅)∣2+∣g∣2]ds\mathbb E|x(t)-x(\delta_t)|^2\le2\mathbb E\int_{\delta_t}^t[\tau|f+u(x(\delta_s),\cdot)|^2+|g|^2]dsE∣x(t)−x(δt​)∣2≤2E∫δt​t​[τ∣f+u(x(δs​),⋅)∣2+∣g∣2]ds.
  2. Theorem 3.2 (H∞H_\inftyH∞​-stability): ∫0∞E∣x(s)∣2ds<∞\int_0^\infty\mathbb E|x(s)|^2ds<\infty∫0∞​E∣x(s)∣2ds<∞.
  3. (3.21) E∣x(s)−x(δs)∣2≤3(τK12+K22)1−6τ2K32∫δssE∣x(z)∣2dz+6τ2K321−6τ2K32E∣x(s)∣2\mathbb E|x(s)-x(\delta_s)|^2\le\frac{3(\tau K_1^2+K_2^2)}{1-6\tau^2K_3^2}\int_{\delta_s}^s\mathbb E|x(z)|^2dz+\frac{6\tau^2K_3^2}{1-6\tau^2K_3^2}\mathbb E|x(s)|^2E∣x(s)−x(δs​)∣2≤1−6τ2K32​3(τK12​+K22​)​∫δs​s​E∣x(z)∣2dz+1−6τ2K32​6τ2K32​​E∣x(s)∣2.
  4. (3.23) sup⁡t≥0E∣x(t)∣2<∞\sup_{t\ge0}\mathbb E|x(t)|^2<\inftysupt≥0​E∣x(t)∣2<∞.
  5. ∣E∣x(t2)∣2−E∣x(t1)∣2∣≤C(t2−t1)|\mathbb E|x(t_2)|^2-\mathbb E|x(t_1)|^2|\le C(t_2-t_1)∣E∣x(t2​)∣2−E∣x(t1​)∣2∣≤C(t2​−t1​).
  6. Theorem 3.3: lim⁡t→∞E∣x(t)∣2=0\lim_{t\to\infty}\mathbb E|x(t)|^2=0limt→∞​E∣x(t)∣2=0.
  7. (3.24)–(3.25): E∫0∞∣x(t)∣2dt<∞\mathbb E\int_0^\infty|x(t)|^2dt<\inftyE∫0∞​∣x(t)∣2dt<∞ and lim inf⁡t→∞∣x(t)∣=0\liminf_{t\to\infty}|x(t)|=0liminft→∞​∣x(t)∣=0 a.s.
  8. (3.28): P(∃t:∣x(t)∣≥h)≤C/h2\mathbb P(\exists t:|x(t)|\ge h)\le C/h^2P(∃t:∣x(t)∣≥h)≤C/h2 for h>∣x0∣h>|x_0|h>∣x0​∣.

Significance

The result. Theorem 3.4 says that a controller sampling the state at rate 1/τ1/\tau1/τ makes almost every trajectory of the switching system converge to the equilibrium, with an explicit, checkable bound (3.5) on τ\tauτ. Mean-square convergence (Theorem 3.3) does not imply almost sure convergence in general, and a single trajectory is what an operator observes, so the pathwise statement is the one relevant to a deployed system. Condition (3.5) is stated in terms of the constants of Assumptions 2.1, 2.2 and 3.1, so for a concrete system (Section 6 of the paper) it gives a numerical bound on the observation interval.

Formalizing it. The results are proved in the paper; none of them is machine-checked. Mathlib has real Brownian motion but no Itô integral, no stochastic differential equations and no continuous-time Markov chains. The mission therefore also produces a reusable definition layer: a filtration under the usual conditions, a multidimensional {Ft}\{\mathcal F_t\}{Ft​}-Brownian motion, an {Ft}\{\mathcal F_t\}{Ft​}-Markov chain with a given generator, the L2L^2L2 Itô integral of vector-valued integrands, and the solution notion of an SDE with Markovian switching and a sampled-state delay. A related but different layer exists on Prove2Me for Ethier–Kurtz (EthierKurtz_IsStandardBrownian, EthierKurtz_HasBrownianItoIntegral, EthierKurtz_SolvesBrownianSDE); it has no mode switching and no sampled state, so it cannot express (2.1).

Difficulty

Equation (2.1) is a stochastic differential delay equation with the delay t−δtt-\delta_tt−δt​, which is bounded but jumps at every observation time and has derivative 111 in between. The stability theorems for hybrid delay equations in the literature require a differentiable delay with derivative less than one (Mao–Yuan, p. 285), so they do not apply. Applying LU\mathcal LULU directly to U(x(t),r(t),t)U(x(t),r(t),t)U(x(t),r(t),t) leaves the term Ux[u(x(t))−u(x(δt))]U_x[u(x(t))-u(x(\delta_t))]Ux​[u(x(t))−u(x(δt​))], which has no sign and depends on the path over a whole observation interval, so a Lyapunov function of the current state alone does not close the argument.

For the goal, the natural first idea, deducing almost sure convergence from E∣x(t)∣2→0\mathbb E|x(t)|^2\to0E∣x(t)∣2→0 or from ∫0∞∣x(t)∣2dt<∞\int_0^\infty|x(t)|^2dt<\infty∫0∞​∣x(t)∣2dt<∞ a.s., fails: both are compatible with paths that make ever shorter excursions away from 000. The obstacle is to exclude infinitely many excursions of a fixed size, which neither moment statement controls.

Formalization scope

Conventions committed to in Lean:

  • The state space is EuclideanSpace ℝ (Fin n), so ∣x∣|x|∣x∣ is the Euclidean norm; the explicit constants in (3.5) and (3.21) depend on it. The diffusion ggg is given by its mmm columns and ∣g∣2=∑k∣gk∣2|g|^2=\sum_k|g_k|^2∣g∣2=∑k​∣gk​∣2 (trace norm). Modes are Fin N (0-based). Time is ℝ≥0; time integrals are over subsets of R\mathbb RR at s.toNNReal.
  • Every expectation E∣⋅∣2\mathbb E|\cdot|^2E∣⋅∣2 and every time integral of a nonnegative quantity is a lower Lebesgue integral in [0,∞][0,\infty][0,∞], so a non-integrable process cannot produce a junk value 000.
  • "The solution of (2.1)" is read as every process satisfying the solution definition: progressively measurable, almost surely continuous paths, E∣x(t)∣2<∞\mathbb E|x(t)|^2<\inftyE∣x(t)∣2<∞ for each ttt, and for each ttt, almost surely, the integral equation with Itô integrals in the L2L^2L2 sense. Existence and uniqueness (cited from Mao–Yuan on p. 908) are not asserted.
  • "An mmm-dimensional Brownian motion" and "a Markov chain with generator Γ\GammaΓ" are read in the Mao–Yuan framework the paper cites: an {Ft}\{\mathcal F_t\}{Ft​}-Brownian motion with independent coordinates and increments independent of the past, and an {Ft}\{\mathcal F_t\}{Ft​}-Markov chain with transition matrix etΓe^{t\Gamma}etΓ. The usual conditions are kept as hypotheses.
  • "Locally Lipschitz" is uniform in the mode and time on each ball. C2,1C^{2,1}C2,1 carries its derivatives Ut,Ux,UxxU_t,U_x,U_{xx}Ut​,Ux​,Uxx​ as witnesses tied to UUU by derivative relations and joint continuity.
  • "τ>0\tau>0τ>0 sufficiently small for (3.5)" means every τ>0\tau>0τ>0 satisfying both inequalities of (3.5). U,λ1,λ2,τU,\lambda_1,\lambda_2,\tauU,λ1​,λ2​,τ are data of each statement. The paper's "CCC denotes a positive constant" is an existential chosen after x0x_0x0​, r0r_0r0​ and the solution, and before the time variables and hhh.
  • (3.15) and (3.21) are stated under fewer hypotheses than the surrounding proof has (Assumptions 2.1, 2.2, τ>0\tau>0τ>0, and for (3.21) τ≤1/(4K3)\tau\le1/(4K_3)τ≤1/(4K3​)), because their derivations use no more. Misprints on the page (for example g(x,i,s)=f(x,i,0)g(x,i,s)=f(x,i,0)g(x,i,s)=f(x,i,0) on p. 909 and the swapped definitions of ∨,∧\vee,\wedge∨,∧ on p. 907) are not formalized.

A trivializing formalization is ruled out: the expectations are not Bochner integrals (which vanish for non-integrable integrands), the solution notion admits the true solution and requires path continuity, the derivative witnesses of UUU are tied to UUU, and a sorry-free check shows that the data hypotheses (Assumptions 2.1, 2.2, 3.1, C2,1C^{2,1}C2,1, (3.5)) are satisfiable, for example by n=m=N=1n=m=N=1n=m=N=1, f=g=0f=g=0f=g=0, u(x)=−xu(x)=-xu(x)=−x, U=∣x∣2U=|x|^2U=∣x∣2, λ1=1/4\lambda_1=1/4λ1​=1/4, λ2=1\lambda_2=1λ2​=1, τ=1/10\tau=1/10τ=1/10.

Welcome contributions: the Itô isometry and Itô's formula for the L2L^2L2 integral defined here, a generalized Itô formula for functions of a Markov-modulated Itô process, and Doob's maximal inequality in continuous time. These are reusable far beyond this mission. Section 4 of the paper (exponential stability) is a separate mission of the same series.

Selected references

  • S. You, W. Liu, J. Lu, X. Mao, Q. Qiu, Stabilization of Hybrid Systems by Feedback Control Based on Discrete-Time State Observations, SIAM J. Control Optim. 53(2), 905–925, 2015. https://doi.org/10.1137/140985779
  • X. Mao, C. Yuan, Stochastic Differential Equations with Markovian Switching, Imperial College Press, 2006. https://doi.org/10.1142/p473
  • X. Mao, Stabilization of continuous-time hybrid stochastic differential equations by discrete-time feedback control, Automatica 49(12), 3677–3681, 2013. https://doi.org/10.1016/j.automatica.2013.09.005
13 thms1 active userReviewed
Control TheoryOperations ResearchOptimization+1·Captain: mikedeng1

A General Stochastic Maximum Principle for Optimal Control Problems: The Maximum Principle with First- and Second-Order Adjoint ProcessesResearch Paper

Motivation

Pontryagin's maximum principle gives necessary conditions for optimality in deterministic optimal control: along an optimal trajectory, the optimal control maximizes (or minimizes) a Hamiltonian built from an adjoint process. For a system driven by Brownian noise the analogous statement was open in full generality for two decades. The difficulty appears exactly when the diffusion coefficient depends on the control and the control domain is not convex, the situation of controlled volatility in finance, of controlled noise intensity in engineering, and of any problem whose admissible actions form a discrete or otherwise nonconvex set.

Shige Peng's 1990 paper (SIAM J. Control Optim. 28(4)) closed that case. It introduced the second-order adjoint process and a second-order variational inequality, and it is the starting point of the modern theory of stochastic Hamiltonian systems and of backward stochastic differential equations as a tool in control.

Timeline.

  • 1972: Kushner obtains necessary conditions for diffusions whose diffusion coefficient does not depend on the control (SIAM J. Control 10).
  • 1973–1978: Bismut introduces the adjoint equation as a linear backward stochastic differential equation and develops duality methods (SIAM Review 20).
  • Early 1980s: Bensoussan and Haussmann prove maximum principles for convex control domains or control-independent diffusion, using the first-order adjoint equation only.
  • 1990: Peng proves the general principle, with control-dependent diffusion and an arbitrary nonempty control domain (this mission). In the same year Pardoux and Peng prove existence and uniqueness for nonlinear backward SDEs (Systems Control Lett. 14).
  • 1999: Yong and Zhou give a textbook account of the theory (Springer).

Setting

Let (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) be a probability space carrying a standard ddd-dimensional Wiener process B=(B1,…,Bd)B=(B^1,\dots,B^d)B=(B1,…,Bd), and let Ft=σ{B(s);0≤s≤t}\mathcal F^t=\sigma\{B(s);0\le s\le t\}Ft=σ{B(s);0≤s≤t} be its natural filtration. Fix a horizon T>0T>0T>0, an initial state x0∈Rnx_0\in\mathbb R^nx0​∈Rn and a nonempty control domain U⊆RkU\subseteq\mathbb R^kU⊆Rk. The data are

g:Rn×Rk→Rn,σ=(σ1,…,σd), σj:Rn×Rk→Rn,l:Rn×Rk→R,h:Rn→R.g:\mathbb R^n\times\mathbb R^k\to\mathbb R^n,\quad \sigma=(\sigma^1,\dots,\sigma^d),\ \sigma^j:\mathbb R^n\times\mathbb R^k\to\mathbb R^n,\quad l:\mathbb R^n\times\mathbb R^k\to\mathbb R,\quad h:\mathbb R^n\to\mathbb R .g:Rn×Rk→Rn,σ=(σ1,…,σd), σj:Rn×Rk→Rn,l:Rn×Rk→R,h:Rn→R.

An admissible control vvv is a progressively measurable UUU-valued process with sup⁡t≤TE∣v(t)∣m<∞\sup_{t\le T}E|v(t)|^m<\inftysupt≤T​E∣v(t)∣m<∞ for every m≥1m\ge1m≥1. Its trajectory solves the state equation

dx(t)=g(x(t),v(t)) dt+∑j=1dσj(x(t),v(t)) dBj(t),x(0)=x0,dx(t)=g(x(t),v(t))\,dt+\sum_{j=1}^d\sigma^j(x(t),v(t))\,dB^j(t),\qquad x(0)=x_0,dx(t)=g(x(t),v(t))dt+j=1∑d​σj(x(t),v(t))dBj(t),x(0)=x0​,

and its cost is J(v)=E∫0Tl(x(t),v(t)) dt+E h(x(T))J(v)=E\int_0^Tl(x(t),v(t))\,dt+E\,h(x(T))J(v)=E∫0T​l(x(t),v(t))dt+Eh(x(T)). A pair (y,u)(y,u)(y,u) is optimal when J(u)≤J(v)J(u)\le J(v)J(u)≤J(v) for every admissible vvv.

Assumption (3): g,σ,l,hg,\sigma,l,hg,σ,l,h are C2C^2C2 in xxx, jointly continuous in (x,v)(x,v)(x,v) together with their first and second xxx-derivatives; gx,gxx,σx,σxx,lxx,hxxg_x,g_{xx},\sigma_x,\sigma_{xx},l_{xx},h_{xx}gx​,gxx​,σx​,σxx​,lxx​,hxx​ are bounded; and g,σ,lx,hxg,\sigma,l_x,h_xg,σ,lx​,hx​ grow at most like C(1+∣x∣+∣v∣)C(1+|x|+|v|)C(1+∣x∣+∣v∣).

The Hamiltonian is H(x,v,p,K)=l(x,v)+(p,g(x,v))+∑j(Kj,σj(x,v))H(x,v,p,K)=l(x,v)+(p,g(x,v))+\sum_j(K_j,\sigma^j(x,v))H(x,v,p,K)=l(x,v)+(p,g(x,v))+∑j​(Kj​,σj(x,v)). The first-order adjoint process (p,K)(p,K)(p,K) solves the backward equation

−dp=[gx∗p+∑jσxj∗Kj+lx]dt−∑jKj dBj,p(T)=hx(y(T)),-dp=\Big[g_x^*p+\sum_j\sigma_x^{j*}K_j+l_x\Big]dt-\sum_jK_j\,dB^j,\qquad p(T)=h_x(y(T)),−dp=[gx∗​p+j∑​σxj∗​Kj​+lx​]dt−j∑​Kj​dBj,p(T)=hx​(y(T)),

and the second-order adjoint process (P,Q)(P,Q)(P,Q), symmetric-matrix valued, solves

−dP=[gx∗P+Pgx+∑jσxj∗Pσxj+∑jσxj∗Qj+∑jQjσxj+Hxx]dt−∑jQj dBj,P(T)=hxx(y(T)),-dP=\Big[g_x^*P+Pg_x+\sum_j\sigma_x^{j*}P\sigma_x^j+\sum_j\sigma_x^{j*}Q_j+\sum_jQ_j\sigma_x^j+H_{xx}\Big]dt-\sum_jQ_j\,dB^j,\qquad P(T)=h_{xx}(y(T)),−dP=[gx∗​P+Pgx​+j∑​σxj∗​Pσxj​+j∑​σxj∗​Qj​+j∑​Qj​σxj​+Hxx​]dt−j∑​Qj​dBj,P(T)=hxx​(y(T)),

with all coefficients evaluated along (y(t),u(t))(y(t),u(t))(y(t),u(t)) and both solutions adapted to Ft\mathcal F^tFt.

Formalization targets

Goal: Theorem 3 (p. 975)

If (y,u)(y,u)(y,u) is optimal, then adjoint processes (p,K)(p,K)(p,K) and (P,Q)(P,Q)(P,Q) exist in LF2L^2_{\mathcal F}LF2​, solving the two equations above, such that for every v∈Uv\in Uv∈U, for almost every τ∈[0,T]\tau\in[0,T]τ∈[0,T], almost surely,

H(y,v,p,K−Pσ(y,u))+12tr⁡(σσ∗(y,v)P) ≥ H(y,u,p,K−Pσ(y,u))+12tr⁡(σσ∗(y,u)P),H\big(y,v,p,K-P\sigma(y,u)\big)+\tfrac12\operatorname{tr}\big(\sigma\sigma^*(y,v)P\big)\ \ge\ H\big(y,u,p,K-P\sigma(y,u)\big)+\tfrac12\operatorname{tr}\big(\sigma\sigma^*(y,u)P\big),H(y,v,p,K−Pσ(y,u))+21​tr(σσ∗(y,v)P) ≥ H(y,u,p,K−Pσ(y,u))+21​tr(σσ∗(y,u)P),

all evaluated at time τ\tauτ.

Milestones

  1. Lemma 1: the spike-perturbed state equals y+y1+y2y+y_1+y_2y+y1​+y2​ up to o(ε2)o(\varepsilon^2)o(ε2) in mean square, where y1,y2y_1,y_2y1​,y2​ solve the first- and second-order variational equations (5), (6).
  2. Lemma 2: the cost expansion (11) is ≥o(ε)\ge o(\varepsilon)≥o(ε) at an optimal control.
  3. Eq. (13): existence and uniqueness of (p,K)(p,K)(p,K) as a Riesz representer.
  4. Eq. (14): the cost expansion in Hamiltonian form is ≥o(ε)\ge o(\varepsilon)≥o(ε).
  5. Eq. (17): existence and uniqueness of (P,Q)(P,Q)(P,Q) as a Riesz representer.
  6. Eq. (18): the variational inequality for these representers.
  7. Eq. (19): (p,K)(p,K)(p,K) is the unique solution of the first-order adjoint equation.
  8. Eq. (20): (P,Q)(P,Q)(P,Q) solves the second-order adjoint equation.

Significance

The result. Theorem 3 is the necessary condition for optimal control of diffusions in its general form. When σ\sigmaσ does not depend on the control the trace terms cancel and it reduces to the classical first-order principle. When the control enters the diffusion, the first-order condition is false in general, and the second-order adjoint PPP is the correction. The theorem underlies stochastic linear-quadratic theory, the verification of optimal portfolio and volatility-control policies, and the relation between the maximum principle and the Hamilton–Jacobi–Bellman equation.

Formalizing it. The theorem is classical and proved; none of it is machine-checked. Mathlib has real Brownian motion but no stochastic integral, no SDE and no backward SDE. This mission produces the first formal statements on the platform of a controlled SDE, of a backward SDE and of the maximum principle, together with a precise definition layer (Itô integral, Itô process, BSDE solution) that later missions can reuse, e.g. for Peng's endpoint-constrained principle (§6 of the paper) or for the existence theory of BSDEs. A formal proof would also pin down the approximation arguments the paper leaves to the reader.

Difficulty

The obvious route perturbs the optimal control convexly, u+ε(v−u)u+\varepsilon(v-u)u+ε(v−u), and differentiates the cost. That needs UUU convex. For nonconvex UUU one uses a spike variation on a time interval of length ε\varepsilonε. For deterministic systems the state then moves by O(ε)O(\varepsilon)O(ε) and a first-order expansion suffices. With control-dependent diffusion the stochastic integral over the spike interval moves the state by order ε\sqrt\varepsilonε​ in L2L^2L2, so the first-order variational equation leaves an error of the same order as the effect being measured. Second-order terms in the state enter the cost at order ε\varepsilonε, and they are quadratic, so they cannot be handled by a single linear adjoint. The second-order expansion, the matrix-valued adjoint that represents the quadratic term, and the identification of both adjoints with backward SDEs are where the work lies. On the formal side, none of the stochastic calculus exists in Mathlib: the Itô isometry, Itô's formula for matrix-valued processes, moment estimates for linear SDEs and the martingale representation behind the backward equations all have to be built.

Formalization scope

Conventions committed to in Lean:

  • States, controls and noise are Fin n → ℝ, Fin k → ℝ, Fin d → ℝ with the sup norm; matrices are Matrix (Fin n) (Fin n) ℝ. Time is ℝ≥0, and time integrals are over [0, t] ⊂ ℝ.
  • The Wiener process is Rd\mathbb R^dRd-valued: the paper's "RnR^nRn-valued standard Wiener process" (p. 967) is a misprint, since σ(x,v)∈L(Rd,Rn)\sigma(x,v)\in\mathcal L(R^d,R^n)σ(x,v)∈L(Rd,Rn). Coordinates are independent real Brownian motions (Mathlib's IsBrownianReal).
  • The filtration is the natural filtration of BBB, not completed, as on p. 967.
  • "Adapted", for processes integrated in dtdtdt, is read as progressively measurable.
  • The Itô integral is a relation (an L2L^2L2 limit of elementary integrals, as in Ikeda–Watanabe), not an operator. SDE and BSDE solutions hold "for every ttt, almost surely", with sup⁡tE∣x(t)∣2<∞\sup_tE|x(t)|^2<\inftysupt​E∣x(t)∣2<∞ for forward solutions and LF2L^2_{\mathcal F}LF2​ membership for backward ones.
  • Optimality is among admissible controls of finite cost, and the optimal cost is finite; the paper never states finiteness, and a cost can be +∞+\infty+∞ under (3).
  • Lemma 1 is stated with o(ε2)o(\varepsilon^2)o(ε2) where the page prints "≤Cε2\le C\varepsilon^2≤Cε2" in (4). The proof (via (10)) establishes o(ε2)o(\varepsilon^2)o(ε2), and Lemma 2 needs it. Lemma 1, (13), (17), (19) and (20) are stated for any admissible pair, since their proofs do not use optimality.
  • "≥o(ε)\ge o(\varepsilon)≥o(ε)" means: some r(ε)=o(ε)r(\varepsilon)=o(\varepsilon)r(ε)=o(ε) as ε→0+\varepsilon\to0^+ε→0+ bounds the left side from below for small ε\varepsilonε. "∀v∈U\forall v\in U∀v∈U, a.e., a.s." quantifies vvv first, then τ\tauτ, then ω\omegaω.
  • PPP and QjQ_jQj​ are symmetric-valued (Rn,nR^{n,n}Rn,n is the space of symmetric matrices, p. 973). Stochastic integrals against the matrix σ\sigmaσ or QQQ are sums over the columns, ∑j(⋅)j dBj\sum_j(\cdot)_j\,dB^j∑j​(⋅)j​dBj.

Trivializing formalizations ruled out. Without adaptedness the backward equations have pathwise solutions with K=0K=0K=0 and the goal would be free; every adjoint and every solution is required to be progressive for the natural filtration of BBB. The hypotheses are satisfiable: a sorry-free check shows that the zero problem has an optimal pair and that the Itô relation holds for the zero integrand.

Infrastructure needed, and reusable. The Itô integral and isometry, Itô's formula (vector and matrix forms), existence, uniqueness and moment estimates for linear SDEs with bounded coefficients, Riesz representation in LF2L^2_{\mathcal F}LF2​, and existence and uniqueness for linear BSDEs (via martingale representation for the Brownian filtration). All of these are reusable well beyond this mission; contributions of any of them, as separate theorems, are welcome. Related platform definitions: the Ethier–Kurtz series (EthierKurtz_HasBrownianItoIntegral, EthierKurtz_SolvesBrownianSDE) formalizes an Itô integral by dyadic step approximation and uncontrolled SDEs over a completed filtration. The deterministic Pontryagin principle appears in Vector Space Methods XII and Dynamic Programming and Optimal Control III.

Selected references

  • S. Peng, A General Stochastic Maximum Principle for Optimal Control Problems, SIAM J. Control Optim. 28(4), 966–979, 1990. https://doi.org/10.1137/0328054
  • H. J. Kushner, Necessary Conditions for Continuous Parameter Stochastic Optimization Problems, SIAM J. Control 10(3), 550–565, 1972. https://doi.org/10.1137/0310041
  • J.-M. Bismut, An Introductory Approach to Duality in Optimal Stochastic Control, SIAM Review 20(1), 62–78, 1978. https://doi.org/10.1137/1020004
  • E. Pardoux and S. Peng, Adapted Solution of a Backward Stochastic Differential Equation, Systems & Control Letters 14(1), 55–61, 1990. https://doi.org/10.1016/0167-6911(90)90082-6
  • J. Yong and X. Y. Zhou, Stochastic Controls: Hamiltonian Systems and HJB Equations, Springer, 1999. https://doi.org/10.1007/978-1-4612-1466-3
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
Probability·Captain: mikedeng1

Markov Processes: Characterization and Convergence IV: Martingale characterization of Markov processesTextbook

From local evolution to a Markov process

A stochastic process can be described through the way functions of its state change over time. For a suitable pair of functions f and g, the difference between f evaluated along the process and the accumulated integral of g has zero conditional drift. A martingale problem specifies a collection of such pairs. The question is whether these local conditions determine the evolution of the process, including the dependence of its future on its past. Ethier and Kurtz's Chapter 4, Theorem 4.1 answers this question under analytic hypotheses on the collection of pairs and a separation condition on the functions being observed.

State space, functions, and histories

Let E be a separable metric space, with its Borel sigma algebra. Write B(E) for the bounded real Borel functions, equipped with the uniform norm. A linear relation A is a linear subspace of B(E) × B(E). A pair (f,g) in A prescribes g as the drift associated with f; the relation is allowed to be multivalued. It is dissipative when

a∥f∥≤∥af−g∥((f,g)∈A, a>0).a\|f\|\leq\|af-g\|\qquad ((f,g)\in A,\ a>0).a∥f∥≤∥af−g∥((f,g)∈A, a>0).

Let μ be a probability measure on E. A solution X of the martingale problem for (A,μ) is a jointly measurable process on a probability space with initial law μ, satisfying the compensated moment identities of Chapter 4, equation (3.4). Those identities test each compensated increment against products of bounded Borel functions of finitely many earlier states. The natural past at time s is the sigma algebra generated by all coordinates X(r) with r≤s.

A subspace L of B(E) is separating if two Borel probability measures that have the same integral against every function in L must be equal. This is a condition on measures, stronger in purpose than merely distinguishing individual states.

Characterization target

Suppose A′ is a linear subrelation of A and, for some λ>0,

R(λ−A′)‾=D(A′)‾=L,\overline{\mathcal R(\lambda-A')}=\overline{\mathcal D(A')}=L,R(λ−A′)​=D(A′)​=L,

where both closures use the uniform norm and L is separating. Given a solution X of (A,μ), the target is the existence of a strongly continuous contraction semigroup T on L generated by the closed relation A′‾\overline{A'}A′, together with

E[f(X(s+t))∣FsX]=(T(t)f)(X(s))(s,t≥0, f∈L).\mathbb E[f(X(s+t))\mid\mathcal F_s^X]=(T(t)f)(X(s))\quad(s,t\geq0,\ f\in L).E[f(X(s+t))∣FsX​]=(T(t)f)(X(s))(s,t≥0, f∈L).

The process is Markov: for every bounded Borel observable, conditioning a future observation on the entire past agrees almost surely with conditioning on the present state. In addition, any other solution with initial law μ has exactly the same finite-dimensional distributions as X. The competing solution may live on a different probability space. Existence of X is an assumption; the existence conclusion concerns its corresponding semigroup.

What the characterization establishes

The theorem joins an analytic description of evolution with a probabilistic one. The closed generator relation determines a semigroup, while the martingale identities identify the conditional evolution of the supplied process. Separation allows observables in L to determine probability laws. Uniqueness concerns every finite list of observation times, which is the source's convention for this martingale problem.

This is a known theorem of Ethier and Kurtz. The formalization target is its complete statement and eventually a machine-checked proof. The present theorem remains a proof obligation. Its expression infrastructure consists of bounded functions, the natural past, and the finite-history definition of a solution.

Mathematical difficulty

The observed functions initially lie in a subspace L, whereas the Markov conclusion ranges over all bounded Borel observations. Identifying only individual expectations does not by itself establish conditional evolution or equality of joint laws. The analytic part must also identify the entire generator graph: agreement on the original relation alone is weaker than the asserted equality with its closure. Both closure hypotheses and probability-measure separation are therefore part of the target.

Formalization scope

Bounded functions are actual pointwise real functions with the uniform norm. Borel measurability is imposed on the relation, and uniform limits preserve it. The construction does not use functions modulo almost-everywhere equality. The state space is separable and metric; completeness and local compactness are not additional hypotheses. Processes need no right-continuous or cadlag paths.

Histories may be empty, repeated, or unordered, with every history time at most the start of the increment. Products combine repeated observations. Boundedness and finite time intervals ensure the required integrability. Nonnegative real times index the processes. The semigroup is represented by a real-indexed family whose axioms concern nonnegative times; negative-time values have no mathematical role. Generator equality is a biconditional for the derivative limit from positive times. The target retains semigroup correspondence, the ordinary Markov property, and unrestricted finite-dimensional uniqueness as one theorem.

Selected references

Stewart N. Ethier and Thomas G. Kurtz, Markov Processes: Characterization and Convergence, Wiley, 1986, Chapter 4, Theorem 4.1, printed p.182 (PDF p.191); equations (3.4) and (4.2), printed pp.174 and 183. Separation conventions: Chapter 3, printed pp.112 and 116. Chapter 4.

4 thms1 active userReviewed
Probability·Captain: mikedeng1

Ethier–Kurtz: Martingales with partially ordered time (Theorem 8.7)Textbook

Martingales with partially ordered time

Optional sampling relates a process observed at two random times. A martingale has a conditional expectation at an earlier index equal to its value there, but this defining property initially concerns deterministic indices. Random indices require a separate theorem. In Chapter 2, Section 8, Ethier and Kurtz extend optional sampling to a partially ordered family of indices for use in the time changes of Chapter 6. The target is their Theorem 8.7, printed pages 87–88.

Metric lattices and information

A metric lattice is a partially ordered metric space I in which each pair of points has a greatest lower bound and a least upper bound. These are written as the meet and join. Both operations are jointly continuous. Points need not be comparable. The interval between u ≤ v consists of all points w with u ≤ w ≤ v.

A subset is separable from above if it contains a sequence aₙ that approximates each of its points w by the finite meets of those aᵢ with w ≤ aᵢ and i ≤ n. Each such meet is taken once this finite set is nonempty. The resulting sequence of meets must converge to w. The theorem assumes this condition for each interval.

Let Ω carry a probability measure P and an ambient sigma algebra. A filtration assigns a sub-sigma algebra Fᵤ to each index u, increasing with the order. A real-valued process X is a martingale if each X(u) is Fᵤ-measurable and integrable and, whenever u ≤ v,

E[X(v)∣Fu]=X(u)almost surely.E[X(v)\mid F_u]=X(u)\quad\text{almost surely}.E[X(v)∣Fu​]=X(u)almost surely.

Right continuity here has a specific lattice meaning: for every u and every outcome ω, X(u ∨ v,ω) tends to X(u,ω) as v tends to u. A stopping time τ is a Borel-measurable I-valued random variable such that {τ ≤ u} belongs to Fᵤ for every u.

The optional-sampling target

Take stopping times τ₁ ≤ τ₂ pointwise. Suppose there are deterministic sequences uₙ and vₙ in I such that

P{un≤τ1≤τ2≤vn}⟶1,P\{u_n\leq\tau_1\leq\tau_2\leq v_n\}\longrightarrow1,P{un​≤τ1​≤τ2​≤vn​}⟶1,

and

E[∣X(vn)∣1{τ2≤vn}c]⟶0.E[|X(v_n)|\mathbf1_{\{\tau_2\leq v_n\}^{c}}]\longrightarrow0.E[∣X(vn​)∣1{τ2​≤vn​}c​]⟶0.

Assume also that X(τ₂) is integrable. The target is

E[X(τ2)∣Fτ1]=X(τ1)almost surely.E[X(\tau_2)\mid F_{\tau_1}]=X(\tau_1)\quad\text{almost surely}.E[X(τ2​)∣Fτ1​​]=X(τ1​)almost surely.

The sigma algebra Fτ consists of ambient-measurable events A for which A ∩ {τ ≤ u} belongs to Fᵤ for every u. This is the information used in the conclusion.

What the result provides

The conclusion extends the martingale identity to random lattice indices under explicit exhaustion and tail assumptions. Neither a deterministic bound on both stopping times nor a linear ordering of all indices is part of the statement. This is a known theorem in the cited book. The formal target retains the full conditional-expectation identity; its proof remains to be formalized.

Why the hypotheses matter

In a partially ordered space, the complement of {τ₂ ≤ vₙ} includes incomparable indices. Replacing this complement by {vₙ < τ₂} would change the tail assumption. Likewise, right continuity must use lattice joins, rather than a one-dimensional time convention. Controlling probabilities of the exhaustion events alone does not state the integrability control required by the second limit. Both limits belong to the theorem.

Mathematical scope and conventions

The index space has a metric and a lattice structure with continuous meet and join. No top, bottom, completeness of the metric, or linear order is required. The filtration need not be complete or right continuous. The stopping times are finite I-valued variables; their measurability is explicit. The sequences uₙ and vₙ need not be monotone. The nonnegative tail expectation uses extended nonnegative integration, avoiding a default value for a nonintegrable real integral. Indexwise integrability is retained explicitly, along with terminal integrability.

The two accompanying definitions express separation from above and the stopped sigma algebra. Together with the martingale and stopping-time conditions, they specify the single optional-sampling theorem. The target contains no additional supporting-theorem milestones.

Source

Stewart N. Ethier and Thomas G. Kurtz, Markov Processes: Characterization and Convergence, Wiley, 1986, Chapter 2 §8, Theorem 8.7, printed pp. 87–88 (supplied PDF pp. 96–97); definitions and equation (8.6), printed p. 85 (PDF p. 94). Chapter 2.

3 thms1 active userReviewed
Linear Optimization·Captain: mikedeng1

Stochastic Linear Programming 01: Distribution of Random LP Optimal ValuesTextbook

Motivation

A stochastic linear program is a linear optimization problem whose coefficients depend on a random parameter. Even when the model is feasible and bounded almost surely, its optimal value is itself a random quantity. Knowing only its expectation can hide the probability of unusually favorable or unfavorable outcomes; its full distribution supports threshold probabilities, quantiles, and later risk-sensitive decisions. Chapter II of Peter Kall's Stochastic Linear Programming develops a finite-dimensional method for determining that distribution when the constraint matrix, right-hand side, and objective coefficients depend affinely on the same random vector. Theorem 8, printed p. 29 / PDF35, is the chapter's general distribution formula. This mission asks for that known theorem to be proved in Lean from its reviewed statement.

Setting

Fix a finite parameter vector t∈Rrt\in\mathbb R^rt∈Rr. An affine random linear program supplies a matrix A(t)∈Rm×nA(t)\in\mathbb R^{m\times n}A(t)∈Rm×n, a right-hand side b(t)∈Rmb(t)\in\mathbb R^mb(t)∈Rm, and costs c(t)∈Rnc(t)\in\mathbb R^nc(t)∈Rn, each affine in ttt. Its optimal value is the extended-real infimum

γ(t)=inf⁡{c(t)⊤x:A(t)x=b(t), x≥0}.\gamma(t)=\inf\{c(t)^\top x:A(t)x=b(t),\ x\ge 0\}.γ(t)=inf{c(t)⊤x:A(t)x=b(t), x≥0}.

The parameter has a probability law μ\muμ, supported almost surely on a measurable set TTT, with a nonnegative extended-real density fff relative to Lebesgue measure. The extended-real value records infeasibility as +∞+\infty+∞ and unboundedness as −∞-\infty−∞; the target distribution deliberately restricts to the finite-value event −∞<γ(t)≤ξ-\infty<\gamma(t)\le\xi−∞<γ(t)≤ξ.

A candidate basis is an increasing selection σ:Fin⁡(m)→Fin⁡(n)\sigma:\operatorname{Fin}(m)\to\operatorname{Fin}(n)σ:Fin(m)→Fin(n). Its basis matrix Bσ(t)B_\sigma(t)Bσ​(t) consists of the selected columns of A(t)A(t)A(t). Kall enumerates exactly those candidate bases whose determinant is nonzero at some point of TTT. For each one, its raw optimality region consists of the parameters for which Bσ(t)−1b(t)≥0B_\sigma(t)^{-1}b(t)\ge0Bσ​(t)−1b(t)≥0 and the reduced costs c(t)⊤−cB(t)⊤Bσ(t)−1A(t)c(t)^\top-c_B(t)^\top B_\sigma(t)^{-1}A(t)c(t)⊤−cB​(t)⊤Bσ​(t)−1A(t) are nonnegative. Matrix inversion is totalized to zero at singular matrices, matching the source convention. The ordered basis regions remove every earlier raw region, so overlapping optimal bases are assigned to the first enumerated basis. On a basis region the associated value is

γσ(t)=cB(t)⊤Bσ(t)−1b(t).\gamma_\sigma(t)=c_B(t)^\top B_\sigma(t)^{-1}b(t).γσ​(t)=cB​(t)⊤Bσ​(t)−1b(t).

Assumption A1 is explicit in Lean: the density and support clauses above, both almost-sure feasibility/boundedness implications from Theorem 4, and the existence of one full-row-rank column minor at a point of TTT. The basis enumeration is injective and exhaustive for the almost nonsingular increasing selections.

Formalization targets

Theorem 8: distribution by basis regions

For the ordered regions BiB_iBi​, the theorem states

μ ⁣(⋃iBi)=∑iμ(Bi)=1.\mu\!\left(\bigcup_i B_i\right)=\sum_i\mu(B_i)=1.μ(i⋃​Bi​)=i∑​μ(Bi​)=1.

For every real threshold ξ\xiξ, it further identifies the finite optimal-value distribution by

μ{t∈T:−∞<γ(t)≤ξ}=∑i∫{t∈Bi:γi(t)≤ξ}f(t) dt.\mu\{t\in T:-\infty<\gamma(t)\le\xi\} =\sum_i\int_{\{t\in B_i:\gamma_i(t)\le\xi\}} f(t)\,dt.μ{t∈T:−∞<γ(t)≤ξ}=i∑​∫{t∈Bi​:γi​(t)≤ξ}​f(t)dt.

The normalization and distribution identity are the two clauses of the same source theorem and remain one goal. Determinant facts, special stochastic models, and examples elsewhere in the chapter are context rather than additional mission targets.

Significance

The result turns the distribution of a random optimization value into a finite sum of ordinary density integrals over explicitly described parameter regions. It connects parametric linear programming geometry with probabilistic questions about the optimum and provides the chapter's foundation for studying particular stochastic models and derived distributional quantities. Without the coverage and normalization clauses, the integral expression could omit positive-probability parameter regimes; without the finite-value event, extended-real exceptional outcomes would be conflated with a real-valued distribution function.

The theorem is established in the 1976 source, but the staged Lean declaration contains a proof placeholder. Completing it would produce a machine-checked account of the basis-region decomposition under the source's full hypotheses. The reusable content includes the affine model, basis matrix, raw-region inequalities, ordered disjointification, basis value, and the referenced extended-real linear-program value.

Difficulty

The natural pointwise argument chooses an optimal basis and substitutes its basic solution. That alone does not prove a measurable probability decomposition: several bases may be optimal at the same parameter, bases may become singular on exceptional sets, and the optimal value may be infinite. The ordered subtraction of earlier regions resolves overlap only after one proves exhaustive coverage under A1. The final equality must also connect the extended-real infimum to the real basis value on each region and justify the density integrals on the threshold sets. Treating the raw regions as automatically disjoint or silently assuming every parameter has a unique nonsingular optimizer would bypass the central issues.

Formalization scope

All dimensions and basis lists are finite. The law is a probability measure on Fin⁡(r)→R\operatorname{Fin}(r)\to\mathbb RFin(r)→R, represented as volume.withDensity f; TTT is measurable and carries the law almost surely. The density is ENNReal-valued and the displayed integrals are nonnegative lintegrals. No integrability or finite-moment hypothesis is imposed on the optimal value. LPValue is an existing referenced platform definition using EReal.sInf; the book-local declarations remain in the shared Kall1976 namespace. Mathlib's nonsingular inverse supplies the source's zero value at singular matrices.

The formal target must retain both almost-sure implications, the one-point full-rank condition, increasing and exhaustive basis enumeration, region ordering, probability-one normalization, the strict lower bound by −∞-\infty−∞, and the weak upper threshold ≤ξ\le\xi≤ξ. Removing any of these clauses would change the reviewed theorem rather than simplify its proof. Contributions may develop measurable-region, finite-basis coverage, LP optimality, and density-integration lemmas, provided they preserve these conventions.

Selected references

  • Peter Kall, Stochastic Linear Programming, Springer, 1976, Chapter II §1: Theorem 4 printed p. 25 / PDF31; model (5) printed p. 27 / PDF33; Assumption A1 printed p. 28 / PDF34; Theorem 8 printed p. 29 / PDF35. DOI.
3 thms1 active userReviewed
AnalysisProbability·Captain: naimengye

Probability Theory and Examples VI: Donsker's TheoremTextbook

Motivation

The central limit theorem says that Sn/nS_n/\sqrt nSn​/n​ converges to a normal random variable. Donsker's theorem says something much stronger: the whole rescaled path of the random walk converges to the whole path of a Brownian motion, as a random element of C[0,1]C[0,1]C[0,1].

The payoff is a machine. Once S(n⋅)/n⇒B(⋅)S(n\cdot)/\sqrt n\Rightarrow B(\cdot)S(n⋅)/n​⇒B(⋅) in C[0,1]C[0,1]C[0,1], every functional of the path that is continuous — or merely continuous at almost every Brownian path — transfers automatically. The maximum of the walk converges to the maximum of Brownian motion; the fraction of time the walk spends above a level converges to the corresponding occupation time; the last zero before time nnn converges to the last Brownian zero before time 111, which is how the arcsine law escapes the simple random walk it was proved for. This is the invariance principle of Erdős and Kac: the asymptotic behaviour of a functional of SnS_nSn​ should not depend on the step distribution, as long as the central limit theorem applies.

Chapter 8 of Rick Durrett's Probability: Theory and Examples (Version 5, 2019) proves this by embedding rather than by the usual tightness argument. Skorokhod's representation theorem puts a mean-zero, finite-variance random variable inside a Brownian motion as the value at a stopping time; iterating puts the whole walk inside one Brownian motion at a sequence of stopping times whose gaps are i.i.d.; and the law of large numbers then forces the embedded walk to be uniformly close to the Brownian path.

Setting

Let X1,X2,…X_1,X_2,\dotsX1​,X2​,… be i.i.d. with mean 000 and variance 111, and Sm=X1+⋯+XmS_m=X_1+\dots+X_mSm​=X1​+⋯+Xm​. Define S(u)S(u)S(u) to be SmS_mSm​ at integer u=mu=mu=m and linear in between, and set

Wn(t) = S(nt)n,t∈[0,1],W_n(t)\ =\ \frac{S(nt)}{\sqrt n},\qquad t\in[0,1],Wn​(t) = n​S(nt)​,t∈[0,1],

a random element of C[0,1]C[0,1]C[0,1], the continuous functions on the unit interval with the uniform norm and its Borel σ\sigmaσ-algebra.

On the Brownian side, let BBB be a Brownian motion, and write B(⋅)B(\cdot)B(⋅) for its restriction to [0,1][0,1][0,1], again a random element of C[0,1]C[0,1]C[0,1].

Formalization targets

Goal — Theorem 8.1.4, Donsker's theorem

S(n⋅)n ⟹ B(⋅)in C[0,1],\frac{S(n\cdot)}{\sqrt n}\ \Longrightarrow\ B(\cdot)\qquad\text{in }C[0,1],n​S(n⋅)​ ⟹ B(⋅)in C[0,1],

that is, the laws of WnW_nWn​ on C[0,1]C[0,1]C[0,1] converge weakly to the law of Brownian motion. This is a statement about measures on a function space, not about finite-dimensional marginals: it is exactly the extra content over the central limit theorem.

Supporting levels

Theorem 8.1.1, Skorokhod's representation theorem: a mean-zero, square-integrable law is the law of BTB_TBT​ for a stopping time TTT with ET=EX2\mathbb ET=\mathbb EX^2ET=EX2; Theorem 8.1.2, the embedding of the whole walk, giving stopping times T0=0,T1,…T_0=0,T_1,\dotsT0​=0,T1​,… with (B(Tn))n(B(T_n))_n(B(Tn​))n​ distributed as the walk and with i.i.d. gaps; Theorem 8.1.5, the continuous mapping theorem for almost surely continuous functionals; and its two workhorse instances, Example 8.1.6 on maxima and Example 8.1.8 on occupation times of half-lines.

Significance

The results themselves. Donsker's theorem is the reason the arcsine law, the distribution of the maximum, and the occupation-time law are universal rather than artefacts of the simple random walk for which they were first computed. It is also the prototype for every later functional limit theorem — for martingales in Durrett's section 8.2, for stationary sequences in 8.3, for the empirical process converging to a Brownian bridge in 8.4.

Skorokhod's embedding deserves separate billing. It says any centred law with finite variance sits inside Brownian motion, which is what makes the path-space comparison possible at all, and it is the tool behind the law of the iterated logarithm in Durrett's section 8.5. The construction is a two-point mixture: write the law as a mixture of two-point laws μu,v\mu_{u,v}μu,v​ with mean zero, use the exit time of (u,v)(u,v)(u,v) for each, and the exit-time identity ETa,b=−ab\mathbb ET_{a,b}=-abETa,b​=−ab integrates to EX2\mathbb EX^2EX2.

Formalizing them. Mathlib has the i.i.d. central limit theorem, convergence in distribution for random elements of an arbitrary topological space (TendstoInDistribution, with the continuous mapping theorem and Slutsky), Brownian motion as a process with its invariances, and the machinery of stopping times for filtered spaces. It has no functional limit theorem of any kind, no Wiener measure on C[0,1]C[0,1]C[0,1], no Skorokhod embedding, and no continuous-time optional stopping. Nothing in the library relates a random walk to a Brownian path.

Difficulty

The goal is the hardest item in this series, and the embedding route is the reason the mission is stated the way it is. Durrett's proof: with Xn,m=Xm/nX_{n,m}=X_m/\sqrt nXn,m​=Xm​/n​ and stopping times τmn\tau^n_mτmn​ realizing (Sn,1,…,Sn,n)(S_{n,1},\dots,S_{n,n})(Sn,1​,…,Sn,n​) as (B(τ1n),…,B(τnn))(B(\tau^n_1),\dots,B(\tau^n_n))(B(τ1n​),…,B(τnn​)), Lemma 8.1.9 says that if τ⌊ns⌋n→s\tau^n_{\lfloor ns\rfloor}\to sτ⌊ns⌋n​→s in probability for each s∈[0,1]s\in[0,1]s∈[0,1], then ∥Sn,(n⋅)−B(⋅)∥∞→0\|S_{n,(n\cdot)}-B(\cdot)\|_\infty\to0∥Sn,(n⋅)​−B(⋅)∥∞​→0 in probability. The hypothesis is the weak law applied to the i.i.d. gaps of Theorem 8.1.2 after Brownian scaling; the conclusion plus the converging-together lemma gives the theorem. The work is uniform control of the Brownian path over shrinking time windows — the modulus of continuity — together with the bookkeeping of the polygonal interpolation.

Skorokhod's theorem needs the two exit-time facts for Brownian motion, Durrett's Theorems 7.5.3 and 7.5.5: BTa,bB_{T_{a,b}}BTa,b​​ takes the values aaa and bbb with probabilities b/(b−a)b/(b-a)b/(b−a) and −a/(b−a)-a/(b-a)−a/(b−a), and ETa,b=−ab\mathbb ET_{a,b}=-abETa,b​=−ab. Both come from optional stopping applied to BtB_tBt​ and Bt2−tB_t^2-tBt2​−t, and continuous-time optional stopping is itself not in the library. The mixture identity,

∫φ dF=c−1∫0∞dF(v)∫−∞0dF(u) (v−u)[vv−uφ(u)+−uv−uφ(v)],c=∫0∞v dF(v),\int\varphi\,dF=c^{-1}\int_0^\infty dF(v)\int_{-\infty}^0 dF(u)\,(v-u) \Bigl[\tfrac{v}{v-u}\varphi(u)+\tfrac{-u}{v-u}\varphi(v)\Bigr], \qquad c=\int_0^\infty v\,dF(v),∫φdF=c−1∫0∞​dF(v)∫−∞0​dF(u)(v−u)[v−uv​φ(u)+v−u−u​φ(v)],c=∫0∞​vdF(v),

is elementary but needs Fubini and the two expressions for ccc.

Theorem 8.1.5 is the Mann–Wald theorem in the form that allows a discontinuous ψ\psiψ: Mathlib's TendstoInDistribution.continuous_comp handles genuinely continuous maps, and the extension to maps continuous almost everywhere with respect to the limit law is the milestone. Given it, the two examples are short — the maximum is continuous outright, and the occupation-time functional is continuous at every path spending no time at the level aaa, which Fubini shows is almost every Brownian path.

Formalization scope

C[0,1]C[0,1]C[0,1] is C(Set.Icc (0:ℝ) 1, ℝ), whose compact-open topology is the uniform one because the domain is compact, with the Borel σ\sigmaσ-algebra — Mathlib has no measurable-space instance on a space of continuous maps, so the mission supplies it, and a BorelSpace instance with it.

The polygonal interpolation is written as a finite sum,

S(u)=∑k<nXk⋅clamp⁡(u−k),clamp⁡(x)=max⁡(0,min⁡(1,x)),S(u)=\sum_{k<n}X_k\cdot\operatorname{clamp}(u-k),\qquad \operatorname{clamp}(x)=\max(0,\min(1,x)),S(u)=k<n∑​Xk​⋅clamp(u−k),clamp(x)=max(0,min(1,x)),

which agrees with SmS_mSm​ at integer m≤nm\le nm≤n and is linear in between, and is manifestly continuous, so walkPath is a genuine element of C[0,1]C[0,1]C[0,1] with no side condition. Both properties were proved in Lean before publishing rather than assumed. Indexing is from zero, so Sm=X0+⋯+Xm−1S_m=X_0+\dots+X_{m-1}Sm​=X0​+⋯+Xm−1​.

The Brownian limit is brownianPath B, the restriction of the path to [0,1][0,1][0,1]. Restriction is a total function: it returns the zero path for a discontinuous argument. That junk branch is never reached, because every statement assumes every path of BBB is continuous, not merely almost every one — one may always modify a Brownian motion on a null set to achieve this, and Durrett's canonical construction on C[0,∞)C[0,\infty)C[0,∞) has it by definition. Without it there would be no C[0,1]C[0,1]C[0,1]-valued random variable to speak of.

Weak convergence is Mathlib's TendstoInDistribution, the same predicate mission II used for the Lindeberg–Feller theorem, instantiated at C[0,1]C[0,1]C[0,1] rather than at R\mathbb RR.

Skorokhod's theorem and the embedding of the walk are stated as existence of a probability space carrying the Brownian motion, a filtration and the stopping times. This is how Durrett states them — the construction needs an independent pair (U,V)(U,V)(U,V) alongside the Brownian motion, and he notes himself that TU,VT_{U,V}TU,V​ is a stopping time only for the enlarged filtration. The filtration is therefore an explicit family FtF_tFt​ that is increasing, sits inside the ambient σ\sigmaσ-field, and contains σ(Bs:s≤t)\sigma(B_s:s\le t)σ(Bs​:s≤t) — the pastSigma of mission V, which this mission imports as a reference. The stopping-time property is {T ≤ t} ∈ F_t, stated directly rather than through a bundled filtration structure.

Theorem 8.1.2's conclusion "Sn=dB(Tn)S_n=_d B(T_n)Sn​=d​B(Tn​)" is read as equality of the laws of the whole processes: the push-forward of ω↦(n↦B(Tnω))\omega\mapsto(n\mapsto B(T_n\omega))ω↦(n↦B(Tn​ω)) equals the law of the partial-sum process of an i.i.d. sequence with step law μ\muμ, taken on the infinite product measure. The gaps are required to be independent and identically distributed, as the book says.

The counting in Example 8.1.8 is a sum of indicators rather than a filtered cardinality, to keep a decidability side condition out of the statement, and the limit is the Lebesgue measure of {t∈[0,1]:Bt>a}\{t\in[0,1]:B_t>a\}{t∈[0,1]:Bt​>a} as a real number. Example 8.1.6 takes the maximum over 0≤m≤n0\le m\le n0≤m≤n, which includes S0=0S_0=0S0​=0, and the limit is the supremum of BBB over [0,1][0,1][0,1], attained because the path is continuous on a compact interval.

Existence of a Brownian motion is a hypothesis, not a claim, exactly as in mission V, except in Theorems 8.1.1 and 8.1.2 where the existence of a suitable space is the content of the statement and a Brownian motion must be produced; that is Durrett's Theorem 7.1.1, which the library does not yet have, so those two items subsume it.

Contributions welcome beyond the listed items: Lemma 8.1.9 on its own; Theorem 8.1.3, the CLT derived from the embedding; Example 8.1.7, the last zero before time nnn and the arcsine law; continuous-time optional stopping and the exit identities 7.5.3 and 7.5.5 that Skorokhod's theorem rests on; the extension to C[0,∞)C[0,\infty)C[0,∞); and the martingale, stationary-sequence and empirical-process versions of sections 8.2 to 8.4.

Selected references

  • Rick Durrett, Probability: Theory and Examples, Version 5 (11 January 2019), chapter 8, section 8.1 (pp. 389–395); Theorems 8.1.1, 8.1.2, 8.1.4, 8.1.5, Examples 8.1.6 and 8.1.8. Published as the 5th edition, Cambridge University Press, 2019, DOI 10.1017/9781108591034
  • M. D. Donsker, An invariance principle for certain probability limit theorems, Memoirs of the American Mathematical Society 6 (1951).
  • A. V. Skorokhod, Studies in the Theory of Random Processes, Addison-Wesley, 1965.
  • P. Erdős and M. Kac, On certain limit theorems of the theory of probability, Bulletin of the American Mathematical Society 52 (1946), 292–302. DOI 10.1090/S0002-9904-1946-08560-2
  • P. Billingsley, Convergence of Probability Measures, 2nd ed., Wiley, 1999, chapters 2 and 8. DOI 10.1002/9780470316962
8 thms1 active userReviewed
PreviousPage 18 of 18Next

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