Skip to content

Import Formal MathFin v2 market pricing and risk library - #1069

Merged
Vilin97 merged 4 commits into
mainfrom
feature/mathfin-market-pricing-20261128
Nov 28, 2026
Merged

Vilin97 merged 4 commits into
mainfrom
feature/mathfin-market-pricing-20261128

Conversation

@Vilin97

@Vilin97 Vilin97 commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Ready for review. This imports the licensed production scope of Formal MathFin v2 into Lean Pool.

What it adds

The v2 release develops a typed market with filtration, assets and a positive numéraire, a common language for dated contracts, and a pricing-measure interface that connects frozen deflated martingales to contract value. The entry module exposes five cross-cutting results.

  • Finite-state, single-asset FTAP on a finite trading grid, in a nonempty finite sample space with measurable singletons and a finite reference measure that charges every state. The separate general-state result explicitly assumes the conditional one-period FTAP. Harrison and Pliska · Formal MathFin FTAP paper
  • Binomial price invariance across equivalent pricing measures for a single contract-language payment whose payoff depends only on terminal spot on every scenario, with positive initial spot, no-arbitrage parameters and maturity on the grid. Cox, Ross and Rubinstein
  • A normalized call curve realized at maturity one in a unit-numéraire market with a nonnegative terminal asset whose delivery price is one. This is the fixed-maturity result, with no cross-maturity consistency claim. Roper, proof of Theorem 2.1(a)(ii)
  • Vasicek zero-coupon pricing under the reference probability measure using the stochastic bank-account numéraire built from the Wiener-integral representation of the integrated rate. Vasicek
  • Coherent-risk representation on a finite state space with measurable singletons and a finite reference measure. The risk of a loss equals the supremum of expected loss over probability vectors that give nonpositive expectation to every acceptable loss. Artzner, Delbaen, Eber and Heath

The released core also supplies reusable results on Gaussian kernels, filtrations, stopping and martingale convergence, stochastic integration, finite-state separation, portfolio constraints, and loss and survival models. The shared market terms give those results common interfaces for pricing, hedging, and risk.

Source and scope

The material release was published on 2026-11-11 at 23:35:05 UTC. The upstream commit is 55e29a93e75f10b40f61f45c78a6058b2938045f, under Apache-2.0. The project card records mixed provenance based on the upstream authorship disclosures, and the Lean port retains original file authorship and copyright. Release · Pinned source and license · Upstream paper · Pinned provenance declaration

The scope follows the public production modules exposed by the v2 entry point, after removing development audit tools, examples, tests, challenge and frontier work, and the dependency branches of four files whose third-party notices do not establish a permissive license. Brownian interfaces reuse existing Lean Pool KLS modules, Mathlib and Tau Ceti. The retained port includes two narrow adapters for local-martingale and maximal-bound arguments. The local-martingale adapter credits Rémy Degenne’s Apache-2.0 source. Pinned BrownianMotion source

Tau Ceti also develops simple-strategy absence of arbitrage and Black–Scholes pricing. MathFin’s differentiating results are the finite-state FTAP converse, the common contract and market interfaces across model families, the one-date call-curve realization, and coherent-risk duality.

The conservative upstream total is 104,473 Lean lines across 473 files at the release commit. This excludes the entire upstream Doob maximal-inequality and filtration time-change files, including their locally retained fragments, and the unused fourth-moment helper. The manifest SHA-256 is 75501d7ab2b84246bf564468187113ac7c26fc14efb21ed952a77b3575978407. The count is reproduced from the PR checkout and a clean upstream checkout at the pinned commit with the Bash commands below.

upstream=/absolute/path/to/formal-mathfin
LC_ALL=C comm -12 \
  <(git ls-files LeanPool/MathFin | sed 's,^LeanPool/,,' | LC_ALL=C sort) \
  <(git -C "$upstream" ls-tree -r --name-only 55e29a93e75f10b40f61f45c78a6058b2938045f -- MathFin |
      sed -n '/\.lean$/p' | LC_ALL=C sort) |
  sed '/^MathFin\/Probability\/Martingales\/TimeChange\.lean$/d' > counted-files.txt
root="$(pwd)"
(cd "$upstream" && tr '\n' '\0' < "$root/counted-files.txt" | wc -l --files0-from=- | tail -1)

Port and validation

  • Pinned Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 and Tau Ceti 0642eae29e0a59ef798d04de325386445906e755. Resolved API changes, repaired the quadratic-variation proof with reusable finite Cauchy–Schwarz, and removed diagnostics and compiler-option overrides.
  • Reused existing filtrations, stopped martingales, Gaussian moments and predictable-process machinery. Replaced duplicated Doob machinery with Tau Ceti's maximal inequality, retaining the original all-time dominance lemmas. Removed 141 redundant direct public imports with transitive public reachability preserved. Replaced expensive nonlinear tactics in Gaussian kernel bounds with explicit monotone inequalities and smaller linear certificates.
  • Passed locally: the generated index check, warning-free MathFin aggregate build, the same declaration linter used by CI (479 modules, 8,267 declarations), scoped text-style lint, static quality, card declaration validation, compiled axiom and option audits, compiler-message audit, and the build-time and memory checks. The optimized run used the added-file watchdog and every new module had a recorded build time within the 600-second budget. CI will validate the PR against current main.

Clean compile profile

Measurement Baseline Optimized
Complete 479-module wall time 224.55 s 221.02 s
Total user and system CPU time 868.51 s 840.90 s
Sum of reported MathFin module times 871.63 s 861.63 s
Peak process RSS 1.68 GiB 1.69 GiB
Doob bound and envelope module 3.7 s 2.1 s
Gaussian kernel module in Lake 6.2 s 7.1 s
Gaussian kernel tactic execution, direct Lean profile 4.06 s 2.81 s

The clean runs measured a modest 1.6% wall-clock reduction. Individual timings varied, including the Gaussian kernel Lake job. The optimization removes duplicated proof code and preserves the compiled types of all 5,710 retained public declarations in the comparison. The only removed public declarations were seven results from the duplicated Doob development. Final attribution comments and reviewed card and citation corrections were checked in warning-free incremental rebuilds. The documentation corrections affect comments. The final integration repair restores Mathlib’s scoped matrix operator norm, with all 5,710 compiled public declaration types still matching the optimized build.

Both builds discarded only MathFin outputs and reused the same pinned dependency artifacts, four allowed CPU cores, LEAN_NUM_THREADS=4, LC_ALL=C, and lake --no-cache --no-ansi --wfail build LeanPool.MathFin.Imports. Timings are wall clock measured with GNU time -v. Per-file times come from Lake compile jobs. The existing build-limit checker was applied to the resulting logs.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict.

No blocking defect was established in the changes since the previous review; the full import is not approved by this review.RetriggerView in Greptile

[High impact] No blocking defect was established in the changes since the previous review; the full import is not approved by this review.

Summary

Imports Formal MathFin’s market, contract, pricing, and risk library. The latest changes:

  • Markets price dated contracts through a positive numéraire and pricing measures.
  • A finite-grid market links no-arbitrage to the existence of a pricing measure.
  • Binomial pricing measures give terminal-spot contracts their tree price.
  • A normalized call curve is realized by a market at maturity one.
  • The Vasicek market prices a maturity payment with its stochastic bank account.
  • Finite-state coherent risk is represented by expected losses over probability vectors.
  • Reusable probability modules add tools for Gaussian laws, martingales, and stochastic integration.
  • The library adds formal results for portfolio choice, insurance, and market models.
  • The new MathFin entry point exposes shared results and a catalog of finance modules.

No actionable new defect was established in these changes. No previous review threads were supplied, so earlier findings could not be classified.

This is not a complete approval of the import. The omitted full-PR diff exceeded the available review output and was not read completely. Full-library novelty, source fidelity, license and provenance, completeness, and maintainability remain unverified. External release and textbook claims were not independently checked. Reported build measurements were not rerun.

Reviews (4) · Last reviewed commit: "Correct remaining MathFin references and..." · Reviewed by Greptile

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve 27ac9443b9aa93a3aaff2b08410636deccb6c428.

Faithfulness

  • Market.NoArbitrage applies to the sampled deflated single asset. The finite-state converse quantifies over a finite trading grid and requires a finite reference measure charging every state. The separate general-state theorem takes ConditionalOnePeriodFTAP as an explicit hypothesis. FTAP statements
  • The binomial result assumes no-arbitrage parameters, positive spot and time step, T / h = N, and factorization of the payoff through terminal spot. The proof compares trimmed measures on the flip filtration before transporting the terminal expectation. Binomial pricing
  • The call-curve theorem constructs a probability law and a unit-numéraire market with asset max ω 0, price one for delivery, and call prices for every positive strike. That proves the fixed-maturity realization in the proof of Roper’s Theorem 2.1(a)(ii). The Vasicek theorem uses measurable Brownian coordinates and positive mean reversion, and prices a terminal unit payment under the reference probability measure. Call realization · Vasicek pricing
  • The coherent-risk theorem derives the least upper bound from separating the rejection of a cash-shifted loss from the acceptance cone. Its representing probabilities are constrained by every acceptable loss. The worst-case loss instance witnesses the coherence hypothesis on nonempty finite states. Dual representation

Novelty and value

Tau Ceti’s simple-strategy result goes from a martingale measure to absence of arbitrage under its trading-gain integrability assumptions. MathFin contributes the finite-state separating-hyperplane converse and a typed market interface that also connects prescribed payoffs, horizon-restricted equivalence, several model families, and risk. Tau Ceti’s Black–Scholes results overlap on classical Gaussian prices and Greeks. The MathFin contract layer also prices those instruments through the same interface as the binomial, model-free and short-rate models. Searches of the pinned Mathlib, Tau Ceti and Lean Pool sources yielded no existing declaration that subsumes the five card results. Tau Ceti arbitrage · Tau Ceti closed forms

Sources and scope

The June project shortlist predates the November release’s unifying market changes. The pinned public release is Apache-2.0 and discloses interactive assistance, agent proofs and manually authored work. The imported sources retain their copyright and author notices, with explicit port notices. The four uncertain fair-use source files and their dependent branches were excluded. Existing KLS, Mathlib and Tau Ceti modules supply the dependencies identified in the PR. The port’s small local-martingale adapter credits its Apache-2.0 source. The 473-file conservative upstream manifest reproduces the reported 104,473 lines. Pinned release · Provenance record · FTAP scope

Engineering and validation

I compared the changed Lean files against the pinned upstream paths by module family and inspected the semantic changes and representative contract, probability, model and risk implementations. The non-import source is unchanged for 424 modules after stripping comments, options and diagnostics. The substantive port changes checked include the finite Cauchy–Schwarz assembly for quadratic variation, the event-level conversion of the extended Doob bound, and the Tau Ceti filtration pullbacks. The optimized build preserves the types of the 5,710 retained public declarations checked against baseline. Seven overlapping Doob declarations were removed. All 479 modules cleared the declaration linter and compiled trust checks locally. The largest optimized build job took 7.1 seconds on the VM, and the baseline and optimized full build measurements are in the PR description.

GitHub Lean CI passed the full-pool build, generated indexes, declaration and text-style lint, and repository quality checks. The content-separation check passed. The other protected checks were skipped by their normal scope decisions. Greptile’s advisory report covered part of the diff and raised no specific defect. Lean CI · Content separation · Greptile

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review passed at 27ac9443b9aa93a3aaff2b08410636deccb6c428, with two mathematical documentation corrections.

  • Risk/Coherent.lean says almost-sure monotonicity makes risk a function of the loss’s law. It implies equal risk for losses equal almost surely. A coherent risk measure on two equally likely states can evaluate loss at a fixed state and distinguish two losses with the same law. Please describe almost-sure equality here and leave law invariance to Risk/LawInvariance.lean. Coherence documentation
  • Risk/AcceptanceSet.lean reverses the order implication. Pointwise order implies almost-sure order for any finite reference measure. On this finite state space the reverse uses full support. The proof already uses the correct implication. The card can say “acceptable loss” to match representingSet and the project’s sign convention. Acceptance-set documentation

The five headline statements match their stated scopes. I reproduced the pinned upstream file count and confirmed the import notices on the retained derivatives. Required Lean and separation checks passed. Lean Action CI

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

lake build wall time (changed modules): 301.13 s (= 5.02 min) — user 976.93 s, sys 138.17 s.

This build covers the changed modules and their dependency cones on top of the restored cache. The serial per-file sums below are useful for ranking slow files, not as a build budget.

Total heartbeats: 10,289,914 maxHeartbeats units across 478 valid files (106,202 added LOC).

Sum of lean --profile: 748236.2 ms (= 748.24 s) across 479 valid files. Import-excluded time: 453241.2 ms (= 453.24 s).

Count-heartbeats wall-clock total: 1632.63 s. Repeated import cost inside lean --profile: 294995.0 ms (= 295.00 s).

Heartbeat values sum disjoint root command traces with trace.profiler.useHeartbeats and synchronous elaboration, converted from raw allocations to maxHeartbeats units by dividing by 1000. They include command elaboration and kernel checking, exclude imports, and include profiler overhead; they are not comparable to the deprecated linter's totals. Per-file wall clocks are measured under parallel load and are noisier than heartbeats.

LOC counts added lines in the profiled Lean files from this PR diff.

