Repository navigation
formal-mathfin v1.6.0
This release takes the corpus from 535 to 658 theorems, 642 of them delivery-ready, still with no sorries and only the three standard axioms.
Most of the new work is @leafyoung's, in about thirty pull requests. Many thanks to them. In fixed income and credit there is CVA under independent exposure with the default density of a hazard curve (#259), DVA and FVA with Gaussian exposure profiles (#272), the large-homogeneous-portfolio tranche expected loss (#262), the one-factor Gaussian copula on n names (#260), CreditRisk+ sector generating functions and a correlated Gaussian defaultable bond (#273), CreditMetrics rating transitions (#268), the zero-coupon inflation swap and the year-on-year convexity (#252), the covariance-between-numéraires identity behind the timing adjustment and the futures–forward basis (#265), the Vasicek bridge from the real-world to the risk-neutral short rate (#263), the Nelson–Siegel–Svensson curve with its short- and long-end limits (#283), and the Hermite layer of the Ornstein–Uhlenbeck generator on polynomials (#249). Thanks to @oxarbitrage, the closed-form CIR loadings now solve their term-structure equations (#245).
On the option side there is a reusable bivariate normal CDF (#266), and on it Stulz's two-asset rainbow and the Heynen–Kat two-asset barrier (#282). There are also the dividend-adjusted PDE and put–call parity and the put Greek signs (#261), calendar-spread arbitrage as monotonicity of total variance (#269), the forward smile and Dupire's ratio on a tilted surface (#250), and the leverage-function core of local-stochastic-volatility calibration (#251). Kirk's spread approximation is defined, and its effective variance reduces to Margrabe's at zero strike, the one exact check available (#276).
Risk and portfolio gain discrete-law VaR and expected shortfall (#248), the Fissler–Ziegel joint elicitability of VaR and ES for the exponential member of the family (#267), component VaR with its Euler decomposition and the single-index covariance model (#272), KKT sufficiency for convex quadratic programs (#274), and the Roll spread estimator, SA-CCR exposure and López de Prado's quant statistics (#279). There are also Uniswap v2/v3, Curve, Aave, Compound and Dai mechanism results (#278), commodity storage and the Schwartz one-factor futures price (#264, #280), and estimation results: the Gaussian detection terms and the realised-volatility bias (#253).
#244 brings the Itô–drift batch with Hull–White and Monte Carlo deltas and the Cox, CMS and bootstrapping modules, and #256 derives the expectation identity E[f(X_T)] = f(c) + ∫ E[f′(X)β + ½f″(X)δ²] from the adapted Itô formula, for the Itô process the library constructs, with f ∈ C² and f′, f″ bounded and every path of B continuous. It drops the hypotheses the earlier route put on X and the third derivative it needed.
The library now builds with Mathlib's full standard linter set on, long lines and whitespace included (#341). Removing unused Fintype and DecidableEq binders from statements left several theorems needing only [Finite _], so they now apply more widely. There are new docs: design principles, including the rule that a junk value never gets a financial meaning, and a beginner's manual whose exercises the build checks. MathFinExamples and MathFinTest are libraries of their own, and a weekly job builds a fresh project that requires this repository (#332). The first usage example takes a capped call from term sheet to checked price (#333). The series it starts is tracked in #340. A catalogue of sourced open problems (#331) comes with five new research issues (#326–#330).
BrownianMotion moved to a7ad7af, which needed no proof changes. Mathlib (0434c03) and Lean (v4.33.0-rc1) are unchanged.