arXiv:2610.06716cs.FLOct 2026

Manuscript Offprint

arXiv:2610.06716

Pumping Constants for Infinite Alphabets

Yoav Danieli

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yoav Danieli

Technion

Haifa, Israel

yoavd@campus.technion.ac.il

It is well known that the pumping lemma for regular languages over finite alphabets does not extend to infinite alphabets. Instead, the generalized version of the pumping lemma for infinite alphabets states that the pumped patterns need not be identical, but only equivalent up to a finite-order permutation of the alphabet.

This generalized variant of the pumping lemma involves two parameters: the length of the pumped pattern and an upper bound on the order of the permutation. We improve the known permutation-order bounds from factorial to tight bounds governed by Landau's function. We also show that, if the pumping length is sufficiently large, then permutations of order at most two always suffice.

Our main structural result concerns the one-register case: every one-register automaton satisfies the classical pumping lemma, with no alphabet permutation. We prove a quadratic upper bound on the pumping length and give a matching quadratic lower bound up to constant factors. The same classical pumping phenomenon is shown for hierarchical register automata. Finally, we prove that, in general, deciding whether a quasi-regular language is pumpable for given constants is undecidable, while the minimal classical pumping length is computable for non-guessing one-register automata.

1 Introduction

Finite-memory automata [16] are a generalization of the classical Rabin-Scott finite-state automata [24] to infinite alphabets. By equipping the automata with a finite set of registers (called windows in [16]), which store letters from the infinite alphabet during the computation, and by restricting the automaton to compare input letters with register contents and to copy input letters to registers only, the automaton retains a finite memory of previously seen letters. Consequently, the languages accepted by finite-memory automata exhibit properties similar to those of regular languages and are, thus, termed quasi-regular languages.

Automata over infinite alphabets have gained increasing importance in computer science, as they provide formal models for systems that operate over unbounded data domains. Infinite alphabets may be viewed as representing data, such as data values in XML documents [1], nonces in cryptographic protocols [19], object identities [10], or parameters of method calls [15]. The ability to reason about infinite alphabets while maintaining decidability of key properties makes these models particularly valuable for the formal verification of data-aware systems.

Finite-memory automata provide a structured way to reason about such systems by focusing on patterns and repetitions of data values rather than their specific identities. This perspective is particularly useful in applications where the exact values of data are less important than their relative behavior over time. In particular, quasi-regular languages form a subclass of nominal languages (also known as sets with atoms or Fraenkel-Mostowski sets) [2], and finite-memory automata themselves are expressively equivalent to nominal automata (also known as orbit-finite automata) [3].

A fundamental property of classical finite-state automata is regularity, often characterized by the pumping lemma. The pumping lemma is a key tool for proving that certain languages are not regular by identifying structural constraints on words within the language. However, it is well known that the

M. Hospodár et al. (Eds.): 17th International Conference on Automata and Formal Languages (AFL 2026)

EPTCS 451, 2026, pp. 104–122, doi:10.4204/EPTCS.451.8

© Y. Danieli

This work is licensed under the

Creative Commons Attribution License.

pumping lemma does not extend to quasi-regular languages, see [16, Example 3], where a deterministic automaton with two registers accepts a language serving as a counterexample to the pumping lemma. This leaves open, in the existing literature, whether a similar counterexample exists already for one-register automata. One of the main results of this paper shows that it does not: every one-register finite-memory automaton satisfies the classical pumping lemma.

In general, the pumping lemma for quasi-regular languages requires the pumped patterns to be generated by a finite-order permutation. In this variant, the pumping lemma depends on two constants: the input length pp and the order of the permutation dd.

For a regular language, the value of pp can always be chosen to be the number of states of a finite automaton accepting the language, regardless of whether it is deterministic or nondeterministic. For finite-memory automata, this value yields a finite-order permutation of order at most (2r)!=O(e2rlog⁡r)(2r)! = O(e^{2r\log r}) [5, Theorem 7], where rr is the number of registers.

In this paper, we study the descriptional complexity of pumping constants for several register-based automata models. Specifically, we derive upper bounds on the least possible pumping length pp and permutation-order dd in terms of the number of states and registers of the automaton. We consider one-register finite-memory automata, multi-register finite-memory automata, and hierarchical register automata. Where possible, we also prove lower bounds showing that these estimates cannot be substantially improved. The results are summarized in Table 1, where nn is the number of states and rr is the number of registers. Thus, our results exhibit a trade-off between the pumping length pp and the permutation order dd: short pumping length forces larger permutation order, while larger pumping length allows the order to be reduced, first to 2 for general finite-memory automata and, in the one-register and hierarchical cases, to 1.

The table records only the positive upper bounds. We also prove two complementary negative and algorithmic results. First, for multi-register automata, it is undecidable whether the recognized language satisfies the pumping lemma for given constants pp and dd; it is also undecidable whether the classical pumping lemma holds at all. Thus, there is no general algorithm for computing optimal pumping constants. Second, for non-guessing one-register automata, the situation improves: the minimal classical pumping length is computable.

ModelPumping lengthPermutation order
FMA1_{1}nn22
O(n2)O(n^{2})11
FMAr_{r}nne(1+o(1))rlog⁡re^{(1+o(1))\sqrt{r\log r}}
O((r2)!n)O((r^{2})!n)22
HRAr_{r}O(nr+1)O(n^{r+1})11

Table 1: Upper bounds for pumping constants proved in this paper.

Related work The constant in the pumping lemma for regular languages has been studied extensively in terms of descriptional complexity (its relation to the number of states/ transitions) [11, 12], computational complexity (the difficulty of computing the minimal pumping constant for a given regular language) [11], and operational complexity (how the minimal pumping constant changes under Boolean and regular operations) [6, 14].

Pumping Lemmas

The generalized pumping lemma for quasi-regular languages has appeared in several equivalent forms in the literature. A formal presentation appears in [22, Theorem 3.1], and the result was independently proved earlier by two groups; see [18] and [26, Lemma 46]. A refinement of this pumping lemma using finite-order permutations was presented in [5, Theorem 7].

Organization. The results are presented in increasing order of technical difficulty. After recalling finite-memory automata and the relevant pumping definitions, we first treat general multi-register automata in Section 3. There we prove two complementary positive results: with the classical pumping length p=np = n, the required permutation order can be bounded in terms of Landau's function; and, if the pumping length is increased by a constant depending only on r, then permutations of order at most two always suffice. We also prove the undecidability results there, showing that optimal pumping constants cannot be computed in general.

We then turn to the more delicate one-register case in Section 4. This is the first point at which the permutation can be eliminated completely: every one-register finite-memory automaton satisfies the classical pumping lemma. We also show that the resulting quadratic pumping length is optimal up to constant factors, and we prove that the minimal classical pumping length is computable for non-guessing one-register automata. Finally, we extend the classical pumping result to hierarchical register automata, whose proof combines the one-register argument with the hierarchical structure of register updates.

References (13)