MathFin
Map / Positions and markets / MathFin.Contracts.Adapted

A payoff is measurable, adapted to its observation times, and integrable in a bounded model

MathFin.Contracts.AdaptedMSC 91G20MSC 60G07JEL G13 source

A Payoff is data, not yet a random variable: Payoff.eval only produces one once it is applied to a Scenario. This file supplies the missing link — substitute a genuinely stochastic model X : ι → ℝ≥0 → Ω → ℝ for the Scenario, and fun ω ↦ e.eval (fun i t ↦ X i t ω) is measurable (Payoff.measurable_eval), and moreover 𝓕 u-measurable as soon as every observation the payoff makes is dated no later than u (Payoff.measurable_eval_of_obsList_le). That second fact is what will make a Payoff a legitimate stochastic-integral integrand: it is the adaptedness hypothesis a future integral rung against a filtered probability space will need. measurable_eval_of_obsList_le has no consumer yet — Pricing/Value.lean integrates only against a fixed measure Q, never against a filtration, so it has no adaptedness hypothesis to discharge with this file's results.

Payoff.aemeasurable_eval weakens measurable_eval's hypothesis from Measurable to AEMeasurable — the strength the tower's own pricing hypotheses actually supply (BSCallHyp's Z_law : HasLaw Z (gaussianReal 0 1) Q gives only AEMeasurable Z, never Measurable Z). It has no consumer now either: the integrability lemmas of Models/BlackScholes/BlackScholes.lean build each reified payoff from integrable pieces (Integrable.pos_part, .sub, .const_mul), which carry their own measurability.

Contract.integrable_pathPV_of_bounded is the consumer measurable_eval was waiting for: in a model whose every coordinate is bounded, the discounted payoff of every contract that pays at fixed dates (Contract.FixedDated) is integrable against any finite measure. Measurability comes from measurable_eval, and the bound from Payoff.exists_bound_eval, a structural induction like the others. A finite-state model such as the binomial tree is bounded, so there Contract.value_both needs no per-instrument integrability lemma (Models/Binomial/Binomial.lean).

Main results

  • Payoff.measurable_eval — evaluating a payoff against a jointly-measurable model is measurable, unconditionally.
  • Contract.measurable_pathPV — a fixed-dated contract's present value under a measurable stochastic discount factor is measurable.
  • Payoff.measurable_eval_of_obsList_le — if every date in e.obsList (the syntactic list of observations Contracts/Core.lean defines; an over-approximation, so the criterion is sufficient, not necessary: Payoff.mul (.const 0) (.obs i t) lists t though its value does not depend on it) is ≤ u and each X i t is 𝓕 t-measurable, then evaluating e against X is 𝓕 u-measurable. The filtration's monotonicity (𝓕.mono) does the work in the obs leaf; the six binary constructors combine two adapted pieces into one by the corresponding Measurable.add/.sub/.mul/.max/.min lemma, or Measurable.ite composed with measurableSet_lt for indicatorLt; rpow keeps the adapted piece under Measurable.pow_const.
  • Payoff.aemeasurable_eval — the same conclusion as measurable_eval, from the weaker hypothesis that each X i t is only AEMeasurable. Built from measurable_eval applied to measurable representatives (hX i t).mk (X i t), transported across the a.e. equality e.eval X =ᵐ[μ] e.eval X' proved by a second structural induction (each obs leaf contributes AEMeasurable.ae_eq_mk; the six binary constructors combine two a.e. facts by filter_upwards, and rpow from the one) — not a direct induction into AEMeasurable, whose indicatorLt case would need a NullMeasurableSet this route avoids producing.
  • Payoff.exists_bound_eval — against a model with bounded coordinates, a payoff is bounded (a nonnegative power by Real.abs_rpow_le_abs_rpow).
  • Contract.integrable_pathPV_of_bounded — against a finite measure and a measurable, bounded model, the discounted payoff of every fixed-date contract is integrable.

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

Bilokon's Contract.observationTimes exists to feed a syntactic chronology check discharged by decide; the same function here carries content, as the hypothesis of an adaptedness theorem. The measurability and adaptedness results have no counterpart in the source.

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]
  • S. E. Shreve, Stochastic Calculus for Finance II: Continuous-Time Models [ShreveSCFII], ch. 3-4

Tags

payoff measurability, adapted payoff, filtration, observation times, integrability, MSC 91G20, MSC 60G07, JEL G13

Import neighbourhood

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

Corpus entries

mf-contract-eval-adapted · contracts.json · full statement
A Payoff is Adapted to Its Observation Times

Evaluating a Payoff against a filtration-adapted model X is F_u-measurable as soon as every observation time the payoff's syntax reads is <= u -- the adaptedness hypothesis a Payoff needs to be a legitimate pricing integrand. obsList is a syntactic over-approximation, so the theorem gives a sufficient, not necessary, adaptedness criterion.

