<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>mars, Pumping Reductions, and Regularity.</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marta Vomlelová</string-name>
          <email>marta.vomlelova@mff.cuni.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>František Mráz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dana Pardubská</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin Plátek</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin Procházka</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Charles University, Department of Computer Science</institution>
          ,
          <addr-line>Malostranské nám. 25, 118 00 Praha 1</addr-line>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Comenius University in Bratislava, Department of Computer Science</institution>
          ,
          <addr-line>Mlynská Dolina, 84248 Bratislava</addr-line>
          ,
          <country country="SK">Slovakia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>ITAT'25: Information Technologies - Applications and Theory</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <abstract>
        <p>Complete CF(¢,$)-grammar inspired by linguistic techniques can serve as a tool for studying the class of contextfree languages that are closed under complement. Such grammar generates a complementary pair of context-free languages. Here, we introduce a restricted version of complete CF(¢,$)-grammars called PS-free pumping CF(¢,$)grammars, which satisfy restrictions that extend the conditions of the pumping lemma for regular languages. PS-free pumping CF(¢,$)-grammars generate regular languages only. However, the conditions put on PS-free pumping CF(¢,$)-grammars are suficient but not necessary for regularity.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>∗Corresponding author.</p>
      <p>CEUR
Workshop</p>
      <p>ISSN1613-0073
reductions in the prefix and sufix of a word. We show that each PS-free pumping CF( c|,$)-grammar 
induces a language equivalence relation with finite index such that the acceptance language of  is one
of the equivalence classes. Then, by applying Myhill-Nerode theorem [5, Theorem 3.1], we get that
both acceptance and rejection languages of  are regular.</p>
      <p>The next section defines the basic notions, introduces complete CF( c|,$)-grammars, and reviews their
known properties. Section 3 introduces PS-free pumping grammars and proves the main result of the
paper stating that each PS-free pumping grammar has regular acceptance and rejection languages.
Section 4 shows examples that PS-free pumping grammar need not be one-sided (informally, its pumping
reductions can remove only one segment of a word in one simplification step), and that a complete
grammar generating a regular language need not be PS-free pumping. The last section contains
conclusions and an outlook for future research.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Basic notions and results</title>
      <p>An alphabet is an arbitrary finite set of elements called symbols. A word  over the alphabet Σ is a
ifnite sequence of symbols from Σ. The set of all words over the alphabet Σ is denoted as Σ∗. If  and 
are words,  or  ⋅  denotes their concatenation. By | | we denote the length of the word, that is, the
number of symbols in  . The length of the empty word  is 0.</p>
      <p>A context-free grammar is a system  = ( , Σ, , ) , where  is an alphabet of nonterminals, Σ is an
alphabet of input symbols called terminals ( ∩ Σ = ∅ ),  ∈  is an initial nonterminal, and  is a finite
subset of  × ( ∪ Σ) ∗,  is called a set of rules and its elements are written in the form  →  , where
 ∈  and  ∈ ( ∪ Σ) ∗.</p>
      <p>We say that a word  ∈ ( ∪ Σ) ∗ can be rewritten into a word  ∈ ( ∪ Σ) ∗ according to
contextfree grammar  = ( , Σ, , ) if there exist words  1,  2,  ∈ ( ∪ Σ) ∗ and a nonterminal  ∈ 
such that  =  1  2,  =  1 2, and  →  is a rule from  . We write  ⇒  . The reflexive and
transitive closure of the relation ⇒ is denoted as ⇒∗. Then the language generated by the grammar 
is () = { ∈ Σ ∗ ∣  ⇒ ∗  } .</p>
      <p>Definition 1 (CF( c|,$)-grammars, [6]). Let  and Σ be two disjoint alphabets, c|, $ ∉ ( ∪ Σ) and
 = ( , Σ ∪ { c|, $}, , ) be a context-free grammar generating a language of the form { c|} ⋅  ⋅ {$} , where
 ⊆ Σ ∗, and  does not occur in the right-hand side of any rule from  . We say that  is a CF( c|,$)-grammar.
The language  is the internal language of  , and it is denoted as  in() .</p>
      <p>
        Closure properties of the class of context-free languages imply that for a CF( c|,$)-grammar  , both
