MathFin
Map / Valuation · Trees / MathFin.Models.Binomial.Binomial

The contracts priced in the binomial model

MathFin.Models.Binomial.BinomialMSC 91G20MSC 60G42JEL G13 source

The second model for the instruments of Contracts/Instruments/Options.lean, after Models/BlackScholes/BlackScholes.lean. The instruments are the same terms; only the model changes.

The binomial market with step length h is a model map on coin-flip paths ω : ℕ → Bool: at time t the underlying is the spot after the ⌊t / h⌋ flips made by then, spotPath S₀ u d ⌊t / h⌋ ω. Unlike BlackScholes.assets it is a genuine path, not a terminal value read at every time, so a path-dependent instrument already has the model it needs. Cash is discounted at ρ per step, and paths are drawn from coinFlipMeasure q with q = crrUpProb u d ρ: i.i.d. flips, up with the risk-neutral probability. Everything about the tree itself (the path measure, the spot's measurability and bound, the CRR sequence) lives in MathFin/Binomial/; this file is only the translation of contracts into it.

A single cash flow paying g of the spot at a maturity T that falls on step N is worth the backward-induction price binomialPrice u d ρ g N S₀ (value_pay_eq_binomialPrice); this is binomialPrice_eq_integral_coinFlipMeasure, which writes the tree price as an expectation over paths. Every fixed-date contract is integrable here, because the spot after finitely many flips is bounded (integrable_pathPV), so a composed instrument is priced by composition with no integrability side conditions to prove.

The value is also a price in the sense of replication. Under no-arbitrage, a European contract's discounted payoff is, on every path, its value plus the gains of a predictable strategy in the discounted spot (pathPV_eq_value_add_gains). The strategy comes from the tree (binomialPrice_replication, Models/Binomial/MartingaleRepresentation.lean).

Main definitions

  • Binomial.assets — the binomial market with step h as a model map.
  • Binomial.discount — discounting at ρ per step.

Main results

  • Binomial.value_pay_eq_binomialPrice — a European payoff is worth its tree price.
  • Binomial.integrable_pathPV — every fixed-date contract's discounted payoff is integrable.
  • Binomial.value_europeanCall, value_europeanPut, value_digitalCall — each is the tree price of its payoff.
  • Binomial.value_forward — under no-arbitrage the forward is worth S₀ − K e^{−ρN}.
  • Binomial.value_cappedCall — the capped call is worth the difference of two call values.
  • Binomial.pathPV_eq_value_add_gains — a European contract's value is the cost of its hedge: on every path its discounted payoff is its value plus the gains of a predictable strategy in the discounted spot.

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).

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. Cox, S. A. Ross and M. Rubinstein, Option pricing: a simplified approach [CoxRossRubinstein1979]
  • J. C. Hull, Options, Futures, and Other Derivatives [Hull], 12.3
  • S. E. Shreve, Stochastic Calculus for Finance I: The Binomial Asset Pricing Model [ShreveSCFI], Theorem 1.2.2; ch. 1-2

Tags

binomial tree, Cox–Ross–Rubinstein, replicating strategy, risk-neutral probability, coin-flip paths, MSC 91G20, MSC 60G42, JEL G13

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-contract-binomial-european-payoff · contracts.json · full statement
A European Payoff's Binomial Value Is Its Tree Price

In the binomial model with step length h and per-step rate rho (paths of i.i.d. coin flips that go up with probability q = crrUpProb u d rho, the underlying at time t the spot after floor(t/h) flips, cash discounted by e^(-rho t/h)), a single cash flow at a maturity T with T/h = N, paying g of the underlying at T, is worth the N-step backward-induction price binomialPrice u d rho g N S0. Only q in [0, 1] is assumed, not no-arbitrage.

mf-contract-binomial-capped-call · contracts.json · full statement
Capped Call in the Binomial Model by Composition

In the binomial model, the capped call cappedCall K1 K2 T (a long call at K1 and a short call at K2) is worth the difference of the two N-step tree call prices, for any strikes. It is priced by composition (Contract.value_both and Contract.value_scale), and the integrability that composition needs holds for every fixed-date contract in the binomial model.

mf-contract-binomial-hedge · contracts.json · full statement
A European Contract's Binomial Value Is the Cost of Its Hedge

In the binomial model under no-arbitrage, with paths drawn under the risk-neutral up-probability and S0 != 0, a single cash flow at T = N steps paying g of the underlying at T has a predictable strategy H in the discounted spot such that, on every path, the contract's discounted payoff equals its Contract.value plus the strategy's gains, its martingaleTransform sum_{k<N} H_{k+1} (S~_{k+1} - S~_k) against the discounted spot.

Declarations 11

defMathFin.Contracts.Binomial.assetssource
ℝ → ℝ → ℝ → ℝ → Unit → NNReal → (ℕ → Bool) → ℝ

The binomial market with step length h as a model map: at time t the underlying is the spot after the ⌊t / h⌋ flips made by then.

defMathFin.Contracts.Binomial.discountsource
ℝ → ℝ → NNReal → ℝ

Discounting at ρ per step of length h: a cash flow at time t is worth e^{−ρ t / h} of one paid today.

