Manuscript Offprint
arXiv:2610.18698A Randomized Approximation Algorithm for Doubly Free-Boundary Macdonald Processes
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We construct an approximate sampler for finite doubly free-boundary Macdonald railway processes with Macdonald, boundary, and edge parameters in . The construction allows arbitrary finite sequences of additions and removals of horizontal or vertical strips and all four boundary types. It reverses a finite commutation–reflection history from a partition sequence whose entries are equal, with the common partition weighted by both boundaries. We derive local reconstruction kernels from the skew Cauchy, Littlewood, and branching identities. Bulk and boundary updates combine integer increments with conditional shape sampling at a prescribed size; same-sign swaps use finite conditional resampling.
For K reflection periods and an initial partition-size cutoff M, the algorithm terminates almost surely and samples the resulting approximating law exactly. We prove total variation convergence to the target process as and give explicit bounds for both truncation errors, decaying geometrically in the cutoffs for fixed input parameters. Under fixed parameter bounds, we also bound the expected operation count of direct enumeration in a unit-cost model.
We further construct an exact rejection sampler for the initial partition law without a size cutoff or evaluation of its normalizing constant. Using this sampler removes the size-truncation error, leaving only the error from the finite reflection history.
1 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 reflection periods and an initial partition-size cutoff 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 . 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 . 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 , 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 Section 8.
We consider a process with a fixed number of transitions. Here are the Macdonald parameters, are the left and right boundary parameters, respectively, and is the edge parameter of the -th transition. We assume
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 B.
2.1 Partitions, branching coefficients, and dual letters
Let Y be the set of integer partitions, including . We identify partitions with their Young diagrams. For , the skew diagram consists of the boxes of that do not belong to .
Write , and let be the conjugate partition. For , set
Define , with .
Let denote the monic Macdonald symmetric function, and set . We write and for the corresponding skew Macdonald symmetric functions, using the conventions of [6, Chapter VI]. They satisfy
For a type , introduce the nonnegative one-parameter specializations
The term “nonnegative” refers to their skew Macdonald evaluations, not to the signs of their power sums. Define
(2.3)
Equivalently, using the duality for skew Macdonald functions [6, Chapter VI, (7.16)], we have
For , the skew diagram 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 and vanish unless is a horizontal strip, while and vanish unless is a vertical strip. Homogeneity gives coefficients such that
Coefficients are zero unless the indicated strip is allowed, and positive otherwise. In particular,
Appendix A gives finite product formulas for all these coefficients. The symmetric-function conventions and identities used here are standard; see [6, Chapter VI].
2.2 Boundary weights and the target measure
Set
and let . For define
and abbreviate
The left boundary uses , and the right boundary uses .
A labelled word is a sequence
We regard the -th entry , together with its fixed label , as a labelled letter. A labelled letter is called a minus letter or a plus letter according as its sign is or . Adjacent swaps move the entire labelled letter, including its type, sign, and parameter.
For , define the transition weights
For and boundary types , define
The target process is
Zero weights enforce all interlacing and boundary restrictions.
2.3 Bulk factors
For and , use the notation
Here and . The final equality is the q-binomial identity ; it also follows by comparing coefficients in .
Consider two adjacent steps and , where . Keep the outer partitions fixed and sum over the intermediate partition. By the skew Cauchy identity, the total weight in this order is times the total weight in the reversed order . Writing , we have
Consequently, the RR factor uses the swapped parameters. This follows directly from (2.2) and the Cauchy exponential
We will always compute the factors from these explicit specialization conventions.
2.4 Boundary factors and their coefficients
Let
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
In particular,
so its coefficients of and agree.
Define the involution on boundary types by
Then
Indeed, conjugation interchanges arms and legs and gives
Substitute these relations and (2.4) into the series for to obtain (2.14).
3 Scalar sampling without infinite products
For later use define the distribution
This notation specifies the parameter convention completely. Bulk increments are independent of the current partitions and have laws
A boundary reflection contributes the scalar factor . We sample the associated integer increment by assigning probability proportional to to the value . Thus, for , define the nonnegative-integer random variable by
For , the following constructions implement this law:
(3.4)
In the second line J and are independent. For , applying (2.14) gives
In the first line, J and are independent.
Although (3.1) contains an infinite-product normalizer, the following rejection sampler does not need it. Our convention is .
Lemma 3.1 (A finite-product scalar sampler). Let and . Repeatedly draw and accept with probability . The accepted value has law (3.1); the procedure terminates almost surely. Each acceptance probability uses only a finite product.
Proof. Since ,
Moreover,
Thus . The probability of proposing and accepting is , which normalizes to (3.1). The acceptance probability per trial is , proving almost-sure termination.
4 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.
4.1 Bulk peak reconstruction
Fix the outer partitions , a + type a with parameter x, and a - type b with parameter y. The skew Cauchy identity is
It changes the local word , into , . The left side contains a peak and the right side a valley . The identity follows from the usual skew Cauchy identity after applying (2.2); compare [2, Lemma 3.9].
Define, for ,
Comparing homogeneous coefficients in (4.1) gives
Here are the coefficients defined in (2.11), with for . The right sum is finite: a nonzero term has .
Definition 4.1 (Bulk reconstruction kernel). Given an admissible valley , draw independently and set
Then sample a partition according to
Let denote the probability that the above procedure produces from , with the outer partitions fixed. For an admissible input , put
Then
The normalizing sum in (4.2) has finitely many terms, since there are only finitely many partitions of size . If the input coefficient and the sampled coefficient are positive, then (4.3) makes its denominator strictly positive.
Proposition 4.2 (Bulk weight transport). The kernel in Definition 4.1 satisfies
(4.6)
Proof. Fix and put . The sums over below are restricted to partitions satisfying .
If , both sides of (4.6) vanish by the definition of . Otherwise, by (4.2).
For such an input , put
The corresponding monomial satisfies
Using the explicit formula for and homogeneity, we obtain
Here coefficients with negative indices are zero, and the last equality follows from (4.3). ☐
4.2 Boundary reconstruction
Fix . Let and be finite lists of variables, and write for their concatenation. We suppress the parameters in .
The Littlewood product identities [2, Lemma 3.2] give
Since
separating the factors involving variables from X, from Y, and from both gives
Fix . The skew Littlewood identities [2, Lemmas 3.3–3.5] take the form
They follow by comparing the coefficients of in (4.8), using the branching and skew Cauchy identities.
For the right-boundary reflection, is the partition adjacent to the boundary. Substitute and multiply both sides by . Using and the homogeneity relations
we obtain
Thus the last letter changes from + to - and x changes to . Using (2.6) gives the left-boundary version
At the left boundary the first letter changes from – to + and x changes to .
For fixed , define the boundary normalizing sum
The coefficient form of is
Definition 4.3 (Boundary reconstruction kernel). For a right reflection, let and ; for a left reflection, let and . Given the reflected boundary partition , its neighboring interior partition , and the parameter before reflection, draw
Replace the boundary partition by a sample from
The denominator is positive on every positive-weight input and sampled increment, by (4.12). Boundary indicators in automatically enforce the even or conjugate-even restrictions.
Proposition 4.4. Fix . For the right boundary, suppose that 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 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 and write . By homogeneity, the weight of in the sum on the right-hand side of (4.9) is
The probability of sampling includes the factor . Since , we have
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
The factor is constant over possible , so its normalized shape distribution is again (4.13). On the reflected side,
The same coefficient identity and the same monomial calculation with u instead of v establish the left-boundary balance.
4.3 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
For fixed endpoints , the skew branching identity gives
(4.14)
Let be the current intermediate partition in the swapped order. To restore the order , replace by a partition sampled according to
with probability zero outside this range.
For a decreasing pair, consider
with fixed endpoints . In this case,
(4.16)
To restore the order , replace the current intermediate partition by a sample from
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 (4.14) and (4.16), 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 . The size of is not prescribed, so the powers of x and 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.
4.4 Embedding local identities into a process
Lemma 4.5 (Local transport with a fixed exterior). Let e denote the unchanged exterior data, and let and be the nonnegative local weights of the original and reduced models, respectively. Suppose that, for each e, a Markov kernel satisfies
where f > 0 is independent of e. Let be a common nonnegative exterior weight such that
are finite and positive. Then the update that keeps e fixed and applies to the local variables transports the normalized measure with weights to the normalized measure with weights .
Proof. Multiplying the local identity by , summing over , and using the stochasticity of , we obtain
Consequently, for each ,
which is the desired transport identity. Nonnegativity justifies all rearrangements of sums. ☐
For bulk, boundary, and same-sign moves, the factor f in Lemma 4.5 is , , and 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.
5 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 , with its parameters reordered along with the labels. Its sign sequence is
This initial sorting uses at most 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
The parameter carried by the travelling letter is multiplied by . Consequently, after all N labelled letters have been processed once, the sorted labelled word is restored, with every parameter multiplied by
One period uses 2N reflections and exactly adjacent swaps.
Proof. Consider a minus letter in slot 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 .
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
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 .
On the return from the right boundary to slot j, every opposite-sign swap again has the form
and all remaining swaps are between two minus letters.
The three parts of the route use
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, the full ordering is therefore restored. The two reflections restore its original sign and multiply its parameter by .
The argument for a plus letter is the same with left and right interchanged. Hence processing all N labelled letters uses 2N reflections and exactly adjacent swaps, and multiplies every parameter by .
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 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 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 by . A recorded right reflection is defined analogously: it records the pre-reflection data, changes the sign from + to –, and replaces by .
Algorithm 1 Build a reduction history
Require: A labelled word w and a period cutoff .
1: Initialize H as an empty ordered list.
2: while an adjacent +, - pair exists do
3: Perform a recorded adjacent swap on this pair.
4: end while
5: Let be the resulting sorted labelled word.
6: for do
7: for do
8: Let i be the label of the letter currently in slot j.
9: if letter i is a minus letter then
10: Move i to slot 1 by recorded adjacent swaps.
11: Apply a recorded left reflection to i.
12: Move i to slot N by recorded adjacent swaps.
13: Apply a recorded right reflection to i.
14: else
15: Move i to slot N by recorded adjacent swaps.
16: Apply a recorded right reflection to i.
17: Move i to slot 1 by recorded adjacent swaps.
18: Apply a recorded left reflection to i.
19: end if
20: Move i back to slot j by recorded adjacent swaps.
21: end for
22: end for
23: return H and the final labelled word, which is with every parameter multiplied by .
5.1 The terminal seed and its truncation
Put . If every edge parameter is zero, every consecutive pair of partitions must be equal. The common partition has weight
Thus define
The scalar 3 is the terminal normalization in [2, (3.2)]. In particular, the summation is over all allowed partitions, not just single rows.
For , let
This is a finite categorical distribution with weights given by finite box products. It can be sampled without evaluating . When used to initialize a path, means the law of with .
Proposition 7.4 gives an exact sampler for without evaluating ; Algorithm 2 uses the truncated seed .
Algorithm 2 Approximate doubly free-boundary Macdonald sampler
Require: Word w, boundary data , and cutoffs .
1: Construct the history using Algorithm 1.
2: Sample and set for .
3: for recorded moves in , in reverse order do
4: Read the move location and pre-move letter data from the record.
5: if the recorded move was an adjacent swap then
6: Read the outer partitions and current valley .
7: Draw .
8: Set .
9: Replace the valley partition by a sample from (4.5).
10: else if the recorded move was a boundary reflection then
11: Read the current boundary partition and its neighbor .
12: Set on the left, or on the right.
13: Draw and set .
14: Replace the boundary partition by a sample from (4.13).
15: else
▷ Same-sign adjacent swap
16: Resample the middle partition using
(4.15) for or (4.17) for .
17: end if
18: end for
19: return the partition sequence on the original word w.
5.2 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 and be the numbers of plus and minus letters, and define
Initial sorting uses exactly swaps. Since , . 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
bulk, boundary, and same-sign moves, respectively. Consequently,
This is the exact number of reverse local updates; M does not affect it. At unit cost per letter or scalar-parameter operation, the history can be constructed in operations. The word and its records occupy entries. Initial sorting can be implemented by scanning the word and moving each minus letter left past the preceding plus letters.
Let and be the numbers of letters of types L and R, so that . Define
Initial sorting requires calls to the rejection sampler of Lemma 3.1 and direct Bernoulli draws. Each reflection period has same-type bulk moves, each requiring one call to Lemma 3.1, and 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, let count the zero increments and count the additional Bernoulli draws in one period. The boundary increment laws give
| c | el | oa | deel | eoa |
|---|---|---|---|---|
| d(c) | 0 | 0 | ||
| b(c) | 0 | 0 |
The remaining boundary increments each require one call to Lemma 3.1.
The total number of bulk and boundary moves is
The exact number of calls to Lemma 3.1 is
Since
we obtain the sharper bound
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
This count excludes the acceptance tests inside Lemma 3.1. The deterministic increments are set to zero without random sampling.
Index the calls to Lemma 3.1 by . Call samples , where
The argument is the corresponding recorded value of , , or , where for a left boundary reflection and for a right boundary reflection. Recall that
The coefficient bound in Lemma 3.1 and the first factor of this product give
Each trial in call j succeeds independently with probability
Let count its trials, including the successful trial. Then has a geometric distribution on , with
Writing , the preceding lower bound implies . For , all calls satisfy . Since is nondecreasing in , set
The calls use independent randomness. Hence their total trial count satisfies
A trial proposing computes using finite-product factors. Including the acceptance test, this takes operations under unit-cost arithmetic and random sampling primitives. Define
Recorded letter parameters never exceed , so every call satisfies . In the th run of the rejection sampler in Lemma 3.1, let be the candidate integer drawn in the th attempt. Its geometric distribution gives . The event that trial is reached depends only on previous trials, so it is independent of . Therefore
Direct Bernoulli draws and deterministic assignments require additional operations. Thus the expected arithmetic cost of sampling all scalar increments is
and is at most .
Let be the number of partitions of . If is sampled by enumerating all partitions of size at most , the number of candidates is
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 (5.5) controls the number of local updates, but shape enumeration can be expensive, so it does not imply a polynomial running time.
6 Total variation convergence
Let be the labelled word obtained by the initial sorting in Section 5, with all minus letters preceding all plus letters. For , let be its normalized process after multiplying every edge parameter by , and let be its partition function. At , let be the law of , where . Thus
Starting from a partition sequence on the final word produced by Algorithm 1, apply the local updates in reverse order: first undo the reflection periods, then the initial sorting. Let be the probability that this procedure outputs the partition sequence when started from . For an initial law , write for the output law after these updates:
where the sum is over admissible partition sequences on the final word. Lemma 4.5, applied at each move, gives the exact identity
The actual output law is
where is embedded on constant paths as above.
We use the convention
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
\left|\|\widehat{\pi}_{K,M}-\pi_{w}\|_{\mathrm{T V}}\leq1-\frac{\mathfrak{Z}_{M}(z)}{\mathcal{Z}_{r^{K}}}. \tag{6.4}In particular, with ,
Consequently,
The limit holds along every sequence for which both cutoffs diverge.
Proof. For a partition sequence , define its total skew degree
By homogeneity, its weight under uniform edge scaling is
On the allowed support, consecutive partitions differ by adding or removing a horizontal or vertical strip. If , every consecutive pair has the same size, so each such strip is empty and . The converse is immediate. Therefore the contribution is exactly . Since , dominated convergence gives
Moreover, for ,
Let be the event that every partition is equal and their common size is at most . Under ,
For any probability measure and event of positive probability, . This follows by splitting the half-sum defining total variation into and its complement. Hence
Both and are processed using the same reverse updates . The total variation error after these updates is at most the error before them; see [8, Proposition 3(d)]. Using (6.2), (6.3), and (6.12), we obtain
This proves (6.4).
Finally,
The final parenthesis is . This proves (6.5); the seed tail tends to zero because is a probability measure. Almost-sure termination was established after Algorithm 2.
Corollary 6.2 (Exact seed and observables). If the seed can be sampled exactly, then the seed-cutoff error is absent and
7 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.
7.1 Reflection depth and enumeration cost
Set
Define
(7.2)
Proposition 7.1 (Reflection-depth bound). For ,
Proof. For every factor used in the history, . Thus, for ,
Together with , the bulk and boundary factor formulas (2.11), (2.12), and (2.14) give
Record the pre-move data in one reflection period started from with edge parameters . Define
where are the recorded pre-move edge parameters, and at the left boundary or at the right boundary. Multiplying every initial edge parameter by multiplies every recorded edge parameter by . Each factor uses the types and parameters immediately before the corresponding move, with at the left boundary and at the right boundary. Same-sign swaps contribute a factor of one. Throughout the period, bulk arguments are at most and boundary arguments at most . The move counts give . The reduction identities give . Iterating and using yields
The remaining inequalities follow by exponentiation.
Theorem 7.2 (Expected cost of direct enumeration). Fix and suppose that for every letter. Let and . Implement Algorithm 2 by direct enumeration for the initial partition and all conditional shape draws, using the weights in Appendix A. Count arithmetic operations and geometric and Bernoulli draws at unit cost. If is the total operation count, including history construction and initial sampling, then
where depend only on q, t, u, v, , uniformly over the word and boundary types.
Proof. Choose with . For any word encountered during replay, replace by and multiply every edge parameter by . The partition-function estimate in Appendix B, applied to these modified parameters, gives
with A, B > 0 depending only on the fixed parameters.
At any stage of the reverse reconstruction, let be the probability that the sampler has partition sequence , and let be its unnormalized weight for the current word. Then
Indeed, initially, a constant sequence with has probability equal to its terminal weight divided by ; 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 . The total size variation defined in (6.7) gives
Replacing by and every edge parameter by multiplies the weight by . Consequently,
Therefore
Let be the largest partition size after the update. For a bulk or boundary update, every candidate has the prescribed size . 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 . By (B.3), the number of candidates is therefore at most
Although is random, the exponential-moment bound proved above holds at every reconstruction stage. Using (A.1) and (A.2), each candidate weight involves box factors. Each factor contains a fixed number of powers with exponents at most . Evaluating these powers by repeated multiplication takes operations per factor, giving operations per candidate. Thus one shape draw costs at most , including candidate generation, normalization, and sampling. Put . Since and
Hölder's inequality gives
Summing over the updates gives an expected shape cost at most . The initial enumeration costs at most . History construction, initialization by references to the common partition, and scalar sampling cost in expectation, as shown in Section 5.2. Finally, proves the claim.
7.2 Initial-partition tail and exact sampling
Set
With defined in (5.2), (B.2) and (B.3) give, uniformly over the boundary types,
For , put
The inequality , with , gives the common bound . Since and , (5.3) gives
(7.6)
Since , the choice satisfies .
Corollary 7.3 (Explicit truncation bound). For every ,
In particular, and ensure error at most .
Proof. Use in Theorem 6.1, and apply (7.3) and (7.6) at .
Proposition 7.4 (Exact initial sampling without a size cutoff). The law can be sampled without a size cutoff or evaluation of . Fix and repeat independent trials:
-
Draw J with , .
-
Enumerate the partitions of size J and compute . If , restart. Otherwise accept J with probability
If rejected, restart.
- Given acceptance, return a partition of size with probability .
The procedure terminates almost surely and returns a sample from .
Proof. The common coefficient bound gives . For a positive-weight partition of size , one trial returns with probability
Thus the success probability is , and conditioning on success gives . Each trial enumerates a finite set, proving almost-sure termination.
Replacing the initial draw in Algorithm 2 by this procedure gives the output law and the bound
7.3 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 and N = 128 columns, respectively. The Macdonald parameters q, t remain fixed as N increases.
Model and parameter choice. We use the rail-yard graph conventions of [2, Section 2]. Here N is the number of elementary columns. Column i has type , and is the parameter assigned to its diagonal edges. The partitions and encode the boundary profiles on the two sides of this column. Thus N columns correspond to a sequence of partitions. We sample this sequence with the Macdonald weights in (2.8).
For each of these two even values of N, set
All transitions are of type L, with alternating signs and parameters
(7.9)
Thus the word repeats the pair , . 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 . The two el boundaries impose no parity restriction: the endpoint partitions are random, not fixed to , and retain the weights and in (2.8). All parameters satisfy (1.1); in particular, . 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 changes between the two runs.
Cutoffs and reconstruction. Both runs use four complete reflection periods and a terminal size cutoff of twenty:
The small boundary parameters make the edge scale decrease by a factor of 1/625 in each period. By Lemma 5.1, four periods contain 8N individual boundary reflections, in addition to the adjacent swaps. The initial common partition is drawn from
This is (5.4) 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 and , respectively, with the recorded pre-move parameters; reflected edge parameters need not equal their original values in (7.9). The new shapes are sampled from (4.5) and (4.13), and same-sign moves use the two full pre-swap edge weights. Consequently, the output has law in (6.3) for the chosen word . Exactness here refers to this finite-approximation law; its difference from is controlled by the truncation bounds. The restriction 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 ; this numerical seed is distinct from the random partition .
Error for this parameter choice. The terminal estimate can be sharpened for the present el/el example. Indeed, writing gives
Hence and . Since , the partition-count bound (B.3) implies
(7.12)
Here is the number of partitions of . The last inequality uses with , followed by a geometric sum. The last expression in (7.12) is approximately . For (7.8)–(7.9), the constants in (7.2) simplify to
Combining (7.3) with (7.12) bounds the total variation error by plus the terminal term. The evaluated bounds, rounded upwards, are for and for . Before rounding upwards, the latter bound evaluates to approximately , shown as 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 has particles at
where parts beyond its length are zero. The two upper panels show locally averaged particle occupancy for one sample at each value of 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; the vertical coordinate is the ordinary height y, without an N-dependent rescaling.
The lower-left panel plots against . 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 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 . 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 .
8 Specialization
When , all equal one. The equal-type bulk increment and each unrestricted -boundary increment become geometric, while a mixed-type bulk increment remains Bernoulli. For the seed becomes
which can be sampled through independent part multiplicities . 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.
A Finite product formulas for implementation
This appendix specifies the one-variable coefficients appearing in every categorical draw. If , all skew coefficients are zero. Otherwise, let and be the sets of cells of in rows and columns, respectively, that meet . Set for .
If is a horizontal strip, define
They are zero for a non-horizontal strip. Then
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, one may enumerate all partitions of 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 and y. The latter powers generally cannot be discarded, since the size of the intermediate partition is not fixed in that resampling.
Fixed-parameter Macdonald samples at q = 0.6, t = 0.8
All-L word with alternating + and -, constant parameters , , and free boundaries . Comparison of one N=96 sample and one larger N=128 sample from the same finite-approximation algorithm.
Locally averaged Maya-particle density, N = 96