languages () and  in() are context-free. The added right sentinel $ facilitates the recognition
of languages. For example, if  is a deterministic context-free language, it can be generated by an
LR(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )-grammar. But  ⋅ {$} and { c|} ⋅  ⋅ {$} are both generated by simpler LR(0) grammars [7]. The
left sentinel c| is included in CF( c|,$)-grammars for compatibility with a version of restarting pumping
automata from [8]. The class ℒ ( ( c|, $)) of all internal languages of CF( c|,$)-grammars characterizes
the class CFL.
      </p>
      <sec id="sec-2-1">
        <title>2.1. Pumping infixes and reductions</title>
        <p>Definition 2 ([6]). Let  = ( , Σ ∪ {
and
We say that ( c|,  1, ,  , 
 .</p>
        <p>The infix and the reduction are two-side if both  1 and  2 are nonempty. They are right-side ( left-side ,
respectively) if  1 ( 2, respectively) is empty.</p>
        <p>The relation ∗ is the reflexive and transitive closure of the pumping reduction relation  .</p>
        <p>
          be a CF( c|,$)-grammar,  ,  1,  ,  2,  ∈ Σ ∗,  1 2 ≠  ,  ∈  ,
 ⇒ ∗ c| $ ⇒
∗ c| 1 2 $ ⇒ ∗ c| 1  2 $.
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
2,  $) is a pumping infix , and c| 1  2 $
 c|  $
is a pumping reduction by
Note that we have not omitted the sentinels in the pumping infix and pumping reduction.
        </p>
        <p>If ( c|,  1, ,  ,  2,  $) is a pumping infix by  , then all words of the form c| 1  2 $ , for all integers
 ≥ 0 , belong to () .</p>
        <p>Let  = ( , Σ ∪ { c|, $}, , ) be a CF( c|,$)-grammar,  be the number of nonterminals of  , and  be the
maximal length of the right-hand side of the rules from  , where the sentinels c|, $ are not counted.
Let  be a derivation tree according to  . If  has more than   leaves from Σ, a path exists from a leaf
to the root of  such that it contains at least  + 1 nodes labeled with nonterminals. As  has only 
nonterminals, at least two nodes on the path are labeled with the same nonterminal  . In that case,
there is a pumping reduction, corresponding to this word. We say   =   + 2 is the grammar number
of  .</p>
        <p>Note that for each word from () of length greater than   , some pumping infix by  must
correspond. On the other hand, each word generated by  that is not pumped is at most of length   .
In the following, we will separate words that can be pumped from those that cannot.</p>
        <p>
          Note that in the above derivation (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ), the length of the words  ,  1,  ,  2,  is not limited.
        </p>
        <p>A pumping reduction    ′ corresponds to removing a segment between any nodes  1 and  2
labeled with the same nonterminal  occurring on a path from the root of a derivation tree for  .</p>
        <p>The following obvious propositions were proved in [3].</p>
        <p>Proposition 1 (Pumping reductions are correctness preserving, [3]). Let  = ( , Σ ∪ { c|, $}, , ) be
a CF( c|,$)-grammar. Let  generate a word  1, and  1, … ,   , for some integer  ≥ 1 , be a sequence of
words such that     +1 , for all  = 1, … ,  − 1 , be a sequence of pumping reductions, and there is no
 +1 ∈ Σ∗ such that     +1 .</p>
        <p>Then   ∈ () , for all  = 1, … ,  and |  | ≤   .</p>
        <p>Proposition 2 ([3]). Let  = ( , Σ ∪ { c|, $}, , ) be a CF( c|,$)-grammar, and  generates a word  1 (that
is,  1 ∈ () ), and | 1| &gt;   . Then there is a sequence of words  1, … ,   , for some integer  ≥ 1 such
that, for all  = 1, … ,  − 1 ,     +1 ,   ∈ () , for all  = 1, … ,  , and |  | ≤   .</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Complete CF(¢,$)-grammars</title>
        <p>In contrast to previous definitions (e.g., [ 3]), the following definition of complete CF( c|,$)-grammar
requires that such a grammar to be reduced – it does not contain useless nonterminals (with a minor
exception).</p>
        <p>Definition 3. Let   = ( , Σ ∪ { c|, $}, , )
grammar if</p>
        <p>be a CF( c|,$)-grammar. Then   is called a complete CF(
c|,$)1.  →   ∣   , where   ,   ∈  , are the only rules in  containing the initial nonterminal  . No other
rule of   contains   or   in its right-hand side.
2. The languages (  ) and (  ) generated by the grammars   = ( , Σ ∪ { c|, $},   , ) and
  = ( , Σ ∪ { c|, $},   , ) , respectively, are disjoint and complementary with respect to { c|} ⋅ Σ∗ ⋅ {$}.</p>
        <p>That is, (  ) ∩ (  ) = ∅ and (  ) = (  ) ∪ (  ) = { c|} ⋅ Σ∗ ⋅ {$}.
3. All nonterminals of   can be derived from  , and from all nonterminals of   (except for   and   )
there are derivations of terminal words.</p>
        <p>We will denote the grammar as   = (  ,   ). In addition, we will call   and   the acceptance and
rejection grammar of the complete CF( c|,$)-grammar   , respectively.</p>
        <p>The above definition implies that for each word of the form c| $ , where  ∈ Σ ∗, there is some
derivation tree  according to   . The root of  has a single son labeled with one of the nonterminals
  and   . If it is   , the word from the leaves of the tree  is from (  ), otherwise it is from (  ).</p>
        <p>For any terminal word  ∈ { c|} ⋅ Σ∗ ⋅ {$}, there can exist several derivation trees. However, if  ∈ (  ),
all have   under their root. If  ∈ (  ), they will have   under their root.</p>
        <p>As (  ) = { c|} ⋅ Σ∗ ⋅ {$} is an infinite language, there exist pumping reductions by   ([6]).</p>
        <p>The condition that both acceptance and rejection grammar of a complete CF( c|,$)-grammar are
context-free seems to be quite restrictive, but the class of deterministic context-free languages is closed
under complement. Hence, if   is a CF( c|,$)-grammar which is LR(0), then there exists a complete
CF( c|,$)-grammar   = (  ,   ) which is LR (0) (see, e.g., [8]).</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. PS-Free pumping CF(¢,$)-grammars</title>
      <p>In [6] it was shown that if an acceptance or rejection language of a complete CF( c|,$)-grammar   =
(  ,   ) enables pumping where two nonempty segments can be pumped and some other requirements
are fulfilled, then the languages (  ) and (</p>
      <p>) are not regular.</p>
      <p>In the following, we will use conditions similar to those in the well-known pumping lemma for</p>
      <p>and  ,  are any (possibly empty) strings. It then follows that  can be
written in the form  = 
where 1 ≤ || ≤  and where 

  is in ()
, for all  ≥ 0 .</p>
      <p>Corollary 1. Let  be a regular language, then there exists a constant  &gt; 0 such that, for all words  1,  2
such that  1 2 is in  , | 1| &gt;  ,  2 is any (possibly empty) word, there exists a word  1′ so that | 1′| &lt; | 1|,
of Corollary 1 follows for  = 0 .</p>
      <p>Proof: As  1 2 ∈  , we can apply Proposition 3, where  =  ,  =  1,  =  2, and  is the number of
states of a finite-state automaton accepting the language  . Then we can take  1′ =  and the statement</p>
      <p>In other words, each long enough word from  can be shortened in its prefix of length at least 
into a shorter word from  . As the class of regular languages is closed under reversal, an analogous
statement also holds for sufixes of limited size. Nevertheless, it is known that Proposition
3 (and
therefore also Corollary 1) is not a suficient condition for the regularity of a language. Below, we use
similar conditions for prefixes and sufixes together with further independence conditions of reductions
Definition 4. Let   = (  ,   ) be a complete CF( c|, $)-grammar and  &gt; 0 be a constant such that


 
 ′</p>
      <p>′ ′.
   ′ and</p>
      <p>′.
(C) For all words  ,  ,  ′ and  ′ such that  ∈ (
(P) for each  ∈ (
(S) for each  ∈ (
 ) such that || &gt;  , there is  1 such that 
 ) such that || &gt;  , there is  1 such that 
   1 , and
   1.
 ), || &gt;  , || &gt;  , 
   ′
   ′ ′ implies
(D) For each  ′,  ′ ∈ (
 ) such that || &gt;  , || &gt;  ,  ′
   ′ ′ and  ′
   ′ ′ it holds
We say that   is a PS-free pumping CF( c|, $)-grammar of width  .</p>
      <p>The additional conditions (C) and (D) in Definition 4 add “independence” of reductions in prefix and
sufix. We will see that all these conditions together guarantee the regularity of the languages (  )
and (</p>
      <p>).</p>
      <p>Recall that each pumping reduction by   on  ∈ (
 ) is a pumping reduction by   . Similarly, each
pumping reduction by   on  ∈ (</p>
      <p>) is a pumping reduction by   .</p>
      <p>Definition 5 (Prefix-sufix reduction)</p>
      <p>. Let   = (  ,   ) be a complete CF( c|, $)-grammar of width  .
• Let  be a pumping reduction of the form</p>
      <p>1 , and || &gt;  . We say that  is a prefix reduction
(P-reduction) by   of width  . The word  is the prefix being reduced, and  is the (fixed) sufix of
 .</p>
      <p>Note that the length of the sufix  is not limited.
in the prefixes and sufixes.
and (  ) are regular.</p>
      <p>Here, we introduce a restricted version of complete CF( c|,$)-grammar that guarantees that both (  )
 ′


 
   1
 ′
 
   1
 1
′
′</p>
      <p />
      <p>1, and || &gt;  . We say that  is a sufix reduction
(S-reduction) by   of width  . The word  is the sufix being reduced, and
 is the (fixed) prefix of
 .</p>
      <p>1 1, and let  be either a P-reduction or an</p>
      <p>We also say that  , where || &gt; 0 , is a PS-prefix and that  , || &gt; 0 , is a PS-sufix.</p>
      <p>Observation Let   = (  ,   ) be a PS-free pumping CF( c|, $)-grammar of width  . Then the following
assertions hold:
(a1) For each 
∈
(
 ) such that 
 1 1
we have the following
(a2) For each  ∈ (
 ) there is a reduction 
∗
(  ,)  1 1 such that | 1| ≤ , | 1| ≤  .
 ). That is, all PS-reductions are error- and correctness-preserving.</p>
      <p>Lemma 1. Let   = (  ,   ) be a PS-free pumping CF( c|, $)-grammar of width  . Then, for all words  ,  ,
Proof: According to Definition 4, the statement holds for two-step pumping reductions. E.g., if in
the reduction 
and the second part only one step  ′
∗
 
 ′
∗
 
 ′ ′, the first part 
   ′ ′, we have a three step reduction 
∗
 
 ′ requires two steps: 
   1</p>
      <p>1
 ′
 
   ′ ′ and we can apply condition (C) to the last two steps. We get the sequence of reductions
 ′ ′. Next, we apply condition (C) to the first two reductions and get
 ′ ′. Hence, 
 
∗  ′
 
∗  ′.</p>
      <p>Using similar reduction reordering, we can prove the statement of the lemma by induction on the
number of steps in the series of reductions.</p>
      <sec id="sec-3-1">
        <title>Basic PS-prefix and PS-sufix by</title>
        <p>grammar of width  , and  be a word in (  ).</p>
        <p>Next, we introduce PS-prefixes and PS-sufixes with a limited size.</p>
        <p>• If 0 &lt; || ≤  , we say that  is a basic PS-prefix by   of width  .</p>
        <p>• If 0 &lt; || ≤  , we say that  is a basic PS-sufix by   of width  .</p>
        <p>The set of all PS-prefixes for   will be denoted as
The set of all basic PS-prefixes will be denoted as
   (
 ) = { ∣  ≠ , ∃ ∈ (Σ ∪ {</p>
        <p>c|, $})∗ ∶  ∈ { c|} ⋅ Σ∗ ⋅ {$}}.</p>
        <p>of width  . Let   = (  ,   ) be a PS-free pumping CF( c|,
$)Similarly, the set of all basic PS-sufixes will be denoted as</p>
        <p>BPref (  , ) = {{ c|} ⋅  ∣  ∈ Σ</p>
        <p>∗, and | | &lt;  } .</p>
        <p>BSuf (  , ) = { ⋅ {$} ∣  ∈ Σ
∗, and | | &lt; }.</p>
        <p>In what follows, for a set  ,  ( )</p>
        <p>denotes the set of all its subsets.</p>
        <p>Definition 6 (Prefix characteristic function) . Let   = (  ,   ) be a PS-free pumping CF( c|, $)-grammar
of width  &gt; 0 .</p>
        <p>A characteristic function of a PS-prefix  is the function
ℎ() ∶    (</p>
        <p>) × BSuf (  , ) →  ( BPref (  , ))
that for each PS-prefix  and a basic sufix   assigns the set of all basic PS-prefixes to which the prefix

can be reduced, when we reduce the word   . Formally:
 ) = {  ∈ BPref (  , ) ∣  
∗
 ) is always a nonempty set, as either
 
