← All papers
First page of Formalization of Brownian motion in Lean

Formalization of Brownian motion in Lean

Rémy Degenne, David Ledvinka, Etienne Marion, Peter Pfaffelhuber

math.PR Nov 25, 2025 · v1
Formalizes the construction of Brownian motion in Lean, building on Mathlib's measure-theoretic foundations.
Brownian motion is a building block in modern probability theory. In this paper, we describe a formalization of Brownian motion using the Lean theorem prover. We build on the existing measure-theoretic foundations in Lean's mathematical library, Mathlib, and we develop several key components needed for the construction of Brownian motion, including the Carathéodory and Kolmogorov extension theorems, Gaussian measures in Banach spaces, and the Kolmogorov-Chentsov theorem for path continuity.

Brownian motion is a foundational object in modern probability theory, but it had not been formally constructed in the Lean theorem prover. The construction requires several deep theorems not previously available in Mathlib.

The authors formalize Brownian motion in Lean, building on Mathlib's measure-theoretic foundations. They develop key components including the Caratheodory and Kolmogorov extension theorems, Gaussian measures in Banach spaces, and the Kolmogorov-Chentsov theorem for path continuity.

A stochastic process with continuous paths, starting at zero, and with Gaussian increments is constructed in Lean. The formalization contributes new infrastructure for random variables and stochastic processes to Mathlib, including probability distributions, characteristic functions, and path regularity results.