∀ (x : ℝ), |Real.exp x - (1 + x + x ^ 2 / 2)| ≤ |x| ^ 3 * Real.exp |x|
The second-order Taylor remainder of exp: |eˣ − (1 + x + x²/2)| ≤ |x|³e^{|x|}. It is the real case of Complex.norm_exp_sub_sum_le_norm_mul_exp.
The analytic core of the elementary route to Lévy's characterisation (issue #179). Let M be a bounded (|M| ≤ K) real process with every path continuous, such that M and M² − A are Martingales for 𝓕, where A is a slow clock (IsSlowClock: A₀ = 0, 0 ≤ A_q − A_p ≤ q − p; A_t = t or the stopped clock t ∧ τ). Then for every real a,
t ↦ exp(a·M_t − a²A_t/2) is a martingale (martingale_exp),
and for the clock A_t = t, M meets the library's exponential-martingale characterisation data IsExpQMartingale P 𝓕 M T as soon as it starts at 0 (isExpQMartingale). From there isQBrownianMotion_of_expMartingale (ExpMartingaleQBrownian) delivers N(0, t − s) increments and independent increments: M is a Brownian motion in law.
No quadratic-variation process and no stochastic integral against M is used; this matters at the pin, where BrownianMotion's general Doob–Meyer decomposition is sorry.
exp(a·x − a²r/2), one cell at a timeWrite Zᵣ = exp(a·Mᵣ − a²Aᵣ/2) and fix a bounded 𝓕_s-measurable V. Along the uniform partition s = t₀ ≤ ⋯ ≤ tₙ = t, telescope V·(Z_t − Z_s) = ∑ₖ V·Z_{tₖ}·(e^{aΔₖ − cₖ} − 1), with Δₖ = M_{tₖ₊₁} − M_{tₖ} and cₖ = a²(A_{tₖ₊₁} − A_{tₖ})/2 ∈ [0, γ], γ = a²(t − s)/(2n). On one cell, with W = V·Z_{tₖ} bounded and 𝓕_{tₖ}-measurable, compare e^{aΔ−c} − 1 with its second-order expansion G = aΔ + (a²/2)·(Δ² − ΔA):
E[W·(e^{aΔ−c} − 1)] = E[W·(e^{aΔ−c} − 1 − G)],
because E[W·Δ] = 0 and E[W·(Δ² − ΔA)] = 0 (LevyQuadraticSums: the martingale property of M and of M² − A) — the second-order term cancels exactly, the probabilistic form of ∂ᵣ + ½∂ₓₓ = 0. The remainder is bounded pointwise by
|e^{aΔ−c} − 1 − G| ≤ κ|Δ|³ + 2γ² + γ|a||Δ| + γ(a²/2)Δ², κ = |a|³e^{2|a|K}
(abs_exp_sub_sub_le: Taylor's remainder |R(x)| ≤ |x|³e^{|x|} and |(1 + c)e^{−c} − 1| ≤ c²), and E[Δ²] = E[ΔA] ≤ q − p absorbs the last term. A random clock only costs the cross term γ|a||Δ|, first order in Δt but only first order in Δ: summed over the cells it is g|a|·E[maxₖ|Δₖ|] → 0. Altogether
|E[V·Z_t] − E[V·Z_s]| ≤ C·e^{|a|K}·(κ·∑ₖ E|Δₖ|³ + 3g²/n + g|a|·E[maxₖ|Δₖ|]), g = a²(t − s)/2,
and the cubic sums and the largest increment vanish (LevyQuadraticSums). So the conditional moment-generating function is propagated cell by cell, and no ODE for φ(t) = E[1_A e^{a(M_t − M_s)}] has to be solved.
abs_integral_mul_exp_increment_sub_le — the one-cell estimate.integral_mul_exp_eq — E[V·Z_t] = E[V·Z_s] for bounded 𝓕_s-measurable V.setIntegral_exp_eq — the set-integral form over S ∈ 𝓕_s, as IsExpQMartingale states it.martingale_exp — t ↦ exp(a·M_t − a²A_t/2) is a Mathlib Martingale.isExpQMartingale — M (started at 0, bracket t) satisfies IsExpQMartingale P 𝓕 M T.M is bounded and every path is continuous. The localisation to continuous local martingales is LevyCharacterization, which uses the stopped clock t ∧ τ for A. The conclusion that M is a Brownian motion is isQBrownianMotion_of_expMartingale applied to isExpQMartingale; independence of M_t − M_s from 𝓕_s is ExpMartingaleBrownian.
exponential martingale, Lévy characterization, slow clock, bracket, Brownian motion, characteristic function, MSC 60G44, MSC 60J65, MSC 60E10
Above: what it imports. Below: what imports it.
∀ (x : ℝ), |Real.exp x - (1 + x + x ^ 2 / 2)| ≤ |x| ^ 3 * Real.exp |x|
The second-order Taylor remainder of exp: |eˣ − (1 + x + x²/2)| ≤ |x|³e^{|x|}. It is the real case of Complex.norm_exp_sub_sum_le_norm_mul_exp.
∀ {c : ℝ}, 0 ≤ c → |(1 + c) * Real.exp (-c) - 1| ≤ c ^ 2|(1 + c)e^{−c} − 1| ≤ c² for c ≥ 0: the mismatch between the drift e^{−c} and its first-order compensation 1 + c. Both sides of 1 − c² ≤ (1 + c)e^{−c} ≤ 1 are 1 + x ≤ eˣ.
∀ {x c γ : ℝ}, 0 ≤ c → c ≤ γ → |Real.exp (x - c) - 1 - (x + (x ^ 2 / 2 - c))| ≤ |x| ^ 3 * Real.exp |x| + 2 * γ ^ 2 + γ * |x| + γ * (x ^ 2 / 2)Pointwise form of the one-cell estimate. For 0 ≤ c ≤ γ,
|e^{x−c} − 1 − (x + (x²/2 − c))| ≤ |x|³e^{|x|} + 2γ² + γ|x| + γ·x²/2.
Write e^{x−c} = e^{−c}·e^x, expand e^x to second order, and regroup as e^{−c}·R(x) + ((1 + c)e^{−c} − 1) + (e^{−c} − 1)·(x + x²/2 − c).
∀ {Ω : Type u_1} {M : NNReal → Ω → ℝ} {K : ℝ} {A : NNReal → Ω → ℝ}, IsSlowClock A → (∀ (t : NNReal) (ω : Ω), |M t ω| ≤ K) → ∀ (a : ℝ) (r : NNReal) (ω : Ω), Real.exp (a * M r ω - a ^ 2 * A r ω / 2) ≤ Real.exp (|a| * K)A bounded process on a slow clock has exp(a·M_r − a²A_r/2) ≤ e^{|a|K}.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {𝓕 : Filtration NNReal mΩ} {M : NNReal → Ω → ℝ} {K : ℝ} {A : NNReal → Ω → ℝ}, IsSlowClock A → Martingale M 𝓕 P → Martingale (fun t ω => M t ω ^ 2 - A t ω) 𝓕 P → (∀ (t : NNReal) (ω : Ω), |M t ω| ≤ K) → ∀ (a : ℝ) {p q : NNReal}, p ≤ q → ∀ {W : Ω → ℝ}, StronglyMeasurable W → ∀ {C : ℝ}, (∀ (ω : Ω), |W ω| ≤ C) → |∫ (ω : Ω), W ω * (Real.exp (a * (M q ω - M p ω) - a ^ 2 * (A q ω - A p ω) / 2) - 1) ∂P| ≤ C * (|a| ^ 3 * Real.exp (2 * |a| * K) * ∫ (ω : Ω), |M q ω - M p ω| ^ 3 ∂P + 3 * (a ^ 2 * (↑q - ↑p) / 2) ^ 2 + a ^ 2 * (↑q - ↑p) / 2 * |a| * ∫ (ω : Ω), |M q ω - M p ω| ∂P)The one-cell estimate. For p ≤ q and a bounded (|W| ≤ C) 𝓕_p-measurable W,
|E[W·(e^{aΔ − c} − 1)]| ≤ C·(κ·E|Δ|³ + 3γ² + γ|a|·E|Δ|),
with Δ = M_q − M_p, c = a²(A_q − A_p)/2, γ = a²(q − p)/2 and κ = |a|³e^{2|a|K}.
The second-order expansion e^{aΔ−c} − 1 ≈ G := aΔ + (a²/2)·((Δ)² − (A_q − A_p)) has E[W·G] = 0 (integral_mul_increment_eq_zero, integral_mul_sq_increment_sub), so E[W·(e^{aΔ−c} − 1)] = E[W·(e^{aΔ−c} − 1 − G)], and the pointwise remainder bound abs_exp_sub_sub_le (c ≤ γ) integrates, using E[Δ²] = E[A_q − A_p] ≤ q − p. The clock A need not be deterministic: only 0 ≤ A_q − A_p ≤ q − p is used.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {𝓕 : Filtration NNReal mΩ} {M : NNReal → Ω → ℝ} {K : ℝ} {A : NNReal → Ω → ℝ}, IsSlowClock A → Martingale M 𝓕 P → Martingale (fun t ω => M t ω ^ 2 - A t ω) 𝓕 P → (∀ (t : NNReal) (ω : Ω), |M t ω| ≤ K) → (∀ (ω : Ω), Continuous fun t => M t ω) → ∀ (a : ℝ) {s t : NNReal}, s ≤ t → ∀ {V : Ω → ℝ}, StronglyMeasurable V → ∀ {C : ℝ}, (∀ (ω : Ω), |V ω| ≤ C) → ∫ (ω : Ω), V ω * Real.exp (a * M t ω - a ^ 2 * A t ω / 2) ∂P = ∫ (ω : Ω), V ω * Real.exp (a * M s ω - a ^ 2 * A s ω / 2) ∂Pexp(a·M − a²A/2) keeps its expectation against the bounded past. For s ≤ t and a bounded 𝓕_s-measurable V, E[V·Z_t] = E[V·Z_s] with Zᵣ = exp(a·Mᵣ − a²Aᵣ/2). Telescoping along the uniform partition of [s, t] and the one-cell estimate bound the difference by C·e^{|a|K}·(κ·∑ₖ E|Δₖ|³ + 3g²/n + g|a|·E[maxₖ|Δₖ|]), g = a²(t − s)/2, which tends to 0.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {𝓕 : Filtration NNReal mΩ} {M : NNReal → Ω → ℝ} {K : ℝ} {A : NNReal → Ω → ℝ}, IsSlowClock A → Martingale M 𝓕 P → Martingale (fun t ω => M t ω ^ 2 - A t ω) 𝓕 P → (∀ (t : NNReal) (ω : Ω), |M t ω| ≤ K) → (∀ (ω : Ω), Continuous fun t => M t ω) → ∀ (a : ℝ) {s t : NNReal}, s ≤ t → ∀ {S : Set Ω}, MeasurableSet S → ∫ (ω : Ω) in S, Real.exp (a * M t ω - a ^ 2 * A t ω / 2) ∂P = ∫ (ω : Ω) in S, Real.exp (a * M s ω - a ^ 2 * A s ω / 2) ∂PThe exponential martingale, over 𝓕_s-sets: for s ≤ t and A ∈ 𝓕_s, ∫_A exp(a·M_t − a²A_t/2) dP = ∫_A exp(a·M_s − a²A_s/2) dP, which is the form IsExpQMartingale.martingale asks for when the clock is t.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {𝓕 : Filtration NNReal mΩ} {M : NNReal → Ω → ℝ} {K : ℝ} {A : NNReal → Ω → ℝ}, IsSlowClock A → Martingale M 𝓕 P → Martingale (fun t ω => M t ω ^ 2 - A t ω) 𝓕 P → (∀ (t : NNReal) (ω : Ω), |M t ω| ≤ K) → (∀ (ω : Ω), Continuous fun t => M t ω) → ∀ (a : ℝ), Martingale (fun t ω => Real.exp (a * M t ω - a ^ 2 * A t ω / 2)) 𝓕 Pexp(a·M_t − a²A_t/2) is a martingale, as Mathlib's Martingale: adapted, and the set-integral identity setIntegral_exp_eq makes it a martingale (martingale_iff_setIntegral_eq).
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {𝓕 : Filtration NNReal mΩ} {M : NNReal → Ω → ℝ} {K : ℝ}, Martingale M 𝓕 P → Martingale (fun t ω => M t ω ^ 2 - ↑t) 𝓕 P → (∀ (t : NNReal) (ω : Ω), |M t ω| ≤ K) → (∀ (ω : Ω), Continuous fun t => M t ω) → M 0 =ᵐ[P] 0 → ∀ (T : NNReal), IsExpQMartingale P 𝓕 M TLévy's characterisation, analytic core. A bounded process M with continuous paths, started at 0, such that M and M² − t are martingales, satisfies the library's exponential-martingale characterisation data IsExpQMartingale P 𝓕 M T for every horizon T. Composed with isQBrownianMotion_of_expMartingale, M has N(0, t − s) increments and independent increments on [0, T]. It is setIntegral_exp_eq for the clock A_t = t.