∗
• || &gt;  and, according to Observation (a2) above, there exists a basic PS-prefix   such that
3.1. Equivalence of PS-prefixes and regularity of languages generated by PS-free
pumping grammars
= has all these properties.
classes of ≅ is finite.
a PS-free pumping grammar are regular.</p>
        <p>Based on the characteristic functions of PS-prefixes, we will define an equivalence on PS-prefixes.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Definition 7.</title>
        <p>Let   = (  ,   ) be a PS-free CF( c|,$)-grammar of width  &gt; 0 . We say that two PS-prefixes
 and  are equivalent, we write  ≅  , if for all   ∈ BSuf (  , ) it holds ℎ()(, 
 ) = ℎ()(, 
 ).</p>
        <p>Lemma 2. Let   = (  ,   ) be a PS-free CF( c|,$)-grammar of width  &gt; 0 . The relation ≅ on the set of
PS-prefixes by   is an equivalence relation of finite index.</p>
        <p>Proof: It is easy to see that the relation ≅ is reflexive, symmetric, and transitive, as the equality relation
The number of diferent characteristic functions is finite. Therefore, the number of equivalence
The following lemma is the key property for showing that the acceptance and rejection languages of</p>
        <p>Lemma 3. Let   = (  ,   ) be a PS-free CF( c|,$)-grammar of width  &gt; 0 , and let  ≅  for some