Locally averaged Maya-particle density, N = 128

Partition-size profiles along the sampled path

What changes when N increases from 96 to 128?
The density transition band becomes smoother and the macroscopic envelope is more stable, though rank-1 fluctuations are still visible.
This is numerical evidence from fixed q,t, not a proof of a limit shape.
Actual rail-yard dimer matching for N = 128
N=128 sample stats: largest partition = 137, diagonal dimers = 549, checked interior vertices = 13005, TV truncation bound = 1.39e-09.
Figure 1: An example of Algorithm 2 with fixed , , , and . The word repeats , , with or 128, and both runs use , . Top: locally averaged particle occupancies of the two samples. Bottom left: the unscaled partition sizes . Bottom right: the dimer configuration in ordinary geometric coordinates. Each size is represented by one sample; this visual comparison does not establish a limit shape.
A useful implementation check is
Further finite checks are the bulk coefficient identity (4.3), the boundary identity (4.12), and the conjugation formula (2.14). Such checks do not replace the proofs, but catch parameter-order and parity mistakes.
B Subexponential weight bounds and admissibility
We prove the seed estimate (7.5) and the finiteness assertion used in (1.1). No closed formula for the terminal partition function is needed.
Lemma B.1 (A uniform box-product bound). Let and let be defined by (7.4). Then
Consequently,
Proof. Put . For a cell with arm and leg , write . Then
Let be the number of distinct positive row lengths. For each fixed pair , there are at most 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
Since , we have . This proves (B.1).
On an allowed seed partition, each cell contributes to with exponent -1, 0, or 1. Its logarithm is therefore bounded above by . Disallowed partitions have zero weight, giving (B.2) in all cases.
For completeness, an elementary bound on the number of partitions of n is
For and , the multiplicity generating function gives
Taking logarithms and using yields
Choose . The case is immediate. Combining (B.2) and (B.3) proves (7.5). In particular, for every , and (7.6) follows as stated.
Proposition B.2 (Finiteness in the subunit regime). Under (1.1), for every finite labelled word and every pair of boundary types in C.
Proof. Any nonzero branching coefficient in (A.1) is a product of b-ratios over subsets of cells. Therefore
The same bound applies to after conjugation and parameter exchange, since . Likewise, each nonzero and is at most .
Write , , and . The total coefficient in (2.8), excluding the monomials in , is at most
For fixed sizes there are at most partition sequences. Also . The signs of the word and the values of determine all sizes; invalid size sequences can be discarded. For fixed , the number of choices of the nonnegative is .
Using and , we obtain
where . Choose . Since , the right side of (B.4) is at most
Finally, the all-empty path has weight one, so .
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 Section 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.
References
[1] Z. Li, Doubly free-boundary rail-yard dimers and annular Gaussian fluctuations, arXiv:2304.00650v2, 29 June 2026. https://arxiv.org/abs/2304.00650v2.
[2] Z. Li and K. Shi, Doubly free-boundary Macdonald processes: Reflection identities and Jack asymptotics, arXiv:2505.17825v4, 28 July 2026. https://arxiv.org/abs/2505.17825v4.
[3] J. Fulman, Probabilistic measures and algorithms arising from the Macdonald symmetric functions, arXiv:math/9712237, 1997. https://arxiv.org/abs/math/9712237.
[4] D. Betea, C. Boutillier, J. Bouttier, G. Chapuy, S. Corteel, and M. Vuletić, Perfect sampling algorithms for Schur processes, Markov Processes and Related Fields 24 (2018), 381–418. https://arxiv.org/abs/1407.3764.
[5] G. Barraquand, A. Borodin, and I. Corwin, Half-space Macdonald processes, Forum of Mathematics, Pi 8 (2020), e11. doi:10.1017/fmp.2020.3. https://arxiv.org/abs/1802.08210.
[6] I. G. Macdonald, Symmetric Functions and Hall Polynomials, second edition, Oxford Mathematical Monographs, Clarendon Press, Oxford, 1995.
[7] NIST Digital Library of Mathematical Functions, §17.5, q-binomial series. https://dlmf.nist.gov/17.5.
[8] G. O. Roberts and J. S. Rosenthal, General state space Markov chains and MCMC algorithms, Probability Surveys 1 (2004), 20–71. doi:10.1214/154957804100000024.