Second Moment of a Sum of Martingale Differences
ProvedLevyStochCalc.Probability.integral_sq_sum_of_condExp_eq_zero_readableThis theorem identifies the second moment of a finite sum of martingale differences with the sum of their second moments.
Let be a probability measure, let be an increasing family of measurable spaces dominated by the ambient measurable space, and let . Assume every is in , is strongly measurable, and satisfies almost everywhere. For every ,
This is the finite orthogonality identity used to control sums of centered stochastic increments.
Original Lean declaration header
Within namespace LevyStochCalc.Probability. Shown in its original module context. Proof omitted.
theorem integral_sq_sum_of_condExp_eq_zero (n : ℕ) :
∫ ω, (∑ i ∈ Finset.range n, Y i ω) ^ 2 ∂P
= ∑ i ∈ Finset.range n, ∫ ω, (Y i ω) ^ 2 ∂P
Module navigation
Module: LevyStochCalc/Probability/MartingaleDifference.
Supporting theorems: integral_sum_mul_of_condExp_eq_zero.
Previous: integral_sum_mul_of_condExp_eq_zero.
Source excerpt, lines 77–79 · Frozen source 408915f.
import Definitions.Def_KLSModular_LevyStochCalc_Probability_MartingaleDifference
/-
Copyright (c) 2026 Christian Garry. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Garry
-/
-- Vendored from https://github.com/cgarryZA/LevyStochCalc at commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (upstream path LevyStochCalc/Probability/MartingaleDifference.lean; Apache-2.0; provenance in formalization/vendor/vendor-lock.json of the KLS repository)
open MeasureTheory
variable {Ω : Type*} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P]
variable (𝒢 : ℕ → MeasurableSpace Ω) (h𝒢le : ∀ k, 𝒢 k ≤ mΩ) (h𝒢mono : Monotone 𝒢)
(Y : ℕ → Ω → ℝ) (hY : ∀ k, MeasureTheory.MemLp (Y k) 2 P)
(hYmeas : ∀ k, StronglyMeasurable[𝒢 (k + 1)] (Y k))
(hYcond : ∀ k, P[Y k | 𝒢 k] =ᵐ[P] 0)
include h𝒢le h𝒢mono hY hYmeas hYcond
theorem LevyStochCalc.Probability.integral_sq_sum_of_condExp_eq_zero_readable (n : ℕ) :
∫ ω, (∑ i ∈ Finset.range n, Y i ω) ^ 2 ∂P
= ∑ i ∈ Finset.range n, ∫ ω, (Y i ω) ^ 2 ∂P := by sorry