Bernstein Transfers and Greedy Records for Fence and Circular-Fence Order Polynomials

Pyuyi's log

Bernstein Transfers and Greedy Records for Fence and Circular-Fence Order Polynomials

For the fence poset associated with an orientation of a path, we define a greedy right-to-left record statistic on the symmetric group and prove that its generating function equals the factorial-scaled order polynomial. The proof uses a Bernstein-basis transfer between a continuous threshold recurrence and endpoint-refined order-preserving maps. A finite transfer gives a direct recursive bijection, while refinements by record set, direction, and terminal value identify fibers with decorated endpoint paths and pointed linear extensions of record posets. A cyclic record statistic gives the corresponding formula for every nonconstant orientation of a cycle and resolves the circular-fence conjecture discussed in the paper.

Pyuyi Chufeng Huang ·

Source locked to arXiv:2607.22767v2 · Article source license: CC BY 4.0

Bernstein Transfers and Greedy Records for Fence and Circular-Fence Order Polynomials

Pyuyi Chufeng Huang

Abstract

Let Pε be the fence poset associated with an orientation ε∈{+,−}n−1 of a path. We define a greedy right-to-left record statistic recε⁡ on Sn and prove ∑π∈Sntrecε⁡(π)=n!Ω(Pε;t), 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 m≤n, 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 ∑π∈Sntcrecη⁡(π)=n!Ω(Cη;t). When the Hasse diagram is a cycle, reflection identifies these records with Kahane’s circular blocks and establishes his circular-fence conjecture.

Introduction

Let P be a finite poset. Its order polynomial Ω(P;t) is characterized by Ω(P;m)=#{f:P→[m] order-preserving} for all positive integers m; 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 Zn, they asked for a direct permutation-statistic interpretation of n!Ω(Zn;t) [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 ε=(ε1,…,εn−1)∈{+,−}n−1 of a path. Let Pε be the transitive closure of εi=+⟹xi≻xi+1,εi=−⟹xi≺xi+1 on {x1,…,xn}. Thus Zn=Pεzz, where εizz=+ for odd i and εizz=− for even i.

For π=π1⋯πn∈Sn, the statistic starts with threshold πn 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 recε⁡(π). A precise definition and an equivalent greedy-chain formulation are given in Definition 2.2 and proposition 2.3.

Theorem 1.

For every n≥1 and every ε∈{+,−}n−1, ∑π∈Sntrecε⁡(π)=n!Ω(Pε;t).

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 δj=−εn−j,πjrev=πn+1−j, then Proposition 2.4 gives recε⁡(π)=blPδ⁡(πrev). 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.

  1. For every nonconstant orientation η of a cycle, a canonical root chosen from the labeled cycle defines a cyclic record statistic for which ∑π∈Sntcrecη⁡(π)=n!Ω(Cη;t). 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].

  2. The Bernstein recurrence lifts the path identity to endpoint-refined finite transfers and a direct recursive bijection for m≤n, with an algorithmic extension to arbitrary alphabets: Sn×{f:Pε→[m] order-preserving}⟷ {(π,λ):π∈Sn, λ:Recε⁡(π)→[m]}.

  3. 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 Qε,R, 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 P-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 h∗-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 n≥1 and ε∈{+,−}n−1. The ε-fence Pε is the poset on {x1,…,xn} obtained as the transitive closure of the relations εi=+⟹xi≻xi+1,εi=−⟹xi≺xi+1 for 1≤i≤n−1. Equivalently, its order-preserving maps to a chain are exactly the maps satisfying εi=+⟹f(xi)≥f(xi+1),εi=−⟹f(xi)≤f(xi+1) for 1≤i≤n−1.

Two fence posets. A +-edge is directed downward from left to right, and a −-edge upward.

Definition 3.

Let π=π1⋯πn∈Sn. The greedy ε-record sequence of π is the decreasing sequence of positions i0>i1>⋯>is constructed as follows. Start with i0=n. Once ij has been chosen, form Aj(π)={i<ij:πi>πij,if εi=+,πi<πij,if εi=−}. If Aj(π)=⌀, the construction stops. Otherwise, set ij+1=max⁡Aj(π). The positions i0,i1,…,is are the ε-records of π. Set Recε⁡(π)={i0,i1,…,is}. The record number is recε⁡(π)=|Recε⁡(π)|=s+1. We also set recε+⁡(π)=#{1≤j≤s:εij=+},recε−⁡(π)=#{1≤j≤s:εij=−}. Thus recε⁡(π)=1+recε+⁡(π)+recε−⁡(π), where the additional 1 comes from the terminal record at position n, 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 n to be a record and set h=πn. For i=n−1,n−2,…,1, declare i to be a record exactly when πi>h if εi=+, and exactly when πi<h if εi=−. Whenever a record is declared, replace h by πi.

Proof. After ij is chosen, the scan threshold is πij. If Aj(π)≠⌀, its largest element is the first position met from the right that satisfies the required comparison, and both constructions reset to its value. If Aj(π)=⌀, both stop. Induction on j proves the claim. ◻

Proposition 5 (Reflection to the block statistic).

For ε∈{+,−}n−1, define δj=−εn−j(1≤j≤n−1),πjrev=πn+1−j(1≤j≤n). Then Pδ is the reflection of Pε, and recε⁡(π)=blPδ⁡(πrev), where bl⁡ is Kahane’s greedy block statistic [9, Definition 3.5 and Proposition 3.4]. More precisely, position i is an ε-record of π if and only if reflected position n+1−i is the root of a block of (Pδ,πrev).

Proof. Write yj=xn+1−j. The edge between yj and yj+1 has sign δj=−εn−j, so the relabeling yj↔xn+1−j identifies Pδ with Pε.

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 j≥2, put i=n+1−j. The vertex yj is an ascent when δj−1=−, equivalently when εi=+, and it is a descent when δj−1=+, equivalently when εi=−. Hence a new block begins at j exactly when εi=+ and πi>h,orεi=− and πi<h, where h 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 εzz of length n−1, given by εizz=+ for odd i and εizz=− for even i, and for π=41532, the greedy record sequence is 5⟶3⟶2⟶1. Starting from position 5, whose value is 2, position 4 is even and therefore has sign −, so it would have to satisfy π4<2; but π4=3. The nearest admissible position is therefore 3, since π3=5>2. From position 3, the next admissible position is 2, and from position 2, the next admissible position is 1. Hence recεzz⁡(41532)=4, which is zzrec(41532) 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 Hw(m)(x)∈ℚ[x] 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 w=w1⋯wr∈{+,−}r be a word. The letter w1 is the first comparison made with the current right endpoint, w2 is the next comparison after moving one step to the left, and so on.

Definition 7.

Fix m≥1. For 1≤k≤m, define endpoint-refined counts Cw(m)(k) recursively by C⌀(m)(k)=1, and for a word v, C+v(m)(k)=∑ℓ=kmCv(m)(ℓ),C−v(m)(k)=∑ℓ=1kCv(m)(ℓ). Equivalently, Cw(m)(k) counts sequences (g0,g1,…,gr)∈[m]r+1 with g0=k such that wj=+⟹gj≥gj−1,wj=−⟹gj≤gj−1 for 1≤j≤r.

Lemma 8 (Endpoint-refined order polynomials).

Let ε∈{+,−}n−1, and put w=εn−1εn−2⋯ε1. For 1≤k≤m, the number Cw(m)(k) counts order-preserving maps f:Pε→[m] with f(xn)=k. Consequently, Ω(Pε;m)=∑k=1mCw(m)(k).

Proof. Given f:Pε→[m], set gj=f(xn−j) for 0≤j≤n−1. Then g0=f(xn). For 1≤j≤n−1, the sign wj is εn−j. If wj=+, then the order-preserving condition is f(xn−j)≥f(xn−j+1), or gj≥gj−1. If wj=−, it is gj≤gj−1. These are exactly the inequalities in Definition 3.1, and the correspondence is reversible. ◻

Definition 9.

For m≥1, x∈[0,1], and a word w∈{+,−}r, let Hw(m)(x) be the expected value of mN in the following process. We start with threshold x, inspect r independent uniform random variables in order, and use the comparison directions w1,…,wr. 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 N is the number of new records among these r inspected variables.

Conditioning on the first inspected value gives the recurrences H⌀(m)(x)=1,(1)H+v(m)(x)=xHv(m)(x)+m∫x1Hv(m)(u)du,(2)H−v(m)(x)=(1−x)Hv(m)(x)+m∫0xHv(m)(u)du.(3) For example, in a +-step, a first inspected value u≤x is not a record, keeps the threshold x, and contributes xHv(m)(x). A value u>x is a record, contributes the factor m, changes the threshold to u, and contributes m∫x1Hv(m)(u)du. The −-step is the same argument with the intervals [0,x] and [x,1] interchanged. These recurrences recursively determine Hw(m) from the constant polynomial 1. Hence each Hw(m) is a polynomial in x, and all integrations are ordinary integrations of polynomials.