File LOC Heartbeats (maxHB) Count wall (s) lean --profile (s) Without import (s) Import (s) Commands Errors
LeanPool/MathFin/Probability/Gaussian/FeynmanKacHeatEquation.lean 1,347 414,134 30.95 14.70 14.07 0.63 98 0
LeanPool/MathFin/Models/LocalVol/ForwardSmile.lean 1,103 211,410 24.42 10.47 9.82 0.65 81 0
LeanPool/MathFin/Pricing/FTAP/FTAPOnePeriodVector.lean 695 163,906 11.11 4.41 3.79 0.62 106 0
LeanPool/MathFin/Probability/Brownian/Wiener/WienerIntegralFiltration.lean 411 155,334 11.41 4.42 3.75 0.68 46 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoProcessQV.lean 337 151,992 10.66 3.58 2.91 0.67 14 0
LeanPool/MathFin/Probability/Brownian/Girsanov/GirsanovSimpleDoleansMoments.lean 372 136,543 6.70 3.23 2.58 0.65 110 0
LeanPool/MathFin/Probability/Brownian/WeightedQuadraticVariation.lean 636 131,963 12.10 5.05 4.36 0.69 69 0
LeanPool/MathFin/Models/BlackScholes/PDEFromFeynmanKac.lean 362 119,127 9.82 3.55 2.89 0.66 22 0
LeanPool/MathFin/Probability/Brownian/Girsanov/SimpleDoleansExponential.lean 580 113,634 8.50 4.03 3.35 0.68 53 0
LeanPool/MathFin/Probability/Brownian/Wiener/WienerIntegralL2.lean 448 110,505 8.97 3.62 2.96 0.66 59 0
LeanPool/MathFin/Risk/DiscreteVaR.lean 411 108,008 12.22 4.87 4.28 0.59 64 0
LeanPool/MathFin/Models/BlackScholes/PDE.lean 565 104,641 6.98 4.10 3.48 0.63 50 0
LeanPool/MathFin/Risk/Elicitability.lean 485 99,022 7.26 3.84 3.24 0.60 66 0
LeanPool/MathFin/Markets/Microstructure/GlostenMilgromModel.lean 184 97,234 11.66 4.30 3.69 0.60 30 0
LeanPool/MathFin/Probability/Brownian/SDE/SDEExistence.lean 655 96,692 11.07 5.24 4.57 0.68 69 0
LeanPool/MathFin/Probability/Brownian/Wiener/WienerIntegralGaussian.lean 309 95,333 7.26 2.90 2.24 0.66 48 0
LeanPool/MathFin/Models/Binomial/CRRCharFun.lean 594 91,098 7.08 4.10 3.41 0.69 56 0
LeanPool/MathFin/Pricing/FTAP/DensityPasting.lean 349 87,002 5.06 1.85 1.21 0.64 192 0
LeanPool/MathFin/Models/BlackScholes/MonteCarloPricer.lean 1,240 86,360 11.45 4.61 3.96 0.65 167 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessMartingale.lean 401 86,120 6.72 2.88 2.23 0.65 24 0
LeanPool/MathFin/Probability/Dependence/HoeffdingCovariance.lean 458 85,158 7.69 3.22 2.58 0.64 88 0
LeanPool/MathFin/Probability/Brownian/Ito/DriftProcessModification.lean 527 84,885 9.05 3.97 3.30 0.68 34 0
LeanPool/MathFin/Probability/Dependence/CopulaFamilies.lean 483 84,797 9.45 4.27 3.65 0.62 54 0
LeanPool/MathFin/Probability/Gaussian/WeakForwardUniqueness.lean 540 84,024 6.69 3.13 2.53 0.60 56 0
LeanPool/MathFin/Risk/Expectile.lean 311 82,145 7.68 3.45 2.85 0.60 25 0
LeanPool/MathFin/Probability/Brownian/Wiener/WienerIntegralExpMoment.lean 217 80,156 4.78 2.28 1.62 0.65 49 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessIsometry.lean 376 78,766 6.52 2.55 1.88 0.68 88 0
LeanPool/MathFin/Risk/VaRSuperadditivity.lean 434 77,551 8.56 4.06 3.43 0.62 37 0
LeanPool/MathFin/Probability/Jumps/PoissonThinning.lean 421 77,169 6.41 2.17 1.55 0.61 90 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralL2Dense.lean 358 74,519 6.02 2.34 1.67 0.67 59 0
LeanPool/MathFin/Probability/Laws/Estimation.lean 574 72,477 10.01 3.99 3.37 0.63 32 0
LeanPool/MathFin/Probability/Gaussian/BivariateNormalCDF.lean 627 70,600 6.82 3.47 2.86 0.62 98 0
LeanPool/MathFin/Probability/Brownian/Girsanov/GirsanovSimpleTheta.lean 445 69,724 6.15 2.43 1.77 0.66 82 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionIdentifiability.lean 362 69,315 6.80 3.24 2.51 0.73 44 0
LeanPool/MathFin/Probability/Laws/GeneralizedPareto.lean 534 68,573 7.41 4.12 3.54 0.58 50 0
LeanPool/MathFin/Models/ModelFree/SVI/TailCondition.lean 323 68,078 8.61 4.10 3.36 0.74 34 0
LeanPool/MathFin/Models/StochVol/Heston.lean 728 67,260 8.38 4.16 3.63 0.53 50 0
LeanPool/MathFin/Models/Binomial/MultiPeriodFTAP.lean 605 66,116 7.42 3.06 2.38 0.69 98 0
LeanPool/MathFin/Models/Rates/VasicekZeroMeanReversionLimit.lean 378 64,632 6.09 2.95 2.28 0.67 46 0
LeanPool/MathFin/Models/Rates/HullWhiteCalibration.lean 719 62,824 6.92 3.48 2.82 0.66 64 0
LeanPool/MathFin/Probability/Brownian/Wiener/WienerIntegralIto.lean 227 60,711 5.21 1.91 1.23 0.68 45 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionMixing.lean 429 57,782 5.96 2.30 1.59 0.71 60 0
LeanPool/MathFin/Models/Rates/VasicekBondPriceAt.lean 237 57,642 6.33 2.48 1.79 0.69 22 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralHorizonDense.lean 703 56,994 5.69 2.64 1.96 0.68 60 0
LeanPool/MathFin/Models/BlackScholes/DigitalGreeks.lean 332 56,248 4.46 2.49 1.85 0.63 30 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralCLM.lean 305 55,728 6.81 2.55 1.85 0.69 44 0
LeanPool/MathFin/Models/Jumps/MertonGreeks.lean 484 54,315 7.13 3.12 2.40 0.72 37 0
LeanPool/MathFin/Probability/Brownian/SDE/OUSpectral.lean 388 53,693 8.18 2.97 2.44 0.53 33 0
LeanPool/MathFin/Risk/ExpectedShortfall.lean 489 53,675 6.72 3.17 2.57 0.60 34 0
LeanPool/MathFin/Probability/Dependence/MarshallOlkin.lean 429 53,103 4.96 2.39 1.77 0.62 85 0
LeanPool/MathFin/Models/Rates/CMSContract.lean 489 52,478 5.64 2.35 1.69 0.65 147 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionProcess.lean 395 50,980 5.01 2.47 1.77 0.70 66 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralL2.lean 530 50,645 6.70 2.70 1.98 0.72 69 0
LeanPool/MathFin/Models/BlackScholes/American/JuZhongZeroRateLimit.lean 470 50,281 5.30 3.09 2.33 0.76 66 0
LeanPool/MathFin/Models/Binomial/Binomial.lean 225 49,559 6.40 2.75 2.08 0.67 25 0
LeanPool/MathFin/Risk/Credit/BernoulliMixture.lean 290 48,289 4.58 1.93 1.30 0.63 64 0
LeanPool/MathFin/Models/Rates/CMS.lean 518 46,390 7.11 3.14 2.55 0.59 46 0
LeanPool/MathFin/Models/Rates/Caplet.lean 326 46,301 4.32 2.17 1.53 0.64 67 0
LeanPool/MathFin/Probability/Brownian/Ito/DriftProcessPredictable.lean 462 46,194 6.86 3.24 2.57 0.68 32 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessContinuousModification.lean 437 45,833 6.55 2.78 2.10 0.67 57 0
LeanPool/MathFin/Models/Rates/VasicekMarket.lean 221 45,781 4.17 1.83 1.16 0.67 55 0
LeanPool/MathFin/Probability/Laws/StudentT.lean 301 44,700 5.19 2.57 1.99 0.58 57 0
LeanPool/MathFin/Probability/Martingales/LpContinuousMartingaleConvergence.lean 608 44,679 5.11 2.18 1.61 0.57 56 0
LeanPool/MathFin/Probability/Brownian/SDE/SDEUniqueness.lean 365 43,080 5.20 2.37 1.77 0.60 20 0
LeanPool/MathFin/Markets/Microstructure/GlostenMilgrom.lean 496 42,050 7.03 2.85 2.25 0.60 41 0
LeanPool/MathFin/Models/Rates/VasicekBondPrice.lean 336 41,994 4.56 2.36 1.69 0.67 43 0
LeanPool/MathFin/Models/BlackScholes/American/AmericanQDPlusLimits.lean 449 41,717 6.74 3.18 2.51 0.67 42 0
LeanPool/MathFin/Risk/RiskClosedForms.lean 393 41,255 5.55 3.10 2.49 0.61 44 0
LeanPool/MathFin/Models/Rates/GSRBondPriceAt.lean 312 40,980 4.59 2.02 1.37 0.65 37 0
LeanPool/MathFin/Choice/Portfolio/Equicorrelation.lean 199 40,844 5.49 2.03 1.41 0.62 35 0
LeanPool/MathFin/Pricing/FTAP/FTAPDiscrete.lean 391 39,959 4.13 1.83 1.22 0.61 84 0
LeanPool/MathFin/Models/ModelFree/SVI/ParameterPolynomials.lean 166 39,552 6.12 2.12 1.50 0.61 24 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessGeneral.lean 237 39,123 5.14 2.26 1.60 0.66 29 0
LeanPool/MathFin/Probability/Brownian/BrownianMartingale.lean 417 38,498 4.70 2.10 1.45 0.65 38 0
LeanPool/MathFin/Models/StochVol/LSVLeverage.lean 521 37,786 5.69 3.00 2.30 0.70 45 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionDensity.lean 374 37,235 4.19 2.16 1.39 0.77 37 0
LeanPool/MathFin/Probability/Brownian/Girsanov/PredictableDensityGeneral.lean 274 37,070 4.45 1.78 1.11 0.67 33 0
LeanPool/MathFin/Models/Binomial/PathMeasure.lean 540 36,956 4.75 2.49 1.82 0.67 67 0
LeanPool/MathFin/Models/Bachelier/BachelierGreeks.lean 206 36,673 3.77 1.84 1.18 0.66 18 0
LeanPool/MathFin/Models/Binomial/CRRDiscreteIto.lean 225 36,194 4.10 1.87 1.16 0.71 35 0
LeanPool/MathFin/Probability/Brownian/ExpMartingaleQBrownian.lean 474 36,111 4.36 2.42 1.78 0.64 46 0
LeanPool/MathFin/Models/ModelFree/SVI/QuotientProduct.lean 132 36,071 4.66 1.82 1.21 0.61 18 0
LeanPool/MathFin/Probability/Dependence/CorrelationFallacies.lean 253 35,708 4.60 1.85 1.21 0.64 58 0
LeanPool/MathFin/Models/ModelFree/RoperConverse.lean 362 35,588 6.05 2.76 2.04 0.73 27 0
LeanPool/MathFin/Models/BlackScholes/AsianGeometricN.lean 250 34,871 4.95 2.00 1.32 0.69 20 0
LeanPool/MathFin/Models/StochVol/SABRImpliedVol.lean 311 34,841 5.86 2.62 1.88 0.74 23 0
LeanPool/MathFin/Probability/Analysis/LpMulIsometry.lean 280 33,960 4.42 1.80 1.20 0.60 53 0
LeanPool/MathFin/Choice/Portfolio/ConvexQPKKT.lean 291 33,908 4.70 2.00 1.48 0.52 28 0
LeanPool/MathFin/Models/BlackScholes/MargrabeGrounding.lean 409 33,015 5.37 2.28 1.63 0.65 14 0
LeanPool/MathFin/Probability/Jumps/PoissonCounting.lean 286 32,163 4.37 1.73 1.11 0.61 28 0
LeanPool/MathFin/Models/Rates/GSRPiecewiseVol.lean 304 32,051 3.57 1.85 1.18 0.67 39 0
LeanPool/MathFin/Models/ModelFree/SVI/CriticalPoints.lean 132 31,916 4.70 1.72 1.15 0.57 13 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoProcessPredictable.lean 368 30,072 5.31 2.26 1.57 0.68 25 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessL2Infinite.lean 260 29,453 3.92 1.68 1.02 0.66 27 0
LeanPool/MathFin/Models/ModelFree/SVI/QuadraticRay.lean 130 29,198 4.79 1.92 1.49 0.43 11 0
LeanPool/MathFin/Risk/EntropicRisk.lean 219 29,128 4.70 1.78 1.17 0.60 46 0
LeanPool/MathFin/Models/Rates/CIRRiccati.lean 163 28,840 3.98 1.58 1.05 0.53 25 0
LeanPool/MathFin/Models/ModelFree/SVI/Polynomial.lean 83 28,603 4.91 1.59 1.14 0.45 17 0
LeanPool/MathFin/Models/Binomial/CRRConvergence.lean 430 28,463 4.21 1.87 1.30 0.57 49 0
LeanPool/MathFin/Models/Rates/Jamshidian.lean 467 28,205 3.55 1.80 1.14 0.65 40 0
LeanPool/MathFin/Probability/Brownian/BrownianExpMoment.lean 158 28,016 3.43 1.48 0.78 0.69 25 0
LeanPool/MathFin/Models/BlackScholes/DividendsGreeks.lean 277 27,782 3.52 1.91 1.26 0.65 29 0
LeanPool/MathFin/Probability/Dependence/GaussianCopula.lean 307 27,595 4.92 2.50 1.87 0.62 42 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralCovariation.lean 117 27,419 3.30 1.64 0.97 0.67 15 0
LeanPool/MathFin/Models/Rates/HullWhiteBondPriceAt.lean 164 27,350 3.05 1.50 0.82 0.68 26 0
LeanPool/MathFin/Models/BlackScholes/StulzTwoAssetRainbow.lean 372 27,193 4.16 1.82 1.17 0.65 54 0
LeanPool/MathFin/Models/Binomial/DriftLimit.lean 216 27,173 3.31 1.58 1.00 0.58 14 0
LeanPool/MathFin/Probability/Gaussian/GaussianMoments.lean 227 27,077 3.93 1.60 0.97 0.62 28 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessL2Inf.lean 184 26,903 4.15 1.67 1.00 0.67 33 0
LeanPool/MathFin/Risk/CoherentAxioms.lean 238 26,502 3.31 1.62 1.01 0.61 33 0
LeanPool/MathFin/Models/BlackScholes/HigherGreeks.lean 218 26,357 3.07 1.60 0.96 0.64 20 0
LeanPool/MathFin/Probability/Dependence/Copula.lean 341 25,939 4.21 2.38 1.77 0.61 53 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIsometryAdapted.lean 448 25,906 4.35 1.89 1.25 0.64 32 0
LeanPool/MathFin/Probability/Jumps/PoissonCompensatedBilinear.lean 482 25,871 4.01 2.01 1.39 0.62 23 0
LeanPool/MathFin/Models/ModelFree/SVI/ExtendedFormula.lean 152 25,269 4.00 1.93 1.18 0.75 18 0
LeanPool/MathFin/Models/Jumps/MertonStrikeGreeks.lean 198 25,024 3.65 1.57 0.87 0.70 17 0
LeanPool/MathFin/Risk/SACCRExposure.lean 319 24,802 4.50 2.11 1.54 0.57 35 0
LeanPool/MathFin/Markets/Microstructure/MarketMakingRiccati.lean 206 24,615 3.69 1.57 1.02 0.55 21 0
LeanPool/MathFin/Models/BlackScholes/Call.lean 328 24,471 3.64 1.59 0.96 0.63 24 0
LeanPool/MathFin/Probability/Brownian/QuadraticVariationL2.lean 302 24,444 3.90 1.94 1.29 0.65 32 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionMerton.lean 275 24,363 4.24 1.99 1.23 0.76 26 0
LeanPool/MathFin/Models/Credit/DefaultTimeMesh.lean 314 24,120 3.91 1.72 1.08 0.64 44 0
LeanPool/MathFin/Models/ModelFree/SVI/Admissibility.lean 128 24,003 4.53 1.40 0.95 0.44 11 0
LeanPool/MathFin/Probability/Laws/ErlangSum.lean 281 23,762 3.12 1.59 1.00 0.59 23 0
LeanPool/MathFin/Risk/Credit/TrancheLoss.lean 215 23,630 4.75 1.87 1.25 0.61 17 0
LeanPool/MathFin/Models/ModelFree/SVI/SignVariations.lean 173 23,481 3.95 1.73 1.11 0.62 16 0
LeanPool/MathFin/Risk/JointElicitability.lean 278 23,434 3.66 1.78 1.16 0.62 20 0
LeanPool/MathFin/Risk/GaussianRiskMarkowitz.lean 328 23,221 4.32 1.92 1.32 0.60 42 0
LeanPool/MathFin/Probability/Brownian/Girsanov/WienerIntegralGirsanov.lean 139 23,071 3.27 1.31 0.64 0.66 14 0
LeanPool/MathFin/Probability/Brownian/Girsanov/GirsanovConstantTheta.lean 299 23,066 4.82 1.78 1.11 0.68 13 0
LeanPool/MathFin/Models/Credit/Cox.lean 657 22,824 4.66 2.36 1.72 0.64 68 0
LeanPool/MathFin/Models/Jumps/MertonJumpDiffusion.lean 357 22,784 3.52 1.70 1.05 0.65 49 0
LeanPool/MathFin/Models/ModelFree/SVI/Reduction.lean 179 22,773 3.67 1.73 1.30 0.43 27 0
LeanPool/MathFin/Models/BlackScholes/StrikeGreeks.lean 209 22,541 2.93 1.42 0.79 0.63 17 0
LeanPool/MathFin/Models/ModelFree/SVI/RealIrreducibles.lean 73 22,358 3.84 1.50 0.85 0.65 9 0
LeanPool/MathFin/Choice/Performance/Ratios.lean 204 22,307 3.01 1.32 0.77 0.55 27 0
LeanPool/MathFin/Risk/Credit/CreditMetrics.lean 305 22,241 3.04 1.53 0.90 0.63 47 0
LeanPool/MathFin/Models/ModelFree/SVI/SigmaZeroDerivatives.lean 192 22,184 4.23 2.17 1.54 0.63 27 0
LeanPool/MathFin/Probability/Discrete/MartingaleTransform.lean 193 21,966 3.83 1.32 0.75 0.57 44 0
LeanPool/MathFin/Pricing/FTAP/NoArbitrageLocal.lean 291 21,942 2.95 1.36 0.78 0.58 82 0
LeanPool/MathFin/Models/Credit/CVA.lean 262 21,768 3.47 1.55 0.94 0.61 21 0
LeanPool/MathFin/Models/ModelFree/CallSpreadDigital.lean 264 21,610 4.26 1.96 1.34 0.62 14 0
LeanPool/MathFin/Models/BlackScholes/NewtonConvergence.lean 276 21,337 3.82 1.84 1.13 0.71 11 0
LeanPool/MathFin/Probability/Brownian/Ito/StochasticFubini.lean 123 21,216 3.24 1.26 0.65 0.60 14 0
LeanPool/MathFin/Insurance/StandardDeviationPrinciple.lean 186 21,207 3.82 1.63 0.97 0.66 34 0
LeanPool/MathFin/Models/Rates/TimingAdjustment.lean 317 20,737 3.31 1.68 1.01 0.67 24 0
LeanPool/MathFin/Markets/Microstructure/MatrixMarketMakingRiccati.lean 277 20,684 3.80 1.61 0.99 0.62 18 0
LeanPool/MathFin/Probability/Gaussian/StandardNormal.lean 230 20,299 2.98 1.36 0.75 0.61 38 0
LeanPool/MathFin/Probability/Jumps/PoissonRandomMeasure.lean 292 20,178 3.83 1.93 1.34 0.59 40 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionOptionPrices.lean 322 20,071 4.11 1.83 1.12 0.71 24 0
LeanPool/MathFin/Models/Rates/VasicekMarketPriceOfRisk.lean 256 20,035 3.91 1.73 1.07 0.66 22 0
LeanPool/MathFin/Probability/Brownian/BrownianQuadraticVariation.lean 211 19,946 3.19 1.41 0.76 0.65 24 0
LeanPool/MathFin/Models/Rates/Bootstrapping.lean 712 19,867 3.43 2.06 1.53 0.53 59 0
LeanPool/MathFin/Choice/Performance/Kelly.lean 193 19,862 2.77 1.32 0.72 0.60 22 0
LeanPool/MathFin/Choice/Portfolio/SharpeFOCDerivation.lean 250 19,779 2.56 1.40 0.85 0.55 22 0
LeanPool/MathFin/Models/Binomial/PathReflection.lean 592 19,648 3.50 1.32 0.96 0.36 60 0
LeanPool/MathFin/Models/BlackScholes/PutGreeks.lean 172 19,358 2.43 1.38 0.77 0.61 20 0
LeanPool/MathFin/Pricing/FTAP/FTAPComplete.lean 130 19,281 2.58 1.14 0.50 0.64 29 0
LeanPool/MathFin/Risk/RockafellarUryasev.lean 231 19,229 3.60 1.45 0.83 0.62 16 0
LeanPool/MathFin/Models/ModelFree/SVI/ProductSignature.lean 100 18,625 2.90 1.25 0.66 0.60 14 0
LeanPool/MathFin/Risk/CompoundPoissonCVaR.lean 184 18,577 3.71 1.47 0.86 0.61 25 0
LeanPool/MathFin/Models/Rates/VasicekYieldNelsonSiegel.lean 165 18,551 3.30 1.62 0.95 0.67 15 0
LeanPool/MathFin/Pricing/ContinuousMarket.lean 298 18,505 2.71 1.25 0.65 0.60 83 0
LeanPool/MathFin/Pricing/Duality/ConvexDuality.lean 163 18,441 3.15 1.30 0.78 0.53 11 0
LeanPool/MathFin/Models/Binomial/MertonAmericanCallTree.lean 317 18,405 2.69 1.58 0.86 0.72 22 0
LeanPool/MathFin/Probability/Laws/Esscher.lean 203 18,256 2.99 1.23 0.62 0.61 25 0
LeanPool/MathFin/Models/Binomial/Model.lean 371 17,652 3.10 1.46 1.00 0.46 68 0
LeanPool/MathFin/Models/BlackScholes/StrikeConvexity.lean 196 17,638 3.38 1.42 0.73 0.69 17 0
LeanPool/MathFin/Probability/Gaussian/GaussianPartialMoments.lean 161 17,480 2.42 1.20 0.59 0.61 18 0
LeanPool/MathFin/Models/ModelFree/PriceBounds.lean 275 17,357 2.78 1.55 0.88 0.67 27 0
LeanPool/MathFin/Models/ModelFree/VarianceSwap.lean 165 17,325 2.80 1.20 0.57 0.63 16 0
LeanPool/MathFin/Choice/Portfolio/MarkowitzLagrangian.lean 422 17,240 3.11 1.63 1.00 0.63 41 0
LeanPool/MathFin/Pricing/Numeraire.lean 234 17,109 2.72 1.25 0.66 0.59 28 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessLocalMartingaleInfinite.lean 234 16,777 3.20 1.49 0.83 0.65 25 0
LeanPool/MathFin/Risk/Credit/VasicekIRB.lean 228 16,626 2.86 1.23 0.62 0.60 38 0
LeanPool/MathFin/Models/Forwards/Black76Greeks.lean 169 16,568 2.78 1.35 0.69 0.66 21 0
LeanPool/MathFin/Markets/DeFi/Aave.lean 263 16,563 3.72 1.57 0.93 0.64 26 0
LeanPool/MathFin/Models/Rates/Inflation.lean 351 16,506 3.84 1.59 0.91 0.68 23 0
LeanPool/MathFin/Risk/EquicorrelationConcentration.lean 136 16,476 2.56 0.96 0.54 0.42 37 0
LeanPool/MathFin/Risk/UtilityDerivation.lean 223 16,439 3.34 1.52 0.93 0.59 18 0
LeanPool/MathFin/Models/BlackScholes/QuantoGrounding.lean 99 16,284 2.43 1.10 0.45 0.65 14 0
LeanPool/MathFin/Probability/Discrete/MarkovPathMeasure.lean 223 16,252 2.61 1.13 0.55 0.58 41 0
LeanPool/MathFin/Probability/Discrete/MartingaleDominator.lean 182 16,250 2.51 1.21 0.64 0.58 58 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessLocalMartingaleGeneral.lean 287 16,168 3.10 1.51 0.86 0.65 44 0
LeanPool/MathFin/Models/Rates/VasicekSDEGaussian.lean 174 16,045 2.87 1.32 0.68 0.64 25 0
LeanPool/MathFin/Models/ModelFree/SVI/BlackSmile.lean 176 15,961 3.64 1.72 1.06 0.66 23 0
LeanPool/MathFin/Models/BlackScholes/AsianInequality.lean 189 15,954 2.55 1.41 0.73 0.68 23 0
LeanPool/MathFin/Choice/Portfolio/SingleIndexModel.lean 203 15,729 3.11 1.40 0.79 0.61 24 0
LeanPool/MathFin/Probability/Brownian/Wiener/WienerIntegralIndicator.lean 68 15,669 2.50 1.07 0.41 0.66 11 0
LeanPool/MathFin/Contracts/Adapted.lean 265 15,362 2.88 1.30 0.70 0.60 38 0
LeanPool/MathFin/Probability/Jumps/PoissonMaxima.lean 205 15,291 3.38 1.39 0.79 0.60 15 0
LeanPool/MathFin/Choice/Performance/BetSizeSigmoid.lean 135 15,245 3.49 1.41 0.85 0.56 12 0
LeanPool/MathFin/Pricing/Value.lean 366 15,147 2.80 1.30 0.69 0.61 117 0
LeanPool/MathFin/Models/Binomial/SnellEnvelope.lean 453 14,967 2.73 1.35 0.91 0.44 41 0
LeanPool/MathFin/Models/BlackScholes/BasketMomentMatching.lean 287 14,949 3.07 1.48 0.80 0.68 30 0
LeanPool/MathFin/Probability/Support/LocalMartingale.lean 105 14,780 2.76 1.15 0.55 0.59 47 0
LeanPool/MathFin/Models/ModelFree/SVI/QuadraticRootSignature.lean 94 14,768 3.56 1.20 0.61 0.59 12 0
LeanPool/MathFin/Pricing/Market.lean 381 14,659 3.43 1.51 0.92 0.59 61 0
LeanPool/MathFin/Risk/ValueAtRisk.lean 234 14,547 3.40 1.51 0.91 0.61 38 0
LeanPool/MathFin/Choice/Performance/RatiosExtended.lean 230 14,470 2.42 1.26 0.65 0.61 36 0
LeanPool/MathFin/Models/ModelFree/SVI/HermiteIdentity.lean 117 14,091 2.78 1.36 0.70 0.65 13 0
LeanPool/MathFin/Probability/Analysis/IndepFreezing.lean 266 13,961 3.31 1.39 0.79 0.60 19 0
LeanPool/MathFin/Models/BlackScholes/Put.lean 221 13,798 3.24 1.30 0.68 0.62 19 0
LeanPool/MathFin/Probability/Martingales/UnifIntegrableL2.lean 203 13,540 2.86 1.27 0.70 0.58 12 0
LeanPool/MathFin/Models/Credit/DefaultTime.lean 329 13,476 2.80 1.58 0.93 0.64 59 0
LeanPool/MathFin/Models/StochVol/HestonSmallVolOfVol.lean 270 13,435 3.43 1.63 0.96 0.67 21 0
LeanPool/MathFin/Models/ModelFree/SVI/MatrixSignature.lean 144 13,435 3.12 1.44 0.84 0.59 17 0
LeanPool/MathFin/Probability/Laws/Quantile.lean 284 13,384 3.51 1.48 0.90 0.58 39 0
LeanPool/MathFin/Probability/Discrete/SnellEnvelope.lean 238 13,379 2.77 1.45 0.88 0.57 31 0
LeanPool/MathFin/Probability/Laws/ExtremeValue.lean 260 13,368 2.80 1.45 0.84 0.61 29 0
LeanPool/MathFin/Models/BlackScholes/American/Stopping/PlanePartial.lean 77 13,342 3.38 1.11 0.54 0.57 11 0
LeanPool/MathFin/Models/Rates/AffineTermStructurePDE.lean 208 13,098 3.44 1.61 0.97 0.64 17 0
LeanPool/MathFin/Models/Rates/OUHermiteVasicek.lean 176 13,063 3.33 1.59 0.91 0.69 16 0
LeanPool/MathFin/Probability/Gaussian/GaussianCDFDeriv.lean 133 12,994 3.03 1.15 0.54 0.61 10 0
LeanPool/MathFin/Risk/Credit/OneFactorCopula.lean 178 12,885 2.56 1.28 0.65 0.62 24 0
LeanPool/MathFin/Models/ModelFree/SVI/SigmaZeroConvexity.lean 221 12,745 3.30 1.71 0.98 0.72 20 0
LeanPool/MathFin/Choice/Performance/FracDiffWeights.lean 205 12,617 2.91 1.40 0.73 0.66 24 0
LeanPool/MathFin/Models/ModelFree/SVI/ConvexKink.lean 98 12,577 2.73 1.19 0.51 0.68 13 0
LeanPool/MathFin/Probability/Gaussian/BivariateGaussian.lean 205 12,376 3.08 1.22 0.61 0.61 14 0
LeanPool/MathFin/Probability/Brownian/UnifPart.lean 130 12,372 2.83 1.03 0.56 0.47 33 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionExponent.lean 213 12,310 2.89 1.42 0.65 0.77 25 0
LeanPool/MathFin/Probability/Dependence/Sklar.lean 225 12,179 2.79 1.15 0.54 0.61 67 0
LeanPool/MathFin/Risk/AcceptanceSet.lean 154 11,980 2.61 1.09 0.52 0.57 46 0
LeanPool/MathFin/Choice/Portfolio/PosSemidefCauchySchwarz.lean 165 11,933 2.91 1.09 0.55 0.54 10 0
LeanPool/MathFin/Probability/Jumps/PoissonCompensatedIsometryAdapted.lean 263 11,792 3.12 1.36 0.71 0.65 36 0
LeanPool/MathFin/Models/Binomial/Girsanov.lean 283 11,788 2.65 1.44 0.77 0.67 32 0
LeanPool/MathFin/Models/ModelFree/SVI/RealRootTrace.lean 92 11,782 2.97 1.04 0.51 0.53 12 0
LeanPool/MathFin/Probability/Jumps/PoissonCompensatedIntegralL2Dense.lean 202 11,662 3.50 1.19 0.60 0.59 10 0
LeanPool/MathFin/Models/ModelFree/MarketCallPrice.lean 118 11,514 2.60 1.27 0.51 0.75 16 0
LeanPool/MathFin/Models/ModelFree/SVI/SigmaZeroCertificate.lean 164 11,460 2.98 1.48 0.74 0.74 15 0
LeanPool/MathFin/Models/ModelFree/CallPriceFunction.lean 123 11,449 1.61 0.99 0.56 0.42 22 0
LeanPool/MathFin/Models/ModelFree/VarianceSwapEquipartition.lean 134 11,394 3.12 1.25 0.59 0.66 9 0
LeanPool/MathFin/Models/ModelFree/SVI/RealRootSignature.lean 68 11,277 2.95 1.06 0.46 0.59 10 0
LeanPool/MathFin/Choice/Portfolio/BlackLittermanND.lean 264 11,229 2.37 1.05 0.53 0.52 25 0
LeanPool/MathFin/Choice/Performance/DownsideMetrics.lean 211 11,206 2.85 1.15 0.62 0.53 23 0
LeanPool/MathFin/Models/Jumps/JumpImpliedVol.lean 183 11,205 2.34 1.32 0.60 0.72 17 0
LeanPool/MathFin/Probability/Martingales/BoundedLocalMartingale.lean 176 11,175 2.78 1.14 0.56 0.58 24 0
LeanPool/MathFin/Models/ModelFree/SVI/ClearedSignature.lean 85 11,043 2.67 1.20 0.59 0.61 13 0
LeanPool/MathFin/Choice/Portfolio/MarkowitzNAsset.lean 134 10,894 2.04 0.85 0.39 0.46 16 0
LeanPool/MathFin/Choice/Portfolio/RiskParityFOC.lean 329 10,860 2.56 1.22 0.69 0.54 18 0
LeanPool/MathFin/Models/Rates/ABCDBlack76.lean 183 10,705 2.96 1.27 0.59 0.68 20 0
LeanPool/MathFin/Risk/ComponentVaR.lean 191 10,681 2.65 1.25 0.63 0.62 24 0
LeanPool/MathFin/Models/Binomial/CRRClosedForm.lean 129 10,656 2.01 1.15 0.46 0.70 10 0
LeanPool/MathFin/Models/Binomial/BarrierReflection.lean 170 10,651 2.33 0.85 0.47 0.37 13 0
LeanPool/MathFin/Models/BlackScholes/ImpliedVolatility.lean 217 10,643 2.83 1.40 0.66 0.74 28 0
LeanPool/MathFin/Models/Rates/ABCDVolatility.lean 152 10,576 2.85 1.17 0.56 0.62 11 0
LeanPool/MathFin/Models/Rates/VasicekSDE.lean 154 10,222 1.74 0.96 0.43 0.53 24 0
LeanPool/MathFin/Models/BlackScholes/HeynenKatTwoAssetBarrier.lean 259 10,042 2.58 1.29 0.64 0.66 25 0
LeanPool/MathFin/Probability/Brownian/BrownianCylinderGeneration.lean 180 9,970 2.20 1.18 0.51 0.67 17 0
LeanPool/MathFin/Probability/Gaussian/NormalQuantile.lean 173 9,904 2.70 1.27 0.66 0.61 43 0
LeanPool/MathFin/Models/ModelFree/SVI/FiniteCertificate.lean 103 9,881 2.13 1.01 0.35 0.67 32 0
LeanPool/MathFin/Contracts/Core.lean 303 9,863 2.89 1.62 1.00 0.61 91 0
LeanPool/MathFin/Risk/Coherent.lean 157 9,847 2.15 1.03 0.44 0.59 42 0
LeanPool/MathFin/Models/ModelFree/CarrMadan.lean 194 9,778 2.37 1.25 0.62 0.63 8 0
LeanPool/MathFin/Probability/Gaussian/GaussianPairLinearLaw.lean 160 9,764 3.20 1.29 0.64 0.65 14 0
LeanPool/MathFin/Models/Rates/ZCB.lean 132 9,747 2.23 1.16 0.62 0.54 26 0
LeanPool/MathFin/Models/Rates/CouponBonds.lean 141 9,747 1.96 1.01 0.48 0.53 14 0
LeanPool/MathFin/Choice/Portfolio/Markowitz.lean 146 9,699 1.92 0.94 0.49 0.44 21 0
LeanPool/MathFin/Probability/Laws/GammaPoissonMixturePgf.lean 175 9,670 3.00 1.23 0.63 0.61 14 0
LeanPool/MathFin/Pricing/OneDateMarket.lean 265 9,584 2.64 1.32 0.70 0.62 35 0
LeanPool/MathFin/Probability/Analysis/FiniteMeasureCauchySchwarz.lean 107 9,583 2.85 1.17 0.57 0.60 15 0
LeanPool/MathFin/Pricing/Girsanov.lean 156 9,569 2.48 1.21 0.54 0.67 9 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcess.lean 221 9,536 2.52 1.21 0.56 0.65 31 0
LeanPool/MathFin/Pricing/DiscreteMarket.lean 269 9,470 2.29 1.34 0.67 0.67 38 0
LeanPool/MathFin/Probability/Martingales/LocalisationInMeasure.lean 268 9,257 2.70 1.25 0.68 0.56 25 0
LeanPool/MathFin/Models/ModelFree/SVI/TraceForm.lean 85 9,162 2.61 1.00 0.47 0.53 12 0
LeanPool/MathFin/Models/BlackScholes/GaussianSmoothing.lean 138 9,090 2.59 1.22 0.50 0.72 13 0
LeanPool/MathFin/Probability/Brownian/Ito/StochasticFubiniIto.lean 90 9,087 2.52 1.06 0.39 0.66 24 0
LeanPool/MathFin/Models/Rates/CIRSquaredOU.lean 145 9,016 2.85 1.27 0.63 0.64 23 0
LeanPool/MathFin/Models/Binomial/Market.lean 290 8,933 2.74 1.49 0.80 0.69 23 0
LeanPool/MathFin/Models/Rates/DurationSensitivity.lean 131 8,837 2.18 0.87 0.36 0.51 11 0
LeanPool/MathFin/Markets/Microstructure/RollSpread.lean 176 8,723 2.66 1.13 0.48 0.65 23 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoRiemannSum.lean 98 8,704 2.07 0.98 0.32 0.66 38 0
LeanPool/MathFin/Models/ModelFree/SVI/ImaginaryTraceSignature.lean 87 8,684 2.65 1.03 0.42 0.61 10 0
LeanPool/MathFin/Models/BlackScholes/Digital.lean 243 8,679 2.90 1.17 0.56 0.61 15 0
LeanPool/MathFin/Models/Credit/DefaultDensity.lean 259 8,645 2.94 1.32 0.71 0.61 25 0
LeanPool/MathFin/Markets/DeFi/LiquidationAsStructuralDefault.lean 121 8,320 2.34 1.06 0.42 0.65 12 0
LeanPool/MathFin/Models/BlackScholes/ExchangeOption.lean 268 8,303 2.79 1.31 0.65 0.66 23 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionMoments.lean 130 8,245 2.18 1.23 0.50 0.73 14 0
LeanPool/MathFin/Choice/Utility/VonNeumannMorgenstern.lean 328 8,028 2.60 1.27 0.70 0.57 42 0
LeanPool/MathFin/Models/ModelFree/VarianceSwapFromQV.lean 145 8,027 2.51 1.09 0.46 0.63 9 0
LeanPool/MathFin/Models/ModelFree/SVI/DomainFormula.lean 112 8,022 2.67 1.16 0.50 0.66 15 0
LeanPool/MathFin/Probability/Discrete/SnellDoobDecomposition.lean 153 7,990 2.72 1.07 0.49 0.58 9 0
LeanPool/MathFin/Models/BlackScholes/GaussianGirsanov.lean 306 7,872 2.54 1.28 0.62 0.66 23 0
LeanPool/MathFin/Contracts/Instruments/CallPayoff.lean 103 7,796 1.46 0.79 0.37 0.42 13 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionCanonical.lean 184 7,759 2.42 1.20 0.46 0.73 24 0
LeanPool/MathFin/Models/ModelFree/SVI/RankOneSignature.lean 122 7,748 2.30 1.11 0.53 0.57 12 0
LeanPool/MathFin/Models/BlackScholes/Forward.lean 176 7,748 2.41 1.18 0.53 0.65 16 0
LeanPool/MathFin/Models/BlackScholes/PartialTimeBarrierOption.lean 248 7,643 2.28 1.20 0.56 0.64 22 0
LeanPool/MathFin/Risk/StudentTValueAtRisk.lean 153 7,598 2.33 1.15 0.53 0.62 18 0
LeanPool/MathFin/Models/BlackScholes/StockNumeraire.lean 212 7,472 2.72 1.10 0.48 0.62 11 0
LeanPool/MathFin/Probability/Laws/QuantileConvergence.lean 181 7,468 2.54 1.09 0.49 0.60 16 0
LeanPool/MathFin/Models/Jumps/MertonClassicDisplay.lean 147 7,391 2.43 1.16 0.54 0.62 17 0
LeanPool/MathFin/Probability/Martingales/MartingaleFrozen.lean 146 7,256 2.44 1.11 0.54 0.57 15 0
LeanPool/MathFin/Probability/Analysis/AffineMinorant.lean 93 7,210 2.11 0.97 0.40 0.57 14 0
LeanPool/MathFin/Models/StochVol/SABRFlochKennedyLimits.lean 176 7,180 2.84 1.30 0.58 0.73 13 0
LeanPool/MathFin/Probability/Jumps/PoissonCompensatedSimpleIntegrand.lean 149 7,173 2.30 1.03 0.43 0.60 19 0
LeanPool/MathFin/Probability/Analysis/Bisection.lean 151 7,121 2.05 1.02 0.58 0.44 22 0
LeanPool/MathFin/Probability/Brownian/Ito/AdaptedProcessToLp.lean 201 7,002 2.11 1.11 0.45 0.66 22 0
LeanPool/MathFin/Models/Rates/HJM.lean 158 6,936 2.63 1.32 0.64 0.68 32 0
LeanPool/MathFin/Probability/Analysis/ExtendOfNormIsometry.lean 66 6,921 1.97 0.77 0.27 0.50 7 0
LeanPool/MathFin/Models/BlackScholes/GarmanNormalForm.lean 225 6,914 2.17 1.16 0.49 0.67 34 0
LeanPool/MathFin/Probability/Discrete/OptionalSamplingInequality.lean 174 6,804 2.19 0.96 0.38 0.58 8 0
LeanPool/MathFin/Pricing/WienerIntegralForwardMeasure.lean 119 6,738 2.52 1.16 0.48 0.68 13 0
LeanPool/MathFin/Pricing/FTAP/FTAP.lean 220 6,735 2.21 1.11 0.48 0.63 25 0
LeanPool/MathFin/Risk/Spectral.lean 257 6,720 2.58 1.23 0.61 0.62 27 0
LeanPool/MathFin/Probability/Jumps/PoissonCompensatedIntegralL2.lean 162 6,718 2.75 1.04 0.42 0.61 9 0
LeanPool/MathFin/Probability/Laws/ExpMin.lean 107 6,671 2.18 0.96 0.37 0.59 13 0
LeanPool/MathFin/Probability/Discrete/L2MartingaleConvergence.lean 105 6,506 2.10 0.94 0.37 0.57 8 0
LeanPool/MathFin/Risk/GaussianExpectedShortfall.lean 108 6,461 1.97 0.97 0.36 0.61 21 0
LeanPool/MathFin/Models/ModelFree/SVI/SignFormula.lean 126 6,450 2.57 1.15 0.57 0.59 43 0
LeanPool/MathFin/Models/BlackScholes/SpotConvexity.lean 128 6,427 2.56 1.14 0.43 0.71 13 0
LeanPool/MathFin/Choice/Performance/PurgedCV.lean 192 6,328 2.39 1.04 0.38 0.66 23 0
LeanPool/MathFin/Models/ModelFree/SVI/Companion.lean 77 6,328 2.18 0.94 0.39 0.55 11 0
LeanPool/MathFin/Models/ModelFree/SVI/Matrices.lean 91 6,286 2.26 0.81 0.33 0.48 15 0
LeanPool/MathFin/Models/ModelFree/CalendarArbitrage.lean 196 6,249 2.71 1.28 0.55 0.73 18 0
LeanPool/MathFin/Models/ModelFree/SVI/CallConvexity.lean 147 6,223 2.59 1.34 0.58 0.76 18 0
LeanPool/MathFin/Models/Binomial/EuropeanReplication.lean 126 6,209 2.21 0.94 0.47 0.47 19 0
LeanPool/MathFin/Pricing/ForwardMeasure.lean 168 6,195 2.42 1.06 0.46 0.59 18 0
LeanPool/MathFin/Pricing/Parity.lean 179 6,152 2.45 1.17 0.56 0.61 19 0
LeanPool/MathFin/Models/Rates/NelsonSiegelSvensson.lean 201 5,964 2.27 1.11 0.59 0.52 15 0
LeanPool/MathFin/Probability/Brownian/SDE/SDEPathwise.lean 131 5,914 2.04 1.08 0.41 0.67 13 0
LeanPool/MathFin/Models/BlackScholes/BSCallHypFromBrownian.lean 162 5,858 2.11 1.06 0.36 0.70 23 0
LeanPool/MathFin/Models/ModelFree/SVI/Derivatives.lean 76 5,765 2.29 0.98 0.44 0.54 11 0
LeanPool/MathFin/Models/ModelFree/SVI/DegreeProgram.lean 86 5,762 2.29 1.00 0.38 0.62 11 0
LeanPool/MathFin/Models/Rates/ConvexityImmunization.lean 134 5,700 2.16 0.86 0.35 0.51 15 0
LeanPool/MathFin/Pricing/Duality/ConvexSeparation.lean 91 5,673 2.20 0.97 0.38 0.60 8 0
LeanPool/MathFin/Models/Credit/DVA.lean 148 5,660 2.13 1.09 0.45 0.64 13 0
LeanPool/MathFin/Models/BlackScholes/BlackScholes.lean 182 5,640 2.42 1.11 0.45 0.66 15 0
LeanPool/MathFin/Markets/Execution/AlmgrenChriss.lean 121 5,606 1.81 0.98 0.43 0.55 13 0
LeanPool/MathFin/Risk/ExposureMeasures.lean 115 5,573 2.55 1.00 0.39 0.62 13 0
LeanPool/MathFin/Models/ModelFree/SVI/TraceSignature.lean 65 5,550 2.40 0.98 0.35 0.63 10 0
LeanPool/MathFin/Models/ModelFree/SVI/SignatureProgram.lean 103 5,508 2.16 1.00 0.39 0.61 15 0
LeanPool/MathFin/Probability/Analysis/IndepIsometryKernel.lean 82 5,396 2.06 0.90 0.29 0.60 27 0
LeanPool/MathFin/Models/Rates/Immunization.lean 129 5,381 1.87 0.86 0.32 0.54 16 0
LeanPool/MathFin/Models/ModelFree/VarianceSwapLimit.lean 112 5,378 2.06 0.99 0.34 0.65 8 0
LeanPool/MathFin/Risk/ContractRisk.lean 162 5,226 2.37 1.06 0.42 0.64 24 0
LeanPool/MathFin/Risk/PositionsConvention.lean 122 5,202 1.81 0.91 0.32 0.58 12 0
LeanPool/MathFin/Models/BlackScholes/PutStrikeConvexity.lean 86 5,180 2.18 0.91 0.30 0.61 9 0
LeanPool/MathFin/Models/Jumps/MertonDominance.lean 136 5,156 2.24 1.06 0.34 0.71 18 0
LeanPool/MathFin/Choice/Portfolio/TangentPortfolio.lean 123 5,139 1.92 0.74 0.34 0.40 11 0
LeanPool/MathFin/Models/Forwards/TheoryOfStorage.lean 195 5,101 2.27 1.08 0.48 0.60 18 0
LeanPool/MathFin/Choice/Portfolio/RiskParity.lean 110 4,979 2.16 0.96 0.42 0.54 10 0
LeanPool/MathFin/Risk/Additivity.lean 71 4,859 1.99 0.91 0.28 0.64 10 0
LeanPool/MathFin/Models/ModelFree/SVI/AssociatedTrace.lean 60 4,739 2.27 0.92 0.31 0.61 10 0
LeanPool/MathFin/Markets/Microstructure/GlostenMilgromCondExp.lean 113 4,716 1.82 0.98 0.38 0.61 12 0
LeanPool/MathFin/Risk/WorstCaseRisk.lean 108 4,683 1.59 0.89 0.32 0.57 17 0
LeanPool/MathFin/Models/Forwards/Black76.lean 213 4,677 2.18 1.15 0.50 0.65 20 0
LeanPool/MathFin/Models/ModelFree/SVI/MatrixCertificate.lean 88 4,635 2.23 1.01 0.35 0.67 13 0
LeanPool/MathFin/Models/Forwards/AR1OUCalibration.lean 173 4,558 2.44 1.18 0.49 0.69 23 0
LeanPool/MathFin/Models/ModelFree/SVI/Assembly.lean 129 4,487 2.01 0.93 0.35 0.57 16 0
LeanPool/MathFin/Probability/Jumps/PoissonInterarrival.lean 155 4,390 1.83 1.02 0.40 0.62 13 0
LeanPool/MathFin/Probability/Brownian/ExpMartingaleBrownian.lean 137 4,346 2.55 1.03 0.38 0.65 14 0
LeanPool/MathFin/Probability/Jumps/ExpMartingaleIndepIncrements.lean 120 4,338 2.31 0.95 0.36 0.59 9 0
LeanPool/MathFin/Models/Rates/YieldCurve.lean 117 4,288 1.57 0.64 0.29 0.35 14 0
LeanPool/MathFin/Probability/Jumps/CompoundPoissonMGF.lean 146 4,276 2.25 0.98 0.35 0.63 15 0
LeanPool/MathFin/Models/ModelFree/Spreads.lean 82 4,228 1.68 1.00 0.28 0.72 9 0
LeanPool/MathFin/Models/BlackScholes/BinaryBarrierOption.lean 253 4,222 2.02 1.13 0.49 0.64 25 0
LeanPool/MathFin/Probability/Gaussian/NormalTail.lean 78 4,167 2.46 1.02 0.38 0.64 11 0
LeanPool/MathFin/Models/Binomial/MartingaleRepresentation.lean 132 4,052 2.21 1.00 0.33 0.68 10 0
LeanPool/MathFin/Risk/Concentration.lean 102 4,050 1.65 0.68 0.25 0.43 14 0
LeanPool/MathFin/Insurance/SurvivalModel.lean 158 3,954 1.66 0.78 0.31 0.47 35 0
LeanPool/MathFin/Models/Rates/CleanPriceAccrued.lean 175 3,932 1.85 0.84 0.35 0.49 17 0
LeanPool/MathFin/Probability/Jumps/PoissonPgf.lean 97 3,841 2.01 0.95 0.32 0.63 16 0
LeanPool/MathFin/Models/Bachelier/Bachelier.lean 125 3,708 2.04 1.01 0.35 0.66 13 0
LeanPool/MathFin/Models/BlackScholes/PricingFromBrownian.lean 234 3,702 2.12 1.03 0.40 0.63 18 0
LeanPool/MathFin/Models/Credit/Credit.lean 123 3,674 1.87 0.84 0.34 0.50 20 0
LeanPool/MathFin/Models/Forwards/FisherSraffaOwnRate.lean 151 3,668 2.22 1.00 0.40 0.60 14 0
LeanPool/MathFin/Models/Rates/ConvexitySensitivity.lean 130 3,666 2.10 0.85 0.34 0.52 11 0
LeanPool/MathFin/Choice/Portfolio/TwoFundSeparation.lean 112 3,641 1.80 0.86 0.31 0.55 18 0
LeanPool/MathFin/Insurance/EsscherPremium.lean 168 3,614 2.02 1.04 0.41 0.63 16 0
LeanPool/MathFin/Models/ModelFree/SVI/Denominators.lean 82 3,614 1.81 0.81 0.30 0.51 14 0
LeanPool/MathFin/Pricing/ConvexPricingFunctional.lean 107 3,611 2.18 0.94 0.35 0.58 10 0
LeanPool/MathFin/Models/Rates/KeyRateDuration.lean 139 3,595 2.04 0.88 0.37 0.51 13 0
LeanPool/MathFin/Models/BlackScholes/KirkSpreadApproximation.lean 178 3,591 2.33 1.05 0.36 0.69 14 0
LeanPool/MathFin/Models/BlackScholes/PowerCall.lean 168 3,580 2.13 1.00 0.35 0.64 13 0
LeanPool/MathFin/Models/ModelFree/SVI/NilpotentSquareRoot.lean 59 3,572 1.51 0.57 0.25 0.32 8 0
LeanPool/MathFin/Models/Rates/DeterministicMarket.lean 173 3,526 1.84 1.01 0.42 0.59 15 0
LeanPool/MathFin/Models/Rates/Vasicek.lean 137 3,388 1.94 0.86 0.34 0.52 14 0
LeanPool/MathFin/Risk/Credit/TrancheLeg.lean 83 3,374 2.22 0.91 0.29 0.62 10 0
LeanPool/MathFin/Models/BlackScholes/GreekSigns.lean 161 3,374 2.24 1.03 0.39 0.64 21 0
LeanPool/MathFin/Models/Binomial/FlipPaths.lean 117 3,371 1.59 0.61 0.28 0.33 21 0
LeanPool/MathFin/Pricing/NoArbitrageDerivations.lean 158 3,298 2.16 0.94 0.36 0.58 9 0
LeanPool/MathFin/Models/Rates/DeterministicCurve.lean 169 3,271 2.26 0.99 0.41 0.57 21 0
LeanPool/MathFin/Models/Rates/MacaulayModified.lean 84 3,217 1.47 0.64 0.22 0.42 12 0
LeanPool/MathFin/Models/BlackScholes/AsianGeometric.lean 67 3,190 2.13 1.02 0.30 0.72 9 0
LeanPool/MathFin/Insurance/SurvivalUnification.lean 158 3,158 1.98 1.00 0.36 0.64 16 0
LeanPool/MathFin/Insurance/Mortality.lean 142 3,112 2.05 0.97 0.35 0.62 18 0
LeanPool/MathFin/Choice/Portfolio/CAPMEquilibrium.lean 191 3,093 1.69 0.77 0.32 0.45 11 0
LeanPool/MathFin/Probability/Martingales/EquivMeasure.lean 151 3,092 2.02 0.89 0.32 0.56 13 0
LeanPool/MathFin/Risk/Gaussian.lean 106 2,903 2.12 1.01 0.30 0.70 20 0
LeanPool/MathFin/Contracts/Instruments/Options.lean 179 2,888 1.69 1.00 0.37 0.63 30 0
LeanPool/MathFin/Probability/Support/DoobContinuous.lean 64 2,884 2.20 0.89 0.29 0.59 9 0
LeanPool/MathFin/Pricing/FTAP/ContinuousFTAP.lean 109 2,796 2.20 0.97 0.30 0.67 11 0
LeanPool/MathFin/Markets/DeFi/Compound.lean 149 2,683 1.71 0.99 0.36 0.62 19 0
LeanPool/MathFin/Models/Credit/FirstToDefault.lean 109 2,675 1.98 0.89 0.27 0.62 9 0
LeanPool/MathFin/Probability/Martingales/ChangeOfMeasure.lean 130 2,618 1.98 0.86 0.29 0.57 9 0
LeanPool/MathFin/Models/BlackScholes/LognormalMoments.lean 92 2,603 1.92 0.96 0.30 0.66 8 0
LeanPool/MathFin/Probability/Jumps/PoissonSuperposition.lean 112 2,586 2.07 0.87 0.27 0.60 13 0
LeanPool/MathFin/Insurance/AnnuityValue.lean 87 2,571 1.80 0.94 0.28 0.67 8 0
LeanPool/MathFin/Models/Rates/LoanAmortization.lean 162 2,538 2.00 0.93 0.39 0.53 15 0
LeanPool/MathFin/Pricing/StatePrices.lean 146 2,497 1.64 0.88 0.30 0.58 26 0
LeanPool/MathFin/Choice/Portfolio/BlackLitterman.lean 105 2,493 1.62 0.60 0.27 0.33 10 0
LeanPool/MathFin/Models/BlackScholes/Chooser.lean 65 2,435 1.33 0.53 0.20 0.33 9 0
LeanPool/MathFin/Models/ModelFree/VarianceSwapDriftImmunity.lean 105 2,431 2.16 0.93 0.27 0.66 9 0
LeanPool/MathFin/Models/Binomial/ReplicatingUniqueness.lean 101 2,397 1.61 0.73 0.25 0.48 7 0
LeanPool/MathFin/Probability/Analysis/StdSimplexProd.lean 65 2,393 1.62 0.57 0.21 0.36 8 0
LeanPool/MathFin/Models/Binomial/BinomialCompleteMarket.lean 114 2,387 2.07 0.97 0.29 0.68 9 0
LeanPool/MathFin/Models/ModelFree/BreedenLitzenberger.lean 181 2,355 1.90 1.04 0.33 0.70 13 0
LeanPool/MathFin/Probability/Brownian/BrownianMarkov.lean 134 2,247 1.85 0.92 0.28 0.65 11 0
LeanPool/MathFin/Models/BlackScholes/Dividends.lean 142 2,227 1.69 0.97 0.31 0.66 11 0
LeanPool/MathFin/Models/Rates/PeriodicCompounding.lean 95 2,143 1.86 0.93 0.31 0.62 10 0
LeanPool/MathFin/Models/BlackScholes/Lookback.lean 73 2,137 1.72 0.94 0.27 0.66 9 0
LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralProcessLocalMartingale.lean 116 2,089 1.61 0.91 0.24 0.66 18 0
LeanPool/MathFin/Choice/Portfolio/CAPM.lean 114 2,088 1.20 0.54 0.20 0.34 18 0
LeanPool/MathFin/Models/ModelFree/SVI/BlackScholesBridge.lean 92 2,056 1.88 1.06 0.32 0.74 13 0
LeanPool/MathFin/Probability/Discrete/DoobDecomposition.lean 103 2,037 2.06 0.80 0.23 0.57 9 0
LeanPool/MathFin/Models/Rates/HJMBond.lean 114 2,020 2.09 0.97 0.29 0.68 13 0
LeanPool/MathFin/Pricing/NoArbitrageCore.lean 80 1,976 1.53 0.85 0.27 0.59 9 0
LeanPool/MathFin/Pricing/ReplicationPricing.lean 99 1,973 1.79 0.88 0.27 0.60 10 0
LeanPool/MathFin/Models/BlackScholes/BlackScholesExchange.lean 80 1,895 1.99 0.92 0.25 0.67 10 0
LeanPool/MathFin/Pricing/FTAP/MarketFTAP.lean 129 1,888 1.96 0.85 0.26 0.60 18 0
LeanPool/MathFin/Probability/Laws/FiniteWeights.lean 85 1,857 1.57 0.81 0.26 0.56 11 0
LeanPool/MathFin/Risk/CollateralizedExposureBrownian.lean 90 1,841 2.11 0.89 0.27 0.62 10 0
LeanPool/MathFin/Pricing/EquivMartingaleMeasure.lean 97 1,824 2.02 0.87 0.25 0.62 15 0
LeanPool/MathFin/Models/Forwards/SchwartzOneFactor.lean 114 1,771 1.78 1.01 0.29 0.72 12 0
LeanPool/MathFin/Risk/LawInvariance.lean 114 1,725 2.03 0.87 0.28 0.59 20 0
LeanPool/MathFin/Probability/Analysis/DerivOfDeriv.lean 77 1,644 1.75 0.73 0.22 0.51 10 0
LeanPool/MathFin/Models/BlackScholes/BarrierParity.lean 141 1,602 2.00 0.95 0.28 0.66 15 0
LeanPool/MathFin/Models/Credit/HazardCurve.lean 108 1,522 1.51 0.85 0.24 0.60 19 0
LeanPool/MathFin/Models/BlackScholes/BisectionIV.lean 88 1,521 1.97 0.97 0.24 0.73 9 0
LeanPool/MathFin/Models/Binomial/SecondFTAP.lean 76 1,514 1.59 0.67 0.21 0.45 7 0
LeanPool/MathFin/Models/BlackScholes/BlackScholesAsian.lean 89 1,514 1.69 0.91 0.24 0.67 10 0
LeanPool/MathFin/Contracts/Instruments/Credit.lean 100 1,505 1.96 0.88 0.24 0.64 12 0
LeanPool/MathFin/Probability/Gaussian/StandardGaussianMGF.lean 87 1,471 1.52 0.83 0.22 0.62 8 0
LeanPool/MathFin/Models/Rates/ForwardRate.lean 82 1,463 1.64 0.82 0.24 0.57 7 0
LeanPool/MathFin/Models/Forwards/FxForwardParity.lean 130 1,405 1.64 0.94 0.27 0.67 11 0
LeanPool/MathFin/Insurance/Insurance.lean 112 1,380 1.73 0.92 0.28 0.64 10 0
LeanPool/MathFin/Choice/Portfolio/CovariancePSD.lean 104 1,379 1.83 0.86 0.25 0.62 10 0
LeanPool/MathFin/Pricing/FTAP/DalangMortonWillinger.lean 125 1,362 1.60 0.83 0.25 0.59 13 0
LeanPool/MathFin/Models/ModelFree/VarianceSwapEquivalence.lean 107 1,355 1.57 0.86 0.22 0.64 7 0
LeanPool/MathFin/Models/Jumps/JumpDiffusionThinning.lean 89 1,355 2.02 0.99 0.25 0.73 11 0
LeanPool/MathFin/Probability/Analysis/ExponentialDiscount.lean 129 1,348 1.93 0.85 0.25 0.60 14 0
LeanPool/MathFin/Choice/Performance/RelativeDrawdown.lean 92 1,345 1.85 0.78 0.23 0.55 11 0
LeanPool/MathFin/Choice/Performance/LabelUniqueness.lean 96 1,330 1.44 0.55 0.21 0.34 12 0
LeanPool/MathFin/Models/Rates/FRA.lean 92 1,297 1.64 0.75 0.24 0.50 10 0
LeanPool/MathFin/Risk/ConcentrationVariance.lean 86 1,291 1.66 0.87 0.25 0.62 8 0
LeanPool/MathFin/Probability/Martingales/StoppedProcessPaths.lean 84 1,261 1.88 0.84 0.26 0.58 15 0
LeanPool/MathFin/Probability/Martingales/MartingaleSetIntegral.lean 58 1,260 1.93 0.79 0.21 0.59 7 0
LeanPool/MathFin/Init.lean 45 1,205 0.72 0.20 0.06 0.14 31 0
LeanPool/MathFin/Models/Rates/ShortRate.lean 150 1,172 1.77 0.98 0.26 0.71 15 0
LeanPool/MathFin/Models/BlackScholes/PowerOption.lean 76 1,096 1.89 0.86 0.23 0.63 8 0
LeanPool/MathFin/Models/Rates/HullWhiteBond.lean 73 1,093 1.71 0.93 0.23 0.70 9 0
LeanPool/MathFin/Models/Binomial/American.lean 108 1,061 1.66 0.88 0.23 0.65 13 0
LeanPool/MathFin/Models/Rates/GSRBond.lean 68 1,042 1.90 0.89 0.22 0.67 9 0
LeanPool/MathFin/Models/Rates/InterestRateSwap.lean 92 955 1.48 0.76 0.22 0.54 11 0
LeanPool/MathFin/Risk/ValueAtRiskBisection.lean 78 923 1.38 0.84 0.22 0.62 11 0
LeanPool/MathFin/Insurance/ActuarialInsurance.lean 90 908 1.22 0.49 0.17 0.32 12 0
LeanPool/MathFin/Pricing/FTAP/FTAPOnePeriod.lean 104 883 1.53 0.84 0.22 0.61 16 0
LeanPool/MathFin/Models/Rates/VasicekBond.lean 73 879 2.00 0.88 0.22 0.66 9 0
LeanPool/MathFin/Models/Credit/KMVMertonStructural.lean 101 837 1.83 0.90 0.24 0.66 8 0
LeanPool/MathFin/Models/Binomial/Bermudan.lean 101 826 1.70 0.87 0.21 0.66 18 0
LeanPool/MathFin/Contracts/Instruments/FixedIncome.lean 89 809 1.81 0.87 0.24 0.63 11 0
LeanPool/MathFin/Models/Credit/KMVMerton.lean 95 785 1.60 0.89 0.24 0.65 14 0
LeanPool/MathFin/Models/Binomial/BinomialLimit.lean 82 769 1.56 0.93 0.22 0.71 9 0
LeanPool/MathFin/Probability/Martingales/TimeChange.lean 70 741 1.67 0.78 0.19 0.59 11 0
LeanPool/MathFin/Risk/GaussianValueAtRisk.lean 73 738 2.00 0.82 0.22 0.60 11 0
LeanPool/MathFin/Models/ModelFree/SVI/PolynomialCertificate.lean 69 729 1.34 0.78 0.21 0.57 11 0
LeanPool/MathFin/Markets/DeFi/Dai.lean 102 594 1.69 0.84 0.22 0.62 13 0
LeanPool/MathFin/Models/ModelFree/SVI/MarketRealisation.lean 78 589 1.83 0.98 0.23 0.76 9 0
LeanPool/MathFin/Models/BlackScholes/RiskNeutralProbabilities.lean 99 561 1.95 0.81 0.21 0.61 7 0
LeanPool/MathFin/Risk/Credit/CreditRiskPlus.lean 73 426 1.85 0.82 0.20 0.62 7 0
LeanPool/MathFin/Markets/Microstructure/GlostenMilgromMarket.lean 64 402 1.87 0.84 0.20 0.64 8 0
LeanPool/MathFin/Models/Credit/CDSTimeVarying.lean 95 383 1.24 0.58 0.16 0.41 8 0
LeanPool/MathFin/Models/Rates/BondForward.lean 85 304 1.24 0.76 0.19 0.57 8 0
LeanPool/MathFin/Models/Rates/ForwardMeasure.lean 55 226 1.77 0.81 0.19 0.62 8 0
LeanPool/MathFin.lean 29 0 1.75 1.70 0.18 1.52 2 0
LeanPool/MathFin/Imports.lean 486 0 2.05 1.06 0.18 0.89 1 0
LeanPool/MathFin/Probability/Jumps/PoissonCompensatedIntegralOperator.lean 459 — — 9.03 8.43 0.60 63 1
Total 106,202 10,289,914 1632.63 748.24 453.24 295.00 12783 1