PS-prefixes  ,  by   . Then, for each PS-sufix
 ,  ∈ (
 ) ⇔   ∈ (
 ).</p>
        <p>Proof: Let  and  be two PS-prefixes by   such that  ≅  , and let  be a PS-sufix by   . Let us suppose
 ). This means that 
and a basic PS-sufix
  ∈ BSuf (  , ) .</p>
        <p>∗
PS-free pumping grammar (Definition 4), we get  
all words    ,    ,   

, and  
are in (</p>
        <p>).
∗
    , for some basic PS-prefix   ∈ BPref (  , )
∗
    . Using condition (D) from the definition of
   . The final step follows from the fact that
is error- and correctness-preserving,
The corresponding statement holds for (  ), which completes the proof that  ∈ (
 ) ⇔   ∈
only if for all words  ,  ∈  ⇔   ∈ 
and only if   has a finite index.</p>
        <p>Let   denote the equivalence with respect to a language  defined in the following way:    if and
. According to Theorem 3.1 from [5], the language  is regular if
Lemma 4. Let   = (  ,   ) be a PS-free pumping CF( c|,$)-grammar of width  &gt; 0 and let   denote
the equivalence with respect to a language  = (
each word  , it holds that  ∈  ⇔   ∈ 
Proof: Let us consider the relation   where  = (
prefixes of words from
{ c|} ⋅ Σ∗ ⋅ {$} are   -equivalent.</p>
        <p>) defined in the following way:    if and only if for
. The relation   has a finite index.</p>
        <p>). As (  ) ⊆ { c|} ⋅ Σ∗ ⋅ {$}, all words that are not
