Conditional Pythagoras for Square-Integrable Martingales
ProvedLevyStochCalc.Brownian.Ito.condExp_sq_increment_of_martingale_modularThis lemma gives the conditional Pythagorean identity for an martingale.
Let be a probability measure, let be a filtration, and let be a martingale with respect to and . For times , assume . Then, almost everywhere with respect to ,
The conditional expectations are represented by condExp, and the equality is an almost-everywhere equality. This identity is a general tool for analyzing squared increments of square-integrable martingales.
Superseded upload. This snapshot was replaced by LevyStochCalc.Brownian.Ito.condExp_sq_increment_of_martingale_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_Brownian_ItoL2CompletionConvergence
/-
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/Brownian/ItoL2CompletionConvergence.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.Brownian
end LevyStochCalc.Brownian
open LevyStochCalc LevyStochCalc.Brownian
section
namespace LevyStochCalc.Brownian.Ito
end LevyStochCalc.Brownian.Ito
open LevyStochCalc LevyStochCalc.Brownian LevyStochCalc.Brownian.Ito
open MeasureTheory
open scoped NNReal ENNReal
universe u
variable {Ω : Type u} [MeasurableSpace Ω]
lemma LevyStochCalc.Brownian.Ito.condExp_sq_increment_of_martingale_modular
{P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P]
{ℱ : MeasureTheory.Filtration ℝ ‹MeasurableSpace Ω›}
{M : ℝ → Ω → ℝ}
(hmart : MeasureTheory.Martingale M ℱ P)
{s t : ℝ} (hMs : MeasureTheory.MemLp (M s) 2 P) (hMt : MeasureTheory.MemLp (M t) 2 P)
(hst : s ≤ t) :
P[(fun ω => (M t ω - M s ω) ^ 2) | ℱ s]
=ᵐ[P] fun ω => (P[(fun ω => (M t ω) ^ 2) | ℱ s]) ω - (M s ω) ^ 2 := by sorry