The insertion encoding of Cayley permutations
Pith reviewed 2026-05-22 15:38 UTC · model grok-4.3
The pith
Vertical and horizontal insertion encodings fully classify the Cayley permutation classes whose languages are regular.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The vertical and horizontal insertion encodings turn Cayley permutation classes into formal languages, and the authors prove a complete classification of the classes for which these languages are regular. This classification comes with an algorithm to calculate the rational generating function for any such class. Using the algorithm, the number of hare pop-stack sortable Cayley permutations is determined, answering a question left open by Cerbai.
What carries the argument
The vertical and horizontal insertion encodings, which extend the classical insertion encoding by recording positions in a two-dimensional grid adapted to the structure of Cayley permutations.
If this is right
- The regularity of the encoding languages is completely determined for all Cayley permutation classes.
- Rational generating functions for the enumerated classes can be computed by a uniform algorithm.
- The enumeration of hare pop-stack sortable Cayley permutations is obtained explicitly.
Where Pith is reading between the lines
- These encodings may help classify regularity for insertion-based encodings in other combinatorial families that allow repeated entries.
- The solved enumeration opens the way for asymptotic analysis of the growth rates of these sortable objects.
Load-bearing premise
These encodings are assumed to extend the classical method while keeping the structural features required to classify regularity in every possible case.
What would settle it
A Cayley permutation class whose insertion encoding language is shown to be non-regular by direct construction while the classification claims it is regular, or a mismatch in the computed count of hare pop-stack sortable objects against an independent enumeration method.
Figures
read the original abstract
We introduce the vertical and horizontal insertion encodings for Cayley permutations which naturally generalise the insertion encoding for permutations. In both cases, we fully classify the Cayley permutation classes for which these languages are regular, and provide an algorithm for computing the rational generating functions. We use our algorithm to solve an open problem of Cerbai by enumerating the hare pop-stack sortable Cayley permutations.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces vertical and horizontal insertion encodings for Cayley permutations that generalize the classical insertion encoding for permutations. It fully classifies the Cayley permutation classes for which these encodings yield regular languages, supplies an algorithm that computes the corresponding rational generating functions, and applies the algorithm to enumerate the hare pop-stack sortable Cayley permutations, thereby resolving an open problem of Cerbai.
Significance. If the classification and algorithm are correct, the work provides a systematic extension of insertion encodings to Cayley permutations and a concrete tool for producing rational generating functions in this setting. The resolution of Cerbai's enumeration problem demonstrates the method's utility for open questions in pattern avoidance and sortable structures.
major comments (2)
- §4 (algorithm description): the correctness argument for the procedure that converts a regular language into a rational generating function should explicitly address how the finite-state automaton is constructed from the insertion rules for Cayley permutations; without this, it is unclear whether the algorithm remains valid when the underlying class is not a classical permutation class.
- Theorem 5.2 (classification of regular cases): the case analysis establishing that only the listed families produce regular languages must include an explicit argument that every possible Cayley permutation class falls into one of the enumerated cases; the current outline leaves open the possibility that an unlisted class could still yield a regular language through an unforeseen interaction with the vertical or horizontal encoding.
minor comments (3)
- Introduction, paragraph 3: the definition of a Cayley permutation is given only by reference; a self-contained one-line characterization would help readers who are not already familiar with the object.
- Figure 2: the diagram illustrating a vertical insertion step would be clearer if the active sites were labeled with the same notation used in the surrounding text.
- §6 (application to hare pop-stack sortable permutations): the generating function obtained by the algorithm is stated without an accompanying closed-form expression or OEIS reference; adding either would facilitate independent verification.
Simulated Author's Rebuttal
We thank the referee for the careful reading of the manuscript and the constructive comments. The recommendation for minor revision is appreciated, and we address each major comment below. We will revise the manuscript to incorporate additional clarifications as outlined.
read point-by-point responses
-
Referee: §4 (algorithm description): the correctness argument for the procedure that converts a regular language into a rational generating function should explicitly address how the finite-state automaton is constructed from the insertion rules for Cayley permutations; without this, it is unclear whether the algorithm remains valid when the underlying class is not a classical permutation class.
Authors: We agree that the description in §4 would benefit from greater explicitness regarding the automaton construction. In the revised manuscript we will add a paragraph detailing how the states and transitions of the finite-state automaton are determined directly from the vertical and horizontal insertion rules specific to Cayley permutations (including the handling of repeated values). This will make clear that the correctness of the conversion to a rational generating function holds for general Cayley permutation classes and does not rely on the class being a classical permutation class. revision: yes
-
Referee: Theorem 5.2 (classification of regular cases): the case analysis establishing that only the listed families produce regular languages must include an explicit argument that every possible Cayley permutation class falls into one of the enumerated cases; the current outline leaves open the possibility that an unlisted class could still yield a regular language through an unforeseen interaction with the vertical or horizontal encoding.
Authors: The proof of Theorem 5.2 proceeds via an exhaustive case analysis on the possible forms of the insertion encodings and the avoidance conditions that preserve regularity. To address the referee's concern, we will insert an additional paragraph immediately after the case analysis that explicitly argues for completeness: any Cayley permutation class not belonging to one of the listed families must admit an encoding containing a substructure (such as an unbounded number of independent insertions) that produces a non-regular language, as shown by a pumping-lemma violation. This addition will eliminate any ambiguity about unlisted classes without changing the stated classification. revision: yes
Circularity Check
No significant circularity detected
full rationale
The paper introduces new vertical and horizontal insertion encodings as generalizations of the classical insertion encoding for permutations. It then classifies Cayley permutation classes for which the resulting languages are regular and supplies an algorithm to compute the associated rational generating functions. This algorithm is applied to resolve an external open enumeration problem posed by Cerbai. No quoted derivation step reduces a claimed prediction or classification result to a fitted parameter, a self-defined quantity, or a load-bearing self-citation whose validity is presupposed by the present work. The central claims rest on explicit case analysis and algorithmic construction rather than on renaming or circular re-use of prior outputs by the same authors.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Standard properties of regular languages and finite automata suffice to decide regularity and compute generating functions.
Forward citations
Cited by 1 Pith paper
-
The insertion encoding of restricted growth functions
Classifies regularity of vertical and horizontal insertion encodings for restricted growth functions and extends the horizontal result to matchings.
Reference graph
Works this paper leans on
-
[1]
Ahlbach, C., Usatine, J., and Pippenger, N. (2012). Barred preferential arrangements.Electronic Journal of Combinatorics, 20
work page 2012
-
[2]
Albert, M., Linton, S., and Ru ˇskuc, N. (2005). The insertion encoding of permutations.Elec- tronic Journal of Combinatorics, 12(1)
work page 2005
-
[3]
H., Bean, C., Claesson, A., Nadeau, E., Pantone, J., and Ulfarsson, H
Albert, M. H., Bean, C., Claesson, A., Nadeau, E., Pantone, J., and Ulfarsson, H. (2025). Com- binatorial exploration: An algorithmic framework for enumeration.Memoirs of the American Mathematical Society, to appear
work page 2025
-
[4]
Atkinson, M. (1999). Restricted permutations.Discrete Mathematics, 195:27–38
work page 1999
-
[5]
Bean, C. and Ollson, A. (2025). cperms ins enc. https://github.com/Ollson2921/cperms ins enc
work page 2025
-
[6]
Biers-Ariel, Y., Zhang, Y., and Godbole, A. (2016). Some results on superpatterns for preferen- tial arrangements.Advances in Applied Mathematics, 81
work page 2016
-
[7]
Cayley, A. (1857). On the theory of analytic forms called trees.Philos. Mag. 13, 19-30, 1857. Reprinted in Mathematical Papers, 3:242–246
-
[8]
Cerbai, G. (2021). Sorting Cayley permutations with pattern-avoiding machines.Australasian Journal of Combinatorics, 80(3):322–341
work page 2021
-
[9]
Chung, F., Graham, R., Hoggatt, V ., and Kleiman, M. (1978). The number of baxter permuta- tions.Journal of Combinatorial Theory, Series A, 24(3):382–394
work page 1978
- [10]
-
[11]
Defant, C. and Kravitz, N. (2020). Stack-sorting for words.Australasian Journal of Combina- torics, 77(1):51–68
work page 2020
-
[12]
Erd ˝os, P . and Szekeres, G. (1935). A combinatorial problem in geometry.Compositio Mathe- matica, 2:463–470
work page 1935
-
[13]
Foissy, L., Novelli, J., and Thibon, J.-Y. (2010). Polynomial realizations of some combinatorial Hopf algebras.Journal of Noncommutative Geometry, 8
work page 2010
-
[14]
Golab, H. (2024). Pattern avoidance in Cayley permutations. Master’s thesis, Northern Ari- zona University
work page 2024
-
[15]
Hazewinkel, M. (2004). Hopf algebras of endomorphisms of Hopf algebras.Arabian Journal for Science and Engineering, 33
work page 2004
-
[16]
Jel ´ınek, V . and Mansour, T. (2008). On pattern-avoiding partitions.Electronic Journal of Com- binatorics, 15:R39
work page 2008
-
[17]
Knuth, D. E. (1968).The Art of Computer Programming, volume 1. Addison-Wesley
work page 1968
-
[18]
Kroes, D. and Rhoades, B. (2022). Packed words and quotient rings.Discrete Mathematics, 345:112945
work page 2022
-
[19]
MacMahon, P . A. (1915).Combinatory analysis, volume 1. Cambridge University Press
work page 1915
-
[20]
Mor, M. and Fraenkel, A. (1984). Cayley permutations.Discrete Mathematics, 48:101–112
work page 1984
-
[21]
Nkonkobe, S., B ´enyi, B., Corcino, R., and Corcino, C. (2020). A combinatorial analysis of higher order generalised geometric polynomials: A generalisation of barred preferential ar- rangements.Discrete Mathematics, 343:111729
work page 2020
-
[22]
Patrias, R. and Pylyavskyy, P . (2016). Combinatorics ofK-theory via aK-theoretic Poirier–Reutenauer bialgebra.Discrete Mathematics, 339:1095–1115
work page 2016
-
[23]
Pippenger, N. (2010). The hypercube of resistors, asymptotic expansions, and preferential arrangements.Mathematics Magazine, 83
work page 2010
-
[24]
Simion, R. and Schmidt, F. (1985). Restricted permutations.European Journal of Combinatorics, 6
work page 1985
-
[25]
Sloane, N. J. A. (2025). The Online Encyclopedia of Integer Sequences.https://oeis.org
work page 2025
-
[26]
Vatter, V . (2009). Finding regular insertion encodings for permutation classes.Journal of Symbolic Computation, 47
work page 2009
-
[27]
Vatter, V . (2015). Permutation classes. InHandbook of Enumerative Combinatorics, pages 777–
work page 2015
-
[28]
Chapman and Hall/CRC. 31
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.