Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.Coupling.Basic

Compatible mass functions #

Three mass functions π₁, π₂ and π₃ on ℕ are compatible at level N if they are the marginals of a nonnegative function on the triples (a, b, c) of natural numbers with a + b + c = N. For probability distributions, this says that there are random variables X₁, X₂ and X₃ with distributions π₁, π₂ and π₃ such that X₁ + X₂ + X₃ = N.

Main definitions #

Main statements #

The triples (a, b, c) of natural numbers with a + b + c = N.

Equations
Instances For

    The push-forward of J, restricted to the triples with sum N, along g.

    Equations
    Instances For

      Three mass functions on ℕ are compatible at level N if they are the marginals of a nonnegative function on the triples with sum N.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem ArithmeticTriangleRemovalInVectorSpaces.Compatible.add {N : ℕ} {π₁ π₂ π₃ π₁' π₂' π₃' : ℕ → ℝ} (h : Compatible N π₁ π₂ π₃) (h' : Compatible N π₁' π₂' π₃') :
        Compatible N (π₁ + π₁') (π₂ + π₂') (π₃ + π₃')
        theorem ArithmeticTriangleRemovalInVectorSpaces.Compatible.smul {N : ℕ} {π₁ π₂ π₃ : ℕ → ℝ} (h : Compatible N π₁ π₂ π₃) {r : ℝ} (hr : 0 ≤ r) :
        Compatible N (r • π₁) (r • π₂) (r • π₃)
        theorem ArithmeticTriangleRemovalInVectorSpaces.Compatible.comm₁₂ {N : ℕ} {π₁ π₂ π₃ : ℕ → ℝ} (h : Compatible N π₁ π₂ π₃) :
        Compatible N π₂ π₁ π₃
        theorem ArithmeticTriangleRemovalInVectorSpaces.Compatible.comm₂₃ {N : ℕ} {π₁ π₂ π₃ : ℕ → ℝ} (h : Compatible N π₁ π₂ π₃) :
        Compatible N π₁ π₃ π₂
        theorem ArithmeticTriangleRemovalInVectorSpaces.Compatible.comm₁₃ {N : ℕ} {π₁ π₂ π₃ : ℕ → ℝ} (h : Compatible N π₁ π₂ π₃) :
        Compatible N π₃ π₂ π₁
        theorem ArithmeticTriangleRemovalInVectorSpaces.Compatible.shift {N : ℕ} {π₁ π₂ π₃ : ℕ → ℝ} (h : Compatible N π₁ π₂ π₃) (d : ℕ) :
        Compatible (N + d) π₁ π₂ fun (c : ℕ) => if d ≤ c then π₃ (c - d) else 0

        Adding d to the third variable raises the level by d.

        theorem ArithmeticTriangleRemovalInVectorSpaces.compatible_layer {N : ℕ} {f : ℕ → ℝ} (hf : ∀ (k : ℕ), 0 ≤ f k) :
        Compatible N (fun (a : ℕ) => if a = 0 then ∑ k ∈ Finset.range (N + 1), f k else 0) (fun (b : ℕ) => if b ≤ N then f b else 0) fun (c : ℕ) => if c ≤ N then f (N - c) else 0

        The triples (0, b, N - b) with weights f b.