Aggregate phase totals

Phase Time
import 294995.0 ms (= 295.00 s)
interpretation 143675.2 ms (= 143.68 s)
typeclass inference 100391.5 ms (= 100.39 s)
tactic execution 71814.6 ms (= 71.81 s)
type checking 27494.1 ms (= 27.49 s)
elaboration 23248.7 ms (= 23.25 s)
simp 21597.5 ms (= 21.60 s)
initialization 13666.7 ms (= 13.67 s)
ring 9516.4 ms (= 9.52 s)
linting 9021.3 ms (= 9.02 s)
norm_num 6009.8 ms (= 6.01 s)
blocked (unaccounted) 5903.5 ms (= 5.90 s)

Slowest changed modules (from lake build)

Changed module Lake time
LeanPool.MathFin.Probability.Gaussian.FeynmanKacHeatEquation 11.00 s
LeanPool.MathFin.Models.LocalVol.ForwardSmile 8.80 s
LeanPool.MathFin.Risk.DiscreteVaR 7.00 s
LeanPool.MathFin.Models.BlackScholes.MonteCarloPricer 6.60 s
LeanPool.MathFin.Models.Jumps.JumpDiffusionIdentifiability 6.10 s
LeanPool.MathFin.Probability.Brownian.Ito.ItoProcessQV 5.80 s
LeanPool.MathFin.Probability.Brownian.Wiener.WienerIntegralFiltration 5.40 s
LeanPool.MathFin.Risk.VaRSuperadditivity 5.40 s
LeanPool.MathFin.Probability.Brownian.SDE.SDEExistence 5.20 s
LeanPool.MathFin.Models.Binomial.Binomial 5.00 s
LeanPool.MathFin.Models.ModelFree.SVI.TailCondition 4.90 s
LeanPool.MathFin.Probability.Brownian.Ito.DriftProcessModification 4.90 s