theoremMathFin.Contracts.Binomial.value_pay_eq_binomialPricesource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → ∀ {a : Payoff Unit} {g : ℝ → ℝ}, (∀ (s : Scenario Unit), Payoff.eval s a = g (s () T)) → Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (Contract.pay T a) = binomialPrice u d ρ g N S₀

A European payoff is worth its tree price. Under the law of i.i.d. flips that go up with the risk-neutral probability crrUpProb u d ρ, if a cash flow at T pays g of the underlying at T, whatever the scenario, and T falls on step N, its binomial value is the backward-induction price binomialPrice u d ρ g N S₀.

theoremMathFin.Contracts.Binomial.integrable_pathPVsource
∀ {q : NNReal} (hq : q ≤ 1) (S₀ u d h : ℝ) (D : NNReal → ℝ) {c : Contract Unit}, c.FixedDated → Integrable (fun ω => Contract.pathPV D (scenarioAt (assets S₀ u d h) ω) c) (coinFlipMeasure q hq)

Every fixed-date contract is integrable in the binomial model, under any law of the flips: the spot after finitely many flips is measurable and bounded (measurable_spotPath, abs_spotPath_le), so Contract.integrable_pathPV_of_bounded applies.

theoremMathFin.Contracts.Binomial.value_europeanCallsource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ K : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (europeanCall K T) = binomialPrice u d ρ (fun S => max (S - K) 0) N S₀

The European call's binomial value is the tree price of max (S − K) 0.

theoremMathFin.Contracts.Binomial.value_europeanPutsource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ K : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (europeanPut K T) = binomialPrice u d ρ (fun S => max (K - S) 0) N S₀

The European put's binomial value is the tree price of max (K − S) 0.

theoremMathFin.Contracts.Binomial.value_digitalCallsource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ K : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (digitalCall K T) = binomialPrice u d ρ (fun S => if K < S then 1 else 0) N S₀

The cash-or-nothing digital call's binomial value is the tree price of 𝟙{S > K}.

theoremMathFin.Contracts.Binomial.value_forwardsource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ K : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → BinomialNoArb u d ρ → Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (forward K T) = S₀ - K * Real.exp (-(ρ * ↑N))

The forward's binomial value is S₀ − K e^{−ρN} under no-arbitrage: the discounted spot is a martingale (binomialPrice_id) and cash is discounted at ρ per step (binomialPrice_const).

theoremMathFin.Contracts.Binomial.value_cappedCallsource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ K : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → ∀ (K₂ : ℝ), Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (cappedCall K K₂ T) = binomialPrice u d ρ (fun S => max (S - K) 0) N S₀ - binomialPrice u d ρ (fun S => max (S - K₂) 0) N S₀

The capped call's binomial value, by composition: the difference of two call values. Unlike its Black–Scholes counterpart it needs no integrability argument, since every fixed-date contract is integrable in this model (integrable_pathPV).

theoremMathFin.Contracts.Binomial.pathPV_eq_value_add_gainssource
∀ {u d ρ h : ℝ} {q : NNReal} (hq : q ≤ 1), crrUpProb u d ρ = ↑q → ∀ (S₀ : ℝ) {T : NNReal} {N : ℕ}, ↑T / h = ↑N → BinomialNoArb u d ρ → S₀ ≠ 0 → ∀ {a : Payoff Unit} {g : ℝ → ℝ}, (∀ (s : Scenario Unit), Payoff.eval s a = g (s () T)) → ∃ H, (StronglyAdapted flipFiltration fun n => H (n + 1)) ∧ ∀ (ω : ℕ → Bool), Contract.pathPV (discount ρ h) (scenarioAt (assets S₀ u d h) ω) (Contract.pay T a) = Contract.value (coinFlipMeasure q hq) (fun t x => discount ρ h t) (assets S₀ u d h) (Contract.pay T a) + martingaleTransform H (discountedSpot S₀ u d ρ) N ω

A European contract's binomial value is the cost of its hedge. Under no-arbitrage, with paths drawn under the risk-neutral up-probability and S₀ ≠ 0, there is a predictable strategy H (H_{k+1} is ℱₖ-strongly measurable for flipFiltration: it depends only on the first k flips) such that, on every path, the contract's discounted payoff is its value plus the strategy's gains in the discounted spot S̃_k = e^{−ρk} S_k, its martingaleTransform:

pathPV = value + ∑_{k<N} H_{k+1} (S̃_{k+1} − S̃_k).

So the value is not only an expectation: it is the initial capital that replicates the contract.

theoremMathFin.binomialPrice_callPut_paritysource
∀ {u d r K : ℝ}, BinomialNoArb u d r → ∀ (n : ℕ) (S : ℝ), binomialPrice u d r (fun x => max (x - K) 0) n S = binomialPrice u d r (fun x => max (K - x) 0) n S + (S - K * Real.exp (-↑n * r))

Put-call parity at the binomial level: call = put + (S − K·e^{−nr}). The call is the put plus the forward on every path (value_europeanCall_eq_put_add_forward), and in the tree the forward is worth S − K e^{−nr} (Binomial.value_forward); the contracts' values are the tree prices (Binomial.value_europeanCall, Binomial.value_europeanPut) for the step length 1 and the risk-neutral up-probability.