Markets and bridges
The library is one structure when every model family is priced in a market (it has a socket), and when the limbs share statements (a joint). Both are read from what the theorems state, never from where a module sits; the tree draws the same measure.
Families priced in a market 9 of 9
A family is priced in a market when a theorem in one of its modules states that a
measure prices a Market (Market.IsPricingMeasure). A family without one
has formulas, not yet prices.
Trees 16 pricing theorems
- Contracts.Binomial.exists_isPricingMeasure_iff — The fundamental theorem of asset pricing for the binomial market.
- Contracts.Binomial.isPricingMeasure_coinFlipMeasure — The risk-neutral law of the flips prices the binomial market.
- Contracts.Binomial.map_flips_equiv_of_isPricingMeasure — Under a pricing measure at a horizon of N steps, the laws of the first N flips under the pricing measure and under the physical law are equivalent.
- Contracts.Binomial.martingale_discountedSpot_of_isPricingMeasure — Under a pricing measure the discounted spot frozen at the horizon is a martingale for the flip filtration: the deflated spot is one along the step count, and…
- Contracts.Binomial.price_pay_eq_binomialPrice_of_isPricingMeasure — Every pricing measure gives a European payoff its tree price.
- Contracts.Binomial.price_upAndIn_market — The binomial market prices the up-and-in knock-in by reflection.
- Contracts.Binomial.trim_eq_of_isPricingMeasure — Every pricing measure is the risk-neutral law on the flips made by the horizon.
- Contracts.DiscreteMarket.exists_isPricingMeasure_parity — No arbitrage gives a pricing measure under which the contracts satisfy parity.
- Contracts.DiscreteMarket.isEMM_of_isPricingMeasure_toMarket — A pricing measure of the discrete market that is equivalent to P everywhere is an equivalent martingale measure: the frozen price is read back from its floor…
- Contracts.DiscreteMarket.isPricingMeasure_toMarket_iff — The pricing measures of the discrete market are the measures that agree with an equivalent martingale measure on the information at the horizon.
- Contracts.DiscreteMarket.isPricingMeasure_toMarket_of_isEMM — An equivalent martingale measure is a pricing measure of the discrete market: the floor extension of the frozen price is a martingale for the floor filtration…
- Contracts.DiscreteMarket.noArbitrage_iff_exists_isPricingMeasure — The fundamental theorem of asset pricing on the trunk (Dalang–Morton–Willinger for one asset): for an adapted one-asset price on a general probability space,…
- Contracts.DiscreteMarket.noArbitrage_iff_exists_isPricingMeasure_of_finite — The fundamental theorem of asset pricing on the trunk, finite sample space (Harrison–Pliska): a one-asset discrete market on a finite space whose reference…
- Market.IsPricingMeasure.noArbitrage_toMarket — A pricing measure rules out arbitrage in the discrete market: it agrees on the information at the horizon with an equivalent martingale measure…
- isPricingMeasure_trinomialLaw — The trinomial law prices the one-date market whose asset is trinomialNodes c dx at the date τ and s₀ e^{rt} before it, whenever the three weights are positive…
- trinomial_exp_moment_of_isPricingMeasure — The converse: for a date τ > 0, a trinomial law that prices the one-date market of trinomialNodes c dx has the lattice's exponential moment equal to s₀ e^{rτ}.
Gaussian diffusions 11 pricing theorems
- Bachelier.isPricingMeasure_market — The reference measure is a pricing measure of the Bachelier market.
- Bachelier.price_europeanCall_of_isPricingMeasure_withDensity — Every pricing measure with a square-integrable density prices the European call at the Bachelier formula.
- Bachelier.trim_eq_of_isPricingMeasure_withDensity — Uniqueness of the pricing measure of the Bachelier market with a square-integrable density.
- Contracts.BlackScholes.americanPrice_market_europeanPutPayoff_eq_canonicalPrice — The American put of the Black–Scholes market in normalized coordinates.
- Contracts.BlackScholes.integrable_integral_discounted_pathAssets — A pricing measure gives the discounted asset the mean S₀.
- Contracts.BlackScholes.isPricingMeasure_constGirsanovMeasure — The Girsanov measure is a pricing measure of the Black–Scholes market.
- Contracts.BlackScholes.price_europeanCall_of_isPricingMeasure_bdd — Every pricing measure with a bounded density against the physical measure prices the European call at the Black–Scholes formula.
- Contracts.BlackScholes.price_europeanCall_of_isPricingMeasure_withDensity — Every pricing measure with a square-integrable density prices the European call at the Black–Scholes formula.
- Contracts.BlackScholes.trim_eq_of_isPricingMeasure_withDensity — Uniqueness of the pricing measure with a square-integrable density.
- Market.IsPricingMeasure.of_pricesGainsAtZero — A measure that prices the traded gains at zero is a pricing measure of any market on the Brownian information 𝓕ᴮ up to T for which μ is one: it agrees with μ…
- Market.superReplicationPrice_eq_price — The superreplication price of a contract is its price under a pricing measure.
Volatility 7 pricing theorems
- Contracts.TimeDepVol.isPricingMeasure_constGirsanovMeasure — The Girsanov measure of the constant price of risk is a pricing measure of the clocked market.
- Heston.tendsto_hestonTransform_smallVolOfVol_marketPrice — The Heston transform tends to a price in the Black–Scholes market.
- Market.IsPricingMeasure.hasDerivAt_price_europeanCall — The call prices have strike derivative minus the digital.
- Market.IsPricingMeasure.integral_deriv_deriv_mul_price_europeanCall — Breeden–Litzenberger for the market's call prices (weak form).
- SVI.butterflyFreeFormula_of_isPricingMeasure — A market that prices the SVI smile makes the slice butterfly-free.
- SVI.exists_market_of_butterflyFreeFormula — A butterfly-free SVI slice is the call price function of a market.
- exists_market_callSurface_eq — Every normalised call price function is a market's call surface.
Jumps 5 pricing theorems
- JumpDiffusion.exists_isPricingMeasure_price_call_ne — Incompleteness of the jump-diffusion market at one date.
- JumpDiffusion.isPricingMeasure_esscher — The Esscher law is a pricing measure of the jump-diffusion market.
- JumpDiffusion.isPricingMeasure_market — A compensated equivalent law is a pricing measure.
- JumpDiffusion.isPricingMeasure_merton — The Merton measure's law is a pricing measure of the jump-diffusion market.
- JumpDiffusion.not_subsingleton_isPricingMeasure — The jump-diffusion market has more than one pricing measure (same hypotheses as exists_isPricingMeasure_price_call_ne): the set of its pricing measures at the…
Term structures 3 pricing theorems
- Rates.isPricingMeasure_deterministicMarket — Every probability measure prices the deterministic bond market.
- Rates.isPricingMeasure_vasicekMarket — The reference measure prices the Vasicek bond market.
- Rates.vasicekMarket_price_solves_pde — The Vasicek market price solves the Vasicek pricing PDE.
Default 2 pricing theorems
- Contracts.Merton.merton_market — Merton's structural model is a market with a pricing measure.
- Contracts.Merton.price_defaultableZCB_add_price_europeanCall — Debt and equity add up to the firm.
Mortality and claims 3 pricing theorems
- IsMackRow.isPricingMeasure_toMarket — The best estimate of the ultimate is priced by the reference measure: under Mack's model, P is a pricing measure, up to the ultimate date N, of the discrete…
- isPricingMeasure_insuredMarket_tilted — The Esscher tilt is a pricing measure of the insured market.
- isPricingMeasure_insuredMarket_tilted_iff — Which Esscher tilts price the insured market.
Market mechanisms 2 pricing theorems
- Execution.gmQuote_isPricingMeasure — The dealer's measure prices the market of quotes.
- Execution.isPricingMeasure_toMarket_condExp — The measure that defines the quotes prices them.
stated, not yet proved: kyle_equilibrium_unique (Uniqueness of the Kyle equilibrium)
Model-free 4 pricing theorems
- Market.IsPricingMeasure.integral_eq_carrMadan — Carr–Madan replication in a market.
- Market.IsPricingMeasure.isNormalizedCallPrice — A pricing measure gives a normalised call price function.
- exists_market_of_isArbitrageFreeQuotes — Arbitrage-free quotes are the call prices of a market.
- exists_market_of_isNormalizedCallPrice — Roper's converse.
Bridges the program names
From docs/taxonomy.toml: the results that join two limbs by design.
A frontier bridge is stated but not yet proved.
| limbs | bridge | declaration |
|---|---|---|
| Choice × Valuation | Marginal utility is a state-price density | exists_pos_smul_eq_of_stationary |
| Choice × Valuation | CAPM and Hansen–Jagannathan from the stochastic discount factor | capm_of_affine_discountFactor |
| Choice × Valuation | The log-optimal portfolio is the numéraire portfolio | frontier |
| Valuation × Risk | The superhedging price is a coherent risk measure | isCoherentRiskMeasure_superhedgingPrice |
| Valuation × Risk | The life annuity-due is a contract value | lifeAnnuityDue_eq_value |
| Choice × Risk | Entropic risk is the certainty equivalent of exponential utility | acceptableUnderUtility_exp_iff |
| Valuation × Risk | Superhedging duality | superhedgingPrice_isLUB |
| Valuation × Risk | The Esscher premium is a price | esscherPremium_eq_price |
Bridges as measured
Every public theorem whose statement mentions objects of two limbs (the "across limbs" count on the tree), by pair.
Choice × Valuation 30 theorems
- Execution.gmQuote_isPricingMeasure — The dealer's measure prices the market of quotes.
- Market.IsPricingMeasure.abs_sharpeRatio_le — The Hansen–Jagannathan bound for a market with a pricing measure.
- Market.IsPricingMeasure.capm_of_affine_sdf — The security market line for a market with a pricing measure.
- Market.IsPricingMeasure.exists_deriv_eq_mul_sdf_of_isLocalMaxOn — Marginal utility is the stochastic discount factor at a local optimum.
- Market.IsPricingMeasure.exists_deriv_eq_mul_sdf_of_stationary — Marginal utility is the stochastic discount factor.
- Market.IsPricingMeasure.integral_div_logOptimal_mul — Prices deflated by the stationary log wealth are martingales under P in one period.
- Market.IsPricingMeasure.integral_sdf_mul — The sdf prices every payoff known at T: E_P[sdf * X] = E_Q[(N 0 / N T) X].
- Market.IsPricingMeasure.integral_sdf_mul_asset — An asset with a deterministic initial price c is priced by the sdf: E_P[sdf * S_i(T)] = c.
- Market.IsPricingMeasure.integral_sdf_mul_grossReturn — The sdf prices the gross return of an asset with a deterministic initial price: E_P[sdf * R_i] = 1 for R_i = S_i(T) / S_i(0) with S_i(0) = c ≠ 0.
- Market.IsPricingMeasure.sdf_eq_div_of_logOptimal — A stationary log portfolio is the numéraire portfolio.
- Market.IsPricingMeasure.sdf_mul_real_singleton — The sdf is the state-price density.
- Market.sdf_nonneg
- beta_latentMean_sampleMean — The credibility factor is a regression coefficient: the CAPM beta of the factor m(Θ) against the sample mean, Cov(m, X̄)/Var X̄, is n/(n + κ) with κ = s²/a.
- beta_singleIndex — The single-index loading is the CAPM beta.
- capm_of_affine_discountFactor — CAPM from a discount factor affine in the market return.
- covariance_singleIndex — The single-index kernel is the covariance of the return model.
- exists_hasEMMMultiState_of_isLocalMaxOn — The optimum defines a pricing measure.
- exists_isEMM_of_isLocalMaxOn — The optimum defines a pricing measure on the state space.
- exists_statePrices_of_isLocalMaxOn — Marginal utility at a constrained optimum is a state-price density.
- exists_statePrices_of_stationary — Marginal utility is a state-price density.
- integral_sq_affine_le — The CAPM beta is the least-squares slope: for square-integrable Y, X with Var X ≠ 0, the affine predictor E Y + β (X - E X), β = beta Cov(Y, X) Var X, has…
- kellyFairLaw_isPricingMeasure — The fair-odds law prices the Kelly market.
- kellyMarket_asset_one — The terminal asset payoffs of the Kelly market are the columns of kellyPayoff.
- kellyMarket_asset_zero — The initial prices of the Kelly market are kellyPrice.
- kelly_statePrices — The GOP-deflated probabilities are the state prices of the Kelly market.
- logUtility_statePrices_of_stationary — Logarithmic utility: the density is the reciprocal of the optimal wealth.
- portfolioVarN_covariance_eq_mul_equicorrelation — A covariance kernel with a common variance σ² and a common pairwise covariance ρ σ² is σ² times the equicorrelation matrix, so its Markowitz form is σ² times…
- portfolioVarN_covariance_eq_variance — Self-dot variance identity: the n-asset Markowitz quadratic form, evaluated at the genuine covariance kernel σ_{ij} = cov(R_i, R_j) of square-integrable…
- portfolioVarTwo_eq_variance — The two-asset variance formula is the variance of the portfolio return.
- variance_le_of_lagrangian_FOC — Markowitz for random returns.
Risk × Valuation 25 theorems
- Contracts.Binomial.valueAtRisk_hedged_eq_zero — A hedged seller carries no risk.
- Contracts.eval_trancheLossPayoff — The tranche loss payoff evaluates to tranchePayoff a d of the loss observed at T.
- Contracts.expectedShortfall_loss_both_le — A book's expected shortfall is at most the sum of its contracts'.
- Contracts.valueAtRisk_loss_europeanCall_le — A long call's value-at-risk is at most its premium, for a nonnegative discount factor.
- Contracts.valueAtRisk_loss_le_of_nonneg — A position that never pays a negative amount cannot lose more than its price.
- Contracts.value_trancheLeg — A tranche leg is worth the discounted expected tranche loss.
- DeFi.Aave.tendsto_liquidityIndexStep_pow — Frequent updates converge to continuous compounding at the liquidity rate.
- DeFi.clHistoricalVaR_eq_valueAtRisk — Historical VaR is the library's valueAtRisk at the empirical law.
- DeFi.clHistoricalVaR_eq_valueAtRisk_contractValue — Historical VaR is the VaR of the contract's revaluation losses.
- condDefault_eq_oneFactorPD — The conditional default probability of a Merton name is oneFactorPD.
- effNotionalIR_eq_sqrt_variance — The effective notional is the standard deviation of the hedging-set exposure: if the three bucket risk factors Zᵢ are square-integrable with covariances equal…
- expectedShortfall_add_const_of_hasGaussianLaw — Translation of a Gaussian loss, expected shortfall: ES_α(X + c) = gaussianCVaR (E X) (sd X) Φ⁻¹(α) α + c, the Gaussian law of X + c through…
- expectedShortfall_const_mul_of_hasGaussianLaw — Positive homogeneity of a Gaussian loss, expected shortfall: ES_α(λ X) = λ · gaussianCVaR (E X) (sd X) Φ⁻¹(α) α for λ ≥ 0, the Gaussian law of λ X through…
- expectedShortfall_of_hasGaussianLaw — The expected shortfall of a Gaussian random variable in terms of its mean and variance: ES_α(X) = E X + sd(X) ϕ(Φ⁻¹(α))/(1 − α).
- gaussianCVaR_sd_add_le — Closed-form CVaR is subadditive on jointly Gaussian losses: for a jointly Gaussian pair (X, Y) (degenerate margins allowed), the closed form gaussianCVaR at…
- isCoherentRiskMeasure_superhedgingPrice — The superhedging price is a coherent risk measure.
- oneFactor_measureReal_inter_default_sub_mul — The default covariance in the one-factor Gaussian threshold model is a variance (QRM Exercise Book, Ex.
- prob_healthFactorV1_lt_one_eq_kmvPD — Probability that an Aave health factor is below 1 at the horizon.
- representingSet_superhedgingPrice — The representing set of the superhedging price is the set of martingale probability vectors.
- valueAtRisk_add_const_of_hasGaussianLaw — Translation of a Gaussian loss, through the Gaussian law N(E X + c, Var X) of X + c: VaR_α(X + c) = gaussianVaR (E X) (sd X) Φ⁻¹(α) + c.
- valueAtRisk_add_le_iff_of_hasGaussianLaw — Gaussian VaR is subadditive exactly above the median (QRM Exercise Book, Exercise 2.22): for a jointly Gaussian pair (X₁, X₂) with correlation below one…
- valueAtRisk_const_mul_of_hasGaussianLaw — Positive homogeneity of a Gaussian loss, through the Gaussian law N(λ E X, λ² Var X) of λ X: VaR_α(λ X) = λ · gaussianVaR (E X) (sd X) Φ⁻¹(α) for λ ≥ 0.
- valueAtRisk_equal_weight_equicorrelated — The diversification floor for VaR (QRM Exercise 6.16): if d jointly Gaussian losses have a common mean m, a common standard deviation σ and a common…
- valueAtRisk_of_hasGaussianLaw — The value-at-risk of a Gaussian random variable in terms of its mean and variance: VaR_α(X) = E X + sd(X) Φ⁻¹(α).
- valueAtRisk_portfolio_gaussian_uncorrelated — Uncorrelated Gaussian VaR is concentration: for a Gaussian vector X of pairwise uncorrelated risk factors with common variance v and α ∈ (0, 1), VaR_α(∑ wᵢXᵢ)…
Choice × Risk 15 theorems
- acceptableUnderUtility_mix — Acceptance survives mixing the probability vectors: a position acceptable under each of the probability vectors p and q is acceptable under every mixture mix…
- effNotionalIR_eq_sqrt_portfolioVarN — The effective notional is the square root of a Markowitz quadratic form: effNotionalIR is √(∑ᵢⱼ DᵢDⱼρᵢⱼ) with the supervisory correlations ρ =…
- effNotionalPair_eq_sqrt_portfolioVarN — The two-bucket aggregation is the square root of the quadratic form of the correlation matrix !![1, ρ; ρ, 1].
- expectedShortfall_portfolio_gaussian — ES of a Gaussian portfolio: ES_α(∑ wᵢ Xᵢ) = ∑ wᵢ E Xᵢ + √(wᵀ Σ w) · ES_α(N(0, 1)).
- expectedShortfall_portfolio_le_iff — The bridge for ES (QRM Exercise 8.6): among Gaussian portfolios with the same expected loss, ES at a level α > 1/2 orders portfolios exactly as the Markowitz…
- hasDerivAt_portfolioVaRN — The marginal VaRs are the partial derivatives of the parametric VaR: for a symmetric kernel and a positive portfolio variance, the derivative of portfolioVaRN…
- isMinOn_expectedShortfall_iff_isMinOn_portfolioVarN — ES-optimal portfolios are Markowitz portfolios (QRM Exercise 8.6): on any set of admissible weights sharing a common expected loss, a portfolio minimizes ES…
- isMinOn_valueAtRisk_iff_isMinOn_portfolioVarN — VaR-optimal portfolios are Markowitz portfolios (QRM Exercise 8.6): on any set of admissible weights sharing a common expected loss, a portfolio minimizes VaR…
- portfolioVarN_diag_eq_herfindahl — Concentration ✕ variance bridge.
- portfolioVarN_equicorrelated_eq_herfindahl — Equicorrelation ✕ concentration bridge.
- portfolioVarN_equicorrelated_of_sum_eq_one — For fully invested weights the equicorrelated variance is v · ((1 − ρ) · HHI(w) + ρ).
- sum_componentVaR_eq_portfolioVaRN — Euler allocation of VaR: the component VaRs sum to the portfolio VaR, ∑ᵢ CVaRᵢ = VaR, whenever the portfolio variance is (strictly) positive.
- sum_componentVaR_eq_valueAtRisk_sub — Euler allocation of a Gaussian VaR: for a Gaussian vector X, weights w with positive portfolio variance and α ∈ (0, 1), the component VaRs at the multiplier…
- valueAtRisk_portfolio_gaussian — VaR of a Gaussian portfolio: VaR_α(∑ wᵢ Xᵢ) = ∑ wᵢ E Xᵢ + √(wᵀ Σ w) · Φ⁻¹(α).
- valueAtRisk_portfolio_le_iff — The bridge for VaR (QRM Exercise 8.6): among Gaussian portfolios with the same expected loss, VaR at a level α > 1/2 orders portfolios exactly as the…