Skip to content

formal-mathfin v1.5.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 00:08
c0180c8

This release takes the corpus from 373 to 535 theorems, 522 of them delivery-ready, still with no sorries and only the three standard axioms.

The largest addition is the jump-diffusion work, 88 entries, about twenty of them general or Black–Scholes results it needed. Merton's 1976 call formula is now derived from a jump-diffusion model rather than postulated, together with its delta, gamma and vega (#129), and the Black–Scholes mixing formula holds for any independent jump part with a finite exponential moment. On a process whose increments are independent of the past and have the jump-diffusion law, the discounted price is a martingale exactly at the compensated drift, and at that drift, with Gaussian jumps and σ > 0, the call price at every date before maturity is Merton's series. The Esscher parameter exists and is unique when σ ≠ 0 and the jump law has exponential moments of every order. At one date the model with jumps is incomplete: when σ ≠ 0, Λ > 0, the jump law is not the point mass at 0 and has enough exponential moments, and the physical drift is not already compensated, the Esscher law and the Merton-measure law are both equivalent to the physical law and both compensated, yet they price some call differently. With a Gaussian part (σ ≠ 0), the digital is minus the strike derivative of the call at every strike and Breeden–Litzenberger holds with jumps; under any law with a finite mean, the call price is differentiable at a strike exactly when the law has no atom there. For variance swaps, the log contract at the compensated drift is σ² + 2ΛE[eᴶ − 1 − J], against a variance rate of σ² + ΛE[J²]. On one process under a martingale measure, sampled at n + 1 equal steps, the log contract minus the expected realized variance per unit time is exactly the jump bias 2ΛE[eᴶ − 1 − J − J²/2] less (b + ΛE[J])²T/(n + 1). The process itself is a hypothesis structure, and one satisfying it is constructed only without jumps.

Quantitative risk management is a new section, 65 entries following McNeil, Frey and Embrechts. Value at risk is defined for every law through the generalized inverse of the distribution function. Expected shortfall is coherent for every integrable loss, with the Rockafellar–Uryasev and dual representations. The pinball loss strictly elicits VaR on the laws with a finite mean and a unique quantile, while expected shortfall is not elicitable on the laws with a finite mean. There are copulas with Sklar's theorem for continuous margins, the max-stability of the generalized extreme-value laws, and the Basel ASRF quantile as the limit of the VaR of the portfolio default rate in the one-factor Gaussian model.

The Itô tower now has Itô's formula for an Itô process with adapted coefficients, the first in the library for a process that is not a function of time and Brownian motion. It holds almost surely at a fixed time, from a deterministic start, for σ and b bounded and adapted to the natural filtration of B with every path of B, σ and b continuous, and for f ∈ C² with f′ and f″ bounded, so exp and x² are not yet covered. The integral against an Itô integral M, stopped at T and defined on an L² domain, is now an instance of the BrownianMotion package's IsStochasticIntegral, which nothing in that package instantiates yet (#196). Thanks to @oxarbitrage, the Itô-process price can carry a drift, S = S₀ + ∫b ds + σ●B, and when ψb is square-integrable the integral against it splits almost surely as ∫ψb ds + ∫ψ dM (#194).

Robert Martin (@robertmartin8) agreed to the port of his ButterflyFreeSVI development (#174). It gives a finite combination of polynomial sign conditions on the raw SVI parameters that holds exactly when the parameters are admissible, the SVI variance is positive and the Black–Scholes call with the SVI volatility is convex in the strike. We added the large-strike tail: with one more condition, b(1 + ρ) < 2, the formula holds exactly when that call is also a normalized call-price function. Building the risk-neutral law from it, the last step of Roper's theorem, is not done. Many thanks to him again.

Girsanov's theorem, in each of its four proved forms, now concludes that the shifted process has jointly independent increments on [0, T] rather than independence two at a time, so its finite-dimensional laws are those of a Brownian motion. Neither path continuity nor independence of the increments from the past is stated. The generated axiom audit now finds cited theorems by declaration rather than by spelling, which caught five that neither audit file pinned, and it also pins the Mathlib and BrownianMotion theorems that wrapper entries re-export.

BrownianMotion moved to 0d5b6eb, which needed no proof changes. Like Mathlib, which is unchanged, it is pinned to an exact commit. Lean stays at v4.33.0-rc1.