exist two words ,  ∈
 ̂ such that  ∈</p>
        <p>̂ and   ∉  ̂. However, all words from  = (
If  ̂ is an arbitrary language, all words in  ̂ do not need to be equivalent to   ̂. For example, there can
 ) ⊆ { c|} ⋅ Σ∗ ⋅ {$}
end with a single symbol $. All words in  = (</p>
        <p>) are equivalent and there are no words outside 
that can be equivalent to a word in  , because the only word that we can append to a word from (  )
to obtain a word from (  ) is the empty word  .</p>
        <p>Further, we will show that all proper prefixes of words from { c|} ⋅ Σ∗ ⋅ {$} belong to a finite number of
diferent equivalence classes with respect to   .</p>
        <p>For a contradiction, assume that the number of equivalence classes with respect to   is infinite.
Then, for each  ≥ 1 , there exist words  1,  2, … ,   that are pairwise not equivalent.</p>
        <p>If two words are proper prefixes of words from { c|} ⋅ Σ∗ ⋅ {$}, then these words are PS-prefixes. If 
is greater than the number of equivalence classes with respect to ≅, then there exist two words   ,   ,
  ≠   , such that   ≅   . However, according to Lemma 3, the words   and   are   equivalent – a
contradiction to the assumption that   has an infinite index.</p>
        <p>Corollary 2. Let   = (  ,   ) be a PS-free CF( c|,$)-grammar of width  &gt; 0 . Then the languages (  )
and (  ) are regular.</p>
        <p>Proof: Lemma 4 implies that the relation   for  = (  ) has a finite index, and according to Theorem
3.1 from [5], the language (  ) is regular. As (  ) = { c|} ⋅ Σ∗ ⋅ {$} (−  ), the regularity of the
language (  ) follows from the closure properties of regular languages.</p>
        <p>Corollary 3. Let   = (  ,   ) be a complete CF( c|, $)-grammar, and (  ) be a non-regular language.
