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) #
splice k S T— combine prefix coords fromSand tail coords fromTalong the predicate(i : ℕ) < (k : ℕ).splice_zero,splice_last— boundary identities.measurable_splice— joint measurability ofsplicein(S, T).partialIntegral μ k f S— the prefix/tail integral candidate∫ T, f(splice k S T) ∂μⁿ.partialIntegral_zero— atk = 0, equals∫ f dμⁿpointwise (no prefix to condition on).partialIntegral_last— atk = Fin.last n, equalsf Spointwise under a probability measure (full prefix recoversf).partialIntegral_invariant_on_tail_update— the invariancepartialIntegral S = partialIntegral (Function.update S i z')for any tail indexi ≥ k. This is the structural property that makespartialIntegralcoordinateSubAlgebra k-measurable in spirit; the full strongly-measurable statement is deferred to a follow-up sub-PR of B2c.
Constraints #
- No
sorry, noadmit, no customaxiom. All lemmas close. - No manifest entry. No
/leandashboard update. - No concentration claim. The strongest identity here is a pointwise
equality of two real-valued functions on
Fin n → Z. [StandardBorelSpace Z]is not assumed in this module. It will appear only in the conditional-Hoeffding sub-PR (B2c-3) wherecondExpKernelenters.
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.
Joint measurability of splice in (S, T).
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.
The prefix/tail integral candidate for the Doob exposure martingale.
Equations
- FormalSLT.Azuma.ExposureMartingale.partialIntegral μ k f S = ∫ (T : Fin n → Z), f (FormalSLT.Azuma.ExposureMartingale.splice k S T) ∂MeasureTheory.Measure.pi μ
Instances For
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).
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).
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 #
partialIntegral μ k f is integrable when f is.
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) ∂μⁿ.