Go home now Header Background Image
Search
Subscription Submission Procedure Login
User: anonymous
 
 
 
 
 
Volume 1 / Issue 2 / Abstract

available in:   PDF (220 kB) PS (84 kB)
 
get:  
Similar Docs BibTeX   Write a comment
  
get:  
Links into Future

A Variant of Team Cooperation in Grammar Systems

Rudolf Freund
Technical University Wien, Institute for Computer Languages
Resselgasse 3, 1040 Wien, Austria
freund@csdec1.tuwien.ac.at

Gheorghe Paun
Institute of Mathematics of the Romanian Academy of Sciences
PO Box 1-764, 70700 Bucuresti, Romania
gpaun@imar.ro
(Research carried out during the author's visit at the Technical University Wien)

Abstract: We prove that grammar systems with (prescribed or free) teams (of constant size at least two or arbitrary size) working as long as they can do, characterize the family of languages generated by (context-free) matrix grammars with appearance checking; in this way, the results in [Paun, Rozenberg 1994] are completed and improved.

Keywords: Formal languages, grammar systems, teams

Categories: F.4.2, F.4.3

1 Introduction

A cooperating grammar system, as introduced in [Csuhaj-Varjù, Dassow 1990] and [Meersman, Rozenberg 1978], consists of several (usually context-free) grammars, each of them working, by turns, on a common sentential form. A basic protocol of cooperation is the maximal competence strategy: a component must rewrite the current sentential form as long as it can do this (and hence never can finish, if it can work forever). In [Csuhaj-Varjù, Dassow 1990] it is proved that in this way exactly the family of -languages can be obtained. In [Meersman, Rozenberg 1978] a variant of this stop condition is considered: a component must work until it introduces a non-terminal which cannot be rewritten by the same component.

In [Kari, Mateescu, Paun, Salomaa 1994], a way to increase the power of cooperating grammar systems has been proposed: the cooperation of the components of a grammar system is increased by allowing (or forcing) some of the components of the system to work simultaneously in teams on the current sentential form in parallel, i.e. in each step, every member of the currently active team has to apply

Page 105

a rule. In [Kari, Mateescu, Paun, Salomaa 1994], the condition for a team to stop its work has been the following one: no rule of any member of the team can be used any more. Even with such a strong stop condition, non- -languages can be generated as it is proved in [Kari, Mateescu, Paun, Salomaa 1994] (and moreover, teams of size two are sufficient, as it is shown in [Csuhaj-Varjù, Paun 1993]).

Another stop condition has been considered in [Paun, Rozenberg 1994]: a team stops working if and only if at least one of its members cannot apply one of its rules any more. For this stop condition as well as for that introduced in [Kari, Mateescu, Paun, Salomaa 1994], in [Paun, Rozenberg 1994] it is proved that both using prescribed teams (all of them being of given size or of free size) and using free teams (of given size at least two or of arbitrary size at least two) exactly the family of languages generated by matrix (or programmed) grammars with appearance checking is obtained (thus strenghtening the results proved in [Csuhaj-Varjù, Paun 1993] and [Kari, Mateescu, Paun, Salomaa 1994]).

The stop conditions considered in [Paun, Rozenberg 1994] are not the natural extension of the maximal competence strategy from individual components of grammar systems to teams of components: the simplest way for such an extension is to allow a team to become inactive when it is no longer able to rewrite the current sentential form as a team, irrespective whether or not some or even all rules of the components can be applied further. For instance, if the current string contains only two occurences of the non-terminal A and we have a team consisting of three components, each consisting of rules of the form only, then none of the conditions investigated in [Csuhaj-Varjù, Paun 1993], [Kari, Mateescu, Paun, Salomaa 1994], and [Paun, Rozenberg 1994] is fulfilled, although the team cannot be used any more. Yet the derivation is correctly terminated if we use the natural extension of the maximal competence strategy mentioned above, but not for the variants considered in [Csuhaj-Varjù, Paun 1993], [Kari, Mateescu, Paun, Salomaa 1994], and [Paun, Rozenberg 1994] (the derivation is simply unacceptable for those variants, although it looks quite rationally considered from the point of view of the team).

There is also another reason for considering the new stop condition, namely a mathematical one: grouping sets of rules in teams may remind us of the mode of working of matrix grammars; checking whether rules in a component of a team can be applied may remind us of the appearance checking in matrix grammars. All together, these aspects make the following result somehow non-surprising (although the proof given in [Paun, Rozenberg 1994] is, by no means, obvious): grammar systems with teams (prescribed or free and of given size at least two or of free size at least two) working with the stop conditions considered in [Paun, Rozenberg 1994] characterize the family of languages generated by (context-free) matrix grammars with appearance checking. The new mode of stopping the work of a team is not related to the appearance checking manner of work in such an obvious manner, yet again all languages generated by matrix grammars with appearance checking can be obtained by grammar systems with free teams of given size at least two, but also with free teams of arbitrary size, which is an improvement of the results obtained in [Paun, Rozenberg 1994].

The study of teams, in general the study of classes of grammar systems in which both the sequential and the parallel modes of working are present, requests and deserves further efforts (see also [Csuhaj-Varjù 1994] for motivations of such investigations).

Page 106

2 Preliminary definitions

We specify only a few notions and notations here; the reader is referred to [Salomaa 1973] for other elements of formal language theory we shall use and to [Dassow, Paun 1989] for the area of regulated rewriting.

For an alphabet , by we denote the free monoid generated by under the operation of concatenation; the empty string is denoted by , and is denoted by . The length of is denoted by , and for any denotes the number of occurrences of symbols in .

A matrix grammar (with appearance checking) is a construct

where and are disjoint alphabets ( is the nonterminal alphabet, is the terminal alphabet), is the axiom, and is a finite set of sequences (called matrices) of the form being a context-free rule over with and and is a subset of the rules occurring in the matrices of .

For we write if there are strings in and a matrix in such that and for each with either and or , the rule is not applicable to , and appears in . (In words, all the rules in a matrix are applied, one after the other in the given sequence, possibly skipping the rules appearing in , but only if they cannot rewrite the current string.) If , then the grammar is said to be without appearance checking (and the component can be omitted).

By we denote the families of languages generated by matrix grammars with arbitrary context-free respectively -free context-free rules. The following relations are known ([Dassow, Paun 1989]):

where and denote the families of context-sensitive respectively recursively enumerable languages and denotes the family of -free -languages (i.e. languages generated by extended Lindenmayer systems with tables).

A cooperating distributed grammar system (CD grammar system for short) is a construct

where and are disjoint alphabets ( is the nonterminal alphabet, is the terminal alphabet), is the axiom, and are finite sets of context-free rules over and are called the components of the system . For each component in the CD grammar system we denote

Given and we write if can be derived from by using a rule in in the usual sense: and . By and we denote the transitive respectively the reflexive transitive closure of .

Page 107

An important derivation relation for CD grammar systems is the maximal derivation mode (see [Csuhaj-Varjù, Dassow 1990]):

(such a derivation is maximal in the component i.e. no further step can be done). The language generated by the CD grammar system in the maximal derivation mode is defined by

The family of languages generated in this mode by CD grammar systems with -free rules is denoted by . From [Csuhaj-Varjù, Dassow 1990] we know that .

3 Teams in cooperating grammar systems

In [Kari, Mateescu, Paun, Salomaa 1994] the following extension of CD grammar systems is introduced:

A CD grammar system with (prescribed) teams (of variable size) is a construct

where is a usual CD grammar system and the sets are called teams and are used in derivations as follows: For and we write

(the team is a set, hence no ordering of the components is assumed).

In [Kari, Mateescu, Paun, Salomaa 1994] the following rule of finishing the work of a team has been considered:

(No rule of any component of the team can be applied to .)

Another variant is proposed in [Paun, Rozenberg 1994]:

Page 108

(There is a component of the team that cannot rewrite any symbol of the current string.)

The language generated by in one of these modes is denoted by and respectively.

If all teams in have the same size, then we say that is a CD grammar system with teams of constant size. If all possible teams are considered, we say that has free teams; the teams then need not be specified. If we allow free teams of only one size, we speak of CD systems with free teams of constant size. Obviously, if we only have teams of size then we cannot rewrite an axiom consisting of one symbol only, hence we must start from a string or a set of strings as axioms. Therefore, we consider systems of the form

where is a finite set; the terminal strings of are directly added to the language generated by . The others are used as starting points for derivations. The languages generated by such a system when using free teams of given size are denoted by and , respectively; when free teams of arbitrary size are allowed, we write respectively and if these free teams must be of size at least two, we write respectively .

By we denote the family of languages generated in the mode by CD grammar systems with prescribed teams of constant size and -free context-free rules; if the size is not constant we replace by * ; when the size must be at least 2 (no team consisting of only one component is allowed), then we write . If the teams are not prescribed, we remove the letter , thus obtaining the families , and , respectively.

As we are interested in the relations with the family , too, we also consider CD grammar systems with prescribed (arbitrary) teams of constant size (arbitrary size, of size at least two) and arbitrary context-free rules; the corresponding families of languages generated in the mode by such CD grammar systems are denoted by and respectively.

In [Paun, Rozenberg 1994] it is proved that for all and

The relations and as defined in [Csuhaj-Varjù, Paun 1993], [Kari, Mateescu, Paun, Salomaa 1994], and [Paun, Rozenberg 1994] are not the direct extensions of the relation from components to teams. Such an extension looks as follows (where are as above):

The language generated by the CD grammar system in this mode is denoted by the languages generated by such a system in the mode when using

Page 109

free teams of given size free teams of arbitrary size, free teams of size at least two are denoted by and , respectively.

Obviously, if then too, but, as we have pointed out in the introduction, the converse is not true; we can have without having for . Consequently, without necessarily having an equality; the same holds true for the languages and . This means that we have no relations directly following from definitions, between families considered above and the corresponding families However, in the following section we shall prove that again a characterization of the families and is obtained, hence the new termination mode of team work is equally powerful as those considered in [Csuhaj-Varjù, Paun 1993], [Kari, Mateescu, Paun, Salomaa 1994], and [Paun, Rozenberg 1994].

In order to elucidate some of the specific features of the derivation modes we consider some examples. The first example shows that the inclusions, can be proper:

Example 1. Let

be a CD grammar system with the sets of rules

Obviously, because the only way to get rid of the symbol is to apply the rule from but because of the rule the derivation can never terminate.

If we consider together with the prescribed teams (of size 2 )

i.e. if we take the CD grammar system with prescribed teams

then we obtain

because yet still

for because after one derivation step with i.e. cannot be applied as a team any more to although the rule which is in both sets of rules of the team is applicable to . This means that

Page 110

the derivation is blocked, although the stop condition for the derivation mode is not fulfilled!

As only teams of size at most two can be applied to a string of length two, we also obtain

Example 2. Let

be a CD grammar system with the sets of rules

If we consider together with the prescribed teams (of size 2)

i.e. if we take the CD grammar system with prescribed teams

then we obtain

for . Although this non-context-free language is obtained in each derivation mode the intermediate sentential forms (after an application of ) are not the same:

Whereas for the intermediate sentential forms are and with in the derivation mode we also obtain . These strings are somehow hidden in the other derivation modes and because they can be derived from a sentential form or with a suitable by using the derivation relation of the team but then further derivations with the team are blocked, although the stop conditions of the derivation modes respectively are not fulfilled. This additional control on the possible sentential forms is not present with the derivation mode where a derivation using a team stops if and only if the team cannot be applied as a team any more, which does not say anything about the applicability of the rules in the components of the team on the current sentential form. Nethertheless the same generative power as with the derivation modes and can be obtained by teams using the derivation mode too, which will be shown in the succeeding section.

Page 111

4 The power of the derivation mode

In this section we shall prove that CD grammar systems with (prescribed or free) teams (of given size at least two respectively of arbitrary size) together with the derivation mode again yield characterizations of the families respectively .

The following relations are obvious:

Lemma 1. For all we have

Lemma 2.

Proof. Let be a CD grammar system with prescribed teams and -free rules. We construct a matrix grammar

with -free rules as follows. For a team

consider all sequences of rules of the form

such that from each set exactly one rule is present in . Let

be all such sequences associated with the team .

Then

and

is obtained by replacing each nonterminal in by its primed version,

Page 112

The set contains all rules of the form in the previous matrices.

The derivation starts form In general, from a sentential form in a non-deterministic way we can pass to in order to start the simulation of the team . Using a matrix

corresponds to a derivation step in (the primed symbols in ensure the parallel mode of using the rules The primed symbols can be replaced freely by their originals using the matrices The symbol can be changed only by passing through which checks the correct termination of the derivation in in the sense of the mode of derivation: we can pass from to if and only if the corresponding sequence of rules cannot be used (otherwise a symbol will be introduced, because for each sequence

at least one is ). After obtaining a sequence we introduce the symbol which is replaced by only after having replaced all primed symbols with by their original . Then we can pass to checking the sequence If none of the sequences can be used, we can introduce the symbol and then in this way the derivation in is successfully simulated, and we can pass, in a non-deterministic way, to another team. When the matrix is used, the string must not contain any further non-terminal, because no matrix can be used any more. In conclusion, As is closed under right derivative, it follows that .

A similar construction like that elaborated above shows that for a CD grammar system with prescribed teams and arbitrary context-free rules we can construct a matrix grammar

with arbitrary context-free rules such that ; observe that we do not need the additional terminal symbol because in the case of arbitrary context-free rules we can simply replace the matrix by the matrix . As an immediate consequence, we obtain .

Page 113

Lemma 3.

Proof. Let be a matrix language in . We can write

where denotes the right derivative of with respect to the string .

The family is closed under right derivative, hence For each let be a matrix grammar for and moreover, we suppose that is in the accurrate normal form [Dassow, Paun 1989]:

  1. where are pairwise disjoint.

  2. The matrices in are of one of the following forms:

  3. The set consists of all rules appearing in matrices of .

Without loss of generality we may also assume that and in matrices of the forms (if we have a matrix with or we can replace it by the sequence of matrices

where as well as and with are new symbols to be added to and respectively); in a similar way, we can assume that in a matrix of form (a matrix can be replaced by the matrices and where is a new symbol to be added to ).

We take such a matrix grammar for every language without loss of generality, we may assume that the sets are pairwise disjoint.

Assume all matrices of the forms in the sets to be labelled in a one-to-one manner such that the labels used for are different from those used for and let be the set of all the corresponding labels as well as

Now consider the following sets of symbols

Page 114

We construct a CD grammar system with as the set of non-terminal symbols, as the set of terminal symbols, the set of axioms

and the components for constructed as follows:

  • A. If is a matrix of type with and then we take the components

  • B.If is a matrix of type with then we take the components

  • C.If is a matrix of type (hence with ), with ,then we take the components

Let us give some remarks on these constructions:

  • - The intended legal teams of two components are and for arbitrary labels (which would already solve the problem for prescribed teams of size two); all other pairs of components cannot work in the mode without introducing the trap-symbol #.
  • - The symbol # is a trap-symbol and every component contains rules for ´almost all´ symbols the termination of a derivation sequence with a legal team is only guaranteed by the "exceptions" in the components of type .

    Page 115

  • - In order to assure the correct pairing of components, we use variants of the control symbol as well as subscripts added to symbols in (leading to symbols in and to symbols in (leading to symbols in ).

We now show that with free teams of constant size two in the same way as with the prescribed teams of size two described above generates :

Claim 1.

As the ´short strings´ in are directly introduced in it is enough to prove that every derivation step in a grammar can be simulated by the teams of More exactly, we shall prove that if is a derivation step in ,where is not a terminal string, then in a derivation sequence using teams of size 2 from ,and that if is a terminal string, then in a derivation sequence using teams of size 2 from .

If

by a matrix of type then

and no more step is possible with this team ,hence

Now, also in two steps, we obtain

In a similar way, if for a terminal string

by a matrix of type , then we obtain

and

i.e.

If

by a matrix of type , then

Page 116

Observe that from no further derivation step with the team is possible if and only if . In conclusion, every derivation in a grammar can be simulated in by applying a suitable sequence of appropriate teams of pairs of components, which completes the proof of claim 1.

Using legal teams, i.e. the teams and we can only obtain the following sentential forms not containing the trap symbol # (we call them legal configurations):

Claim 2. Starting from an arbitrary legal configuration, every illegal team will introduce the symbol #.

First of all we have to notice that in the following we can restrict our attention to components associated with some matrix from ,because components associated with some matrix from with already at the first application of a rule force us to introduce the trap symbol #. For the same reasons, we need not take into account teams consisting of two components of type Q: they cannot work together without introducing #, because they can only replace symbols in by symbols different from #.

For the rest of possible illegal teams of size two we consider the following three cases according to the three types of legal configurations:

Case 1: Configuration ,i.e. of type 1. Each component being of one of the types and will introduce # at the first application of a rule; therefore it only remains to consider pairs of components of the types and , for different labels from associated with matrices from ( the label must be different, because otherwise either the team were legal or else the teams would not be of size two). Hence only the following teams might be possible:

  1. , where : The intermediate strings coming up during the application of such a team will contain at least one symbol or as well as at least one symbol or for the two different labels and , hence before the derivation with the team can terminate, at least one of the rules of the form (i. e. respectively or )is forced to be applied in at least one of the components.

  2. , where : While the component works on symbols from , the other component intoduces at least one symbol . As contains all rules for (and no other rules for ) and contains all rules for (and no other rules for ), the derivation with the team cannot terminate without a step introducing the symbol # by at least one of the components.

Page 117

In all cases, further derivations are blocked (they never can lead to terminal strings) because the trap-symbol # has been forced to be introduced.

Case 2: Configuration The only components that may not be forced to introduce # by the first rule they can apply are for any arbitrary as well as and Hence only the following teams might be possible:

  1. where (otherwise the team would not be of size two): will introduce some and will introduce some ,therefore further derivations are blocked by introducing the trap symbol # with

  2. (in two or three steps) can replace and in the meantime must introduce some

    1. If then from in two steps (if a second step in is possible without introducing #) we obtain , where

      • i. If ,then in the third step at least now must use a rule introducing the trap symbol #, e.g. whereas if not also being forced to use such a trap rule, may be able to use once again or if it just happens that is the right symbol from that can be handled by .

      • ii. If , then or from can be applied in the third step, but even if can replace a third occurrence of , at least in the fourth step now is forced to introduce the trap symbol #, e.g. by .

    2. If i.e. if we use the team , then again we have to distinguish between two subcases:

      • i. If , then can replace all occurences of by , while can replace . As we have assumed , no other rule not introducing # than can be used in . Moreover we also have assumed the rule to be non-recursive i.e. ,hence after a finite number of derivation steps with the team the occurrences of will be exhausted, so finally a rule introducing the trap symbol # must be used by (one possible candidate is , while can use (if this rule has not yet been used before).

      • ii. If , we face a similar situation as above except that from two steps are needed in in order to obtain from .

  3. : While is used in must introduce some ; if no more non-terminal symbol is available in the current sentential form, when uses its rule for replacing will have to use a trap rule like can introduce one more , then finally a trap rule like must be applied by at least one of the components and before the derivation can terminate.

Case 3: Configuration

Page 118

The only components that do not introduce by the first rule they can apply are for any arbitrary (and therefore ) as well as and Hence only the following teams might be possible:

  1. where (otherwise the team would not be of size two): will introduce some and will introduce some therefore further derivations are blocked by introducing the trap symbol with
  2. can only replace by in the meantime must introduce some In the second derivation step, in the trap rule can be used, whereas from at least can be applied.
  3. While is used in must introduce some but then has to use a trap rule like while can use once more or at least

In conclusion, only the legal teams can be used without introducing the trap symbol ; they simulate matrices in the sets hence also the inclusion is true, which completes the proof of

Now let be a matrix language in . As -rules are allowed in this case, we need not split up the language in languages hence, for a matrix grammar with we can directly construct a CD grammar system such that Again the matrix grammar can be assumed to be in the accurrate normal form [Dassow, Paun 1989] like in the previous case:

  1. where are pairwise disjoint.
  2. The matrices in are of one of the following forms:

  3. The set consists of all rules appearing in matrices of

In contrast to the -free case, matrices of the form can also be of the form

and matrices of the form e can also be of the forms

Assume all matrices of the forms in the sets to be labelled in a one-to-one manner and let be the sets of all the corresponding labels as well as

Page 119

Now consider the following sets of symbols

We construct a CD grammar system with as the set of non-terminal symbols, as the set of terminal symbols, the set of axioms

and the components for constructed like in the previous case:

  • A. If is a matrix of type with

  • B.

  • C.

The intended legal teams of two components again are and for arbitrary labels the legal configurations are

In contrast to the -free case we can use the -rule in the component associated with a matrix of type which allows us to avoid the splitting up of the language into the right derivatives yet again we obtain If is a derivation step in where is not a terminal string, then in a derivation sequence

Page 120

using appropriate teams of size 2 from and if is a terminal string, then in a derivation sequence using the appropriate teams of size 2 from .

Similar arguments as in the -free case can be used to show that Hence again we obtain which proves too.

Lemma 4.

Proof. For a language in respectively we just take the adequate CD grammar system already constructed in the proof of the previous lemma. As the legal teams of size two still are available, we obviously obtain On the other hand, we still have too, although the possibilities for forming teams from the constructed components have increased considerably. Yet we have to adapt our arguments according to this new situation.

As in the previous proof we still have to notice that in the following we can restrict our attention to teams where all components are associated with matrices from only one set because components associated with some matrix from another set of matrices with already at the first application of a rule force us to introduce the trap symbol Hence in the following it is sufficient to consider the case where in

As the legal teams of two components again are and for appropriate labels the legal configurations are

As teams of type cannot work together without introducing #, because they can only replace symbols in by symbols different from # we need not take into account teams containing at least two components of type . Moreover, every team of size one finally is forced to introduce the trap symbol # when started on a legal configuration (i. e. the result for is the same as for ). Hence in the following we now take a closer look on every possible combination of components yielding a team with at least three components and allowing at least one derivation step on the legal configurations listed above without introducing the trap symbol #:

Case 1: Configuration i. e. of type 1.

Each component being of one of the types and will introduce # at the first application of a rule; therefore it only remains to consider teams where each component is of one of the types and

  1. contains only components of the type where obviously all labels of these components have to be different. Then at most one label can be from because such a component only once can use the rule , whereas all the other components with can also apply a rule to the symbol

    at most once as well as the rule to any occurrence of the corresponding symbol Hence, before the derivation with the team can terminate, at least one of the rules of the form (e. g. or ) is forced to be applied in at least one of the components.

    Page 121

  2. contains exactly one component wheras all the other components are of the type i. e.

    where Denote Again, at most one label in can be from In the first derivation step with the team for respectively for from is used, while at most one component can use the rule whereas all the others have to use the rules for the corresponding non-terminal symbols

  • (a) If in the next step has to use a trap rule.

    • i. If the rule has been applied in the first step (observe that if ), then even if every component of can apply a rule, i. e. for we choose for some for we can take from at least can be applied, and in the remaining components at least is applicable.

    • ii. If the rule has not been applied in the first step, i. e. for each the rule has been taken from (which implies and therefore too), again a second step with T is possible: We can choose from while at least is applicable in the remaining components

  • (b) If then one more derivation step may be possible without being forced to use a trap rule, but again in any case the trap symbol must be introduced before the derivation can terminate, even if contains the legal team

  • i. If i. e. then only one derivation step with is possible without introducing and in this step has used the rule whereas all the other had to use for the corresponding symbols and used now is forced to use a trap rule like (observe that ), whereas can use its rule for replacing and the other components at least can apply

  • ii. If then at most two derivation steps with the team are possible without introducing the trap symbol where at most once one component can apply whereas otherwise the components have to use the corresponding rules

  • A. If two derivation steps without applying a trap rule have been possible, then also a third step with the team is possible, where is forced to apply a trap rule, e.g. for we can choose where such that has not been replaced by whereas all the components can at least apply

    Page 122

  • B. If only one derivation step without introducing has been possible, i.e. at least one component cannot apply a rule not introducing any more, then a second step with is possible, where uses and is forced to apply a trap rule. If has not been replaced in the first derivation step, can apply while also the other components with at least can use if has been applied in the first step, in the second step from we can choose instead of has been applied in the first step for some then we can choose from from at least can be applied, while from at least is applicable.

In all cases, further derivations are blocked (they never can lead to terminal strings), because the trap-symbol # has been forced to be introduced.

Case 2: Configuration

The only components that do not introduce # by the first rule to be applied are for any arbitrary as well as and Hence only the following teams might be possible:

  1. The components cannot replace the symbols without introducing hence they will introduce and therefore finally at least one component will have to use the trap rule

    • (a) While can replace or in the first step, the components can only use the corresponding rules in order not to introduce If some cannot use a rule not introducing any more after this first step, at least this component is forced to use a trap rule like while also the other components can apply at least (and can replace the symbol from not affected in the first step). If two steps without introducing are possible with the team then all together symbols have been introduced. As these symbols guarantee that a trap rule must be applied, before the derivation with can terminate.
    • (b)
      • i. If then can replace all occurrences of by while can replace by and by As we have assumed no other rule not introducing than can be used in Moreover, as we also have assumed the rule to be non-recursive, i. e. the occurrences of the symbol will be exhausted after a finite number of steps with the team so finally at least will be forced to use a trap rule. The other components in the first step can only apply the corresponding rules and in the succeeding steps one of these components once also might be able to apply a rule to

        Page 123

        Now let be the number of steps that are possible with the team without introducing #. If then has replaced by or by whereas all the components have introduced one symbol Hence, in the current sentential form symbols for are present as well as and two symbols respectively and i. e. at least non-terminal symbols, which guarantees that a second derivation step is possible, where at least one trap symbol is introduced. If then at least one symbol from one symbol from and symbols with occur in the current sentential form. As again another derivation step introducing # is possible in any case.

      • ii. If we face a similar situation except that for we need two steps in order to obtain from by using in (i. e. the symbols cannot be ´consumed´ so fast by as in the previous case) and moreover, after one step the symbol from may have vanished, so no other can use a rule on a symbol from Let again denote the number of steps possible with without introducing for all exactly symbols appear in the current sentential form. For which guarantees that after these steps another derivation step introducing the trap symbol # can be applied. For we have at least such symbols as well as additional non-terminal symbols appearing in the current sentential form, i. e. one symbol from as well as at least one symbol

  2. While uses etc. the components can only apply the corresponding rules Even if the symbol from can only vanish in the third derivation step with the team i. e. in any case, after at most two (for) respectively at most three (for) derivation steps without introducing we are forced to use a trap rule in a further derivation step, which is always possible, because the number of non-terminal symbols in the current sentential form in all cases is at least (observe that also for we can always find a non-terminal symbol ).

  3. Because of the presence of the legal subteam can only make two (for ) respectively three (for ) derivation steps without introducing #.

    If at least one