Exchangeability and Full Exchangeability #
This file proves that exchangeability (invariance under finite permutations) and full exchangeability (invariance under all permutations of ℕ) are equivalent for probability measures on sequence spaces.
Main results #
exchangeable_iff_fullyExchangeable: For a probability measure and a measurable stochastic process, exchangeability is equivalent to full exchangeability.measure_eq_of_fin_marginals_eq: Two finite measures onℕ → αthat agree on all finite-dimensional marginals are equal.
Technical approach #
The proof uses the π-system uniqueness theorem for finite measures rather than
directly invoking Kolmogorov extension or Ionescu-Tulcea. While mathlib provides
these powerful tools (Measure.infinitePi for Kolmogorov extension and
ProbabilityTheory.Kernel.traj for Ionescu-Tulcea), applying them here would
require first constructing the measure from exchangeability data, which is
circular when proving that finite exchangeability implies full exchangeability.
Instead, we use a uniqueness-based approach:
- Cylinder sets determined by initial segments form a π-system that generates
the product σ-algebra on
ℕ → α. - Two measures with matching finite marginals must be equal (by π-system
uniqueness,
Measure.ext_of_generate_finite). - Any infinite permutation can be approximated by a finite permutation on a sufficiently large initial segment, allowing us to transfer exchangeability to full exchangeability via the uniqueness result.
This approach directly proves the equivalence without requiring measure construction machinery.
π-system of prefix cylinders #
A prefix cylinder is a measurable subset of ℕ → α determined by the first
n coordinates. Formally, it is the preimage of a measurable set under the
projection to Fin n → α.
Key properties:
- Prefix cylinders form a π-system (closed under finite intersections).
- They generate the product σ-algebra on
ℕ → α. - This allows us to apply the π-system uniqueness theorem: two finite measures that agree on all prefix cylinders must be equal.
Projection to the first n coordinates.
Equations
- Exchangeability.prefixProj α n x i = x ↑i
Instances For
Cylinder set determined by the first n coordinates.
Given a set S ⊆ Fin n → α, the prefix cylinder prefixCylinder n S is the
set of all sequences x : ℕ → α whose first n coordinates lie in S.
Equations
Instances For
The collection of all prefix cylinders.
A set A ⊆ ℕ → α belongs to prefixCylinders if it is the preimage of some
measurable set S ⊆ Fin n → α under projection to the first n coordinates,
for some n.
Key property: This forms a π-system that generates the product σ-algebra.
Equations
- Exchangeability.prefixCylinders = {A : Set (ℕ → α) | ∃ (n : ℕ) (S : Set (Fin n → α)), MeasurableSet S ∧ A = Exchangeability.prefixCylinder S}
Instances For
Restrict a finite tuple to its first m coordinates.
Given a function x : Fin n → α and a proof that m ≤ n, returns the
restriction to Fin m → α.
Equations
- Exchangeability.takePrefix hmn x i = x (Fin.castLE hmn i)
Instances For
Extend a set from Fin m → α to Fin n → α by ignoring extra coordinates.
Given a set S ⊆ Fin m → α and m ≤ n, the extended set consists of all
x : Fin n → α whose first m coordinates lie in S.
Equations
- Exchangeability.extendSet hmn S = {x : Fin n → α | Exchangeability.takePrefix hmn x ∈ S}
Instances For
The prefix cylinders form a π-system.
A π-system is a collection of sets closed under finite intersections. This property is crucial for applying the uniqueness theorem for finite measures.
Helper: any cylinder determined by a finite set of coordinates belongs to the σ-algebra generated by prefix cylinders.
The σ-algebra generated by prefix cylinders is the product σ-algebra.
This shows that prefix cylinders generate the full product σ-algebra on ℕ → α,
which means any measurable set can be approximated by prefix cylinders.
Finite measures with matching finite-dimensional marginals are equal.
If two finite measures on ℕ → α induce the same distribution on each
finite-dimensional projection Fin n → α, then they are equal. This is a
consequence of the π-system uniqueness theorem applied to prefix cylinders.
Mathematical content: This is a Kolmogorov extension-type result showing that infinite-dimensional measures are determined by their finite marginals.
Proof structure: The proof decomposes into three steps:
- Measures agree on total mass (via 1-dimensional marginal)
- Measures agree on all prefix cylinders (direct from marginals)
- Apply π-system uniqueness to extend agreement to all measurable sets
Convenience wrapper of measure_eq_of_fin_marginals_eq for probability measures.
Exchangeability versus full exchangeability #
This section proves that exchangeability (invariance under finite permutations) implies full exchangeability (invariance under all permutations of ℕ) for probability measures.
Strategy: Given an arbitrary permutation π of ℕ and a finite index n, we construct a finite permutation that agrees with π on the first n coordinates. Exchangeability ensures the finite marginals match, and by the previous uniqueness result, the full measures are equal.
Reindex a sequence by applying a permutation to the indices.
Given a permutation π of ℕ and a sequence x : ℕ → α, returns the sequence
i ↦ x (π i).
Equations
- Exchangeability.reindex π x i = x (π i)
Instances For
The path law (or joint distribution) of a stochastic process.
Given a measure μ on Ω and a process X : ℕ → Ω → α, the path law is the
pushforward measure on ℕ → α obtained by mapping each ω to its sample path
i ↦ X i ω.
Equations
- Exchangeability.pathLaw μ X = MeasureTheory.Measure.map (fun (ω : Ω) (i : ℕ) => X i ω) μ
Instances For
Full exchangeability is equivalent to invariance of the path law.
A process is fully exchangeable if and only if its path law is invariant under all permutations of the index set ℕ. This provides a measure-theoretic characterization of full exchangeability.
Auxiliary combinatorics: approximating infinite permutations #
To prove that exchangeability implies full exchangeability, we need to show that any infinite permutation π of ℕ can be approximated by a finite permutation on a sufficiently large initial segment.
The key construction: given π and n, we find a bound m = permBound π n such
that both {0,...,n-1} and {π(0),...,π(n-1)} lie in {0,...,m-1}. Then we
extend π to a permutation of Fin m by choosing an arbitrary permutation on the
remaining indices.
A finite bound containing both {0,...,n-1} and {π(0),...,π(n-1)}.
This is the maximum of n and the supremum of π(i) + 1 for i < n.
Equations
- Exchangeability.permBound π n = max n ((Finset.range n).sup fun (i : ℕ) => π i + 1)
Instances For
Equivalence between indices below n and indices in the image of a permutation. Used in the proof of exchangeability via permutation extension.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exchangeability implies invariance of all finite marginals under arbitrary permutations.
If a process X is exchangeable (invariant under finite permutations), then
each finite marginal is invariant under any permutation of ℕ, not just finite
ones. This is the key step in proving exchangeability implies full exchangeability.
Proof idea: Given an arbitrary permutation π and dimension n, construct a
finite permutation that agrees with π on the first n coordinates using
approxPerm. Exchangeability ensures this finite permutation preserves the
n-dimensional marginal, hence so does π.