Bernstein Transfers and Greedy Records for Fence and Circular-Fence Order Polynomials
Let be the fence poset associated with an orientation of a path. We define a greedy right-to-left record statistic on and prove by a Bernstein-basis transfer between a continuous threshold recurrence and endpoint-refined order-preserving maps. Under reflection, this statistic agrees pointwise with Kahane’s independently obtained greedy block statistic; the alternating specialization gives the zig-zag case posed by Ferroni, Morales, and Panova. A finite form of the transfer yields a direct recursive bijection for , extended algorithmically to arbitrary alphabets. Refining by record set, direction, and terminal value identifies fixed fibers with decorated endpoint paths and pointed linear extensions of posets whose cover graphs are caterpillars. We also define cyclic records for every nonconstant orientation of a cycle and prove When the Hasse diagram is a cycle, reflection identifies these records with Kahane’s circular blocks and establishes his circular-fence conjecture.
Introduction
Let be a finite poset. Its order polynomial is characterized by for all positive integers ; see [20, Chapter 3]. Order polynomials are closely tied to order polytopes [17] and hence to Ehrhart theory. Ferroni, Morales, and Panova proved coefficient nonnegativity for skew-shape cell posets, hence for fences, and separately for circular fences [5, Corollary 5.1 and Theorem 7.7]. For the alternating, or zig-zag, fence , they asked for a direct permutation-statistic interpretation of [5, Problem 5.3].
Independently, Kahane introduced a greedy block statistic and proved the corresponding identity for every fence; he also obtained a lower bound for the linear coefficient of order-polytope Ehrhart polynomials and a coefficient interpretation for Ehrhart polynomials of Schubert-matroid base polytopes [9, Sections 5 and 6]. After reflection, Proposition 2.4 identifies the statistic used here pointwise with Kahane’s. The additional path results are the Bernstein transfer, its finite and bijective forms, and the fixed-fiber refinements developed below. The cyclic construction is separate and gives a record formula for every nonconstant orientation of a cycle.
We work with an arbitrary orientation of a path. Let be the transitive closure of on . Thus , where for odd and for even .
For , the statistic starts with threshold and scans from right to left. At a -edge it records a value larger than the current threshold, and at a -edge a value smaller than the threshold; every record resets the threshold. The total number of records is . A precise definition and an equivalent greedy-chain formulation are given in Definition 2.2 and proposition 2.3.
Theorem 1.
For every and every ,
For alternating signs, Theorem 1.1 specializes to the zig-zag case of [5, Problem 5.3]. When all signs are or all are , it specializes to the classical right-to-left maximum or minimum statistic.
The relation with Kahane’s statistic is pointwise: if then Proposition 2.4 gives Thus greedy records and block roots are two descriptions of the same statistic under reflection.
Beyond the path generating identity, the results developed here are as follows.
For every nonconstant orientation of a cycle, a canonical root chosen from the labeled cycle defines a cyclic record statistic for which When the undirected Hasse diagram is a cycle, reflection identifies the cyclic records with Kahane’s circular block roots and proves his circular-fence conjecture [9, Conjecture 4.8].
The Bernstein recurrence lifts the path identity to endpoint-refined finite transfers and a direct recursive bijection for , with an algorithmic extension to arbitrary alphabets:
Refining by the complete record set, record directions, and terminal value identifies every fixed fiber with decorated endpoint paths and with pointed linear extensions of a record poset , whose cover graph is a caterpillar. Atkinson’s recursion for posets whose cover graph is a tree [1], specialized to record-gap coordinates, then gives the terminal-value spectrum. Standard -partition theory supplies a further quasisymmetric consequence.
Related rank-polynomial work concerns fences [15, 13] and their circular or loop analogues [12, 10]; rank-matrix models appear in [11]. These polynomials enumerate lower ideals by cardinality. By contrast, work on -polynomials of zig-zag order and chain polytopes [2, 3] and on zig-zag Eulerian polynomials [16] encodes descent data. Here the transfer tracks maps to arbitrary chains together with their endpoint and complete record-set data.
After defining the statistic and comparing it pointwise with Kahane’s blocks, we prove the Bernstein transfer and the cyclic identity. We then develop the finite bijection, the record-set refinements, and their record-poset consequences.
Greedy records for oriented paths
Definition 2.
Let and . The -fence is the poset on obtained as the transitive closure of the relations for . Equivalently, its order-preserving maps to a chain are exactly the maps satisfying for .
Definition 3.
Let . The greedy -record sequence of is the decreasing sequence of positions constructed as follows. Start with . Once has been chosen, form If , the construction stops. Otherwise, set . The positions are the -records of . Set The record number is We also set Thus where the additional comes from the terminal record at position , which has no incoming sign.
The greedy-chain definition is equivalent to the following threshold scan.
Proposition 4.
The sequence in Definition 2.2 is obtained by the following right-to-left threshold scan. Declare to be a record and set . For , declare to be a record exactly when if , and exactly when if . Whenever a record is declared, replace by .
Proof. After is chosen, the scan threshold is . If , its largest element is the first position met from the right that satisfies the required comparison, and both constructions reset to its value. If , both stop. Induction on proves the claim. ◻
Proposition 5 (Reflection to the block statistic).
For , define Then is the reflection of , and where is Kahane’s greedy block statistic [9, Definition 3.5 and Proposition 3.4]. More precisely, position is an -record of if and only if reflected position is the root of a block of .
Proof. Write . The edge between and has sign , so the relabeling identifies with .
Kahane’s greedy construction reads the reflected fence from left to right and keeps the label of the leftmost vertex of the current block as its root threshold. At a reflected ascent, a new block begins exactly when the new label is larger than that threshold; at a reflected descent, it begins exactly when the new label is smaller. For , put . The vertex is an ascent when , equivalently when , and it is a descent when , equivalently when . Hence a new block begins at exactly when where is the current root label. These are precisely the two record conditions in Proposition 2.3. Both scans start at the same reflected endpoint and reset the threshold at the same positions, which proves the pointwise correspondence and the equality of the two statistics. ◻
Example 6.
For the zig-zag sign sequence of length , given by for odd and for even , and for , the greedy record sequence is Starting from position , whose value is , position is even and therefore has sign , so it would have to satisfy ; but . The nearest admissible position is therefore , since . From position , the next admissible position is , and from position , the next admissible position is . Hence , which is in the notation used below.
The Bernstein transfer proof
The proof of Theorem 1.1 compares two explicit models for the same right-to-left process. The first model uses polynomial recurrences derived from a continuous record process. The second model uses endpoint-refined order-preserving maps. The bridge between the two is the Bernstein basis.
Let be a word. The letter is the first comparison made with the current right endpoint, is the next comparison after moving one step to the left, and so on.
Definition 7.
Fix . For , define endpoint-refined counts recursively by , and for a word , Equivalently, counts sequences with such that for .
Lemma 8 (Endpoint-refined order polynomials).
Let , and put . For , the number counts order-preserving maps with . Consequently,
Proof. Given , set for . Then . For , the sign is . If , then the order-preserving condition is , or . If , it is . These are exactly the inequalities in Definition 3.1, and the correspondence is reversible. ◻
Definition 9.
For , , and a word , let be the expected value of in the following process. We start with threshold , inspect independent uniform random variables in order, and use the comparison directions . Whenever the current direction is , a new record occurs if the inspected value is larger than the current threshold; whenever the current direction is , a new record occurs if the inspected value is smaller than the current threshold. On a record, the threshold is replaced by the inspected value; otherwise it is unchanged. The random variable is the number of new records among these inspected variables.
Conditioning on the first inspected value gives the recurrences For example, in a -step, a first inspected value is not a record, keeps the threshold , and contributes . A value is a record, contributes the factor , changes the threshold to , and contributes . The -step is the same argument with the intervals and interchanged. These recurrences recursively determine from the constant polynomial . Hence each is a polynomial in , and all integrations are ordinary integrations of polynomials.
For , set These are the Bernstein basis polynomials of degree [4], indexed so that matches the endpoint value in Lemma 3.2. Probabilistically, if are independent uniform random variables on , then Thus is the probability that has rank after being inserted among auxiliary uniform points.
Lemma 10 (Bernstein summation identities).
For , Moreover, for every .
Proof. For the first identity, differentiate both sides: each derivative equals when , and both sides vanish at ; the case is the binomial theorem. The second identity follows by replacing with . Finally, the beta integral gives . ◻
Lemma 11 (Transfer lemma).
For every and every word ,
Proof. We induct on the length of . For , the statement is , the binomial theorem.
Assume the statement for . Using (2), the induction hypothesis, and (4), we get The proof for is identical, using (3) and (5): This completes the induction. ◻
Proof of Theorem 1.1. It suffices to prove the identity after the specialization for every positive integer , since both sides are polynomials in .
Let be independent continuous uniform random variables. Their relative order is almost surely uniformly distributed over , and depends only on comparisons among entries. Therefore is the expected value of in this continuous model.
Set . The rightmost position is always a record, contributing one factor . After conditioning on , the remaining variables are inspected with comparison word . Hence
By Lemma 3.5 and Lemma 3.4, By Lemma 3.2, the last sum is . Combining this with (6) proves for all positive integers . The polynomial identity in follows. ◻
For the alternating sign word for odd and for even , write Then , and Theorem 1.1 specializes to This is the zig-zag specialization posed in [5, Problem 5.3].
Remark 12 (Symmetries and checks).
Complementing values, , interchanges the two record directions: This follows directly by complementing the threshold at every step. If , reversing the vertices identifies with , where . Complementing the values of an order-preserving map then identifies with , so Thus sign reversal and word reversal do not produce new order polynomials.
For the monotone word , the statistic is the classical number of right-to-left maxima and The all- case follows by complementation.
For the alternating sign word, the covering relations are Under the opposite convention , the signs in are reversed, so the two statistics are equidistributed by value complementation. Every position is a record exactly for a down-up alternating permutation; hence, as a consistency check, the classical Euler zig-zag number [18].
Circular fences and cyclic records
Let be nonconstant, and read subscripts modulo . The cyclic orientation poset is the transitive closure of Nonconstancy makes this orientation acyclic and ensures that both signs occur. Thus is a poset, and its order-preserving maps to are the cyclic sequences satisfying the corresponding weak inequalities. Rank-matrix and trace models for related oriented and circular fences were developed by Kantarcı Oğuz [11]. If one sign occurs only once, its edge is redundant in the transitive closure and the Hasse diagram is a path. If both signs occur at least twice, the undirected Hasse diagram is a cycle and is a circular fence in the usual sense. The record identity below includes both cases; the comparison with Kahane’s circular blocks applies only in the latter.
Proposition 13 (Trace formula).
For a positive integer , let Then
Proof. The -entry of the product sums the indicators of the edge inequalities over . Taking the trace imposes , and hence counts the order-preserving maps. This is the standard transfer-matrix argument; compare [20, §4.7]. For an analogous trace construction for circular-fence rank polynomials, see [11, Proposition 5.3]. ◻
Ferroni, Morales, and Panova proved coefficient nonnegativity for every circular fence using the Gessel–Krattenthaler determinant for cylindric partitions [5, Theorem 7.7], based on the determinant of Gessel and Krattenthaler [8]. For closed alternating zig-zags, Lundström and Saud Maia Leite give a cyclic-swap interpretation of the -polynomial [14]. Here we seek instead a statistic for the coefficients of . The trace formula admits such a record interpretation once the missing endpoint is replaced by a canonical root.
Definition 14 (Cyclic right-to-left records).
Let . For , let be the unique index in such that . The position is declared to be a record, and the initial threshold is . We then inspect the remaining positions in cyclic right-to-left order . When position is inspected, it is a record if Whenever a record occurs, the threshold is reset to . The total number of records is denoted by .
Thus the terminal position used for paths is replaced by the largest value sitting at the tail of a -edge. This choice is intrinsic to the labeled cycle and is almost surely unique in the continuous model used below. Rooting at a -edge maximum is a convention: value complementation together with sign reversal exchanges it with rooting at the smallest value on a -edge.
Theorem 15 (Circular records).
For every nonconstant , we have
Proof. It suffices to prove the identity after substituting for every positive integer , since both sides are polynomials in .
Let be independent uniform random variables on . Their relative order is almost surely uniform on , and depends only on this relative order. Hence
Let and be the matrices with rows and columns indexed by . These are the one-step transfer matrices for the endpoint recurrences in Definition 3.1: a -step sends a continuation vector to , and a -step sends it to . Put Let be the last standard basis vector and let be the all-one column vector. These are the boundary states of the transfer. After conditioning on a root value and rescaling to , the initial threshold is . Since , the Bernstein expansion in Lemma 3.5 evaluates this state by . At the other end the empty continuation has coefficient vector , because for all . For , define where the product contains the indices met in cyclic decreasing order. We claim that Indeed, fix and condition on . The contribution in which is the chosen root requires every other -position to have value in . During the cyclic scan the threshold never exceeds . Thus a non-root -position contributes the probability factor and, after rescaling to , the ordinary -transfer . A -position has two possibilities: values in cannot be records and contribute , while values in contribute, after the same rescaling, the ordinary -transfer . The root itself contributes one factor . Multiplying the transfers in the scan order and integrating over gives (7).
To evaluate the integral, set We shall show that Let and let be the lower bidiagonal matrix with all other entries equal to . A direct entrywise check gives Indeed, multiplication by the two nonzero diagonals of gives which are the entries of and , respectively. Equivalently, for , with , Differentiating , the Leibniz sum of the commutator terms telescopes by the derivation rule: (Here every matrix is evaluated at .) Its trace is zero. The remaining terms insert at the -positions. By cyclicity of trace, these insertions give which proves (8). Although has a pole at , the displayed derivative identity is an identity of polynomials on , hence extends to the interval after integration.
Since , we have in at least one factor, so . Also and . Integrating (8) over gives The matrices and are the transposes of the matrices and in Proposition 4.1. Therefore Combining this with (7) proves the desired identity at , and polynomial interpolation completes the proof. ◻
We next compare the cyclic records with Kahane’s circular blocks. This comparison requires the undirected Hasse diagram to be a cycle.
Lemma 16 (Closing a greedy block path).
Let be a circular fence whose Hasse diagram is a cycle, and let be the ascent vertex with largest label among all ascent vertices. Delete the incoming cover , and read the resulting path from to . If is Kahane’s greedy block partition of this path, then the same consecutive blocks form the unique valid circular block partition of .
Proof. The first block has root . Every later ascent root has smaller label by the choice of , while a descent root is created by a downward threshold reset and therefore also has smaller label. If , all other ascent labels lie below the label of , and every descent label lies above it. Thus the whole cycle satisfies Kahane’s block condition.
Suppose . The ascent case in the proof of [9, Lemma 4.7] deletes the incoming cover at an ascent vertex and extends the resulting path partition back to the cycle. Inspection of that argument shows that it uses maximality of the chosen label only to ensure that the chosen root has larger label than the root of the block containing its predecessor. Here that predecessor lies in , and the required inequality follows from the first paragraph. Thus the path blocks are admissible circular blocks after the cover is restored.
For completeness, validity between blocks can also be checked directly. All relations not using the restored cover were already present in the path block poset and are valid. The restored cover gives the additional block relation , and the root of has smaller label than the root of . Any new transitive relation between blocks is represented by a directed path in the block quotient that uses this additional edge. Root labels increase along every edge of that path, so every new relation satisfies Kahane’s validity condition. The restored partition is therefore valid, and its uniqueness follows again from [9, Lemma 4.7]. ◻
Proposition 17 (Reflection and circular blocks).
Assume that both signs occur at least twice in , equivalently that the Hasse diagram of is a cycle. Read subscripts modulo , with , and define Let denote Kahane’s , the number of blocks in the unique valid circular block partition [9, §4.2 and Lemma 4.7]. Then Under this correspondence, the canonical cyclic record becomes the root with largest label among the ascent vertices of the reflected cycle, and every subsequent cyclic record becomes the root of the next block.
Proof. Put . As in Proposition 2.4, the signs of the reflected cycle are . Moreover, is an ascent vertex of the reflected cycle exactly when . The chosen cyclic record therefore becomes the maximum-labeled ascent vertex, say .
Cut the edge entering and read the resulting path from in the forward cyclic direction. This is the reflection of the cyclic right-to-left scan. The local comparison in Kahane’s greedy block construction is the same as in the proof of Proposition 2.4: at an ascent a new block starts when the new label is larger than the current root label, and at a descent it starts when the new label is smaller. Hence the block roots of the cut path are exactly the reflected cyclic records.
By Lemma 4.4, restoring the cut edge produces Kahane’s unique valid circular partition without changing the block roots. The pointwise equality follows. ◻
Corollary 18 (Kahane’s circular-fence conjecture).
Let be a circular fence of size whose Hasse diagram is a cycle, in the sense of [9, Definition 4.6]. Then Consequently, [9, Conjecture 4.8] holds.
Proof. Choose a cyclic presentation and reflect it to , where . Reflection is a bijection on labelings and preserves the order polynomial. The result follows by combining Proposition 4.5 with Theorem 4.3. ◻
Example 19. For the four-vertex crown , The cyclic record statistic therefore gives
Finite Bernstein transfers
We now discretize the Bernstein transfer. Finite counting recurrences for a rank-vector analogue of give a transfer between rank-vector sums and endpoint counts. Its diagonal case is realized bijectively in Section 6.
Definition 20 (Rank-vector record sums).
Let , let , and let . For a permutation of the set , start with threshold . At step , declare a record if If a record occurs, set ; otherwise set . Let be the number of records declared in these steps, not including the initial threshold. Define where the sum is over all permutations of . For indices outside , we set .
Lemma 21 (Entry from permutations).
Let , put , and let . Then, for every positive integer , Consequently,
Proof. The position is always a greedy -record, so it contributes one factor . If , then the right-to-left scan of the remaining positions reads a permutation of , and the comparison word is . The rule in Definition 5.1 is exactly the threshold scan of Proposition 2.3, with the terminal record removed. Summing over all permutations with fixed terminal value gives the first identity, and summing over gives the second. ◻
Proposition 22 (Rank-vector recurrences).
Let , so that and have length . For ,
Proof. For , separate the first scanned value . If , then no record occurs. After deleting and standardizing the remaining ordered set, the threshold has rank . There are choices for , giving the first term in (9). If , then a record occurs, contributing the factor . After deleting the old threshold and standardizing the ordered set , the new threshold has rank , where ranges from to . This gives the sum in (9).
For , the same first-step decomposition is reversed. If , no record occurs; deleting leaves the threshold with rank , and there are choices. If , a record occurs, contributes , and the new threshold has rank after standardization, with . This gives (10). ◻
For , write for the degree Bernstein basis.
Lemma 23 (Degree-raising identities).
Let and . Then
Proof. The two product identities follow from the definition of and the binomial ratios The two integral identities follow by differentiating the displayed sums, which telescope, and checking the value at , respectively . ◻
The next lemma packages the rank-vector sums in the Bernstein basis. Here and in the rest of this section, denotes the polynomial determined by the recurrences (1)–(3).
Lemma 24 (Bernstein packaging of rank vectors).
For every , every , and every word ,
Proof. We induct on the length of . For , both sides equal , since and .
Let , where has length , and assume the statement for . By (2) and the induction hypothesis, By the degree-raising identities (11), the right-hand side equals where the coefficient of collects the term from the first summand and the terms from the second. By (9), this coefficient is .
The following positive kernel converts endpoint counts into rank-vector sums.
Definition 25.
For , , and , set We use the convention that when or .
Lemma 26 (Degree elevation for the kernel).
If , then for every .
Proof. This is the standard degree elevation of the Bernstein basis [4], written in the present normalization. Substituting the definitions gives After summing over , factor out . The remaining sum is by the binomial theorem. The result is exactly . ◻
Combining the packaging lemma with the transfer lemma and degree elevation gives the finite transfer directly.
Theorem 27 (Finite Bernstein transfer).
Let , and let with . Then, for ,
Proof. By Lemma 3.5 and Lemma 5.7, By Lemma 5.5, the left-hand side is also The polynomials form a basis of the space of polynomials of degree at most , so the coefficients agree. ◻
Corollary 28 (Diagonal case).
Let and . Then Equivalently, in the notation of Lemma 5.2: for , , , and ,
Proof. Take in Theorem 5.8: the factor in Definition 5.6 vanishes unless , so . The permutation form is the case , of the first identity, multiplied by using Lemma 5.2. ◻
Integrating the degree-elevation identity in Lemma 5.7 gives the column sum Here we used and . Consequently the finite transfer gives a second, probability-free proof of Theorem 1.1. Indeed, for and , The two degree- polynomials also agree at , so interpolation completes the argument.
A bijective form of the finite transfer
We construct an object-level bijection between pairs , with and order-preserving, and pairs , with and . A weak map has linear refinements inside its level fibers, so direct rank discretization is not fiberwise uniform. The window kernel records this ordering data.
The construction has three ingredients: a window model for the degree-elevation kernel, a local window exchange, and a hole construction for the diagonal identity . Theorem 6.6 gives a direct recursive bijection when ; Theorem 6.7 extends it algorithmically to arbitrary alphabets by a finite used-label sieve.
Throughout this section, if is a finite totally ordered set and , we write for the increasing bijection. When , this is the map We use the inverse map without further comment when we pass back from a standardized set to the original set.
Throughout the constructions below, an instruction to insert an entry in the -th position of a word or board of length means that the entry is inserted after the first entries, so that it occupies position in the resulting word or board of length . Thus means insertion at the beginning and means insertion at the end.
Let . For and , define to be the set of words , whose entries are the elements of , with first entry , such that has rank in the -window . Equivalently, We use the convention that whenever one of the indices is outside its natural range.
Direct counting gives Indeed, choose the window elements below and the window elements above , then order the window and its complement. The count is which simplifies to the displayed kernel.
The following local exchange realizes one step of the finite transfer. First suppose , so that the buffer entry exists.
Lemma 29 (The -window exchange).
Fix , , and . There is an explicit bijection
Proof. Take , and set Thus . Let be the extended window.
If and , we are in the non-record case. Put . Delete from and standardize the remaining entries. The threshold becomes , and the first -window still has threshold rank . Hence the output is
In all other cases, let be the -th smallest element of the extended window , and let be its position in . We claim that . Indeed, if , then the extended window has at most entries smaller than . If , then failure of the non-record case forces , and again the extended window has at most entries smaller than . Thus the -th smallest entry of is larger than .
This is the record case. Delete the old threshold , put the new threshold in front, remove from the rest word, and standardize. Since , the new threshold has standardized value . The first -window after this operation has the same underlying set as , hence the new threshold has rank . We output
The inverse map is explicit. In the non-record branch, start with Unstandardize by inserting , so that the threshold becomes , and insert as the -th entry of the rest word. This recovers the unique which falls into the non-record case.
In the record branch, start with Unstandardize by inserting the old threshold . The current threshold becomes . Remove this leading , put in front, and insert in the -th position of the rest word. Its extended window has as its -th smallest entry. Every entry below is below , so the rank of in the reconstructed first window satisfies ; hence the object lies in the domain on the left. It cannot satisfy simultaneously and , because then the extended window would contain at least entries below , contrary to being its -th smallest entry. Thus the reconstruction lies in the record branch, with the prescribed position . The two inverse constructions are therefore well-defined and inverse to the forward branches. ◻
Corollary 30 (The -window exchange).
Fix , , and . There is an explicit bijection
Proof. Apply the order-reversing involution It sends to . Therefore becomes , and Lemma 6.1, with threshold and index , applies. On the size- output word use the corresponding order reversal . Its non-record branch becomes and its record thresholds become . Positions in the extended window are unchanged, so the label in is unchanged. Conjugating the forward and inverse maps of Lemma 6.1 by these order reversals proves the stated bijection and its reversibility. ◻
When , the buffer entry is absent; the diagonal case is handled by the following hole construction.
Lemma 31 (The diagonal hole bijection).
Let , let , and fix . There is a bijection Here denotes the set of record steps in the threshold scan with initial threshold and comparison word .
Proof. We give the map from labeled scan orders to pairs . Maintain a board with positions. Each position contains either an actual value , , or a hole , where records the time at which the hole was created. Initially the board is , and the threshold is . Thus .
Process the scan order from left to right. Suppose we are at time . If the -th inspected value is not a record, replace the board entry by the hole , and keep the threshold unchanged. If it is a record, let . Delete the old threshold from the board, insert the hole in the -th position, and make the new threshold. After either operation, define to be the current position of the threshold.
After time , the following board invariant holds:
the holes are exactly ;
the actual tokens are the current threshold together with the uninspected values , and they occur in increasing value order when the holes are ignored;
the current threshold occupies position .
This follows by induction: a non-record replaces its inspected token by a hole, while a record deletes the old threshold and retains the inspected token as the new threshold; neither operation changes the relative order of the remaining actual tokens. Consequently, at a -step a non-record lies to the left of the threshold and leaves its position unchanged, whereas a record selects an actual token to its right, so the threshold position weakly increases. Thus The same argument with left and right interchanged gives After steps, only the final threshold remains actual; the other entries are the holes . Reading their time labels from left to right gives a permutation .
For the inverse map, start from and construct the final board by putting one unnamed actual token in position , and by putting the holes from left to right in the other positions. This actual token is the current threshold.
For , let be the current threshold position and let be the current position of . If or if then the original step was a non-record: replace by a new actual token, and declare this token to be the -th scanned token. Otherwise the original step was a record: the current threshold token is the -th scanned token, the label is , then delete , insert a new actual token in position , and make this new token the threshold.
After reversing all steps, the board contains actual tokens and no holes. Assign the values to these tokens from left to right. Since the threshold is in position , the initial threshold receives value . The values assigned to the scanned tokens, in times , form , and the labels recovered in the record steps form .
To prove reversibility, use descending induction on . After the steps have been undone, the board is, up to the still unnamed actual tokens, exactly the forward board just after time , with the same threshold and holes. For a -step, a forward non-record creates strictly to the left of the unchanged threshold, so and . In a forward record the new threshold comes from the right of the old one. If deletion of the old threshold and insertion of leave the threshold in position , then the new threshold was the next actual token to the right and the inserted hole lies to its right; thus is impossible. Hence the inverse criterion detects exactly the non-record -steps. The argument for a -step is obtained by interchanging left and right. In either branch the stated reverse operation is the unique inverse of the forward operation, so the induction invariant is restored at time . After all steps are undone, assigning values in left-to-right order recovers the comparisons, the scan order, and every record label. The constructions are mutually inverse. ◻
Example 32 (The hole construction in action).
Take , , initial threshold , scan order , and labels and . The board starts as , with the threshold in position .
(): is a record. Delete the threshold and insert the hole in position ; the new threshold is . The board is and .
(): is a non-record. Replace by in place, leaving the threshold unchanged. The board is and .
(): is a record. Delete the threshold and insert the hole in position ; the new threshold is . The board is and .
Reading the hole time-labels from left to right gives , and the endpoint sequence is , weakly increasing across the two -steps and weakly decreasing across the -step, as required of a path counted by . Thus ; the inverse rebuilds the board from and , reversing the three steps to recover .
We can now assemble the finite-transfer bijection. For , , and , let denote the set of pairs , where is a scan order of and Let be the disjoint union
Proposition 33 (Finite-transfer bijection).
For , , and , there is a bijection
Proof. We define recursively on . If , then is empty unless . For , standardize the rest word by deleting : Then apply the inverse direction of Lemma 6.3 to .
Assume now that , and write , where . Take an input , with . Put and . In every recursive call below, the labeled scan order returned by the recursive bijection is a tail scan of length . When this tail is attached after the first scanned value, its scan times are reindexed by , and the labels on its record steps are transported by this reindexing.
If , then , so Lemma 6.1 applies to . There are two cases.
In the non-record case it returns . Recursively apply to , obtaining a labeled scan order on the standardized set. Unstandardize the tail by reinserting , and put as the first scanned value. No new label is added.
In the record case it returns The first scanned value is the unstandardized value . Recursively apply to , unstandardize the tail by reinserting the old threshold , put first, and give this first record the label .
The construction for is identical, using Lemma 6.2. In the non-record case one has . Recursively apply to , unstandardize the tail by reinserting , and put first, with no new label. In the record case one has The first scanned value is the unstandardized value . Recursively apply to , unstandardize the tail by reinserting the old threshold , put first, and give this first record the label .
The inverse recursion is obtained by reversing these steps. If , apply the forward direction of Lemma 6.3 to the labeled scan order, obtaining , and then unstandardize by reinserting to recover . If , read the first scanned value . Remove this first scanned value from the scan order, and reindex every remaining scan time as ; the labels on record steps in the tail are transported by the same reindexing. For a -step, is the non-record case and is the record case; for a -step, is the non-record case and is the record case.
In a non-record case there is no label at the first scan time. Standardize the tail by deleting ; its initial threshold is for a -step and for a -step. Apply the inverse recursion to recover and , and then use the inverse non-record branch of the appropriate local exchange. In a record case the first scan time has a unique label . Remove it, standardize the tail by deleting the old threshold , and use initial threshold for a -step and for a -step. The inverse recursion followed by the inverse record branch of Lemma 6.1 or Lemma 6.2 recovers .
In both cases let be the rank of in the reconstructed first -window and set . The inverse local exchange places its input in a summand with when , and with when . Since, inductively, is counted by , these inequalities show that is counted by . Thus the reconstructed pair lies in , and every parameter used by the forward recursion is recovered, so the inverse recursion proves bijectivity. ◻
Theorem 34 (An explicit bijection for ).
Let . For every , there is an explicit bijection between pairs and pairs
Proof. Put . Given , set . Then is counted by . Let . In the first entries of , let be the -th smallest entry, and let be its position. Move to the first position of , preserving the relative order of all other entries. Because starts among the first entries, this operation preserves the underlying set of the first entries; in the resulting word still has rank in that set. Thus it gives . Apply to obtain a scan order of , with labels on its non-terminal records. Define and give the terminal record the label . The remaining labels are those produced by , translated from scan time to position . This produces a labeled greedy -record object .
The inverse starts with . Put and , and form the scan order . Define a labeling of the non-terminal record steps of this scan by Apply to . This recovers and .
Finally, insert the leading back into the -th position of the first -window: Since , this is exactly the inverse of moving to the front: it restores the first-window set and the relative order of every other entry. Set The inequalities defining are exactly the order-preserving conditions for , so this recovers a unique pair . All steps are inverse to the forward construction. ◻
To pass from to arbitrary , observe that every map , and every record labeling , uses at most labels.
For a nonempty subset , let be the set of pairs with order-preserving, where has the inherited order. Let be the set of pairs with If , let be the increasing bijection. The bijection of Theorem 6.6, transported by , gives a bijection We shall use only for subsets of size at most .
Corollary 35 (Arbitrary alphabets).
For every and every , there is an algorithmic bijection between pairs and pairs
Proof. Fix the nonempty set of labels used by an object. Both strata are empty when , so assume , and write Apply the Garsia–Milne involution principle [6] to with sign on the -summand. On either side, unless all labels of are used, toggle in . This is a sign-reversing involution whose fixed points are, respectively, and . Since , the maps assemble into a sign-preserving bijection between the two signed sets. The involution principle therefore gives an algorithmic bijection . Taking the disjoint union over the unique used-label set proves the result. ◻
Directional and record-set refinements
Decorated directional transfer
The continuous process separates -records from -records. For indeterminates and a word , define by The same conditioning argument as in the proof of Theorem 1.1 gives, for , Moreover . At the finite level, the threshold history alone forgets the value inspected at a non-record step. We retain that value as a decoration on the corresponding equality step.
Let , and let . A decorated endpoint path of type is a pair with such that for , together with decorations on the equality steps. More precisely, set and For every we choose a value , subject to the following two conditions: and the list is a rearrangement of . Let denote the set of decorated endpoint paths of type , and define The scan-order bijection below gives so this construction refines the rank-vector sums of Definition 5.1 by record direction. The forgetful map preserves the strict - and strict -steps, but its fibers need not be singletons. For example, when and , the weak path has two admissible decorations, corresponding to the two orders of the failed values and . The decorations retain exactly this missing ordering data.
Theorem 36 (Decorated signed transfer).
Let . Then Consequently, if and , then In particular, where the factor marks the terminal record. Thus the direction-refined record weights are matched, in this diagonal model, by direction-marked strict edges on admissibly decorated order-preserving maps.
Proof. We first give the finite bijection behind . Fix , and let be a permutation of . Start with threshold . At step , declare a record if If a record occurs, set ; otherwise set .
From construct by setting . If step is not a record, then and we set . If step is a record, no decoration is added. A record in a -step is exactly a strict -step , and a record in a -step is exactly a strict -step . A non-record in a -step has , and a non-record in a -step has . Since the entries form a permutation of , the defining list for is also a permutation of . Hence .
Conversely, given , define The permutation condition for implies that is a permutation of . Moreover, the decoration inequalities force equality steps to be precisely non-record steps, while strict steps are precisely records. Thus the two constructions are inverse to each other and preserve the weight .
This bijection gives the recurrences and for , with the boundary convention , so that the out-of-range terms at and at vanish. For instance, in the -case, a first inspected value below is a non-record; after deleting it and standardizing, the threshold has rank , giving the first term. A first inspected value above is a record and contributes the factor ; after deleting the old threshold and standardizing, the new threshold has rank , where . The -case is analogous.
The Bernstein expansion now follows by induction on . Substitute the expansion for the suffix into the defining recurrence for or , and apply the four degree-raising identities in Lemma 5.4. The coefficient of is respectively the right-hand side of (13) or (14). This is the same coefficient comparison as in Lemma 5.5, with the two record directions carrying separate weights and .
Finally, by the same beta integral as for above. Therefore When , reading a permutation with terminal value from right to left gives a permutation of with comparison word . The bijection above identifies its -records and -records with strict - and strict -steps of the decorated endpoint path. Summing over gives the direction-refined identity. The order-polynomial specialization follows from Theorem 1.1, since the terminal record contributes one additional factor . ◻
Record-set fibers and record posets
We refine the greedy statistic by its full record set. For , recall that is the set of greedy -record positions of . Thus and .
Fix with . For , set Thus is the nearest element of to the right of .
Definition 37.
The record poset is the labeled poset on obtained as follows. For each , impose the relation if and otherwise impose the opposite relation Then take the transitive closure.
This indeed defines a poset. The undirected graph formed by the defining edges has one edge for each . Iterating always reaches , so the graph is connected; since it has edges, it is a tree. Hence no orientation of these edges can contain a directed cycle.
Example 38.
Let and . The terminal value is , and none of the values , inspected from right to left, resets the threshold. Thus . Since for , the defining relations of the record tree are The inverse word is , which respects all three relations.
Lemma 39.
For every and every with , where denotes the set of linear extensions of .
Proof. Assume first that . When the right-to-left scan reaches a position , the current threshold is , because is the closest record position to the right of . Since the entries of are distinct, the condition that is, or is not, declared a record is equivalent to This is exactly the comparison encoded by the defining relation between and in .
Now , written in one-line notation, is the word of positions of in . Therefore a position occurs before a position in if and only if . Hence the comparisons above say precisely that respects every defining relation of , and hence is a linear extension.
Conversely, suppose . We show by downward induction on that the greedy scan of has record set exactly . The terminal position lies in and is always a record. Assume that every position has been scanned and that the record positions among them are exactly ; then the current threshold when position is reached is . Because is a linear extension, the relation between and in holds, which by the displayed equivalence says that satisfies the record comparison exactly when . Hence is declared a record if and only if , completing the induction. Therefore the greedy record set is exactly . ◻
The record-set Bernstein refinement
For with , set and write . For a labeled poset on and , define For the record poset, define and
Attach a separate variable to the record status of every inspected position. If , , and , define by Thus .
For , put . When and , define
Theorem 40 (Record-set Bernstein transfer).
Let , , and . For every with and every , there are explicit bijections In particular, Moreover, with , Consequently,
Proof. Fix , and write the entries inspected from right to left as , where . Thus is a permutation of . The bijection in the proof of Theorem 7.1 sends to its threshold history and stores as precisely when step is not a record. A strict step at time is equivalent to a record at position . Hence that bijection restricts to By Lemma 7.4, the map sends the latter set bijectively to linear extensions of . Finally, so its image is exactly .
For the Bernstein expansion, attach the additional weight to a record at scan time in the proof of Theorem 7.1. The same first-step recurrence, with replaced by , gives Here is the weighted generating polynomial of scan orders on . Taking , the two bijections above give which proves (15). Integrating and using gives (16), since . ◻
A -partition consequence
For a word with distinct letters, set . For , let be Gessel’s fundamental quasisymmetric function. For a labeled poset on , define its pointed enumerators Their sum over is the usual fundamental -partition enumerator [19, 7].
For , define
Corollary 41 (Fixed-terminal -partition lift).
For every ,
Proof. By Lemma 7.4, inversion maps the permutations with record set bijectively to . Moreover, if and only if , so the fixed-terminal fiber maps to . Grouping the defining sum by gives the identity. ◻
Summing over and applying the standard stable principal specialization , for which , where , gives Here .
Record caterpillars and terminal values
Atkinson’s algorithm for posets whose cover graph is a tree proceeds through the position spectrum of a distinguished element and runs in quadratic time [1]. Record posets have caterpillar cover graphs, so its recursion has the following explicit form in record-gap coordinates. By Theorem 7.5, this distinguished-element spectrum is the terminal-value distribution in a fixed record-set fiber.
Lemma 42 (Record-caterpillar structure).
Write and set . The undirected Hasse diagram of is a caterpillar with spine For , the vertex is a leaf adjacent to , and For , the orientation of the -th spine edge is
Proof. If , then for the unique satisfying . No defining edge can have such an as its right endpoint, so is a leaf. If , then , producing the spine edge. The two orientation statements are immediate from Definition 7.2. The defining undirected graph is a tree, so none of its edges can be made redundant by transitive closure; therefore it is the undirected Hasse diagram. ◻
For , let be the subposet of induced by , and define the root spectrum Also put Thus .
Proposition 43 (Record-gap specialization of Atkinson’s recursion).
The initial spectrum is concentrated at one position: For and , define Then All other entries of are zero. In particular, After factorials and binomial coefficients have been precomputed, the entire vector is obtained in arithmetic operations.
Proof. For , the lower leaves must occur before , the upper leaves must occur after , and the leaves within either group may be ordered arbitrarily. This gives the stated initial spectrum.
Fix and a linear extension of . When is inserted, let be the number of entries of placed before . If , the entry must belong to this prefix, so its position in is at most . If , it must belong to the suffix, so its position is larger than . By Lemma 8.1, the number of admissible choices of is therefore exactly .
For a fixed admissible , interleave its ordered prefix of length with the distinct lower leaves. This can be done in ways. Independently, interleave its ordered suffix of length with the distinct upper leaves, in ways. The root lies between these two words and hence occupies position . This construction is reversible by restricting a linear extension of to and to the two leaf sets, so it counts every extension exactly once and proves (17). The final identities follow from Theorem 7.5. Prefix or suffix sums compute every array in operations, and summing over gives the stated quadratic bound. ◻
Remark 44 (Terminal-value range).
For any finite poset and , the possible positions of among the linear extensions form the interval For the record caterpillar this gives integers such that In gap coordinates, and Consequently,
Remark 45 (Gap-data invariance).
Fix . Suppose that have the same signs at and the same number of -signs in every open gap . Then, for every , Indeed, the hypotheses give an isomorphism of rooted record caterpillars: match the spine vertices and, in each gap, match -leaves to -leaves and -leaves to -leaves. The isomorphism fixes the distinguished vertex , so the spectra agree.
Example 46.
Let and . The record poset has cover relations The recursion gives Indeed, its five linear extensions are The corresponding inverse permutations are Two have terminal value , three have terminal value , and all have record set . Thus the contribution of this fixed record set to (15) is
Concluding remarks
The path construction is refined above by endpoint, record-set, direction, and terminal-value data, while the cyclic construction replaces the distinguished endpoint by a canonical root. It remains open whether the record-set Bernstein transfer and its -partition consequence admit cyclic analogues.
Acknowledgements
The author thanks Neil J. Y. Fan for drawing attention to Problem 5.3 of Ferroni–Morales–Panova and for his encouragement, and Quanyu Tang for helpful discussions and suggestions.
References
M. D. Atkinson, On computing the number of linear extensions of a tree, Order 7 (1990), no. 1, 23–25, doi:10.1007/BF00383170.
H. Z. Q. Chen and P. B. Zhang, The unimodality of the Ehrhart -polynomial of the chain polytope of the zig-zag poset, arXiv:1603.08283, 2016.
J. I. Coons and S. Sullivant, The -polynomial of the order polytope of the zig-zag poset, Electron. J. Combin. 30 (2023), no. 2, Paper No. 2.44, 20 pp.
R. T. Farouki, The Bernstein polynomial basis: a centennial retrospective, Comput. Aided Geom. Design 29 (2012), no. 6, 379–419, doi:10.1016/j.cagd.2012.03.001.
L. Ferroni, A. H. Morales, and G. Panova, Skew shapes, Ehrhart positivity and beyond, Proc. Lond. Math. Soc., to appear; arXiv:2503.16403v3, 2026.
A. M. Garsia and S. C. Milne, A Rogers–Ramanujan bijection, J. Combin. Theory Ser. A 31 (1981), no. 3, 289–339, doi:10.1016/0097-3165(81)90062-5.
I. M. Gessel, Multipartite -partitions and inner products of skew Schur functions, in Combinatorics and Algebra (Boulder, Colo., 1983), Contemp. Math., vol. 34, Amer. Math. Soc., Providence, RI, 1984, pp. 289–317.
I. M. Gessel and C. Krattenthaler, Cylindric partitions, Trans. Amer. Math. Soc. 349 (1997), no. 2, 429–479, doi:10.1090/S0002-9947-97-01791-1.
Y. Kahane, Combinatorial interpretation of the coefficients of the order polynomial of fence posets, arXiv:2607.11225v1 [math.CO], 13 July 2026.
W. Kang, K. Lee, and E. Lim, Unimodality and cluster algebras from surfaces, European J. Combin. 136 (2026), Paper No. 104392, doi:10.1016/j.ejc.2026.104392.
E. Kantarcı Oğuz, Oriented posets, rank matrices and -deformed Markov numbers, Discrete Math. 348 (2025), no. 2, Paper No. 114256, 17 pp., doi:10.1016/j.disc.2024.114256.
E. Kantarcı Oğuz, C. Y. Özel, and M. Ravichandran, Chainlink polytopes and Ehrhart equivalence, Ann. Comb. 28 (2024), no. 4, 1141–1166, doi:10.1007/s00026-023-00683-x.
E. Kantarcı Oğuz and M. Ravichandran, Rank polynomials of fence posets are unimodal, Discrete Math. 346 (2023), no. 2, Paper No. 113218, 20 pp.
T. Lundström and L. Saud Maia Leite, Order polytopes of crown posets, European J. Combin. 133 (2026), Paper No. 104304, 24 pp., doi:10.1016/j.ejc.2025.104304.
S. Morier-Genoud and V. Ovsienko, -deformed rationals and -continued fractions, Forum Math. Sigma 8 (2020), Paper No. e13, 55 pp.
T. K. Petersen and Y. Zhuang, Zig-zag Eulerian polynomials, European J. Combin. 124 (2025), Paper No. 104073, 30 pp., doi:10.1016/j.ejc.2024.104073.
R. P. Stanley, Two poset polytopes, Discrete Comput. Geom. 1 (1986), no. 1, 9–23.
R. P. Stanley, A survey of alternating permutations, in Combinatorics and Graphs, Contemp. Math., vol. 531, Amer. Math. Soc., Providence, RI, 2010, pp. 165–196.
R. P. Stanley, Ordered structures and partitions, Mem. Amer. Math. Soc., no. 119, Amer. Math. Soc., Providence, RI, 1972.
R. P. Stanley, Enumerative Combinatorics, Volume 1, second edition, Cambridge Studies in Advanced Mathematics, vol. 49, Cambridge University Press, Cambridge, 2012.
If you enjoyed this, leave a comment~