Skip to content

formal-mathfin v1.8.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 20:25

This release is the coherence audit (#357–#368) and what grew out of it. about 60 parallel developments are folded into the library's own frameworks: one American-put free-boundary structure, one stopping rule, one Riemann–Itô sum, one forward measure, one coherence structure, one proof per direction of the FTAP, and so on. a values audit of the whole wave followed (#401–#404), then an elegance review (lens 8) whose rewrites landed in #420, #422, #425 and #426. new results came along: Jamshidian's bond options, bond prices at t in Vasicek, Hull–White and GSR, CMS and swaptions, the CDS mesh limit; and leafyoung's batch (#270–#344) landed through #352. the corpus goes from 671 to 754 theorems, 721 of them full, 739 delivery-ready, still with no sorries and only the three standard axioms.

Because the audit removed duplicates and left no aliases, the breaking-changes section is long. read it if you import from MathFin.

what changed in the mathematics

stochastic foundations

  • the Itô integral of a continuous adapted σ (no bound) has a version that is a continuous local martingale, and Itô's formula along x₀ + ∫ b ds + ∫ σ dB holds as an identity of processes (#355). the integral for predictable σ with paths continuous only a.s. is predItoIntegral.
  • Lévy's characterization is proved (#373): levy_characterization (sc-thm-9.1.1) moves from reduced_core to full. the bracket enters as the hypothesis that M² − t is a local martingale. a.s.-continuous or a.s.-zero-start processes and the multi-dimensional statement are not covered.
  • one partition (unifPart) and one Riemann–Itô sum (riemannσ) across the Itô modules (#381). the 1-D formulas are the f_t = 0 case of the time-dependent ones (#386). the unrestricted formula comes from the process formula (#388), and now needs only C² (#396). the horizon-T integral is the infinite-horizon one on the band, by definition (#396, #408).
  • the Wiener integral is the Itô integral on deterministic integrands (#393). "adapted at time s" is measurability against a filtration, for Brownian and Poisson (#394).
  • one equivalent-probability predicate IsEquivProbMeasure, one set-integral martingale lemma MeasureTheory.martingale_of_setIntegral_eq, one martingale-transform lemma set (#403).
  • the horizon-T Itô process is the infinite-horizon one composed with the band extension, so its martingale, measurability and contraction properties are corollaries (#422). one localisation recipe for Lévy and Itô: martingale_stoppedProcess_of_locally_bounded, exists_martingale_eqOn; the local Itô formula is a corollary of the unrestricted one (#422). condExp_mul_of_indep (#420).

girsanov and FTAP

  • bs_discounted_isQMartingale is S_0 times the constant-θ exponential martingale; one Doléans exponential; isEquivProbMeasure_withDensity simplified (#371). the adapted continuous-θ Girsanov is the bounded predictable one (#385).
  • ContinuousMarket.IsEMM is horizon-aware: Q makes the price stopped at T a martingale. the Black–Scholes Girsanov measure is one (#399).
  • one proof per direction of the FTAP (#378); the multi-state forward direction is an instance (#387); prices can live in an inner-product space (#399).
  • one discrete IsEMM and NoArbitrage for any Ω, F-valued over a horizon, the same shape as the continuous ones, with one forward theorem IsEMM.noArbitrage for both; the freeze lemma martingale_min_iff once; a simple strategy is a discrete one on its trading dates (#425).
  • the five Girsanov conclusions state IsBrownianOn Q T Y, the Brownian laws on [0,T] (BrownianMotion's predicates quantify over all of ℝ≥0) (#422).

American put

  • one free-boundary structure, ContinuousBoundaryPutSolution (#370); one Bellman–Markov induction and one transition statement IsGaussianMarkov (#380); one stopping rule StoppingRule and one stoppingValue (#392); StoppingRule.minimum once (#411).
  • a PutEnvelope carries the classical first-contact track and the actual contact rule is its instance (#400). the supermartingale is proved once from an envelope that waits (PutWaiting), and the verification theorem value_eq_of_attained is stated once (#404). given a supermartingale and a contact rule, attaining the initial value iff the contact-stopped process is a martingale, as one theorem (#420).

binomial

  • coin flips are Measure.infinitePi of Mathlib's bernoulliMeasure (#374). flipFiltration, mathlib Martingales, and Girsanov as a density (#376).
  • multi-period no-arbitrage through the discrete FTAP (#383). one Bellman recursion bermudanPrice E over an exercise set; european and american are E = ∅ and E = univ (#395). the pathwise Snell envelope is the primitive (#390).
  • the hedge is the library's martingaleTransform (#405); the representation theorem is for Mathlib's martingales on coin-flip paths (#409).

contracts, fixed income, black–scholes

  • parity and the forward in any risk-neutral model, bonds and swaps as contract values, position risk (#353). Contract.valueDisc under a stochastic discount factor, coupon bonds in the Gaussian short-rate models (#356).
  • FRA, power call, exchange option (#379); real-power node, power call and geometric Asian (#382); chooser (#389); CDS (#398); caps and caplets (#406).
  • Merton is a jump-diffusion instance (#377). SVI's Black terms are ForwardSmile's (#391, #402). variance swap is the Λ = 0 case of the jump-diffusion log contract (#390). SVI CRT is Mathlib's (#390).
  • the caplet is the tower property plus the pointwise identity bond_mul_capletPayoff; SwapModel is built on HasBondPrice (#426).
  • one T-forward measure for any bank account (#375). Gaussian facts live once in GaussianMoments / WienerIntegralGaussian; seventeen quick unifications (#372).

risk

  • one coherence structure IsCoherentRiskMeasure in the losses convention (#384), for any finite measure charging every point (#389). one elicitability notion (#375). maximumDrawdown through partialSups (#375).

new results

each with the scope the PR states.

  • caps and caplets (#406): a caplet is (1 + δK) puts on P(T₀, T₁) struck at 1/(1 + δK); a cap is the sum of its caplets. in mf-contract-caplet-black76 lognormality of L(T₀, T₁) under the T₁-forward measure is a hypothesis, and the Black time is free.
  • Jamshidian (#413): under the T₀-forward measure a bond a·e^{−βr} with r Gaussian is lognormal, and the bond put is a Black put (HasBondPrice.valueDisc_bondPut_gaussian); in Vasicek and Hull–White the put and the caplet are in closed form. the underlying is hypothesised to be the bond price a.s.; these caplets are not Black-76 caplets.
  • CMS and swaptions (#419): a swap rate is an observed underlying tied to the bonds by SwapModel (no division node in Payoff). a payoff g(S) paid at T₀ is A(0)·E^A[g(S)/A(T₀)]; the payer swaption is A(0)·E^A[(S − K)⁺], with Black's formula under a lognormal-swap-rate hypothesis; the CMS swaplet is its forward value plus A(0)·Cov^A(S, 1/A), nonnegative when all bonds but the last are known constants. payment after the fixing date (Hagan's adjustment) is not covered.
  • bond prices at t > 0 (#410, #413, #424): bondPrice … t T =ᵐ A(T−t) exp(−B(T−t) r_t) in Vasicek, A_t(T−t) (the forcing shifted to t) in Hull–White with continuous forcing, A(t,T) in two-piece GSR for T* ≤ T; all three from one lemma, condExp_exp_neg_integratedRate, whose only model input is the mean identity. Vasicek is Hull–White at constant forcing. the GSR bond put is not here.
  • conditional Laplace transform of a Wiener integral (#410): condExp_exp_wienerIntegralLp, for the natural filtration.
  • Gaussian VaR and ES on random variables (#397, #407): closed forms for a Gaussian-law loss, translation and positive homogeneity as statements about random variables, VaR subadditive for a jointly Gaussian pair at α ≥ 1/2 with no correlation hypothesis, CVaR of the sum at its actual standard deviation. variance_add_le_sq is the covariance Cauchy–Schwarz the pinned Mathlib lacks. the older parameter entries stay and now say they are identities on real parameters.
  • CDS on a payment grid against the Cox default time (#398): default is paid at the end of its period, no accrued premium, constant recovery, deterministic discount. as the mesh goes to zero the grid losses, annuity, par spread and the buyer's value converge to the continuous Cox legs (#424), by an ε–δ bound uniform over grids of mesh at most δ.
  • chooser (#389) is the static replicating portfolio from put–call parity at t₁, not the holder's choice as a payoff.
  • FRA as the one-period payer swap; power call; exchange option (Margrabe) (#379); geometric Asian call on a real-power node (#382). Payoff.rpow has a junk value at negative base.
  • Lévy's characterization (#373), see above. Itô integral as a local martingale and Itô's formula as a process (#355): not covered are a random starting point, T = ∞, a semimartingale not built from B.
  • binomial: multi-period EMM and NoArbitrage ↔ BinomialNoArb u d r (#383, needs S₀ > 0, 0 < d < u, T ≥ 1); uniqueness of the EMM, existsUnique_isEMM_horizonSpot (#395). the representation theorem now assumes 0 < q < 1 (#409).
  • risk: positions vs losses conventions are equivalent for counting measure (#384, mf-coherent-positions-vs-losses); the Student-t law with VaR and ES (#270, closed form for t_ν⁻¹ itself not attempted).
  • from leafyoung's batch (#352): relative-drawdown scale invariance (#271); clean price, bond forward from no-arbitrage, covered interest parity, loan amortization, key-rate duration (#277); SABR K → f limit of eq. 2.17, backbone law, ATM Black-76 price, about the printed formulas only (#281); expected negative exposure, PFE, netting subadditivity, collateralized exposure, DVA (#342); Gyöngy mimicry engine and Dupire's formula at zero rates, with the mimicking SDE's existence gated on flow uniqueness (#343); PSD Cauchy–Schwarz and the price-of-risk tradeoff form, KKT sufficiency only (#344); Gaussian expected exposure at the law (#354). the folded-in modules were tied to the library's graph (psd uses Mathlib's bilinear-form lemma, CIR-as-squared-OU moves to FixedIncome/ and hestonGamma_eq_cirGamma, PFE is the VaR of max(V, 0)).
  • smaller: forwardMeasure_price general; lower ES is minus the ES of the reflected loss (lowerExpectedShortfall_eq_neg_expectedShortfall); tracking error is Var[R_p − R_b]; bermudanCallPrice_eq_binomialPrice E (#402).

breaking changes

no alias, deprecated or otherwise, was left for any removal or rename below. every caller in the library, the corpus, the README, the manual, MathFinTest/ and MathFinExamples/ moved.

stochastic foundations: Itô

  • modules removed: MathFin.Foundations.ItoFormulaC2, MathFin.Foundations.ItoIntegralRiemannBridge (#386). new module Foundations/ItoIntegralHorizonDense (#408), Foundations/UnifPart, Foundations/ItoRiemannSum (#381), Foundations/WienerIntegralIto (#393), Foundations/WienerIntegralFiltration (#410), Foundations/MartingaleSetIntegral (#403).
  • module renamed: Foundations.ItoFormulaUnrestricted → Foundations.ItoFormulaCutoff (#401).
  • unifPart (#381): QuadraticVariationL2.unifPart → MathFin.unifPart; ItoIntegralBrownian.unifPart_mono, unifPart_le_T, AdaptedQuadraticVariation.unifPart_succ_sub, LevyQuadraticSums.unifPartIcc* → MathFin.*; private unifPart_mesh_sum / unifPart_le become public (n ≠ 0 for 0 < n); cellLen_eq → unifPart_succ_sub.
  • Riemann sums (#381): removed riemannφ, riemannφTD, riemannFn, truncRiemannFn (→ riemannσ at φ ∘ B, φ s (B s), B, clampPath B m); memLp_riemannφ, memLp_riemannφTD, memLp_truncRiemannFn (→ memLp_riemannσ, memLp_riemannσ_clampPath); memLp_riemannFn → memLp_riemannσ_brownian; truncRiemannFn_sub_riemannFn → riemannσ_sub. removed the stepφ / stepφTD families (stepφ, itoSimple_stepφ, itoIntegralCLM_T_stepφ, uncurry_stepφ and TD counterparts).
  • 1-D formulas (#386): removed ito_formula_L2, itoIntegralCLM_T_of_bdd_cont, ito_formula_of_tendsto, tendsto_sum_discreteTaylorRemainder, tendsto_ito_remainder, tendsto_weighted_qv, memLp_pathIntegral. moved to ItoFormulaAdaptedTD, same names: ito_formula_adapted_against, ito_formula_adapted.
  • unrestricted formula (#388): moved stepσ, itoSimple_stepσ, itoIntegralCLM_T_stepσ to ItoIntegralBrownian; ito_formula_unrestricted_local to ItoFormulaUnrestrictedLocMart. removed truncStep, itoSimple_truncStep, itoIntegralCLM_T_truncStep, indistinguishable_on_stochInterval, fTruncTT, fTruncTX, fTruncXXX, fTrunc_hasDerivAt_tt, fTrunc_hasDerivAt_tx, fTrunc_hasDerivAt_xxx, fTruncTT_bdd, fTruncTX_bdd, fTruncXXX_bdd, truncDrift_eq_of.
  • C² (#396): ito_formula_unrestricted, ito_formula_unrestricted_local drop the f_tt, f_tx, f_xxx witnesses and their continuity (strictly stronger); plane_ito_localMartingale takes ContDiff ℝ 2 G. removed private eLpNorm_band_transfer.
  • horizon-T integral (#408): itoIntegralCLM_T := itoIntegralL2 ∘ bandExtend T. moved from namespace ItoIntegralProcessL2Infinite to ItoIntegralCLM: monoMeasureLp, monoMeasureLp_coeFn, restrictToBand, restrictToBand_coeFn, restrictToBand_simpleAssembly, bandExtend, bandExtend_coeFn, restrictToBand_bandExtend, bandExtend_toLp_ae_eq, bandExtend_simpleAssembly_T, ae_fst_ne_zero_trim, indicator_band_ae_eq, memLp_indicator_band; itoIntegralL2_simpleAssembly → ItoIntegralL2. removed itoIntegralCLM_T_eq_itoIntegralL2_bandExtend (now itoIntegralCLM_T_apply), itoProcessLM, itoSimpleProcessLp_norm_le.
  • adaptedness (#394): removed ItoIsometryAdapted.AdaptedAt (+ .measurable, .mono, .mul, .sub), ItoIsometryAdapted.pastProcess, adaptedAt_eval, adaptedAt_comp_eval, adapted_indepFun_forward, integral_two_increment, ItoIntegralL2.adaptedAt_of_measurable_natural, ItoIntegralBrownian.adaptedAt_clampM, PoissonRandomMeasure.AdaptedAt (+ .measurable), PoissonRandomMeasure.pastSigma. renamed QuadraticVariationL2.adaptedAt_increment_sq_sub → measurable_increment_sq_sub; pastSigma → pastFiltration. signatures: the isometry core lemmas take hF : IsFilteredPreBrownian B 𝓕 μ and Measurable[𝓕 t] (and hBmeas leaves the core); tendsto_weighted_qv_process(_of_ae_continuous), condExp_adapted_mul_increment take Measurable[natFiltration hBmeas s].
  • (#422) new modules Foundations/ItoIntegralProcessL2Inf (itoProcessL2Inf and its lemmas, namespace unchanged) and Foundations/StoppedProcessPaths. moved MathFin.LevyCharacterization → MathFin: coe_untopA_min, continuous_untopA_min, untopA_min_zero, stoppedProcess_indicator_eq, continuous_stoppedProcess; coe_untopA is now public. itoProcessCLM T t is (itoProcessL2Inf t).comp (bandExtend T). added martingale_stoppedProcess_of_locally_bounded, exists_martingale_eqOn, integral_sq_stopped_exp_le, IsBrownianOn. (#420) added condExp_mul_of_indep (Foundations/IndepFreezing).
  • ExitTime takes a measurable process; ItoFormulaUnrestrictedLocMart uses it (#355).
  • Foundations/ItoIntegralBrownian.measurable_eval_natFiltration removed, use ItoIntegralL2.stronglyAdapted_natFiltration (#403). BoundedLocalMartingale moves from AmericanPut/Stopping/ to Foundations/ (namespace MathFin), no alias (#373). BoundedLocalMartingale.martingale_of_setIntegral_eq_real → MeasureTheory.martingale_of_setIntegral_eq (#403). planeGenerator_eq_partials is C² (callers stay C³) (#403).
  • shared Gaussian facts (#372): integrable_exp_of_hasLaw, integrable_exp_of_hasLaw_gaussianReal → integrable_exp_mul_of_hasLaw hX 1; CIRSquaredOU.integral_sq_of_hasLaw_gaussianReal → MathFin.integral_sq_of_hasLaw_gaussianReal. moved, same name: integrable_exp_mul_of_hasLaw (to GaussianMoments).
  • heat/plane (#372): heatPartial, heatPartial_smoothAt, heatPartial_time, heatPartial_space → planePartial, planePartial_smoothAt, planePartial_hasDeriv_time, planePartial_hasDeriv_space; heatKernel_contDiffAt → heatKernel_smoothAt.
  • filtrations (#372): AmericanPut.Stopping.sampledFiltration → ContinuousMarket.sampledFiltration; ambientNullAugmentation, supermartingale_ambientNullAugmentation → ItoLocalMartingale.nullAugmentation, ItoLocalMartingale.supermartingale_nullAugmentation.

girsanov and FTAP

  • (#371) isEquivProbMeasure_withDensity no longer takes hmeas (four callers moved); bs_discounted_isQMartingale proof now via expBtheta_isQMartingale (statement unchanged).

  • (#385) moved to GirsanovPredictableTheta, same names: contDoleansExp, contDoleansExp_pos, setIntegral_withDensity_ofReal. removed from the adapted file: driftSqSum, simpleDoleansExp_neg_eq, exists_subseq_riemannσ_ae, sq_integral_Zn_le, tendsto_simpleDoleansExp_of_tendsto_riemannσ, tendsto_Zn_ae_subseq, memLp_Zn_two, integral_Zn_eq_one, measurable_Zn, integrable_Zn, memLp_ZT_two, memLp_ZT_one, integral_ZT_eq_one, isProbabilityMeasure_contGirsanov, quad_integral_Zn_le, simpleDriftUnif_abs_le, quad_integral_Dn_le, contDrift_zero, contDrift_abs_le, stronglyMeasurable_contDrift, measurable_Dn, integrable_Zn_four, integrable_Dn_four, memLp_fn_two, sq_integral_fn_le, memLp_contD_two, memLp_g_one, tendsto_fn_ae_subseq, isExpQMartingale_BthetaCont. import now runs adapted → predictable.

  • (#378) removed OnePeriod.exists_isEMM_of_pos_tails, OnePeriod.exists_isEMM_of_noArbitrage_integrable, OnePeriod.exists_isEMM_of_noArbitrage, OnePeriod.noArbitrage_of_isEMM (use the vector versions). signatures: FTAP.emm_implies_no_arbitrage takes horizon-T hypotheses (adapted and integrable up to T, one-step martingale identity before T, predictable bounded strategy); OnePeriodVector.noArbitrage_of_isEMM takes Measurable Y; the three NoArbitrageDerivations lemmas take statePricePricing s q S = S₀. new bridge exists_statePrices_of_hasEMM.

  • (#399) ContinuousMarket.IsEMM S Q → IsEMM S T Q; NoArbitrageSimple S → NoArbitrageSimple S T; discountedGBM_isEMM, discountedGBM_noArbitrageSimple, emm_unique_of_complete take the horizon; IsEMM.sampled takes (T') (hT' : t T' ≤ T); IsEMM.increment takes s, t ≤ T; martingaleTransform, martingaleTransform_isMartingale, emm_implies_no_arbitrage are F-valued (real inner-product space; scalar case martingaleTransform_real).

  • (#403) IsEMM fields prob / absP / Pabs → isProb / ac / ac' (OnePeriodVector.IsEMM, MathFin.IsEMM); the three IsEMM structures extend IsEquivProbMeasure; isEquivProbMeasure_withDensity, esscherTilt_isEquivProbMeasure, numeraireMeasure_isEquivProbMeasure return IsEquivProbMeasure instead of a conjunction; ContinuousMarket.IsEMM 𝓕 P S T Q and NoArbitrageSimple 𝓕 P S T take the filtration and measure explicitly. removed multi_period_FTAP_marginals, ContinuousMarket.increment_integrable, ContinuousMarket.increment_integral_zero (now MathFin.integrable_inner_sub, MathFin.condExp_inner_sub_eq_zero, MathFin.integral_inner_sub_eq_zero). predictable Girsanov lemmas derive 0 ≤ C from the bound (nonneg_of_bdd) and no longer carry it.

  • (#425) emm_implies_no_arbitrage → IsEMM.noArbitrage; FTAPDiscrete.IsEMM / FTAPDiscrete.NoArbitrage → MathFin.IsEMM / MathFin.NoArbitrage (generalised to any Ω, F-valued over a horizon; NoArbitrage quantifies over strategies bounded up to the horizon, every strategy on a finite Ω); noArbitrage_of_isEMM → IsEMM.noArbitrage; IsEMM.sampled moves to Foundations/ContinuousMarket.lean; removed IsEMM.integrable (from martingale_min_iff). added module Foundations/MartingaleFrozen, martingale_min_iff, martingale_min_of_condExp_succ, IsEMM.of_condExp_succ, SimpleStrategy.schedule, SimpleStrategy.toDiscrete, gains_eq_martingaleTransform.

  • (#422) qBrownian_congr_modification → IsBrownianOn.congr_modification. restated with IsBrownianOn: isQBrownianMotion_of_expMartingale, Btheta_isQBrownianMotion, Btheta_simple_isQBrownianMotion, Btheta_isQBrownianMotion_predictable, Btheta_isQBrownianMotion_predictable_of_bdd, Btheta_isQBrownianMotion_adapted (IsBrownianOn unfolds to the old conjunction, so no benchmark statement changes).

American put

  • (#370) NormalizedPutSolution.{boundary_nonpos, contact_iff, contactSet, boundary_eq_sSup_contact, boundary_unique, contactSet_expiry, stockBoundary_bounds, contact_in_stock_units} → ContinuousBoundaryPutSolution.*; NormalizedPutSolution.{boundary_hasDerivAt, boundary_hasDerivAt_deriv, stock_curvature_of_log_curvature} → DividendPutSolution.*; zeroDividend_{price_mono_time, boundary_antitoneOn, curvature_of_comparison_inputs, no_positive_rectangle, positive_interval, boundary_ratio_tendsto_atBot, obstacle_comparison, stock_curvature, remainingTime_curvature, curvature_nonneg_of_tangent_intervals} → the general theorem of the same stem; spatialOperator → dividendSpatialOperator k 0. removed dividendPutSolution_zero_iff, toDividendPutSolution, dividendPutSolution_iff_continuousBoundary_and_smooth, module DividendContact.lean. NormalizedPutSolution k p b is now DividendPutSolution k 0 p b.

  • (#380) brownianLogState_condExp_transition → brownianLogState_isGaussianMarkov; brownianLogState_usual_condExp_transition → brownianLogState_usual_isGaussianMarkov; removed usualBellmanAux_eq_brownianGridMarkovAux, delayedBellmanAux_eq_markov (→ bellmanAux_eq_brownianGridMarkovAux); brownianGridMarkovAux Z T δ β σ → brownianGridMarkovAux Z s β σ (callers pass cappedGridTime T δ); the two grid-price identifications merge into brownianGridPrice_eq_gridAmericanPutValue.

  • (#392) BoundedRule → StoppingRule (with .zero, .constant, .extend, .ofWithTop, .roundUp, …); DiscreteRule → StoppingRule; DiscreteRule.toSampledRule → StoppingRule.toSampledRule; DiscreteRule.toPhysicalBoundedRule → StoppingRule.toPhysicalRule; GridRule.toDiscreteRule → StoppingRule.toGridIndexRule; discreteStoppingValue_eq_bellman → stoppingValue_eq_bellman. removed DiscreteRule, discreteStoppingValue, GridRule (with .zero, .maturity), BoundedRule.toGridRule, gridRule_nonempty, exerciseValues (+ _nonempty, _bddAbove), DiscreteRule.toPhysicalGridRule, aeExerciseValues (+ _eq, _nonempty, _bddAbove), AEBoundedRule.reward_integrable. AEHorizonValue trimmed (aeAmericanPutValue, aeExerciseThreshold stay).

  • (#400) removed canonicalLogPath, canonicalLogPath_exp, canonicalGap and its _continuous / _nonneg / _terminal / _adapted, canonicalContactRule_contact, canonicalDiscountedPrice_gap, canonicalRewardProcess and its _continuous / _bound. the classicalCandidate_*, classicalGap_*, classicalContactRule(_contact) and both classical_price_eq_value_of_*verification theorems take PutEnvelope p instead of a DividendPutSolution. restated: canonicalContactRule_continuation_before / _exercise_before_expiry take the explicit log spot x+(k-h-1)*t+√2*W t. ContinuousBoundaryPutSolution extends PutEnvelope.

  • (#404) removed classicalPrice_gaussian_comparison (now DividendPutSolution.putWaiting), canonicalPrice_transition, canonicalDiscountedPrice_condExp_le, canonicalDiscountedPrice_eq_classicalCandidate, DividendPutSolution.price_nonneg (→ PutEnvelope.nonneg), StoppingRule.integral_eq_stoppedValue. renamed classicalPrice_physical_transition → PutWaiting.physical_transition. brownianClassicalCandidate_supermartingale, classicalCandidate_condExp_le_before_maturity take PutEnvelope p and PutWaiting … p. canonicalDiscountedPrice is an abbrev for the classical candidate and moves to Stopping/ActualContact.lean; PutEnvelope moves to Boundary/Problem.lean. ClassicalTransition no longer imports the PDE.

  • (#411) removed StoppingRule.capTime, StoppingRule.capBinary; StoppingRule.minimum moves from OrderedSampling to Rules, generalised to two horizons.

  • (#372) stopping-rule minima use IsStoppingTime.min; the OrderedSampling copy goes (finished in #411).

  • (#420) expectedReward_eq_initial_of_contact_martingale generalised from IsProbabilityMeasure to IsFiniteMeasure. added expectedReward_eq_initial_iff_stopped_martingale.

binomial

  • (#374) removed coinPMF, coinPMF_apply. coinFlipMeasure q is Measure.infinitePi of bernoulliMeasure; coinFlipMeasure_cylinder, coinFlipMeasure_flips_preimage, integral_comp_flips state weights as if path k then q else 1 − q.
  • (#376) no renames or removals. new PathAdaptedAt.fixFlip.
  • (#390) snellAux_le_of_supermartingale_of_ge takes a horizon H; americanCallPrice_le_binomialPrice takes explicit n S; removed integral_excess_return_eq_zero; varianceSwap_fairStrike moved to JumpDiffusionVarianceSwap, restated as one integral of the log contract (no corpus entry cited the old form). quotientProdHom_bijective is Mathlib's CRT (statement unchanged).
  • (#395) americanPrice_le_of_supermartingale_dominating → bermudanPrice_le_of_supermartingale_dominating (takes E); americanPrice_is_snell_envelope → bermudanPrice_is_snell_envelope; snellAux_eq_discounted_americanPrice → snellAux_eq_discounted_bermudanPrice; discounted_americanPrice_supermartingale → discounted_bermudanPrice_supermartingale; discounted_intrinsic_le_americanPrice → discounted_intrinsic_le_bermudanPrice; americanPrice_snell_minimal → bermudanPrice_snell_minimal; pathAdaptedAt_discounted_americanPrice → pathAdaptedAt_discounted_bermudanPrice. removed bermudanPrice_empty, bermudanPrice_univ, americanPrice_ge_intrinsic (→ le_bermudanPrice), americanPrice_supermartingale (→ bermudanPrice_supermartingale), binomialPrice_le_americanPrice (→ bermudanPrice_mono), bermudanPrice_succ (→ _of_mem / _of_notMem). bermudanPrice E moves to Binomial/Model.lean; binomialPrice := bermudanPrice ∅, americanPrice := bermudanPrice univ; snellAux E takes the exercise set; snellAux_le_of_supermartingale_of_ge (k + j = H, dominance at exercise dates only).
  • (#402) removed americanCallPrice_le_binomialPrice (use bermudanCallPrice_eq_binomialPrice E; americanCallPrice_eq_binomialPrice is E = univ).
  • (#405, #409) the hedge H in binomial_martingale_representation, binomialPrice_replication, Binomial.pathPV_eq_value_add_gains, Binomial.valueAtRisk_hedged_eq_zero: gains are martingaleTransform H S N ω (was a Finset.range sum), and the adaptedness hypothesis is StronglyAdapted flipFiltration (fun n ↦ H (n+1)) (was ∀ n, PathAdaptedAt n (H n), then PathAdaptedAt n (H (n+1))); the index shifts by one. binomial_martingale_representation now assumes 0 < q < 1 and Martingales for flipFiltration under coinFlipMeasure q (the old pathwise theorem needed no measure). moved: binomialPrice_callPut_parity to Contracts/Models/Binomial.lean; measure-free layer (PathAdaptedAt, fixFlip, PathAdaptedAt.mono, hedgeRatio, repr_one_step) to new Binomial/FlipPaths.lean; binomialPrice_replication to Binomial/MartingaleRepresentation.lean.
  • (#383) additions only: horizonFiltration, horizonMeasure, horizonSpot, comap_flips_horizonFiltration, horizonMeasure_pos, isEMM_horizonSpot, noArbitrage_horizonSpot, binomialNoArb_of_noArbitrage, noArbitrage_horizonSpot_iff.

contracts, black–scholes, fixed income

  • (#377) removed MertonHyp, MertonHyp.hasLaw_mertonStd, integral_eq_poisson_mixture, mertonStd, mertonTerminal, mertonTerminal_eq_bsTerminal, mertonTerminal_eq_jumpDiffusionTerminal, merton_{call,put,discounted}_given_jumps, merton_call_formula, merton_put_formula, merton_discounted_terminal, JumpDiffusionHyp.toMertonHyp, mertonHyp_canonical, field JumpDiffusionHyp.J_meas, module BlackScholes/MertonModel. hmeas dropped from mgf_range_sum_of_iid, compoundPoisson_mgf, integrable_exp_mul_sum_range_of_iid, compoundPoisson_mgf_of_indepFun, integral_compoundPoisson_mgf_gammaMeasure. moved: hasLaw_sum_range_gaussianReal, hasLaw_sub_div_of_gaussianReal → Foundations/GaussianMoments; mertonVol_sq_mul → MertonJumpDiffusion; integral_discounted_bsTerminal (general) → Forward. new: JumpDiffusionHyp.call_eq_mertonCallPrice, put_eq_mertonPutPrice, discounted_terminal_merton (the last needs only 0 ≤ T).
  • (#372) Contracts.BlackScholes.integrable_{europeanCall,europeanPut,forward}_pathPV → the model-free Contracts.integrable_*_pathPV. moved, same name: nthMoment_terminal, integral_bsTerminal_eq_forward (to Forward), integrable_bsCall_payoff, integrable_bsPut_payoff (to Call).
  • (#379, #382) removed Payoff.pow, Payoff.eval_pow (the ℕ-only node; powerCall is rebuilt on Payoff.rpow). added Payoff.rpow, Payoff.obsProd, Payoff.eval_obsProd, geomAsianCall, BlackScholes.pathAssets, BlackScholes.value_geomAsianCall.
  • (#391) in SVI, removed blackPlus, blackMinus, logBlackCall, blackPlus_eq_dpl, blackMinus_eq_dmi, logBlackCall_eq_blackForm, black_density_identity (→ ForwardSmile.exp_mul_pdf_dmi). renamed: blackMinusSlope → dmiSlope; blackMinus_hasDerivAt → dmi_hasDerivAt; blackPlus_hasDerivAt → dpl_hasDerivAt; logBlackCall_hasDerivAt → blackForm_hasDerivAt; logBlackCall_hasDerivWithinAt → blackForm_hasDerivWithinAt; sigmaZero_blackMinus_hasDerivAt → sigmaZero_dmi_hasDerivAt; sigmaZero_blackPlus_hasDerivAt → sigmaZero_dpl_hasDerivAt; sigmaZero_logBlackCall_hasDerivAt → sigmaZero_blackForm_hasDerivAt; blackPlus_eq → dpl_eq_div; tendsto_blackPlus_atBot → tendsto_dpl_atBot; tendsto_blackPlus_atBot_iff → tendsto_dpl_atBot_iff; eventually_le_blackPlus → eventually_le_dpl; blackCall_le_Phi_blackPlus → blackCall_le_Phi_dpl. the svi development uses ForwardSmile.dpl, dmi, blackForm at the SVI variance.
  • (#402) removed sigmaZero_{rootVariance,dmi,dpl,blackForm,blackDelta}_hasDerivAt; the SVI _hasDerivAt chain takes (k) (hv) (and hslope for blackDelta). removed stockNumeraireDensity, stockNumeraireMeasure, stockNumeraireMeasure_eq_numeraireMeasure, stockNumeraireDensity_real_nonneg (the stock numeraire is numeraireMeasure).
  • (#389) additions only: chooser, BlackScholes.pathAssets_eq_bsTerminal, BlackScholes.value_chooser.
  • (#398) additions only (payFlows generalises fixedFlows; pathPV_fixedFlows unchanged).
  • (#406) additions only; integral_one_div_pos is public.
  • (#410) additions only.
  • (#413) BondModel.integral_discount_mul → HasBondPrice.integral_discount_mul; BondModel extends the new HasBondPrice (its signature unchanged). added condExp_exp_neg_integratedRate, HullWhite.integratedMean_sub, HullWhite.bondA_shift, HullWhite.bondRate_condExp, Contracts.bondPrice_hullWhite, integral_discount_mul_eq_forward, HasBondPrice.integral_bond_forward, HasBondPrice.valueDisc_bondPut_gaussian, valueDisc_bondPut_hullWhite, valueDisc_bondPut_vasicek, valueDisc_caplet_hullWhite, valueDisc_caplet_vasicek.
  • (#419) CMS.annuityMeasure, annuityMeasure_isProbabilityMeasure, annuityMeasure_price, cmsCurveRate_jensenGap_nonneg, cmsCurveRate_jensenGap_sub_nonneg take a random discount factor (D : Ω → ℝ) and hD in place of (r T : ℝ); annuityMeasure_price also hDm. added cmsCaplet, cmsFloorlet, cmsSwaplet, swapCurve, SwapModel, swapAnnuityMeasure, Payoff.obsSum, payerSwaption, valueDisc_pay_swapRate, valueDisc_cmsCaplet, valueDisc_cmsFloorlet, valueDisc_cmsSwaplet, valueDisc_payerSwaption, valueDisc_payerSwaption_black, valueDisc_payerSwaption_black_forwardSwapRate and the SwapModel lemmas.
  • (#426) SwapModel holds hasBondPrice : ∀ i ∈ Icc 1 n, HasBondPrice … and integrable_D0 in place of D_pos / integrable_D / bond_eq; SwapModel.D_pos is a theorem. removed SwapModel.discount_mul_bond_ae, SwapModel.integrable_discount_mul_bond, SwapModel.integral_discount_mul_bond (→ HasBondPrice.discount_mul_ae, .integrable_discount_mul, .integral_discount). integral_discount_mul_eq_forward moves from Jamshidian.lean to Caplet.lean. added bond_mul_capletPayoff.
  • (#424) additions only: gsrBondPrice_condExp, gsrBondA, gsrShortRate, gsrKernel_integral_sq_Ioc_eq, Contracts.bondPrice_gsr, IsGridOfMesh, abs_sum_mul_integral_sub_integral_le, exists_cdsLossesGrid_close, exists_cdsAnnuityGrid_close, tendsto_cdsLossesGrid, tendsto_cdsAnnuityGrid, tendsto_cdsParSpreadGrid, tendsto_value_cdsBuyer_coxDefaultTime; gsrSigma_measurable is public.
  • (#356) Contract.valueDisc added; no removals.

rates and risk

  • (#375) forwardMeasure Q r T → forwardMeasure Q B (constant rate: forwardMeasure Q fun _ ↦ exp (r*T)); forwardMeasure_price generalised; forwardMeasure_expected_spot takes [IsProbabilityMeasure Q]. removed HullWhite.forwardMeasure, HullWhite.forwardMeasure_isProbabilityMeasure; new HullWhite.integrable_one_div_exp_bondRate. futuresForwardBasis_of_integral_mul_exp_neg, futuresForwardBasis_gaussian drop N₀ / hnorm and take 0 < ∫ exp(−Y). forwardIndex_eq, breakeven_eq gain hP (Pn0T = ∫ 1/B_T; the junk-value rule; no benchmark cites them). removed StrictlyJointlyElicits, IsJointlyElicitable, StrictlyJointlyElicits.apply_mixture; strictlyJointlyElicits_fisslerZiegelExpScore → strictlyElicits_fisslerZiegelExpScore; isJointlyElicitable_valueAtRisk_lowerExpectedShortfall → isElicitable_quantile_lowerExpectedShortfall; fisslerZiegelScore, fisslerZiegelExpScore take the forecast as a pair. removed listMaximum, drawdownCandidates, le_listMaximum; partialSups_const_mul₀, sub_le_maximumDrawdown move to DownsideMetrics.
  • (#384) removed MathFin.IsCoherentRisk and IsCoherentRisk.{rho_zero, convexOn, continuous, acceptance_closed, zero_mem, cone, convex_acceptance, nonneg_mem}, expectedShortfall_isCoherentRisk, IsCoherentRiskMeasure.isCoherentRisk_neg, isCoherentRisk_spectralRiskFinite_expectedShortfall. renamed not_exists_isCoherentRisk_log_acceptance → not_exists_isCoherentRiskMeasure_log_acceptance. restated in losses, same name: coherentRisk_isLUB, representingSet, worstCase, worstCase_isCoherent, representingSet_worstCase, worstCase_isLUB, expectedShortfall_isLUB_representingSet. moved IsCoherentRiskMeasure to RiskMeasures/Coherent.lean. Challenge.lean and comparator.json untouched.
  • (#389) removed ae_count_iff (→ ae_iff_forall_of_singleton_ne_zero); renamed isCoherentRiskMeasure_count_neg_iff → isCoherentRiskMeasure_neg_iff; worstCase_isCoherent restated, takes P and hP. (isCoherentRiskMeasure_count_neg_iff and ae_count_iff were added by #384 in the same release cycle, so they never shipped under those names.)
  • (#402) IsCoherentRiskMeasure.positions_of_neg holds for any finite measure; expectedShortfall_of_hasGaussianLaw and gaussianCVaR_sd_add_le lose their positivity (0 < Var) arguments.
  • (#397) valueAtRisk_of_hasGaussianLaw was private (valueAtRisk_of_hasGaussianLaw'), now public. (#407) expectedShortfall_of_hasGaussianLaw drops an [IsProbabilityMeasure P].
  • (#401) docstring and description changes only, listed under corpus below.

corpus: entries whose claim or statement changed

  • sc-thm-9.1.1: reduced_core → full (#373).
  • sc-ito-formula-unrestricted-local, sc-ito-formula-unrestricted-islocalmartingale: statements are the C² theorem (f_tt, f_tx, f_xxx witnesses dropped), strictly stronger (#396).
  • gir-continuous-emm-forward, gir-discounted-gbm-emm, gir-discounted-gbm-no-arbitrage, mf-continuous-emm-sampled: horizon form of IsEMM / NoArbitrageSimple (the all-horizon statement is the case IsEMM.of_martingale) (#399, #403).
  • mf-binomial-martingale-representation, mf-binomial-european-replication, mf-contract-binomial-hedge: gains as martingaleTransform, adaptedness as StronglyAdapted flipFiltration (fun n ↦ H (n+1)); claim narrowed to 0 < q < 1 (#405, #409). mf-binomial-price-path-measure description updated (#374).
  • removed: mf-merton-from-general-jump-law (duplicated mf-merton-call-formula), mf-merton-model-exists (subsumed by mf-jump-diffusion-model-exists) (#377). the Merton call, put and terminal entries (mf-merton-call-formula, mf-merton-put-formula, mf-merton-discounted-terminal) are restated over JumpDiffusionHyp.
  • mf-svi-butterfly-free-sign-formula: snippet restated with the surviving names (#391). three poisson snippets restate Measurable[N.pastFiltration …] (#394); the girsanov-predictable snippet drops a hypothesis it no longer needs (#403).
  • mf-american-ge-european: scope now says it is under BinomialNoArb (#401). mf-gaussian-var-subadditive / -cvar-subadditive are renamed "closed-form … in the parameters" (ids unchanged); mf-gaussian-{var,cvar}-{translation,pos-homog,monotone} descriptions say they are identities on real parameters, not risk measures on random variables (#401, #384, #397).
  • descriptions and scopes rewritten to say what is proved: mf-coherent-risk-representation, mf-worstcase-risk-representation, mf-utility-acceptance-not-cone, qrm-es-adeh-representation (moved onto the losses convention, #384), mf-ftap-discrete-complete, mf-ftap-one-period-general (#378), sc-thm-7.1.1, mart-thm-2.6.7, mf-jump-diffusion-merton-1976-every-date, sc-bs-pde-feynman-kac (named FK Greeks, #377), sc-ito-formula-adapted-unbounded-coefficients, sc-ito-integral-continuous-adapted-unbounded (#401 and the PRs above).
  • mf-covered-eq-uncovered-interest-parity is the folded entry for covered / uncovered parity (the risk-neutral uncovered-parity statement is its secondary half) (#277).

corpus

754 theorems: 721 full, 18 library_wrapper, 15 reduced_core, no placeholders; 739 delivery-ready. (v1.7.0: 671.)

new entries since v1.7.0 (85; two removed):

  • american put: mf-american-put-optimal-rule-stopped-martingale
  • stochastic calculus: sc-ito-formula-adapted-process, sc-ito-integral-predictable-ae-continuous, sc-ito-integral-unbounded-local-martingale
  • foundations: mf-wiener-integral-is-ito-integral, mf-wiener-conditional-laplace, gir-bs-emm-horizon
  • binomial: mf-binomial-multi-period-emm, mf-binomial-multi-period-emm-unique, mf-binomial-multi-period-no-arbitrage-iff
  • contracts: mf-contract-binomial-hedged-zero-risk, mf-contract-book-es-subadditive, mf-contract-bond-price-vasicek, mf-contract-cap-bond-puts, mf-contract-caplet-black76, mf-contract-caplet-bond-put, mf-contract-cds-cox-default-time, mf-contract-chooser-black-scholes, mf-contract-coupon-bond-gsr, mf-contract-coupon-bond-hull-white, mf-contract-coupon-bond-vasicek, mf-contract-coupon-bond-yield, mf-contract-exchange-option-margrabe, mf-contract-fixed-flows-zero-curve, mf-contract-forward-risk-neutral, mf-contract-fra-value, mf-contract-geometric-asian-black-scholes, mf-contract-level-annuity-zcb, mf-contract-long-call-var-le-premium, mf-contract-parity-risk-neutral, mf-contract-payer-swap-par-rate, mf-contract-payer-swap-value, mf-contract-power-call-black-scholes, mf-contract-bond-price-hullwhite, mf-contract-bond-price-gsr, mf-contract-bond-put-vasicek, mf-contract-bond-put-hullwhite, mf-contract-caplet-vasicek, mf-contract-cms-caplet-annuity-measure, mf-contract-cms-forward-swap-rate, mf-contract-cms-swaplet-adjustment, mf-contract-cms-swaplet-adjustment-nonneg, mf-contract-cms-jensen-gap, mf-contract-payer-swaption-annuity-call, mf-contract-payer-swaption-black, mf-contract-cds-losses-mesh-limit, mf-contract-cds-mesh-convergence
  • fixed income and rates: mf-vasicek-bond-price-at-t, mf-hullwhite-bond-price-at-t, mf-gsr-bond-price-at-t, mf-bond-forward-from-no-arbitrage, mf-clean-price-continuous-at-coupon-date, mf-dirty-price-drops-by-coupon, mf-covered-eq-uncovered-interest-parity, mf-covered-interest-parity, mf-key-rate-partials-sum-to-yield-derivative, mf-level-payment-balance-annuity, mf-cir-squared-ou-mean, mf-heston-affine-pde
  • black–scholes family: mf-sabr-atm-black76-price, mf-sabr-backbone-law, mf-sabr-implied-vol-atm-limit, mf-dupire-local-vol
  • risk and credit: mf-coherent-positions-vs-losses, mf-gaussian-var-of-law, mf-gaussian-es-of-law, mf-gaussian-var-translation-law, mf-gaussian-var-pos-homog-law, mf-gaussian-es-translation-law, mf-gaussian-es-pos-homog-law, mf-gaussian-var-subadditive-jointly-gaussian, mf-gaussian-cvar-subadditive-jointly-gaussian, qrm-student-t-density, qrm-student-t-cauchy, qrm-student-t-var, qrm-student-t-es, qrm-student-t-var-le-es, mf-expected-negative-exposure-gaussian, mf-potential-future-exposure-gaussian, mf-netting-exposure-subadditivity, mf-collateralized-exposure-brownian, mf-dva-cva-mirror, mf-expected-exposure-gaussian-law
  • portfolio and performance: mf-relative-drawdown-scale-invariant, mf-mean-variance-kkt-mean-sd-tradeoff

pins unchanged from v1.7.0: Lean v4.33.0-rc1, Mathlib 0434c03, BrownianMotion a7ad7af. CI now retries the Mathlib cache download (#412). the README and roadmap are brought up to date (#421).

left for later, each an issue: #414 (american put: one sampled filtration), #415 (one snell envelope, FTAP II for the tree), #416 (the itô stack at C²), #418 (the remaining elegance rewrites), the GSR bond put (#367).