<!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>Generalized #-Rewriting Systems of Finite Index</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Information Systems, Faculty of Information Technology, Brno University of Technology</institution>
          ,
          <addr-line>Boˇzetˇechova 1, Brno 612 66</addr-line>
          ,
          <country>Czech Republic, Europe</country>
        </aff>
      </contrib-group>
      <fpage>197</fpage>
      <lpage>204</lpage>
      <abstract>
        <p>This paper discusses a generalized version of #-rewriting systems with context rules. It demonstrates that this context-based generalization does not affect the generative power of #-rewriting systems of finite index. A new characterization of the infinite hierarchy of language families generated by programmed grammars of finite index is obtained.</p>
      </abstract>
      <kwd-group>
        <kwd>#-rewriting systems</kwd>
        <kwd>context-based generalization</kwd>
        <kwd>infinite hierarchy</kwd>
        <kwd>finite index</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        In the formal language theory, there exist language-defining devices having
features of both grammars and automata (see [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], and [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]). Recently, this theory
has introduced another device of this kind—#-rewriting systems (see [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]).
Indeed, on the one hand, like grammars, they are generative devices. On the other
hand, like automata, they use finitely many states. Recall that these systems of
finite index characterize the well-known infinite hierarchy of language families
resulting from programmed grammars of finite index (see Theorems 3.1.2i and
3.1.7 in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]).
      </p>
      <p>The original version of #-rewriting systems is based upon rules of the form
p i# → q γ, where p, q are states, i is a positive integer, and γ is a non-empty
string. By using this rule, the system rewrites ith # with γ and, simultaneously,
changes the current state p to q. In the present paper, we discuss a generalized
version of #-rewriting systems that uses rules of the form p iα#β → q αγβ,
where α and β are strings and the other symbols have the same meaning as
above. This generalized rule is applicable to # if this # occurs in the α-β context;
in other aspects, the application is analogical to the original version.</p>
      <p>
        As its main result, this paper demonstrates that the generalization under
discussion does not affect the generative power of #-rewriting systems of finite
index, so we obtain an alternative characterization of the infinite hierarchy of
language families generated by programmed grammars of finite index (see [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ],
and Theorems 3.1.2i and 3.1.7 in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]).
      </p>
      <p>This result is of some interest when compared, for instance, to a similar
generalization in terms of the classical Chomsky Hierarchy, in which grammars with
the generalized rules are much stronger than ordinary context-free grammars.</p>
      <p>On the other hand, notice that the language family generated by #-rewriting
systems of finite index is incomparable with the family of context-free languages.
More specifically, a context-free Dyck language is not generated by any
#rewriting systems of finite index and vice versa Example 1 shows that the family
of languages generated by #-rewriting systems of finite index contains at least
one non-context-free language.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        This paper assumes that the reader is familiar with the formal language theory
(see [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]). For an alphabet V , V ∗ represents the free monoid generated by V
under the operation of concatenation. The identity of V ∗ is denoted by ε. Set
V + = V ∗ − { }
      </p>
      <p>ε ; algebraically, V + is thus the free semigroup generated by V
under the operation of concatenation. For w ∈ V ∗, |w| denotes the length of
w, and for W ⊆ V , occur(w, W ) denotes the number of occurrences of symbols
from W in w. For every i ≥ 0, suffix (w, i) is w’s suffix of length i if |w| ≥ i, and
suffix (w, i) = w if i ≥ |w| + 1. Let suffixes (w) = {suffix (w, j) | 0 ≤ j ≤ |w|}. For
every i ≥ 0, prefix (w, i) is w’s prefix of length i if |w| ≥ i, and prefix (w, i) = w
if i ≥ |w| + 1. Let prefixes (w) = {prefix (w, j) | 0 ≤ j ≤ |w|}.</p>
      <p>Let Ψ denote the set of all non-negative integers and let m ∈ Ψ . Set I = Ψ −
0 . Let K ⊆ Ψ be a finite set. Define max(K) as the smallest integer k such
{ }
that for all h ∈ K, k ≥ h. Define min(K) as the greatest integer k such that for
all h ∈ K, k ≤ h.</p>
      <p>For a subset S of partially ordered set (Ψ, ≤), a supremum of S is an element
