WorksMathematics
Foata and Spot Commutation for Parking Functions
Abstract
For a parking function , let be the permutation whose th entry is the space occupied by car and let be Foata's second fundamental transformation on words. Conjecture 6.3 of Celano et al. asserts that for every unit interval parking function . This paper proves the identity for a larger class: parking functions where each prime component (borrowing Gessel's definition) of is nondecreasing. Since every unit interval parking function is composed of nondecreasing prime parking functions, the conjecture follows. A key step is showing that preserves the set of parking functions with , where denotes standardization. In particular, this proves that inversion count and major index are equidistributed over this larger class.
Introduction
Parking functions, introduced by Konheim and Weiss [7], come from the following problem. There are cars parking on a one-way street with parking spaces labeled 1 through . The th car prefers spot and parks there if it is unoccupied. Otherwise, it continues to the right until it finds an available parking space. If any car is unable to park, the parking process is unsuccessful. If all cars park successfully, then the tuple
is called a parking function. denotes the set of parking functions of length . The spot permutation of a parking function is the permutation whose th entry is the spot in which the th car parked.
Though rearranging the cars of a parking function produces another parking function, it can change the spot permutation. This motivates the study of how permutations of a parking function affect the parking process.
A natural rearrangement to consider is Foata’s second fundamental transformation on words, a content-preserving bijection satisfying
where is the inversion count and is the major index [5]. Since foata preserves content, it sends to .
This paper builds on the work of Celano, Elder, Hadaway, Harris, Martin, Priestley, and Udell [2]. Their Conjecture 6.3 asserts that for every unit interval parking function , in which each car parks at most one space beyond its preference,
Define the standardization of a word to be the permutation that ranks the entries of from smallest to largest, breaking ties by position, and define the set of **standard parking functions as
The main result of this paper is that holds whenever . This paper characterizes as the set of parking functions whose prime blocks are weakly increasing. This generalizes the block characterization of unit interval parking functions by Bradt, Elder, Harris, Rojas Kirby, Reutercrona, Wang, and Whidden [1] by replacing the condition that each prime block be a prime unit interval parking function with the condition that each prime block be a prime weakly increasing parking function. Since the entries in blocks of unit interval parking functions are weakly increasing, contains all unit interval parking functions. For , this containment is strict, so the result establishes Conjecture 6.3 for a larger class.
Membership in is sufficient but not necessary for the identity. For example, , but
A full characterization of the parking functions satisfying the identity remains open.
Preliminaries
Definition 2.1. The standardization of a word is the permutation of through that ranks the entries of from smallest to largest, breaking ties by position (earlier entries rank lower).
Definition 2.2. Let be the set of parking functions with . Write .
Definition 2.3. Let be the set of parking functions where . Therefore, is the set of parking functions of length where the maximum displacement is at most 1.
Definition 2.4. An integer with is a breakpoint of a parking function if exactly cars prefer the first spots. A parking function is prime if its only breakpoint is . For a discussion of prime parking functions, see [4 Section 2].
Throughout this paper, the prime blocks of are the subsequences with preferences in , listed in the same order in which the corresponding cars arrive in , where are consecutive breakpoints. Subtracting from every preference in such a block shifts its preference interval from to ; the resulting word is a prime parking function [6]. For a car , write for the unique prime block containing its preference .
Definition 2.5. Following [5], Foata’s second fundamental transformation is the function defined inductively on words as follows. For , set . For , is defined as follows. Let . If , then place a separator after every such that . If , then place a separator after every such that . Cycle each segment (each maximal subword between consecutive separators) by moving its rightmost entry to the start. Finally, append . The result is .
A step-by-step illustration of this procedure is given in Theorem 4.1.
Definition 2.6. For a word , an inversion is a pair of indices , where , but . The inversion count of a word , denoted , is the number of inversions in a word .
Definition 2.7. The major index of a word, denoted , is the sum of the indices where .
Proof structure
For , the proof establishes the following chain of equalities:
The first equality, holds since for all in , . The second equality, is an identity which holds more generally for all words , and will be proven in § 4. The third equality, is a consequence of the fact that foata preserves membership in . The statement will be proven in § 5.
Foata commutes with standardization
Example 4.1. The dividers occur at the same positions for and . Below is an illustrative example.
Table 2.
To formalize this observation, label the letters by their original positions.
Definition 4.2 (Two-line notation). Let be a word, and write it as the two-line array
so each letter is labeled by its position.
For words and , where is a rearrangement of , is the permutation obtained by labeling the entries of by their positions, rearranging these labeled entries to form while preserving the relative order of equal entries, and reading off the labels.
When applying foata to a two-line word, apply foata to the columns, comparing only the bottom entries, but cycling both the top and bottom entry. Then is the top row of the result.
Example 4.3. For example, for , we have . Below, foata is applied step-by-step to the two-line array.
| Foata step | foata applied to the two-line array |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 |
Table 1.
The following lemma shows the equality of the resulting label orders.
Lemma 4.4. For all words , .
Proof. Proceed by induction on prefix length. The base case of one letter is clear. Now, assume that both runs have the same label order before appending . Since std acts positionwise, car of is car of . The last letters therefore choose the same divider rule since if , then .
At the step appending , every divider decision is a test of some earlier letter , , against . If , then . So the divider placement is identical.
If , then , since . First suppose the condition is that a divider is placed after all elements satisfying . Then in , a divider will be placed after since , and in , a divider will be placed since . Now suppose the condition is that a divider is placed after all elements satisfying . In , no divider will be placed, since , which is not greater than . In , no divider will be placed, since , which is not greater than .
So both runs cut into the same compartments at every step. Therefore, both runs apply the same permutation.
Corollary 4.5. .
Proof. Write , so that and . It suffices to prove that preserves the relative order of the occurrences of each letter, implying
There is no crossing of equal letters during the foata process. The ordering of two letters and can only be swapped if they are in the same compartment during the foata process. Moreover, at the first swap of equal letters, if , then must be the last letter in the compartment.
Suppose each element is being compared to an incoming letter in the foata process. First, suppose that the condition is a divider is placed after all items greater than . Then but while is not, a contradiction. Next, suppose that the condition is a divider is
placed after all items less than or equal to . Then but while is not, a contradiction. Finally, appending an item clearly cannot reverse equal occurrences. Therefore, and .
Foata preserves membership in
The identity holds for all words. The remaining argument concerns the parking process and uses the following notation.
Definition 5.1. Let denote the spot of the car initially at index . For example, if , then . Let be the preference of the car that parks at spot .
The following examples illustrate membership in .
Example 5.2. The parking functions 112, 131, 123, and 1122773388 are in , while 121 is not.
The next lemma characterizes .
Lemma 5.3. if and only if all prime blocks of are in nondecreasing order.
Proof. For sufficiency, note that if is nondecreasing, and prime blocks park independently. A permutation equals if when , and when and . If all prime blocks of are nondecreasing, this holds. If , then since blocks park independently. If , then whenever , nondecreasing order gives , and therefore . If instead , then .
For necessity, assume . It suffices to show that if but , there is a breakpoint with .
Choose to be the highest spot below still empty immediately after car parks. This set is nonempty, since the eventual spot of car is a member of it. Since and , and . All the spots in are occupied after car parks, so car must park before .
To show that is a breakpoint, it suffices to prove that there is no car with index where but . If , then space was empty when parked. Therefore , since no car could park past the empty space at . If , then since and , it follows that . After car parks, every space in is occupied by maximality of . Further, every space in is occupied. So car cannot park anywhere in and . since . Therefore, is a breakpoint and and are in different blocks.
Lemma 5.4. For , foata preserves nondecreasing prime blocks.
Write . The superscript denotes the transformed prefix length, not iteration of the map.
Example 5.5. Consider . The Foata process proceeds as follows (prime blocks are colored).
| Foata step | , |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 |
Table 3.
Each prime block remains nondecreasing after each step.
Proof. Proceed by induction on the prefix length , tracking the blocks of the original parking function . The claim holds for a one-letter prefix. Assume that the letters of each block occur in nondecreasing order in . Since , the letters of each prime block arrive in nondecreasing order, so the incoming letter is at least every letter of its own prime block already placed, and appending to the end maintains nondecreasing order. It remains to check the cycling, which changes the relative order between the last letter of a divider block and the letters it is cycled backwards past.
Suppose the last letter of is , so a divider is placed after each . Every divider block then ends in a letter and contains no other such letter, so . If and were in the same prime block, the invariant would give , since precedes . This is a contradiction.
Otherwise a divider is placed after each , so . Suppose and lie in the same prime block . Prime blocks correspond to intervals of preferences and , so . But is already placed and , contradicting that is the largest letter of placed so far. Either way crosses only letters of other prime blocks. □
Main result and enumeration
Theorem 6.1. For every ,
In particular, the identity holds for every unit interval parking function.
Proof. The preceding results give
Further, contains , since all prime blocks of every unit interval parking function are nondecreasing. Thus the theorem establishes Conjecture 6.3 of [2]. □
Since standard parking functions can be decomposed into nondecreasing prime parking functions, and there are nondecreasing prime parking functions of length , where is the th Catalan number, we have the relation and
Setting and , we have
and
The exponential generating function for the Catalan numbers is
where is the th “modified Bessel function of the first kind.” Using the identities
and
from [Mar48], we can write
Further, it is possible to find a -exponential generating function . Using a nearly identical argument to the unit interval case of [3], we find
Acknowledgments
The author thanks Gabe Udell for his guidance and comments on many drafts. The author also thanks Pamela Harris and Jennifer Elder for their helpful correspondence.
Thomas Jefferson High School for Science and Technology
Email address: [email protected]
References
- [1]S. Alex Bradt, Jennifer Elder, Pamela E. Harris, Gordon Rojas Kirby, Eva Reutercrona, Yuxuan Wang, and Juliet Whidden, Unit interval parking functions and the r-Fubini numbers, La Matematica 3 (2024), no. 1, 370–384.arxiv.org/abs/2401.06937
- [2]Kyle Celano, Jennifer Elder, Kimberly P. Hadaway, Pamela E. Harris, Jeremy L. Martin, Amanda Priestley, and Gabe Udell, Statistics on ℓ-interval parking functions, 2025.
- [3]Kyle Celano, Jennifer Elder, Kimberly P. Hadaway, Pamela E. Harris, Amanda Priestley, and Gabe Udell, Inversions in parking functions, Séminaire Lotharingien de Combinatoire 93B (2025), Article 145, Proceedings of FPSAC 2025.arxiv.org/abs/2508.11587
- [4]Lucas Chaves Meyles, Pamela E. Harris, Richter Jordaan, Gordon Rojas Kirby, Sam Sehayek, and Ethan Spingarn, Unit-interval parking functions and the permutohedron, Journal of Combinatorics 16 (2025), no. 3, 281–301.
- [5]Dominique Foata, On the Netto inversion number of a sequence, Proceedings of the American Mathematical Society 19 (1968), no. 1, 236–240.DOI
- [6]Ira M. Gessel and Seunghyun Seo, A refinement of Cayley’s formula for trees, Electronic Journal of Combinatorics 11 (2006), no. 2, R27.arxiv.org/abs/math/0507497
- [7]Alan G. Konheim and Benjamin Weiss, An occupancy discipline and applications, SIAM Journal on Applied Mathematics 14 (1966), no. 6, 1266–1274.DOI