P systems with minimal parallelism Gabriel Ciobanua,b,∗, Linqiang Panc, Gheorghe P˘aund,e, Mario J. P´erez-Jim´eneze a Faculty of Computer Science, “A.I.Cuza” University, Blvd. Carol I no. 11, 700506 Ias¸i, Romania b Institute of Computer Science of the Romanian Academy, Ias¸i, Romania c Department of Control Science and Engineering, Huazhong University of Science and Technology, Wuhan 430074, Hubei, China d Institute of Mathematics of the Romanian Academy, PO Box 1-764, 014700 Bucures¸ti, Romania e Department of Computer Science and Artificial Intelligence, University of Sevilla, Avda. Reina Mercedes s/n, 41012 Sevilla, Spain Abstract A current research topic in membrane computing is to find more realistic P systems from a biological point of view, and one target in this respect is to relax the condition of using the rules in a maximally parallel way. We contribute in this paper to this issue by considering the minimal parallelism of using the rules: if at least a rule from a set of rules associated with a membrane or a region can be used, then at least one rule from that membrane or region must be used, without any other restriction (e.g., more rules can be used, but we do not care how many). Weak as it might look, this minimal parallelism still leads to universality. We first prove this for the case of symport/antiport rules. The result is obtained both for generating and accepting P systems, in the latter case also for systems working deterministically. Then, we consider P systems with active membranes, and again the usual results are obtained: universality and the possibility to solve NP-complete problems in polynomial time (by trading space for time). Keywords: Membrane computing; P System; Universality; SAT Problem 1. Introduction A much debated topic in membrane computing (see monograph [14] for a comprehensive introduction, volume [4] for various applications, and the web site http://psystems.disco.unimib.it for recent developments) is how “realistic” various classes of P systems, hence various ingredients used in them, are from a biological point of view. Starting from the observation that there is an obvious parallelism in the cell biochemistry [1], and relying on the assumption that “if we wait enough, then all reactions which may take place will take place”, a basic feature of the P systems as introduced in [12] is the maximally parallel way of using the rules (in each step, in each region of a system, we have to use a maximal multiset of rules). This condition provides a useful tool in proving various properties, because it decreases the non-determinism of the system’s evolution, and it supports techniques for simulating the powerful features of ∗ Corresponding address: Institute of Computer Science, Formal Systems Laboratory, Blvd. Carol I, nr. 8, 700505 Ias¸i, Romania. Tel.: +40 232 412820. E-mail addresses: [email protected], [email protected] (G. Ciobanu), [email protected] (L. Pan),
[email protected], [email protected] (G. P˘aun), [email protected] (M.J. P´erez-Jim´enez).
appearance checking and zero testing, standard methods used to get computational completeness/universality of regulated rewriting in formal language theory [7] and of register machines [10], respectively. For various reasons ranging from looking for more realistic models to just the mathematical challenge, the maximal parallelism was questioned, either simply criticized, or replaced with presumably less restrictive assumptions. For instance, sequential systems were considered in a series of papers, where only one rule is used in each step of a computation. An intermediate case is that of non-synchronized P systems, where any number of rules is used in each step. More details and references can be found in [8]. Various classes of systems with computations similar to the cooperation modes of grammar systems [5] are presented in [6]: in each step, in each region, for a given k, we can use exactly k, at least k, or at most krules. In general, sequential systems and non-synchronized systems are weaker than systems based on maximal parallelism, but the universality is obtained again as soon as further control mechanisms are considered, such as priorities, bi-stable catalysts, etc. In this paper we propose a rather natural condition which, as far as we know, was not yet considered: from each set of rules where at least a rule can be used, then at least one is actually used (maybe more, without any restriction). We say that this is a minimal parallelism, because this mode of using the rules ensures that all compartments of the system evolve in parallel, by using at least one rule whenever such a rule is applicable. We have two main cases given by the fact that the rules can be associated with a region of a P system (as in P systems with symbol-objects processed by rewriting-like rules), or they can be associated with membranes (as in symport/antiport P systems and in P systems with active membranes). The minimal parallelism refers to the fact that each such set is considered separately, and, if at least one rule of a set can be applied, then at least one rule must be applied. For systems with only one membrane the minimal parallelism is nothing else than non-synchronization, hence the non-trivial case is that of multi-membrane systems. In what follows, we consider only two cases, that of P systems with symport/antiport rules, and of P systems with active membranes. Somewhat surprisingly, the universality is obtained again, in both cases. For instance, for symport/antiport systems, we again need a small number of membranes (three in the generative case, and two in the accepting case), while the symport and antiport rules are rather simple (of weight two). The universality is obtained both for systems working in the generative mode in which one collects the results of all halting computations, defined as the multiplicity of objects from an output membrane in the halting configuration, as well as in the accepting mode where a number is introduced in the system, in the form of the multiplicity of a specified object in a specified membrane, and the number is accepted if the computation halts. Moreover, the system can be deterministic in the accepting case. Similarly, P systems with active membranes are universal even when using rules of only the types (a), (b), (c) (local evolution of objects, send-in, and send-out rules, respectively). These systems can also solve NP-complete problems in polynomial time — we exemplify this possibility by using the Boolean satisfiability problem (SAT). The results are as usual in the case of maximal parallelism, with the mention that we pay here a price for them: we use three polarizations in the universality proof, and division of non-elementary membranes in the efficiency proof; the construction for solving SAT is semi-uniform, and it works in a confluent way. The minimal parallelism for other classes of P systems, especially for catalytic systems, remains to be investigated. In the next section we introduce the necessary language and automata theory prerequisites, Section 3introduces the minimal parallelism for symport/antiport P systems, also giving their universality, both in the generative and accepting cases, Section 4considers the minimal parallelism for P systems with active membranes, which are proved to be both universal and computationally efficient; we end the paper with some comments, in Section 5. 2. Prerequisites We suppose that the reader is familiar with the basic elements of Turing computability [9], and of membrane computing [14]. We introduce here, in a rather informal way, only the necessary notions and notation. An alphabet is a finite and non-empty set of abstract symbols. For an alphabet A, we denote by A∗the set of all strings of symbols from Aincluding the empty string λ. A multiset over an alphabet Ais a mapping from Ato N, the set of natural numbers; we represent a multiset by a string from A∗, where the number of occurrences of a symbol a∈Ain a string wgives the multiplicity of ain the multiset associated with w(hence all strings obtained by permuting symbols in the string wrepresent the same multiset). The family of Turing computable sets of natural numbers is denoted by NRE (with RE coming from “recursively enumerable”).
In our universality proofs we use the characterization of NRE by means of register machines. Such a device consists of a given number of registers, each of which can hold an arbitrarily large natural number, and a set of labelled instructions which specify how the numbers stored in registers can change, and which instruction should follow after any used instruction. There are three types of instructions: •li:(ADD(r), lj,lk)add 1 to register r, and then go to one of the instructions labelled by ljand lk, nondeterministically chosen, •li:(SUB(r), lj,lk)if register ris non-empty (non-zero), then subtract 1 from it and go to the instruction labelled by lj, otherwise go to the instruction labelled by lk, •lh:HALT the halt instruction. Aregister machine is a construct M=(n,B,l0,lh,R), where nis the number of registers, Bis the set of instruction labels, l0is the start label, lhis the halt label (assigned to HALT only), and Ris the set of instructions. Each label of Blabels only one instruction from R, thus precisely identifying it. A register machine Mgenerates a set N(M)of numbers in the following way: having initially all registers empty (hence storing the number zero), start with the instruction labelled by l0, and proceed to apply instructions as indicated by the labels and by the contents of registers. If we reach the halt instruction, then the number stored at that time in register 1 is said to be computed by M, and hence it is introduced in N(M). Since we have a non-deterministic choice in the continuation of the computation in the case of ADD instructions, N(M)can be an infinite set. It is known (see [10]) that in this way we can compute all the sets of numbers which are Turing computable, even using register machines with only three registers. Without loss of generality, we may assume that we have lj6= li,lk6= liwhenever we use an instruction li:(ADD(r), lj,lk), and the unique instruction labelled by l0is an ADD instruction. Moreover, we may assume that the registers of the machine except register 1 are empty in the halting configuration. A register machine can also work in an accepting mode. The number to be accepted is introduced in register 1, with all other registers empty. We start computing with the instruction labelled by l0; if the computation halts, then the number is accepted (the contents of the registers in the halting configuration do not matter). We still denote by N(M)the set of numbers accepted by a register machine M. In the accepting case, we can also consider deterministic register machines, where all the instructions li:(ADD,lj,lk)have lj=lk. It is known that deterministic accepting register machines characterize NRE. 3. Minimal parallelism for symport/antiport P systems We first briefly recall the notion of P system with symport/antiport rules; for details, the reader is refereed to [14]. AP system with symport/antiport rules (of degree n≥1) is a construct of the form Π=(O, µ, w1, . . . , wn,E,R1, . . . , Rn,io), where: (1) Ois the alphabet of objects, (2) µis the membrane structure (of degree n≥1, with the membranes labelled in a one-to-one manner with 1,2,...,n), (3) w1, . . . , wnare strings over Orepresenting the multisets of objects present in the ncompartments of µin the initial configuration of the system, (4) E⊆Ois the set of objects supposed to appear in the environment in arbitrarily many copies, (5) R1, . . . , Rnare the (finite) sets of rules associated with the nmembranes of µ, (6) io∈His the label of a membrane of µwhich indicates the output region of the system. The rules of any set Rican be of two types: symport rules of the forms (x,in), (x,out), and antiport rules of the form (u,out;v, in), where x,u, v are strings over O. The length of x, respectively the maximum length of u, v, is called the weight of the corresponding (symport or antiport) rule. In what follows, the rules are applied in a non-deterministic minimally parallel manner: in each step, from each set Ri(1≤i≤n)we use at least one rule (without specifying how many) provided that this is possible for a chosen selection of rules. The rules to be used, as well as the objects to which they are applied, are non-deterministically chosen. More specifically, we assign non-deterministically objects to rules, starting with one rule from each set Ri. If we cannot enable any rule for a certain set Ri, then this set remains idle. After having one rule enabled in each set
Rifor which this is possible, if we still have objects which can evolve, then we evolve them by any number of rules (possibly none). We emphasize an important aspect: the competition for objects. It is possible that rules from two sets Ri,Rj associated with adjacent membranes i,j(that is, membranes which have access to a common region, either horizontally or vertically in the membrane structure) use the same objects, so that only rules from one of these sets can be used. Such conflicts are resolved in the following way: if possible, objects are assigned non-deterministically to a rule from one set, say Ri; then, if possible, other objects are assigned non-deterministically to a rule from Rj, and thus fulfilling the condition of minimal parallelism. After that, further rules from Rior Rjcan be used for the remaining objects, non-deterministically assigning objects to rules. If no rule from the other set (Rj, respectively Ri) can be used after assigning objects to a rule from Rior Rj, then this is a correct choice of rules. It depends on the first assignment of objects to rules in order to make applicable rules from each set. An example can illuminate this aspect: let us consider the configuration [k[i]iaab [j]j]k, with Ri= {(b,in)}, and Rj= {(a,in), (b,in)}. The objects aab are available to rules from both sets. All the following five assignments are correct: bgoes to membrane iby means of the rule (b,in)∈Ri, and one or two copies of ais/are moved to membrane jby means of the rule (a,in)∈Rj;bgoes to membrane jby means of the rule (b,in)∈Rj, no rule from Rican be used, and zero, one, or two copies of aare also moved to membrane jby means of the rule (a,in)∈Rj. Moving only bto membrane iand not using at least once the rule (a,in)∈Rjis not correct. As usual in membrane computing, we consider successful only computations which halt, and with a halting computation we associate a result given by the number of objects present in the halting configuration in region io (note that this region is not necessarily an elementary one). External output or a squeezing through a terminal set of objects are also possible, but we do not consider these cases here. The set of numbers generated by a system Πin the way described above is denoted by Ngen(Π). The family of all sets Ngen(Π)generated by systems with at most n≥1 membranes, using symport rules of weight at most p≥0, and antiport rules of weight at most q≥0 is denoted by Ngen min O Pn(symp,antiq), with the subscript “min” indicating the “minimal parallelism” used in computations. We can also use a P system as above in the accepting mode: For a specified object a, we add amto the multiset of region io, and then we start working; if the computation stops, then the number mis accepted. We denote by Nacc(Π) the set of numbers accepted by a system Π, and by Nacc min O Pn(symp,antiq)the family of all sets of numbers Nacc(Π) accepted by systems with at most nmembranes, using symport rules of weight at most p, and antiport rules of weight at most q. In the accepting case we can consider deterministic systems, where at most one continuation is possible in each step. In our context, this means that zero or exactly one rule can be used from each set Ri, 1 ≤i≤n. We add the letter D in front of Nacc min O Pn(symp,antiq)for denoting the corresponding families, DNacc min O Pn(symp,antiq). Our expectation of introducing the minimal parallelism was to obtain a non-universal class of P systems, possibly with decidable properties. This turns out not to be true: the minimal parallelism still contains the possibility to enforce the checking for zero from SUB instructions of the register machines (this is the same with appearance checking from regulated rewriting), both for symport/antiport systems and for systems with active membranes. Theorem 1. Ngen min O Pn(symp,antiq)=NRE for all n ≥3,p≥2,q≥2. Proof. It is sufficient to prove the inclusion NRE ⊆Ngen min O P3(sym2,anti2); the inclusions Ngen min O Pn(symp,antiq)⊆ Ngen min O Pn0(sym p0,antiq0)⊆NRE, for all 1 ≤n≤n0, 0 ≤p≤p0, and 0 ≤q≤q0, are obvious. Let us consider a register machine M=(3,B,l0,lh,R); the fact that three registers suffice is not relevant in this proof. We consider an object g(l)for each label l∈B, and denote by g(B)the set of these objects. We define B0= {l0|l∈B},B00 = {l00 |l∈B}, and B000 = {l000 |l∈B}, where l0,l00, and l000 are new symbols associated with l∈B. For an arbitrary set of objects Q, let us denote by w(Q)a string which contains exactly once each object from Q; thus w(Q)represents the multiset which consists of exactly one occurrence of each object of Q. In general, for any alphabet Qwe use the derived sets Q0= {b0|b∈Q},Q00 = {b00 |b∈Q}, and Q000 = {b000 |b∈Q}, where b0,b00,b000 are new symbols associated with b∈Q. We construct a P system (of degree 3) Π=(O, µ, w1, w2, w3,E,R1,R2,R3,3),
with O= {l,l0,l00,l000,g(l)|l∈B}∪{ar|1≤r≤3}∪{c,d,t}, µ= [1[2[3]3]2]1, w1=w(B− {l0})w(B0)w(B00)ct, w2=w(g(B)), w3=λ, E= {ar|1≤r≤3} ∪ B000 ∪g(B)∪ {c,d,l0}, and with the following sets of rules1: (1) Starting the computation: R1R2R3 (c,out;car,in), 1≤r≤3 – – (c,out;dl0,in)– – –(dl0,in)– As long as cis present in region 1, we can bring copies of objects ar(1 ≤r≤3) in the system by using rule (c,out;car,in)∈R1. The number of copies of arfrom region 2 represents the number stored in register rof the register machine. At any moment we can use a rule (c,out;dl0,in)which brings the initial label of Minside (note that l0does not appear in w1), together with the additional object d. From now on, no further object arcan be brought in the system. In the next step, the objects dl0can enter region 2 by means of rule (dl0,in)∈R2, and this initiates the simulation of a computation in our register machine M. (2) We also have the following additional rules which are used in interaction with rules from the other groups, including the previous group: R1R2R3 (l0,out) (g(l), out;dt,in), l∈B– –(t,out), (t,in) The role of these rules is to prevent “wrong” steps in Π. For instance, as soon as the instruction with label l0is simulated (see details below), label l0should be sent out of the system in order to avoid another computation in M, and this is done by means of rule (l0,out)∈R1. This rule should be used as soon as l0is available in region 1, and no other rule from R1may be applied — we will see immediately that this is ensured by the rules simulating the instructions of M. However, l0should not be eliminated prematurely, i.e., before simulating the instruction with label l0. In such a case, a rule (g(l), out;dt,in)for some l∈Bshould be used once and only once, because we have only one available copy of d. In this way, the object tenters membrane 2, and the computation can never stop because of the rules (t,out), (t,in)∈R3. These trap-rules are used also in order to control the correct simulation of instructions of M. (3) Simulating an instruction li:(ADD(r), lj,lk): Step R1R2R3 1 – (li,out;lpar,in), p=j,k, or (li,out;t,in)– When liis in region 2, the number of copies of aris incremented by bringing arfrom the skin region, together with any of labels ljand lk. Since we have provided in w2one copy of any label different from l0, labels ljand lk are present in region 1. We have assumed that each ADD instruction of Mhas lj6= liand lk6= li, hence we do not need two copies of any l∈Bin Π. If we have not enough copies of arbecause the initial phase was concluded prematurely (we have brought some copies of arin the system, but all of them were already moved in membrane 2), then we cannot use a rule (li,out;lpar,in),p=j,k. Because of the minimal parallelism, we should use the rule (li,out;t,in)(no other rule of R2is applicable). Therefore, the computation will never end, because of the 1We present the rules in groups associated with various tasks during the computation, also indicating the steps when they are used.
trap-rules (t, out), (t, in) ∈ R3. Note that no rule from R1 can be used, excepting (l0, out), whenever l0 is present in the skin region (which means that the initial instruction was already simulated). (4) Simulating an instruction li:(SUB(r), lj,lk): Step R1R2R3 1 – (g(li)li,out;l0 i,in)– 2(g(li), out;g(li)l000 i,in) (l0 iar,out;l00 i,in)– 3 – (g(li)l000 i,in)– 4 – (l000 il0 i,out;lk,in),(l000 il00 i,out;lj,in)– 1(l000 i,out)· · · · · · – – – (d,out;l000 it,in)– With lipresent in region 2, we use a rule (g(li)li,out;l0 i,in)∈R2by which the witness object g(li)goes to the skin region, and the object l0 iis brought into region 2. During the next step, this latter object checks whether there is a copy of arpresent in region 2. In a positive case, rule (l0 iar,out;l00 i,in)∈R2is used in parallel with (g(li), out;g(li)l000 i,in)∈R1. This last rule brings into the system a “checking” symbol l000 i. In the next step we have two possibilities. If we use a rule (g(li)l000 i,in)∈R2, then both g(li)and l000 iare introduced in region 2. Depending on what l000 i finds here, one can use either (l000 il0 i,out;lk,in)if the subtraction was not possible (because no arwas present), or (l000 il00 i,out;lj,in)if the subtraction was possible. Thus, the correct label selected between ljand lkis brought into region 2. If in step 3, instead of a rule (g(li)l000 i,in)∈R2, we use again (g(li), out;g(li)l000 i,in)∈R1, then the existing object l000 ieither exits the system by means of the rule (l000 i,out)∈R1and so we repeat the configuration, or we use the rule (d,out;tl000 i,in)∈R2and the computation never stops (no other rule of R2can be used). Similarly, if in step 3 we use the rule (l000 i,out)∈R1, then at the same time the object g(li)from region 1 either remains unchanged, or uses the rule (g(li), out;g(li)l000 i,in)∈R1. In the former case, in the next step we have to use the rule (g(li), out;g(li)l000 i,in)∈R1(no other rule of R1can be applied). In both cases, the configuration is repeated. Of course, if we directly use the rule (d,out;tl000 i,in)∈R2, then the computation never stops. Thus, in all these cases, either the simulation of the SUB instruction is correct or the system never stops. In the next step, namely step 1 of the simulation of any type of instruction, the object l000 iexits the system by means of the rule (l000 i,out)∈R1. Note that no other rule of R1is used in this step, neither for ADD, nor for SUB instructions. Consequently, both ADD and SUB instructions of Mare correctly simulated. The configuration of the system is restored after each simulation, namely all the objects of g(B)are in region 1, and no object of B000 is present in the system. The simulation of the instructions of Mcan be iterated, and thus we can simulate in Πa computation of M. If the computation of Mdoes not stop, then the corresponding simulation in Πdoes not stop as well. When the computation in Mstops, then the label lhis introduced in region 2, and registers 2 and 3 are empty. Then we use the following group of rules. (5) Final rules: R1R2R3 ––(lha1,in) ––(lh,out) The halting label lhcarries all the copies of a1from region 2 to 3, and only when this process is completed the computation can stop. Consequently, the system Πcorrectly simulates (all and nothing else than) the computations of M. This means that Ngen(Π)=N(M). Note that in this proof the output region is an elementary one, and that the minimal parallelism is essentially used in ensuring the correct simulation of the computations in the register machine M(for instance, the minimal parallelism prevents halting the computation in Πwithout completing the simulation of a halting computation in M). The previous proof can be easily adapted for the accepting case: we consider l0already in region 1, and introduce additionally am 1, for mbeing the number we want to accept. Omitting the technical details, we mention the following result:
Corollary 2. Nacc min OPn(symp,antiq)=NRE for all n ≥3,p≥2,q≥2. Moreover, this last result can be strengthened by considering deterministic P systems, and also by decreasing by one the number of membranes. Theorem 3. DNacc min O Pn(symp,antiq)=NRE for all n ≥2,p≥2,q≥2. Proof. Let us consider a deterministic register machine M=(3,B,l0,lh,R)accepting an arbitrary set N(M)∈NRE. We again use the notation w(Q)as specified in the proof of Theorem 1, and Qufor the sets {bu|b∈Q}, where u denotes various markings (priming). We construct a P system (of degree 2) Π=(O,[1[2]2]1, w1, w2,E,R1,R2,1), with O= {l,l0,l00,l000,liv,lv|l∈B}∪{ar|1≤r≤3}∪{c}, w1=l0, w2=w(Biv), E=O, and with the following sets of rules: (1) Simulating an instruction li:(ADD(r), lj,lj): Step R1R2 1(li,out;ljar,in)– Since the environment contains the necessary objects, the ADD instruction is simulated whenever we have the object liin region 1. (2) Simulating an instruction li:(SUB(r), lj,lk): Step R1R2 1(li,out;l0 il00 i,in)– 2(l0 iar,out;l000 i,in) (liv i,out;l00 i,in) 3(liv il0 i,out;liv ilv k,in)or (liv il00 i,out;liv ilv j,in)– 4(lv k,out;clk,in), resp. (lv j,out;cl j,in)– 1· · · · · · (cliv i,in) With lipresent in region 1, we bring into the system the objects l0 i,l00 ifrom the inexhaustible environment. The object l0 iis used to subtract 1 from register rby leaving together with a copy of ar. This operation brings into the system an object l000 i; simultaneously, l00 ienters region 2, releasing the “checking” symbol liv i. In the next step, depending on what liv ifinds in membrane 1, either (liv il0 i,out;liv ilv k,in)is used whenever the subtraction was not possible, or (liv il00 i,out;liv ilv j,in)is used if the subtraction was possible. The corresponding lv jor lv kis brought into the system. In the fourth step, these last objects exit the system and bring inside their corresponding non-marked objects ljand lk, together with an auxiliary object c. In the next step, object chelps object liv i(which waits one step in the skin region) to return to region 2, and so making sure that the multiset of region 2 contains again all objects of Biv. This step is the first one in simulating another ADD or SUB instruction, and it is important to note that in this step no other rule from R2can be used. The computation starts by introducing in region 1 a multiset am 1encoding the number m. Note that the initial label of Mis already present here. By iterating the simulations of ADD and SUB instructions, we can simulate any computation of M. Obviously, since any computation of Mis deterministic, the computation in Πis also deterministic (from each set Ri, in each step, at most one rule is applicable). When the halt instruction is reached, hence lhappears in the system, the computation stops (with a further last step when the rule (cliv i,in)∈R2is used). We conclude that Nacc(Π)=N(M).
Note that the deterministic construction is simpler than that from the proof of Theorem 1, because we should not initially bring “resources” into the system, and we have nothing to do in the final stage (in particular, we should not “clean” the output region of any other objects than those we need to count). 4. Minimal parallelism for P systems with active membranes Let us consider now another important class of P systems, that with active membranes. We start by briefly recalling the basic definition, then we define the minimal parallelism for this type of P systems. AP system with active membranes of the initial degree n≥1 is a construct of the form Π=(O,H, µ, w1, . . . , wn,R,ho), where: (1) Ois the alphabet of objects; (2) His a finite set of labels for membranes; (3) µis a membrane structure, consisting of nmembranes having initially neutral polarizations, labelled (not necessarily in a one-to-one manner) with elements of H; (4) w1, . . . , wnare strings over O, describing the multisets of objects placed in the ninitial regions of µ; (5) Ris a finite set of developmental rules, of the following forms: (a) [ha→v]e h, for h∈H,e∈ {+,−,0},a∈O, v ∈O∗ (object evolution rules, associated with membranes and depending on the label and the charge of the membranes, but not directly involving the membranes, in the sense that the membranes are neither taking part in the application of these rules nor are they modified by them); (b) a[h]e1 h→ [hb]e2 h, for h∈H,e1,e2∈ {+,−,0},a,b∈O (in communication rules; a possibly modified object is introduced in a membrane; the polarization of the membrane can also be modified, but not its label); (c) [ha]e1 h→ [h]e2 hb, for h∈H,e1,e2∈ {+,−,0},a,b∈O (out communication rules; a possibly modified object is sent out of the membrane; the polarization of the membrane can also be modified, but not its label); (d) [ha]e h→b, for h∈H,e∈ {+,−,0},a,b∈O (dissolving rules; in reaction with an object, a membrane can be dissolved, while the object specified in the rule can be modified); (e) [ha]e1 h→ [hb]e2 h[hc]e3 h, for h∈H,e1,e2,e3∈ {+,−,0},a,b,c∈O (division rules for elementary or non-elementary membranes; in reaction with an object, the membrane with label his divided into two membranes with the same label, possibly of different polarizations; the object specified in the rule is replaced in the two new membranes by possibly new objects; the remaining objects may evolve in the same step by rules of type (a) and the result of this evolution is duplicated in the two new membranes; if membrane hcontains other membranes, then they may evolve at the same time by rules of any type and the result of their evolution is duplicated in the two new membranes); (6) ho∈His the label of the output membrane. Note that, different from [13,14], etc., the rules of type (e) can be applied also to non-elementary membranes. The rules for dividing non-elementary membranes are of a different form in the literature (in several papers the division takes place only when internal membranes of opposite polarizations are present); in this paper we consider the above uniform form of rules for dividing membranes irrespective of whether they are elementary or not. We use here the rules in a minimally parallel manner, in the following sense. All the rules of any type involving a membrane hform the set Rh(this means all the rules of type (a) of the form [ha→v]e h, all the rules of type (b) of the
form a[h]e1 h→ [hb]e2 h, and all the rules of types (c)–(e) of the form [ha]e h→z, with the same h, constitute the set Rh). Moreover, if a membrane happears several times in a given configuration of the system, then for each occurrence of the membrane we consider a different set Rh; this means that we identify the ith copy of membrane hwith the pair (h,i), and we consider the set of rules Rh,i=Rh. Then, in each step, from each set Rh,i,h∈H(possibly, without specifying i=1 in the case where membrane happears only once) from which at least a rule can be used, at least one rule must be used. In what follows, in order to make visible the sets of rules, we write explicitly the sets Rh,h∈H, instead of the global set R. Of course, as usual for P systems with active membranes, each membrane and each object can be involved in only one rule, and the choice of rules to use and of objects and membranes to evolve is done in a non-deterministic way. We should note that for rules of type (a) the membrane is not considered to be involved: when applying [ha→v]h, the object acannot be used by other rules, but the membrane hcan be used by any number of rules of type (a) as well as by one rule of types (b)–(e). In each step, the use of rules is done in the bottom-up manner (first the inner objects and membranes evolve, and the result is duplicated if any surrounding membrane is divided). A halting computation provides a result given by the number of objects present in membrane hoat the end of the computation; for a computation to be successful, exactly one membrane with label hoshould be present in the halting configuration. The set of numbers generated in this way by a system Πis denoted by N(Π), and the family of these sets, generated by systems having initially at most n1membranes and using configurations with at most n2membranes during the computation is denoted by Nmin O Pn1,n2((a)–(e)); when a type of rules is not used, it is not mentioned in the notation. We prove now the universality of P systems with active membranes working in the minimally parallel mode; as it is the case also for the maximally parallel mode, only rules of the first three types are used — however, in contrast to [3], we use three polarizations. Actually, in the maximally parallel case the universality of P systems with active membranes can be obtained even without using polarizations (see [2]) at the price of using rules of all the five types. Theorem 4. Nmin O Pn1,n2((a)–(c)) =NRE for all n1≥4,n2≥4. Proof. Let us consider a register machine M=(3,B,l0,lh,R)generating an arbitrary set N(M)∈NRE. We construct a P system (of the initial degree 4) Π=(O,H, µ, l0, λ, λ, λ, R0,R1,R2,R3,1), with O= {a}∪{l,l0,l00,l000,liv,lv,lvi,lvii ,lviii ,lix |l∈B}, H= {0,1,2,3}, µ= [0[1]1[2]2[3]3]0, and with the following rules2: (1) Simulating an instruction li:(ADD(r), lj,lk), for r= 1,2, or 3: Step R0Rr 1 – li[r]0 r→ [rli]0 r 2 – [rli→l0 pa]0 r,p=j,k 3 – [rl0 p]0 r→ [r]0 rl0 p,p=j,k 4[0l0 p→lp]0 0,p=j,k– The label-object lienters into the correct membrane r, produces one further copy of a, and the primed labels lj,lk inside membrane r; the labels lj,lkexit to the skin region and lose their primes, and the process can be iterated. Note that in each step, at most one rule from each set R0,R1,R2,R3can be used. 2A membrane with label ris defined for each register r; the number stored in a register ris represented by the number of objects apresent in membrane r.