Documentation

Exchangeability.DeFinetti.ViaL2.MoreL2Helpers

Additional L² Helpers and Incomplete Lemmas #

This file contains technical lemmas and placeholder definitions that support the L² proof of de Finetti's theorem. Some lemmas have sorry placeholders that will eventually be replaced with proper proofs from mathlib or local implementations.

Contents #

Note #

The incomplete lemmas in this file are placeholders for complex proofs that are deferred to allow the main proof structure to be complete. Each sorry can be replaced with a proper proof.

Forward declarations and placeholders #

This section contains forward declarations and placeholder definitions for deep results. Each sorry can be replaced with a proper proof from mathlib or a local implementation.

theorem Exchangeability.DeFinetti.ViaL2.cdf_from_alpha_limits {Ω : Type u_3} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (ω : Ω) :
Filter.Tendsto (cdf_from_alpha X hX_contract hX_meas hX_L2 ω) Filter.atBot (nhds 0) Filter.Tendsto (cdf_from_alpha X hX_contract hX_meas hX_L2 ω) Filter.atTop (nhds 1)

CDF limits at ±∞: F(t) → 0 as t → -∞ and F(t) → 1 as t → +∞.

This is now trivial because cdf_from_alpha is defined via stieltjesOfMeasurableRat, which guarantees these limits for ALL ω (not just a.e.) by construction.

The stieltjesOfMeasurableRat construction automatically patches the null set where the raw L¹ limit alphaIic would fail to have proper CDF limits.

L¹ Convergence Helpers #

Boundedness Helpers #

AE Strong Measurability for iInf/iSup #

theorem Exchangeability.DeFinetti.ViaL2.directing_measure_eval_Iic_measurable {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (t : ) :
Measurable fun (ω : Ω) => (directing_measure X hX_contract hX_meas hX_L2 ω) (Set.Iic t)

For each fixed t, ω ↦ ν(ω)((-∞,t]) is measurable. This is the base case for the π-λ theorem.

theorem Exchangeability.DeFinetti.ViaL2.directing_measure_measurable {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (s : Set ) (hs : MeasurableSet s) :
Measurable fun (ω : Ω) => (directing_measure X hX_contract hX_meas hX_L2 ω) s

For each measurable set s, the map ω ↦ ν(ω)(s) is measurable.

This is the key measurability property needed for complete_from_directing_measure. Uses monotone class theorem (π-λ theorem) - prove for intervals, extend to all Borel sets.

L¹ Limit Uniqueness #

The following lemma establishes that L¹ limits are unique up to a.e. equality. This is used to prove the linearity lemmas below.

theorem Exchangeability.DeFinetti.ViaL2.ae_eq_of_tendsto_L1 {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {f : Ω} {g h : Ω} (_hf_meas : ∀ (n : ), Measurable (f n)) (_hg_meas : Measurable g) (_hh_meas : Measurable h) (hf_int : ∀ (n : ), MeasureTheory.Integrable (f n) μ) (hg_int : MeasureTheory.Integrable g μ) (hh_int : MeasureTheory.Integrable h μ) (hfg : ε > 0, ∃ (N : ), nN, (ω : Ω), |f n ω - g ω| μ < ε) (hfh : ε > 0, ∃ (N : ), nN, (ω : Ω), |f n ω - h ω| μ < ε) :
g =ᵐ[μ] h

If a sequence converges in L¹ to two limits, they are a.e. equal.

This follows from the triangle inequality: ‖g - h‖₁ ≤ ‖g - f_n‖₁ + ‖f_n - h‖₁, and both terms go to 0.

Linearity of L¹ Limits #

The following lemmas establish that the L¹ limit functional from weighted_sums_converge_L1 is linear: if f and g have L¹ limits α_f and α_g, then f + g has limit α_f + α_g, and c * f has limit c * α_f.

These are essential for the functional monotone class argument that extends from indicators of half-lines to all bounded measurable functions.

theorem Exchangeability.DeFinetti.ViaL2.weighted_sums_converge_L1_smul {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (f : ) (hf_meas : Measurable f) (hf_bdd : ∃ (M : ), ∀ (x : ), |f x| M) (c : ) (hcf_bdd : ∃ (M : ), ∀ (x : ), |c * f x| M) :
have alpha := .choose; have alpha_c := .choose; alpha_c =ᵐ[μ] fun (ω : Ω) => c * alpha ω

Scalar multiplication of L¹ limits: if f has L¹ limit α, then cf has L¹ limit cα.

theorem Exchangeability.DeFinetti.ViaL2.weighted_sums_converge_L1_add {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (f g : ) (hf_meas : Measurable f) (hg_meas : Measurable g) (hf_bdd : ∃ (M : ), ∀ (x : ), |f x| M) (hg_bdd : ∃ (M : ), ∀ (x : ), |g x| M) (hfg_bdd : ∃ (M : ), ∀ (x : ), |f x + g x| M) :
have alpha_f := .choose; have alpha_g := .choose; have alpha_fg := .choose; alpha_fg =ᵐ[μ] fun (ω : Ω) => alpha_f ω + alpha_g ω

Addition of L¹ limits: if f has limit α_f and g has limit α_g, then f+g has limit α_f + α_g.

theorem Exchangeability.DeFinetti.ViaL2.weighted_sums_converge_L1_one_sub {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (f : ) (hf_meas : Measurable f) (hf_bdd : ∃ (M : ), ∀ (x : ), |f x| M) (hsub_bdd : ∃ (M : ), ∀ (x : ), |1 - f x| M) :
have alpha := .choose; have alpha_1 := .choose; have alpha_sub := .choose; alpha_sub =ᵐ[μ] fun (ω : Ω) => alpha_1 ω - alpha ω

Subtraction/complement: L¹ limit of (1 - f) is (1 - limit of f).

This is used for the complement step in the π-λ argument: 1_{Sᶜ} = 1 - 1_S, so the limit for the complement is 1 minus the limit for the set.

theorem Exchangeability.DeFinetti.ViaL2.weighted_sums_converge_L1_const_one {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) :
.choose =ᵐ[μ] fun (x : Ω) => 1

The L¹ limit of the constant function 1 is 1 a.e.

This is immediate since the Cesàro average of constant 1 is exactly 1: (1/N) Σ_k 1 = (1/N) * N = 1.

theorem Exchangeability.DeFinetti.ViaL2.directing_measure_integral {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (f : ) (hf_meas : Measurable f) (hf_bdd : ∃ (M : ), ∀ (x : ), |f x| M) :
∃ (alpha : Ω), Measurable alpha MeasureTheory.MemLp alpha 1 μ (∀ (n : ), ε > 0, ∃ (M : ), mM, (ω : Ω), |1 / m * k : Fin m, f (X (n + k + 1) ω) - alpha ω| μ < ε) ∀ᵐ (ω : Ω) μ, alpha ω = (x : ), f x directing_measure X hX_contract hX_meas hX_L2 ω

The directing measure integrates to give α_f.

For any bounded measurable f, we have α_f(ω) = ∫ f dν(ω) a.e. This is the fundamental bridge property.

theorem Exchangeability.DeFinetti.ViaL2.alpha_is_conditional_expectation_packaged {Ω : Type u_3} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (f : ) (hf_meas : Measurable f) (hf_bdd : ∃ (C : ), ∀ (x : ), |f x| C) :
∃ (alpha : Ω) (nu : ΩMeasureTheory.Measure ), Measurable alpha MeasureTheory.MemLp alpha 1 μ (∀ (ω : Ω), MeasureTheory.IsProbabilityMeasure (nu ω)) (∀ (s : Set ), MeasurableSet sMeasurable fun (ω : Ω) => (nu ω) s) (∀ (n : ), ε > 0, ∃ (M : ), mM, (ω : Ω), |1 / m * k : Fin m, f (X (n + k + 1) ω) - alpha ω| μ < ε) ∀ᵐ (ω : Ω) μ, alpha ω = (x : ), f x nu ω

Packaged directing measure theorem: Existence of a directing kernel with all key properties bundled together.

For a contractable sequence X on ℝ, there exists:

  1. A limit function α ∈ L¹ that is the L¹ limit of Cesàro averages
  2. A random probability measure ν(·) on ℝ (the directing measure)
  3. The identification α = ∫ f dν a.e.

This packages the outputs of directing_measure and directing_measure_integral into a single existential statement that is convenient for applications.

Proof: Follows directly from directing_measure_integral which provides the limit α and its identification with ∫ f dν, combined with directing_measure_isProbabilityMeasure and directing_measure_measurable.

theorem Exchangeability.DeFinetti.ViaL2.integral_alphaIic_eq_marginal {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) (t : ) :
(ω : Ω), alphaIic X hX_contract hX_meas hX_L2 t ω μ = (μ (X 0 ⁻¹' Set.Iic t)).toReal

The integral of alphaIic equals the marginal probability.

By the L¹ convergence property of the Cesàro averages and contractability (which implies all marginals are equal), we have: ∫ alphaIic(t, ω) dμ = μ(X_0 ∈ Iic t)

This is a key step in proving the bridge property.

Proof outline:

  1. alphaIic is the clipped L¹ limit of Cesàro averages of 1_{Iic t}(X_i)
  2. By L¹ convergence: ∫ (limit) dμ = lim ∫ (Cesàro average) dμ
  3. By contractability: each μ(X_i ∈ Iic t) = μ(X_0 ∈ Iic t)
  4. Therefore: ∫ alphaIic dμ = μ(X_0 ∈ Iic t)

Injective to StrictMono via Sorting #

For the bridge property, we need to convert an injective function k : Fin m → ℕ to a strictly monotone one. This is done by sorting the image of k.

Note: The lemma injective_implies_strictMono_perm is now in Exchangeability.Util.StrictMono and imported via open at the top of this file.

Collision Bound for Route B #

The key estimate for Route B: the fraction of non-injective maps φ : Fin m → Fin N tends to 0 as N → ∞, with rate O(m²/N).

def Exchangeability.DeFinetti.ViaL2.constrainedFunctionEquiv {N n : } (i j : Fin (n + 1)) (hij : i j) :
{ φ : Fin (n + 1)Fin N // φ i = φ j } (Fin nFin N)

Bijection between constrained functions {φ | φ i = φ j} and functions on Fin n.

The constraint φ i = φ j means φ j is determined by φ i, so effectively we only need to specify φ on {k | k ≠ j}, which has cardinality n when the domain is Fin (n+1).

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem Exchangeability.DeFinetti.ViaL2.card_collision_set (m N : ) (i j : Fin m) (hij : i j) :
    Fintype.card { φ : Fin mFin N // φ i = φ j } = N ^ (m - 1)

    Cardinality of {φ | φ i = φ j} equals N^(m-1). The constraint φ i = φ j reduces the degrees of freedom by 1.

    The set of ordered pairs (i, j) with i ≠ j.

    Equations
    Instances For

      The number of collision pairs is at most m².

      For each pair (i, j), the set of maps with collision φ i = φ j.

      Equations
      Instances For

        The number of non-injective maps φ : Fin m → Fin N is at most m² * N^(m-1).

        Proof: A non-injective map has some pair (i, j) with i ≠ j and φ(i) = φ(j). By union bound over the m² pairs, and for each pair there are at most N^(m-1) maps.

        The fraction of non-injective maps tends to 0 as N → ∞.

        For fixed m, the fraction (# non-injective) / N^m ≤ m²/N → 0.

        Product L¹ Convergence #

        For Route B, we need: if each factor converges in L¹, then the product converges in L¹ (under boundedness assumptions).

        theorem Exchangeability.DeFinetti.ViaL2.prod_tendsto_L1_of_L1_tendsto {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {m : } (f : Fin mΩ) (g : Fin mΩ) (hf_bdd : ∀ (n : ) (i : Fin m) (ω : Ω), |f n i ω| 1) (hg_bdd : ∀ (i : Fin m) (ω : Ω), |g i ω| 1) (hf_meas : ∀ (n : ) (i : Fin m), MeasureTheory.AEStronglyMeasurable (f n i) μ) (hg_meas : ∀ (i : Fin m), MeasureTheory.AEStronglyMeasurable (g i) μ) (h_conv : ∀ (i : Fin m), Filter.Tendsto (fun (n : ) => (ω : Ω), |f n i ω - g i ω| μ) Filter.atTop (nhds 0)) :
        Filter.Tendsto (fun (n : ) => (ω : Ω), |i : Fin m, f n i ω - i : Fin m, g i ω| μ) Filter.atTop (nhds 0)

        Product of L¹-convergent bounded sequences converges in L¹.

        If f_n(i) → g(i) in L¹ for each i, and all functions are bounded by 1, then ∏_i f_n(i) → ∏_i g(i) in L¹.

        Proof: By abs_prod_sub_prod_le, we have pointwise: |∏_i f_n(i) - ∏_i g(i)| ≤ ∑_j |f_n(j) - g(j)|

        Integrating and using Fubini: ∫ |∏ f - ∏ g| ≤ ∫ ∑_j |f_j - g_j| = ∑_j ∫ |f_j - g_j|

        The RHS tends to 0 by h_conv and tendsto_finset_sum.

        theorem Exchangeability.DeFinetti.ViaL2.block_index_strictMono {m N : } (_hN : 0 < N) (φ : Fin mFin N) :
        StrictMono fun (i : Fin m) => i * N + (φ i)

        Block index function is strictly monotone.

        For the block-separated approach, we define indices using disjoint ordered blocks: k_φ(i) := i * N + φ(i) for φ : Fin m → Fin N

        This is STRICTLY MONOTONE for any φ because: k_φ(i) = i * N + φ(i) ≤ i * N + (N-1) < (i+1) * N ≤ k_φ(i+1)

        This is the key insight that makes the block-separated approach work: every selection is StrictMono, so contractability applies to EVERY term (no exchangeability required).

        theorem Exchangeability.DeFinetti.ViaL2.directing_measure_bridge {Ω : Type u_1} [MeasurableSpace Ω] [StandardBorelSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_contract : Contractable μ X) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) {m : } (k : Fin m) (hk : Function.Injective k) (B : Fin mSet ) (hB : ∀ (i : Fin m), MeasurableSet (B i)) :
        ∫⁻ (ω : Ω), i : Fin m, ENNReal.ofReal ((B i).indicator (fun (x : ) => 1) (X (k i) ω)) μ = ∫⁻ (ω : Ω), i : Fin m, (directing_measure X hX_contract hX_meas hX_L2 ω) (B i) μ

        The bridge property: E[∏ᵢ 𝟙_{Bᵢ}(X_{k(i)})] = E[∏ᵢ ν(·)(Bᵢ)].

        This is the key property needed for complete_from_directing_measure. Uses indicator_product_bridge from BridgeProperty.lean, establishing that the directing measure satisfies hν_law via shift invariance of conditional expectations.

        Original proof structure (commented out due to incomplete lemmas) #

        The original proof attempted to show:

        1. Reduce injective k to strictly monotone via permutation
        2. Use contractability for distributional equality
        3. Apply U-statistic expansion for product expectations
        4. Conclude via L¹ convergence of block averages

        Key intermediate lemmas that need completion:

        theorem Exchangeability.DeFinetti.ViaL2.directing_measure_satisfies_requirements {Ω : Type u_1} [MeasurableSpace Ω] [StandardBorelSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (X : Ω) (hX_meas : ∀ (i : ), Measurable (X i)) (hX_contract : Contractable μ X) (hX_L2 : ∀ (i : ), MeasureTheory.MemLp (X i) 2 μ) :
        ∃ (ν : ΩMeasureTheory.Measure ), (∀ (ω : Ω), MeasureTheory.IsProbabilityMeasure (ν ω)) (∀ (s : Set ), MeasurableSet sMeasurable fun (ω : Ω) => (ν ω) s) ∀ {m : } (k : Fin m), Function.Injective k∀ (B : Fin mSet ), (∀ (i : Fin m), MeasurableSet (B i))∫⁻ (ω : Ω), i : Fin m, ENNReal.ofReal ((B i).indicator (fun (x : ) => 1) (X (k i) ω)) μ = ∫⁻ (ω : Ω), i : Fin m, (ν ω) (B i) μ

        Main packaging theorem for L² proof.

        This theorem packages all the directing measure properties needed by CommonEnding.complete_from_directing_measure:

        1. ν is a probability measure for all ω
        2. ω ↦ ν(ω)(s) is measurable for all measurable sets s
        3. The bridge property: E[∏ᵢ 1_{Bᵢ}(X_{k(i)})] = E[∏ᵢ ν(·)(Bᵢ)]

        This enables the final step of the L² proof of de Finetti's theorem.