Skip to content

formal-mathfin v1.10.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 03:31

This release is about how the library is kept, not about new theorems: #439 (library practices), the import narrowing that followed it, and the kernel replay that narrowing made possible. two new corpus entries; everything else is the same mathematics, easier to find, cite and check.

The corpus goes from 779 to 781 theorems, 746 of them full, 764 delivery-ready. there are still no sorries, and only the three standard axioms are used.

Nothing removed or renamed left an alias, so read the breaking changes if you import from MathFin. the biggest one: modules no longer re-export all of Mathlib.

what changed

checking the library

  • the kernel replay completes. every content module (707) is replayed through leanchecker, below the elaborator, in six parallel shards on hosted runners; it runs monthly and on demand. it could not finish from June until now, because each module loaded all of Mathlib.
  • no module imports Mathlib whole any more (it was 359 of 709). lake exe mathfin_shake (MathFinTools/Shake.lean) is Lake's shake with one change, explained in its docstring: Mathlib marks every module that registers a positivity or norm_num extension to be kept downstream, and shake honoured that for Mathlib's modules too.
  • a declaration index, lake exe mathfin_index, built on every push: each declaration's statement, docstring, uses and attributes. tools/verify/find.py searches it; every PR's run summary lists its renames and changed statements.
  • one ratchet (ratchet.json) for the debt counts. all are at zero except the 9 heartbeat bumps, which are long proofs still to be split.

documentation

  • one doc standard for every module docstring, Mathlib's layout: title, ## Main definitions / ## Main results, ## References keyed to docs/references.bib, and ## Tags with JEL/MSC codes from a controlled vocabulary (docs/subjects.toml).
  • the Hugging Face dataset now carries each entry's subjects and its citations (bibliography keys with locators).
  • a docs site, generated from the index after each green build: module pages with used-by lists, a map of the library, the blueprint as a graph, search, the bibliography.
  • the blueprint and the issue tracker are linked both ways (Blueprint: <label> lines, checked in CI). six frontier results already proved are now tagged nodes: Itô's formula at C², the jump-diffusion risk-neutral drift, the variance-swap jump bias, Schwartz futures, interest-rate parity and unilateral CVA with Gaussian exposure.

the mathematics

  • one IsEMM, over any linearly ordered time index (Foundations/EquivMartingaleMeasure). the discrete and continuous copies are gone, with the lemmas each restated; IsEMM.increment holds at any index with a least element.
  • the index's first run found 12 groups of duplicate statements; all are gone, each caller moved to the survivor (the public names are listed below).
  • the 193 private lemmas whose statements mention no MathFin constant are resolved: two were upstream lemmas under a local name and are gone, one-liners are inlined, and the rest are public under names that say what they prove. that exposed one more copy, PointwiseBracket's increment lemma, now IsFilteredPreBrownian.condExp_comp_increment_eq_const.
  • MathFin/Init.lean, imported everywhere, holds the library's grind set pricing (parity and tree identities). box_spread_identity is grind [pricing]. positivity knows Phi and zcb; Phi has gcongr and fun_prop lemmas.
  • WienerIntegralL2's endpoint identity is proved by cases on min and max, not by Mathlib's whole simp set.

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.

imports

  • import MathFin.X no longer brings all of Mathlib. a file that used a Mathlib name only through that re-export needs the Mathlib module itself (or import Mathlib). import MathFin (the umbrella) still brings every MathFin module.

the market

  • ContinuousMarket.IsEMM → IsEMM, and ContinuousMarket.IsEMM.{of_martingale, adapted, integrable, condExp_eq, sampled, increment} → IsEMM.…. the discrete IsEMM keeps its name and now takes any [LinearOrder ι]. the one-period OnePeriodVector.IsEMM stays, with its bridge isEMM_one_iff_onePeriod.
  • names in Mathlib's style (the nolint pass):
    • HasArbitrage_two_state → HasArbitrageTwoState, HasArbitrage_multi_state → HasArbitrageMultiState
    • HasEMM_two_state → HasEMMTwoState, HasEMM_multi_state → HasEMMMultiState
    • the lemmas built from them follow: hasArbitrageMultiState_iff_not_noArbitrage, hasArbitrageTwoState_iff_multi, hasEMMMultiState_iff_exists_isEMM, hasEMMMultiState_iff_exists_pos_mem, hasEMMTwoState_iff_multi, hasEMMTwoState_iff_not_hasArbitrage, signs_opposite_of_not_hasArbitrageTwoState
    • pricingKernel_two_state{,_bond,_linear,_nonneg} → pricingKernelTwoState{,_bond,_linear,_nonneg}
    • statePrices_two_state{,_nonneg,_sum_eq_bond} → statePricesTwoState{,_nonneg,_sum_eq_bond}
    • hitsLevel_inhabited_above → hitsLevelEquivAbove, reflectionPrincipleEquiv_below → reflectionPrincipleEquivBelow

