MathFin
Map / Probability · Brownian calculus / MathFin.Probability.Brownian.Ito.ItoLemma2D

Itô's lemma for `f(t, x)` — time-dependent (2D), items 4 & 5

MathFin.Probability.Brownian.Ito.ItoLemma2DMSC 60H05MSC 60H10JEL G13 source

The classical Itô formula for a C^{1,2} function f(t, x) of time and a diffusion X_t with dX_t = μ_X dt + σ_X dB_t:

df(t, X_t) = [∂_t f + μ_X · ∂_x f + ½ σ_X² · ∂_xx f] dt + σ_X · ∂_x f dB_t.

This file gives:

  • Item 4 — the pathwise discrete 2D Itô formula (discrete_ito_formula_2d): an exact-by-construction telescoping identity for f(t_N, X_N) − f(t_0, X_0), with a 2D Taylor remainder (discreteTaylorRemainder2D) absorbing the higher-order time/mixed terms. Mirrors the 1D discrete_ito_formula (DiscreteIto.lean), now carrying the ∂_t f · Δt term. The 2D drift coefficient itoDrift2D.
  • Item 5 — geometric Brownian motion solves the GBM SDE (gbm_solves_sde, gbm_diffusion). For the exp value function S(t, x) = S₀ · exp((μ − ½σ²) t + σ x), the genuine partial derivatives (hasDerivAt_gbmValue_time, _space, _space_space, proved from Real.exp chain rule) plug into itoDrift2D with the Brownian generator (μ_X, σ_X) = (0, 1) to give Itô drift μ · S and diffusion σ · S — i.e., S_t = S(t, B_t) satisfies dS_t = μ S_t dt + σ S_t dB_t. The famous −½σ² in the exponent is exactly the Itô correction that makes the drift μ (not μ + ½σ²).

The continuous-time L² statement (dropping the remainder in the partition limit via the third-moment bound) is deferred; the discrete identity + the GBM partials are the algebraic and analytic content that the limit argument consumes.

Main definitions

  • discreteTaylorRemainder2D: the deviation of f(t_{k+1}, X_{k+1}) − f(t_k, X_k) from its first-order-in-time, second-order-in-space Taylor expansion around (t_k, X_k).
  • itoDrift2D: the 2D Itô drift coefficient f_t + μ_X f_x + ½ σ_X² f_xx.
  • gbmValue: the exponential value function S(t, x) = S₀ exp((μ − ½σ²) t + σ x).

Main results

  • discrete_ito_formula_2d: along a time grid and a space path, f(t_N, X_N) − f(t_0, X_0) is ∑ f_t Δt + ∑ f_x ΔX + ½ ∑ f_xx (ΔX)² + ∑ R_k, with R_k the 2D discrete Taylor remainder.
  • itoDrift2D_no_time: with f_t = 0, itoDrift2D is the 1D itoDrift.
  • hasDerivAt_gbmValue_space, hasDerivAt_gbmValue_time, hasDerivAt_gbmValue_space_space: the partials of gbmValue are σ S, (μ − ½σ²) S and σ² S.
  • gbm_solves_sde: with HasDerivAt partials of gbmValue and generator (μ_X, σ_X) = (0, 1), the 2D Itô drift is μ S and the diffusion coefficient is σ S. This is coefficient matching, not a pathwise SDE solution.

Tags

Itô lemma, time-dependent function, geometric Brownian motion, SDE for stock price, Itô correction, discrete Itô formula, MSC 60H05, MSC 60H10, JEL G13

Import neighbourhood

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

Declarations 9

defMathFin.discreteTaylorRemainder2Dsource
(ℝ → ℝ → ℝ) → (ℝ → ℝ → ℝ) → (ℝ → ℝ → ℝ) → (ℝ → ℝ → ℝ) → ℝ → ℝ → ℝ → ℝ → ℝ

2D discrete Taylor remainder over a step from (tk, Xk) to (tk1, Xk1): the deviation of f(tk1, Xk1) − f(tk, Xk) from its first-order-in-time, second-order-in-space Taylor expansion around (tk, Xk). Defined so the 2D discrete Itô formula is a definitional identity:

R := f(tk1, Xk1) − f(tk, Xk) − f_t·Δt − f_x·ΔX − ½ f_xx·ΔX².

The substantive content is the bound on R under f ∈ C^{1,2} plus the Brownian third-moment estimate (|ΔX|³ and Δt·|ΔX| are both o(Δt) in sum), which governs the continuous limit and is deferred.

theoremMathFin.discrete_ito_formula_2dsource
∀ (N : ℕ) (t X : ℕ → ℝ) (f f_t f_x f_xx : ℝ → ℝ → ℝ), f (t N) (X N) - f (t 0) (X 0) = ∑ k ∈ Finset.range N, f_t (t k) (X k) * (t (k + 1) - t k) + ∑ k ∈ Finset.range N, f_x (t k) (X k) * (X (k + 1) - X k) + 1 / 2 * ∑ k ∈ Finset.range N, f_xx (t k) (X k) * (X (k + 1) - X k) ^ 2 + ∑ k ∈ Finset.range N, discreteTaylorRemainder2D f f_t f_x f_xx (t k) (t (k + 1)) (X k) (X (k + 1))

