paper

A Machine-Checked Itô Calculus for Brownian Motion

arXiv:2606.15089

Abstract

We develop the Itô calculus of Brownian motion, machine-checked in Lean~4 over Mathlib and the \lean{BrownianMotion} package. On a bounded interval the Itô integral is built as a Hilbert-space isometry, from a predictable-rectangle -system through the density of simple adapted processes. Realized as a process, it is a continuous martingale. One structural identity drives this: the integral at time is the conditional-expectation projection of its terminal value onto $\F_t$, and from it adaptedness, the martingale property, the contraction bound, and both the terminal and time-indexed Itô isometries follow as corollaries. On this integral we prove Itô's formula for functions with bounded derivatives, including the time-dependent form , by a discrete-to-continuous argument through weighted quadratic variation with explicit remainder bounds. We then pass from the theory to the pathwise. The integral process has an almost-surely continuous modification, and its everywhere-continuous representative is a local martingale for the null-augmented Brownian filtration; gluing the bounded-horizon representatives along the half-line yields the Itô integral as a continuous local martingale on all of , the form it takes in the classical theory. To our knowledge these are the first machine-checked constructions of the Itô integral and of Itô's formula in any proof assistant, and the first to reach a pathwise-continuous local martingale. The boundary is explicit. The integral and Itô's formula are developed on with bounded-derivative integrands; the unrestricted formula, integrators beyond brownian motion, and right-continuity of the filtration lie outside the development.

Artifact: https://github.com/raphaelrrcoelho/formal-mathfin

A Machine-Checked Itô Calculus for Brownian Motion · wovepaper