Documentation

BGW.ContinuumTrees.LeafMeasure

Vertex and leaf measures on coded trees #

Uniform time is sent to empirical vertex and leaf measures by an explicit quantile map. A coupling on time pairs controls the Lévy–Prokhorov distance after projection into a coded tree. The quantile coupling gives discrete bounds, convergence under asymptotic equicontinuity, and a common-source comparison for finite plane trees. The coded-tree bound is the deterministic core of comparisons between vertex and leaf measures of large trees (J.-F. Le Gall, Random trees and applications, Probab. Surveys 2 (2005), Lemma 2.4 for the coding distance; P. Billingsley, Convergence of Probability Measures, 2nd ed., Wiley, 1999, Section 6, for the Prokhorov distance).

Time i / n of the index i among n points, as a point of [0,1] (clamped).

Equations
Instances For
    noncomputable def BGW.ContinuumTrees.LeafMeasure.rank (n : ℕ) (s : ↑unitInterval) :

    Quantile rank: the index in {0, …, n-1} selected by the uniform time s (⌊n s⌋, with s = 1 sent to n - 1).

    Equations
    Instances For

      Uniform measure on the times ℓ k / n, k < N (leaf-time measure).

      Equations
      Instances For

        The quantile rank is measurable.

        theorem BGW.ContinuumTrees.LeafMeasure.rank_lt (n : ℕ) (hn : 0 < n) (s : ↑unitInterval) :
        rank n s < n

        Quantile ranks of n points lie below n.

        theorem BGW.ContinuumTrees.LeafMeasure.rank_fiber_Ico (n : ℕ) (hn : 0 < n) (i : ℕ) (hi : i < n - 1) :
        {s : ↑unitInterval | rank n s = i} = Set.Ico (idxTime n i) (idxTime n (i + 1))

        Except for the last rank, a quantile fiber is the corresponding half-open cell.

        theorem BGW.ContinuumTrees.LeafMeasure.rank_fiber_last (n : ℕ) (hn : 0 < n) :
        {s : ↑unitInterval | rank n s = n - 1} = Set.Icc (idxTime n (n - 1)) 1

        The last quantile fiber is the closed final cell.

        theorem BGW.ContinuumTrees.LeafMeasure.volume_rank_fiber (n : ℕ) (hn : 0 < n) (i : ℕ) (hi : i < n) :

        Every quantile fiber has volume 1 / n.

        Pushing uniform time through rank n gives the empirical measure on Fin n.

        The vertex-time measure is the pushforward of Lebesgue measure under the quantile map.

        The leaf-time measure is the pushforward of Lebesgue measure under the leaf quantile map.

        theorem BGW.ContinuumTrees.LeafMeasure.rank_cell_bounds (n : ℕ) (hn : 0 < n) (s : ↑unitInterval) :
        ↑(rank n s) ≤ ↑n * ↑s ∧ ↑n * ↑s ≤ ↑(rank n s) + 1

        The selected rank lies within one unit of the unrounded scaled time.

        theorem BGW.ContinuumTrees.LeafMeasure.abs_rank_div_sub_time_le (n : ℕ) (hn : 0 < n) (s : ↑unitInterval) :
        |↑(rank n s) / ↑n - ↑s| ≤ 1 / ↑n

        Normalized quantile time differs from the input time by at most 1 / n.

        theorem BGW.ContinuumTrees.LeafMeasure.abs_idxTime_leaf_sub_vertex_le (n N : ℕ) (hn : 0 < n) (hN : 0 < N) (ℓ : ℕ → ℕ) (hℓ : ∀ k < N, ℓ k < n) {D : ℝ} (hD : ∀ k < N, |↑(ℓ k) / ↑n - ↑k / ↑N| ≤ D) (s : ↑unitInterval) :
        |↑(idxTime n (ℓ (rank N s))) - ↑(idxTime n (rank n s))| ≤ D + 1 / ↑N + 1 / ↑n

        Quantile coupling bound: the leaf and vertex quantile times differ by at most D + 1/N + 1/n.

        Deterministic coupling estimate. If π is a coupling of μ and ν on [0,1]² giving mass ≤ δ' to the set {|s - t| > δ}, and g oscillates by at most ω at time scale δ, then the Prokhorov distance of the images in the coded tree is at most max δ' (2 ω).

        theorem BGW.ContinuumTrees.LeafMeasure.levyProkhorovDist_vertex_leaf_le (g : C(↑unitInterval, ℝ)) (n N : ℕ) (hn : 0 < n) (hN : 0 < N) (ℓ : ℕ → ℕ) (hℓ : ∀ k < N, ℓ k < n) {D ω : ℝ} (hD : ∀ k < N, |↑(ℓ k) / ↑n - ↑k / ↑N| ≤ D) (hω : ∀ (u v : ↑unitInterval), |↑u - ↑v| ≤ D + 1 / ↑N + 1 / ↑n → |g u - g v| ≤ ω) :

        Discrete estimate: for every continuous coding function g, the vertex-time and leaf-time measures on the coded tree are within 2 ω in Prokhorov distance, where ω bounds the oscillation of g at time scale D + 1/N + 1/n.

        theorem BGW.ContinuumTrees.LeafMeasure.one_div_n_le (n N : ℕ) (hn : 0 < n) (hN : 0 < N) (ℓ : ℕ → ℕ) (hℓ : ∀ k < N, ℓ k < n) {D : ℝ} (hD : ∀ k < N, |↑(ℓ k) / ↑n - ↑k / ↑N| ≤ D) :
        1 / ↑n ≤ D + 1 / ↑N

        A leaf-index discrepancy bound forces the vertex spacing below the combined scale.

        theorem BGW.ContinuumTrees.LeafMeasure.tendsto_levyProkhorovDist_vertex_leaf (g : ℕ → C(↑unitInterval, ℝ)) (n N : ℕ → ℕ) (hn : ∀ (j : ℕ), 0 < n j) (hN : ∀ (j : ℕ), 0 < N j) (ℓ : ℕ → ℕ → ℕ) (hℓ : ∀ (j k : ℕ), k < N j → ℓ j k < n j) (D : ℕ → ℝ) (hD : ∀ (j k : ℕ), k < N j → |↑(ℓ j k) / ↑(n j) - ↑k / ↑(N j)| ≤ D j) (hD0 : Filter.Tendsto D Filter.atTop (nhds 0)) (hNTop : Filter.Tendsto N Filter.atTop Filter.atTop) (hmod : ∀ ε > 0, ∃ δ > 0, ∀ᶠ (j : ℕ) in Filter.atTop, ∀ (u v : ↑unitInterval), |↑u - ↑v| ≤ δ → |(g j) u - (g j) v| ≤ ε) :

        Convergence consequence under asymptotic equicontinuity of the coding functions, explicit leaf-index discrepancy D j → 0, and N j → ∞.

        theorem BGW.ContinuumTrees.LeafMeasure.tendsto_levyProkhorovDist_vertex_leaf_of_tendsto (g : ℕ → C(↑unitInterval, ℝ)) (g₀ : C(↑unitInterval, ℝ)) (hg : Filter.Tendsto g Filter.atTop (nhds g₀)) (n N : ℕ → ℕ) (hn : ∀ (j : ℕ), 0 < n j) (hN : ∀ (j : ℕ), 0 < N j) (ℓ : ℕ → ℕ → ℕ) (hℓ : ∀ (j k : ℕ), k < N j → ℓ j k < n j) (D : ℕ → ℝ) (hD : ∀ (j k : ℕ), k < N j → |↑(ℓ j k) / ↑(n j) - ↑k / ↑(N j)| ≤ D j) (hD0 : Filter.Tendsto D Filter.atTop (nhds 0)) (hNTop : Filter.Tendsto N Filter.atTop Filter.atTop) :

        The case of uniform convergence of the coding functions g j → g₀ in C([0,1]).

        A vertex address is a leaf when it has no first child.

        Equations
        Instances For

          Leaf addresses, in the DFS order of t.vertices.

          Equations
          Instances For

            Number of leaves (vertices without children).

            Equations
            Instances For

              The k-th leaf in DFS order; junk value root t for k ≥ numLeaves t.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                DFS index (position in t.vertices) of the k-th leaf; junk value 0 (the root's index) for k ≥ numLeaves t.

                Equations
                Instances For

                  Uniform probability on the leaves (0 if there were no leaf; see numLeaves_pos).

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Every finite plane tree has a leaf.

                    A valid leaf index selects the corresponding address in leafAddrs.

                    A valid leaf index selects an address with no first child.

                    Every leaf index, including the junk value, is within the finite vertex enumeration.

                    Valid leaf indices are strictly increasing in DFS order.

                    Quantile sampling pushes uniform time to the uniform leaf measure.

                    theorem BGW.ContinuumTrees.LeafMeasure.levyProkhorovDist_mass_leafMass_le (t : PlaneTree) (hn : 2 ≤ t.size) {D ω : ℝ} (hD : ∀ k < numLeaves t, |↑(leafIndex t k) / ↑t.size - ↑k / ↑(numLeaves t)| ≤ D) (hω : ∀ (u v : ↑unitInterval), |↑u - ↑v| ≤ D + 1 / ↑(numLeaves t) + 2 * (‖t.contourFunction‖ / (2 * ↑(t.size - 1))) + 3 / ↑t.size → |t.contourFunction u - t.contourFunction v| ≤ ω) :

                    Transfer to a plane tree. The metric of Vertex t is the graph metric, for which vertexEmbedding t is an isometry into Coding.Space t.contourFunction. The time scale is D + 1/N + 2A + 3/n with A = ‖c‖ / (2 (n-1)) (c the contour function, n = t.size, N = numLeaves t), hence at most the threshold in hω.