Discrete 2D Itô formula (time + space). For any time grid t : ℕ → ℝ, space path X : ℕ → ℝ, and formal partials f_t, f_x, f_xx,

f(t_N, X_N) − f(t_0, X_0) = ∑ f_t(t_k,X_k)·Δt_k + ∑ f_x(t_k,X_k)·ΔX_k + ½ ∑ f_xx(t_k,X_k)·(ΔX_k)² + ∑ R_k,

where R_k = discreteTaylorRemainder2D …. Proof: telescoping f(t_N,X_N) − f(t_0,X_0) = ∑ (f(t_{k+1},X_{k+1}) − f(t_k,X_k)) via Finset.sum_range_sub, then substituting the definition of R_k into each summand. No probabilistic content; the time-drift term ∑ f_t·Δt joins the 1D Itô structure purely algebraically.

defMathFin.itoDrift2Dsource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

2D Itô drift coefficient of f(t, X_t) for X_t with local drift μ_X and local volatility σ_X:

itoDrift2D f_t f_x f_xx μ_X σ_X := f_t + μ_X · f_x + ½ σ_X² · f_xx.

This is the per-time-unit dt coefficient in df(t, X_t) = itoDrift2D … dt + σ_X · f_x dB_t. The f_t summand is the new time-dependent term over the 1D itoDrift.

theoremMathFin.itoDrift2D_no_timesource
∀ (f_x f_xx μ_X σ_X : ℝ), itoDrift2D 0 f_x f_xx μ_X σ_X = itoDrift f_x f_xx μ_X σ_X

With no time dependence (f_t = 0), itoDrift2D collapses to the 1D itoDrift. The two layers agree where they overlap.

defMathFin.gbmValuesource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

GBM exponential value function S(t, x) = S₀ · exp((μ − ½σ²) t + σ x). Evaluated at x = B_t, this is geometric Brownian motion.

theoremMathFin.hasDerivAt_gbmValue_spacesource
∀ (S₀ μ σ t x : ℝ), HasDerivAt (fun y => gbmValue S₀ μ σ t y) (σ * gbmValue S₀ μ σ t x) x

Space partial ∂_x S = σ · S — genuine HasDerivAt, via the Real.exp chain rule on the affine exponent.

theoremMathFin.hasDerivAt_gbmValue_timesource
∀ (S₀ μ σ t x : ℝ), HasDerivAt (fun s => gbmValue S₀ μ σ s x) ((μ - σ ^ 2 / 2) * gbmValue S₀ μ σ t x) t

Time partial ∂_t S = (μ − ½σ²) · S — genuine HasDerivAt.

theoremMathFin.hasDerivAt_gbmValue_space_spacesource
∀ (S₀ μ σ t x : ℝ), HasDerivAt (fun y => σ * gbmValue S₀ μ σ t y) (σ ^ 2 * gbmValue S₀ μ σ t x) x

Second space partial ∂_xx S = σ² · S — the derivative of ∂_x S = σ · S is σ · (σ · S) = σ² · S.

theoremMathFin.gbm_solves_sdesource
∀ (S₀ μ σ t x : ℝ) {f_t f_x f_xx : ℝ}, HasDerivAt (fun s => gbmValue S₀ μ σ s x) f_t t → HasDerivAt (fun y => gbmValue S₀ μ σ t y) f_x x → HasDerivAt (fun y => σ * gbmValue S₀ μ σ t y) f_xx x → itoDrift2D f_t f_x f_xx 0 1 = μ * gbmValue S₀ μ σ t x ∧ 1 * f_x = σ * gbmValue S₀ μ σ t x

Geometric Brownian motion solves the GBM SDE (drift + diffusion). The partials enter as HasDerivAt hypotheses — so by HasDerivAt.unique they are forced to be the genuine derivatives of gbmValue (∂_t = (μ−½σ²)S, ∂_x = σS, ∂_xx = σ²S), not free parameters a caller could fake. Under the Brownian generator (μ_X, σ_X) = (0, 1), the 2D Itô drift of f(t, B_t) is

(μ − ½σ²) S + 0 · σS + ½ · 1² · σ²S = μ S,

and the diffusion coefficient σ_X · ∂_x S = σ S. Reading both off: S_t := S(t, B_t) matches dS_t = μ S_t dt + σ S_t dB_t at the level of Itô coefficients (the coefficient-matching the continuous Itô lemma turns into a genuine SDE solution; that limit step is deferred — see module header).

The −½σ² carried in the exponent cancels the +½σ² of the Itô second-order term — this cancellation is the Itô correction, and the reason a GBM with exponent drift μ − ½σ² has physical drift rate μ.