Replacing a fringe subtree inside a root occurrence of H_{r,k} #
Deterministic part of the proofs of Lemmas lem:S_rary(ii) and lem:C_rary (source lines
2670–2753 and 2768–2792; inventory P19, P21). Let H_{r,k} ≺ T (r ≥ 1) and let u be the
vertex of DFS index ℓ of T.
embeds_completeTree_replaceAt(P21): ifk_u(T) ≠ r, thenuis not an internal vertex of the displayed copy ofH_{r,k}, and replacingT_uby any tree preservesH_{r,k} ≺ T.ReplaceClass r k T ℓ j(P19): after replacingT_ubyS,H_{r,k} ≺ T[S/T_u]holds iffH_{r,j} ≺ S.exists_replaceClass: every position has such a classj ≤ k—j = 0whenuis a leaf of the displayed skeleton or lies in the grafted forest,j = k - awhenuis an internal skeleton vertex at deptha(the paper's "the displayed skeleton already provides a completer-ary continuation of heightk - a").classCount_le(P19, the count of skeleton vertices): forj ≥ 1at mostr^{k-j}positions ofTare of classj(there arer^askeleton vertices at deptha).
Embeds (H_{r,a}) (H_{r,a}).
H_{r,a} ≺ H_{r,b} implies a ≤ b (r ≥ 1).
P21. If H_{r,k} ≺ T and the vertex u of DFS index ℓ has k_u(T) ≠ r, then u is
not an internal vertex of the displayed copy of H_{r,k}, so arbitrary re-grafting at u
preserves H_{r,k} ≺ · (source lines 2775–2783). Valid for every r (for r = 0 the pattern is
a single vertex).
The class of a position inside a child: if H_{r,k+1} ≺ node (pre ++ t :: post), the
position forestSize pre + q + 1 has class j w.r.t. H_{r,k+1} iff the position q of t
has class j w.r.t. H_{r,k}.
At the root (ℓ = 0) the class is k, and only k.
Classification (P19). If H_{r,k} ≺ T (r ≥ 1), every DFS position of T has a class
j ≤ k.
The number of DFS positions of T of class j (with respect to H_{r,k}).
Equations
- PoissonDeclumping.PlaneTree.classCount r k T j = ∑ ℓ ∈ Finset.range T.vertexCount, {ℓ : ℕ | PoissonDeclumping.PlaneTree.ReplaceClass r k T ℓ j}.indicator 1 ℓ
Instances For
Count of skeleton positions (P19). If H_{r,k} ≺ T (r ≥ 1) and j ≥ 1, at most
r^{k-j} DFS positions of T have class j (none if j > k).