A Formalization of Doob's Martingale Convergence Theorems in mathlib
Probability theory, specifically martingale convergence theory, was largely absent from Lean's mathematical library, despite being foundational to stochastic analysis and applications like the Borel-Cantelli lemma.
The authors formalize Doob's martingale convergence theorems in mathlib for the Lean theorem prover, providing conditions under which submartingales converge almost everywhere or in L^1. They construct a definition of conditional expectation in Banach spaces and develop theory around stochastic processes, stopping times, and martingales. As an application, they formalize Levy's generalized Borel-Cantelli lemma.
The work represents one of the earliest developments of probability theory in mathlib, building on topology, analysis, and measure theory components of the library.
