Research project · Lean 4

Certified Option Exercise

When do computed price bounds justify exercising an option early? This project checks certificates for Bermudan option prices and decisions in a finite model.

Read the early-exercise example Computational Finance handbook · Chapter 14

What Lean checks

The Lean kernel checks that every accepted certificate encloses the model price. At an exercise node, the checker certifies exercise or continuation when the payoff lies strictly outside the continuation interval. If the interval contains the payoff, the result is unresolved.

The result concerns a supplied finite binary tree with rational inputs and exercise on specified dates.

Read the checker and soundness proofs

Two-step example

In the checked put example, the spot and strike both start at 100. The two-step price is 1175/147 with an exercise date at step one, and 925/147 with exercise at maturity only. On the down branch at step one, immediate exercise pays 20 while continuation is worth 320/21.

Run the checker

With the pinned Lean 4 toolchain, go to the repository’s lean directory and run the supplied JSON example. The path D selects the down branch. The checker returns the exact interval [20, 20] and the verdict exercise.

lake exe optioncert examples/bermudan-put.json D

Open the code and build instructions on GitHub

Sources

A kernel-checked bridge proves that these bounds also enclose the MathFin v2.0.0 Bermudan price when the model parameters, payoff and exercise schedule agree.