- Boxes
- definitions
- Ellipses
- theorems and lemmas
- Blue border
- the statement of this result is ready to be formalized; all prerequisites are done
- Orange border
- the statement of this result is not ready to be formalized; the blueprint needs more work
- Blue background
- the proof of this result is ready to be formalized; all prerequisites are done
- Green border
- the statement of this result is formalized
- Green background
- the proof of this result is formalized
- Dark green background
- the proof of this result and all its ancestors are formalized
- Dark green border
- this is in Mathlib
A sequence \((X_n)_{n \in \mathbb {N}}\) is conditionally i.i.d. with respect to measure \(\mu \) if there exists a probability kernel \(\nu : \Omega \to \mathrm{Measure}(\alpha )\) such that for any strictly monotone \(k : \mathrm{Fin}(m) \to \mathbb {N}\), the joint distribution of \((X_{k(0)}, \ldots , X_{k(m-1)})\) equals the mixture \(\mu .\mathrm{bind}(\omega \mapsto \nu (\omega )^{\otimes m})\).
A sequence \((X_n)_{n \in \mathbb {N}}\) is contractable with respect to measure \(\mu \) if for all \(m \in \mathbb {N}\) and all strictly increasing functions \(k, k' : \mathrm{Fin}(m) \to \mathbb {N}\), the joint distribution of \((X_{k(0)}, \ldots , X_{k(m-1)})\) equals that of \((X_{k'(0)}, \ldots , X_{k'(m-1)})\).
A sequence \((X_n)_{n \in \mathbb {N}}\) of random variables is exchangeable with respect to measure \(\mu \) if for every \(n \in \mathbb {N}\) and every permutation \(\sigma \) of \(\{ 0, \ldots , n-1\} \), the joint distribution of \((X_{\sigma (0)}, \ldots , X_{\sigma (n-1)})\) equals that of \((X_0, \ldots , X_{n-1})\).
The (one-sided) shift-invariant \(\sigma \)-algebra on path space \(\mathbb {N} \to \alpha \) consists of measurable sets \(S\) such that \(\theta ^{-1}(S) = S\), where \(\theta \) is the left shift. A two-sided counterpart on \(\mathbb {Z} \to \alpha \), ViaKoopman.shiftInvariantSigma\(\mathbb {Z}\), is introduced separately as scaffolding for the Koopman route’s lag-constancy lemmas.
For a shift-invariant measure, block averages converge in \(L^1\) to the conditional expectation given the shift-invariant \(\sigma \)-algebra: \(\int |A_{m,n,k}(f) - \mathbb {E}[f \circ \pi _0 \mid \mathcal{I}]| \, d\mu \to 0\) as \(n \to \infty \).
Per-coordinate identification: for every \(n\) and every Borel \(B\), \((\omega \mapsto \nu (\omega )(B).\mathrm{toReal}) \, =^{\mu \text{-a.e.}} \, \mathbb {E}[\mathbf{1}_B \circ X_n \mid \mathcal{T}]\). This is the bridge condition consumed by 24 below.
For a bounded measurable function \(f\), the integral \(\int f \, d\nu (\omega )\) against the directing measure equals \(\mathbb {E}[f \circ X_0 \mid \mathcal{T}](\omega )\) almost everywhere. This is the shape consumed by the shared common-ending step.
The Stieltjes measure constructed from the limiting CDF is a probability measure for every \(\omega \) (pointwise, not merely a.e.). Monotonicity, bounds, and right-continuity of the underlying CDF are inherited directly from mathlib’s stieltjesOfMeasurableRat construction.
Under contractability, for every strictly monotone selection \(k : \mathrm{Fin}\, m \to \mathbb {N}\) and any kernel \(\nu \) satisfying the per-coordinate bridge 23:
This is the martingale route’s analogue of the L²/Koopman 49: it bundles the rectangle \(\pi \)-system extension and the \(\mathrm{Measure.map} = \mathrm{bind}\) identification into one step driven by per-coordinate conditional expectations.
If \((X_n)\) is contractable (and real-valued), then it is conditionally i.i.d. Scope note: the L\(^2\) route is currently stated for real-valued sequences via the Stieltjes-based directing-measure construction; extending it to general standard Borel targets would require a measure-disintegration replacement for the Stieltjes step.
If \((X_n)\) is contractable, then it is conditionally i.i.d. The directing kernel \(\nu (\omega )(B) = \mathbb {E}[\mathbf{1}_{X_0 \in B} \mid \mathcal{T}](\omega )\) is constructed from the tail \(\sigma \)-algebra, identified per-coordinate by 23, and lifted to the joint law by 24 — bypassing the L²/Koopman common-ending step.
For an infinite sequence \((X_n)_{n \in \mathbb {N}}\) of random variables taking values in a standard Borel space \(\alpha \) (with \(\alpha \) nonempty), the following are equivalent:
\((X_n)\) is contractable
\((X_n)\) is exchangeable
\((X_n)\) is conditionally i.i.d. (i.e., there exists a directing kernel \(\nu \))
This is the default project export. The proof constructs \(\nu \) from the tail \(\sigma \)-algebra \(\mathcal{T}\) via \(\nu (\omega )(B) = \mathbb {E}[\mathbf{1}_{X_0 \in B} \mid \mathcal{T}](\omega )\).
Almost everywhere in \(\omega \), the Stieltjes-built directing measure coincides with the push-forward of mathlib’s condExpKernel \(\mu \) \(\mathcal{T}\) \(\omega \) by \(X_0\). This is the kernel-level bridge from the analytic L\(^2\) construction to mathlib’s conditional-expectation kernel API.