Then   is not a PS-free pumping CF( c|, $)-grammar.</p>
        <p>Lemma 5. For each regular language   ⊆ Σ∗, where Σ does not contain sentinels c|, $ there is a CF(
c|,$)grammar  , = ( , ,  , ) such that { c|} ⋅   ⋅ {$} = ( , ), and  , is a complete PS-free pumping
CF( c|,$)-grammar.</p>
        <p>Proof: A context-free grammar is a right-linear grammar if each of its rules has at most one nonterminal
symbol; the nonterminal appears on the right end of the rule. It is well known that for each regular
language  there is a right-linear (that is, regular) grammar  in the Chomsky normal form such that
() =  . Additionally, each rule of grammar  will have at most two symbols on the right-hand
side. During each derivation according to  , the sentential form contains at most one nonterminal,
and a nonterminal must be repeated in any sequence of derivation steps longer than the number of
nonterminals of  .</p>
        <p>Let   be a regular language. Then, its complement  ̄ is also a regular language. Let   and   be
right-linear grammars in Chomsky normal form such that (  ) =   and (  ) =  ̄ .</p>
        <p>It is easy to transform both the grammars   and   into the right-linear grammars  , and  ,
such that ( , ) = { c|} ⋅ (  ) ⋅ {$} and ( , ) = { c|} ⋅ (  ) ⋅ {$}, respectively.</p>
        <p>Let  be the number of nonterminals of  , . It is easy to see that  , = ( , ,  , ) is a complete
PS-free pumping CF( c|,$)-grammar of width  + 1 .</p>
        <p>The next theorem says that the internal languages of acceptance languages of complete PS-free
pumping CF( c|, $)-grammars characterize the class of regular languages.</p>
        <p>Theorem 1. A language  is a regular language if and only if there exists a complete PS-free pumping
CF( c|,$)-grammar   = (  ,   ), such that  =   (  ).</p>
        <p>Proof: The theorem is a consequence of Corollary 2 and Lemma 5.
4. Comparing PS-free and one-side pumping CF(¢,$)-grammars
This section relates PS-free pumping grammars with one-side pumping complete CF(¢,$)-grammars
studied in [3] (for their definition see below). Using sample complete CF(¢,$)-grammars, we show that
the notions of one-side or PS-free pumping represent diferent restrictions of complete CF( c|,$)-grammars
that both restrict them to generate only regular languages.</p>
        <p>Let ( , 
1, ,  ,</p>
        <p>
          2,  ) be a pumping infix by a CF( c|,$)-grammar  . The pumping infix is a core pumping
infix if there is a derivation tree  by  that corresponds to the derivation
 ⇒ ∗ c|  $ ⇒
∗ c|  1
2 $ ⇒ ∗ c|  1
  2 $
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
such that the path between the root  1 of the subtree corresponding to the derivation of  1
2 from 
in (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) to the root  2 of the subtree corresponding to the derivation of  (but without  2) does not contain
two distinct nodes labeled with the same nonterminal.
        </p>
        <p>One-side/Two-side pumping CF( c|,$)-grammars. Let  be a CF( c|,$)-grammar. We say that 
is a left-side pumping CF( c|,$)-grammar if all its core pumping infixes are left-side pumping infixes
(Definition</p>
        <p>2). Similarly, we say that  is a right-side pumping CF( c|,$)-grammar if all its core pumping
infixes are right-side pumping infixes. We say that
 is a one-side pumping CF( c|,$)-grammar if it is
either left-side or right-side pumping CF( c|,$)-grammar. Finally, we say that  is a two-side pumping
CF( c|,$)-grammar if any of its core pumping infixes is a two-side pumping infix.</p>
        <p>The paper [3] showed that one-side pumping complete CF(¢,$)-grammars characterize the class of</p>
        <p>Proposition 4 ([3]). Let   = (  ,   ) be a complete one-side pumping CF(¢,$)-grammar. Then, both
(  ) and  in(  ) are regular languages.</p>
        <p>
          On the other hand, the next example shows that a PS-free pumping CF(¢,$)-grammar need not be
