Lean 4 中形式化验证的金融数学库
A Formally Verified Library of Mathematical Finance in Lean 4
AI总结:
本文在 Lean 4 证明助手中构建了一个涵盖连续时间随机微积分、衍生品定价、风险、投资组合和固定收益理论的广泛金融数学库,通过忠实性审计确保每个定理的声明与实际证明一致。
摘要:
我们描述了一个在 Lean 4 证明助手中构建的金融数学库,它基于 Mathlib 和 BrownianMotion 包。该库范围广泛:涵盖从连续时间随机微积分的测度论基础到衍生品定价,再到应用风险、投资组合和固定收益理论的十一个领域,包含超过两百个无抱歉定理,据我们所知,这是迄今为止最全面的机器验证的金融数学发展。广度是背景,而非重点。有两件事使其不仅仅是目录。它深入连续理论,足以将 L2 Itô 积分构造为有界线性等距,并推导出风险中性定价测度,而非假设。它还审计自身的忠实性:每个结果都根据其 Lean 陈述与所声称的数学之间的关系进行分类,并且一个构建强制门固定了每个证明实际使用的公理,因此读者可以精确地看到哪些已被证明,哪些仅在附加假设下被证明。我们以一个坦诚的发现结束:经典金融数学的形式化基础产生了已知结果的认证统一,而非新的金融理论。因此,贡献是方法论和基础设施层面的:可重用的验证过的金融数学基础,以及忠实性审计。
英文摘要:
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ô integral is constructed rather than assumed. On it the library proves Itô's formula for C2 functions of Itô processes as an identity of processes, Lévy'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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。