Comment truncated to fit GitHub's 64 KB limit. This PR profiles 479 files; the per-file table shows only the 479 hottest by heartbeats. The full table and raw lean --profile output for every file are in the run's step summary and proof-profile artifact.

Advisory only — never blocks merge.

@Vilin97

Vilin97 commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

🤖 LLM review (gpt-6.2-sol, 5 rubrics)

Reviewed head: add7aeb680e5f4d3b8ffc4a69f309e643a7914de

Verdict: 🛑 request_changes — computed from the rubric verdicts below, not chosen by a model.

Rubric Verdict Bottom line
Faithfulness ✅ pass All five headline declarations prove the claims in the project card under the stated assumptions.
Novelty ✅ pass Source searches across Mathlib, Tau Ceti, and Lean Pool found no duplicate among the five headlines, with semantic matches beyond those searches still unverifiable.
Significance ✅ pass The import develops graduate-level pricing and risk theory, with 486 of 106,195 added Lean lines (0.46%) in an import index the repository regenerates from source paths.
Sources 🛑 block Correct the scope and attribution of the compensated-Poisson isometry and fix the textbook references for the maximum domain of attraction, generalized Pareto distribution, and copula bounds.
Code quality (advisory) ⚠️ flag The library is competent, with maintenance debt in the globally exported matrix norm, duplicated pricing and stochastic-integration proofs, and avoidable public premises.
Aspect Value
Proves the claim ✅ proves_it
Assumed, not proved The card states the finite-state measure conditions, the binomial parameter and payoff restrictions, normalization of the call curve, measurable Brownian coordinates under the reference probability measure with positive mean reversion, and coherence of the loss functional. The PR description separately discloses that the general-state FTAP assumes ConditionalOnePeriodFTAP.
Matches cited source 🛑 mismatch
Fit ✅ good_fit
Level graduate
Branch mathematical finance
Mode theory_building
Code quality 3 / 5

