Second Moment of a Sum of Martingale Differences
ProvedLevyStochCalc.Probability.integral_sq_sum_of_condExp_eq_zero_modularThis 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.
Superseded upload. This snapshot was replaced by LevyStochCalc.Probability.integral_sq_sum_of_condExp_eq_zero_readable: open the readable replacement. The replacement preserves the frozen source and mathematical statement, with a compact declaration context. This historical node remains available for existing imports.
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)
section
namespace LevyStochCalc
end LevyStochCalc
open LevyStochCalc
section
namespace LevyStochCalc.Probability
end LevyStochCalc.Probability
open LevyStochCalc LevyStochCalc.Probability
open MeasureTheory
variable {Ω : Type*} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P]
section MartingaleDifference
variable (𝒢 : ℕ → MeasurableSpace Ω) (h𝒢le : ∀ k, 𝒢 k ≤ mΩ) (h𝒢mono : Monotone 𝒢)
(Y : ℕ → Ω → ℝ) (hY : ∀ k, 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_modular (n : ℕ) :
∫ ω, (∑ i ∈ Finset.range n, Y i ω) ^ 2 ∂P
= ∑ i ∈ Finset.range n, ∫ ω, (Y i ω) ^ 2 ∂P := by sorry