The cycle lemma for Łukasiewicz bridges #
A bridge word of length n has entries at least -1 and sum -1. Writing S j for its prefix
sums, the rotation by i < n is a tree excursion exactly when i is the first index in [0, n) at
which S attains its minimum. Hence every bridge word has exactly one rotation that is a tree
excursion, and (t, i) ↦ (increments t).rotate i is a bijection from the pairs of a tree of size
n and an index i < n onto the bridge words of length n. Since rotating a word permutes its
entries, the walk weight is rotation invariant, and n times the total weight of the trees of
size n is the total walk weight of the bridge words. Adapted from
PoissonDeclumping/Lukasiewicz/CyclicShift.lean, with the library's prefix-sum excursions.
A bridge word has exactly one rotation, by an index below its length, that is a tree excursion: the cycle lemma.
Cyclic shifts of the codes of trees with n vertices.
Equations
- BGW.PlaneTree.shiftMap n q = ⟨(↑q.1).increments.rotate ↑q.2, ⋯⟩
Instances For
The cycle lemma as an equivalence.
Equations
Instances For
Kemperman–Dwass identity in weight form: n times the total weight of the trees of size n
is the total walk weight of the bridge words of length n. No hypothesis on p.