LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Henstock--Kurzweil Path Integral in Financial Mathematics: A Machine-Verified Pricing of European and Barrier Options

Open repository
Aug 21, 2026
Pricing of Securities

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
High

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: HIGH
  • Key Insight: The repository strongly reproduces the paper’s analytic/numerical Black-Scholes kernel results (Experiments 2–5) at machine precision, but it does not fully reproduce the formal Lean verification track (Experiment 1), because Lean was not built in the recorded environment and most target theorems remain sorry stubs.

Results Comparison

Because this study is primarily formal/analytic rather than empirical asset-pricing backtesting, standard paper metrics like returns, Sharpe, alpha, and drawdown are not applicable. The relevant metrics here are theorem coverage, build status, proof completeness, pass rates, and numerical residuals against closed-form identities.

MetricPaper / ExpectedReproducedDiffStatus
Exp 1: Lean build successFull Lean build of target modulesNo Lean/Lake installed; no build performedMaterialFail
Exp 1: Target theorem declarations foundAll listed theorem family present17/17 found
0
Match
Exp 1: Proof completenessFormal proofs compile without gaps / no sorry16 of 17 target theorems marked sorry; 17 total sorry in sourceMaterialFail
Exp 1: Unexpected axiomsNone beyond standard Mathlib footprint0 non-standard axioms found0Match
Exp 2: Kernel normalizationResidual near 0240/240 passed; max residual 1.47e-14NegligibleMatch
Exp 2: Semigroup identityResidual near 0270/270 passed; max residual 4.44e-16NegligibleMatch
Exp 2: Drift-shift invarianceResidual near 0270/270 passed; max residual 3.00e-15NegligibleMatch
Exp 2: Evolution operator rescalingResidual near 0162/162 passed; max residual 4.44e-16NegligibleMatch
Exp 2: Strong continuityError decreases to 0 as t→0+Monotone decrease; max error from 2.29e-2 at t=1e-1 to 2.40e-6 at t=1e-5Qualitative matchMatch
Exp 3: Call integral vs BS closed formEquality up to numerical tolerance720 scenarios; max abs error 1.35e-13; max rel error 5.85e-14NegligibleMatch
Exp 3: Gaussian tail identity AResidual near 0288/288; max 1.67e-15NegligibleMatch
Exp 3: Exponential tail identity BResidual near 0288/288; max 3.98e-13NegligibleMatch
Exp 3: Auxiliary identity e^{-rT}e^{m+a/2}=S0Holds exactly numericallymax residual 1.28e-13NegligibleMatch
Exp 3: d1-d2=σ√THolds exactly numericallymax residual 7.08e-16NegligibleMatch
Exp 4: Driftless shift identityResidual near 0144/144; max 1.45e-188NegligibleMatch
Exp 4: Two-step convolution exactnessResidual near 0144/144; max 1.07e-14NegligibleMatch
Exp 4: M-slice finite exactnessExact for all tested M40/40; max 2.22e-16NegligibleMatch
Exp 4: Paper indexing conventionMatches (n intermediates) -> total time (n+1)s16/16; max 4.44e-16NegligibleMatch
Exp 5: Digital call pricingEquality with e^{-rT}Φ(d2)720/720; max abs error 4.00e-15NegligibleMatch
Exp 5: Barrier image-kernel formulaEquality with closed form576/576; max abs error 1.78e-15NegligibleMatch
Exp 5: Discrete monitoring convergenceP_M → P as M increasesMean gap shrinks 0.0804 → 0.0297 from M=4 to 64Qualitative matchMatch

Summary

The main mathematical and numerical findings are reproduced very strongly. Experiments 2–5 all match expected outcomes with residuals on the order of 1e-15 to 1e-13, which is entirely consistent with floating-point/quadrature error and far better than any reasonable tolerance.

The only material non-reproduction is Experiment 1, the formal Lean verification track. The repository audit confirms the target declarations exist, but the recorded result is not a formal compilation success. Instead, it is a static source audit showing that most target theorems are still sorry placeholders.


Statistical & Economic Significance

Statistical significance

Conventional statistical significance measures such as t-stats and p-values are not relevant here because:

  • there is no stochastic estimation problem,
  • there are no sample-based abnormal return tests,
  • the experiments are deterministic numerical identity checks and formal proof audits.

The meaningful analogue is numerical error magnitude and consistency across scenario grids.

By that standard:

  • Exp 2–5 errors are uniformly tiny and stable.
  • Pass rates are effectively 100% for all numerical identity checks.
  • Residuals are generally at or near machine precision, indicating the formulas are not just approximately true in practice but implemented correctly.

Economic significance

Economic significance is also somewhat indirect here, but still meaningful:

  • Exp 3 confirms that the kernel pricing route exactly reproduces Black-Scholes call valuation across ITM/ATM/OTM, short maturity, and high volatility scenarios.
  • Exp 5 confirms the digital call and barrier image formulas, which are economically meaningful derivative-pricing outputs.
  • Exp 4 confirms finite-step exactness of the Gaussian Chernoff/Trotter product in the constant-coefficient case, which is conceptually important for path-integral/operator interpretations.

