Introduction
Random spanning forests are used in Bayesian clustering and graph signal processing. In Bayesian clustering, each component of a forest represents a group of observations, and a distribution over forests induces a distribution over partitions [7 , 16 ] . In graph signal processing, random forests are used to estimate regularized and interpolated signals by Monte Carlo [20 ] . These applications motivate studying the distribution of the forest produced by a sampling algorithm.
Random walks give a simple way to generate trees: start at one vertex, run the walk until every vertex has been visited, and retain the edge that for the first time enters a new vertex. This is the famous Aldous-Broder construction [1 , 4 ] , and it turns out that the retained edges form a spanning tree whose law is proportional to the tree weight. Wilson’s algorithm provides another classical tree sampler, using loop-erased random walks [24 , 29 ] . Recent methods also use fast-forwarded walks [25 ] to improve sampling efficiency.
Although the distribution of the Aldous-Broder tree is known to be proportional to the tree weight, a direct derivation using basic linear algebraic results and combinatorial arguments remains difficult. Hence, our first question is: for a fixed tree, can we calculate its probability by summing over the orders in which the walk can discover its vertices? We give a positive answer to this question. This calculation also leads us to consider a second question: if there is more than one root, do the forests constructed by retaining all of the first-entrance edges into the nonroot set follow the distribution that is proportional to the forest weights? The answer is no in general and we discuss the resulting forest law.
To formally describe the problem, let P P P be the transition matrix of an irreducible Markov chain on V = { 1 , … , n } V = \{1,\ldots,n\} V = { 1 , … , n } , n ≥ 2 n \ge2 n ≥ 2 , with stationary distribution π \pi π . Start the chain at the root r ∈ V r \in V r ∈ V and run it until every state has been visited. For each node v ≠ r v \ne r v = r , let f ( v ) f(v) f ( v ) be the state from which v v v was entered for the first time, i.e., the parent of v v v . Then, the edges { ( f ( v ) , v ) : v ≠ r , v ∈ V } \{(f(v),v):v \ne r,v \in V\} {( f ( v ) , v ) : v = r , v ∈ V } form a diverging spanning arborescence F F F pointing away from r r r , called the first-entrance tree , with the law that is proportional to the tree weight:
P ( F = F 0 ) ∝ w ( F 0 ) (1) \mathbb{P}(F = F_0) \propto w(F_0) \tag*{(1)} P ( F = F 0 ) ∝ w ( F 0 ) (1)
where w ( F ) : = ∏ v ≠ r π f ( v ) P f ( v ) v w(F) := \prod_{v \ne r} \pi_{f(v)}P_{f(v)v} w ( F ) := ∏ v = r π f ( v ) P f ( v ) v denotes the tree weight of F F F and F r \mathcal{F}_r F r denotes all diverging spanning arborescences rooted at r r r . For simple random walk on a connected undirected graph with equal edge weights, (1.1) is the uniform tree law. For a general irreducible chain started at a fixed state, (1.1) is the extended Aldous-Broder theorem established in [11 ] and [9 ] .
The classical proofs [1 , 4 ] identify the distribution of the last-exit tree of a stationary walk and then use time reversal to obtain the first-entrance tree law. A weighted reversible version is given in [17 ] . For general irreducible chains, [11 ] conditions on the number of traversals of each directed edge. Given these counts, the walk corresponds to a uniformly sampled Eulerian path in a directed multigraph. The BEST theorem gives the conditional tree probabilities, and the limiting transition frequencies yield the tree weights in (1.1). [9 ] gives both an adaptation of the stationary argument and a combinatorial proof that decomposes an encoding of the walk into golf sequences and heaps of cycles.
However, none of the existing proofs take the direct route by evaluating the summation of the joint probabilities of the tree and its compatible growth orders over the orders in which the vertices are discovered. Indeed, in [9 ] , the difficulty of such evaluation is discussed. In this paper, we pursue this calculation using basic algebraic tools.
To make this difficulty precise, let τ ( X ) \tau(X) τ ( X ) be the order in which the nodes other than r r r are discovered. For an ordering τ = ( τ 1 , … , τ n − 1 ) \tau= (\tau_1,\ldots,\tau_{n-1}) τ = ( τ 1 , … , τ n − 1 ) , define B 0 = { r } B_0 = \{r\} B 0 = { r } and B ℓ = B ℓ − 1 ∪ { τ ℓ } B_\ell= B_{\ell-1} \cup\{\tau_\ell\} B ℓ = B ℓ − 1 ∪ { τ ℓ } for ℓ = 1 , … , n − 1 \ell= 1,\ldots,n-1 ℓ = 1 , … , n − 1 . For a fixed tree F 0 = { ( f ( v ) , v ) } F_0 = \{(f(v),v)\} F 0 = {( f ( v ) , v )} , if f ( τ ℓ ) ∈ B ℓ − 1 f(\tau_\ell) \in B_{\ell-1} f ( τ ℓ ) ∈ B ℓ − 1 for every ℓ = 1 , … , n − 1 \ell= 1,\ldots,n-1 ℓ = 1 , … , n − 1 , then the discovery order τ \tau τ is “compatible” with F 0 F_0 F 0 , and we have the factorization (Proposition 3.4)
P ( F = F 0 , τ ( X ) = τ ) ∝ w ( F 0 ) ⋅ ω f ( τ ) , (2) \mathbb{P}(F = F_0,\ \tau(X) = \tau) \propto w(F_0)\cdot\omega_f(\tau), \tag*{(2)} P ( F = F 0 , τ ( X ) = τ ) ∝ w ( F 0 ) ⋅ ω f ( τ ) , (2)
where ω f ( τ ) \omega_f(\tau) ω f ( τ ) is the order weight that depends both on f f f and τ \tau τ . The proportionality constant is independent of both F 0 F_0 F 0 and τ \tau τ . Summing (1.2) over the compatible orders gives the probability of F 0 F_0 F 0 . Since the tree weight w ( F 0 ) w(F_0) w ( F 0 ) does not depend on the order, it remains to sum the order weights. In particular, the tree law follows once we establish, for each fixed tree,
∑ τ : τ c o m p a t i b l e w i t h F 0 ω f ( τ ) = 1. \sum_{\tau:\tau\ \mathrm{compatible\ with}\ F_0} \omega_f(\tau) = 1. τ : τ compatible with F 0 ∑ ω f ( τ ) = 1.
For different trees, both the number of compatible orders and their weights ω f ( τ ) \omega_f(\tau) ω f ( τ ) can differ substantially, so directly evaluating the summation is not trivial.
To evaluate this sum, we group the compatible orders according to their first discovered vertex. Once this vertex is treated as an additional root, the remaining vertices form a smaller problem of the same kind. This observation motivates us to study rooted forests, even though our original question concerns a single tree. We establish an identity that expresses the sum of order weights associated with each root as a principal cofactor of a matrix indexed by the roots. The proof proceeds by induction on the number of nonroot vertices, using a cofactor relation to connect successive steps.
We call this result the order-mass identity . For a single root, the identity gives the required sum of one and hence a direct proof of the Aldous-Broder theorem. More generally, the sum depends on which vertices belong to each root’s tree, but not on the edges within those trees. Thus, forests with the same root components have the same order masses, even though their compatible orders and individual order weights may differ.
With several roots, the identity also answers our second question. The stopped covering walk samples each forest with probability proportional to its forest weight multiplied by a completion weight , which measures the total weight of the edges that can complete it to a tree rooted at the seed. This extra factor explains why the stopped walk does not generally sample the weight-proportional forest law. It also determines whether importance weighting can recover the target law, since forests with zero completion weight are never sampled.
The article makes four contributions.
We establish the order-mass identity in Theorem 4.4 under a nonsingularity condition involving only the bases along the growth orders of the given forest and prove it using linear algebraic tools.
For a single root, we use the identity to give a direct proof of the extended Aldous-Broder theorem in Theorem 6.1 and derive the conditional distribution of the discovery order in Theorem 6.2 .
For multiple roots, we derive the forest law produced by the stopped covering walk in Theorem 6.5 , making explicit how it differs from the weight-proportional forest law.
We formalize the order-mass identity, the Aldous-Broder theorem, and the stopped-walk law in Lean 4.
The remainder of the article follows the calculation. § 2 introduces harmonic extensions and growth orders. § 3 gives the joint probability decomposition, § 4 and § 5 establish the order-mass identity, and § 6 derives its sampling consequences. § 7 gives a numerical illustration. Appendix § 11 contains the auxiliary proofs. The supplementary materials contain worked examples, further algebraic and combinatorial results, formalization details, and the full numerical study.
Preliminaries
To express the discovery-order probabilities, we need harmonic extensions on the sets visited by the walk and orders compatible with a fixed forest. We introduce these objects in an algebraic and combinatorial setting, together with the cofactor identities used to evaluate the resulting sum.
Notations and linear algebraic results
Throughout, V V V is a set of n ≥ 2 n \ge2 n ≥ 2 vertices, and U c : = V ∖ U U^{c} := V \setminus U U c := V ∖ U for U ⊆ V U \subseteq V U ⊆ V . We use u , v , w u,v,w u , v , w for vertices and r r r for a root. For a matrix A A A , we write A . v A_{.v} A . v for its column v v v , A u . A_{u.} A u . for its row u u u , A [ U ] A[U] A [ U ] for the principal submatrix on the rows and columns in U U U , A [ R , C ] A[R,C] A [ R , C ] for the submatrix on the rows R R R and the columns C C C , and adj ( A ) \operatorname{adj}(A) adj ( A ) for the adjugate of a square matrix, the transpose of its cofactor matrix. Matrices and vectors are indexed by sets of vertices. For example, if U = { 1 , 2 } U = \{1,2\} U = { 1 , 2 } and V = { 1 , 2 , 3 } V = \{1,2,3\} V = { 1 , 2 , 3 } , a matrix A ∈ R U × U c A \in\mathbb{R}^{U \times U^{c}} A ∈ R U × U c has one column, indexed by 3 3 3 , so A .3 A_{.3} A .3 denotes that column. The principal cofactor of A ∈ R U × U A \in\mathbb{R}^{U \times U} A ∈ R U × U at u ∈ U u \in U u ∈ U is det ( A [ U ∖ { u } ] ) \det(A[U \setminus\{u\}]) det ( A [ U ∖ { u }]) . We use e v e_v e v for the standard basis vectors, 1 \mathbf{1} 1 for the all-ones vector and 0 \mathbf{0} 0 for the zero vector. We write x ∣ U x|_U x ∣ U for the restriction of a vector x x x to U U U , and we read a vector given on a subset of V V V as a vector on V V V with the missing entries 0 0 0 when the context requires it. For a statement E E E , we use the indicator function
1 ( E ) : = { 1 , if E holds , 0 , otherwise . \mathbf{1}(E) :=
\begin{cases}
1, & \text{if } E \text{ holds},\\
0, & \text{otherwise}.
\end{cases} 1 ( E ) := { 1 , 0 , if E holds , otherwise .
We use three classical facts about determinants [10 ] : for A ∈ R U × U A \in\mathbb{R}^{U \times U} A ∈ R U × U and a , c ∈ R U a,c \in\mathbb{R}^U a , c ∈ R U ,
A adj ( A ) = adj ( A ) A = det ( A ) I , det ( I + a c T ) = 1 + c T a , det ( A with column v replaced by a ) = ∑ u a u adj ( A ) v u . (3) \begin{aligned}
A\operatorname{adj}(A) &= \operatorname{adj}(A)A = \det(A)I,\qquad
\det(I + ac^{\mathsf T}) = 1 + c^{\mathsf T}a,\\
\det(A\text{ with column }v\text{ replaced by }a) &= \sum_u a_u\operatorname{adj}(A)_{vu}. \tag*{(3)}
\end{aligned} A adj ( A ) det ( A with column v replaced by a ) = adj ( A ) A = det ( A ) I , det ( I + a c T ) = 1 + c T a , = u ∑ a u adj ( A ) v u . (3)
The following lemma expresses the adjugate of a matrix with zero row sums through its principal cofactors and uses them to evaluate a rank-one perturbation. These relations will be used to compare cofactors when the root set is enlarged.
Lemma 2.1 (Cofactors of a matrix with zero row sums). Let S S S be a nonempty finite set, let A ∈ R S × S A \in\mathbb{R}^{S \times S} A ∈ R S × S satisfy A 1 = 0 A\mathbf{1} = \mathbf{0} A 1 = 0 , and let d ∈ R S d \in\mathbb{R}^S d ∈ R S be its vector of principal cofactors, d u : = det ( A [ S ∖ { u } ] ) d_u := \det(A[S \setminus\{u\}]) d u := det ( A [ S ∖ { u }]) . Then
(a) adj ( A ) = 1 d T \operatorname{adj}(A) = \mathbf{1}d^{\mathsf T} adj ( A ) = 1 d T and d T A = 0 T d^{\mathsf T}A = \mathbf{0}^{\mathsf T} d T A = 0 T ;
(b) det ( A + a c T ) = ( c T 1 ) ( a T d ) \det(A + ac^{\mathsf T}) = (c^{\mathsf T}\mathbf{1})(a^{\mathsf T}d) det ( A + a c T ) = ( c T 1 ) ( a T d ) for all a , c ∈ R S a,c \in\mathbb{R}^S a , c ∈ R S .
Harmonic extensions
Suppose that values are given on the complement of U U U . A harmonic extension fills in the values on U U U so that the corresponding rows of L L L annihilate the resulting vector.
Definition 2.2 (Harmonic extension). Let L ∈ R V × V L \in\mathbb{R}^{V \times V} L ∈ R V × V , let U ⊊ V U \subsetneq V U ⊊ V with det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 , and let m ∈ R U c m \in\mathbb{R}^{U^c} m ∈ R U c . We call the matrix Γ ~ U ∈ R V × U c \widetilde{\Gamma}^{U} \in\mathbb{R}^{V \times U^c} Γ U ∈ R V × U c with the rows
Γ ~ U [ U , U c ] : = − L [ U ] − 1 L [ U , U c ] , Γ ~ U [ U c , U c ] : = I ∣ U c ∣ \widetilde{\Gamma}^{U}[U,U^c] := -L[U]^{-1}L[U,U^c],\qquad
\widetilde{\Gamma}^{U}[U^c,U^c] := I_{|U^c|} Γ U [ U , U c ] := − L [ U ] − 1 L [ U , U c ] , Γ U [ U c , U c ] := I ∣ U c ∣ the harmonic extension map , and γ U ( m ) : = Γ ~ U m ∈ R V \gamma^U(m) := \widetilde{\Gamma}^{U}m \in\mathbb{R}^V γ U ( m ) := Γ U m ∈ R V the harmonic extension of m m m into U U U . In particular, Γ ~ ∅ = I \widetilde{\Gamma}^{\varnothing} = I Γ ∅ = I and γ ∅ ( m ) = m \gamma^{\varnothing}(m) = m γ ∅ ( m ) = m .
The following lemma shows that the prescribed values outside U U U and the equations ( L x ) ∣ U = 0 (Lx)|_U = 0 ( Lx ) ∣ U = 0 uniquely determine the extension.
Lemma 2.3. Let L ∈ R V × V L \in\mathbb{R}^{V \times V} L ∈ R V × V , let U ⊊ V U \subsetneq V U ⊊ V with det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 , and let m ∈ R U c m \in\mathbb{R}^{U^c} m ∈ R U c . For x ∈ R V x \in\mathbb{R}^V x ∈ R V ,
x ∣ U c = m and ( L x ) ∣ U = 0 ⟺ x = γ U ( m ) . x|_{U^c} = m \quad\text{and} \quad(Lx)|_U = 0
\qquad\Longleftrightarrow\qquad
x = \gamma^U(m). x ∣ U c = m and ( Lx ) ∣ U = 0 ⟺ x = γ U ( m ) . Proof. We have ( L x ) ∣ U = L [ U ] x ∣ U + L [ U , U c ] x ∣ U c (Lx)|_U = L[U]x|_U + L[U,U^c]x|_{U^c} ( Lx ) ∣ U = L [ U ] x ∣ U + L [ U , U c ] x ∣ U c . Hence, given x ∣ U c = m x|_{U^c} = m x ∣ U c = m , the condition ( L x ) ∣ U = 0 (Lx)|_U = 0 ( Lx ) ∣ U = 0 holds if and only if x ∣ U = − L [ U ] − 1 L [ U , U c ] m x|_U = -L[U]^{-1}L[U,U^c]m x ∣ U = − L [ U ] − 1 L [ U , U c ] m , that is, if and only if x = Γ ~ U m x = \widetilde{\Gamma}^{U}m x = Γ U m . This completes the proof.
The map m ↦ γ U ( m ) = Γ ~ U m m \mapsto\gamma^{U}(m) = \widetilde{\Gamma}^{U}m m ↦ γ U ( m ) = Γ U m is linear. Each column has a simple interpretation: for v ∈ U c v \in U^{c} v ∈ U c , the vector γ U ( e v ) \gamma^{U}(e_v) γ U ( e v ) equals 1 at v v v and 0 at the other vertices outside U U U . Its restriction to U U U solves the Dirichlet problem with these boundary values. If L 1 = 0 L\mathbf{1}=0 L 1 = 0 , then 1 \mathbf{1} 1 is annihilated by every row of L L L and equals 1 off U U U . Hence, by uniqueness,
γ U ( 1 ) = 1 , i.e. ∑ v ∈ U c γ U ( e v ) = 1. (4) \gamma^{U}(\mathbf{1}) = \mathbf{1}, \qquad\text{i.e.} \qquad\sum_{v\in U^{c}} \gamma^{U}(e_v) = \mathbf{1}. \tag*{(4)} γ U ( 1 ) = 1 , i.e. v ∈ U c ∑ γ U ( e v ) = 1 . (4)
For ease of notation, we write
Γ U : = Γ ~ U [ U , U c ] = − L [ U ] − 1 L [ U , U c ] ∈ R U × U c (5) \Gamma^{U} := \widetilde{\Gamma}^{U}[U,U^{c}] = -L[U]^{-1}L[U,U^{c}] \in\mathbb{R}^{U\times U^{c}} \tag*{(5)} Γ U := Γ U [ U , U c ] = − L [ U ] − 1 L [ U , U c ] ∈ R U × U c (5)
for the rows of Γ ~ U \widetilde{\Gamma}^{U} Γ U indexed by U U U . If L 1 = 0 L\mathbf{1}=0 L 1 = 0 , then Γ U 1 = 1 \Gamma^{U}\mathbf{1}=\mathbf{1} Γ U 1 = 1 by (4) .
Forests, blocks, and growth orders
We specify a rooted forest by recording the parent of each nonroot vertex. An order is compatible with the forest when each parent is available before its child is added. We call these compatible orders growth orders. To record the component membership separately from the edges within each tree, we use a root indicator whose row for each nonroot identifies the root of its component.
Definition 2.4 (Forests, growth orders, root indicator). Let B ⊊ V B \subsetneq V B ⊊ V be nonempty. A spanning forest rooted at B B B is a forest on vertex set V V V whose components each contain exactly one vertex of B B B , with edges oriented away from that vertex. Isolated roots are allowed. Thus the vertices with no parent are exactly those in B B B .
(a) A map f : B c → V f : B^{c} \to V f : B c → V is a B B B -parent map if, for every v ∈ B c v \in B^{c} v ∈ B c , some iterate f ( q ) ( v ) f^{(q)}(v) f ( q ) ( v ) lies in B B B , where f ( 0 ) ( v ) : = v f^{(0)}(v):=v f ( 0 ) ( v ) := v and f ( q + 1 ) ( v ) : = f ( f ( q ) ( v ) ) f^{(q+1)}(v):=f(f^{(q)}(v)) f ( q + 1 ) ( v ) := f ( f ( q ) ( v )) as long as f ( q ) ( v ) ∈ B c f^{(q)}(v)\in B^{c} f ( q ) ( v ) ∈ B c . The vertex f ( v ) f(v) f ( v ) is the parent of v v v , the elements of f − 1 ( u ) f^{-1}(u) f − 1 ( u ) are the children of u u u , and the block of u ∈ V u\in V u ∈ V is D u : = { v ∈ B c : f ( q ) ( v ) = u for some q ≥ 0 } D_u:=\{v\in B^{c}:f^{(q)}(v)=u\text{ for some }q\ge0\} D u := { v ∈ B c : f ( q ) ( v ) = u for some q ≥ 0 } .
(b) A growth order of a B B B -parent map f f f is an ordering τ = ( τ 1 , … , τ k ) \tau=(\tau_1,\ldots,\tau_k) τ = ( τ 1 , … , τ k ) of B c B^{c} B c with f ( τ ℓ ) ∈ B ℓ − 1 f(\tau_\ell)\in B_{\ell-1} f ( τ ℓ ) ∈ B ℓ − 1 for every ℓ \ell ℓ , where k : = ∣ B c ∣ k:=|B^{c}| k := ∣ B c ∣ and
B ℓ : = B ∪ { τ 1 , … , τ ℓ } ( 0 ≤ ℓ ≤ k ) (6) B_\ell:= B \cup\{\tau_1,\ldots,\tau_\ell\} \qquad(0\le\ell\le k) \tag*{(6)} B ℓ := B ∪ { τ 1 , … , τ ℓ } ( 0 ≤ ℓ ≤ k ) (6) is the base after ℓ \ell ℓ steps. We write S B ( f ) S_B(f) S B ( f ) for the set of growth orders of f f f .
(c) The root indicator of a B B B -parent map f f f is the matrix M f ∈ { 0 , 1 } B c × B M_f\in\{0,1\}^{B^{c}\times B} M f ∈ { 0 , 1 } B c × B with entries ( M f ) v r = 1 (M_f)_{vr}=1 ( M f ) v r = 1 if v ∈ D r v\in D_r v ∈ D r and 0 otherwise.
We write F B \mathcal{F}_B F B for the set of spanning forests rooted at B B B , and F r : = F { r } \mathcal{F}_r:=\mathcal{F}_{\{r\}} F r := F { r } for the spanning arborescences rooted at r r r . The following lemma identifies forests with their parent maps.
Lemma 2.5. Let B ⊆ V B\subseteq V B ⊆ V be nonempty. The assignment f ↦ { ( f ( v ) , v ) : v ∈ B c } f\mapsto\{(f(v),v):v\in B^{c}\} f ↦ {( f ( v ) , v ) : v ∈ B c } is a bijection from the B B B -parent maps to F B \mathcal{F}_B F B . For each r ∈ B r\in B r ∈ B , the component rooted at r r r has vertex set { r } ∪ D r \{r\}\cup D_r { r } ∪ D r .
Proof of Lemma 2.5. For a B B B -parent map, every parent chain terminates at a unique root. The endpoints of each edge have the same terminal root, and reversing the parent chain connects each vertex to that root. Hence the components are precisely { r } ∪ D r \{r\}\cup D_r { r } ∪ D r , r ∈ B r\in B r ∈ B . Each is connected and has ∣ D r ∣ |D_r| ∣ D r ∣ edges, one entering each vertex other than r r r . It is therefore a tree, with edges oriented away from r r r . Conversely, a forest in F B \mathcal{F}_B F B gives each v ∈ B c v\in B^{c} v ∈ B c a unique parent, and following parents reaches the root of its component. This defines a B B B -parent map. The two constructions are inverse. ∎
Figure 1 (a) illustrates the parent map on V = { 1 , … , 5 } V = \{1,\ldots,5\} V = { 1 , … , 5 } with roots B = { 1 , 2 } B = \{1,2\} B = { 1 , 2 } and f ( 3 ) = 1 f(3) = 1 f ( 3 ) = 1 , f ( 4 ) = 3 f(4) = 3 f ( 4 ) = 3 , f ( 5 ) = 2 f(5) = 2 f ( 5 ) = 2 . The root blocks are D 1 = { 3 , 4 } D_1 = \{3,4\} D 1 = { 3 , 4 } and D 2 = { 5 } D_2 = \{5\} D 2 = { 5 } , shown by the dashed regions. The ordering ( 3 , 5 , 4 ) (3,5,4) ( 3 , 5 , 4 ) is a growth order, whereas ( 4 , 3 , 5 ) (4,3,5) ( 4 , 3 , 5 ) is not, since the parent of 4 has not yet been added.
Figure 1. Dashed regions mark the root blocks, which exclude the roots themselves.
Panel (b) represents growth orders as paths between bases, with each edge adding the vertex on its label. The three paths give the orders ( 3 , 4 , 5 ) (3,4,5) ( 3 , 4 , 5 ) , ( 3 , 5 , 4 ) (3,5,4) ( 3 , 5 , 4 ) and ( 5 , 3 , 4 ) (5,3,4) ( 5 , 3 , 4 ) . Equivalently, these are the linear extensions of the tree order of f f f .
We next describe how the blocks decompose along the children of each vertex.
Lemma 2.6 (Blocks). Let f f f be a B B B -parent map. The blocks D r D_r D r , r ∈ B r \in B r ∈ B , are pairwise disjoint and have union B c B^c B c . Individual blocks may be empty. For every u ∈ V u \in V u ∈ V , the blocks of the children of u u u are pairwise disjoint with union D u ∖ { u } D_u \setminus\{u\} D u ∖ { u } .
As a consequence of Lemma 2.6, M f 1 = 1 M_f \mathbf{1} = 1 M f 1 = 1 . Thus the root indicator records, for each nonroot, the root of its tree, and nothing else about the forest. We defer the proof of Lemma 2.6 to Appendix § 11 .
The covering walk and the sum over discovery orders
We first calculate the joint probability of a fixed forest and discovery order by summing over the excursions between successive discoveries. This calculation separates the forest weight from the factors that depend on the discovery order and identifies the sum we evaluate in § 4 .
The walk and its first-entrance forest
Let P P P be an irreducible stochastic matrix on V V V , and let π \pi π be its stationary distribution, with π v > 0 \pi_v > 0 π v > 0 , 1 T π = 1 \mathbf{1}^{\mathsf{T}}\pi= 1 1 T π = 1 and π T P = π T \pi^{\mathsf{T}}P = \pi^{\mathsf{T}} π T P = π T [14 ] . We use ( X t ) t ≥ 0 (X_t)_{t\geq0} ( X t ) t ≥ 0 to denote the Markov chain with transition matrix P P P .
We stop the walk once it has visited all vertices outside a prescribed root set and retain the edges by which it first entered those vertices, as described in Algorithm 1.
Algorithm 1 Stopped covering walk and its first-entrance forest.
Input: an irreducible stochastic matrix $P$ on $V$; a nonempty root set $B \subsetneq V$; a seed $r \in B$.
Output: a spanning forest $F_B \in \mathcal{F}_B$, each edge $(f(v),v)$ pointing away from the root of its tree.
1: $X \leftarrow r$; $U \leftarrow B$; $F_B \leftarrow \varnothing$
2: while $U \ne V$ do
3: draw $Y$ from the distribution $P_{X\cdot}$.
4: if $Y \notin U$ then
5: $F_B \leftarrow F_B \cup \{(X,Y)\}$; $U \leftarrow U \cup \{Y\}$
6: $X \leftarrow Y$
7: return $F_B$
Definition 3.1 (Stopped covering walk and discovery order). Let B ⊊ V B \subsetneq V B ⊊ V be nonempty, let r ∈ B r \in B r ∈ B be the seed , and let ( X t ) t ≥ 0 (X_t)_{t\geq0} ( X t ) t ≥ 0 be the chain with transition matrix P P P started at X 0 = r X_0=r X 0 = r . Define T v : = min { t ≥ 0 : X t = v } T_v := \min\{t \geq0 : X_t=v\} T v := min { t ≥ 0 : X t = v } and T B : = max v ∈ B c T v T_B := \max_{v\in B^c} T_v T B := max v ∈ B c T v . The stopped covering walk is ( X 0 , … , X T B ) (X_0,\ldots,X_{T_B}) ( X 0 , … , X T B ) , and its first-entrance forest is
F B : = { ( X T v − 1 , v ) : v ∈ B c } . F_B := \{(X_{T_v-1},v):v\in B^c\}. F B := {( X T v − 1 , v ) : v ∈ B c } . The discovery order τ ( X ) \tau(X) τ ( X ) is the order in which the walk first enters the vertices of B c B^c B c .
The hitting times and T B T_B T B are almost surely finite [14 ] . Following parents strictly decreases first-entrance times until a root is reached. Thus v ↦ X T v − 1 v \mapsto X_{T_v-1} v ↦ X T v − 1 is a B B B -parent map, and Lemma 2.5 gives F B ∈ F B F_B \in\mathcal{F}_B F B ∈ F B . Since the parent of a vertex is entered before the vertex, τ ( X ) \tau(X) τ ( X ) is a growth order of this parent map. For B = { r } B=\{r\} B = { r } , the construction is the Aldous-Broder algorithm, and F B F_B F B is the first-entrance tree F F F of (1.1).
Figure 2 illustrates a stopped covering walk X 0 , … , X 7 X_0,\ldots,X_7 X 0 , … , X 7 from the seed 1, with roots B = { 1 , 2 } B=\{1,2\} B = { 1 , 2 } . The retained edges give the forest in Figure 1 (a), with discovery order ( 3 , 4 , 5 ) (3,4,5) ( 3 , 4 , 5 ) .
Figure 2. Thick steps mark first entrances into nonroots. Gray regions group the excursions between them.
To calculate the joint probability of a forest and its discovery order, we use the harmonic extensions introduced in § 2.2 for the matrix
L : = I − P ∗ , P ∗ : = Π − 1 P T Π , Π : = diag ( π ) . (7) L := I-P^*, \qquad P^* := \Pi^{-1}P^{\mathsf{T}}\Pi, \qquad\Pi:= \operatorname{diag}(\pi). \tag*{(7)} L := I − P ∗ , P ∗ := Π − 1 P T Π , Π := diag ( π ) . (7)
Here P ∗ P^* P ∗ is the transition matrix of the reversed chain. Since π \pi π is stationary, L L L has zero row sums. Its proper principal submatrices are nonsingular by Lemma 3.5 , so the required harmonic extensions are well defined.
We collect the factors associated with the forest edges into a forest weight and the harmonic factors along a growth order into an order weight. Proposition 3.4 below expresses the joint probability in terms of these two weights.
Definition 3.2 (Forest weight and order weight). Let f f f be a B B B -parent map, and let F 0 ∈ F B F_0 \in\mathcal{F}_B F 0 ∈ F B be its forest.
(a) The forest weight of F 0 F_0 F 0 is
w ( F 0 ) : = ∏ v ∈ B c π f ( v ) P f ( v ) v = ( ∏ v ∈ B c π v ) ∏ v ∈ B c P v f ( v ) ∗ . (8) w(F_0) := \prod_{v\in B^c} \pi_{f(v)}P_{f(v)v} = \left(\prod_{v\in B^c}\pi_v\right)\prod_{v\in B^c}P^*_{vf(v)}. \tag*{(8)} w ( F 0 ) := v ∈ B c ∏ π f ( v ) P f ( v ) v = ( v ∈ B c ∏ π v ) v ∈ B c ∏ P v f ( v ) ∗ . (8)
(b) More generally, let L ∈ R V × V L\in\mathbb{R}^{V\times V} L ∈ R V × V be any real matrix, and let τ ∈ S B ( f ) \tau\in S_B(f) τ ∈ S B ( f ) satisfy det L [ B ℓ ] ≠ 0 \det L[B_\ell]\ne0 det L [ B ℓ ] = 0 for 0 ≤ ℓ ≤ k − 1 0\le\ell\le k-1 0 ≤ ℓ ≤ k − 1 . The order weight of τ \tau τ is
ω f ( τ ) : = ∏ ℓ = 1 k − 1 Γ ~ f ( τ ℓ + 1 ) , τ ℓ B ℓ − 1 , (9) \omega_f(\tau):=\prod_{\ell=1}^{k-1}\widetilde{\Gamma}^{B_{\ell-1}}_{f(\tau_{\ell+1}),\tau_\ell}, \tag*{(9)} ω f ( τ ) := ℓ = 1 ∏ k − 1 Γ f ( τ ℓ + 1 ) , τ ℓ B ℓ − 1 , (9)
where an empty product is 1. It depends on L L L and f f f , but we suppress L L L from the notation.
Remark 3.3 (Interpretation of the order weight). For L L L in (3.1), the harmonic extensions describe exit probabilities of the reversed chain. To see this, fix U ⊊ V U\subsetneq V U ⊊ V and v ∈ U c v\in U^c v ∈ U c , and let x u x_u x u be the probability of first leaving U U U at v v v from u ∈ U u\in U u ∈ U . Extend x x x outside U U U by x v = 1 x_v=1 x v = 1 and x w = 0 x_w=0 x w = 0 for w ≠ v w\ne v w = v . First-step conditioning gives ( L x ) ∣ U = 0 (Lx)|_U=0 ( Lx ) ∣ U = 0 , so Lemma 2.3 gives x = γ U ( e v ) x=\gamma^U(e_v) x = γ U ( e v ) .
Thus, when f ( τ ℓ + 1 ) ∈ B ℓ − 1 f(\tau_{\ell+1})\in B_{\ell-1} f ( τ ℓ + 1 ) ∈ B ℓ − 1 , the factor at step ℓ \ell ℓ in (3.3) is the probability that the reversed chain started at this parent first leaves B ℓ − 1 B_{\ell-1} B ℓ − 1 at τ ℓ \tau_\ell τ ℓ . Otherwise, the parent is τ ℓ \tau_\ell τ ℓ , and the factor is one by the prescribed boundary value.
The order decomposition
We now compute the joint probability of a fixed forest and discovery order in terms of the two weights. To express the normalizing constant, let
λ v : = det ( ( I − P ) [ V ∖ { v } ] ) ( v ∈ V ) , λ : = ( λ v ) v ∈ V . (10) \lambda_v:=\det\bigl((I-P)[V\setminus\{v\}]\bigr)\quad(v\in V),\qquad\lambda:=(\lambda_v)_{v\in V}. \tag*{(10)} λ v := det ( ( I − P ) [ V ∖ { v }] ) ( v ∈ V ) , λ := ( λ v ) v ∈ V . (10)
The following proposition gives the decomposition for an arbitrary root set and its simpler form when there is only one root.
Proposition 3.4 (Order decomposition). Let P P P be irreducible and stochastic with stationary distribution π \pi π , let L L L and λ \lambda λ be as in (3.1) and (3.4), let B ⊊ V B\subsetneq V B ⊊ V be nonempty with seed r ∈ B r\in B r ∈ B , and let F B F_B F B and τ ( X ) \tau(X) τ ( X ) be the first-entrance forest and discovery order of the stopped covering walk. For every F 0 ∈ F B F_0\in\mathcal{F}_B F 0 ∈ F B with parent map f f f and every τ ∈ S B ( f ) \tau\in S_B(f) τ ∈ S B ( f ) ,
P ( F B = F 0 , τ ( X ) = τ ) = det L [ B ] π r ( ∏ v ∈ B c π v ) 1 T λ ( L [ B ] − 1 ) f ( τ 1 ) , r w ( F 0 ) ω f ( τ ) , (11) \mathbb{P}(F_B=F_0,\tau(X)=\tau)=\frac{\det L[B]}{\pi_r\left(\prod_{v\in B^c}\pi_v\right)\mathbf{1}^{\mathsf T}\lambda}\left(L[B]^{-1}\right)_{f(\tau_1),r}w(F_0)\,\omega_f(\tau), \tag*{(11)} P ( F B = F 0 , τ ( X ) = τ ) = π r ( ∏ v ∈ B c π v ) 1 T λ det L [ B ] ( L [ B ] − 1 ) f ( τ 1 ) , r w ( F 0 ) ω f ( τ ) , (11) and P ( F B = F 0 , τ ( X ) = τ ) = 0 \mathbb{P}(F_B=F_0,\tau(X)=\tau)=0 P ( F B = F 0 , τ ( X ) = τ ) = 0 for every ordering τ \tau τ of B c B^c B c that is not a growth order of f f f . In particular, for B = { r } B=\{r\} B = { r } ,
P ( F = F 0 , τ ( X ) = τ ) = w ( F 0 ) ⋅ ω f ( τ ) ( 1 T λ ) ∏ v ∈ V π v . (12) \mathbb{P}(F=F_0,\tau(X)=\tau)=\frac{w(F_0)\cdot\omega_f(\tau)}{(\mathbf{1}^{\mathsf T}\lambda)\prod_{v\in V}\pi_v}. \tag*{(12)} P ( F = F 0 , τ ( X ) = τ ) = ( 1 T λ ) ∏ v ∈ V π v w ( F 0 ) ⋅ ω f ( τ ) . (12)
The proof sums the excursions between successive first entrances using a Green function. Reversal expresses its entries through L [ U ] − 1 L[U]^{-1} L [ U ] − 1 , and normalizing the columns gives harmonic extensions multiplied by determinant ratios. These ratios cancel across successive bases, leaving the normalizing factor in the proposition. The following lemmas supply the identities used in this calculation.
Lemma 3.5 (Green function, reversal, normalized columns). Let P P P be irreducible and stochastic with stationary distribution π \pi π , and let L L L be the matrix (7) . Then L 1 = 0 L\mathbf{1}=0 L 1 = 0 and det L [ U ] = det ( ( I − P ) [ U ] ) > 0 \det L[U]=\det((I-P)[U])>0 det L [ U ] = det (( I − P ) [ U ]) > 0 for every nonempty U ⊊ V U\subsetneq V U ⊊ V . Moreover, for u , v ∈ U u,v\in U u , v ∈ U ,
( ( ( I − P ) [ U ] ) − 1 ) u v = ∑ t ≥ 0 ( P [ U ] t ) u v = π v π u ( L [ U ] − 1 ) v u , (13) \left(((I-P)[U])^{-1}\right)_{uv}=\sum_{t\geq0}(P[U]^t)_{uv}=\frac{\pi_v}{\pi_u}(L[U]^{-1})_{vu}, \tag*{(13)} ( (( I − P ) [ U ] ) − 1 ) uv = t ≥ 0 ∑ ( P [ U ] t ) uv = π u π v ( L [ U ] − 1 ) v u , (13) and, if ∣ U ∣ ≥ 2 |U|\geq2 ∣ U ∣ ≥ 2 , the column v v v of L [ U ] − 1 L[U]^{-1} L [ U ] − 1 normalized by its diagonal entry is a harmonic extension:
( L [ U ] − 1 ) v v = det L [ U ∖ { v } ] det L [ U ] , L [ U ] − 1 e v ( L [ U ] − 1 ) v v = γ U ∖ { v } ( e v ) ∣ U . (14) (L[U]^{-1})_{vv}=\frac{\det L[U\setminus\{v\}]}{\det L[U]},\qquad\frac{L[U]^{-1}e_v}{(L[U]^{-1})_{vv}}=\gamma^{U\setminus\{v\}}(e_v)_{|U}. \tag*{(14)} ( L [ U ] − 1 ) v v = det L [ U ] det L [ U ∖ { v }] , ( L [ U ] − 1 ) v v L [ U ] − 1 e v = γ U ∖ { v } ( e v ) ∣ U . (14) The Neumann series gives the Green function, and Cramer’s rule gives the normalized column. We provide the proof in Appendix A.
Lemma 3.6 (Cofactor form of the stationary distribution). Let P P P be irreducible and stochastic with stationary distribution π \pi π . Then λ v > 0 \lambda_v>0 λ v > 0 for all v v v , and π = λ / ( 1 T λ ) \pi=\lambda/(\mathbf{1}^{\mathsf T}\lambda) π = λ / ( 1 T λ ) .
Proof of Lemma 3.6. Since I − P I-P I − P has zero row sums, Lemma 2.1(a) gives λ T ( I − P ) = 0 T \lambda^{\mathsf T}(I-P)=\mathbf{0}^{\mathsf T} λ T ( I − P ) = 0 T , and each λ v \lambda_v λ v is positive by Lemma 3.5. Hence λ / ( 1 T λ ) \lambda/(\mathbf{1}^{\mathsf T}\lambda) λ / ( 1 T λ ) is a stationary distribution, and the uniqueness of the stationary distribution of an irreducible chain [14 ] completes the proof. □
Lemma 3.6 gives the cofactor formula underlying the Markov chain tree theorem [2 , 13 , 28 ] without using its expansion into tree sums.
Proof of Proposition 3.4. An ordering that is not a growth order has probability zero, since the walk visits a parent before it first enters its child. We therefore fix τ ∈ S B ( f ) \tau\in S_B(f) τ ∈ S B ( f ) , put τ 0 : = r \tau_0:=r τ 0 := r , and let B ℓ B_\ell B ℓ be the bases (6) . Here B ℓ − 1 B_{\ell-1} B ℓ − 1 is the set of vertices that may be visited before the ℓ \ell ℓ -th first entrance into B c B^c B c . On the event { F B = F 0 , τ ( X ) = τ } \{F_B=F_0,\tau(X)=\tau\} { F B = F 0 , τ ( X ) = τ } , for ℓ = 1 , … , k \ell=1,\ldots,k ℓ = 1 , … , k , the walk moves inside B ℓ − 1 B_{\ell-1} B ℓ − 1 from τ ℓ − 1 \tau_{\ell-1} τ ℓ − 1 to f ( τ ℓ ) f(\tau_\ell) f ( τ ℓ ) and then steps to τ ℓ \tau_\ell τ ℓ . By the Markov property, summing over the lengths of these confined excursions and using (13) , we have
P ( F B = F 0 , τ ( X ) = τ ) = ∏ v ∈ B c P f ( v ) v ⋅ ∏ ℓ = 1 k ( ( ( I − P ) [ B ℓ − 1 ] ) − 1 ) τ ℓ − 1 , f ( τ ℓ ) . \mathbb{P}(F_B=F_0,\tau(X)=\tau)=\prod_{v\in B^c}P_{f(v)v}\cdot\prod_{\ell=1}^{k}\left(((I-P)[B_{\ell-1}])^{-1}\right)_{\tau_{\ell-1},f(\tau_\ell)}. P ( F B = F 0 , τ ( X ) = τ ) = v ∈ B c ∏ P f ( v ) v ⋅ ℓ = 1 ∏ k ( (( I − P ) [ B ℓ − 1 ] ) − 1 ) τ ℓ − 1 , f ( τ ℓ ) .
By the reversal in (13) , the factor ℓ \ell ℓ equals ( π f ( τ ℓ ) / π τ ℓ − 1 ) ( L [ B ℓ − 1 ] − 1 ) f ( τ ℓ ) , τ ℓ − 1 (\pi_{f(\tau_\ell)}/\pi_{\tau_{\ell-1}})(L[B_{\ell-1}]^{-1})_{f(\tau_\ell),\tau_{\ell-1}} ( π f ( τ ℓ ) / π τ ℓ − 1 ) ( L [ B ℓ − 1 ] − 1 ) f ( τ ℓ ) , τ ℓ − 1 . Here the numerators complete ∏ v ∈ B c P f ( v ) v \prod_{v\in B^c}P_{f(v)v} ∏ v ∈ B c P f ( v ) v to the forest weight w ( F 0 ) w(F_0) w ( F 0 ) , and the denominators multiply to ∏ ℓ = 1 k π τ ℓ − 1 = π r ( ∏ v ∈ B c π v ) / π τ k \prod_{\ell=1}^k\pi_{\tau_{\ell-1}}=\pi_r(\prod_{v\in B^c}\pi_v)/\pi_{\tau_k} ∏ ℓ = 1 k π τ ℓ − 1 = π r ( ∏ v ∈ B c π v ) / π τ k . For 2 ≤ ℓ ≤ k 2\leq\ell\leq k 2 ≤ ℓ ≤ k , applying (14) with U : = B ℓ − 1 U:=B_{\ell-1} U := B ℓ − 1 and v : = τ ℓ − 1 v:=\tau_{\ell-1} v := τ ℓ − 1 , so that U ∖ { v } = B ℓ − 2 U\setminus\{v\}=B_{\ell-2} U ∖ { v } = B ℓ − 2 , we have
( L [ B ℓ − 1 ] − 1 ) f ( τ ℓ ) , τ ℓ − 1 = ( γ B ℓ − 2 ( e τ ℓ − 1 ) ) f ( τ ℓ ) ⋅ det L [ B ℓ − 2 ] det L [ B ℓ − 1 ] . (L[B_{\ell-1}]^{-1})_{f(\tau_\ell),\tau_{\ell-1}}=(\gamma^{B_{\ell-2}}(e_{\tau_{\ell-1}}))_{f(\tau_\ell)}\cdot\frac{\det L[B_{\ell-2}]}{\det L[B_{\ell-1}]}. ( L [ B ℓ − 1 ] − 1 ) f ( τ ℓ ) , τ ℓ − 1 = ( γ B ℓ − 2 ( e τ ℓ − 1 ) ) f ( τ ℓ ) ⋅ det L [ B ℓ − 1 ] det L [ B ℓ − 2 ] .
The product of these ratios simplifies to det L [ B ] / det L [ V ∖ { τ k } ] \det L[B]/\det L[V\setminus\{\tau_k\}] det L [ B ] / det L [ V ∖ { τ k }] , where
det L [ V ∖ { τ k } ] = ( a ) λ τ k = ( b ) π τ k 1 T λ , \det L[V\setminus\{\tau_k\}]\mathrel{\overset{(a)}{=}}\lambda_{\tau_k}\mathrel{\overset{(b)}{=}}\pi_{\tau_k}\mathbf{1}^{\mathsf T}\lambda, det L [ V ∖ { τ k }] = ( a ) λ τ k = ( b ) π τ k 1 T λ ,
and (a) and (b) follow from Lemma 3.5 and Lemma 3.6, respectively. The factor ℓ = 1 \ell=1 ℓ = 1 is the entry ( L [ B ] − 1 ) f ( τ 1 ) , r (L[B]^{-1})_{f(\tau_1),r} ( L [ B ] − 1 ) f ( τ 1 ) , r . Finally, the factor π τ k \pi_{\tau_k} π τ k cancels, and the harmonic factors, reindexed by ℓ ↦ ℓ − 1 \ell\mapsto\ell-1 ℓ ↦ ℓ − 1 , form ω f ( τ ) \omega_f(\tau) ω f ( τ ) , giving (11) . For B = { r } B=\{r\} B = { r } , we have det L [ B ] = L r r \det L[B]=L_{rr} det L [ B ] = L r r and ( L [ B ] − 1 ) r r = 1 / L r r (L[B]^{-1})_{rr}=1/L_{rr} ( L [ B ] − 1 ) r r = 1/ L r r , which gives (12) . This completes the proof. □`
For a single root, summing (12) over the compatible orders gives the probability of the fixed tree. The forest weight and normalizing factor are common to these orders, so (1) follows once we establish
∑ τ ∈ S { r } ( f ) ω f ( τ ) = 1 (15) \sum_{\tau\in\mathcal{S}_{\{r\}}(f)} \omega_f(\tau)=1 \tag*{(15)} τ ∈ S { r } ( f ) ∑ ω f ( τ ) = 1 (15)
for every arborescence of positive weight.
The order-mass identity
To obtain the tree law from the order decomposition, it remains to evaluate the sum in (15) . We establish a more general identity for rooted forests and real matrices L ∈ R V × V L\in\mathbb{R}^{V\times V} L ∈ R V × V with zero row sums. Fix a nonempty root set B ⊊ V B\subsetneq V B ⊊ V , write k : = ∣ B c ∣ k:=|B^{\mathrm{c}}| k := ∣ B c ∣ , and let f f f be a B B B -parent map. The harmonic extensions in its order weights require the following nonsingularity condition.
Assumption 4.1 (Nonsingular bases). L 1 = 0 L\mathbf{1}=0 L 1 = 0 , and det L [ B ℓ ] ≠ 0 \det L[B_\ell]\ne0 det L [ B ℓ ] = 0 for every growth order τ ∈ S B ( f ) \tau\in\mathcal{S}_B(f) τ ∈ S B ( f ) and every 0 ≤ ℓ ≤ k − 1 0\le\ell\le k-1 0 ≤ ℓ ≤ k − 1 .
With several roots, the first vertex of a growth order can be a child of different roots. We group the growth orders according to this root and sum their weights separately.
Definition 4.3 (Order mass). Under Assumption 4.1, the order mass of f f f at the root r ∈ B r\in B r ∈ B is
g r ( B , f ) : = ∑ τ ∈ S B ( f ) : f ( τ 1 ) = r ω f ( τ ) , (16) g_r(B,f):=\sum_{\substack{\tau\in\mathcal{S}_B(f):\\ f(\tau_1)=r}}\omega_f(\tau), \tag*{(16)} g r ( B , f ) := τ ∈ S B ( f ) : f ( τ 1 ) = r ∑ ω f ( τ ) , (16) the total order weight (3.3) of the growth orders whose first vertex is a child of r r r . We write g ( B , f ) : = ( g r ( B , f ) ) r ∈ B g(B,f):=(g_r(B,f))_{r\in B} g ( B , f ) := ( g r ( B , f ) ) r ∈ B .
Theorem 4.4 (Order-mass identity). Let L ∈ R V × V L\in\mathbb{R}^{V\times V} L ∈ R V × V , B B B and f f f satisfy Assumption 4.1. Then, for every r ∈ B r\in B r ∈ B ,
g r ( B , f ) = det ( ( I − Γ B M f ) [ B ∖ { r } ] ) , (17) g_r(B,f)=\det\left((I-\Gamma^B M_f)[B\setminus\{r\}]\right), \tag*{(17)} g r ( B , f ) = det ( ( I − Γ B M f ) [ B ∖ { r }] ) , (17) with the determinant of the empty matrix being 1. In particular, if B = { r } B=\{r\} B = { r } , then the order weights of the growth orders of every arborescence rooted at r r r sum to 1.
The individual terms on the left of (17) depend on the edges within the trees and on the successive bases of each growth order. The right side, however, depends on the forest only through its root indicator. Consequently, forests with the same root blocks have the same order masses, even when their internal tree structures differ.
Figure 3. The dashed path starts at root 1 and first leaves B B B into the tree of root 2.
Supplementary Section SM2 gives the forest-sum interpretation and consequences for successive sampling and linear extensions.
Proof of the order-mass identity
We prove the identity by induction on the number of nonroot vertices. For a growth order starting at w w w , we add w w w to the root set and remove its edge from its parent. The remaining order is then a growth order of a forest rooted at B ∪ { w } B \cup\{w\} B ∪ { w } . The induction hypothesis expresses its order masses as cofactors on this enlarged root set. To complete the induction, we need to relate these cofactors to those on B B B .
We first establish the required cofactor relation for two bases differing by one vertex, then apply it to the forest.
The one-vertex transfer lemma
We begin by comparing harmonic extensions on U U U and U ′ : = U ∪ { w } U' := U \cup\{w\} U ′ := U ∪ { w } , where w ∈ U c w \in U^c w ∈ U c , U ′ ⊊ V U' \subsetneq V U ′ ⊊ V , and det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 , det L [ U ′ ] ≠ 0 \det L[U'] \ne0 det L [ U ′ ] = 0 . If the prescribed value at w w w is zero, the extensions differ by a multiple of γ U ( e w ) \gamma^U(e_w) γ U ( e w ) :
γ U ′ ( m ) = γ U ( m ) + γ U ′ ( m ) w γ U ( e w ) ( m ∈ R U c , m w = 0 ) , (18) \gamma^{U'}(m) = \gamma^U(m) + \gamma^{U'}(m)_w \gamma^U(e_w) \qquad(m \in\mathbb{R}^{U^c},\ m_w = 0), \tag*{(18)} γ U ′ ( m ) = γ U ( m ) + γ U ′ ( m ) w γ U ( e w ) ( m ∈ R U c , m w = 0 ) , (18)
where on the left, m m m is read as a vector on ( U ′ ) c (U')^c ( U ′ ) c . Indeed, the difference of the two sides is annihilated by the rows U U U of L L L and vanishes off U U U , so it is 0 \mathbf{0} 0 by uniqueness.
To compare the cofactors in (4.2), we write the matrix there in terms of a base and an aggregation. For U ⊊ V U \subsetneq V U ⊊ V with det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 and a matrix M M M with rows indexed by U c U^c U c and columns by U U U , we write
N ( U , M ) : = I − Γ U M , N ( U , M ) ⋅ u = e u − Γ U M ⋅ u ( u ∈ U ) . (19) N(U,M) := I - \Gamma^U M,\qquad N(U,M)_{\cdot u} = e_u - \Gamma^U M_{\cdot u}\qquad(u \in U). \tag*{(19)} N ( U , M ) := I − Γ U M , N ( U , M ) ⋅ u = e u − Γ U M ⋅ u ( u ∈ U ) . (19)
When M 1 = 1 M\mathbf{1} = \mathbf{1} M 1 = 1 and L 1 = 0 L\mathbf{1} = \mathbf{0} L 1 = 0 , the rows of N ( U , M ) N(U,M) N ( U , M ) sum to zero, since N ( U , M ) 1 = 1 − Γ U 1 = 0 N(U,M)\mathbf{1} = \mathbf{1} - \Gamma^U\mathbf{1} = \mathbf{0} N ( U , M ) 1 = 1 − Γ U 1 = 0 . Thus Lemma 2.1 applies to N ( U , M ) N(U,M) N ( U , M ) . Taking U = B U = B U = B and M = M f M = M_f M = M f gives the matrix in (4.2).
We next specify how the aggregations on U U U and U ′ U' U ′ are related. For a forest, returning w w w to its parent r r r merges the block rooted at w w w into the block rooted at r r r . We express this relation as an operation on aggregation matrices.
Definition 5.1 (Fold of an aggregation). Let U ⊊ V U \subsetneq V U ⊊ V be nonempty, w ∈ U c w \in U^c w ∈ U c , U ′ : = U ∪ { w } U' := U \cup\{w\} U ′ := U ∪ { w } , and r ∈ U r \in U r ∈ U . Let M ′ M' M ′ have rows indexed by ( U ′ ) c (U')^c ( U ′ ) c , columns indexed by U ′ U' U ′ , and unit row sums. The fold of M ′ M' M ′ into r r r is the matrix M M M with rows U c U^c U c and columns U U U obtained by adding the column w w w of M ′ M' M ′ to the column r r r , and inserting e r T e_r^\mathsf{T} e r T as the row of w w w :
M w ⋅ : = e r T , M v ⋅ : = M v , U ′ + M v w ′ e r T ( v ∈ ( U ′ ) c ) . (20) M_{w\cdot} := e_r^\mathsf{T},\qquad M_{v\cdot} := M'_{v,U} + M'_{vw}e_r^\mathsf{T}\qquad(v \in(U')^c). \tag*{(20)} M w ⋅ := e r T , M v ⋅ := M v , U ′ + M v w ′ e r T ( v ∈ ( U ′ ) c ) . (20) :::`
The fold preserves unit row sums. For ease of notation, we read every column of M ′ M' M ′ as a vector on U c U^c U c with the entry 0 0 0 at w w w . Then (5.3) says that, for u ∈ U u \in U u ∈ U ,
M ⋅ u = M ⋅ u ′ + 1 ( u = r ) ( M ⋅ w ′ + e w ) . (21) M_{\cdot u}=M'_{\cdot u}+\mathbf{1}(u=r)(M'_{\cdot w}+e_w). \tag*{(21)} M ⋅ u = M ⋅ u ′ + 1 ( u = r ) ( M ⋅ w ′ + e w ) . (21)
Figure 4 illustrates the move and the fold for the forest in Figure 1. The following lemma relates the principal cofactors before and after the move.
Figure 4. The transferred vertex and its block are shown in green.
Lemma 5.2 (One-vertex transfer). Let L ∈ R V × V L \in\mathbb{R}^{V \times V} L ∈ R V × V satisfy L 1 = 0 L\mathbf{1}=0 L 1 = 0 , and let U ⊊ V U \subsetneq V U ⊊ V be nonempty with ∣ U ∣ ≤ n − 2 |U| \le n-2 ∣ U ∣ ≤ n − 2 , w ∈ U c w \in U^c w ∈ U c , U ′ : = U ∪ { w } U' := U \cup\{w\} U ′ := U ∪ { w } , det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 and det L [ U ′ ] ≠ 0 \det L[U'] \ne0 det L [ U ′ ] = 0 . Let M ′ M' M ′ have rows ( U ′ ) c (U')^c ( U ′ ) c , columns U ′ U' U ′ and unit row sums, let r ∈ U r \in U r ∈ U , and let M M M be the fold (5.3) of M ′ M' M ′ into r r r . Let d ′ ∈ R U ′ d' \in\mathbb{R}^{U'} d ′ ∈ R U ′ and d ∈ R U d \in\mathbb{R}^{U} d ∈ R U be the vectors of principal cofactors of N ( U ′ , M ′ ) N(U',M') N ( U ′ , M ′ ) and N ( U , M ) N(U,M) N ( U , M ) . Then
∑ u ∈ U ′ ( γ U ( e w ) ) u d u ′ = ∑ u ∈ U ( γ U ( M ⋅ w ′ + e w ) ) u d u . (22) \sum_{u\in U'} \left(\gamma^U(e_w)\right)_u d'_u
=
\sum_{u\in U} \left(\gamma^U(M'_{\cdot w}+e_w)\right)_u d_u. \tag*{(22)} u ∈ U ′ ∑ ( γ U ( e w ) ) u d u ′ = u ∈ U ∑ ( γ U ( M ⋅ w ′ + e w ) ) u d u . (22)
We prove the relation by evaluating one auxiliary determinant using each base.
Proof of Lemma 5.2. We write N ′ : = N ( U ′ , M ′ ) N' := N(U',M') N ′ := N ( U ′ , M ′ ) and N : = N ( U , M ) N := N(U,M) N := N ( U , M ) , both of which have zero row sums. To compare their cofactors, we first extend the columns of M ′ M' M ′ using the original base U U U . Put
G : = [ γ U ( M ⋅ u ′ ) ∣ U ′ ] u ∈ U ′ ∈ R U ′ × U ′ , a : = γ U ( e w ) ∣ U ′ ∈ R U ′ . G:=\left[\left.\gamma^U(M'_{\cdot u})\right|_{U'}\right]_{u\in U'}\in\mathbb{R}^{U'\times U'},\qquad
a:=\left.\gamma^U(e_w)\right|_{U'}\in\mathbb{R}^{U'}. G := [ γ U ( M ⋅ u ′ ) U ′ ] u ∈ U ′ ∈ R U ′ × U ′ , a := γ U ( e w ) U ′ ∈ R U ′ .
To express N ′ N' N ′ in terms of G G G , fix u ∈ U ′ u\in U' u ∈ U ′ . By (5.2), the column u u u of N ′ N' N ′ is e u − γ U ′ ( M ⋅ u ′ ) ∣ U ′ e_u-\gamma^{U'}(M'_{\cdot u})|_{U'} e u − γ U ′ ( M ⋅ u ′ ) ∣ U ′ . Since M ⋅ u ′ M'_{\cdot u} M ⋅ u ′ vanishes at w w w , (5.1) applies to m : = M ⋅ u ′ m:=M'_{\cdot u} m := M ⋅ u ′ , and its coefficient is ( γ U ′ ( M ⋅ u ′ ) ) w = ( Γ U ′ M ′ ) w u \left(\gamma^{U'}(M'_{\cdot u})\right)_w=\left(\Gamma^{U'}M'\right)_{wu} ( γ U ′ ( M ⋅ u ′ ) ) w = ( Γ U ′ M ′ ) w u . Restricting (5.1) to U ′ U' U ′ , we obtain
γ U ′ ( M ⋅ u ′ ) ∣ U ′ = G ⋅ u + ( Γ U ′ M ′ ) w u a , hence N ⋅ u ′ = e u − G ⋅ u − ( Γ U ′ M ′ ) w u a . \gamma^{U'}(M'_{\cdot u})|_{U'}=G_{\cdot u}+\left(\Gamma^{U'}M'\right)_{wu}a,\qquad
\text{hence}\qquad
N'_{\cdot u}=e_u-G_{\cdot u}-\left(\Gamma^{U'}M'\right)_{wu}a. γ U ′ ( M ⋅ u ′ ) ∣ U ′ = G ⋅ u + ( Γ U ′ M ′ ) w u a , hence N ⋅ u ′ = e u − G ⋅ u − ( Γ U ′ M ′ ) w u a .
Collecting the columns u ∈ U ′ u\in U' u ∈ U ′ , we have
N ′ = ( I − G ) − a ( Γ U ′ M ′ ) w ⋅ . (23) N'=(I-G)-a\left(\Gamma^{U'}M'\right)_{w\cdot}. \tag*{(23)} N ′ = ( I − G ) − a ( Γ U ′ M ′ ) w ⋅ . (23)
Thus I − G I-G I − G is a rank-one perturbation of N ′ N' N ′ . We evaluate its determinant first through N ′ N' N ′ and then through N N N .
Evaluation using the enlarged base. By (5.6), I − G = N ′ + a ( Γ U ′ M ′ ) w ⋅ I-G=N'+a\left(\Gamma^{U'}M'\right)_{w\cdot} I − G = N ′ + a ( Γ U ′ M ′ ) w ⋅ . Since M ′ 1 = 1 M'\mathbf{1}=\mathbf{1} M ′ 1 = 1 and Γ U ′ 1 = 1 \Gamma^{U'}\mathbf{1}=\mathbf{1} Γ U ′ 1 = 1 , the row ( Γ U ′ M ′ ) w ⋅ \left(\Gamma^{U'}M'\right)_{w\cdot} ( Γ U ′ M ′ ) w ⋅ sums to one. Applying Lemma 2.1(b) to N ′ N' N ′ , we obtain
det ( I − G ) = a T d ′ = ∑ u ∈ U ′ ( γ U ( e w ) ) u d u ′ . (24) \det(I-G)=a^\mathsf{T}d'=\sum_{u\in U'}\left(\gamma^U(e_w)\right)_u d'_u. \tag*{(24)} det ( I − G ) = a T d ′ = u ∈ U ′ ∑ ( γ U ( e w ) ) u d u ′ . (24)
Evaluation using the original base. The row w w w of G G G vanishes, since ( γ U ( M . u ′ ) ) w = ( M . u ′ ) w = 0 (\gamma^{U}(M'_{.u}))_w=(M'_{.u})_w=0 ( γ U ( M . u ′ ) ) w = ( M . u ′ ) w = 0 for every u ∈ U ′ u\in U' u ∈ U ′ . Expanding det ( I − G ) \det(I-G) det ( I − G ) along this row therefore gives det ( I − G ) = det ( ( I − G ) [ U ] ) \det(I-G)=\det((I-G)[U]) det ( I − G ) = det (( I − G ) [ U ]) . To express the remaining matrix through N N N , we apply (5.4) and the linearity of γ U \gamma^{U} γ U . Together with (5.2), these show that its column u ∈ U u\in U u ∈ U is
e u − Γ U M . u + 1 ( u = r ) Γ U ( M . w ′ + e w ) = N . u + 1 ( u = r ) Γ U ( M . w ′ + e w ) . e_u-\Gamma^{U}M_{.u}+1(u=r)\Gamma^{U}(M'_{.w}+e_w)=N_{.u}+1(u=r)\Gamma^{U}(M'_{.w}+e_w). e u − Γ U M . u + 1 ( u = r ) Γ U ( M . w ′ + e w ) = N . u + 1 ( u = r ) Γ U ( M . w ′ + e w ) .
that is,
( I − G ) [ U ] = N + Γ U ( M . w ′ + e w ) e r T . (25) (I-G)[U]=N+\Gamma^{U}(M'_{.w}+e_w)e_r^{\mathsf T}. \tag*{(25)} ( I − G ) [ U ] = N + Γ U ( M . w ′ + e w ) e r T . (25)
Since N 1 = 0 N\mathbf{1}=0 N 1 = 0 , Lemma 2.1(b) gives
det ( ( I − G ) [ U ] ) = ( Γ U ( M . w ′ + e w ) ) T d = ∑ u ∈ U ( γ U ( M . w ′ + e w ) ) u d u . \det((I-G)[U])=(\Gamma^{U}(M'_{.w}+e_w))^{\mathsf T}d=\sum_{u\in U}(\gamma^{U}(M'_{.w}+e_w))_u d_u. det (( I − G ) [ U ]) = ( Γ U ( M . w ′ + e w ) ) T d = u ∈ U ∑ ( γ U ( M . w ′ + e w ) ) u d u .
Combining the two evaluations of det ( I − G ) \det(I-G) det ( I − G ) gives (5.5). This completes the proof.
Proof of the theorem
We now apply the transfer lemma to the root indicators of a forest before and after its first vertex is added to the root set. We first treat root sets with at least two elements and then use this result for the single-root case.
Proof of Theorem 4.4. Step 1: root sets with at least two elements. We fix L L L and induct on k k k , simultaneously for all root sets with at least two elements and all parent maps satisfying Assumption 4.1. Write N : = N ( B , M f ) N:=N(B,M_f) N := N ( B , M f ) and d u : = det ( N [ B ∖ { u } ] ) d_u:=\det(N[B\setminus\{u\}]) d u := det ( N [ B ∖ { u }]) . We must prove g r ( B , f ) = d r g_r(B,f)=d_r g r ( B , f ) = d r for each r ∈ B r\in B r ∈ B . For this, we will use d T N = 0 T d^{\mathsf T}N=0^{\mathsf T} d T N = 0 T from Lemma 2.1(a).
For the base case k = 1 k=1 k = 1 , write B c = { w } B^c=\{w\} B c = { w } and f ( w ) = : u ∈ B f(w)=:u\in B f ( w ) =: u ∈ B . The unique growth order ( w ) (w) ( w ) has weight one, so g r ( B , f ) = 1 ( r = u ) g_r(B,f)=1(r=u) g r ( B , f ) = 1 ( r = u ) . By (2.2), Γ B = 1 \Gamma^B=1 Γ B = 1 and Γ B M f = 1 e u T \Gamma^BM_f=1e_u^{\mathsf T} Γ B M f = 1 e u T , so N = I − 1 e u T N=I-1e_u^{\mathsf T} N = I − 1 e u T and (2.1) gives d r = 1 − ∑ v ∈ B ∖ { r } ( e u ) v = 1 ( r = u ) d_r=1-\sum_{v\in B\setminus\{r\}}(e_u)_v=1(r=u) d r = 1 − ∑ v ∈ B ∖ { r } ( e u ) v = 1 ( r = u ) .
For the induction step k ≥ 2 k\ge2 k ≥ 2 , fix r ∈ B r\in B r ∈ B and group the growth orders with f ( τ 1 ) = r f(\tau_1)=r f ( τ 1 ) = r by their first vertex w ∈ f − 1 ( r ) w\in f^{-1}(r) w ∈ f − 1 ( r ) . We put B ′ : = B ∪ { w } B':=B\cup\{w\} B ′ := B ∪ { w } and let f ′ f' f ′ be the restriction of f f f to B c ∖ { w } B^c\setminus\{w\} B c ∖ { w } . Then f ′ f' f ′ is a B ′ B' B ′ -parent map, and deleting the first vertex gives a bijection from the growth orders of f f f starting at w w w onto S B ′ ( f ′ ) S_{B'}(f') S B ′ ( f ′ ) . Conversely, every growth order of f ′ f' f ′ can be prefixed by w w w , so all its proper bases are bases of f f f . Thus Assumption 4.1 holds for ( B ′ , f ′ ) (B',f') ( B ′ , f ′ ) .
For corresponding orders, the definition of the order weight gives
ω f ( τ ) = ( γ B ( e w ) ) f ( τ 2 ) ω f ′ ( τ 2 , … , τ k ) . \omega_f(\tau)=(\gamma^B(e_w))_{f(\tau_2)}\omega_{f'}(\tau_2,\ldots,\tau_k). ω f ( τ ) = ( γ B ( e w ) ) f ( τ 2 ) ω f ′ ( τ 2 , … , τ k ) .
where the last order weight is taken with respect to B ′ B' B ′ . We group these shortened orders by u : = f ( τ 2 ) ∈ B ′ u:=f(\tau_2)\in B' u := f ( τ 2 ) ∈ B ′ and apply the induction hypothesis to each order mass of ( B ′ , f ′ ) (B',f') ( B ′ , f ′ ) . Since ( γ B ( e w ) ) u = Γ u w B (\gamma^B(e_w))_u=\Gamma^B_{uw} ( γ B ( e w ) ) u = Γ u w B for u ∈ B u\in B u ∈ B and ( γ B ( e w ) ) w = 1 (\gamma^B(e_w))_w=1 ( γ B ( e w ) ) w = 1 , we obtain
g r ( B , f ) = ∑ w ∈ f − 1 ( r ) ( ∑ u ∈ B Γ u w B det ( N w ′ [ B ′ ∖ { u } ] ) + det ( N w ′ [ B ′ ∖ { w } ] ) ) . (26) g_r(B,f)=\sum_{w\in f^{-1}(r)}\left(\sum_{u\in B}\Gamma^B_{uw}\det(N'_w[B'\setminus\{u\}])+\det(N'_w[B'\setminus\{w\}])\right). \tag*{(26)} g r ( B , f ) = w ∈ f − 1 ( r ) ∑ ( u ∈ B ∑ Γ u w B det ( N w ′ [ B ′ ∖ { u }]) + det ( N w ′ [ B ′ ∖ { w }]) ) . (26)
where N w ′ : = N ( B ′ , M f ′ ) N'_w:=N(B',M_{f'}) N w ′ := N ( B ′ , M f ′ ) .
To transfer these cofactors back to B B B , fix w w w . The root blocks of ( B ′ , f ′ ) (B',f') ( B ′ , f ′ ) are D u D_u D u for u ∈ B ∖ { r } u\in B\setminus\{r\} u ∈ B ∖ { r } , D r ∖ D w D_r\setminus D_w D r ∖ D w for r r r , and D w ∖ { w } D_w\setminus\{w\} D w ∖ { w } for w w w . Hence the fold of M f ′ M_{f'} M f ′ into r r r is M f M_f M f . Moreover, the column w w w of M f ′ M_{f'} M f ′ is the indicator of D w ∖ { w } D_w\setminus\{w\} D w ∖ { w } , so M f ′ , . w ′ + e w M'_{f',.w}+e_w M f ′ , . w ′ + e w is the indicator 1 D w 1_{D_w} 1 D w of D w D_w D w . Since k ≥ 2 k\ge2 k ≥ 2 , we have ∣ B ∣ ≤ n − 2 |B|\le n-2 ∣ B ∣ ≤ n − 2 . Both B B B and B ′ B' B ′ are proper bases of f f f , so the required minors are nonzero by Assumption 4.1. We can therefore apply Lemma 5.2 with U : = B U := B U := B , U ′ = B ′ U' = B' U ′ = B ′ and M ′ : = M f ′ M' := M_{f'} M ′ := M f ′ to express the inner sum of (26) as ∑ u ∈ B ( Γ B 1 D w ) u d u \sum_{u\in B}(\Gamma^{B1}D_w)_u d_u ∑ u ∈ B ( Γ B 1 D w ) u d u .
It remains to sum these contributions over the children of r r r . By Lemma 2.6, their blocks D w D_w D w partition D r D_r D r , and Γ B 1 D r = ( Γ B M f ) ⋅ r = e r − N ⋅ r \Gamma^{B1}D_r = (\Gamma^B M_f)_{\cdot r} = e_r - N_{\cdot r} Γ B 1 D r = ( Γ B M f ) ⋅ r = e r − N ⋅ r . Summing over w ∈ f − 1 ( r ) w \in f^{-1}(r) w ∈ f − 1 ( r ) , we therefore have
g r ( B , f ) = ∑ u ∈ B ( e r − N ⋅ r ) u d u = d r − ( d ⊤ N ) r = d r . g_r(B,f)=\sum_{u\in B}(e_r-N_{\cdot r})_u d_u=d_r-(d^\top N)_r=d_r. g r ( B , f ) = u ∈ B ∑ ( e r − N ⋅ r ) u d u = d r − ( d ⊤ N ) r = d r .
where the last equality holds since d ⊤ N = 0 ⊤ d^\top N=0^\top d ⊤ N = 0 ⊤ .
Step 2: a single root. Let B = { r } B=\{r\} B = { r } . The only principal cofactor of N ( B , M f ) N(B,M_f) N ( B , M f ) is the empty determinant 1 1 1 , so we must show that the order weights sum to one. If k = 1 k=1 k = 1 , the unique growth order has the empty product 1 1 1 .
For k ≥ 2 k\ge2 k ≥ 2 , fix a child w w w of r r r , put B ′ : = { r , w } B':=\{r,w\} B ′ := { r , w } , and let f ′ f' f ′ be the restriction of f f f to B c ∖ { w } B^c\setminus\{w\} B c ∖ { w } . As in Step 1, ( B ′ , f ′ ) (B',f') ( B ′ , f ′ ) satisfies Assumption 4.1, and deleting the first vertex from orders starting at w w w gives precisely its growth orders. Applying the result for two roots to their order masses, the sum of ω f ( τ ) \omega_f(\tau) ω f ( τ ) over orders starting at w w w is the left side of (22) with U : = { r } U:=\{r\} U := { r } and M ′ : = M f ′ M':=M_{f'} M ′ := M f ′ . The fold is again M f M_f M f , and M f ′ ⋅ w + e w = 1 D w M_{f'\cdot w}+e_w=1_{D_w} M f ′ ⋅ w + e w = 1 D w . Since k ≥ 2 k\ge2 k ≥ 2 , the size condition ∣ U ∣ ≤ n − 2 |U|\le n-2 ∣ U ∣ ≤ n − 2 holds, and both U U U and U ′ U' U ′ are bases of f f f , so Lemma 5.2 applies. Its right side is Γ { r } 1 D w \Gamma^{\{r\}}1_{D_w} Γ { r } 1 D w , because d r = 1 d_r=1 d r = 1 .
The blocks of the children of r r r partition D r = B c D_r=B^c D r = B c by Lemma 2.6. Summing over w w w and using Γ { r } 1 = 1 \Gamma^{\{r\}}1=1 Γ { r } 1 = 1 , we conclude that
∑ τ ∈ S { r } ( f ) ω f ( τ ) = Γ { r } 1 = 1. \sum_{\tau\in\mathcal{S}_{\{r\}}(f)}\omega_f(\tau)=\Gamma^{\{r\}}1=1. τ ∈ S { r } ( f ) ∑ ω f ( τ ) = Γ { r } 1 = 1.
This completes the proof.
Consequences for the covering walk
We return to the Markov chain and take L L L as in (7) . Throughout this section, P P P is irreducible and stochastic, π \pi π is its stationary distribution, and λ \lambda λ is the cofactor vector (10) . We first derive the tree law and the conditional law of its discovery order, then consider the forest obtained by stopping when all nonroot vertices have been visited. Individual transition probabilities may be zero. Supplementary Example SM1.4 illustrates these laws on a chain with one-way support.
The Aldous-Broder theorem
The single-root identity evaluates the sum in (15) . Substituting it into the order decomposition gives the Aldous-Broder theorem in the generality of [11 ] .
Theorem 6.1 (Aldous-Broder for general chains [11 Thm. 3.4] ). Let r ∈ V r\in V r ∈ V and let F F F be the first-entrance tree of the covering walk started at r r r . For every F 0 ∈ F r F_0\in\mathcal{F}_r F 0 ∈ F r with { r } \{r\} { r } -parent map f f f ,
P ( F = F 0 ) = w ( F 0 ) ( 1 ⊤ λ ) ∏ v ∈ V π v = w ( F 0 ) ∑ F ′ ∈ F r w ( F ′ ) , w ( F 0 ) = ∏ v ≠ r π f ( v ) P f ( v ) v . \mathbb{P}(F=F_0)=\frac{w(F_0)}{(1^\top\lambda)\prod_{v\in V}\pi_v}=\frac{w(F_0)}{\sum_{F'\in\mathcal{F}_r}w(F')},\qquad w(F_0)=\prod_{v\ne r}\pi_{f(v)}P_{f(v)v}. P ( F = F 0 ) = ( 1 ⊤ λ ) ∏ v ∈ V π v w ( F 0 ) = ∑ F ′ ∈ F r w ( F ′ ) w ( F 0 ) , w ( F 0 ) = v = r ∏ π f ( v ) P f ( v ) v .
Proof. By Lemma 3.5, Assumption 4.1 holds for every arborescence. Summing (12) over τ ∈ S { r } ( f ) \tau\in\mathcal{S}_{\{r\}}(f) τ ∈ S { r } ( f ) and applying the single-root case of Theorem 4.4, we obtain the first form. Since the probabilities sum to one over F 0 ∈ F r F_0\in\mathcal{F}_r F 0 ∈ F r , their common denominator equals the sum of the numerators, which gives the second form.
The normalizing constant also yields the arborescence form of the Markov chain tree theorem for P ∗ P^* P ∗ by summing over F 0 F_0 F 0 . See [12 ] for a direct linear-algebra proof of that theorem. Supplementary Example SM1.2 evaluates the tree law on the four-state chain.
The order in which the tree is discovered
Having obtained the tree law, we can determine how a fixed tree is discovered. For a tree of positive weight, dividing its joint probability with a discovery order by its marginal probability cancels the tree weight and the normalizing constant. The remaining factor ω f ( τ ) \omega_f(\tau) ω f ( τ ) therefore gives the conditional probability of the order.
Theorem 6.2 (Discovery order given the tree). Let r ∈ V r \in V r ∈ V , let F F F and τ ( X ) \tau(X) τ ( X ) be the first-entrance tree and discovery order of the covering walk started at r r r , and let F 0 ∈ F r F_0 \in\mathcal{F}_r F 0 ∈ F r have parent map f f f and positive weight w ( F 0 ) > 0 w(F_0)>0 w ( F 0 ) > 0 . Then
P ( τ ( X ) = τ ∣ F = F 0 ) = ω f ( τ ) ( τ ∈ S { r } ( f ) ) , \mathbb{P}(\tau(X)=\tau\mid F=F_0)=\omega_f(\tau) \qquad(\tau\in S_{\{r\}}(f)), P ( τ ( X ) = τ ∣ F = F 0 ) = ω f ( τ ) ( τ ∈ S { r } ( f )) , and P ( τ ( X ) = τ ∣ F = F 0 ) = 0 \mathbb{P}(\tau(X)=\tau\mid F=F_0)=0 P ( τ ( X ) = τ ∣ F = F 0 ) = 0 for every other ordering τ \tau τ .
Proof. By Theorem 6.1 , we have P ( F = F 0 ) > 0 \mathbb{P}(F=F_0)>0 P ( F = F 0 ) > 0 . Dividing (12) by the first form of Theorem 6.1 cancels the tree weight and the constant. For the orderings that are not growth orders, the claim follows from Proposition 3.4 .
Example 6.3 (A nonuniform law). The law need not be uniform on the growth orders. For example, for simple random walk on the complete graph, the conditional probability of τ \tau τ is the summand of (SM2.3) divided by ( n − 1 ) ! (n-1)! ( n − 1 )! , since the matrix L L L is then a multiple of the Laplacian of the complete graph, and harmonic extensions are unchanged by scaling.
The stopped covering walk
With several roots, the order masses need not equal one. To obtain the stopped-forest law, we relate it to the full tree law. Almost surely, F B F_B F B is the restriction of the full first-entrance tree F F F of Theorem 6.1 to the edges into B c B^{c} B c , since those edges are determined by time T B T_B T B . For F 0 ∈ F B F_0 \in\mathcal{F}_B F 0 ∈ F B , each nonroot already has its unique incoming edge in F 0 F_0 F 0 . Hence F B = F 0 F_B=F_0 F B = F 0 if and only if F ⊇ F 0 F \supseteq F_0 F ⊇ F 0 , and we can obtain its probability by summing over the full trees containing F 0 F_0 F 0 .
To evaluate this sum, we separate the weights of the added edges from the weight of the fixed forest.
Definition 6.4 (Completion and completion weight). Let B ⊊ V B \subsetneq V B ⊊ V be nonempty, r ∈ B r \in B r ∈ B , and F 0 ∈ F B F_0 \in\mathcal{F}_B F 0 ∈ F B . A completion of F 0 F_0 F 0 at r r r is an arborescence F ′ ∈ F r F' \in\mathcal{F}_r F ′ ∈ F r containing F 0 F_0 F 0 . It adds exactly one edge into each vertex of B ∖ { r } B \setminus\{r\} B ∖ { r } and no other edges. The completion weight of F 0 F_0 F 0 at r r r is
φ r ( F 0 ) : = ∑ F ′ ∈ F r : F ′ ⊇ F 0 ∏ u ∈ B ∖ { r } π f F ′ ( u ) P f F ′ ( u ) u . (27) \varphi_r(F_0) := \sum_{\substack{F' \in\mathcal{F}_r: F' \supseteq F_0}} \prod_{u \in B \setminus\{r\}} \pi_{f_{F'}(u)} P_{f_{F'}(u)u}. \tag*{(27)} φ r ( F 0 ) := F ′ ∈ F r : F ′ ⊇ F 0 ∑ u ∈ B ∖ { r } ∏ π f F ′ ( u ) P f F ′ ( u ) u . (27) where f F ′ f_{F'} f F ′ is the parent map of F ′ F' F ′ .
Since the edges of F 0 F_0 F 0 and the added edges are disjoint, ∑ F ′ ∈ F r : F ′ ⊇ F 0 w ( F ′ ) = w ( F 0 ) φ r ( F 0 ) \sum_{F' \in\mathcal{F}_r: F' \supseteq F_0} w(F')=w(F_0)\varphi_r(F_0) ∑ F ′ ∈ F r : F ′ ⊇ F 0 w ( F ′ ) = w ( F 0 ) φ r ( F 0 ) . The following theorem evaluates this completion weight through the order masses of F 0 F_0 F 0 .
Theorem 6.5 (Law of the stopped covering walk). Let B ⊂ V B \subset V B ⊂ V be nonempty with seed r ∈ B r \in B r ∈ B , and let F B F_B F B be the first-entrance forest of the stopped covering walk. For every F 0 ∈ F B F_0 \in\mathcal{F}_B F 0 ∈ F B with parent map f f f ,
P ( F B = F 0 ) = ∑ F ′ ∈ F r : F ′ ⊇ F 0 w ( F ′ ) ∑ F ′ ∈ F r w ( F ′ ) = w ( F 0 ) φ r ( F 0 ) ( 1 T λ ) ∏ v ∈ V π v , (28) \mathbb{P}(F_B=F_0)=\frac{\sum_{F' \in\mathcal{F}_r:F' \supseteq F_0}w(F')}{\sum_{F' \in\mathcal{F}_r}w(F')}=\frac{w(F_0)\varphi_r(F_0)}{(1^\mathsf{T}\lambda)\prod_{v \in V}\pi_v}, \tag*{(28)} P ( F B = F 0 ) = ∑ F ′ ∈ F r w ( F ′ ) ∑ F ′ ∈ F r : F ′ ⊇ F 0 w ( F ′ ) = ( 1 T λ ) ∏ v ∈ V π v w ( F 0 ) φ r ( F 0 ) , (28) and the completion weight is
φ r ( F 0 ) = det L [ B ] ⋅ ∏ u ∈ B ∖ { r } π u ⋅ g ( B , f ) T L [ B ] − 1 e r . (29) \varphi_r(F_0)=\det L[B]\cdot\prod_{u \in B\setminus\{r\}}\pi_u\cdot g(B,f)^\mathsf{T}L[B]^{-1}e_r. \tag*{(29)} φ r ( F 0 ) = det L [ B ] ⋅ u ∈ B ∖ { r } ∏ π u ⋅ g ( B , f ) T L [ B ] − 1 e r . (29)
Proof. We first prove (28) . Since F B F_B F B is the restriction of F F F , summing Theorem 6.1 over the completions of F 0 F_0 F 0 gives (28) .
To evaluate the completion weight, we compute the same probability from the order decomposition. Summing (11) over τ ∈ S B ( f ) \tau\in S_B(f) τ ∈ S B ( f ) and grouping by u : = f ( τ 1 ) u := f(\tau_1) u := f ( τ 1 ) gives, by (16) , the factor ∑ u ∈ B g u ( B , f ) ( L [ B ] − 1 ) u r = g ( B , f ) ⊤ L [ B ] − 1 e r \sum_{u\in B}g_u(B,f)(L[B]^{-1})_{ur}=g(B,f)^\top L[B]^{-1}e_r ∑ u ∈ B g u ( B , f ) ( L [ B ] − 1 ) u r = g ( B , f ) ⊤ L [ B ] − 1 e r , so that
P ( F B = F 0 ) = det L [ B ] w ( F 0 ) g ( B , f ) ⊤ L [ B ] − 1 e r π r ( ∏ v ∈ B c π v ) 1 ⊤ λ . \mathbb{P}(F_B=F_0)=\frac{\det L[B]\,w(F_0)\,g(B,f)^\top L[B]^{-1}e_r}{\pi_r\left(\prod_{v\in B^c}\pi_v\right)\mathbf{1}^\top\lambda}. P ( F B = F 0 ) = π r ( ∏ v ∈ B c π v ) 1 ⊤ λ det L [ B ] w ( F 0 ) g ( B , f ) ⊤ L [ B ] − 1 e r .
Comparing with (28) and canceling w ( F 0 ) w(F_0) w ( F 0 ) gives (29) when w ( F 0 ) > 0 w(F_0)>0 w ( F 0 ) > 0 .
To extend the identity to forests of zero weight, we replace P P P by P ε : = ( 1 − ε ) P + ε 11 ⊤ / n P_\varepsilon:= (1-\varepsilon)P+\varepsilon\mathbf{1}\mathbf{1}^\top/n P ε := ( 1 − ε ) P + ε 1 1 ⊤ / n , 0 < ε < 1 0<\varepsilon<1 0 < ε < 1 , for which every forest has positive weight. By Lemma 3.6, the stationary distribution of P ε P_\varepsilon P ε is a continuous function of the principal cofactors of I − P ε I-P_\varepsilon I − P ε and converges to π \pi π . Moreover, the minors entering the harmonic extensions and L [ B ] − 1 L[B]^{-1} L [ B ] − 1 remain nonzero at the limit by Lemma 3.5. Therefore, both sides of (29) are continuous in ε \varepsilon ε , and letting ε ↓ 0 \varepsilon\downarrow0 ε ↓ 0 proves (29) for every forest. This completes the proof. □ \square □
For B = { r } B=\{r\} B = { r } , the only completion is F 0 F_0 F 0 itself with no added edge, so φ r ( F 0 ) = 1 \varphi_r(F_0)=1 φ r ( F 0 ) = 1 and (28) reduces to Theorem 6.1 . With several roots, the completion weight can vary between forests. Its dependence on F 0 F_0 F 0 is through the root indicator M f M_f M f , as we can see by expressing (29) as a single cofactor.
Since L [ B ] + L [ B , B c ] M f = L [ B ] ( I − Γ B M f ) L[B]+L[B,B^c]M_f=L[B](I-\Gamma^B M_f) L [ B ] + L [ B , B c ] M f = L [ B ] ( I − Γ B M f ) and adj ( L [ B ] ) = det ( L [ B ] ) L [ B ] − 1 \operatorname{adj}(L[B])=\det(L[B])L[B]^{-1} adj ( L [ B ]) = det ( L [ B ]) L [ B ] − 1 , the product rule adj ( X Y ) = adj ( Y ) adj ( X ) \operatorname{adj}(XY)=\operatorname{adj}(Y)\operatorname{adj}(X) adj ( X Y ) = adj ( Y ) adj ( X ) for adjugates and Lemma 2.1(a) give
φ r ( F 0 ) = ( ∏ u ∈ B ∖ { r } π u ) det ( ( L [ B ] + L [ B , B c ] M f ) [ B ∖ { r } ] ) (30) \varphi_r(F_0)=\left(\prod_{u\in B\setminus\{r\}}\pi_u\right)\det\left((L[B]+L[B,B^c]M_f)[B\setminus\{r\}]\right) \tag*{(30)} φ r ( F 0 ) = u ∈ B ∖ { r } ∏ π u det ( ( L [ B ] + L [ B , B c ] M f ) [ B ∖ { r }] ) (30)
Thus the completion weight can be evaluated from a determinant of size ∣ B ∣ − 1 |B|-1 ∣ B ∣ − 1 . Supplementary Section SM3 gives an alternative derivation by contraction and the computational cost. We tabulate the resulting law for the four-state example in Supplementary Section SM1.
Conditioning the joint order decomposition on the stopped forest gives its discovery-order law. Unlike the single-root case, the law also depends on the seed through a column of L [ B ] − 1 L[B]^{-1} L [ B ] − 1 .
Corollary 6.6 (Discovery order given the stopped forest). Under the assumptions of Theorem 6.5, let F 0 ∈ F B F_0\in F_B F 0 ∈ F B have parent map f f f and P ( F B = F 0 ) > 0 \mathbb{P}(F_B=F_0)>0 P ( F B = F 0 ) > 0 . Then, for every τ ∈ S B ( f ) \tau\in S_B(f) τ ∈ S B ( f ) ,
P ( τ ( X ) = τ ∣ F B = F 0 ) = ( L [ B ] − 1 ) f ( τ 1 ) , r ω f ( τ ) ∑ u ∈ B g u ( B , f ) ( L [ B ] − 1 ) u r , \mathbb{P}(\tau(X)=\tau\mid F_B=F_0)=\frac{(L[B]^{-1})_{f(\tau_1),r}\,\omega^f(\tau)}{\sum_{u\in B}g_u(B,f)(L[B]^{-1})_{ur}}, P ( τ ( X ) = τ ∣ F B = F 0 ) = ∑ u ∈ B g u ( B , f ) ( L [ B ] − 1 ) u r ( L [ B ] − 1 ) f ( τ 1 ) , r ω f ( τ ) , and P ( τ ( X ) = τ ∣ F B = F 0 ) = 0 \mathbb{P}(\tau(X)=\tau\mid F_B=F_0)=0 P ( τ ( X ) = τ ∣ F B = F 0 ) = 0 for every other ordering τ \tau τ of B c B^c B c . In particular, the growth orders entering at u ∈ B u\in B u ∈ B carry the conditional mass
g u ( B , f ) ( L [ B ] − 1 ) u r ∑ u ′ ∈ B g u ′ ( B , f ) ( L [ B ] − 1 ) u ′ r . \frac{g_u(B,f)(L[B]^{-1})_{ur}}{\sum_{u'\in B}g_{u'}(B,f)(L[B]^{-1})_{u'r}}. ∑ u ′ ∈ B g u ′ ( B , f ) ( L [ B ] − 1 ) u ′ r g u ( B , f ) ( L [ B ] − 1 ) u r . Proof. Dividing (11) by the expression of P ( F B = F 0 ) \mathbb{P}(F_B=F_0) P ( F B = F 0 ) in the proof of Theorem 6.5 cancels the forest weight and the constant. The denominator is nonzero since P ( F B = F 0 ) > 0 \mathbb{P}(F_B=F_0)>0 P ( F B = F 0 ) > 0 . For the orderings that are not growth orders, the claim follows from Proposition 3.4. This completes the proof. □ \square □
For B = { r } B = \{r\} B = { r } , the factor ( L [ B ] − 1 ) r r (L[B]^{-1})_{rr} ( L [ B ] − 1 ) r r cancels, and Corollary 6.6 reduces to Theorem 6.2.
Wilson’s algorithm run with P ∗ P^* P ∗ and the roots B B B absorbing samples forests with law proportional to w ( F B ) w(F_B) w ( F B ) [3 , 18 , 24 , 29 ] . The stopped covering walk instead samples with law proportional to w ( F B ) φ r ( F B ) w(F_B)\varphi_r(F_B) w ( F B ) φ r ( F B ) . Randomizing the seed does not in general remove this extra factor, as the counterexample in Supplementary Section SM5 shows.
When the completion weight varies, we consider inverse weighting.
For independent draws from q A q_A q A , the self-normalized sample ratio is consistent for the conditional target. Its precision also depends on the variability of the inverse completion weights. § 7 illustrates both support loss and the effect of weighting on estimation.
Numerical illustration
We illustrate the difference between the stopped-walk and weight-proportional forest laws by enumerating forests on seven vertices. We use 30 chains from each of three families: dense chains, random walks on connected undirected graphs, and directed cycles with drift. The root sets are B = { 1 , … , b } B = \{1, \ldots, b\} B = { 1 , … , b } for b = 1 , … , 6 b = 1, \ldots, 6 b = 1 , … , 6 , with seed 1. The drift chains share one forest law and are displayed once. Supplementary § 19 gives the construction, sensitivity analyses, and computational checks.
Figure 5 shows the total variation distance between the two laws. They agree for a single root. With two roots, the median distance is about 0.26 for both the dense and graph families. The largest distance is 0.75, attained by a graph chain with four roots, and is entirely due to unreachable target mass. Thus substantial discrepancies can occur even for reversible chains, and reweighting cannot always remove them.
For an example with complete support, consider the first dense chain with B = { 1 , 2 } B = \{1, 2\} B = { 1 , 2 } and the size of the seed’s tree. Its expectation is 3.237 under the target law and 4.359 under the stopped-walk law. The self-normalized correction converges to 3.237. For the graph chain with the largest lost mass at two roots, the target expectation is 1.923, but the correction converges to the conditional expectation 3.182. These small examples illustrate the support condition in Remark 6.8 rather than performance on large graphs.
Discussion
The order-mass identity evaluates the sum over growth orders of a fixed forest as a cofactor on its roots. This connects the direct calculation of the Aldous-Broder law with the evaluation of completion weights for the stopped covering walk. The resulting forest and conditional order laws suggest several further questions.
First, Theorem 6.2 gives the probability of each growth order of a fixed tree, but its marginals at later positions and the cost of sampling from this conditional law remain to be analyzed. Supplementary Corollary SM2.2 gives a weighted count of linear extensions for one choice of L L L . Other choices may yield further weighted counts with a combinatorial interpretation.
Second, a bijective proof of Theorem 4.4 could explain the equality between the total weights of growth orders and the forest sums in Supplementary Remark SM2.1. The denominators ∏ ℓ det L [ B ℓ − 1 ] \prod_{\ell}\det L[B_{\ell-1}] ∏ ℓ det L [ B ℓ − 1 ] depend on the entire order, so a weight-preserving correspondence would have to account for the changing bases. Connections with loop erasure, such as those in [8 ] , may be useful for this question.
Third, the stopped-walk law separates the question of recovering every target expectation from that of estimating it accurately. Complete target support is needed for the former, while variability of the importance weights affects the latter. The numerical examples illustrate support loss and weight variability separately. It remains to develop walk-based forest samplers that address both issues and to determine their computational cost on graphs used in clustering and signal processing.
The order-mass identity and the tree and stopped-forest laws are formalized in Lean 4 at https://github.com/YuZh98/aldous-broder-lean. The conditional-order laws, importance-correction results, and numerical experiments are not formalized. Supplementary § 18 gives the correspondence between the paper and the formal statements.
Acknowledgments
We thank Dr. Leo Duan for helpful discussions about this project.
Declarations
Generative-AI tools assisted with manuscript revision and coding. The author assumes responsibility for all content.
Proofs of the auxiliary lemmas
We give the deferred proofs of Lemmas 2.1, 2.6 and 3.5.
Proof of Lemma 2.1. (a) Since A 1 = 0 A1=0 A 1 = 0 , we have det A = 0 \det A=0 det A = 0 , and thus A adj ( A ) = 0 A\operatorname{adj}(A)=0 A adj ( A ) = 0 by (3) . Therefore, every column of adj ( A ) \operatorname{adj}(A) adj ( A ) lies in ker A \ker A ker A . If rank A = ∣ S ∣ − 1 \operatorname{rank} A=|S|-1 rank A = ∣ S ∣ − 1 , then ker A = R 1 \ker A=\mathbb{R}1 ker A = R 1 , and each column is constant. If rank A ≤ ∣ S ∣ − 2 \operatorname{rank} A\le|S|-2 rank A ≤ ∣ S ∣ − 2 , then every minor of order ∣ S ∣ − 1 |S|-1 ∣ S ∣ − 1 vanishes, and adj ( A ) = 0 \operatorname{adj}(A)=0 adj ( A ) = 0 . In both cases, the entry ( v , u ) (v,u) ( v , u ) of adj ( A ) \operatorname{adj}(A) adj ( A ) equals its diagonal entry d u d_u d u , so adj ( A ) = 1 d T \operatorname{adj}(A)=1d^{\mathsf{T}} adj ( A ) = 1 d T , and adj ( A ) A = 0 \operatorname{adj}(A)A=0 adj ( A ) A = 0 gives d T A = 0 T d^{\mathsf{T}}A=0^{\mathsf{T}} d T A = 0 T .
(b) We expand the determinant by linearity in each column, choosing A ⋅ v A_{\cdot v} A ⋅ v or c v a c_v a c v a . The terms choosing c v a c_v a c v a in two columns vanish. By (3) and part (a), we have
det ( A + a c T ) = det A + ∑ v c v ∑ u a u adj ( A ) v u = ∑ v c v ∑ u a u d u = ( c T 1 ) ( a T d ) . \det(A+ac^{\mathsf{T}})=\det A+\sum_v c_v\sum_u a_u\operatorname{adj}(A)_{vu}=\sum_v c_v\sum_u a_ud_u=(c^{\mathsf{T}}1)(a^{\mathsf{T}}d). det ( A + a c T ) = det A + v ∑ c v u ∑ a u adj ( A ) v u = v ∑ c v u ∑ a u d u = ( c T 1 ) ( a T d ) .
This completes the proof.
Proof of Lemma 2.6. We fix v ∈ B c v\in B^{\mathrm{c}} v ∈ B c and let q 0 ≥ 1 q_0\ge1 q 0 ≥ 1 be the first index with f ( q 0 ) ( v ) ∈ B f^{(q_0)}(v)\in B f ( q 0 ) ( v ) ∈ B . We first prove the claim that the iterates f ( q ) ( v ) f^{(q)}(v) f ( q ) ( v ) , 0 ≤ q ≤ q 0 0\le q\le q_0 0 ≤ q ≤ q 0 , are pairwise distinct. Suppose that f ( q ) ( v ) = f ( q ′ ) ( v ) f^{(q)}(v)=f^{(q')}(v) f ( q ) ( v ) = f ( q ′ ) ( v ) with q < q ′ ≤ q 0 q<q'\le q_0 q < q ′ ≤ q 0 . Since an element of B c B^{\mathrm{c}} B c cannot equal one of B B B , both indices are below q 0 q_0 q 0 . The iterates of f ( q ) ( v ) f^{(q)}(v) f ( q ) ( v ) are then periodic inside B c B^{\mathrm{c}} B c and never reach B B B , which contradicts the definition of a B B B -parent map.
It follows that v ∈ D u v\in D_u v ∈ D u exactly for u = f ( q ) ( v ) u=f^{(q)}(v) u = f ( q ) ( v ) , $0\le q\le q_0$. Hence v v v lies in the block of exactly one root, namely f ( q 0 ) ( v ) f^{(q_0)}(v) f ( q 0 ) ( v ) , which proves the first statement. For the second, we have v ∈ D u ∖ { u } v\in D_u\setminus\{u\} v ∈ D u ∖ { u } if and only if f ( q ) ( v ) = u f^{(q)}(v)=u f ( q ) ( v ) = u for some q ≥ 1 q\ge1 q ≥ 1 , that is, v ∈ D w v\in D_w v ∈ D w for the child w : = f ( q − 1 ) ( v ) w:=f^{(q-1)}(v) w := f ( q − 1 ) ( v ) of u u u . This child is unique by distinctness. Moreover, u ∉ D w u\notin D_w u ∈ / D w for a child w w w of u u u , since otherwise the iterates from u u u would return to $u. This completes the proof.
Proof of Lemma 3.5. We first note that ( L 1 ) u = 1 − π u − 1 ( P T π ) u = 0 (L1)_u=1-\pi_u^{-1}(P^{\mathsf{T}}\pi)_u=0 ( L 1 ) u = 1 − π u − 1 ( P T π ) u = 0 . Since L [ U ] = Π [ U ] − 1 ( ( I − P ) [ U ] ) T Π [ U ] L[U]=\Pi[U]^{-1}((I-P)[U])^{\mathsf{T}}\Pi[U] L [ U ] = Π [ U ] − 1 (( I − P ) [ U ] ) T Π [ U ] , the two matrices have the same determinant, and
( ( I − P ) [ U ] ) − 1 = Π [ U ] − 1 ( L [ U ] − 1 ) T Π [ U ] , ((I-P)[U])^{-1}=\Pi[U]^{-1}(L[U]^{-1})^{\mathsf{T}}\Pi[U], (( I − P ) [ U ] ) − 1 = Π [ U ] − 1 ( L [ U ] − 1 ) T Π [ U ] ,
whose ( u , v ) (u,v) ( u , v ) entry is ( π v / π u ) ( L [ U ] − 1 ) v u (\pi_v/\pi_u)(L[U]^{-1})_{vu} ( π v / π u ) ( L [ U ] − 1 ) v u .
Next, we prove (13) and the positivity of the determinant. Fix u ∈ U u\in U u ∈ U and w ∈ U c w\in U^{\mathrm{c}} w ∈ U c . By irreducibility, there is a path of pairwise distinct states from u u u to w w w with positive transition probabilities, and it leaves U U U within at most n − 1 n-1 n − 1 steps. Hence the walk started at u u u leaves U U U within n − 1 n-1 n − 1 steps with positive probability, so every row of P [ U ] n − 1 P[U]^{n-1} P [ U ] n − 1 sums to less than one, and the substochastic matrix P [ U ] P[U] P [ U ] has spectral radius less than 1. Therefore, the Neumann series converges to ( ( I − P ) [ U ] ) − 1 ((I-P)[U])^{-1} (( I − P ) [ U ] ) − 1 , which, together with the reversal, proves (13) . Moreover, the eigenvalues η \eta η of P [ U ] P[U] P [ U ] , lying in the open unit disk and closed under conjugation, give det ( ( I − P ) [ U ] ) = ∏ η ( 1 − η ) > 0 \det((I-P)[U]) = \prod_{\eta}(1-\eta) > 0 det (( I − P ) [ U ]) = ∏ η ( 1 − η ) > 0 , the product over the eigenvalues with multiplicity.
Finally, the first identity in (14) is Cramer’s rule. For the second, the column v v v of L [ U ] − 1 L[U]^{-1} L [ U ] − 1 , extended by zero off U U U and divided by its value at v v v , is 1 1 1 at v v v , vanishes off U U U , and is annihilated by the rows U ∖ { v } U \setminus\{v\} U ∖ { v } of L L L , because L [ U ] ( L [ U ] − 1 ) v = e v L[U](L[U]^{-1})_v=e_v L [ U ] ( L [ U ] − 1 ) v = e v . By uniqueness, it equals γ U ∖ { v } ( e v ) \gamma^{U\setminus\{v\}}(e_v) γ U ∖ { v } ( e v ) . This completes the proof.
Supplementary materials
These supplementary materials contain examples and secondary consequences of the order-mass identity, details of the Lean formalization, and the full numerical study. References to results without an SM prefix refer to the main article above.
Worked examples
We illustrate the results on three small examples. A four-state chain makes the harmonic extensions, order masses and completion weights explicit. A chain with one-way transitions shows the roles of reversal and support. A matrix with entries of both signs checks the identity outside the probabilistic setting, where individual order weights can be negative.
Example SM1.1 (A four-state chain). Let V = { 1 , 2 , 3 , 4 } V = \{1,2,3,4\} V = { 1 , 2 , 3 , 4 } and L : = I − 1 5 W T L := I - \frac{1}{5}W^{\mathsf{T}} L := I − 5 1 W T with
W = ( 1 1 1 2 1 1 2 1 1 2 1 1 2 1 1 1 ) . W = \begin{pmatrix} 1 & 1 & 1 & 2 \\ 1 & 1 & 2 & 1 \\ 1 & 2 & 1 & 1 \\ 2 & 1 & 1 & 1 \end{pmatrix}. W = 1 1 1 2 1 1 2 1 1 2 1 1 2 1 1 1 . Every column of W W W sums to 5, so L 1 = 0 L\mathbf{1} = 0 L 1 = 0 , and L L L is the matrix (3.1) of the doubly stochastic chain P : = W / 5 P := W/5 P := W /5 . We take B = { 1 , 2 } B = \{1,2\} B = { 1 , 2 } , so that the minors required by Assumption 4.1 are among
det L [ { 1 , 2 } ] = 3 5 , det L [ { 1 , 2 , 3 } ] = det L [ { 1 , 2 , 4 } ] = 36 125 . \det L[\{1,2\}] = \frac{3}{5},\qquad\det L[\{1,2,3\}] = \det L[\{1,2,4\}] = \frac{36}{125}. det L [{ 1 , 2 }] = 5 3 , det L [{ 1 , 2 , 3 }] = det L [{ 1 , 2 , 4 }] = 125 36 . The harmonic extension map from B B B has the columns
Γ ~ B = ( γ B ( e 3 ) γ B ( e 4 ) ) , γ B ( e 3 ) = ( 2 5 , 3 5 , 1 , 0 ) T , γ B ( e 4 ) = ( 3 5 , 2 5 , 0 , 1 ) T . \widetilde{\Gamma}^{B} = \left(\gamma^{B}(e_{3})\ \gamma^{B}(e_{4})\right),\qquad\gamma^{B}(e_{3}) = \left(\frac{2}{5},\frac{3}{5},1,0\right)^{\mathsf{T}},\qquad\gamma^{B}(e_{4}) = \left(\frac{3}{5},\frac{2}{5},0,1\right)^{\mathsf{T}}. Γ B = ( γ B ( e 3 ) γ B ( e 4 ) ) , γ B ( e 3 ) = ( 5 2 , 5 3 , 1 , 0 ) T , γ B ( e 4 ) = ( 5 3 , 5 2 , 0 , 1 ) T . We consider the three B B B -parent maps in Figure SM1 ,
f 1 : 3 ↦ 1 , 4 ↦ 3 ; f 2 : 3 ↦ 2 , 4 ↦ 3 ; f 3 : 3 ↦ 1 , 4 ↦ 2 , f_{1}: 3 \mapsto1,\ 4 \mapsto3;\qquad f_{2}: 3 \mapsto2,\ 4 \mapsto3;\qquad f_{3}: 3 \mapsto1,\ 4 \mapsto2, f 1 : 3 ↦ 1 , 4 ↦ 3 ; f 2 : 3 ↦ 2 , 4 ↦ 3 ; f 3 : 3 ↦ 1 , 4 ↦ 2 , with root blocks ( D 1 , D 2 ) = ( { 3 , 4 } , ∅ ) , ( ∅ , { 3 , 4 } ) (D_{1},D_{2}) = (\{3,4\},\varnothing),(\varnothing,\{3,4\}) ( D 1 , D 2 ) = ({ 3 , 4 } , ∅ ) , ( ∅ , { 3 , 4 }) and ( { 3 } , { 4 } ) (\{3\},\{4\}) ({ 3 } , { 4 }) , respectively.
Figure SM1. The forests f 1 f_1 f 1 , f 2 f_2 f 2 , f 3 f_3 f 3 of Example SM1.1, rooted at B = { 1 , 2 } B = \{1,2\} B = { 1 , 2 } . Squares mark the roots, and edges point away from them.
On the right side of (17) , the matrices I − Γ B M f I - \Gamma^{B}M_{f} I − Γ B M f are
( 0 0 − 1 1 ) , ( 1 − 1 0 0 ) , ( 3 5 − 3 5 − 3 5 3 5 ) . \begin{pmatrix} 0 & 0 \\ -1 & 1 \end{pmatrix},\qquad
\begin{pmatrix} 1 & -1 \\ 0 & 0 \end{pmatrix},\qquad
\begin{pmatrix} \frac{3}{5} & -\frac{3}{5} \\ -\frac{3}{5} & \frac{3}{5} \end{pmatrix}. ( 0 − 1 0 1 ) , ( 1 0 − 1 0 ) , ( 5 3 − 5 3 − 5 3 5 3 ) .
with the vectors of principal cofactors ( 1 , 0 ) T (1,0)^{\mathsf{T}} ( 1 , 0 ) T , ( 0 , 1 ) T (0,1)^{\mathsf{T}} ( 0 , 1 ) T and ( 3 5 , 3 5 ) T \left(\frac{3}{5},\frac{3}{5}\right)^{\mathsf{T}} ( 5 3 , 5 3 ) T , respectively. On the left side, f 1 f_1 f 1 has the single growth order ( 3 , 4 ) (3,4) ( 3 , 4 ) , entering at 1 with the factor ( γ B ( e 3 ) ) 3 = 1 (\gamma^{B}(e_3))_3=1 ( γ B ( e 3 ) ) 3 = 1 , and f 2 f_2 f 2 likewise enters at 2. On the other hand, f 3 f_3 f 3 has ( 3 , 4 ) (3,4) ( 3 , 4 ) entering at 1 with the factor ( γ B ( e 3 ) ) 2 = 3 5 (\gamma^{B}(e_3))_2=\frac{3}{5} ( γ B ( e 3 ) ) 2 = 5 3 , and ( 4 , 3 ) (4,3) ( 4 , 3 ) entering at 2 with ( γ B ( e 4 ) ) 1 = 3 5 (\gamma^{B}(e_4))_1=\frac{3}{5} ( γ B ( e 4 ) ) 1 = 5 3 . These agree with the principal cofactors above.
For the single-root case, consider the single root 1 and the star f ⋆ : 2 , 3 , 4 ↦ 1 f_\star: 2,3,4\mapsto1 f ⋆ : 2 , 3 , 4 ↦ 1 . Every ordering of { 2 , 3 , 4 } \{2,3,4\} { 2 , 3 , 4 } is a growth order, and the six order weights
1 10 , 3 20 , 1 10 , 3 20 , 1 4 , 1 4 \frac{1}{10},\ \frac{3}{20},\ \frac{1}{10},\ \frac{3}{20},\ \frac{1}{4},\ \frac{1}{4} 10 1 , 20 3 , 10 1 , 20 3 , 4 1 , 4 1
for ( 2 , 3 , 4 ) , ( 2 , 4 , 3 ) , ( 3 , 2 , 4 ) , ( 3 , 4 , 2 ) , ( 4 , 2 , 3 ) , ( 4 , 3 , 2 ) (2,3,4),(2,4,3),(3,2,4),(3,4,2),(4,2,3),(4,3,2) ( 2 , 3 , 4 ) , ( 2 , 4 , 3 ) , ( 3 , 2 , 4 ) , ( 3 , 4 , 2 ) , ( 4 , 2 , 3 ) , ( 4 , 3 , 2 ) sum to 1, as the single-root identity requires.
Example SM1.2 (Example SM1.1 continued). The principal cofactors of I − P I-P I − P are λ v = 36 125 \lambda_v=\frac{36}{125} λ v = 125 36 for every v v v , so 1 T λ = 1 125 \mathbf{1}^{\mathsf{T}}\lambda=\frac{1}{125} 1 T λ = 125 1 . With the single root 1, the star f ⋆ f_\star f ⋆ has tree weight
w ( F ⋆ ) = ∏ v ≠ 1 π f ( v ) P f ( v ) v = ∏ v ≠ 1 π 1 P 1 v = 1 4000 . w(F_\star)=\prod_{v\ne1}\pi_{f(v)}P_{f(v)v}=\prod_{v\ne1}\pi_1P_{1v}=\frac{1}{4000}. w ( F ⋆ ) = v = 1 ∏ π f ( v ) P f ( v ) v = v = 1 ∏ π 1 P 1 v = 4000 1 .
and hence
P ( F = F ⋆ ) = 1 / 4000 ( 144 / 125 ) ( 1 / 256 ) = 1 18 . \mathbb{P}(F=F_\star)=\frac{1/4000}{(144/125)(1/256)}=\frac{1}{18}. P ( F = F ⋆ ) = ( 144/125 ) ( 1/256 ) 1/4000 = 18 1 .
By Theorem 6.2 , the six order weights of Example SM1.1 are the conditional probabilities of the six growth orders given F = F ⋆ F=F_\star F = F ⋆ . Moreover, the 16 arborescences rooted at 1 have total weight 9 2000 \frac{9}{2000} 2000 9 , as the second form of Theorem 6.1 requires.
Example SM1.3 (Example SM1.1 continued). We return to the root set B = { 1 , 2 } B=\{1,2\} B = { 1 , 2 } of Example SM1.1, for which π \pi π is uniform and det L [ B ] = 3 5 \det L[B]=\frac{3}{5} det L [ B ] = 5 3 . With the order masses ( 1 , 0 ) (1,0) ( 1 , 0 ) , ( 0 , 1 ) (0,1) ( 0 , 1 ) and ( 3 5 , 3 5 ) \left(\frac{3}{5},\frac{3}{5}\right) ( 5 3 , 5 3 ) of f 1 , f 2 , f 3 f_1,f_2,f_3 f 1 , f 2 , f 3 , (6.3) and (6.2) give the completion weights and probabilities of three of the eight forests rooted at B B B in Table SM1.
Table SM1. Completion weights and laws of F B F_B F B for the forests f 1 f_1 f 1 , f 2 f_2 f 2 , f 3 f_3 f 3 of Figure SM1. Here P r \mathop{\mathrm{Pr}} Pr is the law of F B F_B F B under the seed r r r .
The first two forests have weights in ratio 1:2, but their seed-1 probabilities are in ratio 2:1. Thus the walk from 1 favors the forest whose larger tree is rooted at the seed.
Example SM1.4 (A chain with one-way support). The doubly stochastic chain of Example SM1.1 is convenient for computation, but it hides the role of the reversal. To make this role visible, we consider V = { 1 , 2 , 3 , 4 } V=\{1,2,3,4\} V = { 1 , 2 , 3 , 4 } and the chain of Figure SM2,
P = ( 0 1 2 1 2 0 0 0 1 2 1 2 1 3 0 0 2 3 1 0 0 0 ) , P ∗ = ( 0 0 1 4 3 4 1 0 0 0 2 3 1 3 0 0 0 1 3 2 3 0 ) . P=\begin{pmatrix}
0 & \frac{1}{2} & \frac{1}{2} & 0\\
0 & 0 & \frac{1}{2} & \frac{1}{2}\\
\frac{1}{3} & 0 & 0 & \frac{2}{3}\\
1 & 0 & 0 & 0
\end{pmatrix},
\qquad
P^\ast=\begin{pmatrix}
0 & 0 & \frac{1}{4} & \frac{3}{4}\\
1 & 0 & 0 & 0\\
\frac{2}{3} & \frac{1}{3} & 0 & 0\\
0 & \frac{1}{3} & \frac{2}{3} & 0
\end{pmatrix}. P = 0 0 3 1 1 2 1 0 0 0 2 1 2 1 0 0 0 2 1 3 2 0 , P ∗ = 0 1 3 2 0 0 0 3 1 3 1 4 1 0 0 3 2 4 3 0 0 0 .
with the stationary distribution π = ( 1 3 , 1 6 , 1 4 , 1 4 ) T \pi=\left(\frac{1}{3},\frac{1}{6},\frac{1}{4},\frac{1}{4}\right)^{\mathsf{T}} π = ( 3 1 , 6 1 , 4 1 , 4 1 ) T .
Figure SM2. The transitions of the chain of Example SM1.4. Only the arc between 1 and 3 is used in both directions, whereas every other arc is one-way.
The chain is irreducible, since 1 → 2 → 4 → 1 1 \to2 \to4 \to1 1 → 2 → 4 → 1 and 1 → 3 → 1 1 \to3 \to1 1 → 3 → 1 are cycles through every state. However, nine of the sixteen transitions vanish, the arcs 1 → 2 1 \to2 1 → 2 , 2 → 3 2 \to3 2 → 3 , 2 → 4 2 \to4 2 → 4 , 3 → 4 3 \to4 3 → 4 and 4 → 1 4 \to1 4 → 1 are one-way, and π u P u v ≠ π v P v u \pi_u P_{uv} \ne\pi_v P_{vu} π u P uv = π v P v u for every pair u ≠ v u \ne v u = v . In particular, P P P is not positive on the edges of any undirected graph, so the hypothesis of [9 ] fails. Nevertheless, the results of § 6 require only irreducibility, and we now check each of them. All the numbers below are exact. For comparison, we computed the laws of the walk independently by first-step analysis on the pairs (visited set, current state), using only the forward chain.
The tree law. Start the covering walk at r = 1 r = 1 r = 1 . Of the 16 arborescences rooted at 1, only four have positive weight, and their total weight is 1 96 \frac{1}{96} 96 1 . Table SM2 lists these four trees with their probabilities from Theorem 6.1 and the conditional law of their growth orders from Theorem 6.2 . The other twelve trees have probability zero.
Table SM2. The four trees of positive weight rooted at 1 in Example SM1.4, written as ( f ( 2 ) , f ( 3 ) , f ( 4 ) ) (f(2), f(3), f(4)) ( f ( 2 ) , f ( 3 ) , f ( 4 )) , with their weights, their probabilities under the covering walk from 1, and the order weights of their growth orders.
The probabilities and the order weights both agree with the first-step analysis. Every tree of positive weight has f ( 2 ) = 1 f(2) = 1 f ( 2 ) = 1 , since the only arc into 2 is from 1. In contrast, the law proportional to ∏ v ≠ 1 P v f ( v ) \prod_{v \ne1} P_{vf(v)} ∏ v = 1 P v f ( v ) , which Wilson’s algorithm samples when run with P P P in place of P ∗ P^* P ∗ , is supported on the trees with f ( 2 ) ∈ { 3 , 4 } f(2) \in\{3,4\} f ( 2 ) ∈ { 3 , 4 } , since 2 can only move to 3 or 4. The two laws are therefore mutually singular.
Order weights equal to zero. The growth order ( 2 , 3 , 4 ) (2,3,4) ( 2 , 3 , 4 ) of the first two trees has weight zero. Its first factor is ( γ { 1 } ( e 2 ) ) 1 = P 12 ∗ = 0 (\gamma^{\{1\}}(e_2))_1 = P^*_{12} = 0 ( γ { 1 } ( e 2 ) ) 1 = P 12 ∗ = 0 . Correspondingly, once the walk has entered 2, it cannot return to 1 without visiting 3 or 4, so it never discovers 2 and then 3 from 1. The order weights of each of the 16 trees still sum to one, as Theorem 4.4 requires, including the twelve trees of weight zero.
The stopped covering walk. Take B = { 1 , 2 } B = \{1,2\} B = { 1 , 2 } . Then L [ B ] = ( 1 0 − 1 1 ) L[B] = \begin{pmatrix} 1 & 0 \\ -1 & 1 \end{pmatrix} L [ B ] = ( 1 − 1 0 1 ) , so det L [ B ] = 1 \det L[B] = 1 det L [ B ] = 1 , and (6.3) gives φ 1 ( F 0 ) = π 2 ( g 1 ( B , f ) + g 2 ( B , f ) ) \varphi_1(F_0) = \pi_2\bigl(g_1(B,f) + g_2(B,f)\bigr) φ 1 ( F 0 ) = π 2 ( g 1 ( B , f ) + g 2 ( B , f ) ) and φ 2 ( F 0 ) = π 1 g 2 ( B , f ) \varphi_2(F_0) = \pi_1 g_2(B,f) φ 2 ( F 0 ) = π 1 g 2 ( B , f ) . Table SM3 lists the eight forests rooted at B B B with their order masses, completion weights and probabilities under the two seeds. Both probability columns agree with (6.2) and with the first-step analysis.
Table SM3. The eight forests rooted at B = { 1 , 2 } B=\{1,2\} B = { 1 , 2 } in Example SM1.4, written as ( f ( 3 ) , f ( 4 ) ) (f(3),f(4)) ( f ( 3 ) , f ( 4 )) , with their weights, order masses, completion weights at the seed 2, and laws P r \mathbb{P}_r P r of F B F_B F B under the seeds r = 1 , 2 r=1,2 r = 1 , 2 . The completion weight at the seed 1 equals 1 / 6 1/6 1/6 for every forest.
The last four forests have weight zero, since P 14 = P 43 = 0 P_{14} = P_{43} = 0 P 14 = P 43 = 0 , but their order masses are well defined and satisfy Theorem 4.4 . Indeed, the identity concerns L L L , not the weight of the forest.
The two seeds behave very differently. Every order mass vector sums to one here, so φ 1 ( F 0 ) = π 2 = 1 / 6 \varphi_1(F_0)=\pi_2=1/6 φ 1 ( F 0 ) = π 2 = 1/6 for every F 0 F_0 F 0 , and hence P 1 ( F B = F 0 ) ∝ w ( F 0 ) \mathbb{P}_1(F_B=F_0)\propto w(F_0) P 1 ( F B = F 0 ) ∝ w ( F 0 ) . Thus the walk from 1 samples exactly the weight-proportional law. This is an instance of Remark 6.7 , since every completion at 1 whose added edge has positive weight adds the edge 1 → 2 1\to2 1 → 2 , the only arc into 2, so that φ 1 ( F 0 ) = π 1 P 12 = 1 / 6 \varphi_1(F_0)=\pi_1P_{12}=1/6 φ 1 ( F 0 ) = π 1 P 12 = 1/6 for every F 0 F_0 F 0 .
In contrast, the walk from the seed 2 is tilted by φ 2 \varphi_2 φ 2 and never returns ( 1 , 3 ) (1,3) ( 1 , 3 ) , the forest of largest weight. Indeed, its first step enters 3 or 4 from 2, and the completion weight φ 2 \varphi_2 φ 2 of ( 1 , 3 ) (1,3) ( 1 , 3 ) vanishes, since no vertex of the tree of 2 has an arc into 1. Since ( 1 , 3 ) (1,3) ( 1 , 3 ) has probability 4 / 9 4/9 4/9 under the weight-proportional law, the target mass lost from the seed 2 is 4 / 9 4/9 4/9 . By Remark 6.8 , every reweighting of P 2 \mathbb{P}_2 P 2 is therefore at total variation distance at least 4 / 9 4/9 4/9 from that law.
Finally, (6.3) also holds for the forests of weight zero, as the continuity argument in the proof of Theorem 6.5 shows. For example, the forest ( 2 , 1 ) (2,1) ( 2 , 1 ) has a single completion rooted at 2 whose added edge has positive weight, the edge 3 → 1 3\to1 3 → 1 , so that φ 2 ( F 0 ) = π 3 P 31 = 1 / 12 = π 1 g 2 ( B , f ) \varphi_2(F_0)=\pi_3P_{31}=1/12=\pi_1g_2(B,f) φ 2 ( F 0 ) = π 3 P 31 = 1/12 = π 1 g 2 ( B , f ) , although the completed tree has weight zero.
Example SM1.5 (A matrix with entries of both signs). We now consider a matrix L L L that no Markov chain produces, so that some entries of the harmonic extensions are negative and some exceed one. Let V = { 1 , … , 5 } V=\{1,\ldots,5\} V = { 1 , … , 5 } and
L = ( 3 − 1 1 − 2 − 1 − 1 3 − 2 1 − 1 1 − 2 3 − 1 − 1 − 1 − 1 − 1 3 0 − 1 1 − 1 − 1 2 ) , L=\begin{pmatrix}
3 & -1 & 1 & -2 & -1\\
-1 & 3 & -2 & 1 & -1\\
1 & -2 & 3 & -1 & -1\\
-1 & -1 & -1 & 3 & 0\\
-1 & 1 & -1 & -1 & 2
\end{pmatrix}, L = 3 − 1 1 − 1 − 1 − 1 3 − 2 − 1 1 1 − 2 3 − 1 − 1 − 2 1 − 1 3 − 1 − 1 − 1 − 1 0 2 ,
whose rows sum to zero and whose off-diagonal entries L 13 , L 24 , L 31 , L 52 L_{13},L_{24},L_{31},L_{52} L 13 , L 24 , L 31 , L 52 are positive. We take B = { 1 , 2 } B=\{1,2\} B = { 1 , 2 } and f : 3 ↦ 1 f:3\mapsto1 f : 3 ↦ 1 , 4 ↦ 3 4\mapsto3 4 ↦ 3 , 5 ↦ 2 5\mapsto2 5 ↦ 2 , with root blocks D 1 = { 3 , 4 } D_1=\{3,4\} D 1 = { 3 , 4 } and D 2 = { 5 } D_2=\{5\} D 2 = { 5 } , which is the forest of Figure 1 . The three growth orders ( 3 , 4 , 5 ) (3,4,5) ( 3 , 4 , 5 ) , ( 3 , 5 , 4 ) (3,5,4) ( 3 , 5 , 4 ) , ( 5 , 3 , 4 ) (5,3,4) ( 5 , 3 , 4 ) have the proper bases { 1 , 2 } \{1,2\} { 1 , 2 } , { 1 , 2 , 3 } \{1,2,3\} { 1 , 2 , 3 } , { 1 , 2 , 5 } \{1,2,5\} { 1 , 2 , 5 } , { 1 , 2 , 3 , 4 } \{1,2,3,4\} { 1 , 2 , 3 , 4 } , { 1 , 2 , 3 , 5 } \{1,2,3,5\} { 1 , 2 , 3 , 5 } , on which the minors of L L L are 8 8 8 , 13 13 13 , 16 16 16 , 31 31 31 and 23 23 23 , respectively. The rows of Γ ~ B \widetilde{\Gamma}^{B} Γ B indexed by B B B are
Γ B = ( − 1 8 5 8 1 2 5 8 − 1 8 1 2 ) , \Gamma^{B}=
\begin{pmatrix}
-\frac{1}{8} & \frac{5}{8} & \frac{1}{2}\\
\frac{5}{8} & -\frac{1}{8} & \frac{1}{2}
\end{pmatrix}, Γ B = ( − 8 1 8 5 8 5 − 8 1 2 1 2 1 ) ,
and the aggregated matrix is
I − Γ B M f = ( 1 2 − 1 2 − 1 2 1 2 ) . I-\Gamma^{B}M_f=
\begin{pmatrix}
\frac{1}{2} & -\frac{1}{2}\\
-\frac{1}{2} & \frac{1}{2}
\end{pmatrix}. I − Γ B M f = ( 2 1 − 2 1 − 2 1 2 1 ) .
with both principal cofactors equal to 1 2 \frac{1}{2} 2 1 . In the base { 1 , 2 , 3 } \{1,2,3\} { 1 , 2 , 3 } , Γ ⋅ 4 { 1 , 2 , 3 } = ( 8 13 , − 1 13 , 1 13 ) T \Gamma^{\{1,2,3\}}_{\cdot4} = \left(\frac{8}{13},-\frac{1}{13},\frac{1}{13}\right)^{\mathsf{T}} Γ ⋅ 4 { 1 , 2 , 3 } = ( 13 8 , − 13 1 , 13 1 ) T and Γ ⋅ 5 { 1 , 2 , 3 } = ( 5 13 , 14 13 , 12 13 ) T \Gamma^{\{1,2,3\}}_{\cdot5} = \left(\frac{5}{13},\frac{14}{13},\frac{12}{13}\right)^{\mathsf{T}} Γ ⋅ 5 { 1 , 2 , 3 } = ( 13 5 , 13 14 , 13 12 ) T . The order weights are
ω f ( 3 , 4 , 5 ) = 1 ⋅ ( − 1 13 ) = − 1 13 , ω f ( 3 , 5 , 4 ) = 5 8 ⋅ 12 13 = 15 26 , ω f ( 5 , 3 , 4 ) = 1 2 ⋅ 1 = 1 2 . \omega_f(3,4,5)=1\cdot\left(-\frac{1}{13}\right)=-\frac{1}{13},\qquad\omega_f(3,5,4)=\frac{5}{8}\cdot\frac{12}{13}=\frac{15}{26},\qquad\omega_f(5,3,4)=\frac{1}{2}\cdot1=\frac{1}{2}. ω f ( 3 , 4 , 5 ) = 1 ⋅ ( − 13 1 ) = − 13 1 , ω f ( 3 , 5 , 4 ) = 8 5 ⋅ 13 12 = 26 15 , ω f ( 5 , 3 , 4 ) = 2 1 ⋅ 1 = 2 1 .
The first two orders enter at the root 1 1 1 and the third at 2 2 2 , so the order masses are − 1 13 + 15 26 = 1 2 -\frac{1}{13}+\frac{15}{26}=\frac{1}{2} − 13 1 + 26 15 = 2 1 at r = 1 r=1 r = 1 and 1 2 \frac{1}{2} 2 1 at r = 2 r=2 r = 2 , as Theorem 4.4 asserts. In particular, the check at r = 1 r=1 r = 1 balances a negative weight against a weight whose factors come from two different bases.
Forest sums and linear extensions
Remark SM2.1 (Forest sums). In general, by the all-minors matrix-tree theorem [5 ] , det L [ U ] \det L[U] det L [ U ] is a signed sum over the forests rooted at U c U^{c} U c . Hence Assumption 4.1 asks that these forest sums do not vanish.
By Cramer’s rule and the all-minors matrix-tree theorem [5 ] , each entry Γ u v U \Gamma^{U}_{uv} Γ uv U , u ∈ U u\in U u ∈ U , v ∈ U c v\in U^{c} v ∈ U c , is the signed sum over the forests rooted at U c U^{c} U c in which u u u lies in the tree of v v v , divided by the signed sum over all forests rooted at U c U^{c} U c , each forest counted by the product of the off-diagonal entries of − L -L − L along its arcs. In the chain instance, the signs are positive, and this is the harmonic tree formula [21 , 23 ] . On the right, the matrix-tree theorem [5 , 27 ] gives
det ( ( I − Γ B M f ) [ B ∖ { r } ] ) = ∑ T ∏ u ∈ B ∖ { r } ( Γ B M f ) u , T ( u ) . (31) \det\left((I-\Gamma^{B}M_f)[B\setminus\{r\}]\right)=\sum_T\prod_{u\in B\setminus\{r\}}(\Gamma^{B}M_f)_{u,T(u)}. \tag*{(31)} det ( ( I − Γ B M f ) [ B ∖ { r }] ) = T ∑ u ∈ B ∖ { r } ∏ ( Γ B M f ) u , T ( u ) . (31)
where the sum is over arborescences T T T on B B B rooted at r r r , with T ( u ) T(u) T ( u ) the parent of u u u . The order-mass identity therefore equates the total weight of growth orders whose first vertex is a child of r r r with the total weight of these arborescences. No weight-preserving correspondence between the two index sets is known: the sum defining g r ( B , f ) g_r(B,f) g r ( B , f ) has ∣ { τ ∈ S B ( f ) : f ( τ 1 ) = r } ∣ \left|\{\tau\in S_B(f):f(\tau_1)=r\}\right| ∣ { τ ∈ S B ( f ) : f ( τ 1 ) = r } ∣ terms, whereas the expansion (SM2.1) has at most ∣ B ∣ ∣ B ∣ − 2 |B|^{|B|-2} ∣ B ∣ ∣ B ∣ − 2 .
We now specialize the identity to harmonic extensions expressed through positive vertex weights. Recall that successive sampling without replacement from B c B^c B c with positive weights p p p draws the ordering τ \tau τ with probability ∏ ℓ = 1 k p τ ℓ / p ( { τ ℓ , … , τ k } ) \prod_{\ell=1}^{k}p_{\tau_\ell}/p(\{\tau_\ell,\ldots,\tau_k\}) ∏ ℓ = 1 k p τ ℓ / p ({ τ ℓ , … , τ k }) , which is the Plackett–Luce law [15 , 22 ] . The following corollary expresses the order-mass identity directly in these weights.
Corollary SM2.2 (Successive sampling on forests). Let f f f be a B B B -parent map with root blocks D u D_u D u , let p v > 0 p_v>0 p v > 0 for v ∈ B c v\in B^c v ∈ B c , write p ( J ) : = ∑ v ∈ J p v p(J):=\sum_{v\in J}p_v p ( J ) := ∑ v ∈ J p v for J ⊆ B c J\subseteq B^c J ⊆ B c , and for a growth order τ \tau τ let B ℓ B_\ell B ℓ be its bases. Then, for every r ∈ B r\in B r ∈ B ,
∑ τ ∈ S B ( f ) : f ( τ 1 ) = r ∏ 1 ≤ ℓ ≤ k − 1 : f ( τ ℓ + 1 ) ≠ τ ℓ p τ ℓ p ( B ℓ − 1 c ) = p ( D r ) p ( B c ) . (32) \sum_{\tau\in S_B(f):\,f(\tau_1)=r}\ \prod_{\substack{1\leq\ell\leq k-1:\\ f(\tau_{\ell+1})\ne\tau_\ell}}\frac{p_{\tau_\ell}}{p(B^c_{\ell-1})}=\frac{p(D_r)}{p(B^c)}. \tag*{(32)} τ ∈ S B ( f ) : f ( τ 1 ) = r ∑ 1 ≤ ℓ ≤ k − 1 : f ( τ ℓ + 1 ) = τ ℓ ∏ p ( B ℓ − 1 c ) p τ ℓ = p ( B c ) p ( D r ) . (32) In particular, with B = { r } B=\{r\} B = { r } and p p p uniform on B c B^c B c ,
∑ τ ∈ S { r } ( f ) ∏ 1 ≤ ℓ ≤ k − 1 : τ ℓ = f ( τ ℓ + 1 ) ( k − ℓ + 1 ) = k ! . (33) \sum_{\tau\in S_{\{r\}}(f)}\ \prod_{\substack{1\leq\ell\leq k-1:\\ \tau_\ell=f(\tau_{\ell+1})}}(k-\ell+1)=k!. \tag*{(33)} τ ∈ S { r } ( f ) ∑ 1 ≤ ℓ ≤ k − 1 : τ ℓ = f ( τ ℓ + 1 ) ∏ ( k − ℓ + 1 ) = k ! . (33)
Proof of Corollary SM2.2. We extend p p p to V V V by positive values on B B B and normalize its sum to one, which leaves both sides of (SM2.2) unchanged. We set L : = I − 1 p T L:=I-\mathbf{1}p^{\mathsf{T}} L := I − 1 p T . Then L L L has zero row sums, det L [ U ] = 1 − p ( U ) > 0 \det L[U]=1-p(U)>0 det L [ U ] = 1 − p ( U ) > 0 for every proper U U U by (2.1), and L [ U ] 1 = ( 1 − p ( U ) ) 1 L[U]\mathbf{1}=(1-p(U))\mathbf{1} L [ U ] 1 = ( 1 − p ( U )) 1 . Hence, for v ∈ U c v\in U^c v ∈ U c ,
Γ ⋅ v U = p v L [ U ] − 1 1 = p v p ( U c ) 1. \Gamma^U_{\cdot v}=p_vL[U]^{-1}\mathbf{1}=\frac{p_v}{p(U^c)}\mathbf{1}. Γ ⋅ v U = p v L [ U ] − 1 1 = p ( U c ) p v 1 .
Therefore, the factor at ℓ \ell ℓ is p τ ℓ / p ( B ℓ − 1 c ) p_{\tau_\ell}/p(B^c_{\ell-1}) p τ ℓ / p ( B ℓ − 1 c ) when f ( τ ℓ + 1 ) ≠ τ ℓ f(\tau_{\ell+1}) \ne\tau_\ell f ( τ ℓ + 1 ) = τ ℓ , and 1 1 1 otherwise. On the right, with q u : = p ( D u ) / p ( B c ) q_u := p(D_u)/p(B^c) q u := p ( D u ) / p ( B c ) for u ∈ B u \in B u ∈ B , we have Γ B M f = 1 q ⊤ \Gamma^B M_f = \mathbf{1}q^\top Γ B M f = 1 q ⊤ and, by (3) ,
det ( ( I − 1 q ⊤ ) [ B ∖ { r } ] ) = 1 − ∑ u ≠ r q u = q r , \det\left((I-\mathbf{1}q^\top)[B\setminus\{r\}]\right)=1-\sum_{u\ne r}q_u=q_r, det ( ( I − 1 q ⊤ ) [ B ∖ { r }] ) = 1 − u = r ∑ q u = q r ,
so Theorem 4.4 gives (SM2.2). For uniform p p p and B = { r } B=\{r\} B = { r } , we multiply each summand by k ! = ∏ ℓ = 1 k − 1 ( k − ℓ + 1 ) k! = \prod_{\ell=1}^{k-1}(k-\ell+1) k ! = ∏ ℓ = 1 k − 1 ( k − ℓ + 1 ) to obtain (SM2.3).
Remark SM2.3 (Linear extensions). In (SM2.3), the weight of a linear extension depends on the positions at which a vertex is immediately followed by its child. For example, a star has k ! k! k ! linear extensions of weight one, and a path has one, of weight k ! k! k ! .
Completion weights
Remark SM3.1 (The contracted chain). The sum of tree weights over completions is a weighted analogue of the number of spanning trees containing a fixed forest. Such tree marginals can be computed by contraction [17 ] , which also appears in the two-stage samplers of [19 ] . In our setting, the matrix
Q : = P ∗ [ B ] + P ∗ [ B , B c ] M f Q := P^*[B] + P^*[B,B^c]M_f Q := P ∗ [ B ] + P ∗ [ B , B c ] M f
is a transition matrix on B B B . After one step of the reversed chain from a root, we record the root of the tree containing the destination. This construction gives a second evaluation of the completion weight.
To derive this evaluation, consider an added edge into a root u ≠ r u\ne r u = r . If its parent x x x lies in the tree of u ′ u' u ′ , the sum of its weights over that tree is ∑ x π x P x u = π u Q u u ′ \sum_x \pi_x P_{xu}=\pi_u Q_{uu'} ∑ x π x P xu = π u Q u u ′ . Group the completions by the tree obtained after contracting each component of F 0 F_0 F 0 to its root. For each contracted tree, summing over the possible endpoints of its added edges gives the corresponding product of these flows. The matrix-tree theorem [5 , 27 ] , applied to I − Q = L [ B ] + L [ B , B c ] M f I-Q=L[B]+L[B,B^c]M_f I − Q = L [ B ] + L [ B , B c ] M f , therefore gives (6.4). In particular, φ r ( F 0 ) / ∏ u ∈ B ∖ { r } π u \varphi_r(F_0)/\prod_{u\in B\setminus\{r\}}\pi_u φ r ( F 0 ) / ∏ u ∈ B ∖ { r } π u is the principal cofactor at r r r of I − Q I-Q I − Q . These cofactors form an unnormalized invariant measure of Q Q Q by Lemma 2.1(a). For a fixed seed, larger cofactors correspond to larger completion weights.
To relate this construction to the order masses, compare Q Q Q with Γ B M f \Gamma^B M_f Γ B M f from Remark 4.5. The latter records the tree entered when the reversed chain first exits B B B , after any number of steps inside B B B , whereas Q Q Q records one step followed by aggregation. The two matrices satisfy I − Q = L [ B ] ( I − Γ B M f ) I-Q=L[B](I-\Gamma^B M_f) I − Q = L [ B ] ( I − Γ B M f ) . The product rule for adjugates then gives the cofactor row of I − Q I-Q I − Q as det L [ B ] g ( B , f ) ⊤ L [ B ] − 1 \det L[B]\,g(B,f)^\top L[B]^{-1} det L [ B ] g ( B , f ) ⊤ L [ B ] − 1 , in agreement with (6.3) and (6.4). Thus the order masses are the cofactors of I − Γ B M f I-\Gamma^B M_f I − Γ B M f , whereas the completion weights are the cofactors of I − Q I-Q I − Q multiplied, at each root r r r , by ∏ u ∈ B ∖ { r } π u \prod_{u\in B\setminus\{r\}}\pi_u ∏ u ∈ B ∖ { r } π u .
Remark SM3.2 (Computing the completion weight). For a fixed chain and root set, form L [ B ] L[B] L [ B ] and L [ B , B c ] L[B,B^c] L [ B , B c ] once. Writing b : = ∣ B ∣ b:=|B| b := ∣ B ∣ and k : = ∣ B c ∣ k:=|B^c| k := ∣ B c ∣ , each forest then requires O ( b k ) O(bk) O ( bk ) operations to assemble L [ B ] + L [ B , B c ] M f L[B]+L[B,B^c]M_f L [ B ] + L [ B , B c ] M f and O ( b 3 ) O(b^3) O ( b 3 ) to evaluate its principal minor. Forests with the same root blocks share this calculation.
The identity for real aggregations
The order-mass identity depends on the forest only through its root indicator. We now extend it to any real aggregation with unit row sums, remove the root set by doubling the vertex set, and quantify the defect when one aggregation row does not sum to one.
In this section, for U ⊊ V U \subsetneq V U ⊊ V with det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 ,
Γ U = − L [ U ] − 1 L [ U , U c ] ∈ R U × U c , Γ ~ U = ( Γ U I ∣ U c ∣ ) ∈ R V × U c . \Gamma^{U}=-L[U]^{-1}L[U,U^{c}] \in\mathbb{R}^{U \times U^{c}}, \qquad\widetilde{\Gamma}^{U}=\begin{pmatrix}\Gamma^{U}\\ I_{\lvert U^{c}\rvert}\end{pmatrix} \in\mathbb{R}^{V \times U^{c}}. Γ U = − L [ U ] − 1 L [ U , U c ] ∈ R U × U c , Γ U = ( Γ U I ∣ U c ∣ ) ∈ R V × U c .
Assumption SM4.1 (All bases). L 1 = 0 L\mathbf{1}=0 L 1 = 0 , and det L [ U ] ≠ 0 \det L[U] \ne0 det L [ U ] = 0 for every U U U with B ⊆ U ⊊ V B \subseteq U \subsetneq V B ⊆ U ⊊ V .
Corollary SM4.2 (Real aggregation). Let B ⊊ V B \subsetneq V B ⊊ V be nonempty, k : = ∣ B c ∣ k := \lvert B^{c}\rvert k := ∣ B c ∣ , let L L L satisfy Assumption SM4.1, and let M ∈ R B c × B M \in\mathbb{R}^{B^{c} \times B} M ∈ R B c × B satisfy M 1 = 1 M\mathbf{1}=1 M 1 = 1 . Then, for every r ∈ B r \in B r ∈ B ,
∑ τ M τ 1 r ∏ ℓ = 1 k − 1 ∑ u ∈ B M τ ℓ + 1 u Γ u τ ℓ B ℓ − 1 = det ( ( I − Γ B M ) [ B ∖ { r } ] ) , (34) \sum_{\tau} M_{\tau_{1}r}\prod_{\ell=1}^{k-1}\sum_{u\in B}M_{\tau_{\ell+1}u}\Gamma^{B_{\ell-1}}_{u\tau_{\ell}}=\det\left((I-\Gamma^{B}M)[B\setminus\{r\}]\right), \tag*{(34)} τ ∑ M τ 1 r ℓ = 1 ∏ k − 1 u ∈ B ∑ M τ ℓ + 1 u Γ u τ ℓ B ℓ − 1 = det ( ( I − Γ B M ) [ B ∖ { r }] ) , (34) the outer sum over all k ! k! k ! orderings τ \tau τ of B c B^{c} B c , with B ℓ : = B ∪ { τ 1 , … , τ ℓ } B_{\ell}:=B\cup\{\tau_{1},\ldots,\tau_{\ell}\} B ℓ := B ∪ { τ 1 , … , τ ℓ } .
Proof. We first consider the case in which every row of M M M is a standard basis vector, M v ⋅ = e f ( v ) M_{v\cdot}=e_{f(v)} M v ⋅ = e f ( v ) for a map f : B c → B f:B^{c}\to B f : B c → B . Then M M M is the root indicator of the B B B -parent map f f f , whose growth orders are all orderings of B c B^{c} B c and whose bases are all sets B ⊆ U ⊊ V B\subseteq U\subsetneq V B ⊆ U ⊊ V . The left side of (SM4.1) is g r ( B , f ) g_r(B,f) g r ( B , f ) , since M τ 1 r = 1 ( f ( τ 1 ) = r ) M_{\tau_1r}=1(f(\tau_1)=r) M τ 1 r = 1 ( f ( τ 1 ) = r ) and the inner sum is Γ ~ f ( τ ℓ + 1 ) τ ℓ B ℓ − 1 \widetilde{\Gamma}^{B_{\ell-1}}_{f(\tau_{\ell+1})\tau_\ell} Γ f ( τ ℓ + 1 ) τ ℓ B ℓ − 1 , so (SM4.1) is Theorem 4.4.
For general M M M , we induct on the number of rows that are not standard basis vectors. We first show that both sides of (SM4.1) are affine functions of any one row m : = M v ⋅ m:=M_{v\cdot} m := M v ⋅ when the other rows are fixed. On the left, each term contains the row v v v exactly once, as M τ 1 r M_{\tau_1r} M τ 1 r if τ 1 = v \tau_1=v τ 1 = v , and in the inner sum at the ℓ \ell ℓ with τ ℓ + 1 = v \tau_{\ell+1}=v τ ℓ + 1 = v otherwise. On the right, we have I − Γ B M = N 0 − Γ ⋅ v B m T I-\Gamma^{B}M=N_0-\Gamma^{B}_{\cdot v}m^{\mathsf T} I − Γ B M = N 0 − Γ ⋅ v B m T with N 0 N_0 N 0 independent of m m m , and a determinant whose columns are affine in m m m along one fixed vector is affine in m m m , since the terms with two such columns vanish. Now suppose that the row v v v is not a standard basis vector. Then the difference of the two sides, as a function of m m m on the hyperplane { 1 T m = 1 } \{\mathbf{1}^{\mathsf T}m=1\} { 1 T m = 1 } , is affine and vanishes at the e u e_u e u , u ∈ B u\in B u ∈ B , by the induction hypothesis. Since m = ∑ u m u e u m=\sum_u m_u e_u m = ∑ u m u e u with ∑ u m u = 1 \sum_u m_u=1 ∑ u m u = 1 , the difference at m m m , by affinity, is the weighted sum of its values at e u e_u e u , with weights m u m_u m u , and is therefore zero. This completes the proof.
The aggregation identity also yields a formula without a prescribed root set.
Proposition SM4.3 (The identity without a root set). Let L ∈ R V × V L\in\mathbb{R}^{V\times V} L ∈ R V × V satisfy L 1 = 0 L\mathbf{1}=0 L 1 = 0 and det L [ U ] ≠ 0 \det L[U]\ne0 det L [ U ] = 0 for every U U U with ∅ ≠ U ⊊ V \varnothing\ne U\subsetneq V ∅ = U ⊊ V , and let M ∈ R V × V M\in\mathbb{R}^{V\times V} M ∈ R V × V have unit row sums. Then, for every u ∈ V u\in V u ∈ V ,
∑ τ M τ 1 u ∏ ℓ = 1 n − 1 ∑ v ∈ V M τ ℓ + 1 v Γ ~ v τ ℓ U ℓ − 1 = det ( ( I − M ) [ V ∖ { u } ] ) , (35) \sum_{\tau}M_{\tau_1u}\prod_{\ell=1}^{n-1}\sum_{v\in V}M_{\tau_{\ell+1}v}\widetilde{\Gamma}^{U_{\ell-1}}_{v\tau_\ell}=\det\left((I-M)[V\setminus\{u\}]\right), \tag*{(35)} τ ∑ M τ 1 u ℓ = 1 ∏ n − 1 v ∈ V ∑ M τ ℓ + 1 v Γ v τ ℓ U ℓ − 1 = det ( ( I − M ) [ V ∖ { u }] ) , (35) the sum over all n ! n! n ! orderings τ \tau τ of V V V , with U ℓ : = { τ 1 , … , τ ℓ } U_\ell:=\{\tau_1,\ldots,\tau_\ell\} U ℓ := { τ 1 , … , τ ℓ } . The factor ℓ = 1 \ell=1 ℓ = 1 is M τ 2 τ 1 M_{\tau_2\tau_1} M τ 2 τ 1 , since Γ ~ ∅ = I \widetilde{\Gamma}^{\varnothing}=I Γ ∅ = I .
Proof. The key step is to double the vertex set. Let B : = { 1 ′ , … , n ′ } B:=\{1',\ldots,n'\} B := { 1 ′ , … , n ′ } be a copy of V V V and V ′ : = B ⊔ V V':=B\sqcup V V ′ := B ⊔ V . In the block order ( B , V ) (B,V) ( B , V ) , we let L ′ : = ( I n − I n 0 L ) L':=\begin{pmatrix}I_n&-I_n\\0&L\end{pmatrix} L ′ := ( I n 0 − I n L ) , and read M M M as an aggregation of V V V into B B B . Then Assumption SM4.1 holds for ( L ′ , B ) (L',B) ( L ′ , B ) . Indeed, L ′ 1 = 0 L'\mathbf{1}=0 L ′ 1 = 0 , block triangularity gives det L ′ [ B ∪ U ] = det L [ U ] ≠ 0 \det L'[B\cup U]=\det L[U]\ne0 det L ′ [ B ∪ U ] = det L [ U ] = 0 for nonempty proper U ⊂ V U\subset V U ⊂ V , and L ′ [ B ] = I n L'[B]=I_n L ′ [ B ] = I n covers U = ∅ U=\varnothing U = ∅ . It remains to identify the two sides of (SM4.1) for ( L ′ , B , M ) (L',B,M) ( L ′ , B , M ) .
On the right side of (SM4.1), the matrix Γ B \Gamma^{B} Γ B of B B B for L ′ L' L ′ is − L ′ [ B ] − 1 L ′ [ B , V ] = I -L'[B]^{-1}L'[B,V]=I − L ′ [ B ] − 1 L ′ [ B , V ] = I , so the aggregated matrix is I − M I-M I − M , whose cofactor at u ′ u' u ′ is the right side of (SM4.2).
On the left side of (SM4.1), for a proper U ⊂ V U\subset V U ⊂ V and w ∈ U c w\in U^c w ∈ U c , the harmonic extension x x x of e w e_w e w into B ∪ U B\cup U B ∪ U for L ′ L' L ′ is defined by x ∣ V ∖ U = e w ∣ V ∖ U x|_{V\setminus U}=e_w|_{V\setminus U} x ∣ V ∖ U = e w ∣ V ∖ U , x v ′ = x v x_{v'}=x_v x v ′ = x v for v ∈ V v\in V v ∈ V , and L [ U , V ] x ∣ V = 0 L[U,V]x|_V=0 L [ U , V ] x ∣ V = 0 . Uniqueness gives x ∣ V = γ U ( e w ) x|_{V}=\gamma^{U}(e_w) x ∣ V = γ U ( e w ) by Lemma 2.3, which for U = ∅ U=\varnothing U = ∅ reads x ∣ V = e w x|_{V}=e_w x ∣ V = e w , and x ∣ B x|_{B} x ∣ B is its copy. For U = U ℓ − 1 U=U_{\ell-1} U = U ℓ − 1 and w = τ ℓ w=\tau_\ell w = τ ℓ each inner factor of (SM4.1) becomes ∑ v ∈ V M τ ℓ + 1 v Γ ~ v τ ℓ U ℓ − 1 \sum_{v\in V}M_{\tau_{\ell+1}v}\widetilde{\Gamma}^{U_{\ell-1}}_{v\tau_\ell} ∑ v ∈ V M τ ℓ + 1 v Γ v τ ℓ U ℓ − 1 , and the initial factor is M τ 1 u ′ = M τ 1 u M_{\tau_1u'}=M_{\tau_1u} M τ 1 u ′ = M τ 1 u . Therefore, Corollary SM4.2 for ( L ′ , B , M ) (L',B,M) ( L ′ , B , M ) at u ′ u' u ′ is exactly (SM4.2). This completes the proof.
In this construction, Γ B = I \Gamma^{B}=I Γ B = I , so the aggregated matrix is I − M I-M I − M for every L L L . The matrix L L L enters only through the harmonic extensions inside V V V on the left side of (SM4.2).
The affinity in the proof of Corollary SM4.2 also gives the exact effect of a row with another sum.
Proposition SM4.4 (The defect of a non-unit row). Let L L L satisfy Assumption SM4.1, fix v ∈ B c v\in B^{c} v ∈ B c and r ∈ B r\in B r ∈ B , and let M ∈ R B c × B M\in\mathbb{R}^{B^{c}\times B} M ∈ R B c × B have unit row sums in every row other than the row v v v . As functions of m : = M v ⋅ m:=M_{v\cdot} m := M v ⋅ , the two sides of (SM4.1) satisfy
LHS ( m ) − RHS ( m ) = ( 1 T m − 1 ) ⋅ det ( ( I − Γ B M 0 ) [ B ∖ { r } ] ) \operatorname{LHS}(m)-\operatorname{RHS}(m)=(\mathbf{1}^{\mathsf{T}}m-1)\cdot\det\left((I-\Gamma^{B}M^{0})[B\setminus\{r\}]\right) LHS ( m ) − RHS ( m ) = ( 1 T m − 1 ) ⋅ det ( ( I − Γ B M 0 ) [ B ∖ { r }] ) where M 0 M^{0} M 0 is M M M with its row v v v replaced by 0 \mathbf{0} 0 .
Proof. The difference h : = LHS − RHS h:=\operatorname{LHS}-\operatorname{RHS} h := LHS − RHS is affine in m m m , say h ( m ) = a T m + a 0 h(m)=a^{\mathsf{T}}m+a_0 h ( m ) = a T m + a 0 , and vanishes on { 1 T m = 1 } \{\mathbf{1}^{\mathsf{T}}m=1\} { 1 T m = 1 } by Corollary SM4.2. For m 0 m_0 m 0 on that hyperplane and z z z with 1 T z = 0 \mathbf{1}^{\mathsf{T}}z=0 1 T z = 0 , we have a T z = h ( m 0 + z ) − h ( m 0 ) = 0 a^{\mathsf{T}}z=h(m_0+z)-h(m_0)=0 a T z = h ( m 0 + z ) − h ( m 0 ) = 0 , so a = c 1 a=c\mathbf{1} a = c 1 for a scalar c c c , and h ( m 0 ) = 0 h(m_0)=0 h ( m 0 ) = 0 gives a 0 = − c a_0=-c a 0 = − c . At m = 0 m=0 m = 0 , every term of the left side contains a factor linear in m m m , so LHS ( 0 ) = 0 \operatorname{LHS}(0)=0 LHS ( 0 ) = 0 and c = − h ( 0 ) = RHS ( 0 ) c=-h(0)=\operatorname{RHS}(0) c = − h ( 0 ) = RHS ( 0 ) , which is the displayed cofactor. This completes the proof.
Hence, for fixed other rows and a fixed root r r r , (SM4.1) holds for a row with 1 T m ≠ 1 \mathbf{1}^{\mathsf{T}}m\ne1 1 T m = 1 if and only if the cofactor det ( ( I − Γ B M 0 ) [ B ∖ { r } ] ) = 0 \det((I-\Gamma^{B}M^{0})[B\setminus\{r\}])=0 det (( I − Γ B M 0 ) [ B ∖ { r }]) = 0 . Unit row sums are therefore sufficient for every configuration and every root, and they cannot be dropped in general, but they are not necessary for a fixed configuration and root. For example, let V = { 1 , 2 , 3 , 4 } V=\{1,2,3,4\} V = { 1 , 2 , 3 , 4 } , B = { 1 , 2 } B=\{1,2\} B = { 1 , 2 } , L = I − 11 T / 4 L=I-\mathbf{1}\mathbf{1}^{\mathsf{T}}/4 L = I − 1 1 T /4 , M 3 ⋅ = ( a , b ) M_{3\cdot}=(a,b) M 3 ⋅ = ( a , b ) and M 4 ⋅ = ( − 1 , 2 ) M_{4\cdot}=(-1,2) M 4 ⋅ = ( − 1 , 2 ) . Then every entry of Γ B \Gamma^{B} Γ B equals 1 / 2 1/2 1/2 , the cofactor vanishes at r = 1 r=1 r = 1 , and both sides of (SM4.1) equal − b / 2 -b/2 − b /2 at r = 1 r=1 r = 1 for all a , b a,b a , b . At r = 2 r=2 r = 2 , the cofactor is 3 / 2 3/2 3/2 , and the difference of the two sides is 3 / 2 ( a + b − 1 ) 3/2(a+b-1) 3/2 ( a + b − 1 ) .
The zero row sums of L L L cannot be dropped either. For example, for ∣ B ∣ = 2 |B|=2 ∣ B ∣ = 2 , ∣ B c ∣ = 1 |B^{c}|=1 ∣ B c ∣ = 1 and f ( w ) = 1 f(w)=1 f ( w ) = 1 , the cofactor at the root 2 2 2 is 1 − Γ 1 w B 1-\Gamma^{B}_{1w} 1 − Γ 1 w B , which vanishes by (2.2), as the left side of (4.2) at r = 2 r=2 r = 2 does. Without zero row sums in the rows B B B , however, the entry Γ 1 w B = − ( L [ B ] − 1 L [ B , { w } ] ) 1 \Gamma^{B}_{1w}=-(L[B]^{-1}L[B,\{w\}])_{1} Γ 1 w B = − ( L [ B ] − 1 L [ B , { w }] ) 1 can take any value, so the cofactor need not vanish.
Randomizing the seed does not remove the tilt
By Theorem 6.5, the stopped covering walk samples the weight-proportional law tilted by the completion weight. A natural question is whether a mixture over seeds removes the tilt. We now show that it does not in general.
Proposition SM5.1 (No seed mixture is unbiased in general). Let P P P be irreducible and stochastic with stationary distribution π \pi π , let λ \lambda λ be as in (3.4), let B ⊊ V B\subsetneq V B ⊊ V be nonempty, and for r ∈ B r\in B r ∈ B let P r \mathbb{P}_r P r be the law of the first-entrance forest of the stopped covering walk from r r r . For every c ∈ R B c\in\mathbb{R}^{B} c ∈ R B and every F 0 ∈ F B F_0\in\mathcal{F}_{B} F 0 ∈ F B with parent map f f f ,
∑ r ∈ B c r P r ( F B = F 0 ) = w ( F 0 ) ( 1 T λ ) ∏ v ∈ V π v ∑ r ∈ B c r φ r ( F 0 ) . (36) \sum_{r\in B}c_r\mathbb{P}_r(F_B=F_0)=\frac{w(F_0)}{(\mathbf{1}^{\mathsf{T}}\lambda)\prod_{v\in V}\pi_v}\sum_{r\in B}c_r\varphi_r(F_0). \tag*{(36)} r ∈ B ∑ c r P r ( F B = F 0 ) = ( 1 T λ ) ∏ v ∈ V π v w ( F 0 ) r ∈ B ∑ c r φ r ( F 0 ) . (36) For the chain of Example SM1.1 with B = { 1 , 2 } B=\{1,2\} B = { 1 , 2 } , no c ≠ 0 c\ne0 c = 0 makes the left side proportional to the forest weight on F B \mathcal{F}_{B} F B .
Proof. Formula (SM5.1) follows immediately from (6.2). In the example, every forest has positive weight, so proportionality to the forest weight forces ∑ r c r φ r ( F 0 ) \sum_r c_r\varphi_r(F_0) ∑ r c r φ r ( F 0 ) to take the same value for every F 0 ∈ F B F_0 \in\mathcal{F}_B F 0 ∈ F B . According to Table SM1, ( φ 1 , φ 2 ) (\varphi_1,\varphi_2) ( φ 1 , φ 2 ) equals ( 1 5 , 1 20 ) \left(\frac{1}{5},\frac{1}{20}\right) ( 5 1 , 20 1 ) , ( 1 20 , 1 5 ) \left(\frac{1}{20},\frac{1}{5}\right) ( 20 1 , 5 1 ) and ( 3 20 , 3 20 ) \left(\frac{3}{20},\frac{3}{20}\right) ( 20 3 , 20 3 ) at f 1 f_1 f 1 , f 2 f_2 f 2 and f 3 f_3 f 3 , respectively. Equating the values at f 1 f_1 f 1 and f 2 f_2 f 2 gives c 1 = c 2 = : c c_1=c_2=:c c 1 = c 2 =: c . The values at f 1 f_1 f 1 and f 3 f_3 f 3 are then ( 1 5 + 1 20 ) c = c 4 \left(\frac{1}{5}+\frac{1}{20}\right)c=\frac{c}{4} ( 5 1 + 20 1 ) c = 4 c and ( 3 20 + 3 20 ) c = 3 c 10 \left(\frac{3}{20}+\frac{3}{20}\right)c=\frac{3c}{10} ( 20 3 + 20 3 ) c = 10 3 c , forcing c = 0 c=0 c = 0 . This completes the proof.
To see where the tilt comes from, let B = { r , u } B=\{r,u\} B = { r , u } . A completion of F 0 F_0 F 0 at r r r adds one edge into u u u from the tree of r r r , so φ r ( F 0 ) = ∑ x ∈ D r ∪ { r } π x P x u \varphi_r(F_0)=\sum_{x\in D_r\cup\{r\}}\pi_xP_{xu} φ r ( F 0 ) = ∑ x ∈ D r ∪ { r } π x P xu is the stationary flow from the tree of r r r into u u u . Hence the walk from r r r favors the forests whose tree of r r r sends much stationary flow into u u u , and randomizing the seed only averages two such preferences.
Lean formalization
We formalize the order-mass identity, the Aldous-Broder theorem, and the stopped-forest law in Lean 4 [6 ] with mathlib [26 ] (toolchain v4.30.0, mathlib v4.30.0), in the directory EAB/Paper of the repository https://github.com/YuZh98/aldous-broder-lean. The development imports mathlib only, follows the proofs of this article, and contains no sorry. The four endpoint theorems order_mass_identity, Chain.aldous_broder, Chain.aldous_broder_normalized and Chain.stopped_forest_law, together with their principal proof obligations, depend only on the axioms propext, Classical.choice and Quot.sound, which lake env lean AxiomCheck.lean prints after lake build. Table SM4 lists the correspondence. All declarations are in the namespace EAB.Paper.
Table SM4. Results and their Lean declarations.
The Lean statements differ from the text in the following modeling choices. The law of the chain started at r r r is mathlib’s Ionescu-Tulcea trajectory measure (Chain.chainLaw), checked against the cylinder formula (Chain.chainLaw_cylinder), and probabilities are extended non-negative reals. The forest event requires the walk to visit every state, which has probability one (Chain.ae_hits_all), and its first-entrance parents to equal f f f . This is the event { F B = F 0 } \{F_B = F_0\} { F B = F 0 } up to a null set. The stationary distribution enters as a hypothesis that π \pi π is positive, normalized and invariant, and Chain.IsStationary.cofactorVec_eq proves that such a π \pi π is the normalized cofactor vector, hence unique. The standing assumption n ≥ 2 n \ge2 n ≥ 2 appears as 2 ≤ Fintype.card V 2 \le\texttt{Fintype.card V} 2 ≤ Fintype.card V . The formal version of Theorem 4.4 is stated over an arbitrary field, and Chain.stopped_forest_law holds for every parent assignment, including those of weight zero. It states (29) together with the law obtained by substituting (29) into (28) . Lemma 2.6 is formalized for the children of roots, which is the case the proof uses, and Foundation.one_vertex_transfer allows a fold along any weights that sum to one, of which Lemma 5.2 is the fold into a single root.
Proposition 3.4 is formalized for growth orders in its general form (11) . Its statement for the other orderings and the simplification (12) are not stated separately. We have not formalized Theorem 6.2 , Corollary 6.6, Corollary SM2.2, the results of Sections SM4 and SM5, and the numerical experiments.
Numerical illustration
We use small finite examples to examine three consequences of the stopped-forest law: its distance from the weight-proportional law, the target mass lost through incomplete support, and the variability of importance-corrected estimates. We generate 30 chains in each of three families on V = { 1 , … , 7 } V = \{1,\ldots,7\} V = { 1 , … , 7 } . Complete enumeration of the forest space gives both laws without sampling. The experiments illustrate the formulas and check their implementation. Estimating the typical bias on larger graphs is beyond their scope.
Setting
Table SM5 specifies the dense, graph, and drift families. For every chain, we use the nested root sets B = { 1 } , { 1 , 2 } , … , { 1 , … , 6 } B = \{1\}, \{1,2\}, \ldots, \{1,\ldots,6\} B = { 1 } , { 1 , 2 } , … , { 1 , … , 6 } with seed 1.
In the drift family, changing the holding weights leaves the jump chain unchanged and multiplies every off-diagonal stationary flow π u P u v \pi_u P_{uv} π u P uv by a common constant. The 30 drift chains therefore share the same forest laws and give one example for the distributional comparisons, which we display once.
Table SM5. The three families of chains on V = { 1 , … , 7 } V = \{1,\ldots,7\} V = { 1 , … , 7 } , with 30 chains each.
For each chain and root set, we enumerate the parent maps in F B \mathcal{F}_B F B . We compute the order masses from the principal cofactors, then obtain the stopped-walk law q A q_A q A with seed 1 from (28) . The comparison law is q W ∝ w q_W \propto w q W ∝ w . We measure their difference by total variation distance, $\frac{1}{2}\sum_f \lvert q_A(f) q W ( f ) q_W(f) q W ( f ) . The stationary distributions and normalizing constants are computed in exact rational arithmetic, while the remaining linear algebra uses double precision.
To measure support loss, we must distinguish structural zeros from numerical roundoff. By Remark SM3.1, φ 1 ( F 0 ) = 0 \varphi_1(F_0)=0 φ 1 ( F 0 ) = 0 exactly when some root cannot reach 1 through positive entries of Q Q Q . The script zero_check.py compares this combinatorial test with a 10 − 14 10^{-14} 1 0 − 14 threshold on the factor g ( B , f ) ⊤ L [ B ] − 1 e 1 g(B,f)^\top L[B]^{-1}e_1 g ( B , f ) ⊤ L [ B ] − 1 e 1 , which differs from the completion weight by a positive constant for each fixed chain and root set. The tests agree in all 546,120 cases. Computed values of this factor at structural zeros are at most 2.2 × 10 − 16 2.2 \times10^{-16} 2.2 × 1 0 − 16 in magnitude, and the smallest positive value is 2.7 × 10 − 2 2.7 \times10^{-2} 2.7 × 1 0 − 2 .
The script make_experiments.py generates the chains and enumerated laws with random seed 20260918. The figure script plot_bias.py reads these stored outputs to produce Figure 5 , without recomputing the laws. All scripts named in this section and their stored outputs are in the repository https://github.com/YuZh98/aldous-broder-numerics.
Figure 5. Total variation distance between the stopped-walk forest law with seed 1 and the weight-proportional law, by root count and chain family. Points represent chains, with the common drift law shown once. Horizontal bars mark the medians.
Results
Figure 5 shows the total variation distance by root count. For one root, the two laws agree, as Theorem 6.1 requires. With two roots, the median total variation distance is about 0.26 for both the dense and graph families. With three roots, the medians are about 0.27 and 0.30, respectively. The largest distance is 0.75, attained by one graph chain with four roots. Beyond three roots, the median distances decrease to about 0.11 at ∣ B ∣ = 6 |B|=6 ∣ B ∣ = 6 . These examples show that a stopped walk can differ substantially from the target forest law even when the underlying chain is reversible, as in the graph family.
The drift example has smaller distances for the chosen roots and seed, increasing from 0.001 at ∣ B ∣ = 2 |B|=2 ∣ B ∣ = 2 to 0.083 at ∣ B ∣ = 6 |B|=6 ∣ B ∣ = 6 . This behavior depends on the contiguous roots and seed 1, as the next experiment shows.
Sensitivity
We vary the placement of the roots, the strength of the drift and the connectivity of the graph. The script robustness.py reproduces the values below.
Placement. For the same 30 dense and 30 graph chains, we replace the nested roots and the seed 1 by a uniformly random root set of each size and a uniformly random seed in it. The median distances for ∣ B ∣ = 2 , … , 6 |B|=2,\ldots,6 ∣ B ∣ = 2 , … , 6 are 0.24, 0.29, 0.21, 0.20 and 0.13 for the dense family and 0.23, 0.28, 0.30, 0.27 and 0.16 for the graph family. In these samples, the medians are close to those of Figure 5 .
Drift. For the drift cycle, we examine the effect of root placement and seed choice. Table SM6 gives the range of the distance over the seeds in the root set, for contiguous roots { 1 , … , b } \{1,\ldots,b\} { 1 , … , b } and for roots spread evenly around the cycle, and for three drift strengths. The small distances of Figure 5 occur only for the contiguous roots and one seed. With another seed, or with spread roots, the distance is of the same order as for the other families.
Connectivity. For 30 random connected graphs with edge probability 0.30, 0.45 and 0.70, the median distance for two roots is 0.40, 0.23 and 0.23, and the fraction of chains with lost mass is 0.57, 0.23 and 0.13. In these samples, the sparser graphs have larger median distances and a higher frequency of support loss.
Lost mass, effective sample size and an estimator
Total variation distance alone does not identify whether correction is possible. We therefore report two diagnostics in Table SM7: the unreachable target mass q W ( S 1 c ) q_W(S_1^c) q W ( S 1 c ) and the limiting normalized effective sample size of the inverse-completion weights. The former measures the part of the target
caption: Table SM6: Range of the total variation distance over the seeds in the root set, for the drift cycle with forward weight a a a and backward weight 1.
law that no reweighting can recover. The latter measures weight dispersion on the reachable forests. For m m m independent draws F ( i ) ∼ q A F^{(i)} \sim q_A F ( i ) ∼ q A with weights a i : = 1 / φ 1 ( F ( i ) ) a_i := 1/\varphi_1(F^{(i)}) a i := 1/ φ 1 ( F ( i ) ) , the normalized effective sample size ( ∑ i a i ) 2 / ( m ∑ i a i 2 ) (\sum_i a_i)^2/(m\sum_i a_i^2) ( ∑ i a i ) 2 / ( m ∑ i a i 2 ) converges almost surely to
ESS / m : = ( E q A a ) 2 E q A a 2 = ( ∑ F 0 ∈ S 1 q ˉ W ( F 0 ) 2 q A ( F 0 ) ) − 1 , q ˉ W : = q W ( ⋅ ∣ S 1 ) , \operatorname{ESS}/m := \frac{(\mathbb{E}_{q_A}a)^2}{\mathbb{E}_{q_A}a^2} = \left(\sum_{F_0 \in S_1}\frac{\bar q_W(F_0)^2}{q_A(F_0)}\right)^{-1}, \qquad\bar q_W := q_W(\,\cdot\mid S_1), ESS / m := E q A a 2 ( E q A a ) 2 = ( F 0 ∈ S 1 ∑ q A ( F 0 ) q ˉ W ( F 0 ) 2 ) − 1 , q ˉ W := q W ( ⋅ ∣ S 1 ) ,
which is the value reported in the table. The precision of a particular estimate also depends on the function h h h and its association with the weights.
Lost mass is zero for all dense and drift chains. In the graph family, it is positive for about half the chains with two or three roots and reaches 0.75. For the graph chain with four roots that attains the largest total variation distance in Figure 5 , the distance is entirely lost mass. Reweighting cannot reduce that distance. On the reachable forests, the median limiting normalized ESS is between 0.59 and 0.95 for the dense and graph families, with a minimum of 0.31.
caption: Table SM7: Lost target mass q W ( S 1 c ) q_W(S_1^c) q W ( S 1 c ) for the graph family and limiting normalized effective sample size ESS / m \operatorname{ESS}/m ESS / m for the three families, over the 30 chains of each family. The lost mass is zero for every dense and drift chain.
To illustrate the effect on an estimate, consider the expected size of the seed’s tree, h ( F 0 ) : = 1 + ∣ D 1 ∣ h(F_0) := 1 + |D_1| h ( F 0 ) := 1 + ∣ D 1 ∣ , with B = { 1 , 2 } B = \{1, 2\} B = { 1 , 2 } . The first dense chain has complete support. Its target expectation is 3.237, while the uncorrected stopped-walk expectation is 4.359. The self-normalized correction converges to 3.237, although the sample ratio is generally biased at finite sample sizes. Across 4,000 replications with m = 200 m = 200 m = 200 independent draws each, the corrected estimate has mean 3.241 and standard deviation 0.175. The limiting normalized ESS is 0.68.
For the graph chain with the largest lost mass, 0.577, the target expectation is 1.923 and the uncorrected expectation is 3.733. The correction converges to the conditional target 3.182. Thus correct weighting on the sampled forests cannot recover the forests that are never sampled. These calculations are generated by estimator_demo.py, which reuses the chains from make_experiments.py and uses random seed 1 for the replications.
Checks
We check the computations in two independent ways. First, for every chain, root set, and seed, the computed stopped-walk probabilities sum to one and agree with the tree-law marginal obtained by enumerating the completed arborescences. The largest discrepancy is 4.8 × 10 − 15 4.8 \times10^{-15} 4.8 × 1 0 − 15 .
Second, we run Algorithm 1 200,000 times on the first dense chain with ∣ B ∣ = 2 |B| = 2 ∣ B ∣ = 2 and seed 1. This simulation uses only the forward transition matrix. Of the 4,802 expected counts, 755 are below 5 and 79 below 1, and the smallest is 0.26. We therefore calibrate the goodness-of-fit statistics with 2,000 multinomial samples of the same size from q A q_A q A , rather than a chi-squared approximation. The reported upper-tail p p p -values have Monte Carlo standard errors at most 0.011.
The Pearson statistic is 4,818.1, with simulated p p p -value 0.41. The maximum standardized deviation across forests is 3.52, with upper-tail p p p -value 0.995, so this maximum lies near the lower 0.5% tail of the simulated reference distribution. Neither upper-tail test rejects q A q_A q A . Overall, the forward-walk simulation agrees with the law computed from (28) .