one-side pumping.
set of rules:
Example 1. Let  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
= ({,   ,   , , }, {, ,
        </p>
        <p>be a complete CF( c|,$)-grammar with the following



 
→
→
→
→
  ∣   ,
However, the word  can also be derived using rules of  
corresponding pumping infixes are one-side pumping infixes.
pumping grammar.</p>
        <p>
          Hence,  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) = ( 
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
        </p>
        <p>
          ,  
The grammar  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) is a complete CF(¢,$)-grammar  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
= ( 
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
,  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )), where  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) has starting symbol
  ,  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) has starting symbol   , and obviously, (

(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )) = (

(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
) = { c|} ⋅ {, } ∗ ⋅ {$}, and (  ) = ∅.
        </p>
        <p>
          As ( c|, , , , , $)
is a two-side core pumping infix by  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          ), the word  =
c|  $
        </p>
        <p>
          is in ( (
          <xref ref-type="bibr" rid="ref1">1</xref>
          )).
        </p>
        <p>
          (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) that do not contain the nonterminal  , and all
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )) is a PS-free pumping CF( c|,$)-grammar of width 10 that is not a one-side
        </p>
        <p>Actually, we could omit all the rules that include  from the grammar, and we would obtain a PS-free
pumping grammar that generates the same language as the original grammar and is left-side pumping.</p>
        <p>The next corollary is a consequence of Example 1.</p>
        <p>Corollary 4. There is a PS-free pumping complete CF( c|, $)-grammar whose acceptance language is regular
and which is not a one-side pumping CF( c|,$)-grammar.</p>
        <p>The next sample complete CF( c|,$)-grammar generates a regular language, but it is not PS-free
pumping grammar.
language { c|   $ ∣  +  &gt; 0}</p>
        <p>.</p>
        <p>
          Example 2. Let us consider a complete CF( c|,$)-grammar  
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
= ( 
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
,  
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )) generating the acceptance
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) use the following rules:
 
 
→   ∣  
→
        </p>
        <p>
          (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) is not a PS-free pumping CF( c|,$)-grammar, as strings of the form
c|    $, for  &gt; 0 , do not allow pumping reductions in the sufix of  ’s only by  (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ). All derivations of  
that use nonterminal  derive words with more  -s than  -s. A similar assertion holds for  ’s. Hence, all
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
words of the form c|    $ are generated using nonterminal  , which induces a two-side pumping infixes
and the condition (P) of Definition 4 is not satisfied. This means that  
grammar. The grammar is not one-side pumping grammar either, as, e.g., ( c|, , , , , $)
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) is not a PS-free pumping CF(
c|,$)is a two-side
pumping infix by  (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ).
        </p>
        <p>The next corollary follows from the previous example.</p>
        <p>
          Corollary 5. There is a complete CF( c|, $)-grammar  
CF( c|,$) grammar such that both ( 
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )) and ( 
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )) are regular languages.
        </p>
        <p>
          (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) = ( 
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
,  (
          <xref ref-type="bibr" rid="ref2">2</xref>
          )) which is not a PS-free pumping
        </p>
        <p>The previous example motivates further work. We should study more deeply the conditions for the
separation of regular and non-regular complete CF( c|,$)-grammars.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>5. Conclusion and future work</title>
      <p>In this paper, we were looking for possibly maximally relaxed constraints based on pumping reductions
for a complete CF( c|, $)-grammar, which ensure that the grammar generates regular acceptance and
rejection languages. Our approach can be seen as extending the pumping lemma for regular languages.</p>
      <p>We have succeeded in the sense that PS-free pumping CF( c|,$)-grammars generate regular languages
only. However, the conditions for PS-free pumping grammars are suficient but not necessary to limit the
generated languages to the class of regular languages. The obvious open problem is finding conditions
necessary and suficient to limit the power of complete CF( c|,$)-grammar to regular languages.</p>
      <p>The way to achieve that could start with comparing constraints for non-regularity (from [6]) and for
regularity (from this paper) of complete CF( c|, $)-grammars in a uniform way.</p>
      <p>Until now, we have not studied the computability and decidability questions connected with complete