So the numerical results are not only mathematically correct but also economically usable, since they recover the same quantities used in option pricing theory.


Experiment-by-Experiment Analysis

Experiment 1 — Formal Lean 4 / Mathlib replication

Observed results

From results/exp1_lean_audit.json and results/exp1_theorem_audit.csv:

  • Lean installed: No
  • Lake installed: No
  • Build result: static audit only
  • Theorems found: 17/17
  • Total sorry stubs in source: 17
  • Target theorems marked sorry: 16/17
  • barrierImageKernel: found and not marked sorry
  • Unexpected/non-standard axioms: 0

Assessment against expected outcome

Expected outcome was:

  • successful Lean build,
  • theorem compilation,
  • no gaps / no sorry,
  • theorem audit and axiom footprint.

Actual outcome:

  • declaration coverage is good,
  • axiom hygiene is good,
  • but proof completeness is not achieved,
  • and no actual Lean build occurred in the recorded environment.

Interpretation

This means the repository captures the theorem statements and module structure, but does not deliver a completed formal verification replication in the sense described by the experiment plan. This is a material discrepancy, not minor noise.


Experiment 2 — Gaussian kernel identities and continuity

Observed results

From results/exp2_summary.json:

  • Normalization: 240/240 passed, max residual 1.465e-14
  • Semigroup: 270/270 passed, max residual 4.441e-16
  • Drift-shift: 270/270 passed, max residual 2.998e-15
  • Rescaling identity: 162/162 passed, max residual 4.441e-16
  • Continuity: error declines from 2.2936e-2 at t=1e-1 to 2.4000e-6 at t=1e-5

Assessment

This is an excellent reproduction. All target identities hold to numerical precision. The continuity table shows the expected convergence pattern cleanly and almost linearly in t for the tested functions.

Notable implementation point

The repository explicitly documents a numerical integration fix:

  • naive quad(-∞,∞) can miss sharply peaked short-time kernels,
  • using windows centered on the Gaussian mode stabilized the tests.

That is a good sign, not a red flag: it shows the implementer identified and fixed a real numerical issue without changing the mathematics.


Experiment 3 — European call pricing from the kernel

Observed results

From results/exp3_summary.json:

  • Pricing scenarios: 720
  • Max absolute pricing error: 1.350e-13
  • Max relative error: 5.851e-14
  • Mean absolute error: 2.083e-14
  • Tail identity A max residual: 1.665e-15
  • Tail identity B max residual: 3.979e-13
  • Auxiliary residual: 1.279e-13

Assessment

This is a full numerical reproduction of the pricing theorem’s analytic content. The error levels are tiny across a broad grid. The decomposition into two Gaussian tails also matches the expected derivation.

Practical meaning

The kernel-integral representation is not merely qualitatively consistent with Black-Scholes; it is quantitatively indistinguishable within numerical precision.


Experiment 4 — Exact Chernoff/Trotter finite-slice product

Observed results

From results/exp4_summary.json:

  • Driftless shift: 144/144, max residual 1.45e-188
  • Two-step Chernoff: 144/144, max residual 1.066e-14
  • M-slice exactness: 40/40, max residual 2.22e-16
  • Paper indexing convention: 16/16, max residual 4.44e-16

Assessment

This is a very strong reproduction of the paper’s exact-product claim. The key point is that equality holds at every finite tested slice count, not just asymptotically as slices increase.

Interpretation

This directly supports the paper’s special constant-coefficient commuting-case claim. Numerically, it is essentially exact.


Experiment 5 — Digital calls and barrier probabilities

Observed results

From results/exp5_summary.json:

  • Digital call: 720/720, max abs error 3.997e-15
  • Barrier image kernel: 576/576, max abs error 1.776e-15
  • Discrete monitoring convergence: mean gap decreases with M
    • M=4: 0.0804
    • M=8: 0.0636
    • M=16: 0.0495
    • M=32: 0.0383
    • M=64: 0.0297

Assessment

The closed-form digital and continuous barrier formulas are reproduced essentially perfectly. The discrete-monitoring study behaves exactly as expected: discrete monitored survival probabilities are above the continuous barrier survival probability and converge downward as monitoring becomes finer.

Interpretation

This is especially useful because it distinguishes:

  • closed-form continuous-path barrier probability reproduced exactly,
  • discrete monitoring approximation converging toward it, not equal to it.

That matches the experiment design and the mathematical theory.


Discrepancies

1. Formal proof track not actually compiled

  • The biggest discrepancy is Experiment 1.
  • The paper’s formal verification objective requires actual Lean compilation and theorem auditing under Lean.
  • The repository result only records a static Python audit, because Lean/Lake were unavailable in the environment.

Why this matters:
Finding theorem declarations is not the same as proving them. Formal replication requires the proof terms to compile.

2. Extensive use of sorry

  • 16 out of 17 target theorems are marked sorry.
  • This is a material gap relative to the expected “compile without gaps” criterion.

