Documentation

FormalSLT.Azuma.BoundedDiffsAzumaInput

Prefix/tail integral representation of the exposure martingale #

Stage B sub-PR 2c of docs/plans/mcdiarmid-rademacher-plan.md.

For an integrable real-valued function f : (Fin n → Z) → ℝ and a probability measure μ on Z, the Doob exposure martingale value M_k = E[f | F_k] admits a prefix/tail integral representation: conditioning on the first k coordinates equals integrating out the last n - k coordinates pointwise.

Mathlib has no condExp_pi machinery, so we build the structural prefix/tail decomposition and the partial-integral candidate from scratch in this PR. The full conditional-expectation identification itself, the bounded-increment range bound, the conditional Hoeffding lemma, and the Filtration ℕ adapter are explicit follow-ups.

Contents (this module) #

Constraints #

Splice: combine prefix and tail coordinates #

splice k S T : Fin n → Z agrees with S on indices in the prefix {i | (i : ℕ) < (k : ℕ)} and with T on the tail.

def FormalSLT.Azuma.ExposureMartingale.splice {n : } {Z : Type u_1} (k : Fin (n + 1)) (S T : Fin nZ) :
Fin nZ

Splice prefix coords from S with tail coords from T.

Equations
Instances For
    @[simp]
    theorem FormalSLT.Azuma.ExposureMartingale.splice_zero {n : } {Z : Type u_1} (S T : Fin nZ) :
    splice 0 S T = T
    @[simp]
    theorem FormalSLT.Azuma.ExposureMartingale.splice_last {n : } {Z : Type u_1} (S T : Fin nZ) :
    splice (Fin.last n) S T = S
    theorem FormalSLT.Azuma.ExposureMartingale.measurable_splice {n : } {Z : Type u_1} [MeasurableSpace Z] (k : Fin (n + 1)) :
    Measurable fun (ST : (Fin nZ) × (Fin nZ)) => splice k ST.1 ST.2

    Joint measurability of splice in (S, T).

    theorem FormalSLT.Azuma.ExposureMartingale.splice_update_tail {n : } {Z : Type u_1} (k : Fin (n + 1)) (S T : Fin nZ) {i : Fin n} (hi : ¬i < k) (z' : Z) :
    splice k (Function.update S i z') T = splice k S T

    splice is unaffected by changing S at any tail index.

    theorem FormalSLT.Azuma.ExposureMartingale.splice_update_prefix {n : } {Z : Type u_1} (k : Fin (n + 1)) (S T : Fin nZ) {i : Fin n} (hi : i < k) (z' : Z) :
    splice k S (Function.update T i z') = splice k S T

    splice is unaffected by changing T at any prefix index.

    Partial-integral candidate for M_k #

    partialIntegral μ k f S = ∫ T, f(splice k S T) ∂μⁿ is the natural prefix/tail integral candidate for the Doob exposure martingale.

    Note: we integrate over the whole μⁿ rather than just the tail factor μⁿ⁻ᵏ. Under any probability measure μ, by Fubini this equals integrating only over tail coords (the prefix coords of T do not enter splice k S T). Using μⁿ keeps the type signature simple and avoids subtype arithmetic on Fin n.

    noncomputable def FormalSLT.Azuma.ExposureMartingale.partialIntegral {n : } {Z : Type u_1} [MeasurableSpace Z] (μ : Fin nMeasureTheory.Measure Z) (k : Fin (n + 1)) (f : (Fin nZ)) :
    (Fin nZ)

    The prefix/tail integral candidate for the Doob exposure martingale.

    Equations
    Instances For
      theorem FormalSLT.Azuma.ExposureMartingale.partialIntegral_zero {n : } {Z : Type u_1} [MeasurableSpace Z] {μ : Fin nMeasureTheory.Measure Z} (f : (Fin nZ)) (S : Fin nZ) :
      partialIntegral μ 0 f S = (T : Fin nZ), f T MeasureTheory.Measure.pi μ

      At k = 0, the prefix is empty, so the candidate equals the unconditional expectation of f.

      At k = Fin.last n, the prefix is the full sample, so the candidate equals f S (under a probability measure).

      theorem FormalSLT.Azuma.ExposureMartingale.partialIntegral_invariant_on_tail_update {n : } {Z : Type u_1} [MeasurableSpace Z] {μ : Fin nMeasureTheory.Measure Z} (k : Fin (n + 1)) (f : (Fin nZ)) (S : Fin nZ) {i : Fin n} (hi : ¬i < k) (z' : Z) :

      Tail-update invariance: partialIntegral is unchanged by updating S at any index in the tail i ≥ k. This is the structural property that supports partialIntegral being measurable w.r.t. the prefix-only σ-algebra coordinateSubAlgebra n Z k.

      Strong measurability w.r.t. the full pi σ-algebra #

      partialIntegral μ k f is strongly measurable w.r.t. the full product σ-algebra on Fin n → Z. This follows from joint measurability of splice k and mathlib's parametric integral measurability lemma MeasureTheory.StronglyMeasurable.integral_prod_right'.

      The strengthening to coordinateSubAlgebra n Z k-strong-measurability is a separate sub-PR and uses the tail-update invariance lemma above to factor partialIntegral through the prefix coordinates.

      Strong measurability of partialIntegral w.r.t. the full product σ-algebra on Fin n → Z.

      Prefix-agreement principle #

      partialIntegral μ k f depends only on the prefix coordinates of its argument. This is the pointwise structural property that supports the eventual coordinateSubAlgebra n Z k-strong-measurability of partialIntegral (deferred to a follow-up sub-PR, where it is needed for the conditional-expectation identification).

      theorem FormalSLT.Azuma.ExposureMartingale.partialIntegral_eq_of_agree_prefix {n : } {Z : Type u_1} [MeasurableSpace Z] {μ : Fin nMeasureTheory.Measure Z} (k : Fin (n + 1)) (f : (Fin nZ)) (S S' : Fin nZ) (hagree : ∀ (i : Fin n), i < kS i = S' i) :
      partialIntegral μ k f S = partialIntegral μ k f S'

      Pointwise prefix-agreement principle: partialIntegral μ k f depends only on the prefix coords of its argument.

      Prefix-σ-algebra strong measurability #

      The prefix-agreement principle above yields measurability of partialIntegral w.r.t. coordinateSubAlgebra n Z k. We factor partialIntegral μ k f through a prefix→full round-trip prefixToFull that fills the tail with a default Z-value and prove its measurability via the comap characterization of Measurable.

      [Nonempty Z] is needed only for the default tail value.

      Strong measurability of partialIntegral μ k f w.r.t. coordinateSubAlgebra n Z k. The proof factors partialIntegral through the prefix-only round-trip prefixToFull.

      Splice as a measure-preserving map #

      Under any probability measure μ on Z, the joint splice map (S, T) ↦ splice k S T is measure-preserving from μⁿ × μⁿ to μⁿ. We prove this by factoring splice through MeasurableEquiv.piEquivPiSubtypeProd (mathlib's prefix/tail equivalence). This is the change-of-variables tool needed for the prefix/tail integral identification of the exposure martingale.

      Under any probability measure μ, the joint splice map (S, T) ↦ splice k S T is measure-preserving from μⁿ × μⁿ to μⁿ.

      coordinateSubAlgebra as a comap σ-algebra #

      coordinateSubAlgebra n Z k is the comap of the prefix-only product σ-algebra under the prefix-restriction map. This characterization is the structural fact that lets us turn ℱ_k-measurable sets into preimages of prefix-measurable sets, and yields the set-invariance lemma mem_iff_of_agree_prefix.

      Integrability and the set-integral identity #

      The set-integral identity: for any ℱ_k-measurable set s, the set-integral of partialIntegral μ k f equals that of f.

      The exposure martingale is the partial integral, almost everywhere. This is the conditional-expectation identification: it says that M_k S = E[f | first k coords](S) admits the explicit prefix/tail integral representation partialIntegral μ k f S = ∫ T, f(splice k S T) ∂μⁿ.