CF( c|, $)-grammars. New insight could be obtained by comparing the diferences between the grammar
complexity of complete CF( c|, $)-grammars and the complexity of their languages.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>Marta Vomlelová thanks for support by the institutional support RVO:m 67985807, and by GAČR project
25-18003S. František Mráz and Martin Plátek thank for support by the institutional support RVO:m
67985807.</p>
    </sec>
    <sec id="sec-6">
      <title>Declaration on generative AI</title>
      <p>The authors have not employed any generative AI tools.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Lopatková</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Plátek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sgall</surname>
          </string-name>
          ,
          <article-title>Towards a formal model for functional generative description: Analysis by reduction and restarting automata</article-title>
          ,
          <source>Prague Bull. Math. Linguistics</source>
          <volume>87</volume>
          (
          <year>2007</year>
          )
          <fpage>7</fpage>
          -
          <lpage>26</lpage>
          . URL: http://ufal.mff.cuni.cz/pbml/87/lopatkova-et-al.
          <source>pdf.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F.</given-names>
            <surname>Otto</surname>
          </string-name>
          , Restarting Automata:
          <article-title>The Standard Type of Restarting Automaton</article-title>
          and Its Variants, Springer Nature Switzerland, Cham,
          <year>2024</year>
          . URL: https://doi.org/10.1007/978-3-
          <fpage>031</fpage>
          -70094-1. doi:
          <volume>10</volume>
          .1007/ 978- 3-
          <fpage>031</fpage>
          - 70094- 1.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>F.</given-names>
            <surname>Mráz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Plátek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pardubská</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Průša</surname>
          </string-name>
          ,
          <article-title>One-side pumping and two-side pumping by complete CF(¢, $)-grammars</article-title>
          , in: B.
          <string-name>
            <surname>Brejová</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Ciencialová</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Holeňa</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Jajcay</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Jajcayová</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Lexa</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Mráz</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Pardubská</surname>
          </string-name>
          , M. Plátek (Eds.),
          <source>Proceedings of the 23rd Conference Information Technologies - Applications and Theory (ITAT</source>
          <year>2023</year>
          ), volume
          <volume>3498</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>110</fpage>
          -
          <lpage>120</lpage>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>3498</volume>
          /paper14.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Otto</surname>
          </string-name>
          ,
          <article-title>Restarting automata</article-title>
          , in: Z.
          <string-name>
            <surname>Ésik</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Martín-Vide</surname>
          </string-name>
          , V. Mitrana (Eds.),
          <source>Recent Advances in Formal Languages and Applications</source>
          , volume
          <volume>25</volume>
          <source>of Studies in Computational Intelligence</source>
          , Springer,
          <year>2006</year>
          , pp.
          <fpage>269</fpage>
          -
          <lpage>303</lpage>
          . URL: https://doi.org/10.1007/978-3-
          <fpage>540</fpage>
          -33461-3_
          <fpage>11</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J. E.</given-names>
            <surname>Hopcroft</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. D.</given-names>
            <surname>Ullman</surname>
          </string-name>
          ,
          <article-title>Formal languages and their relation to automata, Addison-Wesley series in computer science</article-title>
          and information processing,
          <source>Addison-Wesley</source>
          ,
          <year>1969</year>
          . URL: https://www. worldcat.org/oclc/00005012.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Plátek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Mráz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pardubská</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Procházka</surname>
          </string-name>
          ,
          <article-title>Non-regularity of complete CF(¢, $)-grammars</article-title>
          , in: L.
          <string-name>
            <surname>Ciencialová</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Holeňa</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Jajcay</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Jajcayová</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Mráz</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Pardubská</surname>
          </string-name>
          , M. Plátek (Eds.),
          <source>Proceedings of the 24th Conference Information Technologies - Applications and Theory (ITAT</source>
          <year>2024</year>
          ), volume
          <volume>3792</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2024</year>
          , pp.
          <fpage>75</fpage>
          -
          <lpage>80</lpage>
          . URL: https: //ceur-ws.
          <source>org/</source>
          Vol-
          <volume>3792</volume>
          /paper8.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Harrison</surname>
          </string-name>
          , Introduction to Formal Language Theory, Addison-Wesley, USA,
          <year>1978</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Plátek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Mráz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pardubská</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Průša</surname>
          </string-name>
          ,
          <article-title>On pumping RP-automata controlled by complete LRG(¢, $)-grammars</article-title>
          , in: L.
          <string-name>
            <surname>Ciencialová</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Holeňa</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Jajcay</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Jajcayová</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Mráz</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Pardubská</surname>
          </string-name>
          , M. Plátek (Eds.),
          <source>Proceedings of the 22nd Conference Information Technologies - Applications and Theory (ITAT</source>
          <year>2022</year>
          ), volume
          <volume>3226</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>111</fpage>
          -
          <lpage>121</lpage>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>3226</volume>
          /paper13.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>W. J.</given-names>
            <surname>Savitch</surname>
          </string-name>
          ,
          <article-title>Abstract machines</article-title>
          and grammars, Little, Brown and Company,
          <year>1982</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>