Statement check: The Lean proves the finite-grid single-asset FTAP, binomial price invariance for one terminal-spot payment, normalized call-curve realization at maturity one for every positive strike, time-zero Vasicek bond pricing, and the finite-state coherent-risk representation.

The library proves the finite-state, single-asset fundamental theorem of asset pricing and finite-state coherent-risk duality by separation, constructs markets for normalized call curves at a fixed maturity, and derives binomial and Vasicek prices in a shared market and contract framework.

Novelty findings (3)

  • partial-overlap — LeanPool/MathFin/Pricing/FTAP/MarketFTAP.lean:110
    Tau Ceti already proves the implication from a martingale measure to absence of simple-strategy arbitrage. The PR adds the converse by constructing a pricing measure from absence of arbitrage on a finite grid with a full-support reference measure.
    Evidence: The PR states M.NoArbitrage ht N ↔ ∃ Q, (M.onGrid ht N).IsPricingMeasure N Q. TauCeti.Finance.IsSelfFinancing.not_isArbitrage assumes mutually absolutely continuous measures, a positive numéraire, discounted-stock martingale identities on the grid, and integrable gains, then excludes arbitrage for a self-financing simple strategy. Tau Ceti declaration
  • partial-overlap — LeanPool/MathFin/Risk/AcceptanceSet.lean:107
    The coherent-risk representation specializes existing convex separation and identifies the dual domain as the probability vectors that assign nonpositive expected loss to every acceptable loss.
    Evidence: The PR concludes IsLUB ((fun q ↦ ∑ i, q i * L i) '' representingSet ρ) (ρ L). Mathlib’s ProperCone.hyperplane_separation_point gives a continuous linear functional that is nonnegative on a proper cone and strictly negative at a point outside it. Mathlib declaration
  • prompt-injection — PR-wide
    The PR description directs the reviewer to execute a contributor-supplied shell snippet that writes counted-files.txt in the review checkout.
    Evidence: The PR description says ‘Run the following from the PR checkout with a clean upstream checkout at the pinned commit.’

