This is an open, collaborative project with the goal of formalizing stochastic processes and stochastic integration in Lean. There are currently two main parts:
-
A formalization of Brownian motion, which is now complete. That task needed a development of the theory of Gaussian distributions, the construction of a projective family of Gaussian distributions and its projective limit by the Kolmogorov extension theorem, and a proof of a Kolmogorov-Chentsov continuity theorem.
-
A definition of stochastic integrals and proof of Ito's lemma. This is in progress.
For more information, see the project home page, in particular the blueprint.
We now have a full implementation of a Brownian motion on the positive real half line, and are in the process of migrating our results to Mathlib. See that page for a brief overview of the results.
We also have a preprint, available at https://arxiv.org/pdf/2511.20118. To cite our work on Brownian motion, please use the following BibTex entry:
@article{degenne2025formalization,
title={Formalization of Brownian motion in Lean},
author={Degenne, R{\'e}my and Ledvinka, David and Marion, Etienne and Pfaffelhuber, Peter},
journal={arXiv preprint arXiv:2511.20118},
year={2025}
}
We are now building the necessary theory to define the integral against a semi-martingale, with the goal to then prove Ito's lemma. See this Zulip channel for discussion: zulip link
If you want to get involved, you can look at the open issues. Please read the CONTRIBUTING file to learn how to claim an issue. To see what we will need and where we are going, you can refer to the blueprint, which we gradually refine alongside the Lean code.
Our github project uses the Leanblueprint tool by Patrick Massot and a lot of code from the LeanProject template by Pietro Monticone.