Documentation

LeanPool.RareSubtreePatterns.Patterns.Complete

Complete r-ary patterns, H_r(T) and the two-point leaf-height case #

Source lines 458–473 (H_r, H_{r,k}), 827–833 (raw-count characterization of the maximum), 2453–2476 and 2625–2642 (inventory U07), 3031–3042 and 3274–3296 (inventory U09).

U07: counts and root occurrence probability of H_{r,k} #

H_{r,k} has r^k leaves (r ≥ 1).

H_{r,k} has 1 + r + ⋯ + r^{k-1} internal vertices (r ≥ 1).

s_{r,k} = (r^k - 1)/(r - 1) for r ≥ 2.

Every internal vertex of H_{r,k} has r children.

theorem PoissonDeclumping.PlaneTree.bienayme_embeds_completeTree {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) {r : ℕ} (hr : 1 ≤ r) (k : ℕ) :

π_k = 𝐏(H_{r,k} ≺ 𝒯) = μ_r^{s_{r,k}} (source lines 2468–2476).

theorem PoissonDeclumping.PlaneTree.bienayme_embeds_completeTree_one {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) (k : ℕ) :
(bienayme μ) {T : PlaneTree | (completeTree 1 k).Embeds T} = μ 1 ^ k

U07, r = 1: π_k = μ_1^k.

theorem PoissonDeclumping.PlaneTree.bienayme_embeds_completeTree_of_two_le {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) {r : ℕ} (hr : 2 ≤ r) (k : ℕ) :
(bienayme μ) {T : PlaneTree | (completeTree r k).Embeds T} = μ r ^ ((r ^ k - 1) / (r - 1))

U07, r ≥ 2: π_k = μ_r^{(r^k-1)/(r-1)}.

theorem PoissonDeclumping.PlaneTree.bienayme_real_embeds_completeTree_of_two_le {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) {r : ℕ} (hr : 2 ≤ r) (k : ℕ) :
(bienayme μ).real {T : PlaneTree | (completeTree r k).Embeds T} = (μ r).toReal ^ ((r ^ k - 1) / (r - 1))

The maximal complete height H_r(T) #

H_{r,k+1} ≺ T iff the root has exactly r children and H_{r,k} ≺ each of them.

theorem PoissonDeclumping.PlaneTree.embeds_completeTree_mono {r : ℕ} (hr : 1 ≤ r) {k k' : ℕ} (hk : k ≤ k') {T : PlaneTree} (h : (completeTree r k').Embeds T) :

H_{r,k'} ≺ T and k ≤ k' imply H_{r,k} ≺ T.

A pattern has at most as many vertices as the trees it embeds into.

theorem PoissonDeclumping.PlaneTree.exists_embeds_completeTree_of_le {r : ℕ} (hr : 1 ≤ r) {T : PlaneTree} {k k' : ℕ} (hkk : k ≤ k') (hk' : ∃ U ∈ T.fringeTrees, (completeTree r k').Embeds U) :
∃ U ∈ T.fringeTrees, (completeTree r k).Embeds U

H_r(T) ≥ k ↔ ∃ u ∈ T, H_{r,k} ≺ T_u, for r ≥ 1.

H_r(T) ≥ k ↔ N_k(T) = ∑_{u ∈ T} 1{H_{r,k} ≺ T_u} ≥ 1 (source lines 827–833).

The maximum H_r(T) is attained.

U09: outdegrees in {0, κ} #

If every vertex of T has outdegree 0 or κ ≥ 1, then λ_∅(T) ≥ k ↔ H_{κ,k} ≺ T (source lines 3040–3042).

U09: if every vertex of T has outdegree 0 or κ ≥ 1, then λ(T) = H_κ(T) (source lines 3277–3280).

Almost surely every outdegree of a μ-Bienaymé tree lies in the support of μ.

U09: if c = 1 - κμ_κ = 0 then almost surely λ(𝒯) = H_κ(𝒯).

U09 for the size-conditioned tree: if c = 0 then λ(𝒯^n) = H_κ(𝒯^n) almost surely.

If c = 0: 𝐏(λ_∅(𝒯) ≥ k) = 𝐏(H_{κ,k} ≺ 𝒯).

If c = 0: π_k = 𝐏(λ_∅(𝒯) ≥ k) = μ_κ^{(κ^k-1)/(κ-1)} (source line 3283).