Sources findings (4)

  • source-mismatch — LeanPool/MathFin/Probability/Jumps/PoissonCompensatedIntegralOperator.lean:443
    LevyStochCalc proved its former axiom Add Reservoir manifest fetcher to aggregator subpackage #6 before the cited MathFin release. Its theorem constructs a càdlàg martingale for progressively measurable square-integrable integrands and proves the compensator identity and an isometry at every positive horizon. Describe the Lean result here as the norm isometry on the closure of marked simple integrands, and cite the isometry part of the LevyStochCalc theorem as related work. Update the references to former axiom Add Reservoir manifest fetcher to aggregator subpackage #6 in the same directory in PoissonCompensatedBilinear.lean:54, PoissonCompensatedIntegralL2.lean:33, PoissonCompensatedIntegralL2Dense.lean:34, PoissonCompensatedIsometryAdapted.lean:37, and PoissonRandomMeasure.lean:37. Proof commit · Pinned theorem
    Evidence: The docstring calls the result ‘The Itô–Lévy L² isometry, in full generality — LevyStochCalc's cited axiom Add Reservoir manifest fetcher to aggregator subpackage #6’. theorem itoLevyIntegralL2_norm (N : PoissonRandomMeasure P ν) (H : levyClosure N) : concludes ‖itoLevyIntegralL2 N H‖ = ‖H‖, and levyClosure is (LinearMap.range (emb N)).topologicalClosure.
  • source-mismatch — LeanPool/MathFin/Probability/Laws/ExtremeValue.lean:94
    In the 2015 edition of Quantitative Risk Management, Definition 5.2 gives the maximum domain of attraction and Theorem 5.3 gives the Fisher–Tippett–Gnedenko classification. Cite Definition 5.2 and describe InMDA as the pointwise convergence predicate on functions, with the textbook interpretation for distribution functions and a nondegenerate limit. Quantitative Risk Management, §5.1.1
    Evidence: The docstring cites ‘(MFE Definition 5.3).’ The definition def InMDA (F H : ℝ → ℝ) : Prop := requires ∀ x, Tendsto (fun n : ℕ ↦ F (c n * x + d n) ^ n) atTop (𝓝 (H x)).
  • source-mismatch — LeanPool/MathFin/Probability/Laws/GeneralizedPareto.lean:90
    Definition 5.14 of the 2015 edition defines the return period of a block maximum. Cite Definition 5.16, equation (5.8), for the generalized Pareto CDF and state that the scale is positive. Quantitative Risk Management, §§5.1.3 and 5.2.1
    Evidence: The docstring cites ‘(MFE Definition 5.14).’ The declaration is noncomputable def gpdCDF (ξ β x : ℝ) : ℝ := with body 1 - gpdTail ξ β x.
  • source-mismatch — LeanPool/MathFin/Probability/Dependence/Copula.lean:61
    Theorem 7.8 of the 2015 edition gives the Fréchet–Hoeffding bounds. Cite it for the two bound declarations. Proposition 7.7 concerns invariance under strictly increasing marginal transformations, which LeanPool/MathFin/Probability/Dependence/Sklar.lean already cites. Quantitative Risk Management, §7.1.1
    Evidence: The reference gives ‘Theorem 7.7’. measureReal_Iic_le concludes C.real (Iic u) ≤ u i, and sum_sub_le_measureReal_Iic concludes ∑ i, u i - (Fintype.card ι - 1) ≤ C.real (Iic u).

