A Formally Verified Library of Mathematical Finance in Lean 4
Raphael Coelho
Papers from arXiv.org
Abstract:
We describe a library of mathematical finance in the Lean 4 proof assistant, built on Mathlib and the BrownianMotion package. Its benchmark records 804 results from the literature, each with a Lean statement, a status, and a published account of what the formalization leaves out: 766 are proved in full, 18 restate an upstream theorem, and 20 are reduced cores that prove less than the result they are named after. The library is about 158,000 lines of Lean, contains no sorry, and a build-time audit pins every library constant that a benchmark proof cites to Lean's three standard axioms. The It\^o integral is constructed rather than assumed. On it the library proves It\^o's formula for C2 functions of It\^o processes as an identity of processes, L\'evy's characterisation, martingale representation, Girsanov's theorem for bounded predictable drifts, which yields a Brownian motion for the filtration when the driver's paths are almost surely continuous, and unique L2 solutions of Lipschitz stochastic differential equations on every horizon. These results reach the contracts a user prices. In a contract language that separates payoffs from models, the Black-Scholes call is replicated by its delta hedge up to every date before maturity, and every fixed-dated contract on the physical Black-Scholes asset has, under the Girsanov measure of a horizon containing its dates, its risk-neutral value. An audit of faithfulness makes the logical status of every claim checkable, and its review has caught what mechanical gates cannot see, including a convergence theorem whose hypothesis could never be satisfied. Nearly all of the mathematics is classical, and what a formal base over it produces is certified unification of known results; two contributed developments, by Robert Martin, address problems the library's own survey had listed as open. The contribution is methodological and infrastructural.
Date: 2026-05, Revised 2026-11
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (1)
Downloads: (external link)
https://arxiv.org/pdf/2606.01356 Latest version (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:arx:papers:2606.01356
Access Statistics for this paper
More papers in Papers from arXiv.org
Bibliographic data for series maintained by arXiv administrators ().