The instruments: the European call and put, the cash-or-nothing digital, the forward, the capped call and the power call, each a Contract Unit written in the payoff language of Contracts/Core.lean; the exchange option is a Contract (Fin 2) on two underlyings. Nothing here assumes a model or a pricing measure. What is proved is what the instruments pay, along every scenario. What follows for their values in every model, through the linearity of Contract.value, is in Pricing/Parity.lean, and their prices in a particular model live in that model's file (Models/BlackScholes/BlackScholes.lean).
The capped call is defined by composition, as a long call at K₁ and a short call at K₂; cappedCall_payoff_eq is what earns it the name: for K₁ ≤ K₂ it pays min(max(S − K₁, 0), K₂ − K₁) (MathFin.cappedCall_eq_bull_spread).
Main definitions
europeanCallPayoff, europeanPutPayoff — the call's and the put's payoff on their own.europeanCall, europeanPut, digitalCall, forward — the single-maturity instruments.cappedCall — a long europeanCall K₁ T combined with a short europeanCall K₂ T.powerCall — the call on S_T ^ a, the power being the payoff language's rpow node.geomAsianCall — the call on the geometric average of the underlying over n dates, from Payoff.obsProd and rpow at 1/n.upAndIn — the discretely monitored up-and-in knock-in on a payoff f, from the running maximum Payoff.obsMax and indicatorLt.chooser — the chooser option as the static portfolio of a call and a put at the chooser date.exchangeOption — pays max (S¹_T − S²_T) 0.
Main results
pathPV_europeanCall_eq_put_add_forward — a call pays a put plus a forward on every path.cappedCall_payoff_eq — for K₁ ≤ K₂, cappedCall K₁ K₂ T pays the capped payoff.eval_upAndInPayoff — the knock-in pays f exactly on the scenarios observed at or above the barrier at a monitoring date.
Source
The layered separation of contract semantics from pricing semantics, and the framing "the contract is not the model", are due to Paul Bilokon, The Contract Is Not the Model: Proof-Carrying Exotic Derivatives and the Economics of Model Risk (working paper, 9 August 2026; Mathematical Finance, Imperial College London), with code at <https://github.com/thalesians/lean_contracts> (Apache-2.0). That paper in turn builds on the compositional contract-DSL of Peyton Jones, Eber and Seward (2000) and the certified-contract work of Bahr, Berthold and Elsman (2015) and Annenkov (2018).
Compositional contract construction — building an instrument from simpler ones and pricing it by composition — is the core of Bilokon's DSL and of Peyton Jones, Eber and Seward before him; what is added here is that the composition is priced through the library's own closed forms rather than left as a denotational identity.
No code is copied from lean_contracts; every definition and proof here is written for this library. See docs/specs/2026-08-16-contracts-tower-design.md §6 for the full credit line.
References
- P. Bilokon, The Contract Is Not the Model [Bilokon2026]
- J. C. Hull, Options, Futures, and Other Derivatives [Hull], 12.3
Tags
European option, digital option, capped call, chooser option, power call, exchange option, geometric Asian, barrier option, knock-in, MSC 91G20, JEL G13
Import neighbourhood
Above: what it imports. Below: what imports it.
Corpus entries
mf-contract-capped-call · contracts.json · full statement
Capped Call as a Composed Contract
The composed contract cappedCall K1 K2 T -- a long call at K1 plus a short call at K2 -- really pays min(max(S_T - K1, 0), K2 - K1) in every scenario. This payoff identity is what earns the composed object its name; the contract's Black-Scholes value is a separate theorem, published as mf-contract-capped-call-value.