For 1≤k≤m, set bm,k(x)=(m−1k−1)xk−1(1−x)m−k. These are the Bernstein basis polynomials of degree m−1 [4], indexed so that k∈[m] matches the endpoint value in Lemma 3.2. Probabilistically, if U1,…,Um−1 are independent uniform random variables on [0,1], then bm,k(x)=Pr⁡(#{j:Uj<x}=k−1). Thus bm,k(x) is the probability that x has rank k after being inserted among m−1 auxiliary uniform points.

Lemma 10 (Bernstein summation identities).

For 1≤ℓ≤m, xbm,ℓ(x)+m∫x1bm,ℓ(u)du=∑k=1ℓbm,k(x),(4)(1−x)bm,ℓ(x)+m∫0xbm,ℓ(u)du=∑k=ℓmbm,k(x).(5) Moreover, ∫01bm,k(x)dx=1m for every k.

Proof. For the first identity, differentiate both sides: each derivative equals −(m−ℓ)(m−1ℓ−1)xℓ−1(1−x)m−ℓ−1 when ℓ<m, and both sides vanish at x=1; the case ℓ=m is the binomial theorem. The second identity follows by replacing (x,ℓ) with (1−x,m+1−ℓ). Finally, the beta integral gives ∫01bm,k(x)dx=(m−1k−1)(k−1)!(m−k)!m!=1m,. ◻

Lemma 11 (Transfer lemma).

For every m≥1 and every word w∈{+,−}r, Hw(m)(x)=∑k=1mCw(m)(k)bm,k(x).

Proof. We induct on the length of w. For w=⌀, the statement is 1=∑k=1mbm,k(x), the binomial theorem.

Assume the statement for v. Using (2), the induction hypothesis, and (4), we get H+v(m)(x)=x∑ℓ=1mCv(m)(ℓ)bm,ℓ(x)+m∫x1∑ℓ=1mCv(m)(ℓ)bm,ℓ(u)du=∑ℓ=1mCv(m)(ℓ)(xbm,ℓ(x)+m∫x1bm,ℓ(u)du)=∑ℓ=1mCv(m)(ℓ)∑k=1ℓbm,k(x)=∑k=1m(∑ℓ=kmCv(m)(ℓ))bm,k(x)=∑k=1mC+v(m)(k)bm,k(x). The proof for −v is identical, using (3) and (5): H−v(m)(x)=(1−x)∑ℓ=1mCv(m)(ℓ)bm,ℓ(x)+m∫0x∑ℓ=1mCv(m)(ℓ)bm,ℓ(u)du=∑ℓ=1mCv(m)(ℓ)((1−x)bm,ℓ(x)+m∫0xbm,ℓ(u)du)=∑ℓ=1mCv(m)(ℓ)∑k=ℓmbm,k(x)=∑k=1m(∑ℓ=1kCv(m)(ℓ))bm,k(x)=∑k=1mC−v(m)(k)bm,k(x). This completes the induction. ◻

Proof of Theorem 1.1. It suffices to prove the identity after the specialization t=m for every positive integer m, since both sides are polynomials in t.

Let X1,…,Xn be independent continuous uniform random variables. Their relative order is almost surely uniformly distributed over Sn, and recε⁡ depends only on comparisons among entries. Therefore 1n!∑π∈Snmrecε⁡(π) is the expected value of mrecε⁡ in this continuous model.

Set w=εn−1εn−2⋯ε1. The rightmost position is always a record, contributing one factor m. After conditioning on Xn=x, the remaining variables are inspected with comparison word w. Hence 1n!∑π∈Snmrecε⁡(π)=m∫01Hw(m)(x)dx.(6)

By Lemma 3.5 and Lemma 3.4, m∫01Hw(m)(x)dx=m∑k=1mCw(m)(k)∫01bm,k(x)dx=∑k=1mCw(m)(k). By Lemma 3.2, the last sum is Ω(Pε;m). Combining this with (6) proves 1n!∑π∈Snmrecε⁡(π)=Ω(Pε;m) for all positive integers m. The polynomial identity in t follows. ◻

For the alternating sign word εizz=+ for odd i and εizz=− for even i, write zzrec(π)=recεzz⁡(π). Then Pεzz=Zn, and Theorem 1.1 specializes to ∑π∈Sntzzrec(π)=n!Ω(Zn;t). This is the zig-zag specialization posed in [5, Problem 5.3].

Remark 12 (Symmetries and checks).

Complementing values, c(π)i=n+1−πi, interchanges the two record directions: rec−ε⁡(c(π))=recε⁡(π),rec−ε+⁡(c(π))=recε−⁡(π),rec−ε−⁡(c(π))=recε+⁡(π). This follows directly by complementing the threshold at every step. If εi←=εn−i, reversing the vertices identifies Pε with Pη, where ηi=−εn−i. Complementing the values of an order-preserving map then identifies Pη with P−η, so Ω(Pε;t)=Ω(Pε←;t). 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 ∑π∈Sntrecε⁡(π)=n!(t+n−1n)=t(t+1)⋯(t+n−1). The all-− case follows by complementation.

For the alternating sign word, the covering relations are x1≻x2≺x3≻x4≺⋯. Under the opposite convention x1≺x2≻x3≺⋯, the signs in εzz 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, [tn]∑π∈Sntzzrec(π)=En, the classical Euler zig-zag number [18].

Circular fences and cyclic records

Let η=(η1,…,ηn)∈{+,−}n be nonconstant, and read subscripts modulo n. The cyclic orientation poset Cη is the transitive closure of ηi=+⟹xi≻xi+1,ηi=−⟹xi≺xi+1. Nonconstancy makes this orientation acyclic and ensures that both signs occur. Thus Cη is a poset, and its order-preserving maps to [m] 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 Cη 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 m, let M+[a,b]=𝟏a≥b,M−[a,b]=𝟏a≤b(a,b∈[m]). Then Ω(Cη;m)=tr⁡(Mη1⋯Mηn).

Proof. The (a1,an+1)-entry of the product sums the indicators of the edge inequalities over a2,…,an∈[m]. Taking the trace imposes an+1=a1, 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 h∗-polynomial [14]. Here we seek instead a statistic for the coefficients of n!Ω(Cη;t). 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 I+(η)={i∈[n]:ηi=+}. For π=π1⋯πn∈Sn, let r=rη(π) be the unique index in I+(η) such that πr=max⁡{πi:i∈I+(η)}. The position r is declared to be a record, and the initial threshold is h=πr. We then inspect the remaining positions in cyclic right-to-left order r−1, r−2, …, r+1. When position i is inspected, it is a record if ηi=+ and πi>h,orηi=− and πi<h. Whenever a record occurs, the threshold is reset to h=πi. The total number of records is denoted by crecη⁡(π).

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 η∈{+,−}n, we have ∑π∈Sntcrecη⁡(π)=n!Ω(Cη;t).

Proof. It suffices to prove the identity after substituting t=m for every positive integer m, since both sides are polynomials in t.

Let X1,…,Xn be independent uniform random variables on [0,1]. Their relative order is almost surely uniform on Sn, and crecη⁡ depends only on this relative order. Hence 1n!∑π∈Snmcrecη⁡(π)=𝔼[mcrecη⁡(X)].

Let A+ and A− be the m×m matrices A+[a,b]={1,a≤b,0,a>b,A−[a,b]={1,a≥b,0,a<b, with rows and columns indexed by [m]. These are the one-step transfer matrices for the endpoint recurrences in Definition 3.1: a +-step sends a continuation vector v to A+v, and a −-step sends it to A−v. Put N+(x)=xA+,N−(x)=(1−x)I+xA−. Let em 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 x and rescaling [0,x] to [0,1], the initial threshold is 1. Since bm,k(1)=δk,m, the Bernstein expansion in Lemma 3.5 evaluates this state by emT. At the other end the empty continuation has coefficient vector 𝟏, because C⌀(m)(k)=1 for all k. For r∈I+(η), define Tr(x)=Nηr−1(x)Nηr−2(x)⋯Nηr+1(x), where the product contains the n−1 indices met in cyclic decreasing order. We claim that 1n!∑π∈Snmcrecη⁡(π)=m∫01∑r∈I+(η)emTTr(x)𝟏dx.(7) Indeed, fix r∈I+(η) and condition on Xr=x. The contribution in which r is the chosen root requires every other +-position to have value in [0,x]. During the cyclic scan the threshold never exceeds x. Thus a non-root +-position contributes the probability factor x and, after rescaling [0,x] to [0,1], the ordinary +-transfer A+. A −-position has two possibilities: values in (x,1] cannot be records and contribute (1−x)I, while values in [0,x] contribute, after the same rescaling, the ordinary −-transfer xA−. The root itself contributes one factor m. Multiplying the transfers in the scan order and integrating over x gives (7).

To evaluate the integral, set 𝒩η(x)=Nηn(x)Nηn−1(x)⋯Nη1(x). We shall show that ddxtr⁡𝒩η(x)=m∑r∈I+(η)emTTr(x)𝟏.(8) Let R=m𝟏emT and let L be the lower bidiagonal matrix La,a=a−m(1≤a≤m),La,a−1=−(a−1)(2≤a≤m), with all other entries equal to 0. A direct entrywise check gives LA−−A−L=A−−I,LA+−A+L=A+−R. Indeed, multiplication by the two nonzero diagonals of L gives (LA−−A−L)[a,b]=𝟏a≥b−δa,b,(LA+−A+L)[a,b]=𝟏a≤b−m𝟏b=m, which are the entries of A−−I and A+−m𝟏emT, respectively. Equivalently, for x>0, with D(x)=L/x, N−′(x)=[D(x),N−(x)],N+′(x)=R+[D(x),N+(x)]. Differentiating tr⁡𝒩η(x), the Leibniz sum of the commutator terms telescopes by the derivation rule: ∑i=1nNηn⋯Nηi+1[D,Nηi]Nηi−1⋯Nη1=[D,𝒩η]. (Here every matrix is evaluated at x.) Its trace is zero. The remaining terms insert R at the +-positions. By cyclicity of trace, these insertions give ∑r∈I+(η)tr⁡(RTr(x))=m∑r∈I+(η)emTTr(x)𝟏, which proves (8). Although D(x) has a pole at 0, the displayed derivative identity is an identity of polynomials on (0,1], hence extends to the interval after integration.

Since I+(η)≠⌀, we have N+(0)=0 in at least one factor, so tr⁡𝒩η(0)=0. Also N+(1)=A+ and N−(1)=A−. Integrating (8) over [0,1] gives m∫01∑r∈I+(η)emTTr(x)𝟏dx=tr⁡(AηnAηn−1⋯Aη1). The matrices A+ and A− are the transposes of the matrices M+ and M− in Proposition 4.1. Therefore tr⁡(AηnAηn−1⋯Aη1)=tr⁡(Mη1Mη2⋯Mηn)=Ω(Cη;m). Combining this with (7) proves the desired identity at t=m, 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 C be a circular fence whose Hasse diagram is a cycle, and let ys be the ascent vertex with largest label among all ascent vertices. Delete the incoming cover ys−1<ys, and read the resulting path from ys to ys−1. If B1,…,Bk is Kahane’s greedy block partition of this path, then the same consecutive blocks form the unique valid circular block partition of C.

Proof. The first block has root ys. Every later ascent root has smaller label by the choice of ys, while a descent root is created by a downward threshold reset and therefore also has smaller label. If k=1, all other ascent labels lie below the label of ys, and every descent label lies above it. Thus the whole cycle satisfies Kahane’s block condition.

Suppose k≥2. 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 Bk, 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 Bk<B1, and the root of Bk has smaller label than the root ys of B1. 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 Cη is a cycle. Read subscripts modulo n, with η0=ηn, and define δj=−ηn−j,πjrev=πn+1−j(1≤j≤n). Let blCδ∘⁡ denote Kahane’s bl⁡ˆ, the number of blocks in the unique valid circular block partition [9, §4.2 and Lemma 4.7]. Then crecη⁡(π)=blCδ∘⁡(πrev). 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 yj=xn+1−j. As in Proposition 2.4, the signs of the reflected cycle are δj=−ηn−j. Moreover, yn+1−i=xi is an ascent vertex of the reflected cycle exactly when i∈I+(η). The chosen cyclic record therefore becomes the maximum-labeled ascent vertex, say ys.

Cut the edge entering ys and read the resulting path from ys 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 C be a circular fence of size n whose Hasse diagram is a cycle, in the sense of [9, Definition 4.6]. Then n!Ω(C;t)=∑σ∈SntblC∘⁡(σ). Consequently, [9, Conjecture 4.8] holds.

Proof. Choose a cyclic presentation C=Cδ and reflect it to Cη, where ηi=−δn−i. 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 η=(+,−,+,−), Ω(Cη;m)=∑a,c=1mmin⁡(a,c)2=m(m+1)(m2+m+1)6. The cyclic record statistic therefore gives ∑π∈S4tcrecη⁡(π)=4t+8t2+8t3+4t4=4!Ω(Cη;t).

Finite Bernstein transfers

We now discretize the Bernstein transfer. Finite counting recurrences for a rank-vector analogue of Hw(m) 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 w=w1⋯wr∈{+,−}r, let m≥1, and let 1≤k≤r+1. For a permutation α=(a1,…,ar) of the set [r+1]∖{k}, start with threshold h0=k. At step j, declare a record if wj=+ and aj>hj−1,orwj=− and aj<hj−1. If a record occurs, set hj=aj; otherwise set hj=hj−1. Let Nw(α;k) be the number of records declared in these r steps, not including the initial threshold. Define Dw(m)(k)=∑αmNw(α;k), where the sum is over all permutations of [r+1]∖{k}. For indices outside 1,…,r+1, we set Dw(m)(k)=0.

Lemma 21 (Entry from permutations).

Let ε∈{+,−}n−1, put w=εn−1εn−2⋯ε1, and let 1≤k≤n. Then, for every positive integer m, ∑π∈Snπn=kmrecε⁡(π)=mDw(m)(k). Consequently, ∑π∈Snmrecε⁡(π)=m∑k=1nDw(m)(k).

Proof. The position n is always a greedy ε-record, so it contributes one factor m. If πn=k, then the right-to-left scan of the remaining positions reads a permutation of [n]∖{k}, and the comparison word is w=εn−1⋯ε1. 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 k gives the first identity, and summing over k gives the second. ◻

Proposition 22 (Rank-vector recurrences).

Let v∈{+,−}r−1, so that +v and −v have length r. For 1≤k≤r+1, D+v(m)(k)=(k−1)Dv(m)(k−1)+m∑j=krDv(m)(j),(9)D−v(m)(k)=(r+1−k)Dv(m)(k)+m∑j=1k−1Dv(m)(j).(10)

Proof. For D+v(m)(k), separate the first scanned value a. If a<k, then no record occurs. After deleting a and standardizing the remaining ordered set, the threshold k has rank k−1. There are k−1 choices for a, giving the first term in (9). If a>k, then a record occurs, contributing the factor m. After deleting the old threshold k and standardizing the ordered set [r+1]∖{k}, the new threshold a has rank j=a−1, where j ranges from k to r. This gives the sum in (9).

For D−v(m)(k), the same first-step decomposition is reversed. If a>k, no record occurs; deleting a leaves the threshold with rank k, and there are r+1−k choices. If a<k, a record occurs, contributes m, and the new threshold has rank j=a after standardization, with 1≤j<k. This gives (10). ◻

For r≥0, write Br,k(x)=(rk−1)xk−1(1−x)r+1−k,1≤k≤r+1, for the degree r Bernstein basis.

Lemma 23 (Degree-raising identities).

Let r≥1 and 1≤j≤r. Then xBr−1,j(x)=jrBr,j+1(x),∫x1Br−1,j(u)du=1r∑h=1jBr,h(x),(11)(1−x)Br−1,j(x)=r+1−jrBr,j(x),∫0xBr−1,j(u)du=1r∑h=j+1r+1Br,h(x).(12)

Proof. The two product identities follow from the definition of Br,k and the binomial ratios (r−1j−1)(rj)=jr,(r−1j−1)(rj−1)=r+1−jr. The two integral identities follow by differentiating the displayed sums, which telescope, and checking the value at x=1, respectively x=0. ◻

The next lemma packages the rank-vector sums in the Bernstein basis. Here and in the rest of this section, Hw(m) denotes the polynomial determined by the recurrences (1)–(3).

Lemma 24 (Bernstein packaging of rank vectors).

For every m≥1, every r≥0, and every word w∈{+,−}r, r!Hw(m)(x)=∑k=1r+1Dw(m)(k)Br,k(x).

Proof. We induct on the length of w. For w=⌀, both sides equal 1, since D⌀(m)(1)=1 and B0,1=1.

Let w=+v, where v has length r−1≥0, and assume the statement for v. By (2) and the induction hypothesis, r!H+v(m)(x)=r∑j=1rDv(m)(j)(xBr−1,j(x)+m∫x1Br−1,j(u)du). By the degree-raising identities (11), the right-hand side equals ∑j=1rDv(m)(j)(jBr,j+1(x)+m∑h=1jBr,h(x))=∑k=1r+1((k−1)Dv(m)(k−1)+m∑j=krDv(m)(j))Br,k(x), where the coefficient of Br,k collects the term j=k−1 from the first summand and the terms j≥k from the second. By (9), this coefficient is D+v(m)(k).

The case w=−v is identical, using (3), (12), and (10). ◻

The following positive kernel converts endpoint counts into rank-vector sums.

Definition 25.

For r≥m−1, 1≤k≤r+1, and 1≤ℓ≤m, set κr(m)(k,ℓ)=(k−1)!(r+1−k)!(m−1ℓ−1)(r−m+1k−ℓ). We use the convention that (ab)=0 when b<0 or b>a.

Lemma 26 (Degree elevation for the kernel).

If r≥m−1, then bm,ℓ(x)=∑k=1r+1κr(m)(k,ℓ)r!Br,k(x) for every 1≤ℓ≤m.

Proof. This is the standard degree elevation of the Bernstein basis [4], written in the present normalization. Substituting the definitions gives κr(m)(k,ℓ)r!Br,k(x)=(m−1ℓ−1)(r−m+1k−ℓ)xk−1(1−x)r+1−k. After summing over k, factor out (m−1ℓ−1)xℓ−1(1−x)m−ℓ. The remaining sum is ∑a=0r−m+1(r−m+1a)xa(1−x)r−m+1−a=1 by the binomial theorem. The result is exactly bm,ℓ(x). ◻

Combining the packaging lemma with the transfer lemma and degree elevation gives the finite transfer directly.

Theorem 27 (Finite Bernstein transfer).

Let m≥1, and let w∈{+,−}r with r≥m−1. Then, for 1≤k≤r+1, Dw(m)(k)=∑ℓ=1mCw(m)(ℓ)κr(m)(k,ℓ).

Proof. By Lemma 3.5 and Lemma 5.7, r!Hw(m)(x)=r!∑ℓ=1mCw(m)(ℓ)bm,ℓ(x)=∑k=1r+1(∑ℓ=1mCw(m)(ℓ)κr(m)(k,ℓ))Br,k(x). By Lemma 5.5, the left-hand side is also ∑k=1r+1Dw(m)(k)Br,k(x). The polynomials Br,1,…,Br,r+1 form a basis of the space of polynomials of degree at most r, so the coefficients agree. ◻

Corollary 28 (Diagonal case).

Let m≥1 and w∈{+,−}m−1. Then Dw(m)(k)=(m−1)!Cw(m)(k)(1≤k≤m). Equivalently, in the notation of Lemma 5.2: for n≥1, ε∈{+,−}n−1, w=εn−1⋯ε1, and 1≤k≤n, ∑π∈Snπn=knrecε⁡(π)=n!Cw(n)(k).

Proof. Take r=m−1 in Theorem 5.8: the factor (r−m+1k−ℓ)=(0k−ℓ) in Definition 5.6 vanishes unless k=ℓ, so κm−1(m)(k,ℓ)=(m−1)!δk,ℓ. The permutation form is the case m=n, r=n−1 of the first identity, multiplied by n using Lemma 5.2. ◻

Integrating the degree-elevation identity in Lemma 5.7 gives the column sum ∑k=1r+1κr(m)(k,ℓ)=(r+1)!m. Here we used ∫01Br,k(x)dx=1/(r+1) and ∫01bm,ℓ(x)dx=1/m. Consequently the finite transfer gives a second, probability-free proof of Theorem 1.1. Indeed, for w=εn−1⋯ε1 and 1≤m≤n, ∑π∈Snmrecε⁡(π)=m∑k=1nDw(m)(k)=m∑ℓ=1mCw(m)(ℓ)∑k=1nκn−1(m)(k,ℓ)=m∑ℓ=1mCw(m)(ℓ)(n−1)!nm=n!Ω(Pε;m). The two degree-≤n polynomials also agree at m=0, so interpolation completes the argument.

A bijective form of the finite transfer

We construct an object-level bijection between pairs (σ,f), with σ∈Sn and f:Pε→[m] order-preserving, and pairs (π,λ), with π∈Sn and λ:Recε⁡(π)→[m]. A weak map f has ∏a∈[m]|f−1(a)|! 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 Dw(m)(k)=(m−1)!Cw(m)(k). Theorem 6.6 gives a direct recursive bijection when m≤n; Theorem 6.7 extends it algorithmically to arbitrary alphabets by a finite used-label sieve.

Throughout this section, if A is a finite totally ordered set and a∈A, we write stdA∖{a}⁡:A∖{a}⟶[|A|−1] for the increasing bijection. When A=[N], this is the map x⟼{x,x<a,x−1,x>a. 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 b-th position of a word or board of length L−1 means that the entry is inserted after the first b−1 entries, so that it occupies position b in the resulting word or board of length L. Thus b=1 means insertion at the beginning and b=L means insertion at the end.

Let N≥m. For 1≤k≤N and 1≤ℓ≤m, define 𝒦N,m(k,ℓ) to be the set of words ω=(k;r1,r2,…,rN−1), whose entries are the elements of [N], with first entry k, such that k has rank ℓ in the m-window k,r1,…,rm−1. Equivalently, ℓ=1+#{1≤s≤m−1:rs<k}. We use the convention that 𝒦N,m(k,ℓ)=⌀ whenever one of the indices is outside its natural range.

Direct counting gives |𝒦N,m(k,ℓ)|=(k−1)!(N−k)!(m−1ℓ−1)(N−mk−ℓ)=κN−1(m)(k,ℓ). Indeed, choose the ℓ−1 window elements below k and the m−ℓ window elements above k, then order the window and its complement. The count is (k−1ℓ−1)(N−km−ℓ)(m−1)!(N−m)!, which simplifies to the displayed kernel.

The following local exchange realizes one step of the finite transfer. First suppose N>m, so that the buffer entry rm exists.

Lemma 29 (The +-window exchange).

Fix N>m, 1≤k≤N, and 1≤j≤m. There is an explicit bijection ⨆ℓ≤j𝒦N,m(k,ℓ)⟷({1,…,k−1}×𝒦N−1,m(k−1,j))⊔([m]×⨆q=kN−1𝒦N−1,m(q,j)).

Proof. Take ω=(k;r1,…,rN−1)∈𝒦N,m(k,ℓ),ℓ≤j, and set ρ=1+#{1≤s≤m−1:rs<k}. Thus ρ=ℓ≤j. Let S=(r1,…,rm) be the extended window.

If ρ=j and rm<k, we are in the non-record case. Put a=rm. Delete a from ω and standardize the remaining entries. The threshold k becomes k−1, and the first m-window still has threshold rank j. Hence the output is (a,ω′)∈{1,…,k−1}×𝒦N−1,m(k−1,j).

In all other cases, let a be the j-th smallest element of the extended window S, and let b∈[m] be its position in S. We claim that a>k. Indeed, if rm>k, then the extended window has at most j−1 entries smaller than k. If rm<k, then failure of the non-record case forces ρ<j, and again the extended window has at most j−1 entries smaller than k. Thus the j-th smallest entry of S is larger than k.

This is the record case. Delete the old threshold k, put the new threshold a in front, remove a from the rest word, and standardize. Since a>k, the new threshold has standardized value q=a−1,k≤q≤N−1. The first m-window after this operation has the same underlying set as S, hence the new threshold has rank j. We output (b,ω′)∈[m]×𝒦N−1,m(q,j).

The inverse map is explicit. In the non-record branch, start with a<k,ω′∈𝒦N−1,m(k−1,j). Unstandardize by inserting a, so that the threshold k−1 becomes k, and insert a as the m-th entry of the rest word. This recovers the unique ω which falls into the non-record case.

In the record branch, start with b∈[m],ω′∈𝒦N−1,m(q,j),k≤q≤N−1. Unstandardize by inserting the old threshold k. The current threshold q becomes a=q+1. Remove this leading a, put k in front, and insert a in the b-th position of the rest word. Its extended window has a>k as its j-th smallest entry. Every entry below k is below a, so the rank ℓ of k in the reconstructed first window satisfies ℓ≤j; hence the object lies in the domain on the left. It cannot satisfy simultaneously ℓ=j and rm<k, because then the extended window would contain at least j entries below k<a, contrary to a being its j-th smallest entry. Thus the reconstruction lies in the record branch, with the prescribed position b. The two inverse constructions are therefore well-defined and inverse to the forward branches. ◻

Corollary 30 (The −-window exchange).

Fix N>m, 1≤k≤N, and 1≤j≤m. There is an explicit bijection ⨆ℓ≥j𝒦N,m(k,ℓ)⟷({k+1,…,N}×𝒦N−1,m(k,j))⊔([m]×⨆q=1k−1𝒦N−1,m(q,j)).

Proof. Apply the order-reversing involution (k;r1,…,rN−1)⟼(N+1−k;N+1−r1,…,N+1−rN−1). It sends 𝒦N,m(k,ℓ) to 𝒦N,m(N+1−k,m+1−ℓ). Therefore ℓ≥j becomes m+1−ℓ≤m+1−j, and Lemma 6.1, with threshold N+1−k and index m+1−j, applies. On the size-N−1 output word use the corresponding order reversal x↦N−x. Its non-record branch becomes {k+1,…,N}×𝒦N−1,m(k,j), and its record thresholds q′=N+1−k,…,N−1 become q=N−q′=1,…,k−1. Positions in the extended window are unchanged, so the label in [m] is unchanged. Conjugating the forward and inverse maps of Lemma 6.1 by these order reversals proves the stated bijection and its reversibility. ◻

When N=m, the buffer entry rm is absent; the diagonal case is handled by the following hole construction.

Lemma 31 (The diagonal hole bijection).

Let m≥1, let w∈{+,−}m−1, and fix 1≤k≤m. There is a bijection {(α,λ):α is a scan order of [m]∖{k}, λ:Recw⁡(α;k)→[m]}⟷{(g,ρ):g is counted by Cw(m)(k), ρ∈Sm−1}. Here Recw⁡(α;k) denotes the set of record steps in the threshold scan with initial threshold k and comparison word w.

Proof. We give the map from labeled scan orders to pairs (g,ρ). Maintain a board with m positions. Each position contains either an actual value Ax, x∈[m], or a hole Ht, where t records the time at which the hole was created. Initially the board is (A1,A2,…,Am), and the threshold is Ak. Thus g0=k.

Process the scan order α=(a1,…,am−1) from left to right. Suppose we are at time t. If the t-th inspected value is not a record, replace the board entry Aat by the hole Ht, and keep the threshold unchanged. If it is a record, let b=λ(t). Delete the old threshold from the board, insert the hole Ht in the b-th position, and make Aat the new threshold. After either operation, define gt to be the current position of the threshold.

After time t, the following board invariant holds:

  1. the holes are exactly H1,…,Ht;

  2. the actual tokens are the current threshold together with the uninspected values Aat+1,…,Aam−1, and they occur in increasing value order when the holes are ignored;

  3. the current threshold occupies position gt.

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 wt=+⟹gt≥gt−1. The same argument with left and right interchanged gives wt=−⟹gt≤gt−1. After m−1 steps, only the final threshold remains actual; the other entries are the holes H1,…,Hm−1. Reading their time labels from left to right gives a permutation ρ∈Sm−1.

For the inverse map, start from (g,ρ) and construct the final board by putting one unnamed actual token in position gm−1, and by putting the holes Hρ1,Hρ2,…,Hρm−1 from left to right in the other positions. This actual token is the current threshold.

For t=m−1,m−2,…,1, let q=gt be the current threshold position and let p be the current position of Ht. If wt=+,gt=gt−1,p<q, or if wt=−,gt=gt−1,p>q, then the original step was a non-record: replace Ht by a new actual token, and declare this token to be the t-th scanned token. Otherwise the original step was a record: the current threshold token is the t-th scanned token, the label is λ(t)=p, then delete Ht, insert a new actual token in position gt−1, and make this new token the threshold.

After reversing all steps, the board contains m actual tokens and no holes. Assign the values 1,2,…,m to these tokens from left to right. Since the threshold is in position g0=k, the initial threshold receives value k. The values assigned to the scanned tokens, in times 1,…,m−1, form α, and the labels recovered in the record steps form λ.

To prove reversibility, use descending induction on t. After the steps m−1,m−2,…,t+1 have been undone, the board is, up to the still unnamed actual tokens, exactly the forward board just after time t, with the same threshold and holes. For a +-step, a forward non-record creates Ht strictly to the left of the unchanged threshold, so gt=gt−1 and p<q. In a forward record the new threshold comes from the right of the old one. If deletion of the old threshold and insertion of Ht leave the threshold in position gt−1, then the new threshold was the next actual token to the right and the inserted hole lies to its right; thus p<q 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 t−1. 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 m=4, w=(+,+,−), initial threshold k=1, scan order α=(4,3,2), and labels λ(1)=2 and λ(3)=1. The board starts as [A1,A2,A3,A4], with the threshold A1 in position g0=1.

  • t=1 (+): a1=4>1 is a record. Delete the threshold A1 and insert the hole H1 in position λ(1)=2; the new threshold is A4. The board is [A2,H1,A3,A4] and g1=4.

  • t=2 (+): a2=3<4 is a non-record. Replace A3 by H2 in place, leaving the threshold A4 unchanged. The board is [A2,H1,H2,A4] and g2=4.

  • t=3 (−): a3=2<4 is a record. Delete the threshold A4 and insert the hole H3 in position λ(3)=1; the new threshold is A2. The board is [H3,A2,H1,H2] and g3=2.

Reading the hole time-labels from left to right gives ρ=(3,1,2), and the endpoint sequence is g=(1,4,4,2), weakly increasing across the two +-steps and weakly decreasing across the −-step, as required of a path counted by Cw(4)(1). Thus (α,λ)↦(g,ρ); the inverse rebuilds the board from g and ρ, reversing the three steps to recover (α,λ).

We can now assemble the finite-transfer bijection. For N≥m, w∈{+,−}N−1, and 1≤k≤N, let ℛN,m(w;k) denote the set of pairs (α,λ), where α is a scan order of [N]∖{k} and λ:Recw⁡(α;k)→[m]. Let 𝒯N,m(w;k) be the disjoint union 𝒯N,m(w;k)=⨆ℓ=1m{g:g is counted by Cw(m)(ℓ)}×𝒦N,m(k,ℓ).

Proposition 33 (Finite-transfer bijection).

For N≥m, w∈{+,−}N−1, and 1≤k≤N, there is a bijection ΘN,m,w,k:𝒯N,m(w;k)⟶ℛN,m(w;k).

Proof. We define ΘN,m,w,k recursively on N. If N=m, then 𝒦m,m(k,ℓ) is empty unless ℓ=k. For ω=(k;r1,…,rm−1)∈𝒦m,m(k,k), standardize the rest word by deleting k: ρ=(std[m]∖{k}⁡(r1),…,std[m]∖{k}⁡(rm−1))∈Sm−1. Then apply the inverse direction of Lemma 6.3 to (g,ρ).

Assume now that N>m, and write w=sv, where s∈{+,−}. Take an input (g,ω)∈𝒯N,m(w;k), with g=(g0,g1,…,gN−1),g0=ℓ. Put j=g1 and g′=(g1,…,gN−1). In every recursive call below, the labeled scan order returned by the recursive bijection is a tail scan of length N−2. When this tail is attached after the first scanned value, its scan times are reindexed by u↦u+1, and the labels on its record steps are transported by this reindexing.

If s=+, then ℓ≤j, so Lemma 6.1 applies to ω. There are two cases.

In the non-record case it returns a<k,ω′∈𝒦N−1,m(k−1,j). Recursively apply ΘN−1,m,v,k−1 to (g′,ω′), obtaining a labeled scan order on the standardized set. Unstandardize the tail by reinserting a, and put a as the first scanned value. No new label is added.

In the record case it returns b∈[m],ω′∈𝒦N−1,m(q,j),k≤q≤N−1. The first scanned value is the unstandardized value a=q+1. Recursively apply ΘN−1,m,v,q to (g′,ω′), unstandardize the tail by reinserting the old threshold k, put a first, and give this first record the label b.

The construction for s=− is identical, using Lemma 6.2. In the non-record case one has a>k,ω′∈𝒦N−1,m(k,j). Recursively apply ΘN−1,m,v,k to (g′,ω′), unstandardize the tail by reinserting a, and put a first, with no new label. In the record case one has b∈[m],ω′∈𝒦N−1,m(q,j),1≤q≤k−1. The first scanned value is the unstandardized value a=q<k. Recursively apply ΘN−1,m,v,q to (g′,ω′), unstandardize the tail by reinserting the old threshold k, put a first, and give this first record the label b.

The inverse recursion is obtained by reversing these steps. If N=m, apply the forward direction of Lemma 6.3 to the labeled scan order, obtaining (g,ρ), and then unstandardize ρ by reinserting k to recover ω=(k;r1,…,rm−1). If N>m, read the first scanned value a. Remove this first scanned value from the scan order, and reindex every remaining scan time i as i−1; the labels on record steps in the tail are transported by the same reindexing. For a +-step, a<k is the non-record case and a>k is the record case; for a −-step, a>k is the non-record case and a<k is the record case.

In a non-record case there is no label at the first scan time. Standardize the tail by deleting a; its initial threshold is k−1 for a +-step and k for a −-step. Apply the inverse recursion to recover g′ 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 b. Remove it, standardize the tail by deleting the old threshold k, and use initial threshold q=a−1 for a +-step and q=a 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 k in the reconstructed first m-window and set g=(ℓ,g′). The inverse local exchange places its input in a summand with ℓ≤j=g0′ when s=+, and with ℓ≥j when s=−. Since, inductively, g′ is counted by Cv(m)(j), these inequalities show that g is counted by Csv(m)(ℓ). Thus the reconstructed pair lies in 𝒯N,m(w;k), and every parameter used by the forward recursion is recovered, so the inverse recursion proves bijectivity. ◻

Theorem 34 (An explicit bijection for m≤n).

Let 1≤m≤n. For every ε∈{+,−}n−1, there is an explicit bijection between pairs (σ,f),σ∈Sn,f:Pε→[m] order-preserving, and pairs (π,λ),π∈Sn,λ:Recε⁡(π)→[m].

Proof. Put w=εn−1εn−2⋯ε1. Given (σ,f), set gi=f(xn−i),0≤i≤n−1. Then g is counted by Cw(m)(g0). Let ℓ=g0. In the first m entries of σ, let k be the ℓ-th smallest entry, and let a0∈[m] be its position. Move k to the first position of σ, preserving the relative order of all other entries. Because k starts among the first m entries, this operation preserves the underlying set of the first m entries; in the resulting word k still has rank ℓ in that set. Thus it gives ω∈𝒦n,m(k,ℓ). Apply Θn,m,w,k(g,ω) to obtain a scan order α=(α1,…,αn−1) of [n]∖{k}, with labels on its non-terminal records. Define πn=k,πn−i=αi1≤i≤n−1, and give the terminal record n the label λ(n)=a0. The remaining labels are those produced by Θn,m,w,k, translated from scan time i to position n−i. This produces a labeled greedy ε-record object (π,λ).

The inverse starts with (π,λ). Put k=πn and a0=λ(n), and form the scan order α=(πn−1,πn−2,…,π1). Define a labeling λtail of the non-terminal record steps of this scan by λtail(i)=λ(n−i)i∈Recw⁡(α;k). Apply Θn,m,w,k−1 to (α,λtail). This recovers g and ω=(k;r1,…,rn−1)∈𝒦n,m(k,g0).

Finally, insert the leading k back into the a0-th position of the first m-window: σ=(r1,…,ra0−1,k,ra0,ra0+1,…,rn−1). Since a0≤m, this is exactly the inverse of moving k to the front: it restores the first-window set and the relative order of every other entry. Set f(xn−i)=gi,0≤i≤n−1. The inequalities defining Cw(m) are exactly the order-preserving conditions for Pε, so this recovers a unique pair (σ,f). All steps are inverse to the forward construction. ◻

To pass from m≤n to arbitrary m, observe that every map f:Pε→[m], and every record labeling λ:Recε⁡(π)→[m], uses at most n labels.

For a nonempty subset T⊆[m], let 𝒜T be the set of pairs (σ,f) with f:Pε→T order-preserving, where T has the inherited order. Let ℬT be the set of pairs (π,λ) with λ:Recε⁡(π)→T. If 1≤|T|=t≤n, let cT:[t]→T be the increasing bijection. The bijection of Theorem 6.6, transported by cT, gives a bijection ΦT:𝒜T⟶ℬT. We shall use ΦT only for subsets T of size at most n.

Corollary 35 (Arbitrary alphabets).

For every m,n≥1 and every ε∈{+,−}n−1, there is an algorithmic bijection between pairs (σ,f),σ∈Sn,f:Pε→[m] order-preserving, and pairs (π,λ),π∈Sn,λ:Recε⁡(π)→[m].

Proof. Fix the nonempty set S⊆[m] of labels used by an object. Both strata are empty when |S|>n, so assume |S|≤n, and write 𝒜S=={(σ,f)∈𝒜S:im⁡(f)=S},ℬS=={(π,λ)∈ℬS:im⁡(λ)=S}. Apply the Garsia–Milne involution principle [6] to 𝒜~S=⨆⌀≠T⊆S{T}×𝒜T,ℬ~S=⨆⌀≠T⊆S{T}×ℬT, with sign (−1)|S|−|T| on the T-summand. On either side, unless all labels of S are used, toggle c=min⁡(S∖im⁡) in T. This is a sign-reversing involution whose fixed points are, respectively, {S}×𝒜S= and {S}×ℬS=. Since |T|≤n, the maps ΦT assemble into a sign-preserving bijection between the two signed sets. The involution principle therefore gives an algorithmic bijection 𝒜S=⟶ℬS=. Taking the disjoint union over the unique used-label set S proves the result. ◻

Directional and record-set refinements

Decorated directional transfer

The continuous process separates +-records from −-records. For indeterminates p,q and a word w∈{+,−}r, define Kw(p,q)(x)∈ℚ[p,q][x] by K⌀(p,q)(x)=1,K+v(p,q)(x)=xKv(p,q)(x)+p∫x1Kv(p,q)(u)du,K−v(p,q)(x)=(1−x)Kv(p,q)(x)+q∫0xKv(p,q)(u)du. The same conditioning argument as in the proof of Theorem 1.1 gives, for w=εn−1εn−2⋯ε1, ∑π∈Snprecε+⁡(π)qrecε−⁡(π)=n!∫01Kw(p,q)(x)dx. Moreover Kw(m,m)=Hw(m). 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 w=w1⋯wr∈{+,−}r, and let 1≤k≤r+1. A decorated endpoint path of type (w,k) is a pair (g,θ) with g=(g0,g1,…,gr)∈[r+1]r+1,g0=k, such that wi=+⟹gi≥gi−1,wi=−⟹gi≤gi−1 for 1≤i≤r, together with decorations on the equality steps. More precisely, set S+(g)={i:wi=+ and gi>gi−1},S−(g)={i:wi=− and gi<gi−1}, and E(g)={i:gi=gi−1}. For every i∈E(g) we choose a value θi∈[r+1], subject to the following two conditions: wi=+⟹θi<gi−1,wi=−⟹θi>gi−1, and the list g0,gi (i∈S+(g)∪S−(g)),θi (i∈E(g)) is a rearrangement of [r+1]. Let ℳw(k) denote the set of decorated endpoint paths of type (w,k), and define Rw(p,q)(k)=∑(g,θ)∈ℳw(k)p|S+(g)|q|S−(g)|. The scan-order bijection below gives Rw(m,m)(k)=Dw(m)(k), so this construction refines the rank-vector sums of Definition 5.1 by record direction. The forgetful map (g,θ)↦g preserves the strict +- and strict −-steps, but its fibers need not be singletons. For example, when w=++ and k=3, the weak path (3,3,3) has two admissible decorations, corresponding to the two orders of the failed values 1 and 2. The decorations retain exactly this missing ordering data.

Theorem 36 (Decorated signed transfer).

Let w∈{+,−}r. Then r!Kw(p,q)(x)=∑k=1r+1Rw(p,q)(k)Br,k(x). Consequently, if n=r+1 and w=εn−1εn−2⋯ε1, then ∑π∈Snprecε+⁡(π)qrecε−⁡(π)=∑k=1nRw(p,q)(k)=n!∫01Kw(p,q)(x)dx. In particular, n!Ω(Pε;t)=t∑k=1nRw(t,t)(k), where the factor t 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 Rw(p,q)(k). Fix k∈[r+1], and let α=(a1,…,ar) be a permutation of [r+1]∖{k}. Start with threshold h0=k. At step i, declare a record if wi=+ and ai>hi−1,orwi=− and ai<hi−1. If a record occurs, set hi=ai; otherwise set hi=hi−1.

From α construct (g,θ) by setting gi=hi. If step i is not a record, then gi=gi−1 and we set θi=ai. If step i is a record, no decoration is added. A record in a +-step is exactly a strict +-step gi>gi−1, and a record in a −-step is exactly a strict −-step gi<gi−1. A non-record in a +-step has ai<hi−1=gi−1, and a non-record in a −-step has ai>hi−1=gi−1. Since the entries k,a1,…,ar form a permutation of [r+1], the defining list for (g,θ) is also a permutation of [r+1]. Hence (g,θ)∈ℳw(k).

Conversely, given (g,θ)∈ℳw(k), define ai={gi,if gi≠gi−1,θi,if gi=gi−1. The permutation condition for ℳw(k) implies that (a1,…,ar) is a permutation of [r+1]∖{k}. 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 p|S+|q|S−|.

This bijection gives the recurrences R⌀(p,q)(1)=1 and for v∈{+,−}r−1, R+v(p,q)(k)=(k−1)Rv(p,q)(k−1)+p∑j=krRv(p,q)(j),(13)R−v(p,q)(k)=(r+1−k)Rv(p,q)(k)+q∑j=1k−1Rv(p,q)(j),(14) with the boundary convention Rv(p,q)(0)=Rv(p,q)(r+1)=0, so that the out-of-range terms (k−1)Rv(p,q)(k−1) at k=1 and (r+1−k)Rv(p,q)(k) at k=r+1 vanish. For instance, in the +-case, a first inspected value below k is a non-record; after deleting it and standardizing, the threshold has rank k−1, giving the first term. A first inspected value above k is a record and contributes the factor p; after deleting the old threshold and standardizing, the new threshold has rank j, where k≤j≤r. The −-case is analogous.

The Bernstein expansion now follows by induction on r=|w|. Substitute the expansion for the suffix v into the defining recurrence for K+v(p,q) or K−v(p,q), and apply the four degree-raising identities in Lemma 5.4. The coefficient of Br,k 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 p and q.

Finally, ∫01Br,k(x)dx=1/(r+1) by the same beta integral as for bm,k above. Therefore (r+1)!∫01Kw(p,q)(x)dx=∑k=1r+1Rw(p,q)(k). When w=εn−1⋯ε1, reading a permutation π∈Sn with terminal value πn=k from right to left gives a permutation of [n]∖{k} with comparison word w. The bijection above identifies its +-records and −-records with strict +- and strict −-steps of the decorated endpoint path. Summing over k gives the direction-refined identity. The order-polynomial specialization follows from Theorem 1.1, since the terminal record contributes one additional factor t. ◻

Record-set fibers and record posets

We refine the greedy statistic by its full record set. For π∈Sn, recall that Recε⁡(π) is the set of greedy ε-record positions of π. Thus n∈Recε⁡(π) and recε⁡(π)=|Recε⁡(π)|.

Fix R⊆[n] with n∈R. For i<n, set ρR(i)=min⁡{r∈R:r>i}. Thus ρR(i) is the nearest element of R to the right of i.

Definition 37.

The record poset Qε,R is the labeled poset on [n] obtained as follows. For each i<n, impose the relation i<Qε,RρR(i) if (εi=+ and i∉R)or(εi=− and i∈R), and otherwise impose the opposite relation ρR(i)<Qε,Ri. Then take the transitive closure.

This indeed defines a poset. The undirected graph formed by the defining edges has one edge {i,ρR(i)} for each i<n. Iterating i↦ρR(i) always reaches n, so the graph is connected; since it has n−1 edges, it is a tree. Hence no orientation of these edges can contain a directed cycle.

Example 38.

Let ε=(+,−,+) and π=2413. The terminal value is 3, and none of the values 1,4,2, inspected from right to left, resets the threshold. Thus Recε⁡(π)={4}. Since ρ{4}(i)=4 for i=1,2,3, the defining relations of the record tree are 1<Qε,{4}4,4<Qε,{4}2,3<Qε,{4}4. The inverse word is π−1=3142, which respects all three relations.

Lemma 39.

For every π∈Sn and every R⊆[n] with n∈R, Recε⁡(π)=R⟺π−1∈ℒ(Qε,R), where ℒ(Qε,R) denotes the set of linear extensions of Qε,R.

Proof. Assume first that Recε⁡(π)=R. When the right-to-left scan reaches a position i<n, the current threshold is πρR(i), because ρR(i) is the closest record position to the right of i. Since the entries of π are distinct, the condition that i is, or is not, declared a record is equivalent to πi<πρR(i)⟺(εi=+ and i∉R)or(εi=− and i∈R). This is exactly the comparison encoded by the defining relation between i and ρR(i) in Qε,R.

Now π−1, written in one-line notation, is the word of positions of 1,2,…,n in π. Therefore a position a occurs before a position b in π−1 if and only if πa<πb. Hence the comparisons above say precisely that π−1 respects every defining relation of Qε,R, and hence is a linear extension.

Conversely, suppose π−1∈ℒ(Qε,R). We show by downward induction on i that the greedy scan of π has record set exactly R. The terminal position n lies in R and is always a record. Assume that every position >i has been scanned and that the record positions among them are exactly R∩{i+1,…,n}; then the current threshold when position i is reached is πρR(i). Because π−1 is a linear extension, the relation between i and ρR(i) in Qε,R holds, which by the displayed equivalence says that i satisfies the record comparison exactly when i∈R. Hence i is declared a record if and only if i∈R, completing the induction. Therefore the greedy record set is exactly R. ◻

The record-set Bernstein refinement

For R⊆[n] with n∈R, set Rε+(R)={i∈R∩[n−1]:εi=+},Rε−(R)={i∈R∩[n−1]:εi=−}, and write 𝐲A=∏i∈Ayi. For a labeled poset Q on [n] and 1≤k≤n, define ℒk(Q)={σ=σ1⋯σn∈ℒ(Q):σk=n}. For the record poset, define 𝔖ε,R(k)={π∈Sn:Recε⁡(π)=R, πn=k} and ℓε,R(k)=|ℒk(Qε,R)|.

Attach a separate variable to the record status of every inspected position. If w=w1⋯wr, 𝐳=(z1,…,zr), and 𝐳′=(z2,…,zr), define 𝒦w(p,q)(x;𝐳) by 𝒦⌀(p,q)(x;⌀)=1,𝒦+v(p,q)(x;z1,𝐳′)=x𝒦v(p,q)(x;𝐳′)+pz1∫x1𝒦v(p,q)(u;𝐳′)du,𝒦−v(p,q)(x;z1,𝐳′)=(1−x)𝒦v(p,q)(x;𝐳′)+qz1∫0x𝒦v(p,q)(u;𝐳′)du. Thus 𝒦w(p,q)(x;1,…,1)=Kw(p,q)(x).

For (g,θ)∈ℳw(k), put J(g)=S+(g)∪S−(g). When n=r+1 and w=εn−1⋯ε1, define ℳw(k;R)={(g,θ)∈ℳw(k):{n−j:j∈J(g)}=R∖{n}}.

Theorem 40 (Record-set Bernstein transfer).

Let n≥1, ε∈{+,−}n−1, and w=εn−1⋯ε1. For every R⊆[n] with n∈R and every k∈[n], there are explicit bijections ℳw(k;R)⟷𝔖ε,R(k)⟷ℒk(Qε,R). In particular, |ℳw(k;R)|=|𝔖ε,R(k)|=ℓε,R(k). Moreover, with r=n−1, r!𝒦w(p,q)(x;yn−1,yn−2,…,y1)=∑k=1n ∑R⊆[n]n∈Rℓε,R(k)p|Rε+(R)|q|Rε−(R)|𝐲R∖{n}Br,k(x).(15) Consequently, ynn!∫01𝒦w(p,q)(x;yn−1,…,y1)dx=∑π∈Sn𝐲Recε⁡(π)precε+⁡(π)qrecε−⁡(π)=∑R⊆[n]n∈R𝐲Rp|Rε+(R)|q|Rε−(R)||ℒ(Qε,R)|.(16)

Proof. Fix k, and write the entries inspected from right to left as α=(a1,…,ar), where aj=πn−j. Thus α is a permutation of [n]∖{k}. The bijection in the proof of Theorem 7.1 sends α to its threshold history g and stores aj as θj precisely when step j is not a record. A strict step at time j is equivalent to a record at position n−j. Hence that bijection restricts to ℳw(k;R)⟷𝔖ε,R(k). By Lemma 7.4, the map π↦π−1 sends the latter set bijectively to linear extensions of Qε,R. Finally, πn=k⟺(π−1)k=n, so its image is exactly ℒk(Qε,R).

For the Bernstein expansion, attach the additional weight zj to a record at scan time j in the proof of Theorem 7.1. The same first-step recurrence, with p,q replaced by pzj,qzj, gives r!𝒦w(p,q)(x;𝐳)=∑k=1r+1Aw(k;𝐳)Br,k(x). Here Aw(k;𝐳) is the weighted generating polynomial of scan orders on [r+1]∖{k}. Taking zj=yn−j, the two bijections above give Aw(k;yn−1,…,y1)=∑R⊆[n]n∈Rℓε,R(k)p|Rε+(R)|q|Rε−(R)|𝐲R∖{n}, which proves (15). Integrating and using ∫01Br,k(x)dx=1/n gives (16), since ∑kℓε,R(k)=|ℒ(Qε,R)|. ◻

A P-partition consequence

For a word σ=σ1⋯σn with distinct letters, set Des⁡(σ)={i:σi>σi+1}. For S⊆[n−1], let FS,n(𝐱)=∑1≤a1≤⋯≤anai<ai+1 for i∈Sxa1⋯xan be Gessel’s fundamental quasisymmetric function. For a labeled poset Q on [n], define its pointed enumerators Γk(Q)=∑σ∈ℒk(Q)FDes⁡(σ),n(𝐱). Their sum over k is the usual fundamental P-partition enumerator [19, 7].

For k∈[n], define ℛε,k∙(𝐱;𝐲;u,v)=∑π∈Snπn=k𝐲Recε⁡(π)∖{n}urecε+⁡(π)vrecε−⁡(π)FDes⁡(π−1),n(𝐱).

Corollary 41 (Fixed-terminal P-partition lift).

For every k∈[n], ℛε,k∙=∑R⊆[n]n∈R𝐲R∖{n}u|Rε+(R)|v|Rε−(R)|Γk(Qε,R).

Proof. By Lemma 7.4, inversion maps the permutations with record set R bijectively to ℒ(Qε,R). Moreover, πn=k if and only if (π−1)k=n, so the fixed-terminal fiber maps to ℒk(Qε,R). Grouping the defining sum by R gives the identity. ◻

Summing over k and applying the standard stable principal specialization psq⁡:xi↦qi−1, for which psq⁡(FS,n)=qcomajn⁡(S)/(q;q)n, where comajn⁡(S)=∑i∈S(n−i), gives (q;q)npsq⁡(yn∑k=1nℛε,k∙)=∑π∈Snqcomajn⁡(Des⁡(π−1))𝐲Recε⁡(π)urecε+⁡(π)vrecε−⁡(π). Here (q;q)n=∏i=1n(1−qi).

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 R={r1<⋯<rs=n} and set r0=0. The undirected Hasse diagram of Qε,R is a caterpillar with spine r1−r2−⋯−rs. For rj−1<i<rj, the vertex i is a leaf adjacent to rj, and i<Qε,Rrj⟺εi=+. For 2≤j≤s, the orientation of the j-th spine edge is rj−1<Qε,Rrj⟺εrj−1=−.

Proof. If i∉R, then ρR(i)=rj for the unique j satisfying rj−1<i<rj. No defining edge can have such an i as its right endpoint, so i is a leaf. If i=rj−1∈R, then ρR(i)=rj, 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 1≤j≤s, let Qj be the subposet of Qε,R induced by [rj], and define the root spectrum hj(k)=#{σ∈ℒ(Qj):σk=rj}(1≤k≤rj). Also put aj=#{i:rj−1<i<rj, εi=+},bj=#{i:rj−1<i<rj, εi=−}. Thus aj+bj=rj−rj−1−1.

Proposition 43 (Record-gap specialization of Atkinson’s recursion).

The initial spectrum is concentrated at one position: h1(k)={a1!b1!,k=a1+1,0,k≠a1+1. For 2≤j≤s and 0≤d≤rj−1, define Cj(d)={∑t=1dhj−1(t),εrj−1=−,∑t=d+1rj−1hj−1(t),εrj−1=+. Then hj(d+aj+1)=aj!bj!(d+ajaj)(rj−1−d+bjbj)Cj(d).(17) All other entries of hj are zero. In particular, ℓε,R(k)=hs(k),#{π∈Sn:Recε⁡(π)=R}=∑k=1nhs(k). After factorials and binomial coefficients have been precomputed, the entire vector (hs(1),…,hs(n)) is obtained in O(n2) arithmetic operations.

Proof. For j=1, the a1 lower leaves must occur before r1, the b1 upper leaves must occur after r1, and the leaves within either group may be ordered arbitrarily. This gives the stated initial spectrum.

Fix j≥2 and a linear extension τ of Qj−1. When rj is inserted, let d be the number of entries of τ placed before rj. If rj−1<Qε,Rrj, the entry rj−1 must belong to this prefix, so its position in τ is at most d. If rj<Qε,Rrj−1, it must belong to the suffix, so its position is larger than d. By Lemma 8.1, the number of admissible choices of τ is therefore exactly Cj(d).

For a fixed admissible τ, interleave its ordered prefix of length d with the aj distinct lower leaves. This can be done in aj!(d+ajaj) ways. Independently, interleave its ordered suffix of length rj−1−d with the bj distinct upper leaves, in bj!(rj−1−d+bjbj) ways. The root rj lies between these two words and hence occupies position d+aj+1. This construction is reversible by restricting a linear extension of Qj to [rj−1] 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 Cj in O(rj−1) operations, and summing over j gives the stated quadratic bound. ◻

Remark 44 (Terminal-value range).

For any finite poset Q and x∈Q, the possible positions of x among the linear extensions form the interval [|Q<x|+1, |Q|−|Q>x|]∩ℤ. For the record caterpillar this gives integers Lj≤Uj such that hj(k)>0⟺Lj≤k≤Uj. In gap coordinates, L1=U1=a1+1 and (Lj,Uj)={(aj+Lj−1+1, rj−bj),εrj−1=−,(aj+1, aj+Uj−1),εrj−1=+. Consequently, {πn:Recε⁡(π)=R}=[Ls,Us]∩ℤ.

Remark 45 (Gap-data invariance).

Fix R={r1<⋯<rs=n}. Suppose that ε,ε′∈{+,−}n−1 have the same signs at r1,…,rs−1 and the same number of +-signs in every open gap (rj−1,rj). Then, for every k∈[n], #{π:Recε⁡(π)=R, πn=k}=#{π:Recε′⁡(π)=R, πn=k}. 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 n, so the spectra agree.

Example 46.

Let ε=(+,−,+) and R={1,2,4}. The record poset has cover relations 2<1,2<4,3<4. The recursion gives (h1(1))=(1),(h2(1),h2(2))=(1,0),(h3(1),…,h3(4))=(0,0,2,3). Indeed, its five linear extensions are 2134,2314,2341,3214,3241. The corresponding inverse permutations are 2134,3124,4123,3214,4213. Two have terminal value 3, three have terminal value 4, and all have record set R. Thus the contribution of this fixed record set to (15) is pqy1y2(2B3,3(x)+3B3,4(x)).

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 P-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

  1. M. D. Atkinson, On computing the number of linear extensions of a tree, Order 7 (1990), no. 1, 23–25, doi:10.1007/BF00383170.

  2. 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.

  3. J. I. Coons and S. Sullivant, The h∗-polynomial of the order polytope of the zig-zag poset, Electron. J. Combin. 30 (2023), no. 2, Paper No. 2.44, 20 pp.

  4. 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.

  5. L. Ferroni, A. H. Morales, and G. Panova, Skew shapes, Ehrhart positivity and beyond, Proc. Lond. Math. Soc., to appear; arXiv:2503.16403v3, 2026.

  6. 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.

  7. I. M. Gessel, Multipartite P-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.

  8. 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.

  9. Y. Kahane, Combinatorial interpretation of the coefficients of the order polynomial of fence posets, arXiv:2607.11225v1 [math.CO], 13 July 2026.

  10. 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.

  11. E. Kantarcı Oğuz, Oriented posets, rank matrices and q-deformed Markov numbers, Discrete Math. 348 (2025), no. 2, Paper No. 114256, 17 pp., doi:10.1016/j.disc.2024.114256.

  12. 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.

  13. 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.

  14. 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.

  15. S. Morier-Genoud and V. Ovsienko, q-deformed rationals and q-continued fractions, Forum Math. Sigma 8 (2020), Paper No. e13, 55 pp.

  16. 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.

  17. R. P. Stanley, Two poset polytopes, Discrete Comput. Geom. 1 (1986), no. 1, 9–23.

  18. 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.

  19. R. P. Stanley, Ordered structures and partitions, Mem. Amer. Math. Soc., no. 119, Amer. Math. Soc., Providence, RI, 1972.

  20. 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~

Views — times

© 2026 Pyuyi @PYUYI'S Home
Powered by theme astro-koharu · Inspired by Shoka