Explicit delta-and-cash hedge for an arbitrary claim
Definitionfd02_replicatingTradearbitrageformal-verificationoption-pricing
The replicating stock and cash holdings are the unique solution to the two linear terminal payoff equations when the market is nondegenerate.
Definition code
import Mathlib.Data.Real.Basic import Definitions.Def_fd02_TwoStateMarket import Definitions.Def_fd02_Trade namespace FinancialDerivatives.FD02 /-- Unique candidate hedge from solving the two terminal payoff equations. -/ noncomputable def replicatingTrade (m : TwoStateMarket) (H : Bool → ℝ) : Trade where shares := (H true - H false) / (m.spot * (m.up - m.down)) cash := (m.up * H false - m.down * H true) / (m.growth * (m.up - m.down)) end FinancialDerivatives.FD02
Source
Original derived definition based on Wilmott, Howison and Dewynne (1995), §2.4 and §10.3, printed pp. 30–31 and 187; https://doi.org/10.1017/CBO9780511812545. The same object is fixed for all FD-02 theorem statements.
Read-back
What the Lean code literally says, in plain math · GPT-6
For any market with real spot , bank growth , and stock factors , and any real-valued two-state claim with payoffs (true) and (false), the defined trade is the signed pair with shares and cash. The denominators are strictly positive; neither holding nor either claim payoff is restricted in sign.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.