The Łukasiewicz walk of offspring counts and the Kemperman identity for trees #
Let ω : Fin n → ℕ be independent offspring counts with law μ, and let S_n = ∑ (ω i - 1)
(subtraction in ℤ) be the Łukasiewicz walk. The event S_n = -1 is ∑ ω i + 1 = n. Bridge
words of length n are exactly the step words (ω i - 1) of such vectors, and the walk weight of
the step word is ∏ μ {ω i}, the mass of the point ω under Measure.pi (fun _ => μ). Together
with the weighted cycle lemma this gives, for every offspring probability measure μ and every n,
n * P(|T| = n) = P(S_n = -1)
(natCast_mul_bienaymeLaw_sizeEvent_eq_pi), with no criticality, aperiodicity or positivity
assumption; both sides vanish for n = 0. The walk is the product measure on counts, not a
measure on ℤ, and only its endpoint at time n is considered. The forest version, the uniform
cyclic-shift representation and the conditional bridge law are not part of this module. Adapted
from PoissonDeclumping/Lukasiewicz/BridgeLaw.lean and Cyclic/WalkBridge.lean.
The mass of countBridges n under the product measure is the sum of its point masses.
Kemperman's identity for trees: n * P(|T| = n) = P(S_n = -1).