Introduction and scope
We construct an explicit approximate sampler for the finite doubly free-boundary Macdonald rail-yard processes of Li and Shi [2 ] . The sampler applies to general Macdonald parameters, arbitrary finite sequences of additions and removals of horizontal or vertical strips, and all four boundary types. It generates the entire partition sequence, with explicit total variation bounds on its distance from the target law.
The algorithm starts from a constant partition sequence and reconstructs the original path by reversing a finite sequence of commutations and boundary reflections. The common starting partition is random: even when all edge parameters vanish, it need not be empty. Its law retains the weights of both boundaries and must therefore be sampled with those weights.
The local reconstruction also retains the full Macdonald shape weights. In a bulk or boundary update, the current partitions and a sampled integer increment determine the size of the new partition. We then sample its shape from the allowed partitions of that size, using their Macdonald weights. A same-sign swap instead samples the middle partition from the finite interval between its fixed outer endpoints. These kernels provide stochastic reconstruction compatible with both free boundaries.
For K K K reflection periods and an initial partition-size cutoff M M M , the algorithm terminates almost surely and samples an explicitly defined approximating law exactly. We prove convergence to the target process in total variation as K , M → ∞ K, M \to\infty K , M → ∞ . We bound the reflection error and the initial size-truncation error separately; for each fixed input, both bounds decay geometrically in their respective cutoffs.
We also construct an exact rejection sampler for the weighted starting partition without a size cutoff or evaluation of its normalizing constant. Using this sampler removes the size-truncation error, while the finite reflection history still produces an approximation. For the implementation with a size cutoff, we give an expected operation-count bound for direct enumeration under fixed parameter bounds in a unit-cost model.
Several ingredients have precedents. Fulman [3 Section 5] samples ordinary Macdonald measures by first drawing the size of a horizontal strip and then drawing its shape with normalized Pieri weights. Betea et al. [4 ] construct exact Schur-process samplers from bijective Cauchy and Littlewood identities and growth diagrams. Barraquand, Borodin, and Corwin [5 Sections 2.4.1–2.4.2] construct bulk and boundary Markov kernels for growing half-space Macdonald processes at general ( q , t ) (q,t) ( q , t ) . Their push-block kernels sample shapes using normalized Macdonald and Littlewood weights. Our construction uses this weight-transport principle in a history involving repeated reflections at two free boundaries, together with the resulting weighted starting law and explicit truncation bounds.
Li’s Schur sampler [1 Section 6, Theorem 6.9] uses repeated commutations and reflections, samples finite truncations exactly, and proves total variation convergence. Li and Shi [2 Section 3, Proposition 3.14] establish the corresponding Macdonald identities and reduction scheme. The present paper turns that reduction into a complete sampling construction with the full Macdonald weights, implements the weighted starting law, and gives quantitative error and enumeration-cost bounds. Even in the Schur specialization q = t q=t q = t , our sampler is in general different from that of [1 ] : its bulk and boundary reconstruction uses conditional shape resampling at a prescribed size rather than the bijective local rules employed there; see § 8 .
We consider a process with a fixed number N ≥ 1 N \ge1 N ≥ 1 of transitions. Here q , t q,t q , t are the Macdonald parameters, u , v u,v u , v are the left and right boundary parameters, respectively, and x i x_i x i is the edge parameter of the i i i -th transition. We assume
0 < q , t , u , v < 1 , 0 < x i < 1 ( 1 ≤ i ≤ N ) . (1) 0 < q,t,u,v < 1,\qquad0 < x_i < 1\quad(1 \le i \le N). \tag*{(1)} 0 < q , t , u , v < 1 , 0 < x i < 1 ( 1 ≤ i ≤ N ) . (1)
These conditions ensure that the distributions used by the sampler are well defined and that the target partition function is finite. A proof of finiteness is given in Appendix § 10 .
The process and its scalar factors
Partitions, branching coefficients, and dual letters
Let Y \mathbb{Y} Y be the set of integer partitions, including ∅ \varnothing ∅ . We identify partitions with their Young diagrams. For μ ⊆ λ \mu\subseteq\lambda μ ⊆ λ , the skew diagram λ / μ \lambda/\mu λ / μ consists of the boxes of λ \lambda λ that do not belong to μ \mu μ .
Write ∣ λ ∣ = ∑ i λ i |\lambda| = \sum_i \lambda_i ∣ λ ∣ = ∑ i λ i , and let λ ′ \lambda' λ ′ be the conjugate partition. For s = ( i , j ) ∈ λ s=(i,j)\in\lambda s = ( i , j ) ∈ λ , set
a ( s ) = λ i − j , ℓ ( s ) = λ j ′ − i , b λ ( s ) = 1 − q a ( s ) t ℓ ( s ) + 1 1 − q a ( s ) + 1 t ℓ ( s ) . a(s)=\lambda_i-j,\qquad\ell(s)=\lambda'_j-i,\qquad b_\lambda(s)=\frac{1-q^{a(s)}t^{\ell(s)+1}}{1-q^{a(s)+1}t^{\ell(s)}}. a ( s ) = λ i − j , ℓ ( s ) = λ j ′ − i , b λ ( s ) = 1 − q a ( s ) + 1 t ℓ ( s ) 1 − q a ( s ) t ℓ ( s ) + 1 .
Define b λ = ∏ s ∈ λ b λ ( s ) b_\lambda=\prod_{s\in\lambda} b_\lambda(s) b λ = ∏ s ∈ λ b λ ( s ) , with b ∅ = 1 b_\varnothing=1 b ∅ = 1 . Let P λ = P λ ( ⋅ ; q , t ) P_\lambda=P_\lambda(\mathord{\cdot};q,t) P λ = P λ ( ⋅ ; q , t ) denote the monic Macdonald symmetric function, and set Q λ = b λ P λ Q_\lambda=b_\lambda P_\lambda Q λ = b λ P λ . We write P λ / μ P_{\lambda/\mu} P λ / μ and Q λ / μ Q_{\lambda/\mu} Q λ / μ for the corresponding skew Macdonald symmetric functions, using the conventions of [6 Chapter VI] . They satisfy
Q λ / μ = b λ b μ P λ / μ . (2) Q_{\lambda/\mu}=\frac{b_\lambda}{b_\mu}P_{\lambda/\mu}. \tag*{(2)} Q λ / μ = b μ b λ P λ / μ . (2)
For a type a ∈ { L , R } a\in\{L,R\} a ∈ { L , R } , introduce the nonnegative one-parameter specializations
p k ( ρ L ( x ) ) = x k , p k ( ρ R ( x ) ) = ( − 1 ) k − 1 1 − q k 1 − t k x k . (3) p_k(\rho_L(x))=x^k,\qquad p_k(\rho_R(x))=(-1)^{k-1}\frac{1-q^k}{1-t^k}x^k. \tag*{(3)} p k ( ρ L ( x )) = x k , p k ( ρ R ( x )) = ( − 1 ) k − 1 1 − t k 1 − q k x k . (3)
The term “nonnegative” refers to their skew Macdonald evaluations, not to the signs of their power sums. Define
U a ( λ / μ ; x ) : = P λ / μ ( ρ a ( x ) ; q , t ) , U_a(\lambda/\mu;x):=P_{\lambda/\mu}(\rho_a(x);q,t), U a ( λ / μ ; x ) := P λ / μ ( ρ a ( x ) ; q , t ) ,
V a ( λ / μ ; x ) : = Q λ / μ ( ρ a ( x ) ; q , t ) . (4) V_a(\lambda/\mu;x):=Q_{\lambda/\mu}(\rho_a(x);q,t). \tag*{(4)} V a ( λ / μ ; x ) := Q λ / μ ( ρ a ( x ) ; q , t ) . (4)
Equivalently, using the duality for skew Macdonald functions [6 Chapter VI, (7.16)] , we have
U a ( λ / μ ; x ) V a ( λ / μ ; x ) L P λ / μ ( x ; q , t ) Q λ / μ ( x ; q , t ) R Q λ ′ / μ ′ ( x ; t , q ) P λ ′ / μ ′ ( x ; t , q ) (5) \begin{array}{c|cc}
& U_a(\lambda/\mu;x) & V_a(\lambda/\mu;x)\\
L & P_{\lambda/\mu}(x;q,t) & Q_{\lambda/\mu}(x;q,t)\\
R & Q_{\lambda'/\mu'}(x;t,q) & P_{\lambda'/\mu'}(x;t,q) \tag*{(5)}
\end{array} L R U a ( λ / μ ; x ) P λ / μ ( x ; q , t ) Q λ ′ / μ ′ ( x ; t , q ) V a ( λ / μ ; x ) Q λ / μ ( x ; q , t ) P λ ′ / μ ′ ( x ; t , q ) (5)
For μ ⊆ λ \mu\subseteq\lambda μ ⊆ λ , the skew diagram λ / μ \lambda/\mu λ / μ is called a horizontal strip if it contains at most one box in each column, and a vertical strip if it contains at most one box in each row. The weights U L ( λ / μ ; x ) U_L(\lambda/\mu;x) U L ( λ / μ ; x ) and V L ( λ / μ ; x ) V_L(\lambda/\mu;x) V L ( λ / μ ; x ) vanish unless λ / μ \lambda/\mu λ / μ is a horizontal strip, while U R ( λ / μ ; x ) U_R(\lambda/\mu;x) U R ( λ / μ ; x ) and V R ( λ / μ ; x ) V_R(\lambda/\mu;x) V R ( λ / μ ; x ) vanish unless λ / μ \lambda/\mu λ / μ is a vertical strip. Homogeneity gives coefficients u a , v a u_a,v_a u a , v a such that
U a ( λ / μ ; x ) = u a ( λ / μ ) x ∣ λ ∣ − ∣ μ ∣ , V a ( λ / μ ; x ) = v a ( λ / μ ) x ∣ λ ∣ − ∣ μ ∣ . (6) U_a(\lambda/\mu;x)=u_a(\lambda/\mu)x^{|\lambda|-|\mu|},\qquad V_a(\lambda/\mu;x)=v_a(\lambda/\mu)x^{|\lambda|-|\mu|}. \tag*{(6)} U a ( λ / μ ; x ) = u a ( λ / μ ) x ∣ λ ∣ − ∣ μ ∣ , V a ( λ / μ ; x ) = v a ( λ / μ ) x ∣ λ ∣ − ∣ μ ∣ . (6)
Coefficients are zero unless the indicated strip is allowed, and positive otherwise. In particular,
v a ( λ / μ ) = b λ b μ u a ( λ / μ ) . (7) v_a(\lambda/\mu)=\frac{b_\lambda}{b_\mu}u_a(\lambda/\mu). \tag*{(7)} v a ( λ / μ ) = b μ b λ u a ( λ / μ ) . (7)
Appendix A gives finite product formulas for all these coefficients. The symmetric-function conventions and identities used here are standard; see [6 Chapter VI] .
Boundary weights and the target measure
Set
b λ e l = ∏ s ∈ λ ℓ λ ( s ) e v e n b λ ( s ) , b λ o a = ∏ s ∈ λ a λ ( s ) o d d b λ ( s ) . b^{\mathrm{el}}_\lambda=\prod_{\substack{s\in\lambda\\ \ell_\lambda(s)\ \mathrm{even}}}b_\lambda(s),\qquad
b^{\mathrm{oa}}_\lambda=\prod_{\substack{s\in\lambda\\ a_\lambda(s)\ \mathrm{odd}}}b_\lambda(s). b λ el = s ∈ λ ℓ λ ( s ) even ∏ b λ ( s ) , b λ oa = s ∈ λ a λ ( s ) odd ∏ b λ ( s ) .
and let b λ d e e l = b λ e l b^{\mathrm{deel}}_\lambda=b^{\mathrm{el}}_\lambda b λ deel = b λ el , b λ e o a = b λ o a b^{\mathrm{eoa}}_\lambda=b^{\mathrm{oa}}_\lambda b λ eoa = b λ oa . For c ∈ C : = { e l , o a , d e e l , e o a } c\in\mathcal{C}:=\{\mathrm{el},\mathrm{oa},\mathrm{deel},\mathrm{eoa}\} c ∈ C := { el , oa , deel , eoa } define
1 c ( λ ) = { 1 , c = e l , o a , 1 { λ ′ has only even parts } , c = d e e l , 1 { λ has only even parts } , c = e o a , \mathbf{1}_c(\lambda)=
\begin{cases}
1, & c=\mathrm{el},\mathrm{oa},\\
\mathbf{1}\{\lambda' \text{ has only even parts}\}, & c=\mathrm{deel},\\
\mathbf{1}\{\lambda\text{ has only even parts}\}, & c=\mathrm{eoa},
\end{cases} 1 c ( λ ) = ⎩ ⎨ ⎧ 1 , 1 { λ ′ has only even parts } , 1 { λ has only even parts } , c = el , oa , c = deel , c = eoa ,
and abbreviate
β c ( λ ) = 1 c ( λ ) b λ c , τ c ( λ ) = β c ( λ ) b λ . (8) \beta_c(\lambda)=\mathbf{1}_c(\lambda)b^c_\lambda,\qquad
\tau_c(\lambda)=\frac{\beta_c(\lambda)}{b_\lambda}. \tag*{(8)} β c ( λ ) = 1 c ( λ ) b λ c , τ c ( λ ) = b λ β c ( λ ) . (8)
The left boundary uses τ c l \tau_{c_l} τ c l , and the right boundary uses β c r \beta_{c_r} β c r .
A labelled word is a sequence
w = ( ( a 1 , σ 1 , x 1 ) , … , ( a N , σ N , x N ) ) , a i ∈ { L , R } , σ i ∈ { + , − } . w = ((a_1,\sigma_1,x_1),\ldots,(a_N,\sigma_N,x_N)), \qquad a_i \in\{L,R\}, \quad\sigma_i \in\{+,-\}. w = (( a 1 , σ 1 , x 1 ) , … , ( a N , σ N , x N )) , a i ∈ { L , R } , σ i ∈ { + , − } .
We regard the i i i -th entry ( a i , σ i , x i ) (a_i,\sigma_i,x_i) ( a i , σ i , x i ) , together with its fixed label i i i , as a labelled letter. A labelled letter is called a minus letter or a plus letter according as its sign σ i \sigma_i σ i is − - − or + + + . Adjacent swaps move the entire labelled letter, including its type, sign, and parameter.
For α , γ ∈ Y \alpha,\gamma\in\mathcal{Y} α , γ ∈ Y , define the transition weights
E a , + ( α , γ ; x ) = U a ( γ / α ; x ) , E a , − ( α , γ ; x ) = V a ( α / γ ; x ) . E_{a,+}(\alpha,\gamma;x)=U_a(\gamma/\alpha;x), \qquad E_{a,-}(\alpha,\gamma;x)=V_a(\alpha/\gamma;x). E a , + ( α , γ ; x ) = U a ( γ / α ; x ) , E a , − ( α , γ ; x ) = V a ( α / γ ; x ) .
For λ = ( λ ( 0 ) , … , λ ( N ) ) ∈ Y N + 1 \lambda=(\lambda^{(0)},\ldots,\lambda^{(N)})\in\mathcal{Y}^{N+1} λ = ( λ ( 0 ) , … , λ ( N ) ) ∈ Y N + 1 and boundary types c l , c r ∈ C c_l,c_r\in\mathcal{C} c l , c r ∈ C , define
W w ( λ ) = τ c l ( λ ( 0 ) ) u ∣ λ ( 0 ) ∣ β c r ( λ ( N ) ) v ∣ λ ( N ) ∣ ∏ i = 1 N E a i , σ i ( λ ( i − 1 ) , λ ( i ) ; x i ) . (9) W_w(\lambda)=\tau_{c_l}(\lambda^{(0)})u^{|\lambda^{(0)}|}\beta_{c_r}(\lambda^{(N)})v^{|\lambda^{(N)}|}\prod_{i=1}^{N}E_{a_i,\sigma_i}(\lambda^{(i-1)},\lambda^{(i)};x_i). \tag*{(9)} W w ( λ ) = τ c l ( λ ( 0 ) ) u ∣ λ ( 0 ) ∣ β c r ( λ ( N ) ) v ∣ λ ( N ) ∣ i = 1 ∏ N E a i , σ i ( λ ( i − 1 ) , λ ( i ) ; x i ) . (9)
The target process is
π w ( λ ) = W w ( λ ) Z w , Z w = ∑ λ ∈ Y N + 1 W w ( λ ) . (10) \pi_w(\lambda)=\frac{W_w(\lambda)}{Z_w}, \qquad Z_w=\sum_{\lambda\in\mathcal{Y}^{N+1}}W_w(\lambda). \tag*{(10)} π w ( λ ) = Z w W w ( λ ) , Z w = λ ∈ Y N + 1 ∑ W w ( λ ) . (10)
Zero weights enforce all interlacing and boundary restrictions.
Bulk factors
For 0 < Q < 1 0<Q<1 0 < Q < 1 and 0 ≤ A < 1 0\le A<1 0 ≤ A < 1 , use the notation
K A , Q ( r ) = ( A r ; Q ) ∞ ( r ; Q ) ∞ , k n ( A , Q ) = ( A ; Q ) n ( Q ; Q ) n , K A , Q ( r ) = ∑ n ≥ 0 k n ( A , Q ) r n . (11) K_{A,Q}(r)=\frac{(Ar;Q)_\infty}{(r;Q)_\infty}, \qquad k_n(A,Q)=\frac{(A;Q)_n}{(Q;Q)_n}, \qquad K_{A,Q}(r)=\sum_{n\ge0}k_n(A,Q)r^n. \tag*{(11)} K A , Q ( r ) = ( r ; Q ) ∞ ( A r ; Q ) ∞ , k n ( A , Q ) = ( Q ; Q ) n ( A ; Q ) n , K A , Q ( r ) = n ≥ 0 ∑ k n ( A , Q ) r n . (11)
Here ( A ; Q ) n = ∏ j = 0 n − 1 ( 1 − A Q j ) (A;Q)_n=\prod_{j=0}^{n-1}(1-AQ^j) ( A ; Q ) n = ∏ j = 0 n − 1 ( 1 − A Q j ) and k 0 = 1 k_0=1 k 0 = 1 . The final equality is the q q q -binomial identity [7 §17.5] ; it also follows by comparing coefficients in ( 1 − r ) K A , Q ( r ) = ( 1 − A r ) K A , Q ( Q r ) (1-r)K_{A,Q}(r)=(1-Ar)K_{A,Q}(Qr) ( 1 − r ) K A , Q ( r ) = ( 1 − A r ) K A , Q ( Q r ) .
Consider two adjacent steps ( a , + , x ) (a,+,x) ( a , + , x ) and ( b , − , y ) (b,-,y) ( b , − , y ) , where a , b ∈ { L , R } a,b\in\{L,R\} a , b ∈ { L , R } . Keep the outer partitions fixed and sum over the intermediate partition. By the skew Cauchy identity, the total weight in this order is C a b ( x y ) C_{ab}(xy) C ab ( x y ) times the total weight in the reversed order ( b , − , y ) , ( a , + , x ) (b,-,y),(a,+,x) ( b , − , y ) , ( a , + , x ) . Writing r = x y r=xy r = x y , we have
C a b ( r ) = ∑ n ≥ 0 c n a b r n = { K t , q ( r ) , a = b = L , K q , t ( r ) , a = b = R , 1 + r , a ≠ b . (12) C_{ab}(r)=\sum_{n\ge0}c_n^{ab}r^n=
\begin{cases}
K_{t,q}(r), & a=b=L,\\
K_{q,t}(r), & a=b=R,\\
1+r, & a\ne b.
\end{cases} \tag*{(12)} C ab ( r ) = n ≥ 0 ∑ c n ab r n = ⎩ ⎨ ⎧ K t , q ( r ) , K q , t ( r ) , 1 + r , a = b = L , a = b = R , a = b . (12)
Consequently, the R R RR R R factor uses the swapped parameters. This follows directly from (3) and the Cauchy exponential
Π ( ρ , σ ; q , t ) = exp ( ∑ k ≥ 1 1 − t k 1 − q k p k ( ρ ) p k ( σ ) k ) . \Pi(\rho,\sigma;q,t)=\exp\left(\sum_{k\ge1}\frac{1-t^k}{1-q^k}\frac{p_k(\rho)p_k(\sigma)}{k}\right). Π ( ρ , σ ; q , t ) = exp ( k ≥ 1 ∑ 1 − q k 1 − t k k p k ( ρ ) p k ( σ ) ) .
We will always compute the factors from these explicit specialization conventions.
Boundary factors and their coefficients
Let
Θ c ( X ; q , t ) = ∑ λ ∈ Y β c ( λ ) P λ ( X ; q , t ) , F c , a ( r ) = Θ c ( ρ a ( r ) ; q , t ) . \Theta_c(X;q,t)=\sum_{\lambda\in\mathbb{Y}}\beta_c(\lambda)P_\lambda(X;q,t),\qquad F_{c,a}(r)=\Theta_c(\rho_a(r);q,t). Θ c ( X ; q , t ) = λ ∈ Y ∑ β c ( λ ) P λ ( X ; q , t ) , F c , a ( r ) = Θ c ( ρ a ( r ) ; q , t ) .
The Littlewood identities underlying the reflections are recorded in [2 Lemma 3.2 and Corollaries 3.6, 3.8] . Their single-variable factors and coefficients are
Table 2.
In particular,
F o a , L ( r ) = ( q t r 2 ; q 2 ) ∞ ( 1 − r ) ( q 2 r 2 ; q 2 ) ∞ , F_{\mathrm{oa},L}(r)=\frac{(qtr^2;q^2)_\infty}{(1-r)(q^2r^2;q^2)_\infty}, F oa , L ( r ) = ( 1 − r ) ( q 2 r 2 ; q 2 ) ∞ ( q t r 2 ; q 2 ) ∞ ,
so its coefficients of r 2 m r^{2m} r 2 m and r 2 m + 1 r^{2m+1} r 2 m + 1 agree.
Define the involution on boundary types by
e l ^ = o a , o a ^ = e l , d e e l ^ = e o a , e o a ^ = d e e l . (13) \widehat{\mathrm{el}}=\mathrm{oa},\qquad\widehat{\mathrm{oa}}=\mathrm{el},\qquad\widehat{\mathrm{deel}}=\mathrm{eoa},\qquad\widehat{\mathrm{eoa}}=\mathrm{deel}. \tag*{(13)} el = oa , oa = el , deel = eoa , eoa = deel . (13)
Then
F c , R ( r ; q , t ) = F c ^ , L ( r ; t , q ) , d n c , R ( q , t ) = d n c ^ , L ( t , q ) . (14) F_{c,R}(r;q,t)=F_{\widehat{c},L}(r;t,q),\qquad d_n^{c,R}(q,t)=d_n^{\widehat{c},L}(t,q). \tag*{(14)} F c , R ( r ; q , t ) = F c , L ( r ; t , q ) , d n c , R ( q , t ) = d n c , L ( t , q ) . (14)
Indeed, conjugation interchanges arms and legs and gives
b λ ′ ( t , q ) = b λ ( q , t ) − 1 , β c ( λ ′ ; t , q ) = β c ( λ ; q , t ) b λ ( q , t ) . b_{\lambda'}(t,q)=b_\lambda(q,t)^{-1},\qquad\beta_c(\lambda';t,q)=\frac{\beta_c(\lambda;q,t)}{b_\lambda(q,t)}. b λ ′ ( t , q ) = b λ ( q , t ) − 1 , β c ( λ ′ ; t , q ) = b λ ( q , t ) β c ( λ ; q , t ) .
Substitute these relations and (2.4) into the series for Θ c \Theta_c Θ c to obtain (2.14).
Scalar sampling without infinite products
For later use define the distribution
NB Q ( A , r ) { n } = k n ( A , Q ) r n K A , Q ( r ) , n ∈ Z ≥ 0 , 0 < r < 1. (15) \operatorname{NB}_Q(A,r)\{n\}=\frac{k_n(A,Q)r^n}{K_{A,Q}(r)},\qquad n\in\mathbb{Z}_{\geq0},\quad0<r<1. \tag*{(15)} NB Q ( A , r ) { n } = K A , Q ( r ) k n ( A , Q ) r n , n ∈ Z ≥ 0 , 0 < r < 1. (15)
This notation specifies the parameter convention completely. Bulk increments are independent of the current partitions and have laws
G a b ( r ) ∼ { NB q ( t , r ) , a = b = L , NB t ( q , r ) , a = b = R , Bern ( r / ( 1 + r ) ) , a ≠ b . (16) G_{ab}(r)\sim
\begin{cases}
\operatorname{NB}_q(t,r), & a=b=L,\\
\operatorname{NB}_t(q,r), & a=b=R,\\
\operatorname{Bern}(r/(1+r)), & a\ne b.
\end{cases} \tag*{(16)} G ab ( r ) ∼ ⎩ ⎨ ⎧ NB q ( t , r ) , NB t ( q , r ) , Bern ( r / ( 1 + r )) , a = b = L , a = b = R , a = b . (16)
A boundary reflection contributes the scalar factor F c , a ( r ) = ∑ n ≥ 0 d n c , a r n F_{c,a}(r)=\sum_{n\geq0}d_n^{c,a}r^n F c , a ( r ) = ∑ n ≥ 0 d n c , a r n . We sample the associated integer increment by assigning probability proportional to d n c , a r n d_n^{c,a}r^n d n c , a r n to the value n n n . Thus, for 0 < r < 1 0<r<1 0 < r < 1 , define the nonnegative-integer random variable B c , a ( r ) B_{c,a}(r) B c , a ( r ) by
P ( B c , a ( r ) = n ) = d n c , a r n F c , a ( r ) , n ∈ Z ≥ 0 . (17) \mathbb{P}(B_{c,a}(r)=n)=\frac{d_n^{c,a}r^n}{F_{c,a}(r)},\qquad n\in\mathbb{Z}_{\geq0}. \tag*{(17)} P ( B c , a ( r ) = n ) = F c , a ( r ) d n c , a r n , n ∈ Z ≥ 0 . (17)
For a = L a = L a = L , the following constructions implement this law:
B e l , L ( r ) ∼ N B q ( t , r ) , B o a , L ( r ) = 2 J + ϵ , J ∼ N B q 2 ( q t , r 2 ) , ϵ ∼ B e r n ( r 1 + r ) , B d e e l , L ( r ) = 0 , B e o a , L ( r ) = 2 J , J ∼ N B q 2 ( q t , r 2 ) . (18) \begin{aligned}
B_{\mathrm{el},L}(r) &\sim\mathrm{NB}_{q}(t,r),\\
B_{\mathrm{oa},L}(r) &= 2J+\epsilon, \qquad J\sim\mathrm{NB}_{q^2}(qt,r^2), \quad\epsilon\sim\mathrm{Bern}\left(\frac{r}{1+r}\right),\\
B_{\mathrm{deel},L}(r) &= 0,\\
B_{\mathrm{eoa},L}(r) &= 2J, \qquad J\sim\mathrm{NB}_{q^2}(qt,r^2). \tag*{(18)}
\end{aligned} B el , L ( r ) B oa , L ( r ) B deel , L ( r ) B eoa , L ( r ) ∼ NB q ( t , r ) , = 2 J + ϵ , J ∼ NB q 2 ( q t , r 2 ) , ϵ ∼ Bern ( 1 + r r ) , = 0 , = 2 J , J ∼ NB q 2 ( q t , r 2 ) . (18)
In the second line J J J and ϵ \epsilon ϵ are independent. For a = R a = R a = R , applying (14) gives
B e l , R ( r ) = d 2 J + ϵ , J ∼ N B t 2 ( q t , r 2 ) , ϵ ∼ B e r n ( r 1 + r ) , B o a , R ( r ) ∼ N B t ( q , r ) , B d e e l , R ( r ) = d 2 J , J ∼ N B t 2 ( q t , r 2 ) , B e o a , R ( r ) = 0. \begin{aligned}
B_{\mathrm{el},R}(r) &\mathrel{\mathop{=}^{\mathrm{d}}} 2J+\epsilon, \qquad J\sim\mathrm{NB}_{t^2}(qt,r^2), \quad\epsilon\sim\mathrm{Bern}\left(\frac{r}{1+r}\right),\\
B_{\mathrm{oa},R}(r) &\sim\mathrm{NB}_{t}(q,r),\\
B_{\mathrm{deel},R}(r) &\mathrel{\mathop{=}^{\mathrm{d}}} 2J, \qquad J\sim\mathrm{NB}_{t^2}(qt,r^2),\\
B_{\mathrm{eoa},R}(r) &= 0.
\end{aligned} B el , R ( r ) B oa , R ( r ) B deel , R ( r ) B eoa , R ( r ) = d 2 J + ϵ , J ∼ NB t 2 ( q t , r 2 ) , ϵ ∼ Bern ( 1 + r r ) , ∼ NB t ( q , r ) , = d 2 J , J ∼ NB t 2 ( q t , r 2 ) , = 0.
In the first line, J J J and ϵ \epsilon ϵ are independent.
Although (3.1) contains an infinite-product normalizer, the following rejection sampler does not need it. Our convention is P ( Geom ( r ) = n ) = ( 1 − r ) r n \mathbb{P}(\operatorname{Geom}(r)=n)=(1-r)r^n P ( Geom ( r ) = n ) = ( 1 − r ) r n .
Lemma 3.1 (A finite-product scalar sampler). Let L Q = ⌈ ( 1 − Q ) − 1 ⌉ L_Q=\lceil(1-Q)^{-1}\rceil L Q = ⌈( 1 − Q ) − 1 ⌉ and H Q = ( 1 − Q ) − L Q H_Q=(1-Q)^{-L_Q} H Q = ( 1 − Q ) − L Q . Repeatedly draw J ∼ Geom ( r ) J\sim\operatorname{Geom}(r) J ∼ Geom ( r ) and accept J J J with probability k J ( A , Q ) / H Q k_J(A,Q)/H_Q k J ( A , Q ) / H Q . The accepted value has law (3.1); the procedure terminates almost surely. Each acceptance probability uses only a finite product.
Proof. Since ( A ; Q ) n ≤ 1 (A;Q)_n\le1 ( A ; Q ) n ≤ 1 ,
k n ( A , Q ) ≤ 1 ( Q ; Q ) ∞ . k_n(A,Q)\le\frac{1}{(Q;Q)_\infty}. k n ( A , Q ) ≤ ( Q ; Q ) ∞ 1 .
Moreover,
log 1 ( Q ; Q ) ∞ = ∑ m ≥ 1 Q m m ( 1 − Q m ) ≤ − log ( 1 − Q ) 1 − Q ≤ L Q [ − log ( 1 − Q ) ] . \log\frac{1}{(Q;Q)_\infty}
=\sum_{m\ge1}\frac{Q^m}{m(1-Q^m)}
\le\frac{-\log(1-Q)}{1-Q}
\le L_Q[-\log(1-Q)]. log ( Q ; Q ) ∞ 1 = m ≥ 1 ∑ m ( 1 − Q m ) Q m ≤ 1 − Q − log ( 1 − Q ) ≤ L Q [ − log ( 1 − Q )] .
Thus k n ≤ H Q k_n\le H_Q k n ≤ H Q . The probability of proposing and accepting n n n is ( 1 − r ) r n k n / H Q (1-r)r^n k_n/H_Q ( 1 − r ) r n k n / H Q , which normalizes to (3.1). The acceptance probability per trial is ( 1 − r ) K A , Q ( r ) / H Q > 0 (1-r)K_{A,Q}(r)/H_Q>0 ( 1 − r ) K A , Q ( r ) / H Q > 0 , proving almost-sure termination.
Exact local shape kernels
Given the current partitions, each scalar increment determines the size of the updated partition. We now specify the conditional distribution on the allowed shapes of that size and prove that the resulting local updates reproduce the required Macdonald weights.
Coefficients with negative indices are understood to be zero.
Bulk peak reconstruction
Fix the outer partitions λ \lambda λ , μ \mu μ , a + + + type a a a with parameter x x x , and a − - − type b b b with parameter y y y . The skew Cauchy identity is
∑ ν U a ( ν / λ ; x ) V b ( ν / μ ; y ) = C a b ( x y ) ∑ κ V b ( λ / κ ; y ) U a ( μ / κ ; x ) . (19) \sum_{\nu} U_a(\nu/\lambda;x)V_b(\nu/\mu;y)
=C_{ab}(xy)\sum_{\kappa}V_b(\lambda/\kappa;y)U_a(\mu/\kappa;x). \tag*{(19)} ν ∑ U a ( ν / λ ; x ) V b ( ν / μ ; y ) = C ab ( x y ) κ ∑ V b ( λ / κ ; y ) U a ( μ / κ ; x ) . (19)
It changes the local word ( a , + , x ) , ( b , − , y ) (a,+,x),(b,-,y) ( a , + , x ) , ( b , − , y ) into ( b , − , y ) , ( a , + , x ) (b,-,y),(a,+,x) ( b , − , y ) , ( a , + , x ) . The left side contains a peak ν \nu ν and the right side a valley κ \kappa κ . The identity follows from the usual skew Cauchy identity after applying (3) ; compare [2 Lemma 3.9] .
Define, for m ∈ Z ≥ 0 m \in\mathbb{Z}_{\ge0} m ∈ Z ≥ 0 ,
S m a , b ( λ , μ ) = ∑ ∣ ζ ∣ = m u a ( ζ / λ ) v b ( ζ / μ ) . (20) S_m^{a,b}(\lambda,\mu)=\sum_{|\zeta|=m}u_a(\zeta/\lambda)v_b(\zeta/\mu). \tag*{(20)} S m a , b ( λ , μ ) = ∣ ζ ∣ = m ∑ u a ( ζ / λ ) v b ( ζ / μ ) . (20)
Comparing homogeneous coefficients in (19) gives
S m a , b ( λ , μ ) = ∑ κ v b ( λ / κ ) u a ( μ / κ ) c m + ∣ κ ∣ − ∣ λ ∣ − ∣ μ ∣ a b . (21) S_m^{a,b}(\lambda,\mu)=\sum_{\kappa}v_b(\lambda/\kappa)u_a(\mu/\kappa)c_{m+|\kappa|-|\lambda|-|\mu|}^{ab}. \tag*{(21)} S m a , b ( λ , μ ) = κ ∑ v b ( λ / κ ) u a ( μ / κ ) c m + ∣ κ ∣ − ∣ λ ∣ − ∣ μ ∣ ab . (21)
Here c n a b c_n^{ab} c n ab are the coefficients defined in (12) , with c n a b = 0 c_n^{ab}=0 c n ab = 0 for n < 0 n<0 n < 0 . The right sum is finite: a nonzero term has κ ⊆ λ ∩ μ \kappa\subseteq\lambda\cap\mu κ ⊆ λ ∩ μ .
Definition 4.1 (Bulk reconstruction kernel). Given an admissible valley κ \kappa κ , draw G ∼ G a b ( x y ) G\sim G_{ab}(xy) G ∼ G ab ( x y ) independently and set
m = ∣ λ ∣ + ∣ μ ∣ − ∣ κ ∣ + G . (22) m=|\lambda|+|\mu|-|\kappa|+G. \tag*{(22)} m = ∣ λ ∣ + ∣ μ ∣ − ∣ κ ∣ + G . (22) Then sample a partition ν \nu ν according to
P ( ν ∣ λ , μ , κ , G ) = 1 { ∣ ν ∣ = m } u a ( ν / λ ) v b ( ν / μ ) S m a , b ( λ , μ ) . (23) \mathbb{P}(\nu\mid\lambda,\mu,\kappa,G)=\frac{\mathbf{1}_{\{|\nu|=m\}}u_a(\nu/\lambda)v_b(\nu/\mu)}{S_m^{a,b}(\lambda,\mu)}. \tag*{(23)} P ( ν ∣ λ , μ , κ , G ) = S m a , b ( λ , μ ) 1 { ∣ ν ∣ = m } u a ( ν / λ ) v b ( ν / μ ) . (23) Let T a , b x , y ( κ , ν ∣ λ , μ ) T_{a,b}^{x,y}(\kappa,\nu\mid\lambda,\mu) T a , b x , y ( κ , ν ∣ λ , μ ) denote the probability that the above procedure produces ν \nu ν from κ \kappa κ , with the outer partitions λ , μ \lambda,\mu λ , μ fixed. For an admissible input κ \kappa κ , put
g = ∣ ν ∣ + ∣ κ ∣ − ∣ λ ∣ − ∣ μ ∣ . g=|\nu|+|\kappa|-|\lambda|-|\mu|. g = ∣ ν ∣ + ∣ κ ∣ − ∣ λ ∣ − ∣ μ ∣. Then
T a , b x , y ( κ , ν ∣ λ , μ ) = { c g a b ( x y ) g C a b ( x y ) u a ( ν / λ ) v b ( ν / μ ) S ∣ ν ∣ a , b ( λ , μ ) , g ≥ 0 and c g a b > 0 , 0 , otherwise . T_{a,b}^{x,y}(\kappa,\nu\mid\lambda,\mu)=
\begin{cases}
\dfrac{c_g^{ab}(xy)^g}{C_{ab}(xy)}
\dfrac{u_a(\nu/\lambda)v_b(\nu/\mu)}{S_{|\nu|}^{a,b}(\lambda,\mu)}, & g\ge0\text{ and }c_g^{ab}>0,\\
0, & \text{otherwise}.
\end{cases} T a , b x , y ( κ , ν ∣ λ , μ ) = ⎩ ⎨ ⎧ C ab ( x y ) c g ab ( x y ) g S ∣ ν ∣ a , b ( λ , μ ) u a ( ν / λ ) v b ( ν / μ ) , 0 , g ≥ 0 and c g ab > 0 , otherwise . The normalizing sum S m a , b ( λ , μ ) S_m^{a,b}(\lambda,\mu) S m a , b ( λ , μ ) in (20) has finitely many terms, since there are only finitely many partitions of size m m m . If the input coefficient and the sampled coefficient c G a b c_G^{ab} c G ab are positive, then (21) makes its denominator strictly positive.
Proposition 4.2 (Bulk weight transport). The kernel in Definition 4.1 satisfies
∑ κ V b ( λ / κ ; y ) U a ( μ / κ ; x ) T a , b x , y ( κ , ν ∣ λ , μ ) = U a ( ν / λ ; x ) V b ( ν / μ ; y ) C a b ( x y ) . (24) \sum_{\kappa}V_b(\lambda/\kappa;y)U_a(\mu/\kappa;x)T_{a,b}^{x,y}(\kappa,\nu\mid\lambda,\mu)
=\frac{U_a(\nu/\lambda;x)V_b(\nu/\mu;y)}{C_{ab}(xy)}. \tag*{(24)} κ ∑ V b ( λ / κ ; y ) U a ( μ / κ ; x ) T a , b x , y ( κ , ν ∣ λ , μ ) = C ab ( x y ) U a ( ν / λ ; x ) V b ( ν / μ ; y ) . (24)
Proof. Fix ν \nu ν and put m = ∣ ν ∣ m=|\nu| m = ∣ ν ∣ . The sums over κ \kappa κ below are restricted to partitions satisfying v b ( λ / κ ) u a ( μ / κ ) > 0 v_b(\lambda/\kappa)u_a(\mu/\kappa)>0 v b ( λ / κ ) u a ( μ / κ ) > 0 .
If u a ( ν / λ ) v b ( ν / μ ) = 0 u_a(\nu/\lambda)v_b(\nu/\mu)=0 u a ( ν / λ ) v b ( ν / μ ) = 0 , both sides of (24) vanish by the definition of T a , b x , y T_{a,b}^{x,y} T a , b x , y . Otherwise, S m a , b ( λ , μ ) > 0 S_m^{a,b}(\lambda,\mu)>0 S m a , b ( λ , μ ) > 0 by (20) .
For such an input κ \kappa κ , put
g κ = m + ∣ κ ∣ − ∣ λ ∣ − ∣ μ ∣ . g_\kappa=m+|\kappa|-|\lambda|-|\mu|. g κ = m + ∣ κ ∣ − ∣ λ ∣ − ∣ μ ∣.
The corresponding monomial satisfies
y ∣ λ ∣ − ∣ κ ∣ x ∣ μ ∣ − ∣ κ ∣ ( x y ) g κ = x m − ∣ λ ∣ y m − ∣ μ ∣ . y^{|\lambda|-|\kappa|}x^{|\mu|-|\kappa|}(xy)^{g_\kappa}=x^{m-|\lambda|}y^{m-|\mu|}. y ∣ λ ∣ − ∣ κ ∣ x ∣ μ ∣ − ∣ κ ∣ ( x y ) g κ = x m − ∣ λ ∣ y m − ∣ μ ∣ .
Using the explicit formula for T a , b x , y T_{a,b}^{x,y} T a , b x , y and homogeneity, we obtain
∑ κ V b ( λ / κ ; y ) U a ( μ / κ ; x ) T a , b x , y ( κ , ν ∣ λ , μ ) = U a ( ν / λ ; x ) V b ( ν / μ ; y ) C a b ( x y ) S m a , b ( λ , μ ) ∑ κ v b ( λ / κ ) u a ( μ / κ ) c κ a b = U a ( ν / λ ; x ) V b ( ν / μ ; y ) C a b ( x y ) . \begin{aligned}
\sum_{\kappa} V_b(\lambda/\kappa;y)U_a(\mu/\kappa;x)T_{a,b}^{x,y}(\kappa,\nu\mid\lambda,\mu)
&=\frac{U_a(\nu/\lambda;x)V_b(\nu/\mu;y)}{C_{ab}(xy)S_m^{a,b}(\lambda,\mu)}
\sum_{\kappa}v_b(\lambda/\kappa)u_a(\mu/\kappa)c_{\kappa}^{ab}\\
&=\frac{U_a(\nu/\lambda;x)V_b(\nu/\mu;y)}{C_{ab}(xy)}.
\end{aligned} κ ∑ V b ( λ / κ ; y ) U a ( μ / κ ; x ) T a , b x , y ( κ , ν ∣ λ , μ ) = C ab ( x y ) S m a , b ( λ , μ ) U a ( ν / λ ; x ) V b ( ν / μ ; y ) κ ∑ v b ( λ / κ ) u a ( μ / κ ) c κ ab = C ab ( x y ) U a ( ν / λ ; x ) V b ( ν / μ ; y ) .
Here coefficients with negative indices are zero, and the last equality follows from (21) .
Boundary reconstruction
Fix c ∈ C c\in\mathbb{C} c ∈ C . Let X = ( x 1 , … , x d ) X=(x_1,\ldots,x_d) X = ( x 1 , … , x d ) and Y = ( y 1 , … , y e ) Y=(y_1,\ldots,y_e) Y = ( y 1 , … , y e ) be finite lists of variables, and write X ∪ Y X\cup Y X ∪ Y for their concatenation. We suppress the parameters q , t q,t q , t in Θ c \Theta_c Θ c .
The Littlewood product identities [2 Lemma 3.2] give
Θ c ( x 1 , … , x d ) = ∏ i = 1 d F c , L ( x i ) ∏ 1 ≤ i < j ≤ d K t , q ( x i x j ) . (25) \Theta_c(x_1,\ldots,x_d)=\prod_{i=1}^{d}F_{c,L}(x_i)\prod_{1\leq i<j\leq d}K_{t,q}(x_ix_j). \tag*{(25)} Θ c ( x 1 , … , x d ) = i = 1 ∏ d F c , L ( x i ) 1 ≤ i < j ≤ d ∏ K t , q ( x i x j ) . (25)
Since
Π ( X , Y ; q , t ) = ∏ i = 1 d ∏ j = 1 e K t , q ( x i y j ) , \Pi(X,Y;q,t)=\prod_{i=1}^{d}\prod_{j=1}^{e}K_{t,q}(x_iy_j), Π ( X , Y ; q , t ) = i = 1 ∏ d j = 1 ∏ e K t , q ( x i y j ) ,
separating the factors involving variables from X X X , from Y Y Y , and from both gives
Θ c ( X ∪ Y ) = Θ c ( X ) Θ c ( Y ) Π ( X , Y ; q , t ) . (26) \Theta_c(X\cup Y)=\Theta_c(X)\Theta_c(Y)\Pi(X,Y;q,t). \tag*{(26)} Θ c ( X ∪ Y ) = Θ c ( X ) Θ c ( Y ) Π ( X , Y ; q , t ) . (26)
Fix η ∈ Y \eta\in\mathbb{Y} η ∈ Y . The skew Littlewood identities [2 Lemmas 3.3–3.5] take the form
∑ ν β c ( ν ) P ν / η ( Y ) = Θ c ( Y ) ∑ κ β c ( κ ) Q η / κ ( Y ) . \sum_{\nu}\beta_c(\nu)P_{\nu/\eta}(Y)=\Theta_c(Y)\sum_{\kappa}\beta_c(\kappa)Q_{\eta/\kappa}(Y). ν ∑ β c ( ν ) P ν / η ( Y ) = Θ c ( Y ) κ ∑ β c ( κ ) Q η / κ ( Y ) .
They follow by comparing the coefficients of P η ( X ) P_\eta(X) P η ( X ) in (26) , using the branching and skew Cauchy identities.
For the right-boundary reflection, η \eta η is the partition adjacent to the boundary. Substitute Y = ρ a ( v x ) Y=\rho_a(vx) Y = ρ a ( v x ) and multiply both sides by v ∣ η ∣ v^{|\eta|} v ∣ η ∣ . Using Θ c ( ρ a ( v x ) ) = F c , a ( v x ) \Theta_c(\rho_a(vx))=F_{c,a}(vx) Θ c ( ρ a ( v x )) = F c , a ( v x ) and the homogeneity relations
v ∣ η ∣ U a ( ν / η ; v x ) = v ∣ ν ∣ U a ( ν / η ; x ) , v^{|\eta|}U_a(\nu/\eta;vx)=v^{|\nu|}U_a(\nu/\eta;x), v ∣ η ∣ U a ( ν / η ; v x ) = v ∣ ν ∣ U a ( ν / η ; x ) ,
v ∣ η ∣ V a ( η / κ ; v x ) = v ∣ κ ∣ V a ( η / κ ; v 2 x ) , v^{|\eta|}V_a(\eta/\kappa;vx)=v^{|\kappa|}V_a(\eta/\kappa;v^2x), v ∣ η ∣ V a ( η / κ ; v x ) = v ∣ κ ∣ V a ( η / κ ; v 2 x ) ,
we obtain
∑ ν β c ( ν ) v ∣ ν ∣ U a ( ν / η ; x ) = F c , a ( v x ) ∑ κ β c ( κ ) v ∣ κ ∣ V a ( η / κ ; v 2 x ) . (27) \sum_{\nu}\beta_c(\nu)v^{|\nu|}U_a(\nu/\eta;x)=F_{c,a}(vx)\sum_{\kappa}\beta_c(\kappa)v^{|\kappa|}V_a(\eta/\kappa;v^2x). \tag*{(27)} ν ∑ β c ( ν ) v ∣ ν ∣ U a ( ν / η ; x ) = F c , a ( v x ) κ ∑ β c ( κ ) v ∣ κ ∣ V a ( η / κ ; v 2 x ) . (27)
Thus the last letter changes from + + + to − - − and x x x changes to v 2 x v^2x v 2 x . Using (7) gives the left-boundary version
∑ ν τ c ( ν ) u ∣ ν ∣ V a ( ν / η ; x ) = F c , a ( u x ) ∑ κ τ c ( κ ) u ∣ κ ∣ U a ( η / κ ; u 2 x ) . (28) \sum_{\nu}\tau_c(\nu)u^{|\nu|}V_a(\nu/\eta;x)=F_{c,a}(ux)\sum_{\kappa}\tau_c(\kappa)u^{|\kappa|}U_a(\eta/\kappa;u^2x). \tag*{(28)} ν ∑ τ c ( ν ) u ∣ ν ∣ V a ( ν / η ; x ) = F c , a ( ux ) κ ∑ τ c ( κ ) u ∣ κ ∣ U a ( η / κ ; u 2 x ) . (28)
At the left boundary the first letter changes from − - − to + + + and x x x changes to u 2 x u^2x u 2 x .
For fixed η ∈ Y \eta\in\mathbb{Y} η ∈ Y , define the boundary normalizing sum
S m c , a ( η ) = ∑ ∣ ζ ∣ = m β c ( ζ ) u a ( ζ / η ) . (29) S^{c,a}_m(\eta)=\sum_{|\zeta|=m}\beta_c(\zeta)u_a(\zeta/\eta). \tag*{(29)} S m c , a ( η ) = ∣ ζ ∣ = m ∑ β c ( ζ ) u a ( ζ / η ) . (29)
The coefficient form of (4.9) is
S m c , a ( η ) = ∑ κ β c ( κ ) v a ( η / κ ) d m + ∣ κ ∣ − 2 ∣ η ∣ c , a . (30) S^{c,a}_m(\eta)=\sum_{\kappa}\beta_c(\kappa)v_a(\eta/\kappa)d^{c,a}_{m+|\kappa|-2|\eta|}. \tag*{(30)} S m c , a ( η ) = κ ∑ β c ( κ ) v a ( η / κ ) d m + ∣ κ ∣ − 2∣ η ∣ c , a . (30)
Definition 4.3 (Boundary reconstruction kernel). For a right reflection, let h = v h=v h = v and c = c r c=c_r c = c r ; for a left reflection, let h = u h=u h = u and c = c l c=c_l c = c l . Given the reflected boundary partition κ \kappa κ , its neighboring interior partition η \eta η , and the parameter x x x before reflection, draw
B ∼ B c , a ( h x ) , m = 2 ∣ η ∣ − ∣ κ ∣ + B . B\sim B_{c,a}(hx),\qquad m=2|\eta|-|\kappa|+B. B ∼ B c , a ( h x ) , m = 2∣ η ∣ − ∣ κ ∣ + B . Replace the boundary partition by a sample from
P ( ν ∣ η , κ , B ) = 1 { ∣ ν ∣ = m } β c ( ν ) u a ( ν / η ) S m c , a ( η ) . (31) \mathbb{P}(\nu\mid\eta,\kappa,B)=\frac{\mathbf{1}_{\{|\nu|=m\}}\beta_c(\nu)u_a(\nu/\eta)}{S^{c,a}_m(\eta)}. \tag*{(31)} P ( ν ∣ η , κ , B ) = S m c , a ( η ) 1 { ∣ ν ∣ = m } β c ( ν ) u a ( ν / η ) . (31)
The denominator is positive on every positive-weight input and sampled increment, by (4.12). Boundary indicators in β c \beta_c β c automatically enforce the even or conjugate-even restrictions.
Proposition 4.4. Fix η ∈ Y \eta\in\mathbb{Y} η ∈ Y . For the right boundary, suppose that κ \kappa κ is sampled with probabilities proportional to the weights in the sum on the right-hand side of (4.9). Then the procedure in Definition 4.3 produces ν \nu ν with probabilities proportional to the weights in the sum on the left-hand side.
The same statement holds for the left boundary, using (4.10).
Proof. For the right boundary, fix m = ∣ ν ∣ m=|\nu| m = ∣ ν ∣ and write g = m + ∣ κ ∣ − 2 ∣ η ∣ g=m+|\kappa|-2|\eta| g = m + ∣ κ ∣ − 2∣ η ∣ . By homogeneity, the weight of κ \kappa κ in the sum on the right-hand side of (4.9) is
β c ( κ ) v a ( η / κ ) v ∣ κ ∣ ( v 2 x ) ∣ η ∣ − ∣ κ ∣ . \beta_c(\kappa)v_a(\eta/\kappa)v^{|\kappa|}(v^2x)^{|\eta|-|\kappa|}. β c ( κ ) v a ( η / κ ) v ∣ κ ∣ ( v 2 x ) ∣ η ∣ − ∣ κ ∣ .
The probability of sampling B = g B=g B = g includes the factor ( v x ) g (vx)^g ( v x ) g . Since g = m + ∣ κ ∣ − 2 ∣ η ∣ g=m+|\kappa|-2|\eta| g = m + ∣ κ ∣ − 2∣ η ∣ , we have
v ∣ κ ∣ ( v 2 x ) ∣ η ∣ − ∣ κ ∣ ( v x ) g = v m x m − ∣ η ∣ . v^{|\kappa|}(v^2x)^{|\eta|-|\kappa|}(vx)^g=v^m x^{m-|\eta|}. v ∣ κ ∣ ( v 2 x ) ∣ η ∣ − ∣ κ ∣ ( v x ) g = v m x m − ∣ η ∣ .
This is the monomial of the unreflected weight. Equation (4.12) then cancels the shape denominator, exactly as in Proposition 4.2.
For the left boundary, the desired shape coefficient is
τ c ( ν ) v a ( ν / η ) = β c ( ν ) b η u a ( ν / η ) . \tau_c(\nu)v_a(\nu/\eta)=\frac{\beta_c(\nu)}{b_\eta}u_a(\nu/\eta). τ c ( ν ) v a ( ν / η ) = b η β c ( ν ) u a ( ν / η ) .
The factor b η − 1 b_\eta^{-1} b η − 1 is constant over possible ν \nu ν , so its normalized shape distribution is again (4.13). On the reflected side,
τ c ( κ ) u a ( η / κ ) = β c ( κ ) b η v a ( η / κ ) . \tau_c(\kappa)u_a(\eta/\kappa)=\frac{\beta_c(\kappa)}{b_\eta}v_a(\eta/\kappa). τ c ( κ ) u a ( η / κ ) = b η β c ( κ ) v a ( η / κ ) .
The same coefficient identity and the same monomial calculation with u u u instead of v v v establish the left-boundary balance.
Same-sign commutations
For two adjacent steps with the same sign, we exchange their order, keep the outer partitions fixed, and sample a new intermediate partition with probabilities proportional to the product of the two transition weights in the new order.
First consider the swap
( a , + , x ) , ( b , + , y ) ⟶ ( b , + , y ) , ( a , + , x ) . (a,+,x),(b,+,y)\longrightarrow(b,+,y),(a,+,x). ( a , + , x ) , ( b , + , y ) ⟶ ( b , + , y ) , ( a , + , x ) .
For fixed endpoints α ⊆ γ \alpha\subseteq\gamma α ⊆ γ , the skew branching identity gives
∑ α ⊆ ν ⊆ γ U a ( ν / α ; x ) U b ( γ / ν ; y ) = ∑ α ⊆ ζ ⊆ γ U b ( ζ / α ; y ) U a ( γ / ζ ; x ) . (32) \sum_{\alpha\subseteq\nu\subseteq\gamma} U_a(\nu/\alpha;x)U_b(\gamma/\nu;y)
=
\sum_{\alpha\subseteq\zeta\subseteq\gamma} U_b(\zeta/\alpha;y)U_a(\gamma/\zeta;x). \tag*{(32)} α ⊆ ν ⊆ γ ∑ U a ( ν / α ; x ) U b ( γ / ν ; y ) = α ⊆ ζ ⊆ γ ∑ U b ( ζ / α ; y ) U a ( γ / ζ ; x ) . (32)
Let ζ \zeta ζ be the current intermediate partition in the swapped order. To restore the order ( a , + , x ) , ( b , + , y ) (a,+,x),(b,+,y) ( a , + , x ) , ( b , + , y ) , replace ζ \zeta ζ by a partition ν \nu ν sampled according to
P ( ν ∣ α , γ , ζ ) = U a ( ν / α ; x ) U b ( γ / ν ; y ) ∑ α ⊆ θ ⊆ γ U a ( θ / α ; x ) U b ( γ / θ ; y ) , α ⊆ ν ⊆ γ , (33) \mathbb{P}(\nu\mid\alpha,\gamma,\zeta)=
\frac{U_a(\nu/\alpha;x)U_b(\gamma/\nu;y)}
{\sum_{\alpha\subseteq\theta\subseteq\gamma}U_a(\theta/\alpha;x)U_b(\gamma/\theta;y)},
\qquad\alpha\subseteq\nu\subseteq\gamma, \tag*{(33)} P ( ν ∣ α , γ , ζ ) = ∑ α ⊆ θ ⊆ γ U a ( θ / α ; x ) U b ( γ / θ ; y ) U a ( ν / α ; x ) U b ( γ / ν ; y ) , α ⊆ ν ⊆ γ , (33)
with probability zero outside this range.
For a decreasing pair, consider
( a , − , x ) , ( b , − , y ) ⟶ ( b , − , y ) , ( a , − , x ) , (a,-,x),(b,-,y)\longrightarrow(b,-,y),(a,-,x), ( a , − , x ) , ( b , − , y ) ⟶ ( b , − , y ) , ( a , − , x ) ,
with fixed endpoints γ ⊆ α \gamma\subseteq\alpha γ ⊆ α . In this case,
∑ γ ⊆ ν ⊆ α V a ( α / ν ; x ) V b ( ν / γ ; y ) = ∑ γ ⊆ ζ ⊆ α V b ( α / ζ ; y ) V a ( ζ / γ ; x ) . (34) \sum_{\gamma\subseteq\nu\subseteq\alpha} V_a(\alpha/\nu;x)V_b(\nu/\gamma;y)
=
\sum_{\gamma\subseteq\zeta\subseteq\alpha} V_b(\alpha/\zeta;y)V_a(\zeta/\gamma;x). \tag*{(34)} γ ⊆ ν ⊆ α ∑ V a ( α / ν ; x ) V b ( ν / γ ; y ) = γ ⊆ ζ ⊆ α ∑ V b ( α / ζ ; y ) V a ( ζ / γ ; x ) . (34)
To restore the order ( a , − , x ) , ( b , − , y ) (a,-,x),(b,-,y) ( a , − , x ) , ( b , − , y ) , replace the current intermediate partition ζ \zeta ζ by a sample from
P ( ν ∣ α , γ , ζ ) = V a ( α / ν ; x ) V b ( ν / γ ; y ) ∑ γ ⊆ θ ⊆ α V a ( α / θ ; x ) V b ( θ / γ ; y ) , γ ⊆ ν ⊆ α , (35) \mathbb{P}(\nu\mid\alpha,\gamma,\zeta)=
\frac{V_a(\alpha/\nu;x)V_b(\nu/\gamma;y)}
{\sum_{\gamma\subseteq\theta\subseteq\alpha}V_a(\alpha/\theta;x)V_b(\theta/\gamma;y)},
\qquad\gamma\subseteq\nu\subseteq\alpha, \tag*{(35)} P ( ν ∣ α , γ , ζ ) = ∑ γ ⊆ θ ⊆ α V a ( α / θ ; x ) V b ( θ / γ ; y ) V a ( α / ν ; x ) V b ( ν / γ ; y ) , γ ⊆ ν ⊆ α , (35)
with probability zero outside this range.
Both sampling rules are implemented by enumerating the partitions between the fixed endpoints, computing the product of the two transition weights for each candidate, and normalizing these products to obtain sampling probabilities. Candidates that violate the strip conditions have zero weight. The normalizing sums are finite and, by (32) and (34) , strictly positive whenever the product of the two current transition weights is positive.
Given the endpoints and the step parameters, these distributions do not depend on ζ \zeta ζ . The size of ν \nu ν is not prescribed, so the powers of x x x and y y y in the full edge weights must be retained. Each commutation identity equates the total local weights in the two orders. Resampling the intermediate partition as above therefore gives the conditional distribution for the restored order while preserving the weights of the fixed exterior.
Embedding local identities into a process
Lemma 4.5 (Local transport with a fixed exterior). Let e e e denote the unchanged exterior data, and let A e ( ν ) A_e(\nu) A e ( ν ) and B e ( κ ) B_e(\kappa) B e ( κ ) be the nonnegative local weights of the original and reduced models, respectively. Suppose that, for each e e e , a Markov kernel T e T_e T e satisfies
∑ κ B e ( κ ) T e ( κ , ν ) = A e ( ν ) f , \sum_{\kappa} B_e(\kappa)T_e(\kappa,\nu) = \frac{A_e(\nu)}{f}, κ ∑ B e ( κ ) T e ( κ , ν ) = f A e ( ν ) , where f > 0 f > 0 f > 0 is independent of e e e . Let H ( e ) H(e) H ( e ) be a common nonnegative exterior weight such that
Z A = ∑ e , ν H ( e ) A e ( ν ) , Z B = ∑ e , κ H ( e ) B e ( κ ) Z_A = \sum_{e,\nu} H(e)A_e(\nu), \qquad Z_B = \sum_{e,\kappa} H(e)B_e(\kappa) Z A = e , ν ∑ H ( e ) A e ( ν ) , Z B = e , κ ∑ H ( e ) B e ( κ ) are finite and positive. Then the update that keeps e e e fixed and applies T e T_e T e to the local variables transports the normalized measure with weights H ( e ) B e ( κ ) H(e)B_e(\kappa) H ( e ) B e ( κ ) to the normalized measure with weights H ( e ) A e ( ν ) H(e)A_e(\nu) H ( e ) A e ( ν ) .
Proof. Multiplying the local identity by H ( e ) H(e) H ( e ) , summing over e , ν e,\nu e , ν , and using the stochasticity of T e T_e T e , we obtain
Z A = f ∑ e , κ H ( e ) B e ( κ ) ∑ ν T e ( κ , ν ) = f Z B . Z_A = f \sum_{e,\kappa} H(e)B_e(\kappa) \sum_{\nu} T_e(\kappa,\nu) = fZ_B. Z A = f e , κ ∑ H ( e ) B e ( κ ) ν ∑ T e ( κ , ν ) = f Z B .
Consequently, for each ( e , ν ) (e,\nu) ( e , ν ) ,
∑ κ H ( e ) B e ( κ ) Z B T e ( κ , ν ) = H ( e ) A e ( ν ) f Z B = H ( e ) A e ( ν ) Z A , \sum_{\kappa} \frac{H(e)B_e(\kappa)}{Z_B} T_e(\kappa,\nu) = \frac{H(e)A_e(\nu)}{fZ_B} = \frac{H(e)A_e(\nu)}{Z_A}, κ ∑ Z B H ( e ) B e ( κ ) T e ( κ , ν ) = f Z B H ( e ) A e ( ν ) = Z A H ( e ) A e ( ν ) ,
which is the desired transport identity. Nonnegativity justifies all rearrangements of sums. □ \square □
For bulk, boundary, and same-sign moves, the factor f f f in Lemma 4.5 is C a b ( x y ) C_{ab}(xy) C ab ( x y ) , F c , a ( h x ) F_{c,a}(hx) F c , a ( h x ) , and 1 1 1 , respectively. These factors depend only on the model parameters, not on the partitions. Hence, if the current partition sequence has the process law associated with the labelled word after a local reduction, the corresponding reverse kernel produces the process law associated with the labelled word before that reduction. Applying this argument successively to the recorded moves proves correctness of the full reverse reconstruction.
A finite commutation–reflection history
A reduction acts only on the labelled word and its parameters; no random partitions are needed to build it. Record each move together with its location, types, and pre-move parameters. This information is essential when the history is replayed backwards.
First, repeatedly replace adjacent + + + , − - − pairs by − - − , + + + pairs until the word is stably sorted, with every minus before every plus. Denote the resulting word by w ˉ \bar{w} w ˉ , with its parameters reordered along with the labels. Its sign sequence is
− ⋯ − + ⋯ + . - \cdots- + \cdots+. − ⋯ − + ⋯ + .
This initial sorting uses at most N ( N − 1 ) / 2 N(N-1)/2 N ( N − 1 ) /2 adjacent swaps.
Starting from the sorted labelled word, process each labelled letter once. A minus letter is moved to the left boundary, reflected, moved to the right boundary, reflected again, and returned to its starting slot. A plus letter follows the opposite boundary order: it is moved first to the right boundary, then to the left boundary, and finally back to its starting slot. Moving a labelled letter between slots is done by successive adjacent swaps.
Lemma 5.1 (One reflection period). After a plus or minus letter has visited both boundaries in the order described above and returned to its starting slot, the ordering of the labelled letters is the same as before, and the travelling letter has recovered its original sign. Every opposite-sign swap encountered during this procedure is a reduction of the form
+ , − ⟶ − , + . +,- \longrightarrow-,+. + , − ⟶ − , + . The parameter carried by the travelling letter is multiplied by u 2 v 2 u^{2}v^{2} u 2 v 2 . Consequently, after all N N N labelled letters have been processed once, the sorted labelled word is restored, with every parameter multiplied by
r = ( u v ) 2 . (36) r=(uv)^{2}. \tag*{(36)} r = ( uv ) 2 . (36) One period uses 2 N 2N 2 N reflections and exactly 2 N ( N − 1 ) 2N(N-1) 2 N ( N − 1 ) adjacent swaps.
Proof. Consider a minus letter in slot j j j . Since the word is sorted, moving it to the left boundary crosses only minus letters. The left reflection changes its sign to + + + and multiplies its parameter by u 2 u^{2} u 2 .
The letter then moves from the left boundary to the right boundary. Whenever it crosses a letter of the opposite sign, the adjacent pair is
+ , − ⟶ − , + . +,- \longrightarrow-,+. + , − ⟶ − , + .
All remaining swaps are between two plus letters. At the right boundary, the second reflection changes the travelling letter back to − - − and multiplies its parameter by v 2 v^{2} v 2 .
On the return from the right boundary to slot j j j , every opposite-sign swap again has the form
+ , − ⟶ − , + , +,- \longrightarrow-,+, + , − ⟶ − , + ,
and all remaining swaps are between two minus letters.
The three parts of the route use
( j − 1 ) + ( N − 1 ) + ( N − j ) = 2 ( N − 1 ) (j-1)+(N-1)+(N-j)=2(N-1) ( j − 1 ) + ( N − 1 ) + ( N − j ) = 2 ( N − 1 )
adjacent swaps. The other labelled letters never swap with one another, so their relative order is unchanged. When the travelling letter returns to slot j j j , the full ordering is therefore restored. The two reflections restore its original sign and multiply its parameter by u 2 v 2 u^{2}v^{2} u 2 v 2 .
The argument for a plus letter is the same with left and right interchanged. Hence processing all N N N labelled letters uses 2 N 2N 2 N reflections and exactly 2 N ( N − 1 ) 2N(N-1) 2 N ( N − 1 ) adjacent swaps, and multiplies every parameter by u 2 v 2 u^{2}v^{2} u 2 v 2 . □
The resulting sequence of swaps and reflections is recorded in Algorithm 1.
Before stating the algorithm, we specify how moves are recorded. A recorded adjacent swap consists of the following two operations:
append to the ordered list H \mathcal{H} H the current slot of the pair and the complete pre-swap data of the two labelled letters, including their labels, types, signs, and parameters;
interchange the two labelled letters.
Moving a labelled letter from one slot to another by recorded adjacent swaps means repeatedly applying this operation to the next adjacent pair in the required direction.
A recorded left reflection appends to H \mathcal{H} H the pre-reflection data of the labelled letter and the information that the reflection occurs at the left boundary; it then changes the sign from − - − to + + + and replaces x i x_i x i by u 2 x i u^{2}x_i u 2 x i . A recorded right reflection is defined analogously: it records the pre-reflection data, changes the sign from + + + to − - − , and replaces x i x_i x i by v 2 x i v^{2}x_i v 2 x i .
Algorithm 1 Build a reduction history
Require: A labelled word w w w and a period cutoff K ∈ Z ≥ 0 K \in\mathbb{Z}_{\ge0} K ∈ Z ≥ 0 .
Initialize H \mathcal{H} H as an empty ordered list.
while an adjacent + + + , − - − pair exists do
Perform a recorded adjacent swap on this pair.
end while
Let w ˉ \bar{w} w ˉ be the resulting sorted labelled word.
for k = 1 , … , K k = 1, \ldots, K k = 1 , … , K do
for j = 1 , … , N j = 1, \ldots, N j = 1 , … , N do
Let i i i be the label of the letter currently in slot j j j .
if letter i i i is a minus letter then
Move i i i to slot 1 by recorded adjacent swaps.
Apply a recorded left reflection to i i i .
Move i i i to slot N N N by recorded adjacent swaps.
Apply a recorded right reflection to i i i .
else
Move i i i to slot N N N by recorded adjacent swaps.
Apply a recorded right reflection to i i i .
Move i i i to slot 1 by recorded adjacent swaps.
Apply a recorded left reflection to i i i .
end if
Move i i i back to slot j j j by recorded adjacent swaps.
end for
end for
return H \mathcal{H} H and the final labelled word, which is w ˉ \bar{w} w ˉ with every parameter multiplied by r K r^K r K .
The terminal seed and its truncation
Put z = u v z = uv z = uv . If every edge parameter is zero, every consecutive pair of partitions must be equal. The common partition has weight
h c l , c r ( λ ) z ∣ λ ∣ , h c l , c r ( λ ) = β c l ( λ ) β c r ( λ ) b λ . (37) h_{\mathrm{cl,cr}}(\lambda)z^{|\lambda|}, \qquad h_{\mathrm{cl,cr}}(\lambda) = \frac{\beta_{\mathrm{cl}}(\lambda)\beta_{\mathrm{cr}}(\lambda)}{b_\lambda}. \tag*{(37)} h cl , cr ( λ ) z ∣ λ ∣ , h cl , cr ( λ ) = b λ β cl ( λ ) β cr ( λ ) . (37)
Thus define
Z ( z ) = ∑ λ ∈ Y h c l , c r ( λ ) z ∣ λ ∣ , ρ ( λ ) = h c l , c r ( λ ) z ∣ λ ∣ Z ( z ) . (38) \mathfrak{Z}(z) = \sum_{\lambda\in\mathcal{Y}} h_{\mathrm{cl,cr}}(\lambda)z^{|\lambda|}, \qquad\rho(\lambda) = \frac{h_{\mathrm{cl,cr}}(\lambda)z^{|\lambda|}}{\mathfrak{Z}(z)}. \tag*{(38)} Z ( z ) = λ ∈ Y ∑ h cl , cr ( λ ) z ∣ λ ∣ , ρ ( λ ) = Z ( z ) h cl , cr ( λ ) z ∣ λ ∣ . (38)
The scalar Z \mathfrak{Z} Z is the terminal normalization in [2 (3.2)] . In particular, the summation is over all allowed partitions, not just single rows.
For M ∈ Z ≥ 0 M \in\mathbb{Z}_{\ge0} M ∈ Z ≥ 0 , let
Z M ( z ) = ∑ ∣ λ ∣ ≤ M h c l , c r ( λ ) z ∣ λ ∣ , ρ M ( λ ) = 1 { ∣ λ ∣ ≤ M } h c l , c r ( λ ) z ∣ λ ∣ Z M ( z ) . (39) \mathfrak{Z}_M(z) = \sum_{|\lambda|\le M} h_{\mathrm{cl,cr}}(\lambda)z^{|\lambda|}, \qquad\rho_M(\lambda) = \frac{\mathbf{1}_{\{|\lambda|\le M\}}h_{\mathrm{cl,cr}}(\lambda)z^{|\lambda|}}{\mathfrak{Z}_M(z)}. \tag*{(39)} Z M ( z ) = ∣ λ ∣ ≤ M ∑ h cl , cr ( λ ) z ∣ λ ∣ , ρ M ( λ ) = Z M ( z ) 1 { ∣ λ ∣ ≤ M } h cl , cr ( λ ) z ∣ λ ∣ . (39)
This is a finite categorical distribution with weights given by finite box products. It can be sampled without evaluating Z ( z ) \mathfrak{Z}(z) Z ( z ) . When used to initialize a path, ρ M \rho_M ρ M means the law of ( Λ , … , Λ ) (\Lambda,\ldots,\Lambda) ( Λ , … , Λ ) with Λ ∼ ρ M \Lambda\sim\rho_M Λ ∼ ρ M .
Proposition 7.4 gives an exact sampler for ρ \rho ρ without evaluating Z ( z ) \mathfrak{Z}(z) Z ( z ) ; Algorithm 2 uses the truncated seed ρ M \rho_M ρ M .
Algorithm 2 Approximate doubly free-boundary Macdonald sampler
Require: Word w w w , boundary data ( u , v , c l , c r ) (u,v,c_l,c_r) ( u , v , c l , c r ) , and cutoffs K , M ∈ Z ≥ 0 K,M\in\mathbb{Z}_{\geq0} K , M ∈ Z ≥ 0 .
Construct the history H \mathcal{H} H using Algorithm 1.
Sample Λ ∼ ρ M \Lambda\sim\rho_M Λ ∼ ρ M and set λ ( i ) ← Λ \lambda^{(i)}\leftarrow\Lambda λ ( i ) ← Λ for i = 0 , … , N i=0,\ldots,N i = 0 , … , N .
for recorded moves in H \mathcal{H} H , in reverse order do
Read the move location and pre-move letter data from the record.
if the recorded move was an adjacent swap ( + , − ) → ( − , + ) (+,-)\to(-,+) ( + , − ) → ( − , + ) then
Read the outer partitions λ , μ \lambda,\mu λ , μ and current valley κ \kappa κ .
Draw G ∼ G a b ( x y ) G\sim G_{ab}(xy) G ∼ G ab ( x y ) .
Set m ← ∣ λ ∣ + ∣ μ ∣ − ∣ κ ∣ + G m\leftarrow|\lambda|+|\mu|-|\kappa|+G m ← ∣ λ ∣ + ∣ μ ∣ − ∣ κ ∣ + G .
Replace the valley partition κ \kappa κ by a sample from (23) .
else if the recorded move was a boundary reflection then
Read the current boundary partition κ \kappa κ and its neighbor η \eta η .
Set ( h , c ) ← ( u , c l ) (h,c)\leftarrow(u,c_l) ( h , c ) ← ( u , c l ) on the left, or ( v , c r ) (v,c_r) ( v , c r ) on the right.
Draw B ∼ B c , a ( h x ) B\sim B_{c,a}(hx) B ∼ B c , a ( h x ) and set m ← 2 ∣ η ∣ − ∣ κ ∣ + B m\leftarrow2|\eta|-|\kappa|+B m ← 2∣ η ∣ − ∣ κ ∣ + B .
Replace the boundary partition κ \kappa κ by a sample from (31) .
else ▷ Same-sign adjacent swap
Resample the middle partition using (33) for ( + , + ) (+,+) ( + , + ) or (35) for ( − , − ) (-,-) ( − , − ) .
end if
end for
return the partition sequence on the original word w w w .
Reverse replay
The seed and all scalar increments are drawn using independent randomness. The scalar distributions depend only on the recorded types and parameters, so these increments may be sampled before reverse replay. Each shape draw uses the current partition path and the recorded pre-move weights; it cannot be determined from the history alone.
Let n + n_+ n + and n − n_- n − be the numbers of plus and minus letters, and define
I ( w ) = # { ( i , j ) : 1 ≤ i < j ≤ N , σ i = + , σ j = − } . I(w)=\#\{(i,j):1\leq i<j\leq N,\ \sigma_i=+,\ \sigma_j=-\}. I ( w ) = # {( i , j ) : 1 ≤ i < j ≤ N , σ i = + , σ j = − } .
Initial sorting uses exactly I ( w ) I(w) I ( w ) swaps. Since n + + n − = N n_++n_-=N n + + n − = N , I ( w ) ≤ n + n − ≤ ⌊ N 2 / 4 ⌋ I(w)\leq n_+n_-\leq\lfloor N^2/4\rfloor I ( w ) ≤ n + n − ≤ ⌊ N 2 /4 ⌋ . In one reflection period, each travelling letter crosses every other letter twice, once with the same sign and once with the opposite sign, and undergoes two boundary reflections. Thus the history contains
L b u l k = I ( w ) + K N ( N − 1 ) , L b d r y = 2 K N , L s a m e = K N ( N − 1 ) L_{\mathrm{bulk}}=I(w)+KN(N-1),\qquad L_{\mathrm{bdry}}=2KN,\qquad L_{\mathrm{same}}=KN(N-1) L bulk = I ( w ) + K N ( N − 1 ) , L bdry = 2 K N , L same = K N ( N − 1 )
bulk, boundary, and same-sign moves, respectively. Consequently,
L K = I ( w ) + 2 K N 2 ≤ n + n − + 2 K N 2 ≤ ⌊ N 2 4 ⌋ + 2 K N 2 . (40) L_K=I(w)+2KN^2\leq n_+n_-+2KN^2\leq\left\lfloor\frac{N^2}{4}\right\rfloor+2KN^2. \tag*{(40)} L K = I ( w ) + 2 K N 2 ≤ n + n − + 2 K N 2 ≤ ⌊ 4 N 2 ⌋ + 2 K N 2 . (40)
This is the exact number of reverse local updates; M M M does not affect it. At unit cost per letter or scalar-parameter operation, the history can be constructed in O ( N + L K ) O(N+L_K) O ( N + L K ) operations. The word and its records occupy O ( N + L K ) O(N+L_K) O ( N + L K ) entries. Initial sorting can be implemented by scanning the word and moving each minus letter left past the preceding plus letters.
Let n L n_L n L and n R n_R n R be the numbers of letters of types L L L and R R R , so that n L + n R = N n_L+n_R=N n L + n R = N . Define
I s a m e : = # { ( i , j ) : 1 ≤ i < j ≤ N , σ i = + , σ j = − , a i = a j } , I m i x : = I ( w ) − I s a m e . I_{\mathrm{same}}:=\#\{(i,j):1\leq i<j\leq N,\ \sigma_i=+,\ \sigma_j=-,\ a_i=a_j\},\qquad I_{\mathrm{mix}}:=I(w)-I_{\mathrm{same}}. I same := # {( i , j ) : 1 ≤ i < j ≤ N , σ i = + , σ j = − , a i = a j } , I mix := I ( w ) − I same .
Initial sorting requires I s a m e I_{\mathrm{same}} I same calls to the rejection sampler of Lemma 3.1 and I m i x I_{\mathrm{mix}} I mix direct Bernoulli draws. Each reflection period has n L ( n L − 1 ) + n R ( n R − 1 ) n_L(n_L-1)+n_R(n_R-1) n L ( n L − 1 ) + n R ( n R − 1 ) same-type bulk moves, each requiring one call to Lemma 3.1, and 2 n L n R 2n_Ln_R 2 n L n R mixed-type bulk moves, each requiring only a direct Bernoulli draw.
Every labelled letter visits each boundary once per period. For a boundary of type c c c , let d ( c ) d(c) d ( c ) count the zero increments and b ( c ) b(c) b ( c ) count the additional Bernoulli draws in one period. The boundary increment laws give
The remaining N − d ( c ) N-d(c) N − d ( c ) boundary increments each require one call to Lemma 3.1.
The total number of bulk and boundary moves is
D = L b u l k + L b d r y = I ( w ) + K N ( N + 1 ) . D=L_{\mathrm{bulk}}+L_{\mathrm{bdry}}=I(w)+KN(N+1). D = L bulk + L bdry = I ( w ) + K N ( N + 1 ) .
The exact number of calls to Lemma 3.1 is
n N B = I s a m e + K [ n L 2 + n R 2 + N − d ( c l ) − d ( c r ) ] = D − I m i x − 2 K n L n R − K [ d ( c l ) + d ( c r ) ] . \begin{aligned}
n_{\mathrm{NB}}=I_{\mathrm{same}}+K\left[n_L^2+n_R^2+N-d(c_l)-d(c_r)\right] \\
&=D-I_{\mathrm{mix}}-2Kn_Ln_R-K\left[d(c_l)+d(c_r)\right].
\end{aligned} n NB = I same + K [ n L 2 + n R 2 + N − d ( c l ) − d ( c r ) ] = D − I mix − 2 K n L n R − K [ d ( c l ) + d ( c r ) ] .
Since
I s a m e ≤ ⌊ n L 2 4 ⌋ + ⌊ n R 2 4 ⌋ , I_{\mathrm{same}}\le\left\lfloor\frac{n_L^2}{4}\right\rfloor+\left\lfloor\frac{n_R^2}{4}\right\rfloor, I same ≤ ⌊ 4 n L 2 ⌋ + ⌊ 4 n R 2 ⌋ ,
we obtain the sharper bound
n N B ≤ ⌊ n L 2 4 ⌋ + ⌊ n R 2 4 ⌋ + K [ n L 2 + n R 2 + N − d ( c l ) − d ( c r ) ] . n_{\mathrm{NB}}\le\left\lfloor\frac{n_L^2}{4}\right\rfloor+\left\lfloor\frac{n_R^2}{4}\right\rfloor+K\left[n_L^2+n_R^2+N-d(c_l)-d(c_r)\right]. n NB ≤ ⌊ 4 n L 2 ⌋ + ⌊ 4 n R 2 ⌋ + K [ n L 2 + n R 2 + N − d ( c l ) − d ( c r ) ] .
For fixed type counts and boundary types, this bound is attained by balancing the signs within each type and placing all plus letters before all minus letters.
The exact number of direct Bernoulli draws is
n B e r n = I m i x + 2 K n L n R + K [ b ( c l ) + b ( c r ) ] ≤ ( 2 K + 1 ) n L n R + K [ b ( c l ) + b ( c r ) ] . n_{\mathrm{Bern}}=I_{\mathrm{mix}}+2Kn_Ln_R+K\left[b(c_l)+b(c_r)\right]\le(2K+1)n_Ln_R+K\left[b(c_l)+b(c_r)\right]. n Bern = I mix + 2 K n L n R + K [ b ( c l ) + b ( c r ) ] ≤ ( 2 K + 1 ) n L n R + K [ b ( c l ) + b ( c r ) ] .
This count excludes the acceptance tests inside Lemma 3.1. The K [ d ( c l ) + d ( c r ) ] K[d(c_l)+d(c_r)] K [ d ( c l ) + d ( c r )] deterministic increments are set to zero without random sampling.
Index the calls to Lemma 3.1 by j = 1 , … , n N B j=1,\ldots,n_{\mathrm{NB}} j = 1 , … , n NB . Call j j j samples N B Q j ( A j , s j ) \mathrm{NB}_{Q_j}(A_j,s_j) NB Q j ( A j , s j ) , where
( A j , Q j ) ∈ { ( t , q ) , ( q , t ) , ( q t , q 2 ) , ( q t , t 2 ) } . (A_j,Q_j)\in\{(t,q),(q,t),(qt,q^2),(qt,t^2)\}. ( A j , Q j ) ∈ {( t , q ) , ( q , t ) , ( q t , q 2 ) , ( q t , t 2 )} .
The argument s j s_j s j is the corresponding recorded value of x y xy x y , h x hx h x , or ( h x ) 2 (hx)^2 ( h x ) 2 , where h = u h=u h = u for a left boundary reflection and h = v h=v h = v for a right boundary reflection. Recall that
H Q = ( 1 − Q ) − ⌈ ( 1 − Q ) − 1 ⌉ , H_Q=(1-Q)^{-\lceil(1-Q)^{-1}\rceil}, H Q = ( 1 − Q ) − ⌈( 1 − Q ) − 1 ⌉ ,
K A , Q ( s ) = ∏ r = 0 ∞ 1 − A s Q r 1 − s Q r . K_{A,Q}(s)=\prod_{r=0}^{\infty}\frac{1-AsQ^r}{1-sQ^r}. K A , Q ( s ) = r = 0 ∏ ∞ 1 − s Q r 1 − A s Q r .
The coefficient bound in Lemma 3.1 and the first factor of this product give
1 − A s 1 − s ≤ K A , Q ( s ) ≤ H Q 1 − s . \frac{1-As}{1-s}\le K_{A,Q}(s)\le\frac{H_Q}{1-s}. 1 − s 1 − A s ≤ K A , Q ( s ) ≤ 1 − s H Q .
Each trial in call j j j succeeds independently with probability
p j = ( 1 − s j ) K A j , Q j ( s j ) H Q j . p_j=\frac{(1-s_j)K_{A_j,Q_j}(s_j)}{H_{Q_j}}. p j = H Q j ( 1 − s j ) K A j , Q j ( s j ) .
Let T j T_j T j count its trials, including the successful trial. Then T j T_j T j has a geometric distribution on { 1 , 2 , … } \{1,2,\ldots\} { 1 , 2 , … } , with
μ j : = E [ T j ] = H Q j ( 1 − s j ) K A j , Q j ( s j ) , \mu_j:=\mathbb{E}[T_j]=\frac{H_{Q_j}}{(1-s_j)K_{A_j,Q_j}(s_j)}, μ j := E [ T j ] = ( 1 − s j ) K A j , Q j ( s j ) H Q j ,
Var ( T j ) = μ j ( μ j − 1 ) . \operatorname{Var}(T_j)=\mu_j(\mu_j-1). Var ( T j ) = μ j ( μ j − 1 ) .
Writing U j = H Q j / ( 1 − A j s j ) U_j=H_{Q_j}/(1-A_js_j) U j = H Q j / ( 1 − A j s j ) , the preceding lower bound implies μ j ≤ U j ≤ H Q j / ( 1 − A j ) \mu_j\le U_j\le H_{Q_j}/(1-A_j) μ j ≤ U j ≤ H Q j / ( 1 − A j ) . For ϑ = max ( q , t ) \vartheta=\max(q,t) ϑ = max ( q , t ) , all calls satisfy A j , Q j ≤ ϑ A_j,Q_j\le\vartheta A j , Q j ≤ ϑ . Since H Q H_Q H Q is nondecreasing in Q Q Q , set
U ∗ : = H ϑ 1 − ϑ , U j ≤ U ∗ . U_*:=\frac{H_\vartheta}{1-\vartheta},\qquad U_j\le U_*. U ∗ := 1 − ϑ H ϑ , U j ≤ U ∗ .
The calls use independent randomness. Hence their total trial count T t o t = ∑ j T j T_{\mathrm{tot}}=\sum_jT_j T tot = ∑ j T j satisfies
E [ T t o t ] = ∑ j μ j ≤ ∑ j U j ≤ n N B U ∗ ≤ D U ∗ , \mathbb{E}[T_{\mathrm{tot}}]=\sum_j\mu_j\le\sum_jU_j\le n_{\mathrm{NB}}U_*\le DU_*, E [ T tot ] = j ∑ μ j ≤ j ∑ U j ≤ n NB U ∗ ≤ D U ∗ ,
Var ( T t o t ) = ∑ j μ j ( μ j − 1 ) ≤ ∑ j U j ( U j − 1 ) ≤ D U ∗ ( U ∗ − 1 ) . \operatorname{Var}(T_{\mathrm{tot}})=\sum_j\mu_j(\mu_j-1)\le\sum_jU_j(U_j-1)\le DU_*(U_*-1). Var ( T tot ) = j ∑ μ j ( μ j − 1 ) ≤ j ∑ U j ( U j − 1 ) ≤ D U ∗ ( U ∗ − 1 ) .
A trial proposing J J J computes k J ( A j , Q j ) k_J(A_j,Q_j) k J ( A j , Q j ) using J J J finite-product factors. Including the acceptance test, this takes O ( J + 1 ) O(J+1) O ( J + 1 ) operations under unit-cost arithmetic and random sampling primitives. Define
x ∗ : = max i x i , b ∗ : = max ( u , v ) x ∗ , s ∗ : = max ( x ∗ 2 , b ∗ ) < 1. x_*:=\max_i x_i,\qquad b_*:=\max(u,v)x_*,\qquad s_*:=\max(x_*^2,b_*)<1. x ∗ := i max x i , b ∗ := max ( u , v ) x ∗ , s ∗ := max ( x ∗ 2 , b ∗ ) < 1.
Recorded letter parameters never exceed x ∗ x_* x ∗ , so every call satisfies s j ≤ s ∗ s_j\le s_* s j ≤ s ∗ . In the j j j th run of the rejection sampler in Lemma 3.1, let J j , r J_{j,r} J j , r be the candidate integer drawn in the r r r th attempt. Its geometric distribution gives E [ J j , r ] = s j / ( 1 − s j ) \mathbb{E}[J_{j,r}]=s_j/(1-s_j) E [ J j , r ] = s j / ( 1 − s j ) . The event that trial r r r is reached depends only on previous trials, so it is independent of J j , r J_{j,r} J j , r . Therefore
E [ ∑ j = 1 n N B ∑ r = 1 T j ( 1 + J j , r ) ] = ∑ j = 1 n N B μ j 1 − s j ≤ n N B U ∗ 1 − s ∗ ≤ D U ∗ 1 − s ∗ . \mathbb{E}\left[\sum_{j=1}^{n_{\mathrm{NB}}}\sum_{r=1}^{T_j}(1+J_{j,r})\right]
=\sum_{j=1}^{n_{\mathrm{NB}}}\frac{\mu_j}{1-s_j}
\le\frac{n_{\mathrm{NB}}U_*}{1-s_*}
\le\frac{DU_*}{1-s_*}. E j = 1 ∑ n NB r = 1 ∑ T j ( 1 + J j , r ) = j = 1 ∑ n NB 1 − s j μ j ≤ 1 − s ∗ n NB U ∗ ≤ 1 − s ∗ D U ∗ .
Direct Bernoulli draws and deterministic assignments require O ( D ) O(D) O ( D ) additional operations. Thus the expected arithmetic cost of sampling all scalar increments is
O ( D + n N B U ∗ 1 − s ∗ ) , O\left(D+\frac{n_{\mathrm{NB}}U_*}{1-s_*}\right), O ( D + 1 − s ∗ n NB U ∗ ) ,
and is at most O ( D U ∗ / ( 1 − s ∗ ) ) O(DU_*/(1-s_*)) O ( D U ∗ / ( 1 − s ∗ )) .
Let p ( n ) p(n) p ( n ) be the number of partitions of n n n . If Λ ∼ ρ M \Lambda\sim\rho_M Λ ∼ ρ M is sampled by enumerating all partitions of size at most M M M , the number of candidates is
C s e e d = ∑ n = 0 M p ( n ) . C_{\mathrm{seed}}=\sum_{n=0}^{M}p(n). C seed = n = 0 ∑ M p ( n ) .
The history has finitely many records, every scalar sampler terminates almost surely, and every shape candidate set is finite. Hence Algorithm 2 terminates almost surely. Bound (40) controls the number of local updates, but shape enumeration can be expensive, so it does not imply a polynomial running time.
Total variation convergence
Let w ˉ \bar{w} w ˉ be the labelled word obtained by the initial sorting in § 5 , with all minus letters preceding all plus letters. For s ∈ ( 0 , 1 ] s \in(0,1] s ∈ ( 0 , 1 ] , let ξ s \xi_s ξ s be its normalized process after multiplying every edge parameter by s s s , and let Z s \mathcal{Z}_s Z s be its partition function. At s = 0 s=0 s = 0 , let ξ 0 \xi_0 ξ 0 be the law of ( Λ , … , Λ ) ∈ Y N + 1 (\Lambda,\ldots,\Lambda) \in\mathbb{Y}^{N+1} ( Λ , … , Λ ) ∈ Y N + 1 , where Λ ∼ ρ \Lambda\sim\rho Λ ∼ ρ . Thus
Z 0 = Z ( z ) , z = u v . (41) \mathcal{Z}_0=\mathcal{Z}(z), \qquad z=uv. \tag*{(41)} Z 0 = Z ( z ) , z = uv . (41)
Starting from a partition sequence on the final word produced by Algorithm 1, apply the local updates in reverse order: first undo the K K K reflection periods, then the initial sorting. Let R K ( λ , μ ) \mathcal{R}_K(\lambda,\mu) R K ( λ , μ ) be the probability that this procedure outputs the partition sequence μ \mu μ when started from λ \lambda λ . For an initial law α \alpha α , write α R K \alpha\mathcal{R}_K α R K for the output law after these updates:
( α R K ) ( μ ) = ∑ λ α ( λ ) R K ( λ , μ ) , (\alpha\mathcal{R}_K)(\mu)=\sum_{\lambda}\alpha(\lambda)\mathcal{R}_K(\lambda,\mu), ( α R K ) ( μ ) = λ ∑ α ( λ ) R K ( λ , μ ) ,
where the sum is over admissible partition sequences on the final word. Lemma 4.5, applied at each move, gives the exact identity
ξ r K R K = π w , r = z 2 . (42) \xi_{r_K}\mathcal{R}_K=\pi_w,\qquad r=z^2. \tag*{(42)} ξ r K R K = π w , r = z 2 . (42)
The actual output law is
π ^ K , M = ρ M R K , (43) \widehat{\pi}_{K,M}=\rho_M\mathcal{R}_K, \tag*{(43)} π K , M = ρ M R K , (43)
where ρ M \rho_M ρ M is embedded on constant paths as above.
We use the convention
∥ μ − ν ∥ T V = sup A ∣ μ ( A ) − ν ( A ) ∣ = 1 2 ∑ x ∣ μ ( x ) − ν ( x ) ∣ \|\mu-\nu\|_{\mathrm{TV}}=\sup_A|\mu(A)-\nu(A)|=\frac{1}{2}\sum_x|\mu(x)-\nu(x)| ∥ μ − ν ∥ TV = A sup ∣ μ ( A ) − ν ( A ) ∣ = 2 1 x ∑ ∣ μ ( x ) − ν ( x ) ∣
on a countable state space.
Theorem 6.1 (Two-cutoff approximation). For the process (2.9) under (1.1), Algorithm 2 is well defined and satisfies
∥ π ^ K , M − π w ∥ T V ≤ 1 − Z M ( z ) Z r K . (44) \|\widehat{\pi}_{K,M}-\pi_w\|_{\mathrm{TV}}\leq1-\frac{\mathcal{Z}_M(z)}{\mathcal{Z}_{r_K}}. \tag*{(44)} ∥ π K , M − π w ∥ TV ≤ 1 − Z r K Z M ( z ) . (44) In particular, with C = Z 1 / Z 0 − 1 < ∞ C=\mathcal{Z}_1/\mathcal{Z}_0-1<\infty C = Z 1 / Z 0 − 1 < ∞ ,
∥ π ^ K , M − π w ∥ T V ≤ C r K + ρ ( ∣ Λ ∣ > M ) . (45) \|\widehat{\pi}_{K,M}-\pi_w\|_{\mathrm{TV}}\leq Cr^K+\rho(|\Lambda|>M). \tag*{(45)} ∥ π K , M − π w ∥ TV ≤ C r K + ρ ( ∣Λ∣ > M ) . (45) Consequently,
lim K → ∞ M → ∞ ∥ π ^ K , M − π w ∥ T V = 0. (46) \lim_{\substack{K\to\infty\\M\to\infty}}\|\widehat{\pi}_{K,M}-\pi_w\|_{\mathrm{TV}}=0. \tag*{(46)} K → ∞ M → ∞ lim ∥ π K , M − π w ∥ TV = 0. (46) The limit holds along every sequence for which both cutoffs diverge.
Proof. For a partition sequence λ = ( λ ( 0 ) , … , λ ( N ) ) ∈ Y N + 1 \lambda=(\lambda^{(0)},\ldots,\lambda^{(N)})\in\mathbb{Y}^{N+1} λ = ( λ ( 0 ) , … , λ ( N ) ) ∈ Y N + 1 , define its total skew degree
D ( λ ) = ∑ i = 1 N ∣ ∣ λ ( i ) ∣ − ∣ λ ( i − 1 ) ∣ ∣ . (47) D(\lambda)=\sum_{i=1}^{N}\left||\lambda^{(i)}|-|\lambda^{(i-1)}|\right|. \tag*{(47)} D ( λ ) = i = 1 ∑ N ∣ λ ( i ) ∣ − ∣ λ ( i − 1 ) ∣ . (47)
By homogeneity, its weight under uniform edge scaling is
W s ( λ ) = s D ( λ ) W 1 ( λ ) . (48) W_s(\lambda)=s^{D(\lambda)}W_1(\lambda). \tag*{(48)} W s ( λ ) = s D ( λ ) W 1 ( λ ) . (48)
On the allowed support, consecutive partitions differ by adding or removing a horizontal or vertical strip. If D ( λ ) = 0 D(\lambda)=0 D ( λ ) = 0 , every consecutive pair has the same size, so each such strip is empty and λ ( 0 ) = ⋯ = λ ( N ) \lambda^{(0)}=\cdots=\lambda^{(N)} λ ( 0 ) = ⋯ = λ ( N ) . The converse is immediate. Therefore the D = 0 D=0 D = 0 contribution is exactly Z ( z ) \mathcal{Z}(z) Z ( z ) . Since Z 1 < ∞ \mathcal{Z}_1<\infty Z 1 < ∞ , dominated convergence gives
Z s ⟶ Z 0 ( s ↓ 0 ) . (49) \mathcal{Z}_s \longrightarrow\mathcal{Z}_0 \qquad(s\downarrow0). \tag*{(49)} Z s ⟶ Z 0 ( s ↓ 0 ) . (49)
Moreover, for 0 ≤ s ≤ 1 0\le s\le1 0 ≤ s ≤ 1 ,
0 ≤ Z s − Z 0 = ∑ D ( λ ) ≥ 1 s D ( λ ) W 1 ( λ ) ≤ s ( Z 1 − Z 0 ) . (50) 0\le\mathcal{Z}_s-\mathcal{Z}_0=\sum_{D(\lambda)\ge1}s^{D(\lambda)}W_1(\lambda)\le s(\mathcal{Z}_1-\mathcal{Z}_0). \tag*{(50)} 0 ≤ Z s − Z 0 = D ( λ ) ≥ 1 ∑ s D ( λ ) W 1 ( λ ) ≤ s ( Z 1 − Z 0 ) . (50)
Let E M E_M E M be the event that every partition is equal and their common size is at most M M M . Under ξ s \xi_s ξ s ,
ξ s ( E M ) = Z M ( z ) Z s , ξ s ( ⋅ ∣ E M ) = ρ M . (51) \xi_s(E_M)=\frac{\mathcal{Z}_M(z)}{\mathcal{Z}_s},\qquad\xi_s(\mathord{\cdot}\mid E_M)=\rho_M. \tag*{(51)} ξ s ( E M ) = Z s Z M ( z ) , ξ s ( ⋅ ∣ E M ) = ρ M . (51)
For any probability measure μ \mu μ and event E E E of positive probability, ∥ μ − μ ( ⋅ ∣ E ) ∥ T V = 1 − μ ( E ) \|\mu-\mu(\mathord{\cdot}\mid E)\|_{\mathrm{TV}}=1-\mu(E) ∥ μ − μ ( ⋅ ∣ E ) ∥ TV = 1 − μ ( E ) . This follows by splitting the half-sum defining total variation into E E E and its complement. Hence
∥ ξ s − ρ M ∥ T V = 1 − Z M ( z ) Z s . (52) \|\xi_s-\rho_M\|_{\mathrm{TV}}=1-\frac{\mathcal{Z}_M(z)}{\mathcal{Z}_s}. \tag*{(52)} ∥ ξ s − ρ M ∥ TV = 1 − Z s Z M ( z ) . (52)
Both ρ M \rho_M ρ M and ξ r K \xi_{r_K} ξ r K are processed using the same reverse updates R K \mathcal{R}_K R K . The total variation error after these updates is at most the error before them; see [8 Proposition 3(d)] . Using (42) , (43) , and (52) , we obtain
∥ π ^ K , M − π w ∥ T V = ∥ ρ M R K − ξ r K R K ∥ T V ≤ ∥ ρ M − ξ r K ∥ T V = 1 − Z M ( z ) Z r K . \begin{aligned}
\|\widehat{\pi}_{K,M}-\pi_w\|_{\mathrm{TV}}&=\|\rho_M\mathcal{R}_K-\xi_{r_K}\mathcal{R}_K\|_{\mathrm{TV}}\\
&\le\|\rho_M-\xi_{r_K}\|_{\mathrm{TV}}\\
&=1-\frac{\mathcal{Z}_M(z)}{\mathcal{Z}_{r_K}}.
\end{aligned} ∥ π K , M − π w ∥ TV = ∥ ρ M R K − ξ r K R K ∥ TV ≤ ∥ ρ M − ξ r K ∥ TV = 1 − Z r K Z M ( z ) .
This proves (44) .
Finally,
1 − Z M ( z ) Z s = Z s − Z 0 Z s + Z 0 − Z M ( z ) Z s ≤ s ( Z 1 Z 0 − 1 ) + ( 1 − Z M ( z ) Z ( z ) ) . 1-\frac{\mathcal{Z}_M(z)}{\mathcal{Z}_s}
=\frac{\mathcal{Z}_s-\mathcal{Z}_0}{\mathcal{Z}_s}+\frac{\mathcal{Z}_0-\mathcal{Z}_M(z)}{\mathcal{Z}_s}
\le s\left(\frac{\mathcal{Z}_1}{\mathcal{Z}_0}-1\right)+\left(1-\frac{\mathcal{Z}_M(z)}{\mathcal{Z}(z)}\right). 1 − Z s Z M ( z ) = Z s Z s − Z 0 + Z s Z 0 − Z M ( z ) ≤ s ( Z 0 Z 1 − 1 ) + ( 1 − Z ( z ) Z M ( z ) ) .
The final parenthesis is ρ ( ∣ Λ ∣ > M ) \rho(|\Lambda|>M) ρ ( ∣Λ∣ > M ) . This proves (45) ; the seed tail tends to zero because ρ \rho ρ is a probability measure. Almost-sure termination was established after Algorithm 2.
Corollary 6.2 (Exact seed and observables). If the seed ρ \rho ρ can be sampled exactly, then the seed-cutoff error is absent and
∥ ρ R K − π w ∥ T V ≤ 1 − Z ( z ) Z r K ≤ C r K K . \|\rho\mathcal{R}_K-\pi_w\|_{\mathrm{TV}}\le1-\frac{\mathcal{Z}(z)}{\mathcal{Z}_{r_K}}\le C r_K^K. ∥ ρ R K − π w ∥ TV ≤ 1 − Z r K Z ( z ) ≤ C r K K .
Explicit error bounds and implementation
The bound in Theorem 6.1 involves a ratio of partition functions. We give explicit truncation bounds and an expected cost bound for direct enumeration.
Reflection depth and enumeration cost
Set
ϑ = max ( q , t ) , L ∗ = ( 1 − ϑ ) − 1 , x ∗ = max i x i , b ∗ = max ( u , v ) x ∗ . (53) \vartheta=\max(q,t),\qquad L_\ast=(1-\vartheta)^{-1},\qquad x_\ast=\max_i x_i,\qquad b_\ast=\max(u,v)x_\ast. \tag*{(53)} ϑ = max ( q , t ) , L ∗ = ( 1 − ϑ ) − 1 , x ∗ = i max x i , b ∗ = max ( u , v ) x ∗ . (53)
Define
A ∗ = 2 N ( 1 + L ∗ ) b ∗ 1 − b ∗ , B ∗ = 2 N ( N − 1 ) L ∗ x ∗ 2 1 − x ∗ 2 , (54) A_\ast=2N(1+L_\ast)\frac{b_\ast}{1-b_\ast},\qquad B_\ast=2N(N-1)L_\ast\frac{x_\ast^2}{1-x_\ast^2}, \tag*{(54)} A ∗ = 2 N ( 1 + L ∗ ) 1 − b ∗ b ∗ , B ∗ = 2 N ( N − 1 ) L ∗ 1 − x ∗ 2 x ∗ 2 , (54)
H ( s ) = A ∗ s 1 − r + B ∗ s 2 1 − r 2 , r = ( u v ) 2 . H(s)=\frac{A_\ast s}{1-r}+\frac{B_\ast s^2}{1-r^2},\qquad r=(uv)^2. H ( s ) = 1 − r A ∗ s + 1 − r 2 B ∗ s 2 , r = ( uv ) 2 .
Proposition 7.1 (Reflection-depth bound). For 0 ≤ s ≤ 1 0\le s\le1 0 ≤ s ≤ 1 ,
log Z s Z 0 ≤ H ( s ) , 1 − Z 0 Z s ≤ 1 − e − H ( s ) ≤ H ( s ) . (55) \log\frac{Z_s}{Z_0}\le H(s),\qquad1-\frac{Z_0}{Z_s}\le1-e^{-H(s)}\le H(s). \tag*{(55)} log Z 0 Z s ≤ H ( s ) , 1 − Z s Z 0 ≤ 1 − e − H ( s ) ≤ H ( s ) . (55)
Proof. For every factor K A , Q K_{A,Q} K A , Q used in the history, Q ≤ ϑ Q\le\vartheta Q ≤ ϑ . Thus, for 0 ≤ y < 1 0\le y<1 0 ≤ y < 1 ,
log K A , Q ( y ) = ∑ n ≥ 1 1 − A n 1 − Q n y n n ≤ L ∗ y 1 − y . \log K_{A,Q}(y)=\sum_{n\ge1}\frac{1-A^n}{1-Q^n}\frac{y^n}{n}\le L_\ast\frac{y}{1-y}. log K A , Q ( y ) = n ≥ 1 ∑ 1 − Q n 1 − A n n y n ≤ L ∗ 1 − y y .
Together with log ( 1 + y ) ≤ y \log(1+y)\le y log ( 1 + y ) ≤ y , the bulk and boundary factor formulas (12) , (2.12), and (14) give
log C a b ( y ) ≤ L ∗ y 1 − y , log F c , a ( y ) ≤ ( 1 + L ∗ ) y 1 − y . \log C_{ab}(y)\le L_\ast\frac{y}{1-y},\qquad\log F_{c,a}(y)\le(1+L_\ast)\frac{y}{1-y}. log C ab ( y ) ≤ L ∗ 1 − y y , log F c , a ( y ) ≤ ( 1 + L ∗ ) 1 − y y .
Record the pre-move data in one reflection period started from w ˉ \bar w w ˉ with edge parameters x 1 , … , x N x_1,\ldots,x_N x 1 , … , x N . Define
F ( s ) : = ∏ opposite-sign swaps C a b ( s 2 x y ) ∏ boundary reflections F c , a ( s h x ) , F(s):=\prod_{\text{opposite-sign swaps}}C_{ab}(s^2xy)\prod_{\text{boundary reflections}}F_{c,a}(shx), F ( s ) := opposite-sign swaps ∏ C ab ( s 2 x y ) boundary reflections ∏ F c , a ( s h x ) ,
where x , y x,y x , y are the recorded pre-move edge parameters, and h = u h=u h = u at the left boundary or h = v h=v h = v at the right boundary. Multiplying every initial edge parameter by s s s multiplies every recorded edge parameter by s s s . Each factor uses the types and parameters immediately before the corresponding move, with h = u h=u h = u at the left boundary and h = v h=v h = v at the right boundary. Same-sign swaps contribute a factor of one. Throughout the period, bulk arguments are at most s 2 x ∗ 2 s^2x_\ast^2 s 2 x ∗ 2 and boundary arguments at most s b ∗ sb_\ast s b ∗ . The move counts give log F ( s ) ≤ A ∗ s + B ∗ s 2 \log F(s)\le A_\ast s+B_\ast s^2 log F ( s ) ≤ A ∗ s + B ∗ s 2 . The reduction identities give Z s = F ( s ) Z r s Z_s=F(s)Z_{rs} Z s = F ( s ) Z r s . Iterating and using Z s r j → Z 0 Z_{sr^j}\to Z_0 Z s r j → Z 0 yields
log Z s Z 0 = ∑ j ≥ 0 log F ( s r j ) ≤ A ∗ s 1 − r + B ∗ s 2 1 − r 2 . \log\frac{Z_s}{Z_0}=\sum_{j\ge0}\log F(sr^j)\le\frac{A_\ast s}{1-r}+\frac{B_\ast s^2}{1-r^2}. log Z 0 Z s = j ≥ 0 ∑ log F ( s r j ) ≤ 1 − r A ∗ s + 1 − r 2 B ∗ s 2 .
The remaining inequalities follow by exponentiation.
Theorem 7.2 (Expected cost of direct enumeration). Fix q , t , u , v , x 0 ∈ ( 0 , 1 ) q,t,u,v,x_0\in(0,1) q , t , u , v , x 0 ∈ ( 0 , 1 ) and suppose that 0 < x i ≤ x 0 0<x_i\le x_0 0 < x i ≤ x 0 for every letter. Let N ≥ 1 N\ge1 N ≥ 1 and K , M ∈ Z ≥ 0 K,M\in\mathbb{Z}_{\ge0} K , M ∈ Z ≥ 0 . Implement Algorithm 2 by direct enumeration for the initial partition and all conditional shape draws, using the weights in Appendix § 9 . Count arithmetic operations and geometric and Bernoulli draws at unit cost. If T K , M T_{K,M} T K , M is the total operation count, including history construction and initial sampling, then
E [ T K , M ] ≤ C 0 [ ( K + 1 ) ( N + 1 ) 2 e c 0 N + ( M + 1 ) 3 e c p M ] , c p = π 2 / 3 , \mathbb{E}[T_{K,M}]\le C_0\left[(K+1)(N+1)^2e^{c_0N}+(M+1)^3e^{c_p\sqrt{M}}\right],\qquad c_p=\pi\sqrt{2}/3, E [ T K , M ] ≤ C 0 [ ( K + 1 ) ( N + 1 ) 2 e c 0 N + ( M + 1 ) 3 e c p M ] , c p = π 2 /3 , where C 0 , c 0 > 0 C_0,c_0>0 C 0 , c 0 > 0 depend only on q , t , u , v , x 0 q,t,u,v,x_0 q , t , u , v , x 0 , uniformly over the word and boundary types.
Proof. Choose δ > 0 \delta> 0 δ > 0 with 2 δ < min { − log u , − log x 0 } 2\delta< \min\{-\log u,-\log x_0\} 2 δ < min { − log u , − log x 0 } . For any word encountered during replay, replace u u u by u e δ ue^\delta u e δ and multiply every edge parameter by e δ e^\delta e δ . The partition-function estimate in Appendix § 10 , applied to these modified parameters, gives
Z ~ ≤ A e B N 2 , \widetilde{Z} \le Ae^{BN^2}, Z ≤ A e B N 2 ,
with A , B > 0 A,B > 0 A , B > 0 depending only on the fixed parameters.
At any stage of the reverse reconstruction, let ν ( λ ) \nu(\lambda) ν ( λ ) be the probability that the sampler has partition sequence λ \lambda λ , and let W ( λ ) W(\lambda) W ( λ ) be its unnormalized weight for the current word. Then
ν ( λ ) ≤ W ( λ ) . \nu(\lambda) \le W(\lambda). ν ( λ ) ≤ W ( λ ) .
Indeed, initially, a constant sequence ( Λ , … , Λ ) (\Lambda,\ldots,\Lambda) ( Λ , … , Λ ) with ∣ Λ ∣ ≤ M |\Lambda| \le M ∣Λ∣ ≤ M has probability equal to its terminal weight divided by Z M ( u v ) ≥ 1 Z_M(uv) \ge1 Z M ( uv ) ≥ 1 ; all other sequences have probability zero. Each reverse update transports the current unnormalized weight to the next unnormalized weight divided by a scalar factor at least one. Thus the inequality is preserved throughout the reconstruction.
Put S = max 0 ≤ i ≤ N ∣ λ ( i ) ∣ S = \max_{0 \le i \le N} |\lambda^{(i)}| S = max 0 ≤ i ≤ N ∣ λ ( i ) ∣ . The total size variation D ( λ ) D(\lambda) D ( λ ) defined in (47) gives
S ≤ ∣ λ ( 0 ) ∣ + D ( λ ) . S \le|\lambda^{(0)}| + D(\lambda). S ≤ ∣ λ ( 0 ) ∣ + D ( λ ) .
Replacing u u u by u e δ ue^\delta u e δ and every edge parameter x x x by x e δ xe^\delta x e δ multiplies the weight by e δ ( ∣ λ ( 0 ) ∣ + D ( λ ) ) e^{\delta(|\lambda^{(0)}|+D(\lambda))} e δ ( ∣ λ ( 0 ) ∣ + D ( λ )) . Consequently,
W ~ ( λ ) = W ( λ ) e δ ( ∣ λ ( 0 ) ∣ + D ( λ ) ) ≥ W ( λ ) e δ S . \widetilde{W}(\lambda) = W(\lambda)e^{\delta(|\lambda^{(0)}|+D(\lambda))} \ge W(\lambda)e^{\delta S}. W ( λ ) = W ( λ ) e δ ( ∣ λ ( 0 ) ∣ + D ( λ )) ≥ W ( λ ) e δ S .
Therefore
E ν [ e δ S ] = ∑ λ ν ( λ ) e δ S ≤ ∑ λ W ~ ( λ ) = Z ~ ≤ A e B N 2 . \mathbb{E}_{\nu}[e^{\delta S}] = \sum_{\lambda}\nu(\lambda)e^{\delta S} \le\sum_{\lambda}\widetilde{W}(\lambda) = \widetilde{Z} \le Ae^{BN^2}. E ν [ e δ S ] = λ ∑ ν ( λ ) e δ S ≤ λ ∑ W ( λ ) = Z ≤ A e B N 2 .
Let S S S be the largest partition size after the update. For a bulk or boundary update, every candidate has the prescribed size m ≤ S m \le S m ≤ S . For a same-sign update, every candidate has size at most the larger of the two fixed outer partition sizes, which is also at most S S S . By (B.3), the number of candidates is therefore at most
∑ n = 0 S p ( n ) ≤ ( S + 1 ) e c p S . \sum_{n=0}^{S}p(n) \le(S+1)e^{c_p\sqrt{S}}. n = 0 ∑ S p ( n ) ≤ ( S + 1 ) e c p S .
Although S S S is random, the exponential-moment bound proved above holds at every reconstruction stage. Using (A.1) and (A.2), each candidate weight involves O ( S + 1 ) O(S+1) O ( S + 1 ) box factors. Each factor contains a fixed number of powers with exponents at most S S S . Evaluating these powers by repeated multiplication takes O ( S + 1 ) O(S+1) O ( S + 1 ) operations per factor, giving O ( ( S + 1 ) 2 ) O((S+1)^2) O (( S + 1 ) 2 ) operations per candidate. Thus one shape draw costs at most C 1 ( S + 1 ) 3 e c p S C_1(S+1)^3e^{c_p\sqrt{S}} C 1 ( S + 1 ) 3 e c p S , including candidate generation, normalization, and sampling. Put a = c p + 1 a=c_p+1 a = c p + 1 . Since ( S + 1 ) 3 ≤ C 2 e S (S+1)^3 \le C_2e^{\sqrt{S}} ( S + 1 ) 3 ≤ C 2 e S and
a S ≤ δ S N + 1 + a 2 ( N + 1 ) 4 δ , a\sqrt{S} \le\frac{\delta S}{N+1} + \frac{a^2(N+1)}{4\delta}, a S ≤ N + 1 δ S + 4 δ a 2 ( N + 1 ) ,
Hölder’s inequality gives
E ν [ ( S + 1 ) 3 e c p S ] ≤ C 2 e a 2 ( N + 1 ) / ( 4 δ ) ( E ν [ e δ S ] ) 1 / ( N + 1 ) ≤ C 3 e c 0 N . \mathbb{E}_{\nu}[(S+1)^3e^{c_p\sqrt{S}}] \le C_2e^{a^2(N+1)/(4\delta)}\left(\mathbb{E}_{\nu}[e^{\delta S}]\right)^{1/(N+1)} \le C_3e^{c_0N}. E ν [( S + 1 ) 3 e c p S ] ≤ C 2 e a 2 ( N + 1 ) / ( 4 δ ) ( E ν [ e δ S ] ) 1/ ( N + 1 ) ≤ C 3 e c 0 N .
Summing over the L K L_K L K updates gives an expected shape cost at most C 4 L K e c 0 N C_4L_Ke^{c_0N} C 4 L K e c 0 N . The initial enumeration costs at most C 5 ( M + 1 ) 3 e c p M C_5(M+1)^3e^{c_p\sqrt{M}} C 5 ( M + 1 ) 3 e c p M . History construction, initialization by references to the common partition, and scalar sampling cost O ( N + L K ) O(N+L_K) O ( N + L K ) in expectation, as shown in Section 5.2. Finally, L K ≤ ⌊ N 2 / 4 ⌋ + 2 K N 2 L_K \le\lfloor N^2/4\rfloor+ 2KN^2 L K ≤ ⌊ N 2 /4 ⌋ + 2 K N 2 proves the claim.
Initial-partition tail and exact sampling
Set
γ ( q , t ) = 2 ∣ q − t ∣ ( 1 − max ( q , t ) ) ( 1 − q ) ( 1 − t ) , Γ = γ ( q , t ) + π 2 / 3 . (56) \gamma(q,t)=\frac{\sqrt{2}\lvert q-t\rvert}{(1-\max(q,t))(1-q)(1-t)},\qquad\Gamma=\gamma(q,t)+\pi\sqrt{2/3}. \tag*{(56)} γ ( q , t ) = ( 1 − max ( q , t )) ( 1 − q ) ( 1 − t ) 2 ∣ q − t ∣ , Γ = γ ( q , t ) + π 2/3 . (56)
With h c l , c r h_{\mathrm{cl},\mathrm{cr}} h cl , cr defined in (37) , (B.2) and (B.3) give, uniformly over the boundary types,
a n : = ∑ ∣ λ ∣ = n h c l , c r ( λ ) ≤ p ( n ) e γ ( q , t ) n ≤ e Γ n , n ≥ 0. (57) a_n:=\sum_{\lvert\lambda\rvert=n}h_{\mathrm{cl},\mathrm{cr}}(\lambda)\le p(n)e^{\gamma(q,t)\sqrt{n}}\le e^{\Gamma\sqrt{n}},\qquad n\ge0. \tag*{(57)} a n := ∣ λ ∣ = n ∑ h cl , cr ( λ ) ≤ p ( n ) e γ ( q , t ) n ≤ e Γ n , n ≥ 0. (57)
For z = u v < η < 1 z=uv<\eta<1 z = uv < η < 1 , put
C η = exp ( Γ 2 4 log ( η / z ) ) . C_\eta=\exp\left(\frac{\Gamma^2}{4\log(\eta/z)}\right). C η = exp ( 4 log ( η / z ) Γ 2 ) .
The inequality Γ n − δ n ≤ Γ 2 / ( 4 δ ) \Gamma\sqrt{n}-\delta n\le\Gamma^2/(4\delta) Γ n − δ n ≤ Γ 2 / ( 4 δ ) , with δ = log ( η / z ) \delta=\log(\eta/z) δ = log ( η / z ) , gives the common bound a n ( z / η ) n ≤ C η a_n(z/\eta)^n\le C_\eta a n ( z / η ) n ≤ C η . Since Z ( z ) ≥ 1 \mathcal{Z}(z)\ge1 Z ( z ) ≥ 1 and a n z n ≤ C η η n a_nz^n\le C_\eta\eta^n a n z n ≤ C η η n , (38) gives
ρ ( ∣ Λ ∣ > M ) = 1 Z ( z ) ∑ n = M + 1 ∞ a n z n ≤ C η ∑ n = M + 1 ∞ η n = T M ( z , η ) : = C η η M + 1 1 − η . (58) \begin{aligned}
\rho(\lvert\Lambda\rvert>M)=\frac{1}{\mathcal{Z}(z)}\sum_{n=M+1}^{\infty}a_nz^n \\
&\le C_\eta\sum_{n=M+1}^{\infty}\eta^n \\
&=T_M(z,\eta):=C_\eta\frac{\eta^{M+1}}{1-\eta}. \tag*{(58)}
\end{aligned} ρ (∣ Λ ∣ > M ) = Z ( z ) 1 n = M + 1 ∑ ∞ a n z n ≤ C η n = M + 1 ∑ ∞ η n = T M ( z , η ) := C η 1 − η η M + 1 . (58)
Since 0 < z < 1 0<z<1 0 < z < 1 , the choice η = z \eta=\sqrt{z} η = z satisfies z < η < 1 z<\eta<1 z < η < 1 .
Corollary 7.3 (Explicit truncation bound). For every z < η < 1 z<\eta<1 z < η < 1 ,
∥ π ^ K , M − π w ∥ T V ≤ min { 1 , 1 − e − H ( r K ) + T M ( z , η ) } . (59) \lVert\widehat{\pi}_{K,M}-\pi_w\rVert_{\mathrm{TV}}\le\min\left\{1,1-e^{-H(r^K)}+T_M(z,\eta)\right\}. \tag*{(59)} ∥ π K , M − π w ∥ TV ≤ min { 1 , 1 − e − H ( r K ) + T M ( z , η ) } . (59) In particular, H ( r K ) ≤ ε / 2 H(r^K)\le\varepsilon/2 H ( r K ) ≤ ε /2 and T M ( z , η ) ≤ ε / 2 T_M(z,\eta)\le\varepsilon/2 T M ( z , η ) ≤ ε /2 ensure error at most ε \varepsilon ε .
Proof. Use 1 − Z M ( z ) / Z s ≤ 1 − Z 0 / Z s + ρ ( ∣ Λ ∣ > M ) 1-\mathcal{Z}_M(z)/\mathcal{Z}_s\le1-\mathcal{Z}_0/\mathcal{Z}_s+\rho(\lvert\Lambda\rvert>M) 1 − Z M ( z ) / Z s ≤ 1 − Z 0 / Z s + ρ (∣ Λ ∣ > M ) in Theorem 6.1 , and apply (55) and (58) at s = r K s=r^K s = r K .
Proposition 7.4 (Exact initial sampling without a size cutoff). The law ρ \rho ρ can be sampled without a size cutoff or evaluation of Z ( z ) \mathcal{Z}(z) Z ( z ) . Fix z < η < 1 z<\eta<1 z < η < 1 and repeat independent trials:
Draw J J J with P ( J = n ) = ( 1 − η ) η n \mathbb{P}(J=n)=(1-\eta)\eta^n P ( J = n ) = ( 1 − η ) η n , n ≥ 0 n\ge0 n ≥ 0 .
Enumerate the partitions of size J J J and compute a J a_J a J . If a J = 0 a_J=0 a J = 0 , restart. Otherwise accept J J J with probability
α J = a J C η ( z η ) J . \alpha_J=\frac{a_J}{C_\eta}\left(\frac{z}{\eta}\right)^J. α J = C η a J ( η z ) J . If rejected, restart.
Given acceptance, return a partition Λ \Lambda Λ of size J J J with probability h c l , c r ( Λ ) / a J h_{\mathrm{cl},\mathrm{cr}}(\Lambda)/a_J h cl , cr ( Λ ) / a J .
The procedure terminates almost surely and returns a sample from ρ \rho ρ .
Proof. The common coefficient bound gives 0 ≤ α J ≤ 1 0\le\alpha_J\le1 0 ≤ α J ≤ 1 . For a positive-weight partition λ \lambda λ of size n n n , one trial returns λ \lambda λ with probability
( 1 − η ) η n a n C η ( z η ) n h c l , c r ( λ ) a n = 1 − η C η h c l , c r ( λ ) z n . (60) (1-\eta)\eta^n\frac{a_n}{C_\eta}\left(\frac{z}{\eta}\right)^n\frac{h_{\mathrm{cl},\mathrm{cr}}(\lambda)}{a_n}
=\frac{1-\eta}{C_\eta}h_{\mathrm{cl},\mathrm{cr}}(\lambda)z^n. \tag*{(60)} ( 1 − η ) η n C η a n ( η z ) n a n h cl , cr ( λ ) = C η 1 − η h cl , cr ( λ ) z n . (60)
Thus the success probability is ( 1 − η ) Z ( z ) / C η > 0 (1-\eta)\mathcal{Z}(z)/C_{\eta}>0 ( 1 − η ) Z ( z ) / C η > 0 , and conditioning on success gives ρ \rho ρ . Each trial enumerates a finite set, proving almost-sure termination.
Replacing the initial draw in Algorithm 2 by this procedure gives the output law ρ R K \rho_{R_K} ρ R K and the bound
∥ ρ R K − π w ∥ T V ≤ 1 − e − H ( r K ) . \lVert\rho_{R_K}-\pi_w\rVert_{\mathrm{TV}}\leq1-e^{-H(r^K)}. ∥ ρ R K − π w ∥ TV ≤ 1 − e − H ( r K ) .
A numerical example with fixed Macdonald parameters
We illustrate Algorithm 2 with the two samples in Figure 1 , on rail-yard graphs with N = 96 N=96 N = 96 and N = 128 N=128 N = 128 columns, respectively. The Macdonald parameters q , t q,t q , t remain fixed as N N N increases.
Figure 1. An example of Algorithm 2 with fixed q = 0.6 q = 0.6 q = 0.6 , t = 0.8 t = 0.8 t = 0.8 , u = v = 1 / 5 u = v = 1/5 u = v = 1/5 , and c l = c r = e l c_l = c_r = \mathrm{el} c l = c r = el . The word repeats ( L , + , 3 / 5 ) (L, +, 3/5) ( L , + , 3/5 ) , ( L , − , 1 / 3 ) (L, -, 1/3) ( L , − , 1/3 ) , with N = 96 N = 96 N = 96 or 128 128 128 , and both runs use K = 4 K = 4 K = 4 , M = 20 M = 20 M = 20 . Top: locally averaged particle occupancies of the two samples. Bottom left: the unscaled partition sizes ∣ λ ( i ) ∣ \lvert\lambda^{(i)}\rvert ∣ λ ( i ) ∣ . Bottom right: the N = 128 N = 128 N = 128 dimer configuration in ordinary geometric coordinates. Each size is represented by one sample; this visual comparison does not establish a limit shape.
Model and parameter choice. We use the rail-yard graph conventions of [2 Section 2] . Here N N N is the number of elementary columns. Column i i i has type ( a i , σ i ) (a_i,\sigma_i) ( a i , σ i ) , and x i x_i x i is the parameter assigned to its diagonal edges. The partitions λ ( i − 1 ) \lambda^{(i-1)} λ ( i − 1 ) and λ ( i ) \lambda^{(i)} λ ( i ) encode the boundary profiles on the two sides of this column. Thus N N N columns correspond to a sequence of N + 1 N+1 N + 1 partitions. We sample this sequence with the Macdonald weights in (2.8).
For each of these two even values of N N N , set
q = 3 5 , t = 4 5 , u = v = 1 5 , c l = c r = e l . (61) q=\frac{3}{5},\qquad t=\frac{4}{5},\qquad u=v=\frac{1}{5},\qquad c_l=c_r=\mathrm{el}. \tag*{(61)} q = 5 3 , t = 5 4 , u = v = 5 1 , c l = c r = el . (61)
All transitions are of type L L L , with alternating signs and parameters
( a 2 k + 1 , σ 2 k + 1 , x 2 k + 1 ) = ( L , + , 3 / 5 ) , ( a 2 k + 2 , σ 2 k + 2 , x 2 k + 2 ) = ( L , − , 1 / 3 ) , 0 ≤ k < N / 2. (62) \begin{aligned}
(a_{2k+1},\sigma_{2k+1},x_{2k+1})&=(L,+,3/5),\\
(a_{2k+2},\sigma_{2k+2},x_{2k+2})&=(L,-,1/3),\qquad0\leq k<N/2. \tag*{(62)}
\end{aligned} ( a 2 k + 1 , σ 2 k + 1 , x 2 k + 1 ) ( a 2 k + 2 , σ 2 k + 2 , x 2 k + 2 ) = ( L , + , 3/5 ) , = ( L , − , 1/3 ) , 0 ≤ k < N /2. (62)
Thus the word w N w_N w N repeats the pair ( L , + , 3 / 5 ) , ( L , − , 1 / 3 ) (L,+,3/5),(L,-,1/3) ( L , + , 3/5 ) , ( L , − , 1/3 ) . Each pair first adds a horizontal strip and then removes a horizontal strip. This choice keeps the transition pattern simple while retaining the non-Schur weights q ≠ t q\ne t q = t . The two e l \mathrm{el} el boundaries impose no parity restriction: the endpoint partitions are random, not fixed to ∅ \varnothing ∅ , and retain the weights τ e l \tau_{\mathrm{el}} τ el and β e l \beta_{\mathrm{el}} β el in (2.8). All parameters satisfy (1.1); in particular, x 2 k + 1 x 2 k + 2 = 1 / 5 < 1 x_{2k+1}x_{2k+2}=1/5<1 x 2 k + 1 x 2 k + 2 = 1/5 < 1 . These are illustrative choices, not parameters required by the algorithm. Their rational values permit finite box products and rejection probabilities to be evaluated using rational arithmetic. Only N N N changes between the two runs.
Cutoffs and reconstruction. Both runs use four complete reflection periods and a terminal size cutoff of twenty:
K = 4 , M = 20 , z = u v = 1 25 , r = ( u v ) 2 = 1 625 . (63) K=4,\qquad M=20,\qquad z=uv=\frac{1}{25},\qquad r=(uv)^2=\frac{1}{625}. \tag*{(63)} K = 4 , M = 20 , z = uv = 25 1 , r = ( uv ) 2 = 625 1 . (63)
The small boundary parameters make the edge scale decrease by a factor of 1 / 625 1/625 1/625 in each period. By Lemma 5.1 , four periods contain 8 N 8N 8 N individual boundary reflections, in addition to the adjacent swaps. The initial common partition is drawn from
ρ 20 ( λ ) = 1 { ∣ λ ∣ ≤ 20 } β e l ( λ ) 2 25 − ∣ λ ∣ / b λ ∑ ∣ μ ∣ ≤ 20 β e l ( μ ) 2 25 − ∣ μ ∣ / b μ . (64) \rho_{20}(\lambda)=\frac{\mathbf{1}_{\{|\lambda|\leq20\}}\beta_{\mathrm{el}}(\lambda)^2 25^{-|\lambda|}/b_\lambda}{\sum_{|\mu|\leq20}\beta_{\mathrm{el}}(\mu)^2 25^{-|\mu|}/b_\mu}. \tag*{(64)} ρ 20 ( λ ) = ∑ ∣ μ ∣ ≤ 20 β el ( μ ) 2 2 5 − ∣ μ ∣ / b μ 1 { ∣ λ ∣ ≤ 20 } β el ( λ ) 2 2 5 − ∣ λ ∣ / b λ . (64)
This is (39) for the parameters above. It is not obtained by fixing the initial partition to be empty.
The recorded history is then replayed backwards. Bulk and boundary increments use G L , L ( x y ) G_{L,L}(xy) G L , L ( x y ) and B e l , L ( h x ) B_{\mathrm{el},L}(hx) B el , L ( h x ) , respectively, with the recorded pre-move parameters ; reflected edge parameters need not equal their original values in (62) . The new shapes are sampled from (23) and (31) , and same-sign moves use the two full pre-swap edge weights. Consequently, the output has law π 4 , 20 \pi_{4,20} π 4 , 20 in (43) for the chosen word w N w_N w N . Exactness here refers to this finite-approximation law; its difference from π w N \pi_{w_N} π w N is controlled by the truncation bounds. The restriction ∣ Λ ∣ ≤ 20 |\Lambda| \le20 ∣Λ∣ ≤ 20 applies only to the terminal seed, not to the reconstructed partitions. The recorded runs initialize the pseudorandom generator with seed 20260928 at each value of N N N ; this numerical seed is distinct from the random partition Λ \Lambda Λ .
Error for this parameter choice. The terminal estimate can be sharpened for the present el/el example. Indeed, writing w = q a ( λ ) ( s ) t ℓ λ ( s ) ∈ ( 0 , 1 ] w=q^{a^{(\lambda)}(s)}t^{\ell_\lambda(s)} \in(0,1] w = q a ( λ ) ( s ) t ℓ λ ( s ) ∈ ( 0 , 1 ] gives
1 2 = 1 − t 1 − q ≤ b λ ( s ) = 1 − t w 1 − q w ≤ 1. \frac{1}{2}=\frac{1-t}{1-q}\le b_\lambda(s)=\frac{1-tw}{1-qw}\le1. 2 1 = 1 − q 1 − t ≤ b λ ( s ) = 1 − q w 1 − tw ≤ 1.
Hence β e l ( λ ) ≤ 1 \beta_{\mathrm{el}}(\lambda)\le1 β el ( λ ) ≤ 1 and h e l , e l ( λ ) ≤ 2 ∣ λ ∣ h_{\mathrm{el},\mathrm{el}}(\lambda)\le2^{|\lambda|} h el , el ( λ ) ≤ 2 ∣ λ ∣ . Since Z ( 1 / 25 ) ≥ 1 Z(1/25)\ge1 Z ( 1/25 ) ≥ 1 , the partition-count bound (B.3) implies
ρ ( ∣ Λ ∣ > 20 ) ≤ ∑ n > 20 p ( n ) ( 2 / 25 ) n ≤ exp ( π 2 6 log ( 25 η / 2 ) ) η 21 1 − η , η = 2 / 25 . (65) \rho(|\Lambda|>20)\le\sum_{n>20}p(n)(2/25)^n
\le\exp\left(\frac{\pi^2}{6\log(25\eta/2)}\right)\frac{\eta^{21}}{1-\eta},\qquad\eta=\sqrt{2/25}. \tag*{(65)} ρ ( ∣Λ∣ > 20 ) ≤ n > 20 ∑ p ( n ) ( 2/25 ) n ≤ exp ( 6 log ( 25 η /2 ) π 2 ) 1 − η η 21 , η = 2/25 . (65)
Here p ( n ) p(n) p ( n ) is the number of partitions of n n n . The last inequality uses π 2 n / 3 ≤ δ n + π 2 / ( 6 δ ) \pi\sqrt{2n/3}\le\delta n+\pi^2/(6\delta) π 2 n /3 ≤ δ n + π 2 / ( 6 δ ) with δ = log ( 25 η / 2 ) > 0 \delta=\log(25\eta/2)>0 δ = log ( 25 η /2 ) > 0 , followed by a geometric sum. The last expression in (65) is approximately 1.55782 × 10 − 11 1.55782\times10^{-11} 1.55782 × 1 0 − 11 . For (7.8)–(62) , the constants in (54) simplify to
A ∗ = 18 N 11 , B ∗ = 45 N ( N − 1 ) 8 . A_*=\frac{18N}{11},\qquad B_*=\frac{45N(N-1)}{8}. A ∗ = 11 18 N , B ∗ = 8 45 N ( N − 1 ) .
Combining (55) with (65) bounds the total variation error by H ( ( 1 / 625 ) 4 ) \mathcal{H}((1/625)^4) H (( 1/625 ) 4 ) plus the terminal term. The evaluated bounds, rounded upwards, are 1.05 × 10 − 9 1.05\times10^{-9} 1.05 × 1 0 − 9 for N = 96 N=96 N = 96 and 1.40 × 10 − 9 1.40\times10^{-9} 1.40 × 1 0 − 9 for N = 128 N=128 N = 128 . Before rounding upwards, the latter bound evaluates to approximately 1.39046 × 10 − 9 1.39046\times10^{-9} 1.39046 × 1 0 − 9 , shown as 1.39 × 10 − 9 1.39\times10^{-9} 1.39 × 1 0 − 9 in the figure. These are truncation-error bounds, not errors estimated from the samples or bounds on their distance from a limit shape.
Reading the figure. The sampled partition sequence is converted deterministically into a rail-yard dimer configuration using the correspondence described in [2 Sections 2–3] . In the ordinary geometric coordinate, partition λ ( i ) \lambda^{(i)} λ ( i ) has particles at
y j ( i ) = λ j ( i ) − j + 1 2 , j ≥ 1. y_j^{(i)}=\lambda_j^{(i)}-j+\frac{1}{2},\qquad j\ge1. y j ( i ) = λ j ( i ) − j + 2 1 , j ≥ 1.
where parts beyond its length are zero. The two upper panels show locally averaged particle occupancy for one sample at each value of N N N . They are spatial averages of individual configurations, not averages over repeated samples. The plotted averaging windows contain nine adjacent partition columns and eleven adjacent particle rows, with edge-value padding at the ends of the displayed arrays. The horizontal coordinate is i / N i/N i / N ; the vertical coordinate is the ordinary height y y y , without an N N N -dependent rescaling.
The lower-left panel plots ∣ λ ( i ) ∣ |\lambda^{(i)}| ∣ λ ( i ) ∣ against i / N i/N i / N . It records the number of boxes in each partition, not a height function, a boundary curve, or algorithmic time. The largest sizes in the two samples are 96 and 137. The lower-right panel shows the actual N = 128 N = 128 N = 128 matching, which has 549 diagonal dimers. The vertical crop only restricts the display; it imposes no additional sampling cutoff. Corollary 6.2 gives the same total variation bound after this deterministic conversion.
The figure illustrates the output of the algorithm away from q = t q = t q = t . Its qualitative annotations about smoothness or stability describe these two displayed samples only. Since there is only one sample at each size, and the vertical coordinates have not been put on a common macroscopic scale, this comparison does not establish concentration or a limit shape at fixed q , t q,t q , t .
Specialization
When q = t q = t q = t , all b λ ( s ) b_\lambda(s) b λ ( s ) equal one. The equal-type bulk increment and each unrestricted L L L -boundary increment become geometric, while a mixed-type bulk increment remains Bernoulli. For c l , c r ∈ { e l , o a } c_l,c_r \in\{\mathrm{el},\mathrm{oa}\} c l , c r ∈ { el , oa } the seed becomes
ρ ( λ ) = ( z ; z ) ∞ z ∣ λ ∣ , \rho(\lambda) = (z;z)_\infty z^{|\lambda|}, ρ ( λ ) = ( z ; z ) ∞ z ∣ λ ∣ ,
which can be sampled through independent part multiplicities m j ∼ Geom ( z j ) m_j \sim\operatorname{Geom}(z^j) m j ∼ Geom ( z j ) . Parity restrictions remain present when either boundary is deel or eoa.
Even in this Schur specialization, the fixed-size kernels given here need not coincide with the original deterministic HH coupling in [1 ] . They produce the correct distribution, and they may be replaced by any known Schur local bijection satisfying the same weight-transport identities. The total variation proof is unchanged.
Finite product formulas for implementation
This appendix specifies the one-variable coefficients appearing in every categorical draw. If μ ⊈ λ \mu\not\subseteq\lambda μ ⊆ λ , all skew coefficients are zero. Otherwise, let R λ / μ R_{\lambda/\mu} R λ / μ and C λ / μ C_{\lambda/\mu} C λ / μ be the sets of cells of λ \lambda λ in rows and columns, respectively, that meet λ ∖ μ \lambda\setminus\mu λ ∖ μ . Set b μ ( s ) = 1 b_\mu(s) = 1 b μ ( s ) = 1 for s ∉ μ s \notin\mu s ∈ / μ .
If λ / μ \lambda/\mu λ / μ is a horizontal strip, define
ψ λ / μ ( q , t ) = ∏ s ∈ R λ / μ ∖ C λ / μ b μ ( s ; q , t ) b λ ( s ; q , t ) , φ λ / μ ( q , t ) = ∏ s ∈ C λ / μ b λ ( s ; q , t ) b μ ( s ; q , t ) . (66) \psi_{\lambda/\mu}(q,t) = \prod_{s\in R_{\lambda/\mu}\setminus C_{\lambda/\mu}} \frac{b_\mu(s;q,t)}{b_\lambda(s;q,t)}, \qquad\varphi_{\lambda/\mu}(q,t) = \prod_{s\in C_{\lambda/\mu}} \frac{b_\lambda(s;q,t)}{b_\mu(s;q,t)}. \tag*{(66)} ψ λ / μ ( q , t ) = s ∈ R λ / μ ∖ C λ / μ ∏ b λ ( s ; q , t ) b μ ( s ; q , t ) , φ λ / μ ( q , t ) = s ∈ C λ / μ ∏ b μ ( s ; q , t ) b λ ( s ; q , t ) . (66)
They are zero for a non-horizontal strip. Then
a u a ( λ / μ ) v a ( λ / μ ) L ψ λ / μ ( q , t ) φ λ / μ ( q , t ) R φ λ ′ / μ ′ ( t , q ) ψ λ ′ / μ ′ ( t , q ) (67) \begin{array}{c|cc}
a & u_a(\lambda/\mu) & v_a(\lambda/\mu) \\
L & \psi_{\lambda/\mu}(q,t) & \varphi_{\lambda/\mu}(q,t) \\
R & \varphi_{\lambda'/\mu'}(t,q) & \psi_{\lambda'/\mu'}(t,q) \tag*{(67)}
\end{array} a L R u a ( λ / μ ) ψ λ / μ ( q , t ) φ λ ′ / μ ′ ( t , q ) v a ( λ / μ ) φ λ / μ ( q , t ) ψ λ ′ / μ ′ ( t , q ) (67)
These formulas agree with the standard branching coefficients in [6 Chapter VI, §6] and the explicit conventions in [2 (2.6)–(2.9)] . Empty products are one.
For a prescribed size m m m , one may enumerate all partitions of m m m , discard zero coefficients, compute the remaining finite weights, and make a categorical draw. For a same-sign update, enumerate the partitions between the fixed outer endpoints and use the full edge weights, including their powers of x x x and y y y . The latter powers generally cannot be discarded, since the size of the intermediate partition is not fixed in that resampling.
A useful implementation check is
v a ( λ / μ ) b μ = u a ( λ / μ ) b λ . v_a(\lambda/\mu)b_\mu=u_a(\lambda/\mu)b_\lambda. v a ( λ / μ ) b μ = u a ( λ / μ ) b λ .
Further finite checks are the bulk coefficient identity (21) , the boundary identity (30) , and the conjugation formula (14) . Such checks do not replace the proofs, but catch parameter-order and parity mistakes.
Subexponential weight bounds and admissibility
We prove the seed estimate (57) and the finiteness assertion used in (1) . No closed formula for the terminal partition function is needed.
Lemma B.1 (A uniform box-product bound). Let n = ∣ λ ∣ n=|\lambda| n = ∣ λ ∣ and let γ ( q , t ) \gamma(q,t) γ ( q , t ) be defined by (56) . Then
J ( λ ) : = ∑ s ∈ λ ∣ log b λ ( s ; q , t ) ∣ ≤ γ ( q , t ) n . (68) J(\lambda):=\sum_{s\in\lambda}|\log b_\lambda(s;q,t)|\leq\gamma(q,t)\sqrt{n}. \tag*{(68)} J ( λ ) := s ∈ λ ∑ ∣ log b λ ( s ; q , t ) ∣ ≤ γ ( q , t ) n . (68) Consequently,
0 ≤ h c l , c r ( λ ) ≤ e γ ( q , t ) n . (69) 0\leq h_{\mathrm{cl},\mathrm{cr}}(\lambda)\leq e^{\gamma(q,t)\sqrt{n}}. \tag*{(69)} 0 ≤ h cl , cr ( λ ) ≤ e γ ( q , t ) n . (69) Proof. Put ϑ = max ( q , t ) \vartheta=\max(q,t) ϑ = max ( q , t ) . For a cell with arm a a a and leg ℓ \ell ℓ , write w = q a t ℓ w=q^a t^\ell w = q a t ℓ . Then
∣ log b λ ( s ) ∣ = ∣ log ( 1 − t w ) − log ( 1 − q w ) ∣ ≤ ∣ q − t ∣ 1 − ϑ q a t ℓ . |\log b_\lambda(s)|=|\log(1-tw)-\log(1-qw)|\leq\frac{|q-t|}{1-\vartheta}q^a t^\ell. ∣ log b λ ( s ) ∣ = ∣ log ( 1 − tw ) − log ( 1 − q w ) ∣ ≤ 1 − ϑ ∣ q − t ∣ q a t ℓ . Let d ( λ ) d(\lambda) d ( λ ) be the number of distinct positive row lengths. For each fixed pair ( a , ℓ ) (a,\ell) ( a , ℓ ) , there are at most d ( λ ) d(\lambda) d ( λ ) cells with those arm and leg lengths. Indeed, within a group of rows of the same length, the arm fixes the column, and the leg then fixes the row. Hence
∑ s ∈ λ q a ( s ) t ℓ ( s ) ≤ d ( λ ) ( 1 − q ) ( 1 − t ) . \sum_{s\in\lambda}q^{a(s)}t^{\ell(s)}\leq\frac{d(\lambda)}{(1-q)(1-t)}. s ∈ λ ∑ q a ( s ) t ℓ ( s ) ≤ ( 1 − q ) ( 1 − t ) d ( λ ) . Since n ≥ d ( λ ) ( d ( λ ) + 1 ) / 2 n\geq d(\lambda)(d(\lambda)+1)/2 n ≥ d ( λ ) ( d ( λ ) + 1 ) /2 , we have d ( λ ) ≤ 2 n d(\lambda)\leq\sqrt{2n} d ( λ ) ≤ 2 n . This proves (B.1).
On an allowed seed partition, each cell contributes to β c l ( λ ) β c r ( λ ) / b λ \beta_{\mathrm{cl}}(\lambda)\beta_{\mathrm{cr}}(\lambda)/b_\lambda β cl ( λ ) β cr ( λ ) / b λ with exponent − 1 -1 − 1 , 0 0 0 , or 1 1 1 . Its logarithm is therefore bounded above by J ( λ ) J(\lambda) J ( λ ) . Disallowed partitions have zero weight, giving (B.2) in all cases.
For completeness, an elementary bound on the number p ( n ) p(n) p ( n ) of partitions of n n n is
p ( n ) ≤ exp ( π 2 n 3 ) . (70) p(n)\leq\exp\left(\pi\sqrt{\frac{2n}{3}}\right). \tag*{(70)} p ( n ) ≤ exp ( π 3 2 n ) . (70)
For n > 0 n>0 n > 0 and δ > 0 \delta>0 δ > 0 , the multiplicity generating function gives
p ( n ) e − δ n ≤ ∏ j ≥ 1 ( 1 − e − δ j ) − 1 . p(n)e^{-\delta n}\leq\prod_{j\geq1}(1-e^{-\delta j})^{-1}. p ( n ) e − δ n ≤ j ≥ 1 ∏ ( 1 − e − δ j ) − 1 .
Taking logarithms and using e δ m − 1 ≥ δ m e^{\delta m}-1\geq\delta m e δ m − 1 ≥ δ m yields
log p ( n ) ≤ δ n + ∑ m ≥ 1 1 m ( e δ m − 1 ) ≤ δ n + π 2 6 δ . \log p(n)\leq\delta n+\sum_{m\geq1}\frac{1}{m(e^{\delta m}-1)}
\leq\delta n+\frac{\pi^2}{6\delta}. log p ( n ) ≤ δ n + m ≥ 1 ∑ m ( e δ m − 1 ) 1 ≤ δ n + 6 δ π 2 .
Choose δ = π / 6 n \delta=\pi/\sqrt{6n} δ = π / 6 n . The case n = 0 n=0 n = 0 is immediate. Combining (B.2) and (B.3) proves (57) . In particular, Z ( z ) < ∞ Z(z)<\infty Z ( z ) < ∞ for every 0 < z < 1 0<z<1 0 < z < 1 , and (58) follows as stated.
Proposition B.2 (Finiteness in the subunit regime). Under (1) , 1 ≤ Z w < ∞ 1 \le Z_w < \infty 1 ≤ Z w < ∞ for every finite labelled word and every pair of boundary types in C \mathcal{C} C .
Proof. Any nonzero branching coefficient in (A.1) is a product of b b b -ratios over subsets of cells. Therefore
u a ( λ / μ ) , v a ( λ / μ ) ≤ exp ( γ ( q , t ) ( ∣ λ ∣ + ∣ μ ∣ ) ) . u_a(\lambda/\mu),\ v_a(\lambda/\mu) \le\exp\left(\gamma(q,t)\left(\sqrt{|\lambda|}+\sqrt{|\mu|}\right)\right). u a ( λ / μ ) , v a ( λ / μ ) ≤ exp ( γ ( q , t ) ( ∣ λ ∣ + ∣ μ ∣ ) ) . The same bound applies to R R R after conjugation and parameter exchange, since γ ( q , t ) = γ ( t , q ) \gamma(q,t)=\gamma(t,q) γ ( q , t ) = γ ( t , q ) . Likewise, each nonzero β c ( λ ) \beta_c(\lambda) β c ( λ ) and τ c ( λ ) \tau_c(\lambda) τ c ( λ ) is at most e γ ( q , t ) ∣ λ ∣ e^{\gamma(q,t)\sqrt{|\lambda|}} e γ ( q , t ) ∣ λ ∣ .
Write m i = ∣ λ ( i ) ∣ m_i=|\lambda^{(i)}| m i = ∣ λ ( i ) ∣ , d i = ∣ m i − m i − 1 ∣ d_i=|m_i-m_{i-1}| d i = ∣ m i − m i − 1 ∣ , and D = ∑ i d i D=\sum_i d_i D = ∑ i d i . The total coefficient in (9) , excluding the monomials in u , v , x i u,v,x_i u , v , x i , is at most
exp ( 2 γ ( q , t ) ∑ i = 0 N m i ) . \exp\left(2\gamma(q,t)\sum_{i=0}^{N}\sqrt{m_i}\right). exp ( 2 γ ( q , t ) i = 0 ∑ N m i ) . For fixed sizes there are at most ∏ i p ( m i ) \prod_i p(m_i) ∏ i p ( m i ) partition sequences. Also m i ≤ m 0 + D m_i\le m_0+D m i ≤ m 0 + D . The signs of the word and the values of m 0 , d 1 , … , d N m_0,d_1,\ldots,d_N m 0 , d 1 , … , d N determine all sizes; invalid size sequences can be discarded. For fixed D D D , the number of choices of the nonnegative d i d_i d i is ( D + N − 1 N − 1 ) \binom{D+N-1}{N-1} ( N − 1 D + N − 1 ) .
Using v m N ≤ 1 v^{m_N}\le1 v m N ≤ 1 and x ∗ = max i x i < 1 x_*=\max_i x_i<1 x ∗ = max i x i < 1 , we obtain
Z w ≤ ∑ m 0 , D ≥ 0 ( D + N − 1 N − 1 ) u m 0 x ∗ D exp ( A m 0 + D ) . (71) Z_w \le\sum_{m_0,D\ge0}\binom{D+N-1}{N-1}u^{m_0}x_*^D\exp\left(A\sqrt{m_0+D}\right). \tag*{(71)} Z w ≤ m 0 , D ≥ 0 ∑ ( N − 1 D + N − 1 ) u m 0 x ∗ D exp ( A m 0 + D ) . (71) where A = ( N + 1 ) ( 2 γ ( q , t ) + π 2 / 3 ) A=(N+1)(2\gamma(q,t)+\pi\sqrt{2/3}) A = ( N + 1 ) ( 2 γ ( q , t ) + π 2/3 ) . Choose 0 < δ < min { − log u , − log x ∗ } 0<\delta<\min\{-\log u,-\log x_*\} 0 < δ < min { − log u , − log x ∗ } . Since A n ≤ δ n + A 2 / ( 4 δ ) A\sqrt{n}\le\delta n+A^2/(4\delta) A n ≤ δ n + A 2 / ( 4 δ ) , the right side of (B.4) is at most
exp ( A 2 / ( 4 δ ) ) ( 1 − u e δ ) ( 1 − x ∗ e δ ) N < ∞ . \frac{\exp\left(A^2/(4\delta)\right)}{(1-ue^\delta)(1-x_*e^\delta)^N}<\infty. ( 1 − u e δ ) ( 1 − x ∗ e δ ) N exp ( A 2 / ( 4 δ ) ) < ∞. Finally, the all-empty path has weight one, so Z w ≥ 1 Z_w\ge1 Z w ≥ 1 .
Acknowledgements
The author thanks Vadim Gorin for posing the questions answered in this paper. This work was supported by the National Science Foundation under grant no. 2512154 and by the Simons Foundation under grant no. SFI-MPS-TSM-00025603.
AI usage disclosure. The author used ChatGPT to assist with polishing the manuscript and with implementing the algorithm in § 7.3 . All original ideas in this paper are due to the author, who takes full responsibility for the content of the paper and the algorithmic implementation.