NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Pop-stack-sorting Operator on Tamari Lattices

Letong Hong

Abstract

This paper explores the dynamics of the pop-stack-sorting operator on Tamari lattices. We demonstrate that the generating function for elements sortable in $t$ steps is rational and prove that the image of the operator on the $n$-th Tamari lattice is given by the $(n-1)$-th Motzkin number, resolving a conjecture by Defant and Williams.

Introduction

Sorting algorithms often reveal deep combinatorial structures. While stack-sorting, introduced by Donald Knuth, is well-studied, its variant "pop-stack-sorting" has recently emerged as a significant area of research. Traditionally analyzed on the symmetric group, this paper shifts the focus to the Tamari lattice ($Tam_n$), a partial ordering of Dyck paths or binary trees.

The pop-stack-sorting operator $Pop$ on a lattice is defined as the meet (greatest lower bound) of an element and all the elements it covers. This study addresses two primary questions: the enumeration of $t$-sortable elements and the size of the operator's image.

Combinatorial Representations

To analyze the $Pop$ operator, the author utilizes $\nu$-bracket vectors to represent elements of the Tamari lattice. This algebraic representation allows for a precise tracking of how the operator transforms Dyck paths.

Lattice paths $\mu$ and $\nu$ illustrating the combinatorial structure of Tamari lattice elements.

As shown in the figure above, elements are represented as paths on a grid. The labels associated with these paths correspond to the components of bracket vectors, which facilitate the recursive decomposition of lattice elements into irreducible parts.

The Pop Operator and Sortability

An element $x$ is $t$-pop-stack-sortable if $Pop^t(x) = \hat{0}$, where $\hat{0}$ is the minimal element of the lattice. A key result of this paper is the confirmation of a conjecture by Defant regarding the rationality of the generating function for these elements.

Theorem 1.1: The generating function $H_t(z) = \sum_{n \ge 1} h_t(n)z^n$ for the number of $t$-pop-stack-sortable elements in $Tam_n$ is rational and given by: $$H_t(z) = \frac{z}{1 - 2z - \sum_{j=2}^t C_{j-1}z^j}$$ where $C_j$ denotes the $j$-th Catalan number. This implies that the sequence $h_t(n)$ satisfies a linear recurrence relation.

The Motzkin Connection

One of the most significant findings is the characterization of the image of the $Pop$ operator. The author proves that the set of unique outputs after one application of the operator is counted by the Motzkin numbers.

Theorem 1.2: The size of the image of the pop-stack-sorting operator on $Tam_n$ is exactly $M_{n-1}$, the $(n-1)$-th Motzkin number.

This result links Tamari lattices to Motzkin paths—paths that do not go below the x-axis and allow for up, down, and horizontal steps. The proof involves showing that the image consists of permutations without "consecutive double descents" that end in the value $n$.

Methodology

The proofs rely on several sophisticated techniques:

  • The "Hash Map": A recursive method to decompose bracket vectors, leading to functional equations for generating functions.
  • Lattice Congruence: Utilizing the relationship between the Tamari lattice and the weak order on the symmetric group.
  • OEIS Validation: Results were cross-referenced with sequences A055151 and A001006 (Motzkin numbers) from the Online Encyclopedia of Integer Sequences.

Conclusion

By settling the conjecture of Defant and Williams, this work provides a complete characterization of the first-order dynamics of pop-stack-sorting on Tamari lattices. Future research may extend these results to generalized $\nu$-Tamari or $m$-Tamari lattices and explore the size of the image after multiple applications of the operator.

Summary updated

BibTeX
@article{hong2022pop,
  author = {Letong Hong},
  title = {{The Pop-stack-sorting Operator on Tamari Lattices}},
  journal = {Adv. Appl. Math.},
  year = {2022},
}
Figure