Lemma lem:RW: cyclic indicator sums under the walk bridge #
Source lines 758–764. For every mark G, every cutoff M ∈ ℕ ∪ {∞} and every n,
$$\sum_{i=1}^{n} I^{(M)}_{i}(\mathbf{x}(\mathcal T^{n})) \overset{(d)}{=} \sum_{i=1}^{n} I^{(M)}_{i}(X_{1}, \ldots,X_{n}) \text{ under } P(\cdot \mid S_{n}=-1).$$
Cyclic.map_cyclicSum_conditioned states this as an equality of laws on ℕ: the push-forward of
𝒯^n = PlaneTree.conditioned μ n under T ↦ ∑_i I_i^{(M)}(𝐱(T)) equals the push-forward of
Lukasiewicz.bridgeLaw μ n (the law of (X_1, …, X_n) given S_n = -1) under
ω ↦ ∑_i I_i^{(M)}(ω). It holds for every n: at inadmissible n both sides are the zero
measure (Cyclic.bridgeLaw_eq_zero_of_not_admissible).
The proof is the paper's: eq:shifts (PlaneTree.map_shift_conditioned) and the invariance of the
cyclic sum under cyclic shifts (Cyclic.cyclicSum_rotate, B04). Combined with the counting
identity, the law of the (truncated) number of marked fringe subtrees of 𝒯^n is the law of the
cyclic sum under the bridge (Cyclic.map_markCount_conditioned, Cyclic.markedCountLaw_eq).
B04, second part: the bridge law is invariant under permutations of the coordinates
(Cyclic.map_bridgeLaw_comp_perm), so all cyclic indicators have the same law under the bridge
(Cyclic.bridgeLaw_shiftIndicator_eq_one) and
E[∑_i I_i^{(M)} | S_n = -1] = n P(I_1^{(M)} = 1 | S_n = -1)
(Cyclic.lintegral_cyclicSum_bridgeLaw).
The uniform index law has total mass one for n ≠ 0.
(X_1, …, X_n) given S_n = -1 is the zero measure when S_n = -1 is impossible.
Under 𝒯^n ⊗ Unif{0, …, n-1}, the tree has n vertices almost surely.
Lemma lem:RW. For every mark G, cutoff M ∈ ℕ ∪ {∞} and size n, the law of
∑_{i=1}^{n} I_i^{(M)}(𝐱(𝒯^n)) equals the law of ∑_{i=1}^{n} I_i^{(M)}(X_1, …, X_n) under
P(· | S_n = -1).
Lemma lem:RW, count form. The law of the number of vertices v of 𝒯^n with
|𝒯^n_v| ≤ M and G(𝒯^n_v) = 1 (the truncated count when M < n) is the law of
∑_{i=1}^{n} I_i^{(M)}(X_1, …, X_n) under P(· | S_n = -1).
Lemma lem:RW, untruncated count. For M ≥ n (e.g. M = ∞), the law of the number
#{u ∈ 𝒯^n : G(𝒯^n_u) = 1} of marked vertices of 𝒯^n is the law of
∑_{i=1}^{n} I_i^{(M)}(X_1, …, X_n) under P(· | S_n = -1).
The law markedCountLaw μ G k n of #{u ∈ 𝒯^n : G_{k_n}(𝒯^n_u) = 1} (Setup/Marks.lean)
is the law of ∑_{i=1}^{n} I_i^{(∞)}(X_1, …, X_n) under P(· | S_n = -1).
Exchangeability of the cyclic indicators under the bridge (B04) #
The law of (X_1, …, X_n) is invariant under permutations of the coordinates.
The bridge law is invariant under permutations of the coordinates.
B04, second part. Under the bridge P(· | S_n = -1), all cyclic indicators have the same
law: P(I_{i+1}^{(M)}(X_1, …, X_n) = 1 | S_n = -1) = P(I_1^{(M)}(X_1, …, X_n) = 1 | S_n = -1).