p ∈ Ψ such that x ≤ p for all x ∈ S, and for any q ∈ Ψ such that x ≤ q for all
x ∈ S it holds that p ≤ q.</p>
      <p>The infimum of the subset S is an element p ∈ Ψ such that p ≤ x for all
x ∈ S, and for any q ∈ Ψ such that q ≤ x for all x ∈ S it holds that q ≤ p.</p>
      <p>If the supremum of a set S exists, it is denoted as sup(S); infimum is denoted
by inf(S).</p>
      <p>A context-free grammar is a quadruple, G = (V, T, P, S), where V is a total
alphabet, T ⊆ V is an alphabet of terminals, S ∈ (V − T ) is the start symbol,
and P is a finite set of rules of the form q: A → v, where A ∈ (V −T ), v ∈ V ∗ and
q is a label of this rule. If q: A → v ∈ P , x, y ∈ V ∗, G makes a derivation step
from xAy to xvy according to q: A → v, symbolically written as xAy ⇒ xvy [q]
or, simply, xAy ⇒ xvy. In the standard manner, we define ⇒m, where m ≥ 0,
⇒+, and ⇒∗. To express that G makes x ⇒m y, where x, y ∈ V ∗, by using a
sequence of rules q1, q2, . . . , qm, we symbolically write x ⇒m y [q1q2 . . . qm]. The
language of G, L(G), is defined as L(G) = {w ∈ T ∗ | S ⇒∗ w}. A language, L,
is context-free if and only if L = L(G), where G is a context-free grammar.</p>
      <p>
        A programmed grammar (see page 28 in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]) is a quadruple, G = (V, T, P, S),
where V is a total alphabet, T ⊆ V is an alphabet of terminals, S ∈ (V − T )
is the start symbol, and P is a finite set of rules of the form q: A → v, g(q),
where q: A → v is a context free rule labeled by q and g(q) is a set of rule labels
associated with this rule. After a derivation step, symbolically denoted by ⇒,
according a rule of this form in an ordinary context-free way, in the next step a
rule labeled by a label from g(q) has to be applied. In the standard manner, we
define ⇒m, where m ≥ 0, ⇒+, and ⇒∗. The language of G, L(G), is defined as
L(G) = {w ∈ T ∗ | S ⇒∗ w}.
      </p>
      <p>
        Let G be a grammar, and let T and S be its terminal alphabet and start
symbol, respectively. For a derivation D: S = w1 ⇒ w2 ⇒ . . . ⇒ wr = w ∈
T ∗, r ≥ 1, according to G, we set Ind(D, G) = max({occur(wi, V − T ) | 1 ≤
i ≤ r}), and for w ∈ T ∗, we define Ind(w, G) = min({Ind(D, G) | D is a
derivation for w in G}). The index of grammar G (see page 151 in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]) is defined
as Ind(G) = sup {Ind(w, G) | w ∈ L(G)}. For a language L in the family L(X)
of languages generated by grammars of some type X, we define IndX (L) =
inf {Ind(G) | L(G) = L, G is of type X}. For a family L(X), we set Ln(X) =
{L | L ∈ L(X) and IndX (L) ≤ n}, n ≥ 1.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Definitions</title>
      <p>A generalized #-rewriting system (G#RS) is a quadruple H = (Q, Σ, s, R),
where Q is a finite set of states, Σ is an alphabet containing # called a bounder,
Q ∩ Σ = ∅, s ∈ Q is a start state and R ⊆ Q × I × Σ+ × Q × Σ∗ is a finite
relation whose members are called rules. A rule is usually written as r: p iα#β →
q αγβ ∈ R hereafter, where r is its unique label, i ∈ I, q, p ∈ Q, and α, β, γ ∈ Σ∗.</p>
      <p>A configuration of H is a pair from Q × Σ∗. Let χ denote the set of all
