Repository navigation
formal-mathfin v1.8.0
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 + ∫ σ dBholds as an identity of processes (#355). the integral for predictable σ with paths continuous only a.s. ispredItoIntegral. - Lévy's characterization is proved (#373):
levy_characterization(sc-thm-9.1.1) moves fromreduced_coretofull. the bracket enters as the hypothesis thatM² − tis 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 thef_t = 0case 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 lemmaMeasureTheory.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_isQMartingaleisS_0times the constant-θ exponential martingale; one Doléans exponential;isEquivProbMeasure_withDensitysimplified (#371). the adapted continuous-θ Girsanov is the bounded predictable one (#385).ContinuousMarket.IsEMMis horizon-aware: Q makes the price stopped atTa 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
IsEMMandNoArbitragefor any Ω, F-valued over a horizon, the same shape as the continuous ones, with one forward theoremIsEMM.noArbitragefor both; the freeze lemmamartingale_min_iffonce; 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 statementIsGaussianMarkov(#380); one stopping ruleStoppingRuleand onestoppingValue(#392);StoppingRule.minimumonce (#411). - a
PutEnvelopecarries 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 theoremvalue_eq_of_attainedis 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.infinitePiof Mathlib'sbernoulliMeasure(#374).flipFiltration, mathlibMartingales, and Girsanov as a density (#376). - multi-period no-arbitrage through the discrete FTAP (#383). one Bellman recursion
bermudanPrice Eover an exercise set; european and american areE = ∅andE = 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.valueDiscunder 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).
SVICRT is Mathlib's (#390). - the caplet is the tower property plus the pointwise identity
bond_mul_capletPayoff;SwapModelis built onHasBondPrice(#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
IsCoherentRiskMeasurein the losses convention (#384), for any finite measure charging every point (#389). one elicitability notion (#375).maximumDrawdownthroughpartialSups(#375).
new results
each with the scope the PR states.
- caps and caplets (#406): a caplet is
(1 + δK)puts onP(T₀, T₁)struck at1/(1 + δK); a cap is the sum of its caplets. inmf-contract-caplet-black76lognormality ofL(T₀, T₁)under theT₁-forward measure is a hypothesis, and the Black time is free. - Jamshidian (#413): under the
T₀-forward measure a bonda·e^{−βr}withrGaussian 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 inPayoff). a payoffg(S)paid atT₀isA(0)·E^A[g(S)/A(T₀)]; the payer swaption isA(0)·E^A[(S − K)⁺], with Black's formula under a lognormal-swap-rate hypothesis; the CMS swaplet is its forward value plusA(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 tot) in Hull–White with continuous forcing,A(t,T)in two-piece GSR forT* ≤ 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/2with no correlation hypothesis, CVaR of the sum at its actual standard deviation.variance_add_le_sqis 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.rpowhas 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 fromB. - binomial: multi-period EMM and
NoArbitrage ↔ BinomialNoArb u d r(#383, needsS₀ > 0,0 < d < u,T ≥ 1); uniqueness of the EMM,existsUnique_isEMM_horizonSpot(#395). the representation theorem now assumes0 < 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 fort_ν⁻¹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 → flimit 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 toFixedIncome/andhestonGamma_eq_cirGamma, PFE is the VaR ofmax(V, 0)). - smaller:
forwardMeasure_pricegeneral; lower ES is minus the ES of the reflected loss (lowerExpectedShortfall_eq_neg_expectedShortfall); tracking error isVar[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 moduleFoundations/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.*; privateunifPart_mesh_sum/unifPart_lebecome public (n ≠ 0for0 < 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 thestepφ/stepφTDfamilies (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 toItoFormulaAdaptedTD, same names:ito_formula_adapted_against,ito_formula_adapted. - unrestricted formula (#388): moved
stepσ,itoSimple_stepσ,itoIntegralCLM_T_stepσtoItoIntegralBrownian;ito_formula_unrestricted_localtoItoFormulaUnrestrictedLocMart. removedtruncStep,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_localdrop thef_tt,f_tx,f_xxxwitnesses and their continuity (strictly stronger);plane_ito_localMartingaletakesContDiff ℝ 2 G. removed privateeLpNorm_band_transfer. - horizon-T integral (#408):
itoIntegralCLM_T := itoIntegralL2 ∘ bandExtend T. moved from namespaceItoIntegralProcessL2InfinitetoItoIntegralCLM: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. removeditoIntegralCLM_T_eq_itoIntegralL2_bandExtend(nowitoIntegralCLM_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. renamedQuadraticVariationL2.adaptedAt_increment_sq_sub→measurable_increment_sq_sub;pastSigma→pastFiltration. signatures: the isometry core lemmas takehF : IsFilteredPreBrownian B 𝓕 μandMeasurable[𝓕 t](andhBmeasleaves the core);tendsto_weighted_qv_process(_of_ae_continuous),condExp_adapted_mul_incrementtakeMeasurable[natFiltration hBmeas s]. - (#422) new modules
Foundations/ItoIntegralProcessL2Inf(itoProcessL2Infand its lemmas, namespace unchanged) andFoundations/StoppedProcessPaths. movedMathFin.LevyCharacterization→MathFin:coe_untopA_min,continuous_untopA_min,untopA_min_zero,stoppedProcess_indicator_eq,continuous_stoppedProcess;coe_untopAis now public.itoProcessCLM T tis(itoProcessL2Inf t).comp (bandExtend T). addedmartingale_stoppedProcess_of_locally_bounded,exists_martingale_eqOn,integral_sq_stopped_exp_le,IsBrownianOn. (#420) addedcondExp_mul_of_indep(Foundations/IndepFreezing). ExitTimetakes a measurable process;ItoFormulaUnrestrictedLocMartuses it (#355).Foundations/ItoIntegralBrownian.measurable_eval_natFiltrationremoved, useItoIntegralL2.stronglyAdapted_natFiltration(#403).BoundedLocalMartingalemoves fromAmericanPut/Stopping/toFoundations/(namespaceMathFin), no alias (#373).BoundedLocalMartingale.martingale_of_setIntegral_eq_real→MeasureTheory.martingale_of_setIntegral_eq(#403).planeGenerator_eq_partialsis 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(toGaussianMoments). - 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_withDensityno longer takeshmeas(four callers moved);bs_discounted_isQMartingaleproof now viaexpBtheta_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_arbitragetakes horizon-Thypotheses (adapted and integrable up toT, one-step martingale identity beforeT, predictable bounded strategy);OnePeriodVector.noArbitrage_of_isEMMtakesMeasurable Y; the threeNoArbitrageDerivationslemmas takestatePricePricing s q S = S₀. new bridgeexists_statePrices_of_hasEMM. -
(#399)
ContinuousMarket.IsEMM S Q→IsEMM S T Q;NoArbitrageSimple S→NoArbitrageSimple S T;discountedGBM_isEMM,discountedGBM_noArbitrageSimple,emm_unique_of_completetake the horizon;IsEMM.sampledtakes(T') (hT' : t T' ≤ T);IsEMM.incrementtakess, t ≤ T;martingaleTransform,martingaleTransform_isMartingale,emm_implies_no_arbitrageareF-valued (real inner-product space; scalar casemartingaleTransform_real). -
(#403)
IsEMMfieldsprob/absP/Pabs→isProb/ac/ac'(OnePeriodVector.IsEMM,MathFin.IsEMM); the threeIsEMMstructures extendIsEquivProbMeasure;isEquivProbMeasure_withDensity,esscherTilt_isEquivProbMeasure,numeraireMeasure_isEquivProbMeasurereturnIsEquivProbMeasureinstead of a conjunction;ContinuousMarket.IsEMM 𝓕 P S T QandNoArbitrageSimple 𝓕 P S Ttake the filtration and measure explicitly. removedmulti_period_FTAP_marginals,ContinuousMarket.increment_integrable,ContinuousMarket.increment_integral_zero(nowMathFin.integrable_inner_sub,MathFin.condExp_inner_sub_eq_zero,MathFin.integral_inner_sub_eq_zero). predictable Girsanov lemmas derive0 ≤ Cfrom 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;NoArbitragequantifies over strategies bounded up to the horizon, every strategy on a finite Ω);noArbitrage_of_isEMM→IsEMM.noArbitrage;IsEMM.sampledmoves toFoundations/ContinuousMarket.lean; removedIsEMM.integrable(frommartingale_min_iff). added moduleFoundations/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 withIsBrownianOn:isQBrownianMotion_of_expMartingale,Btheta_isQBrownianMotion,Btheta_simple_isQBrownianMotion,Btheta_isQBrownianMotion_predictable,Btheta_isQBrownianMotion_predictable_of_bdd,Btheta_isQBrownianMotion_adapted(IsBrownianOnunfolds 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. removeddividendPutSolution_zero_iff,toDividendPutSolution,dividendPutSolution_iff_continuousBoundary_and_smooth, moduleDividendContact.lean.NormalizedPutSolution k p bis nowDividendPutSolution k 0 p b. -
(#380)
brownianLogState_condExp_transition→brownianLogState_isGaussianMarkov;brownianLogState_usual_condExp_transition→brownianLogState_usual_isGaussianMarkov; removedusualBellmanAux_eq_brownianGridMarkovAux,delayedBellmanAux_eq_markov(→bellmanAux_eq_brownianGridMarkovAux);brownianGridMarkovAux Z T δ β σ→brownianGridMarkovAux Z s β σ(callers passcappedGridTime T δ); the two grid-price identifications merge intobrownianGridPrice_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. removedDiscreteRule,discreteStoppingValue,GridRule(with.zero,.maturity),BoundedRule.toGridRule,gridRule_nonempty,exerciseValues(+_nonempty,_bddAbove),DiscreteRule.toPhysicalGridRule,aeExerciseValues(+_eq,_nonempty,_bddAbove),AEBoundedRule.reward_integrable.AEHorizonValuetrimmed (aeAmericanPutValue,aeExerciseThresholdstay). -
(#400) removed
canonicalLogPath,canonicalLogPath_exp,canonicalGapand its_continuous/_nonneg/_terminal/_adapted,canonicalContactRule_contact,canonicalDiscountedPrice_gap,canonicalRewardProcessand its_continuous/_bound. theclassicalCandidate_*,classicalGap_*,classicalContactRule(_contact)and bothclassical_price_eq_value_of_*verificationtheorems takePutEnvelope pinstead of aDividendPutSolution. restated:canonicalContactRule_continuation_before/_exercise_before_expirytake the explicit log spotx+(k-h-1)*t+√2*W t.ContinuousBoundaryPutSolutionextendsPutEnvelope. -
(#404) removed
classicalPrice_gaussian_comparison(nowDividendPutSolution.putWaiting),canonicalPrice_transition,canonicalDiscountedPrice_condExp_le,canonicalDiscountedPrice_eq_classicalCandidate,DividendPutSolution.price_nonneg(→PutEnvelope.nonneg),StoppingRule.integral_eq_stoppedValue. renamedclassicalPrice_physical_transition→PutWaiting.physical_transition.brownianClassicalCandidate_supermartingale,classicalCandidate_condExp_le_before_maturitytakePutEnvelope pandPutWaiting … p.canonicalDiscountedPriceis anabbrevfor the classical candidate and moves toStopping/ActualContact.lean;PutEnvelopemoves toBoundary/Problem.lean.ClassicalTransitionno longer imports the PDE. -
(#411) removed
StoppingRule.capTime,StoppingRule.capBinary;StoppingRule.minimummoves fromOrderedSamplingtoRules, generalised to two horizons. -
(#372) stopping-rule minima use
IsStoppingTime.min; theOrderedSamplingcopy goes (finished in #411). -
(#420)
expectedReward_eq_initial_of_contact_martingalegeneralised fromIsProbabilityMeasuretoIsFiniteMeasure. addedexpectedReward_eq_initial_iff_stopped_martingale.
binomial
- (#374) removed
coinPMF,coinPMF_apply.coinFlipMeasure qisMeasure.infinitePiofbernoulliMeasure;coinFlipMeasure_cylinder,coinFlipMeasure_flips_preimage,integral_comp_flipsstate weights asif path k then q else 1 − q. - (#376) no renames or removals. new
PathAdaptedAt.fixFlip. - (#390)
snellAux_le_of_supermartingale_of_getakes a horizonH;americanCallPrice_le_binomialPricetakes explicitn S; removedintegral_excess_return_eq_zero;varianceSwap_fairStrikemoved toJumpDiffusionVarianceSwap, restated as one integral of the log contract (no corpus entry cited the old form).quotientProdHom_bijectiveis Mathlib's CRT (statement unchanged). - (#395)
americanPrice_le_of_supermartingale_dominating→bermudanPrice_le_of_supermartingale_dominating(takesE);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. removedbermudanPrice_empty,bermudanPrice_univ,americanPrice_ge_intrinsic(→le_bermudanPrice),americanPrice_supermartingale(→bermudanPrice_supermartingale),binomialPrice_le_americanPrice(→bermudanPrice_mono),bermudanPrice_succ(→_of_mem/_of_notMem).bermudanPrice Emoves toBinomial/Model.lean;binomialPrice := bermudanPrice ∅,americanPrice := bermudanPrice univ;snellAux Etakes the exercise set;snellAux_le_of_supermartingale_of_ge(k + j = H, dominance at exercise dates only). - (#402) removed
americanCallPrice_le_binomialPrice(usebermudanCallPrice_eq_binomialPrice E;americanCallPrice_eq_binomialPriceisE = univ). - (#405, #409) the hedge
Hinbinomial_martingale_representation,binomialPrice_replication,Binomial.pathPV_eq_value_add_gains,Binomial.valueAtRisk_hedged_eq_zero: gains aremartingaleTransform H S N ω(was aFinset.rangesum), and the adaptedness hypothesis isStronglyAdapted flipFiltration (fun n ↦ H (n+1))(was∀ n, PathAdaptedAt n (H n), thenPathAdaptedAt n (H (n+1))); the index shifts by one.binomial_martingale_representationnow assumes0 < q < 1andMartingales forflipFiltrationundercoinFlipMeasure q(the old pathwise theorem needed no measure). moved:binomialPrice_callPut_paritytoContracts/Models/Binomial.lean; measure-free layer (PathAdaptedAt,fixFlip,PathAdaptedAt.mono,hedgeRatio,repr_one_step) to newBinomial/FlipPaths.lean;binomialPrice_replicationtoBinomial/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, fieldJumpDiffusionHyp.J_meas, moduleBlackScholes/MertonModel.hmeasdropped frommgf_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 only0 ≤ T). - (#372)
Contracts.BlackScholes.integrable_{europeanCall,europeanPut,forward}_pathPV→ the model-freeContracts.integrable_*_pathPV. moved, same name:nthMoment_terminal,integral_bsTerminal_eq_forward(toForward),integrable_bsCall_payoff,integrable_bsPut_payoff(toCall). - (#379, #382) removed
Payoff.pow,Payoff.eval_pow(the ℕ-only node;powerCallis rebuilt onPayoff.rpow). addedPayoff.rpow,Payoff.obsProd,Payoff.eval_obsProd,geomAsianCall,BlackScholes.pathAssets,BlackScholes.value_geomAsianCall. - (#391) in
SVI, removedblackPlus,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 usesForwardSmile.dpl,dmi,blackFormat the SVI variance. - (#402) removed
sigmaZero_{rootVariance,dmi,dpl,blackForm,blackDelta}_hasDerivAt; the SVI_hasDerivAtchain takes(k) (hv)(andhslopeforblackDelta). removedstockNumeraireDensity,stockNumeraireMeasure,stockNumeraireMeasure_eq_numeraireMeasure,stockNumeraireDensity_real_nonneg(the stock numeraire isnumeraireMeasure). - (#389) additions only:
chooser,BlackScholes.pathAssets_eq_bsTerminal,BlackScholes.value_chooser. - (#398) additions only (payFlows generalises
fixedFlows;pathPV_fixedFlowsunchanged). - (#406) additions only;
integral_one_div_posis public. - (#410) additions only.
- (#413)
BondModel.integral_discount_mul→HasBondPrice.integral_discount_mul;BondModelextends the newHasBondPrice(its signature unchanged). addedcondExp_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_nonnegtake a random discount factor(D : Ω → ℝ)andhDin place of(r T : ℝ);annuityMeasure_pricealsohDm. addedcmsCaplet,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_forwardSwapRateand theSwapModellemmas. - (#426)
SwapModelholdshasBondPrice : ∀ i ∈ Icc 1 n, HasBondPrice …andintegrable_D0in place ofD_pos/integrable_D/bond_eq;SwapModel.D_posis a theorem. removedSwapModel.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_forwardmoves fromJamshidian.leantoCaplet.lean. addedbond_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_measurableis public. - (#356)
Contract.valueDiscadded; no removals.
rates and risk
- (#375)
forwardMeasure Q r T→forwardMeasure Q B(constant rate:forwardMeasure Q fun _ ↦ exp (r*T));forwardMeasure_pricegeneralised;forwardMeasure_expected_spottakes[IsProbabilityMeasure Q]. removedHullWhite.forwardMeasure,HullWhite.forwardMeasure_isProbabilityMeasure; newHullWhite.integrable_one_div_exp_bondRate.futuresForwardBasis_of_integral_mul_exp_neg,futuresForwardBasis_gaussiandropN₀/hnormand take0 < ∫ exp(−Y).forwardIndex_eq,breakeven_eqgainhP(Pn0T = ∫ 1/B_T; the junk-value rule; no benchmark cites them). removedStrictlyJointlyElicits,IsJointlyElicitable,StrictlyJointlyElicits.apply_mixture;strictlyJointlyElicits_fisslerZiegelExpScore→strictlyElicits_fisslerZiegelExpScore;isJointlyElicitable_valueAtRisk_lowerExpectedShortfall→isElicitable_quantile_lowerExpectedShortfall;fisslerZiegelScore,fisslerZiegelExpScoretake the forecast as a pair. removedlistMaximum,drawdownCandidates,le_listMaximum;partialSups_const_mul₀,sub_le_maximumDrawdownmove toDownsideMetrics. - (#384) removed
MathFin.IsCoherentRiskandIsCoherentRisk.{rho_zero, convexOn, continuous, acceptance_closed, zero_mem, cone, convex_acceptance, nonneg_mem},expectedShortfall_isCoherentRisk,IsCoherentRiskMeasure.isCoherentRisk_neg,isCoherentRisk_spectralRiskFinite_expectedShortfall. renamednot_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. movedIsCoherentRiskMeasuretoRiskMeasures/Coherent.lean.Challenge.leanandcomparator.jsonuntouched. - (#389) removed
ae_count_iff(→ae_iff_forall_of_singleton_ne_zero); renamedisCoherentRiskMeasure_count_neg_iff→isCoherentRiskMeasure_neg_iff;worstCase_isCoherentrestated, takesPandhP. (isCoherentRiskMeasure_count_neg_iffandae_count_iffwere added by #384 in the same release cycle, so they never shipped under those names.) - (#402)
IsCoherentRiskMeasure.positions_of_negholds for any finite measure;expectedShortfall_of_hasGaussianLawandgaussianCVaR_sd_add_lelose their positivity (0 < Var) arguments. - (#397)
valueAtRisk_of_hasGaussianLawwas private (valueAtRisk_of_hasGaussianLaw'), now public. (#407)expectedShortfall_of_hasGaussianLawdrops 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 ofIsEMM/NoArbitrageSimple(the all-horizon statement is the caseIsEMM.of_martingale) (#399, #403).mf-binomial-martingale-representation,mf-binomial-european-replication,mf-contract-binomial-hedge: gains asmartingaleTransform, adaptedness asStronglyAdapted flipFiltration (fun n ↦ H (n+1)); claim narrowed to0 < q < 1(#405, #409).mf-binomial-price-path-measuredescription updated (#374).- removed:
mf-merton-from-general-jump-law(duplicatedmf-merton-call-formula),mf-merton-model-exists(subsumed bymf-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 overJumpDiffusionHyp. mf-svi-butterfly-free-sign-formula: snippet restated with the surviving names (#391). three poisson snippets restateMeasurable[N.pastFiltration …](#394); the girsanov-predictable snippet drops a hypothesis it no longer needs (#403).mf-american-ge-european: scope now says it is underBinomialNoArb(#401).mf-gaussian-var-subadditive/-cvar-subadditiveare 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-parityis 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).