mf-contract-bounded-model-integrable · contracts.json · full statement
Every Fixed-Date Contract Is Integrable in a Bounded Model

In a model whose every coordinate X i t is measurable and bounded, the discounted pathwise payoff of every Contract that pays at fixed dates (Contract.FixedDated: built from zero, pay, both and scale, with no payment at a random hitting time) is integrable against any finite measure, so the additivity of Contract.value applies to any two such contracts with no per-instrument integrability argument. Lognormal models such as Black-Scholes are not bounded and are not covered; a contract with a payAtHit is not covered either.

Declarations 6

theoremMathFin.Contracts.Payoff.measurable_evalsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} (e : Payoff ι) (X : ι → NNReal → Ω → ℝ), (∀ (i : ι) (t : NNReal), Measurable (X i t)) → Measurable fun ω => Payoff.eval (fun i t => X i t ω) e

Evaluating a payoff against a jointly-measurable model is measurable.

theoremMathFin.Contracts.Contract.measurable_pathPVsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {c : Contract ι}, c.FixedDated → ∀ {D : NNReal → Ω → ℝ}, (∀ (t : NNReal), Measurable (D t)) → ∀ {X : ι → NNReal → Ω → ℝ}, (∀ (i : ι) (t : NNReal), Measurable (X i t)) → Measurable fun ω => Contract.pathPV (fun t => D t ω) (fun i t => X i t ω) c

A fixed-dated contract's deflated present value is measurable for a measurable model and a measurable stochastic discount factor D : ℝ≥0 → Ω → ℝ.

theoremMathFin.Contracts.Payoff.aemeasurable_evalsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} (e : Payoff ι) (X : ι → NNReal → Ω → ℝ), (∀ (i : ι) (t : NNReal), AEMeasurable (X i t) μ) → AEMeasurable (fun ω => Payoff.eval (fun i t => X i t ω) e) μ

Evaluating a payoff against an a.e.-measurable model is a.e.-measurable: the strength a consumer whose model only satisfies AEMeasurable (e.g. HasLaw.aemeasurable, never Measurable) actually has. Built from measurable_eval on each model coordinate's measurable representative (hX i t).mk (X i t), transported across its a.e. equality with the original — not a second induction into AEMeasurable, whose indicatorLt case wants a NullMeasurableSet awkward to produce here.

theoremMathFin.Contracts.Payoff.measurable_eval_of_obsList_lesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {𝓕 : Filtration NNReal mΩ} {u : NNReal} (e : Payoff ι) (X : ι → NNReal → Ω → ℝ), (∀ (i : ι) (t : NNReal), Measurable (X i t)) → (∀ p ∈ e.obsList, p.2 ≤ u) → Measurable fun ω => Payoff.eval (fun i t => X i t ω) e

Evaluating a payoff against a filtration-adapted model X is adapted to 𝓕 u, as soon as every time the payoff observes is dated no later than u. This is the theorem that will make a Payoff a legitimate stochastic-integral integrand — the adaptedness hypothesis a future integral rung will need. Still has no consumer: Pricing/Value.lean integrates against a fixed measure, not a filtration, and unlike measurable_eval's a.e. counterpart above, no Payoff in the tower yet needs an argument observed before a fixed time rather than a fixed measure.

theoremMathFin.Contracts.Payoff.exists_bound_evalsource
∀ {ι : Type u_1} {Ω : Type u_2} (e : Payoff ι) {X : ι → NNReal → Ω → ℝ}, (∀ (i : ι) (t : NNReal), ∃ C, ∀ (ω : Ω), |X i t ω| ≤ C) → ∃ C, ∀ (ω : Ω), |Payoff.eval (fun i t => X i t ω) e| ≤ C

Evaluating a payoff against a model whose every coordinate is bounded is bounded: each constructor combines its bounds into one, an indicator is bounded by 1, and a nonnegative power by the power of the bound (Real.abs_rpow_le_abs_rpow).

theoremMathFin.Contracts.Contract.integrable_pathPV_of_boundedsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsFiniteMeasure Q] (D : NNReal → ℝ) {X : ι → NNReal → Ω → ℝ}, (∀ (i : ι) (t : NNReal), Measurable (X i t)) → (∀ (i : ι) (t : NNReal), ∃ C, ∀ (ω : Ω), |X i t ω| ≤ C) → ∀ {c : Contract ι}, c.FixedDated → Integrable (fun ω => Contract.pathPV D (fun i t => X i t ω) c) Q

A bounded model prices every fixed-date contract. Against a finite measure and a measurable model whose every coordinate is bounded, every contract that pays at fixed dates (Contract.FixedDated) has an integrable discounted payoff, so Contract.value_both applies to any two of them with no further hypothesis. A finite-state model such as the binomial tree is bounded; a lognormal one is not, and there each instrument's integrability is proved on its own (Models/BlackScholes/BlackScholes.lean). A payAtHit is excluded: the hitting time of a measurable process need not be measurable, and an unbounded discount factor evaluated at a random date need not be integrable.