the itô integral on a horizon

the horizon-T version of an object that also exists unrestricted takes Horizon (iocSP_T, itoAssembly_T, simpleAssembly_T, simpleProcessL2_T, timeMeasure_T → …Horizon); the ones with no unrestricted version drop the suffix (itoIntegralCLM_T → itoIntegralCLM, trimMeasure_T → trimMeasure, itoIsometry_T → itoIsometry). the lemmas named after them follow:

all 43 renames
  • ItoIntegralAgainstMartingale.itoIntegralCLM_T_bandRestrict → ItoIntegralAgainstMartingale.itoIntegralCLM_bandRestrict
  • ItoIntegralBrownian.itoIntegralCLM_T_brownian → ItoIntegralBrownian.itoIntegralCLM_brownian
  • ItoIntegralBrownian.itoIntegralCLM_T_stepσ → ItoIntegralBrownian.itoIntegralCLM_stepσ
  • ItoIntegralCLM.ae_fst_mem_Ioc_trimMeasure_T → ItoIntegralCLM.ae_fst_mem_Ioc_trimMeasure
  • ItoIntegralCLM.bandExtend_simpleAssembly_T → ItoIntegralCLM.bandExtend_simpleAssemblyHorizon
  • ItoIntegralCLM.iocSP_T → ItoIntegralCLM.iocSPHorizon
  • ItoIntegralCLM.itoAssembly_T → ItoIntegralCLM.itoAssemblyHorizon
  • ItoIntegralCLM.itoIntegralCLM_T → ItoIntegralCLM.itoIntegralCLM
  • ItoIntegralCLM.itoIntegralCLM_T_apply → ItoIntegralCLM.itoIntegralCLM_apply
  • ItoIntegralCLM.itoIntegralCLM_T_norm → ItoIntegralCLM.itoIntegralCLM_norm
  • ItoIntegralCLM.itoIntegralCLM_T_simpleAssembly_T → ItoIntegralCLM.itoIntegralCLM_simpleAssemblyHorizon
  • ItoIntegralCLM.simpleAssembly_T → ItoIntegralCLM.simpleAssemblyHorizon
  • ItoIntegralCLM.simpleAssembly_T_denseRange → ItoIntegralCLM.simpleAssemblyHorizon_denseRange
  • ItoIntegralCLM.simpleProcessL2_T → ItoIntegralCLM.simpleProcessL2Horizon
  • ItoIntegralCLM.timeMeasure_T → ItoIntegralCLM.timeMeasureHorizon
  • ItoIntegralCLM.trimMeasure_T → ItoIntegralCLM.trimMeasure
  • ItoIntegralCLM.trimMeasure_T_eq_restrict → ItoIntegralCLM.trimMeasure_eq_restrict
  • ItoIntegralCLM.uncurry_iocSP_T_eq → ItoIntegralCLM.uncurry_iocSPHorizon_eq
  • ItoIntegralCovariation.covariation_itoIntegralCLM_T → ItoIntegralCovariation.covariation_itoIntegralCLM
  • ItoIntegralCovariation.inner_itoIntegralCLM_T → ItoIntegralCovariation.inner_itoIntegralCLM
  • ItoIntegralCovariation.itoIsometry_T → ItoIntegralCovariation.itoIsometry
  • ItoIntegralCovariation.variance_itoIntegralCLM_T → ItoIntegralCovariation.variance_itoIntegralCLM
  • ItoIntegralProcessContinuousModification.simpleAssembly_T_norm_sq → ItoIntegralProcessContinuousModification.simpleAssemblyHorizon_norm_sq
  • ItoIntegralProcessGeneral.integral_itoIntegralCLM_T → ItoIntegralProcessGeneral.integral_itoIntegralCLM
  • ItoIntegralProcessGeneral.itoProcessCLM_simpleAssembly_T → ItoIntegralProcessGeneral.itoProcessCLM_simpleAssemblyHorizon
  • ItoIntegralProcessL2Infinite.clampSP_simpleProcessL2_T → ItoIntegralProcessL2Infinite.clampSP_simpleProcessL2Horizon
  • ItoIntegralProcessL2Infinite.itoProcessCLM_simpleProcessL2_T → ItoIntegralProcessL2Infinite.itoProcessCLM_simpleProcessL2Horizon
  • ItoIntegralRiemannBridge.itoIntegralCLM_T_of_bdd_adapted_cont → ItoIntegralRiemannBridge.itoIntegralCLM_of_bdd_adapted_cont
  • ItoIntegralRiemannBridgeTD.itoIntegralCLM_T_of_bdd_cont_td → ItoIntegralRiemannBridgeTD.itoIntegralCLM_of_bdd_cont_td
  • PredictableDensityGeneral.inner_simpleAssemblyOfMeasure_iocSP_T → PredictableDensityGeneral.inner_simpleAssemblyOfMeasure_iocSPHorizon
  • WienerIntegralIto.ae_simpleAssembly_T_iocSP_T → WienerIntegralIto.ae_simpleAssemblyHorizon_iocSPHorizon
  • WienerIntegralIto.itoSimpleLp_iocSP_T → WienerIntegralIto.itoSimpleLp_iocSPHorizon
  • WienerIntegralIto.measurePreserving_coe_timeMeasure_T → WienerIntegralIto.measurePreserving_coe_timeMeasureHorizon
  • WienerIntegralIto.measurePreserving_fst_trimMeasure_T → WienerIntegralIto.measurePreserving_fst_trimMeasure
  • WienerIntegralIto.wienerIntegralLp_eq_itoIntegralCLM_T → WienerIntegralIto.wienerIntegralLp_eq_itoIntegralCLM
  • itoIntegralCLM_T_eq_itoProcessCLM_of_vanishes_after → itoIntegralCLM_eq_itoProcessCLM_of_vanishes_after
  • itoIntegralCLM_T_mem_lpMeas → itoIntegralCLM_mem_lpMeas
  • itoIntegralCLM_T_restrictAfterCLM → itoIntegralCLM_restrictAfterCLM
  • itoIntegralCLM_T_smulAdapted → itoIntegralCLM_smulAdapted
  • itoIntegralCLM_T_smulAdapted_of_memLp → itoIntegralCLM_smulAdapted_of_memLp
  • itoIntegralCLM_T_smul_of_memLp → itoIntegralCLM_smul_of_memLp
  • itoIntegralCLM_T_surjective_onto_centered → itoIntegralCLM_surjective_onto_centered
  • mem_range_itoIntegralCLM_T_of_centered → mem_range_itoIntegralCLM_of_centered

