Introduction
In the field of combinatorics, a "run" is defined as a maximal increasing segment within a permutation. For example, in the permutation 351476, the runs are 35, 147, and 6. The runsort operator reorders these runs lexicographically based on their first elements. While a standard random permutation appears as white noise when plotted on a unit square, recent observations by Alexandersson and Nabawanda revealed that applying the runsort operator to large random permutations results in a highly structured, non-random visual pattern.
This paper provides a rigorous mathematical foundation for this phenomenon, proving that as the size of the permutation $n$ approaches infinity, the scaled plot of a runsorted random permutation converges almost surely to a specific mathematical limit known as a permuton.
Methods and Theoretical Framework
To establish the existence and properties of the runsort permuton, the authors utilize several advanced probabilistic and analytical techniques:
- Martingale Concentration: By applying a version of Azuma’s Inequality specifically adapted for permutations, the authors demonstrate that the distribution of a runsorted permutation is "tightly concentrated." This ensures that for large $n$, any individual random instance will closely mirror the expected average behavior.
- Recursive Modeling: The density of the interior region is derived through a recurrence relation. This model tracks how the insertion of a new element into a permutation shifts the lexicographic ordering of existing runs.
- Permuton Theory: The limit is formally defined as a probability measure on the unit square $[0, 1]^2$, providing a continuous representation of the discrete permutation's limit.
The Geometry of the Runsort Permuton
The resulting limit shape, denoted as $\mathbf{R}$, possesses several unique characteristics that distinguish it from other known permutons.
The Enveloping Curve
The distribution is bounded by a "hard edge" defined by the curve $C: x = ye^{1-y}$. This curve acts as a boundary for the mass of the permutation.
A Hybrid Distribution
Unlike many limit shapes that are either purely smooth densities or singular lines, the runsort permuton is a hybrid of both:
- Singular Part: A sharp line along the boundary curve $C$, representing the first entries of each run.
- Absolutely Continuous Part: A shaded region $C^+$ above the curve, representing all subsequent entries within the runs.
Horizontal Uniformity and Mass Balance
A surprising property of the runsort permuton is its horizontal uniformity. Within the shaded region $C^+$, the density of points depends solely on the vertical coordinate $y$. This implies that in any thin horizontal slice, points are distributed uniformly from the left edge to the boundary curve. Furthermore, the "mass" is perfectly balanced: exactly half of the points lie on the boundary curve $C$, while the other half fill the region $C^+$.
Key Results
The central contribution of the paper is Theorem 1.1, which formally proves that for a uniform random permutation $\pi$, the measure $\gamma_{runsort(\pi)}$ converges to the permuton $\mathbf{R}$ with probability 1. The explicit density function for this limit is given by:
$$\mathbf{R}(B) = \int_{B \cap C^+} e^{y-1} dx dy + \int_{B \cap C} (1-y) dy$$
where $C$ is the curve $x = ye^{1-y}$ and $C^+$ is the region $x < ye^{1-y}$.
Future Directions
While the paper provides a complete description for uniform random permutations, several avenues for future research remain:
- Alternative Patterns: Preliminary investigations suggest that sorting by other patterns (e.g., "valleys" or "double descents") also produces limit shapes, though their exact analytical forms are significantly harder to compute.
- Non-Uniform Distributions: Future work could explore how the limit shape changes when the input permutations follow non-uniform distributions, such as the Mallows distribution.
- Combinatorial Intuition: While the "horizontal uniformity" is mathematically proven, a direct combinatorial explanation for why this occurs remains an open question.
Summary updated