configurations of H. Let puα#βv, quαγβv ∈ χ be two configurations, p, q ∈ Q,
u, v, α, β, γ ∈ Σ∗, i ∈ I and occur(uα, #) = i − 1. Then, H makes a
computational step from puα#βv to quαγβv by using r: p iα#β → q αγβ, symbolically
written puα#βv i⇒ quαγβv [r] in H or puα#βv ⇒ quαγβv [r] in H when
position is not relevant or simply puα#βv ⇒ quαγβv when the applied rule is
immaterial.</p>
      <p>In the standard manner, we extend ⇒ to ⇒m and j⇒ to j⇒m, for m ≥ 0;
then, based on ⇒m and j⇒m, we define ⇒+, ⇒∗, j⇒+, and j⇒∗ in the standard
way.</p>
      <p>The language generated by G#RS H, L(H), is defined as</p>
      <p>L(H) = {w | s# ⇒∗ qw, q ∈ Q, w ∈ (Σ − {#})∗}.</p>
      <p>As special case of G#RS, if every r: p iα#β → q αγβ ∈ R satisfies that
α = β = ε then H is called context-free #-rewriting system (CF#RS).</p>
      <p>Let k be a positive integer. H is of index k if for every configuration x ∈ χ,
s# ⇒∗ qy = x implies occur(y, #) ≤ k. Notice that H of index k cannot derive
a string containing more than k #s.</p>
      <p>For G#RS H, maxL(H) and maxR(H) denote the maximum length of
lefthand and right-hand side of rules, respectively. Precisely, let H = (Q, Σ, s, R)
be a G#RS, maxL(H) = max({|α| | p iα
max({|β| | p iα → q β ∈ R}).
→ q β ∈ R}) and maxR(H) =</p>
      <p>Let k be a positive integer. Lk(G#RS), Lk(CF #RS), and Lk(P, CF ) denote
the families of languages generated by generalized #-rewriting systems of index
k, context-free #-rewriting systems of index k, and derived by programmed
grammars of index k, respectively. L(G#RS) and L(CF #RS) denote the family
of languages generated by generalized #-rewriting systems and context-free
#rewriting systems, respectively.</p>
      <p>Example 1. CF#RS H1 = ({s, p, q, f }, {a, b, c, #}, s, R1), where R1 contains
1: s 1# → p ##
2: p 1# → q a#b
3: q 2# → p c#
4: p 1# → f ab
5: f 1# → f c
1: s 1# → s a##
2: s 2a## → p a#b#c
3: p 1a# → q aa#
4: q 2b#c → p bb#cc
5: p 1a# → p a
6: p 1b#c → p bc</p>
      <p>
        For instance, H1 computes aabbcc as s# ⇒ p## [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] ⇒ qa#b# [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] ⇒
pa#bc# [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] ⇒ f aabbc# [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] ⇒ f aabbcc [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>Example 2. G#RS H2 = ({s, p, q}, {a, b, c, #}, s, R2), where R2 contains</p>
      <p>
        For instance, H2 computes aabbcc as s# ⇒ sa## [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] ⇒ pa#b#c [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] ⇒
qaa#b#c [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] ⇒ paa#bb#cc [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] ⇒ paabb#cc [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] ⇒ paabbcc [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>Obviously, H1 and H2 are of index 2. Both systems describe the same
language L(H1) = L(H2) = {anbncn | n ≥ 1} which belongs into L(CF #RS) −
L(CF ).
4</p>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>The first part of the section establishes an infinite hierarchy of language
families resulting from the generalized #-rewriting systems defined in the previous
section.</p>
      <p>Throughout this section, we only describe the construction part of the proof,
leaving the complete version of this proof to the reader.</p>
      <p>Lemma 1. For every k ≥ 1, Lk(CF #RS) = Lk(G#RS).
Proof.</p>
      <p>We only need to prove that Lk(G#RS) ⊆ Lk(CF #RS).</p>
      <p>Construction. Let k ≥ 1 be a positive integer. Let H = (Q, T ∪ {#}, s, R) be a
generalized #-rewriting system of index k, where Σ = T ∪ {#}, # ∈/ T . Let μ =
max({maxL(H), maxR(H)}) and let $ be a new symbol, $ ∈/ Q∪Σ. We construct
the context-free #-rewriting system of index k, H0 = (Q0, T ∪ {#}, s0, R0), where
components Q0, s0, and R0 are constructed as follows:
1. s0 := hs, #i;
2. Q0 := {hp, y0#y1# . . . yh−1#yhi
| p ∈ Q, 1 ≤ h ≤ k,
yj = yj0∇jyj00, yj0, yj00 ∈ T ∗, ∇j ∈ {ε, $},
|yj0| ≤ 2μ, |yj00| ≤ 2μ, 0 ≤ j ≤ h};
4. For every rule r: p iα#β → q αγβ ∈ R, add the following set to R0:
{hp, η0α#βη00i i# → hq, η0αγβη00i γ
| occur(η0α, #) = i − 1,</p>
      <p>hp, η0α#βη00i, hq, η0αγβη00i ∈ Q0 }.</p>
      <p>Basic Idea. By several computational steps, H0 simulates a single step in H.
Inside of every state of the form hp, ηi occurring in a configuration of H0, it is
recorded
(1) p—the current state of H;
(2) η—the context string of H’s current configuration that represents context
of each # of length at most μ on both sides of #.</p>
      <p>The simulation is done in two steps by rules introduced in the third and forth
step of the above construction as follows.
(a) Each substring of terminals between two #s can be non-deterministically
shortened by the rules constructed in 3 and the position of the shortening is
marked by $ to reflect this in the subsequent context checks. This shortening
is necessary only to make enough space in the context string for the rule
application in the next step.
(b) By each of H’s generalized rules is rewritten only one # with respect to its
surrounding left and right context. In this step, the rules of the
contextfree form constructed in 4 are applied and, thereby, simulate H’s behavior
thanks to context checks, which are managed by the second component of
states in H0.</p>
      <p>The simulation is completed when the string of terminals is obtained.</p>
      <p>Let h be a homomorphism from a configuration of context-free #-rewriting
system to corresponding configuration of generalized #-rewriting system defined
as h(hp, ηiz) = pz.
for m ≥ 0.
s0 = hs, #i.</p>
      <p>Claim 1. If s# ⇒
m pz0#z1# . . . #zh in H, then hs, #i# ⇒
r hp, x0#x1# . . .
#xhi z0#z1 . . . #zh [r10r20 . . . rr0] in H0 where xi = x0i∇ix0i0, ∇i ∈ {ε, $}, x0i ∈
prefixes (zi), x0i0 ∈ suffixes (zi), |xi| ≤ 4μ + 1, xi, zi ∈ T ∗, 0 ≤ i ≤ h, 1 ≤ h ≤ k,
Proof. This claim is established by induction on m.</p>
      <p>Basis: Let m = 0. For s# ⇒0 s# in H there exists s0# ⇒0 s0# in H0, where
Induction Hypothesis: Suppose that Claim 1 holds for all computational steps of
length m or less for some m ≥ 0.
as s#</p>
      <p>⇒
Induction Step: Consider s# ⇒
m+1 qz0, where z0 ∈ Σ∗. Express s# ⇒
m+1 qz0
m pz [r1r2 . . . rm], where z = z0#z1# . . . α#β . . . #zh, # between α
and β is the ith bounder and r1, . . . , rm, rm+1 ∈ lab(R), and pz ⇒ qz0 [rm+1].
For rm+1: p iα#β → q αγβ is z0 of the form: z0 = z0#z1# . . . αγβ . . . #zh, for
z0, . . . , zh ∈ T ∗.</p>
      <p>Based on the induction hypothesis, there exists hs, #i# ⇒
r hp, x0#x1# . . .
#zh [rr0+1], where ρ is a sequence of rules constructed in step 3, |ρ| ≥ 0, r ≥ 1,
rj0 ∈ lab(R0), 1 ≤ j ≤ r + 1, xj, yj ∈ T ∗{ε, $}T ∗, zj ∈ T ∗, 0
occur(y0#y1# . . . α, #) = occur(z0#z1# . . . α, #) = i−1, α = x¯i−α¯#xi−α¯+1 . . .
≤ j ≤ h,
#yhi i#</p>
      <p>→ hq, y0#y1# . . . αγβ . . . #xhi γ ∈ R0 is introduced by step 4.
xi−2#xi−1, α¯ = occur(α, #) + 1, x¯i−α¯ ∈ suffixes (xi−α¯), β = xi#xi+1 . . . xi+β¯−1
#x¯i+β¯, β¯ = occur(β, #), x¯i+β¯ ∈ prefixes (xi+β¯), and rr0+1: hp, y0#y1# . . . α#β . . .</p>
      <p>Therefore, h(hp, y0#y1# . . . α#β . . . #yhi z0# . . . α#β . . . zh−1#zh) = pz and
h(hq, y0#y1# . . . αγβ . . . #yhi z0# . . . αγβ . . . zh−1#zh) = qz0, so the claim holds.
w ∈ T ∗.</p>
      <p>Claim 2. If s# ⇒</p>
      <p>z pw in H, then hs, #i# ⇒∗ hp, ηiw in H for some z ≥ 0,
hp, x0iz0 and so z0 = w.</p>
      <p>Proof. Consider Claim 1 for h = 0. At this point, if s# ⇒z pz0, then hs, #i# ⇒∗
Theorem 1. For every k ≥ 1, Lk(G#RS) ⊂ Lk+1(G#RS).</p>
      <p>Proof.</p>
      <p>
        Theorems 3.1.2i and 3.1.7 in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]). Thus, Theorem 1 holds.
      </p>
      <p>
        Lk(G#RS) = Lk(CF #RS) follows from Lemma 1. Recall that Lk(P, CF ) =
Lk(CF #RS) (see [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]) and Lk(P, CF ) ⊂ Lk+1(P, CF ) for every k ≥ 1 (see
tu
tu
      </p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>The present paper has discussed generalized language-defining device that
represents a combination of both automata and grammars. This device characterizes
well-known infinite hierarchy of formal language families in a very natural way.
Consequently, it is obviously closely related to some classical results about formal
languages, on which it sheds light in an alternative way. Therefore, this paper
suggests its further investigation in the future. Specifically, this investigation
should pay a special attention to the following open problem areas:
Unrestricted Rules. Observe that Theorem 1 does not hold if the rules are of
the form p iα → q β, where p, q ∈ Q, i ∈ I, α, β ∈ Σ∗, occur(α, #) ≥ 1 and
computation step is defined as follows:</p>
      <p>Let puα0#α00v, quβv be two configurations, p, q ∈ Q, u, v ∈ Σ∗, i ∈ I and
occur(uα0, #) = i − 1. Then, #-rewriting system with unrestricted rules makes
a computational step from puα0#α00v to quβv by using the unrestricted rule
r: p iα0#α00 → q β.</p>
      <p>Let us demonstrate this observation on the following example.</p>
      <p>
        Example 3. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], Theorem 3.1.7 proves that Lk ∈ Lk(CF #RS) and Lk ∈/
Lk−1(CF #RS), where Lk = {b(aib)2k | i ≥ 1}.
      </p>
      <p>
        Consider G#RS with unrestricted rules H = ({s, s0, p, q, r, r0, f }, {a, b, #}, s,
R), where R contains
1: s 1# → s0 ##a##
2: s0 2# → s0 #a
3: s0 1# → p #
4: p 2#a → q a#
5: q 3# → p #a
6: p 2## → r ##
7: r 1# → r0 b
8: r0 3# → p ##
9: p 1## → f b
10: f 1## → f b
For instance, H computes baabaabaab = b(a2b)3 as
s# ⇒ s0##a## [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] ⇒ s0##aa## [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] ⇒ p##aa## [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
⇒ q#a#a## [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] ⇒ p#a#a#a#[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
⇒ q#aa##a# [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] ⇒ p#aa##aa# [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
⇒ r#aa##aa# [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] ⇒ r0baa##aa# [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] ⇒ pbaa##aa## [8]
⇒ qbaa#a#a## [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] ⇒ pbaa#a#a#a# [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
⇒ qbaa#aa##a# [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] ⇒ pbaa#aa##aa# [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
⇒ rbaa#aa##aa# [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] ⇒ r0baabaa##aa# [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] ⇒ pbaabaa##aa## [8]
⇒ f baabaabaa## [9] ⇒ f baabaabaab [10].
      </p>
      <p>It is obvious that H is of index 4 and L(H) = {b(aib)j | i, j ≥ 1} ∈ L4(G#RS
with unrestricted rules). Thus, this example shows that for every k ≥ 1, there is
a language L such that L ∈/ Lk(CF #RS) and L is generated by a generalized
#-rewriting system with unrestricted rules.</p>
      <p>We believe that there is no infinite hierarchy based on finite index in case of
generalized #-rewriting systems with unrestricted rules. More specifically, every
generalized #-rewriting system with unrestricted rules can be transformed into
equivalent generalized #-rewriting system with unrestricted rules of index 1.
However, we have not proved this conjecture so far.</p>
      <p>Unlimited Index. Consider #-rewriting systems that are of unlimited index.
What is the language family defined by them. What is the relation between
L(CF #RS) and L(G#RS)?
Determinism. This paper has discussed a general version of #-rewriting systems,
which work non-deterministically. Of course, these systems can be restricted
so they work deterministically. What is the language family defined by these
deterministic systems?</p>
      <p>Formally, a generalized #-rewriting system M is deterministic if for every
left-hand side of M ’s rule r, lhs(r), holds that card({lhs(r) | r ∈ R}) ≤ 1.
Acknowledgement. This work was supported by the Czech Science Foundation
201/07/0005 grant.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>H.</given-names>
            <surname>Borodihn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Fernau</surname>
          </string-name>
          ,
          <article-title>Accepting grammars and systems: an overview</article-title>
          .
          <source>In: Proc. of Development in Language Theory Conf., Magdeburg</source>
          ,
          <year>1995</year>
          , pp.
          <fpage>199</fpage>
          -
          <lpage>208</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>J.</given-names>
            <surname>Dassow</surname>
          </string-name>
          , G. P˘aun,
          <source>Regulated Rewriting in Formal Language Theory</source>
          . Springer, New York,
          <year>1989</year>
          , 308 p.,
          <source>ISBN 0-38751-414-7.</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>T.</given-names>
            <surname>Kasai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A Hierarchy</given-names>
            <surname>Between</surname>
          </string-name>
          <article-title>Context-Free and Context-Sensitive Languages</article-title>
          .
          <source>In: Journal of Computer and System Sciences 4</source>
          ,
          <year>1970</year>
          , pp.
          <fpage>492</fpage>
          -
          <lpage>508</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Z.</given-names>
            <surname>Kˇrivka</surname>
          </string-name>
          , A. Meduna,
          <string-name>
            <given-names>R.</given-names>
            <surname>Sch</surname>
          </string-name>
          <article-title>¨onecker, Generation of Languages by Rewriting Systems that Resemble Automata</article-title>
          .
          <source>In: International Journal of Foundations of Computer</source>
          Science Vol.
          <volume>17</volume>
          , No.
          <volume>5</volume>
          ,
          <issue>2006</issue>
          , pp.
          <fpage>1223</fpage>
          -
          <lpage>1229</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>A.</given-names>
            <surname>Meduna</surname>
          </string-name>
          ,
          <source>Automata and Languages: Theory and Applications</source>
          . Springer, London,
          <year>2000</year>
          , 916 p.,
          <source>ISBN 1-85233-074-0.</source>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>E.</given-names>
            <surname>Moriya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Hofbauer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Huber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Otto</surname>
          </string-name>
          ,
          <article-title>On state-alternating context-free grammars</article-title>
          .
          <source>In: Theoretical Computer Science</source>
          <volume>337</volume>
          ,
          <year>2005</year>
          , p.
          <fpage>183</fpage>
          -
          <lpage>216</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>G.</given-names>
            <surname>Rozendberg</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . Salomaa (eds.),
          <source>Handbook of Formal Languages: Word</source>
          , Language, Grammar, Volume
          <volume>1</volume>
          . Springer, Berlin,
          <year>1997</year>
          , 873 p.,
          <source>ISBN 3-540-60420-0.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>