duplicates removed (removed → survivor)

  • BlackScholes.AmericanPut.Stopping.normalized_rates_admissible → Boundary.normalized_dividend_regime
  • Cox.defaultTimeLaw_const → PoissonInterarrival.map_firstArrival_eq_expMeasure
  • ItoIntegralProcessContinuousModification.itoSimpleProcess_continuous → ItoIntegralProcess.itoSimpleProcess_pathContinuous
  • ItoIntegralRiemannBridge.coe_finsetSum_apply → ProbabilityTheory.SimpleProcess.coe_finset_sum
  • binomial_martingale_identity → crrUpProb_mul_up_add
  • merton_equity_eq_bs_call, merton_equity_eq_bs_call_via_brownian → bs_call_formula
  • garman_kohlhagen_call_formula → bs_dividends_call_formula at q = r_f
  • condExp_exp_increment_of_expMartingale → IsExpQMartingale.condExp_exp_increment
  • crr_drift_limit_h → tendsto_crr_drift_quotient
  • max_sub_max_neg → Mathlib's max_zero_sub_max_neg_zero_eq_self

one-liners inlined

  • ItoIntegralCLM.assembly_isometry_T: use ItoIntegralL2.assembly_isometry with the trim-norm equality.
  • ItoIntegralCLM.memLp_uncurry_trim_T → ItoIntegralCLM.memLp_uncurry_trimMeasure
  • WienerIntegralL2.memLp_increment_two → memLp_increment

corpus

781 theorems: 746 full, 18 library_wrapper, 17 reduced_core, no placeholders, 764 delivery-ready (v1.9.0: 762). 2 new entries, none removed, both on the American put with the classical free-boundary solution assumed, not constructed:

  • mf-american-put-right-augmentation-invariance: the finite-horizon value over the stopping rules of the usual augmentation of the Brownian filtration equals the value over the raw filtration's rules.
  • mf-american-put-local-price-ito: at a continuation point, a compactly supported C² localisation of the price kernel satisfies Itô's identity with a continuous local martingale. the identity is for the localised function, not the price itself.

20 snippets changed their open and import lines for the narrowed imports; no statement changed.

left for later: splitting the 9 long proofs behind the heartbeat bumps, the market-model ladder (spec 2026-11-05 §6b), and the automation pass on more hub definitions.