The abstract kernel of Girsanov's theorem: if the density process Z and the product Z·D are both P-martingales and Z_T ≥ 0, then D is a martingale on [0,T] under the tilted measure Q = withDensity(Z_T). No stochastic calculus — only conditional expectations (a Bayes pull-out and a martingale set-integral). The reusable engine consumed by the Black-Scholes Girsanov instantiation.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {𝓕 : Filtration NNReal mΩ} [SigmaFiniteFiltration P 𝓕] {Z D M : NNReal → Ω → ℝ} (T : NNReal), Measurable (Z T) → (∀ (ω : Ω), 0 ≤ Z T ω) → (∀ (u : NNReal), StronglyMeasurable (D u)) → Martingale Z 𝓕 P → Martingale M 𝓕 P → (∀ u ≤ T, (fun ω => Z u ω * D u ω) =ᵐ[P] M u) → (∀ u ≤ T, Integrable (fun ω => D u ω * Z T ω) P) → ∀ {s t : NNReal}, s ≤ t → t ≤ T → ∀ {A : Set Ω}, MeasurableSet A → (∫ (ω : Ω) in A, D t ω ∂P.withDensity fun ω => ENNReal.ofReal (Z T ω)) = ∫ (ω : Ω) in A, D s ω ∂P.withDensity fun ω => ENNReal.ofReal (Z T ω)Bayes change-of-measure engine ([0,T] form). Let Z be a P-martingale with Z_T ≥ 0 (the density process), D an 𝓕-adapted process, M a P-martingale, and suppose the product Z · D agrees with M a.e. on [0, T] (Z_u · D_u =ᵐ M_u for u ≤ T). Then D is a martingale under Q := P.withDensity (Z_T) on [0, T]: for s ≤ t ≤ T and A ∈ 𝓕_s, the Q-integrals of D_t and D_s over A agree.
The generality over the full-martingale form changeOfMeasure_setIntegral_eq is that Z · D itself need not be a martingale — only its [0,T]-restriction need agree with an honest martingale M. This is exactly the simple-θ Girsanov situation, where the tilted-density identity Z · D =ᵐ E^{a−c} (simple_spine_ae) holds only on [0,T] (beyond the last partition point Z · D diverges from the Doléans martingale E^{a−c} by a forward Wald factor). The mechanism is unchanged: ∫_A D_u dQ = ∫_A Z_u D_u dP (withDensity conversion + Bayes pull-out, using hmix, hZ, hDsm, none of which touch M), then Z_u D_u =ᵐ M_u and M's martingale property close the loop. No stochastic calculus, only conditional expectations.