Finite generations of locally finite trees #
generation T n lists exactly the present addresses of length n, with the root at generation
zero. Its cardinality is generationSize T n. The definition adapts the finite-generation
construction of Freezing1/PlaneTreeGeometry.lean; indices in Finset.range are shifted by one
to retain the positive child convention. No finiteness of the whole tree is assumed.
The number of present vertices at depth n.
Equations
Instances For
A generation is the disjoint union of the corresponding generations of existing children.
@[simp]
No vertex at depth n is equivalent to extinction by generation n.
theorem
BGW.PlaneTree.generation_toLocallyFinite
(t : PlaneTree)
(n : ℕ)
:
LocallyFinite.generation t.toLocallyFinite n = Finset.image positiveAddress ({u ∈ t.vertices.toFinset | u.length = n})
The finite-tree bridge shifts child indices and preserves every generation.