Mathematical finance, machine-checked.
A Lean 4 library on Mathlib and Rémy Degenne's BrownianMotion: stochastic
calculus, arbitrage and pricing, term structure and credit, portfolios and risk, each statement
checked by Lean's kernel. There is no sorry, and every theorem the corpus cites is pinned,
by the build, to Lean's three standard axioms (propext, Classical.choice,
Quot.sound).
Learn
Build
[[require]]
entry for https://github.com/formal-applied-math/formal-mathfin pinned to a release tag; the
README has the lines. To add a theorem, read
CONTRIBUTING and the
onboarding guide, or use the search above.Research
sorry · axioms pinnedThe map
Each disc is a cell of the taxonomy (docs/taxonomy.toml),
sized by its declarations: probability and statistics at the centre, positions and markets around
them, valuation, choice and risk outside. An arrow runs from a cell to one that builds on it,
thicker the more of its modules are imported. Hover to see a cell's neighbours, click to open it.
Table view
| Cell | Layer | Modules | Declarations | Corpus entries |
|---|---|---|---|---|
| Valuation · American options and optimal stopping | Valuation, choice and risk | 177 | 1310 | 25 |
| Probability · Brownian calculus | Probability and statistics | 108 | 1200 | 72 |
| Valuation · Black–Scholes and Bachelier | Valuation, choice and risk | 67 | 547 | 125 |
| Valuation · Interest rates | Valuation, choice and risk | 54 | 539 | 97 |
| Valuation · The smile | Valuation, choice and risk | 54 | 416 | 21 |
| Positions and markets | Positions and markets | 27 | 338 | 37 |
| Valuation · Trees | Valuation, choice and risk | 24 | 331 | 37 |
| Valuation · Jump models | Valuation, choice and risk | 23 | 297 | 78 |
| Valuation · Volatility models | Valuation, choice and risk | 11 | 187 | 15 |
| Probability · Gaussian analysis | Probability and statistics | 12 | 175 | 6 |
| Probability · Continuous martingales | Probability and statistics | 17 | 158 | 4 |
| Risk · Value at risk and expected shortfall | Valuation, choice and risk | 16 | 155 | 38 |
| Choice · Portfolio choice | Valuation, choice and risk | 18 | 138 | 32 |
| Statistics | Probability and statistics | 12 | 136 | 21 |
| Valuation · Static replication and model-free bounds | Valuation, choice and risk | 21 | 134 | 32 |
| Probability · Dependence | Probability and statistics | 7 | 133 | 18 |
| Valuation · Credit | Valuation, choice and risk | 13 | 128 | 22 |
| Valuation · Life contingencies | Valuation, choice and risk | 8 | 124 | 21 |
| Risk · Risk measures | Valuation, choice and risk | 11 | 124 | 29 |
| Probability · Laws | Probability and statistics | 9 | 120 | 15 |
| Choice · Market microstructure | Valuation, choice and risk | 8 | 119 | 11 |
| Probability · Jumps | Probability and statistics | 15 | 117 | 15 |
| Valuation · Arbitrage pricing | Valuation, choice and risk | 13 | 87 | 14 |
| Risk · Credit portfolio risk | Valuation, choice and risk | 10 | 84 | 18 |
| Probability · Discrete time | Probability and statistics | 13 | 81 | 9 |
| Probability · Analysis and convexity | Probability and statistics | 12 | 75 | 4 |
| Risk · Aggregation and diversification | Valuation, choice and risk | 7 | 55 | 13 |
| Valuation · Forwards, FX and commodities | Valuation, choice and risk | 7 | 48 | 17 |
| Choice · Preferences | Valuation, choice and risk | 3 | 42 | 5 |
| Choice · Dynamic choice | Valuation, choice and risk | 2 | 34 | 8 |
| Risk · Exposure | Valuation, choice and risk | 3 | 30 | 6 |
| Choice · Equilibrium | Valuation, choice and risk | 3 | 22 | 6 |
| Risk · Collective risk theory | Valuation, choice and risk | 2 | 16 | 4 |
Landmarks
The proved results on the blueprint that the most other results build on.