Fubini Swap for the Maximal Layer Integral
ProvedMeasureTheory.fubini_swap_modularfunctional-inequalitieskls-conjecturekls-modularlog-concavevendored-mathfin
This private auxiliary lemma performs the Fubini step for a nonnegative submartingale.
Let be a nonnegative submartingale with respect to a filtration and a finite measure , let , and fix . Then
where is the discrete running maximum.
This is a technical Fubini identity used in the strong Doob estimate.
Formalization Note. The displayed integrals are represented as ENNReal lower integrals with ofReal coercions.
Superseded upload. This snapshot was replaced by MeasureTheory.fubini_swap_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.
Preamble
import Definitions.Def_KLSModular_MathFin_Foundations_DoobLpMaximalInequality
/-
Copyright (c) 2026 Raphael Coelho. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Raphael Coelho
-/
-- Vendored from https://github.com/raphaelrrcoelho/formal-mathfin at commit 784a8311f75a1519a23717856df9982bd6a9a370 (upstream path MathFin/Foundations/DoobLpMaximalInequality.lean; Apache-2.0; provenance in formalization/vendor/vendor-lock.json of the KLS repository)
section
open ProbabilityTheory ENNReal Filter Set Finset
open scoped NNReal
section
namespace MeasureTheory
end MeasureTheory
open MeasureTheory
variable {Ω : Type*}
variable [m0 : MeasurableSpace Ω] {μ : Measure Ω}
Formal statement
lemma MeasureTheory.fubini_swap_modular
[IsFiniteMeasure μ] {𝒢 : Filtration ℕ m0} {f : ℕ → Ω → ℝ} {p : ℝ}
(hsub : Submartingale f 𝒢 μ) (hnonneg : ∀ n ω, 0 ≤ f n ω)
(hp : 1 < p) (n : ℕ) :
∫⁻ t in Set.Ioi (0:ℝ),
ENNReal.ofReal (t ^ (p - 2)) *
∫⁻ ω in {ω | t ≤ MeasureTheory.runMax f n ω}, ENNReal.ofReal (f n ω) ∂μ
= ∫⁻ ω, ENNReal.ofReal (f n ω) *
ENNReal.ofReal ((MeasureTheory.runMax f n ω) ^ (p - 1) / (p - 1)) ∂μ := by sorry
Source
Lean source: https://github.com/raphaelrrcoelho/formal-mathfin/blob/784a8311f75a1519a23717856df9982bd6a9a370/MathFin/Foundations/DoobLpMaximalInequality.lean#L189-L339 (repository human-ai-mathematics/kls-lean, commit 408915f, module `MathFin.Foundations.DoobLpMaximalInequality`, declaration `_private.MathFin.Foundations.DoobLpMaximalInequality.0.MeasureTheory.fubini_swap`; the repository is private at upload time). Vendored from https://github.com/raphaelrrcoelho/formal-mathfin at commit 784a8311f75a1519a23717856df9982bd6a9a370 (Apache-2.0; upstream copyright notice retained in the Lean text).