Code quality findings (13)

  • global-instance — LeanPool/MathFin/Markets/Microstructure/MatrixMarketMakingRiccati.lean:116
    Importing the Riccati module or the MathFin aggregate changes typeclass search for matrix norms in downstream files. The registrations also apply to rectangular matrices and can compete with Mathlib’s other matrix norm scopes. Remove the global registrations and use the existing operator-norm scope in files that need it. A minimal Lean experiment confirmed that this registration pattern exports the instance to importers.
    Evidence: open scoped Matrix.Norms.Operator
    attribute [instance] Matrix.linftyOpNormedAddCommGroup Matrix.linftyOpNormedSpace
    public import LeanPool.MathFin.Markets.Microstructure.MatrixMarketMakingRiccati
  • redundant-hypothesis — LeanPool/MathFin/Models/Binomial/Market.lean:244
    The public pricing theorem makes callers construct a nonnegative-real witness for the risk-neutral up probability and prove its equality to the model’s probability. Neither appears in the result. Obtain both inside the proof using the same construction as exists_isPricingMeasure_iff.
    Evidence: theorem price_pay_eq_binomialPrice_of_isPricingMeasure (hS₀ : 0 < S₀) (hna : BinomialNoArb u d ρ)
    (hqcrr : crrUpProb u d ρ = q) (hh : 0 < h) (hTN : (T : ℝ) / h = N) {a : Payoff Unit}
    (market P S₀ u d ρ hh.le).price Q (.pay T a) = binomialPrice u d ρ g N S₀ := by
    · obtain ⟨q, hq, hqcrr⟩ := hna.exists_nnreal_crrUpProb
  • overstrong-hypothesis — LeanPool/MathFin/Pricing/FTAP/FTAPOnePeriodVector.lean:126
    The forward one-period implication builds a dynamic filtration and martingale to show that a constant portfolio has zero expected gain. That construction requires pointwise measurability of the return. Apply the portfolio’s continuous linear functional directly to the integrability and zero-mean fields, then use the zero-integral criterion and absolute continuity to conclude. This removes the measurability premise from the forward lemma.
    Evidence: int : Integrable Y Q
    fair : ∫ ω, Y ω ∂Q = 0
    theorem noArbitrage_of_isEMM (hY : Measurable Y) {Q : Measure Ω} (hQ : IsEMM P Y Q) :
    NoArbitrage P Y := by
    obtain ⟨𝓕, h0, h1⟩ : ∃ 𝓕 : Filtration ℕ mΩ, 𝓕 0 = ⊥ ∧ 𝓕 1 = mΩ :=
    have hE : MathFin.IsEMM 𝓕 P S 1 Q := .of_condExp_succ hQ.toIsEquivProbMeasure
  • unused-hypothesis — PR-wide
    These identities and bounds carry premises that add obligations for callers. Remove the unused binders below, including the continuity premise on the private heat-kernel bound. Keep the swap bracket conditions at the bisection calls. In uniformIoo_Iic, the interval-volume formula already gives ENNReal.ofReal c for negative c, so the lower bound can also go.
    Evidence: theorem binomialPrice_const (u d r c : ℝ) (_h : BinomialNoArb u d r) (n : ℕ) (S : ℝ) :
    lemma bsV_vega_pos {K r : ℝ} (_hK : 0 < K)
    {S σ T : ℝ} (hS : 0 < S) (_hσ : 0 < σ) (hT : 0 < T) :
    theorem bsV_gamma_pos {K r σ : ℝ} (_hK : 0 < K) (hσ : 0 < σ)
    theorem newtonStep_error_via_root
    (f f' : ℝ → ℝ) {σ_star σ : ℝ} (_h_root : f σ_star = 0) :
    lemma creditSpread_eq_time_avg_hazard {h : ℝ → ℝ} {T : ℝ} (_hT : 0 < T) :
    lemma butterfly_payoff_nonneg (S K₁ K₃ : ℝ) (_h : K₁ ≤ K₃) :
    lemma vasicekSDE_variance_at_zero (σ κ : ℝ) (_hκ : κ ≠ 0) :
    theorem swapThreshold (P0 K A c lo hi : ℝ) (x : ℝ) (_hx : x ∈ Set.Icc lo hi) :
    theorem swapLastCouponThreshold (P0 K A₀ δ c lo hi : ℝ) (hpos : 0 < 1 + K * δ) (x : ℝ)
    (_hx : x ∈ Set.Icc lo hi) :
    lemma integral_mul_increment_mul_increment_eq_of_le
    (_hst : s ≤ t) (hst' : s' ≤ t') (hss' : s ≤ s') :
    private lemma abs_half_integral_ddf_heatKernel_le {s : ℝ} (hs : 0 < s) {f'' : ℝ → ℝ}
    (_hf''c : Continuous f'') {Cf'' : ℝ} (hCf'' : ∀ x, |f'' x| ≤ Cf'') :
    theorem uniformIoo_Iic {c : ℝ} (h0 : 0 ≤ c) (h1 : c ≤ 1) :
  • duplicate-proof — LeanPool/MathFin/Models/BlackScholes/Call.lean:240
    The vanilla call, vanilla put, asset digital, and stock-numéraire proofs repeat the truncated lognormal first-moment calculation. The vanilla call and cash digital also repeat the same Gaussian exercise-probability integral. Extract the first moment and exercise probability below the product-specific pricing theorems and assemble each payoff from them. This also removes the unused hν_log_pos and its supporting hsqrT_pos from the call, put, and asset digital.
    Evidence: theorem bs_call_formula {Ω : Type*} {mΩ : MeasurableSpace Ω}
    theorem bs_put_formula {Ω : Type*} {mΩ : MeasurableSpace Ω}
    theorem bs_asset_or_nothing_formula {Ω : Type*} {mΩ : MeasurableSpace Ω}
    theorem bsCall_asset_piece_integral
    theorem bs_cash_or_nothing_formula {Ω : Type*} {mΩ : MeasurableSpace Ω}
    have h_exp_combine : Real.exp (-r * T) * Real.exp μ_log * Real.exp (ν_log^2 / 2) = 1 := by
    ∫ z in Set.Ioi (-d_2), gaussianPDFReal 0 1 z = Phi d_2 := by
    have hν_log_pos : 0 < ν_log := mul_pos hσ hsqrT_pos
  • duplicate-proof — LeanPool/MathFin/Models/BlackScholes/MonteCarloPricer.lean:816
    The call and put prove separate payoff-law transfers, strong laws, CLTs, and conversions to the sample-mean normalization. The vector-draw consistency theorem repeats the same strong-law argument. Parameterize the sampling lemmas by the draw law and measurable payoff, and let the pricing theorems supply the relevant moments. The mirrored second-moment proofs can also share the expansion of the squared strike difference over the exercise set.
    Evidence: theorem consistency (h : BSCallHyp μ S_0 K r σ T (Z 0))
    theorem mc_call_consistency (h : BSCallHyp μ S_0 K r σ T (Z 0))
    have hslln := strong_law_ae_real
    theorem clt (h : BSCallHyp μ S_0 K r σ T (Z 0))
    theorem mc_call_clt (h : BSCallHyp μ S_0 K r σ T (Z 0))
    refine TendstoInDistribution.congr (fun n ↦ ?_) Filter.EventuallyEq.rfl hlib
    theorem multiD_consistency {W : ℕ → Ω → (Fin d → ℝ)} {H : (Fin d → ℝ)}
  • duplicate-proof — LeanPool/MathFin/Probability/Brownian/Ito/ItoProcessPredictable.lean:313
    Subtraction repeats the additivity proof’s product-measure, trim, and Lp extensionality steps. Apply additivity to the difference and the subtrahend and cancel. The drift and Itô modification files also repeat the bound on consecutive approximants and the passage from summable tail probabilities to eventual avoidance. Share those steps so each construction supplies its own maximal estimate.
    Evidence: theorem itoProcessAssembled_add (T : ℝ≥0) (hBmeas : ∀ t, Measurable (B t))
    theorem itoProcessAssembled_sub (T : ℝ≥0) (hBmeas : ∀ t, Measurable (B t))
    rw [Filter.EventuallyEq, Measure.ae_prod_iff_ae_ae hset]
    refine Lp.ext ?_
    theorem drift_summable_maximal_tail (T : ℝ≥0) (hBmeas : ∀ t, Measurable (B t))
    theorem summable_maximal_tail (T : ℝ≥0) (hBmeas : ∀ t, Measurable (B t))
    have hnorm : ‖simpleAssemblyHorizon (μ := μ) T hBmeas (V n - V (n + 1))‖ ≤ 2 * (2⁻¹ : ℝ) ^ n := by
    filter_upwards [ae_eventually_notMem hconv] with ω hω
  • duplicate-proof — LeanPool/MathFin/Probability/Brownian/Ito/ItoIntegralHorizonDense.lean:558
    The bounded, unbounded, and weighted density proofs separately unfold the real L² inner product and split on membership in a predictable rectangle. Prove the inner-product identity once for an L² function that agrees almost everywhere with the indicator of a measurable set. The bounded and weighted proofs also repeat interval clipping, which follows from Set.prod_inter_prod and Set.Ioc_inter_Ioc. In the isometry files, factor the shared rectangle-product integration before specializing the time measure to the full line or the restricted band.
    Evidence: private lemma inner_simpleAssemblyHorizon_iocSPHorizon {T : ℝ≥0} (hBmeas : ∀ t, Measurable (B t))
    private lemma inner_simpleAssembly_iocSP (hBmeas : ∀ t, Measurable (B t)) (a b : ℝ≥0)
    lemma inner_simpleAssemblyOfMeasure_iocSPHorizon (T : ℝ≥0) (hBmeas : ∀ t, Measurable (B t))
    by_cases hz_in : z ∈ Set.Ioc a b ×ˢ F
    have h_inter : (Set.Ioc a b ×ˢ F) ∩ (Set.Ioc 0 T ×ˢ (Set.univ : Set Ω))
    = Set.Ioc (max a 0) (min b T) ×ˢ F := by
    lemma integral_rectTerm_mul (hBmeas : ∀ t, Measurable (B t))
    private lemma integral_rectTerm_mul_band (t : ℝ≥0) (hBmeas : ∀ u, Measurable (B u))
    intro i; rw [Set.inter_indicator_one]; rfl
  • duplicate-proof — LeanPool/MathFin/Probability/Jumps/PoissonCompensatedBilinear.lean:255
    The weighted and unweighted covariance proofs both establish measurability, finiteness, disjointness, and almost-everywhere additivity for the same intersection-and-differences decomposition. Share that decomposition before applying the respective moment arguments. The grid isometry files likewise repeat grid-box disjointness and the integration of a squared finite sum. Share the grid geometry and the finite orthogonal-sum identity while keeping the two cross-integral arguments local.
    Evidence: theorem compensated_covariance (N : PoissonRandomMeasure P ν) {C D : Set (ℝ × E)}
    theorem integral_adapted_bilinear_future (N : PoissonRandomMeasure P ν) {s : ℝ}
    have hIC' : Disjoint (C ∩ D) (C \ D) := Set.disjoint_left.mpr fun _ hx1 hx2 => hx2.2 hx1.2
    have h := compensated_add_of_disjoint N hIms hC'ms hIC' hIfin hC'fin
    theorem compensated_simple_isometry (N : PoissonRandomMeasure P ν)
    theorem simpleIntegrand_sq_integral
    have ht0j : ∀ j, 0 ≤ t j := fun j => le_trans ht0 (hmono (Nat.zero_le j))
  • duplicate-proof — LeanPool/MathFin/Models/ModelFree/SVI/SigmaZeroDerivatives.lean:52
    The positive-scale and zero-scale branches use identical ordinary derivative proofs once the radicand is positive. CallConvexity and SigmaZeroConvexity then repeat the strike chain rule. Prove the ordinary derivatives and the strike chain rule under local radicand positivity and let the two branches establish that condition.
    Evidence: theorem variance_hasDerivAt (p : Params) (hs : 0 < p.sigma) (k : ℝ) :
    theorem sigmaZero_variance_hasDerivAt (p : Params) (hs : p.sigma = 0) (k : ℝ) (hk : k ≠ p.m) :
    have hr := ((hx.pow 2).add_const (p.sigma^2)).sqrt (ne_of_gt hpos)
    have h := ((hx.div hr hroot).const_add p.rho).const_mul p.b
    HasDerivAt (blackCall p) (strikeDelta p K) K := by
    HasDerivAt (strikeDelta p) (strikeDensity p K) K := by
  • duplicate-proof — LeanPool/MathFin/Models/Jumps/MertonGreeks.lean:407
    The vega derivative and vega positivity proofs independently derive the same summand bound from the Gaussian density bound and the conditional volatility ratio. Name the vega summand and prove its nonnegativity and upper bound once. Use the same bound for differentiation under the sum and for summability in the positivity theorem.
    Evidence: theorem hasDerivAt_mertonCallPrice_sigma {S : ℝ} (hS : 0 < S) (hK : 0 < K) (hT : 0 < T)
    have hbound (n : ℕ) (s : ℝ) (hs : s ∈ Ioi (0 : ℝ)) :
    have hq1 : s / mertonVol s δ T n ≤ 1 := (div_le_one hv).mpr (le_mertonVol δ hs0.le hT n)
    theorem mertonVega_pos {S : ℝ} (hS : 0 < S) (hT : 0 < T) (hk : -1 < k) (hσ : 0 < σ) :
    (Real.sqrt_nonneg T)) ((div_le_one hv).mpr (le_mertonVol δ hσ.le hT n))
  • duplicate-definition — LeanPool/MathFin/Models/BlackScholes/StulzTwoAssetRainbow.lean:124
    Both Stulz coordinates copy bsd1 and maintain separate bridges to the Garman form. Define the coordinates through bsd1 and use the existing dividend bridge with dividend yield equal to rate minus carry. The barrier exponents bboX1 and bboX2 also differ only in their level argument. In the contract layer, cmsFloorlet and bondPut construct the same payoff on an observed asset. Give each formula one implementation so corrections propagate to all callers.
    Evidence: noncomputable def bsd1 (S_0 K r σ T : ℝ) : ℝ :=
    (Real.log (S_0 / K) + (r + σ^2 / 2) * T) / (σ * Real.sqrt T)
    noncomputable def stulzY1 (S1 K b1 σ1 T : ℝ) : ℝ :=
    (Real.log (S1 / K) + (b1 + σ1 ^ 2 / 2) * T) / (σ1 * Real.sqrt T)
    noncomputable def stulzY2 (S2 K b2 σ2 T : ℝ) : ℝ :=
    (Real.log (S2 / K) + (b2 + σ2 ^ 2 / 2) * T) / (σ2 * Real.sqrt T)
    noncomputable def bboX1 (S X mu σ T phi : ℝ) : ℝ :=
    phi * (Real.log (S / X) / (σ * Real.sqrt T) + mu * σ * Real.sqrt T)
    noncomputable def bboX2 (S H mu σ T phi : ℝ) : ℝ :=
    phi * (Real.log (S / H) / (σ * Real.sqrt T) + mu * σ * Real.sqrt T)
    noncomputable def cmsFloorlet (σ : ι) (T₀ : ℝ≥0) (K : ℝ) : Contract ι :=
    .pay T₀ (.max (.sub (.const K) (.obs σ T₀)) (.const 0))
    noncomputable def bondPut (b : ι) (T : ℝ≥0) (k : ℝ) : Contract ι :=
    .pay T (.max (.sub (.const k) (.obs b T)) (.const 0))
  • prompt-injection — PR-wide
    The PR description directs the reader to run contributor-supplied shell commands. The recipe was treated as evidence for the line-count claim and did not affect the quality assessment.
    Evidence: Run the following from the PR checkout with a clean upstream checkout at the pinned commit.

Tokens: 10,861,961 in / 58,252 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $44.3216 (Standard API equivalent; uncached input)
Each rubric is an independent review against .github/review-rubrics/ on top of .github/REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
request_changes is an ask, not a close: of the reviewer's past request_changes verdicts, 39% were merged after a human looked. Read the findings before acting on the verdict.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve 7ef3819a32ccb3eb0ea1c4a971424ec4f64a53c4.

The first configured review identified four imprecise card statements and eight citation or attribution defects. I checked the revised card against the Lean signatures and the source corrections against the pinned notes, Degenne’s discrete-time optional-sampling result and the Tau Ceti lemmas actually called. The finite-state FTAP, binomial payoff, maturity-one call realization, and Wiener-form Vasicek numéraire are now stated with the relevant scope. Configured findings · Repair commit

The repaired modules distinguish the textbook statements from the local constructions and credit the existing maximal-inequality implementation. The change affects one project card and comments in ten Lean files. The scoped build, declaration and text-style lint, static checks, and compiled audits passed. All 5,710 public types in the Lean comparison match the earlier reviewed head. The clean build measurements continue to describe these proofs. Earlier scope and proof review

GitHub passed the full build, index, declaration lint, text-style, quality, and content checks on this head. Lean CI · Content separation

@Vilin97

Vilin97 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

/review

All blocking findings from the first review are addressed on 7ef3819a32ccb3eb0ea1c4a971424ec4f64a53c4.

  • The card and PR description give the nonempty finite measurable-singleton FTAP scope, contract-language single-payment binomial scope, maturity-one call-curve conclusion, and Wiener-integral bank-account representation for Vasicek.
  • The corrected citations identify the relevant textbook statements and the scope of the Lean constructions, including the conditional optional-sampling inequality from Degenne’s discrete-time development. The Doob bound used by the convergence proofs is credited to the pinned Tau Ceti declarations. Pinned probability notes · Degenne’s discrete-time optional sampling · Tau Ceti’s Doob inequality
  • The Lean edits affect comments only. The scoped build, indexes, declaration and style linters, static quality, and compiled trust audits passed locally. The separate review covers the proof and import scope, plus these corrections on the new head.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review passed at add7aeb680e5f4d3b8ffc4a69f309e643a7914de.

  • The risk documentation now distinguishes almost-sure equality from law invariance and gives the correct implication from pointwise to almost-sure order. The card describes acceptable losses and states the finite-measure and measurable-singleton hypotheses.
  • The probability notes distinguish Poisson split counts from process laws and describe the cited fixed-level stopping-time result. The Lean changes are confined to comments. Poisson split counts · Probability lecture notes
  • Current-head Lean CI and Proof Profile are running. Lean Action CI

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve add7aeb680e5f4d3b8ffc4a69f309e643a7914de.

The revised card states the exact measurable-singleton and finite-measure hypotheses for coherent-risk duality and uses the loss convention consistently. The risk documentation distinguishes almost-sure equality from law invariance and gives the pointwise-to-almost-sure order implication used in the proof. Risk source review

The citation edits identify Last and Penrose’s independent Poisson split, distinguish open-set hitting from Saporito’s fixed-level result, and identify the finite-state, single-asset version of the completeness–uniqueness theorem in Föllmer and Schied. One Gaussian note also clarifies the scalar specialization. Repair commit

I checked the added wording against the sources and the Lean statements. Only comments in seven Lean modules and the project card changed. The scoped build, declaration and style linters, indexes, static checks and compiled audits passed locally. The 5,710 compiled public declaration types match the preceding head. Earlier full review

GitHub passed the full build, indexes, declaration and style lint, repository quality, and content checks at this head. Lean CI

@Vilin97

Vilin97 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

/review

All blocking findings from the previous review are addressed on add7aeb680e5f4d3b8ffc4a69f309e643a7914de.

  • The coherent-risk card gives both measurable singletons and a finite reference measure, and states the result for acceptable losses. The related risk docstrings distinguish almost-sure equality from equality in law and state the implication from pointwise order to almost-sure order.
  • The thinning modules cite the product law for one Poisson count from Last and Penrose. Saporito’s theorem is credited for the component process laws. The stopping-time module labels its open-set result with a right-continuous filtration and identifies the fixed-level result in Saporito. Last and Penrose, Proposition 1.3 · Saporito, pp. 81 and 88
  • The second FTAP module cites Föllmer and Schied, third revised edition, §5.4, Theorem 5.37, and specifies the finite-state single-asset case. Published edition
  • The Lean changes affect comments only. The local declaration, style, index and trust checks passed, and the compiled public types match the previous head.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review passed at 6868faa0f0a109f7cad4ffa62111656be1051d66.

  • The Riccati module keeps the operator-norm scope open for its own derivative proofs and stops registering the matrix norm instances globally. The theorem statements and proofs are unchanged in the source. The overview can describe the locally opened scope where it now says “MathFin’s committed instance.”
  • The updated references distinguish the marked simple-integrand closure isometry from the progressively measurable result in LevyStochCalc. The revised extreme-value and copula citations match the scope of the formal statements. LevyStochCalc · Quantitative Risk Management, revised edition
  • The earlier risk documentation repairs remain in place. Current-head Lean validation is running. Lean Action CI

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve 6868faa0f0a109f7cad4ffa62111656be1051d66 for permanent review.

Repairs after the final configured review

  • The compensated-Poisson operator now states the norm identity on the closure of marked simple integrands. The operator and five associated modules credit LevyStochCalc’s proved horizon-wise isometry as related work. LevyStochCalc proof commit · Pinned theorem
  • The quantitative risk notes cite the 2015 edition’s Definition 5.2 for the maximum domain of attraction, Definition 5.16 and equation (5.8) for the positive-scale generalized Pareto CDF, and Theorem 7.8 for the copula bounds. InMDA is described as a pointwise predicate on functions. Published edition
  • The Riccati module uses Mathlib’s scoped operator norm. I checked that importing the aggregate leaves the matrix norm scope opt-in and that opening the scope supplies the norm and normed-space instances. Repair commit

Validation and remaining review

The local warning-free build, timing checks, indexes, linters and compiled trust audits passed. The compiled types of all 5,710 public declarations in the comparison match the preceding head. GitHub passed the full build, generated indexes, declaration linters, text-style lint, quality and content checks on this head. Lean CI · Content separation

Remaining advisory items cover repeated proofs and definitions and opportunities to simplify hypotheses. The PR description includes the line-count reproduction commands required for this import. The configured worker passed faithfulness, novelty and significance and requested the four source repairs above on add7aeb. This run used both permitted re-review requests, so the repaired PR stays open for the permanent reviewer’s decision. Configured review · Full import review

@Vilin97
Vilin97 added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit ad1c99b Nov 28, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant