Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.Coupling.Uniform

Uniform distributions and their mixtures #

Every decreasing mass function on [0, N] is a nonnegative combination of the uniform distributions unif k on [0, k], k ≤ N. This file proves that unif k₁, unif k₂ and a mixture of unif y and unif z are compatible when their means sum to N, assuming Pebody's theorem at lower levels. This is the case analysis of Section 5 of Pebody.

Main definitions #

Main statements #

The uniform distribution on [0, k].

Equations
Instances For
    noncomputable def ArithmeticTriangleRemovalInVectorSpaces.hat (N : ℕ) (w : ℕ → ℝ) (j : ℕ) :

    The combination ∑ k ∈ range (N + 1), w k • unif k of uniform distributions.

    Equations
    Instances For
      theorem ArithmeticTriangleRemovalInVectorSpaces.sum_range_succ_cast (k : ℕ) :
      ∑ j ∈ Finset.range (k + 1), ↑j = ↑k * (↑k + 1) / 2
      theorem ArithmeticTriangleRemovalInVectorSpaces.hat_add {N : ℕ} (w w' : ℕ → ℝ) :
      hat N (w + w') = hat N w + hat N w'
      theorem ArithmeticTriangleRemovalInVectorSpaces.hat_smul {N : ℕ} (r : ℝ) (w : ℕ → ℝ) :
      hat N (r • w) = r • hat N w
      theorem ArithmeticTriangleRemovalInVectorSpaces.mass_hat {N : ℕ} (w : ℕ → ℝ) :
      mass N (hat N w) = ∑ k ∈ Finset.range (N + 1), w k
      theorem ArithmeticTriangleRemovalInVectorSpaces.moment_hat {N : ℕ} (w : ℕ → ℝ) :
      moment N (hat N w) = (∑ k ∈ Finset.range (N + 1), ↑k * w k) / 2
      theorem ArithmeticTriangleRemovalInVectorSpaces.IsDecreasingOn.eq_hat {N : ℕ} {π : ℕ → ℝ} (h : IsDecreasingOn N π) :
      π = hat N fun (k : ℕ) => (↑k + 1) * (π k - π (k + 1))

      A decreasing mass function is a combination of uniform distributions, with the nonnegative weights (k + 1) * (π k - π (k + 1)).

      theorem ArithmeticTriangleRemovalInVectorSpaces.IsDecreasingOn.weight_nonneg {N : ℕ} {π : ℕ → ℝ} (h : IsDecreasingOn N π) (k : ℕ) :
      0 ≤ (↑k + 1) * (π k - π (k + 1))
      theorem ArithmeticTriangleRemovalInVectorSpaces.IsDecreasingOn.weight_eq_zero {N : ℕ} {π : ℕ → ℝ} (h : IsDecreasingOn N π) {k : ℕ} (hk : N < k) :
      (↑k + 1) * (π k - π (k + 1)) = 0
      theorem ArithmeticTriangleRemovalInVectorSpaces.compatible_unif_mix {N : ℕ} (ih : ∀ m < N, DecreasingCompatible m) {k₁ k₂ y z : ℕ} (hk₁ : k₁ ≤ N) (hk₂ : k₂ ≤ N) (hy : y ≤ N) (hz : z ≤ N) {α : ℝ} (hα₀ : 0 ≤ α) (hα₁ : α ≤ 1) (hsum : ↑k₁ + ↑k₂ + α * ↑y + (1 - α) * ↑z = 2 * ↑N) :
      Compatible N (unif k₁) (unif k₂) (α • unif y + (1 - α) • unif z)

      unif k₁, unif k₂ and α • unif y + (1 - α) • unif z are compatible at level N when their means sum to N, given Pebody's theorem at lower levels.