Under a finite measure, let X be a real process adapted to a filtration ๐ indexed by a preordered set, with each increment X_t โ X_s (s โค t) independent of ๐_s and E[e^{X_t โ X_s}] = e^{ฯ(t) โ ฯ(s)} for a deterministic function ฯ, and with each e^{X_t} integrable. Then t โฆ e^{X_t โ ฯ(t)} is an ๐-martingale. For Brownian motion, ฮฑX with ฯ(t) = ฮฑยฒt/2 gives the Wald exponential martingale (IsFilteredPreBrownian.waldExponential_isMartingale, bm-rmk-5.1.6-exp, is derived from this lemma). For a jump-diffusion log-price at the compensated drift, where E[e^{X_t โ X_s}] = e^{r(t โ s)}, ฯ(t) = rt makes the discounted price a martingale (mf-jump-diffusion-discounted-price-martingale, which also shows that no other drift does).
โ {ฮฉ : Type u_1} {ฮน : Type u_2} {mฮฉ : MeasurableSpace ฮฉ} {P : Measure ฮฉ} [IsFiniteMeasure P] [Preorder ฮน] {๐ : Filtration ฮน mฮฉ} {X : ฮน โ ฮฉ โ โ} {s t : ฮน}, StronglyAdapted ๐ X โ Indep (MeasurableSpace.comap (fun ฯ => X t ฯ - X s ฯ) inferInstance) (โ๐ s) P โ Integrable (fun ฯ => Real.exp (X t ฯ)) P โ Integrable (fun ฯ => Real.exp (X t ฯ - X s ฯ)) P โ P[fun ฯ => Real.exp (X t ฯ) | โ๐ s] =แต[P] fun ฯ => Real.exp (X s ฯ) * โซ (ฯ' : ฮฉ), Real.exp (X t ฯ' - X s ฯ') โPThe conditional exponential moment of a later value. If the increment X_t โ X_s is independent of ๐_s, then ๐ผ[e^{X_t} | ๐_s] = e^{X_s}ยท๐ผ[e^{X_t โ X_s}]: the factor e^{X_s} is known at time s and comes out, and the increment factor is replaced by its mean.