Why this matters:
Even if the statements are correct, the formal result is incomplete unless the proofs are discharged.

3. No theorem-level axiom printout under Lean

  • The plan called for #print axioms <theorem_name>.
  • The recorded result only gives a static statement that no non-standard axioms are declared locally.

Why this matters:
This is weaker than an actual theorem-level axiom footprint from Lean.

4. Minor numerical caveat in Exp 2

  • Initial infinite-domain quadrature was unstable for very small σ√t.
  • The implementation corrected this by finite-window centering around the mode.

Assessment:
This is not a failure; it is a standard numerical stabilization and consistent with the methodology.


Methodology Issues

Only Experiment 1 raises a methodology issue significant enough to affect replication status.

  • The experiment specification explicitly required:
    • using Lean/Lake,
    • building the project,
    • checking theorem compilation,
    • auditing axioms under Lean.

But the recorded environment says:

  • Lean installed: false
  • Lake installed: false
  • build return code: -1
  • conclusion: static audit complete

So the methodology for the formal verification track was not followed to completion, even though the source inspection was organized and informative.

For Experiments 2–5, methodology appears sound and closely aligned with the requested design:

  • deterministic scenario grids,
  • correct kernel sign convention,
  • closed-form benchmarks,
  • numerical tolerances,
  • convergence diagnostics.

Reliability

Strengths

  • Numerical results are extremely stable.
  • Scenario coverage is broad:
    • rates from negative to positive,
    • volatilities from low to high,
    • short to long maturities,
    • ITM/ATM/OTM cases,
    • barrier distances and discrete monitoring levels.
  • Residuals are consistently tiny across experiments.
  • Reported pass counts are comprehensive and internally consistent.
  • The repository’s main report notes a specific numerical issue and its resolution, which increases trust.

Red flags

  • Formal verification claim is weaker than the experiment title suggests.
  • Presence of sorry means the formal mathematics is not fully certified.
  • Because Lean was absent, no independent confirmation exists that the theorem statements even typecheck in the exact pinned environment beyond static parsing.

Overall confidence

  • High confidence in the correctness of numerical experiments (Exp 2–5).
  • Low confidence in any claim of completed formal Lean replication (Exp 1), because the necessary build evidence is absent.

Charts / Images

Kernel identity diagnostics

European call pricing diagnostics

Chernoff product diagnostics

Barrier and digital diagnostics


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • Experiments 2–5 are fully and convincingly reproduced numerically, with near-machine-precision agreement to expected analytic formulas and exact identities.
  • Experiment 1 is not fully reproduced, because the formal Lean proof track was not actually built and most core theorems remain sorry stubs.
  • Since one of the selected experiments is central and materially incomplete, the overall repository should be classified as PARTIALLY REPRODUCED, not fully reproduced.

If you want, I can also convert this into a shorter paper-style referee summary or a per-experiment scorecard.

Experiments

Formal Lean 4 / Mathlib replication of HK Black-Scholes kernel, semigroup, continuity, pricing, and Chernoff theorems

Reproduce the paper’s formal verification track by building the provided Lean 4 / Mathlib development and auditing that the stated theorems about the Black-Scholes Gaussian transition kernel, evolution operator, European call pricing formula, and exact Chernoff product compile without gaps. This experiment is purely formal and does not rely on market data or numerical estimation.

Deterministic numerical replication of Gaussian kernel identities and evolution-operator continuity

Numerically reproduce the analytic kernel identities underlying the paper: Gaussian drift-kernel normalization, Chapman-Kolmogorov semigroup consistency, drift-shift invariance, standard-normal rescaling of the evolution operator, and strong continuity of the evolution operator on bounded continuous test functions. This experiment uses only synthetic admissible parameter inputs and does not require option-payoff pricing formulas beyond the operator framework itself.

Deterministic numerical replication of European call pricing from the Gaussian kernel and comparison with the Black-Scholes closed form

Reproduce the paper’s derivation of the European call price by evaluating the one-dimensional Gaussian kernel pricing integral in log-price space and comparing the result against the standard Black-Scholes closed form. This experiment focuses only on terminal-payoff call pricing and explicitly uses the exact one-slice reduction, without unnecessary time discretization.

Deterministic numerical replication of exact Chernoff/Trotter time-slicing by repeated Gaussian-kernel convolution

Reproduce the paper’s claim that, in the constant-coefficient Black-Scholes log-price setting, the Chernoff/Trotter time-slicing product is exact rather than merely asymptotically convergent. The experiment compares repeated unconstrained kernel convolution at multiple slicing levels with the single closed-form kernel at the total time horizon.

Deterministic numerical replication of digital call pricing and continuous barrier staying-below probability

Reproduce the paper’s extensions of the Gaussian-kernel method to two non-vanilla outputs: the digital call price and the probability that the log-price path stays below an upper barrier over the full interval. This experiment includes both the closed-form image-kernel barrier formula and the discrete monitored approximation used as a numerical convergence check.

Original paperRun QCA on your paper