1 Introduction

Membrane systems, introduced in Păun (2000), are biologically inspired models of computation: similarly to the cells functioning in an organism, the membranes exhibit independent behaviour and, on the contrary, the whole system shows a synchronized computational manner. The computation proceeds in distinct regions, which are called membranes or compartments. The membranes contain multisets and each computational step means the local evolution of multisets in the membranes obeying certain rules. In each big step of computation we assume that the membranes act in a maximally parallel manner, that is, as many multiset rules are performed simultaneously in each membrane as possible starting from the actual membrane content. The computation is synchronized: at the end of a big operational step the membranes wait for the others to finish their maximal computational step and the next cycle begins only after that. Concerning the computational mode, several variants of P systems have been introduced and studied, see the monograph (Păun 2002) for a thorough introduction, or the handbook (Păun et al. 2010) for a summary of notions and results of the area.

The question of how to define dynamically changing membrane structures using topological spaces, and how the underlying topologies influence the behaviour of P systems was already examined in Csuhaj-Varjú et al. (2012, 2015). Multiset approximation spaces were defined in Mihálydeák and Csajbók (2013, 2014), which made it possible to talk about lower and upper approximations of the contents of the membranes of a P system. This also opened the door to various definitions of the membrane rules: permitting only rules that allow the manipulation of multisets being on the boundaries of the membranes or working only with rules in the inner parts of the membranes led to membrane systems of different computational strengths (Battyányi and Vaszil 2019). The first results in this area appeared in Mihálydeák and Vaszil (2015), where symport/antiport rules were examined together with a notion of closeness of membranes. The investigations were continued in Battyányi et al. (2019), where it was proved that, for generalized P systems, certain topological restrictions on rule applications are itself enough to ensure Turing completeness, that is, we are able to substitute maximal parallelism with relying only on rules defined on the boundaries provided the respective membranes are close to each other in some sense. In Battyányi and Vaszil (2019), we also examined generalized P systems, but we managed to free ourselves from the notion of closeness of membranes and we leaned merely on the various forms of rule applications. We considered a rule executable only if the left hand side is either in the inner part or on the boundary of the compartment, respectively. It turned out that it is only the use of the boundary rules, i. e., the rules which can only manipulate objects on the boundaries of the compartments, that resulted in a computational model equivalent in strength to Turing machines.

In this paper, it is examined how the idea of boundary rule application can be used to obtain the effects of membrane system features like maximally parallel rule application, membrane dissolution, or the use of promoters/inhibitors in the usual symbol object membrane systems. It is proven that boundary rules are in themselves enough to compensate for maximally parallel rule application in symbol object membrane systems, and, moreover, membrane dissolution and the applications of promoters/inhibitors can also be simulated by choosing an appropriate approximation space. In addition, all the membrane systems presented here operate with non-cooperative rules in sequential mode, which is an improvement compared to the previous results.

2 Preliminaries

Let \({{\mathbb{N}}}\) and \({{\mathbb{N}}}_{>0}\) demote the set of non-negative integers and the set of positive integers, respectively, and let O be a finite nonempty set, which is called the set of objects. A multiset M over O is a pair \(M=(O,f)\), where the mapping \(f:O\rightarrow {\mathbb{N}}\) gives the multiplicity of each object \(a\in O\). The set \({\textrm{supp}}(M)=\{a\in O \mid f(a) > 0\}\) is called the support of M. If \({\textrm{supp}}(M)=\emptyset\), then M is the empty multiset. If \(a\in {\textrm{supp}}(M)\), then \(a\in M\), and \(a\in ^{n} M\) if \(f(a)=n\). If I is an index set and \(a_{i}\) are objects \((i\in I)\), then we denote the set formed by the elements \(a_{i}\) by \(\{a_{i}\mid i\in I\}\), as usual. The number of elements in a multiset M is denoted by |M|.

Let \(M_{1}=(O,f_{1}), M_{2}=(O,f_{2})\). Then \((M_{1}\sqcap M_{2})=(O,f)\) where \(f(a)={\min }\{f_{1}(a),f_{2}(a)\}\); \((M_{1}\sqcup M_{2})=(O,f')\), where \(f'(a)={\max }\{f_{1}(a),f_{2}(a)\}\); \((M_{1}\oplus M_{2})=(O,f'')\), where \(f''(a)=f_{1}(a)+f_{2}(a)\); \((M_{1}\ominus M_{2})=(O,f''')\) where \(f'''(a)={\max }{\{f_{1}(a)-f_{2}(a),0\}}\); and \(M_{1}\sqsubseteq M_{2}\), if \(f_{1}(a)\le f_{2}(a)\) for all \(a\in O\).

For any \(n\in {\mathbb{N}}\), n-times addition of M, denoted by \(\oplus _{n} M\), is given by the following inductive definition:

  • \(\oplus _{0} M=\emptyset\);

  • \(\oplus _{1} M=M\);

  • \(\oplus _{n+1}M=(\oplus _{n} M)\oplus M\).

Let \(M_{1}\ne \emptyset , M_{2}\) be two multisets. For any \(n\in {\mathbb{N}}\), \(M_{1}\sqsubseteq ^{n} M_{2}\), if \(\oplus _{n} M_{1}\sqsubseteq M_{2}\) but \(\oplus _{n+1} M_{1}\not \sqsubseteq M_{2}\). In case of \(M_{1}=\emptyset\), let \(M_{1}\sqsubseteq ^{n} M_{2}\) be false for any multiset \(M_{2}\) and any \(n\in {\mathbb{N}}\).

The number of copies of objects in a finite multiset \(M=(O,f)\) is its cardinality: \({\textrm{card}}(M)= \varSigma _{a\in {\text{supp}}(M)} f(a)\). Such an M can be represented by any string w over O for which \(\vert w \vert = {\textrm{card}}(M)\), and \(\vert w\vert _{a} = f(a)\) where \(\vert w \vert\) denotes the length of the string w, and \(\vert w \vert _{a}\) denotes the number of occurrences of symbol a in w.

We define the \({\mathcal{M}\mathcal{S}}^{n}(O)\), \(n\in {\mathbb{N}}\), to be the set of all multisets \(M=(O,f)\) over O such that \(f(a)\le n\) for all \(a\in O\), and we let \({\mathcal{M}\mathcal{S}}^{<\infty }(O)=\bigcup _{n\ge 0}{\mathcal{M}\mathcal{S}}^{n}(O)\). \({\mathcal{M}\mathcal{S}}^{<\infty }(O)\) is abbreviated by \({\mathcal{M}\mathcal{S}}(O)\) unless stated otherwise.

2.1 Multiset approximation spaces

In his seminal papers (Pawlak 1982, 1991), Pawlak proposed rough set theory as a theory of dealing with imprecise, partial information. The basic concept relied on an equivalence relation defined on the objects of the underlying set, the objects belonging to the same partition with respect to that equivalence relation were considered to be indiscernable. This means, one could observe the equivalence class as a whole without being able to distinguish its elements. Any union of these partitions constituted a definable set. The question was how it was possible to describe any subset of the universe by the known information, i.e., by definable sets. A lower approximation could be considered as the union of all definable sets contained in the underlying set, while the upper approximation is the union of all definable sets which have non-empty intersection with the set in question. Deriving from Pawlak’s original notion of rough sets various ways of set approximations in rough set theory have been proposed. One possibility is to define approximations based on a set of base sets and, without leaning on an underlying equivalence relation, one can construct the definable sets starting from the base sets. The lower and upper approximations can be constructed for any set in a way similar to the original method. This natural generalization of set approximation was defined in Mihálydeák and Csajbók (2013). The lower and upper approximations rely on base sets which can be thought of as representants of the available knowledge: we are able to discover the elements of each set only to the amount of its constituent or bordering base sets. In possession of the concepts of lower and upper approximations, we can also introduce the concept of boundary as the difference between these two.

The set approximation framework for multisets is generalized in order to be able to define the respective approximation multisets for membranes. The notion of multiset approximation spaces has been introduced in Mihálydeák and Csajbók (2013) (see also Mihálydeák and Csajbók 2014 for more details). We adopt the definitions there to our present situation.

A multiset approximation space is a quintuple \((O, {\mathfrak{B}}, {\textsf{l}}, {\textsf{u}}, {\textsf{b}})\) where O is a finite set, \({\mathfrak{B}}\subseteq {\mathcal{M}\mathcal{S}}^{<\infty }(O)\) is a base system (a set of base multisets). We assume none of the base sets are empty. The functions \({\textsf{b}},{\textsf{u}},{\textsf{l}}:{\mathcal{M}\mathcal{S}}^{<\infty }(O)\rightarrow {\mathcal{M}\mathcal{S}}^{<\infty }(O)\) are termed the approximation functions generated by \({\mathfrak{B}}\).

For any multiset \(M=(O,f)\in {\mathcal{M}\mathcal{S}}^{<\infty }(O)\), the

lower approximation function can be defined as:

$$\begin{aligned} {\textsf{l}}(M)=\bigsqcup \{\oplus _{n} B \mid B\in {\mathfrak{B}}\ \text {and}\ B\sqsubseteq ^{n} M\}. \end{aligned}$$

The boundary function can be written as:

$$\begin{aligned} {\textsf{b}}(M)=\bigsqcup \{\oplus _{n} B \mid B\in {\mathfrak{B}} \text { and } B\sqcap (M\ominus {\textsf{l}}(M))\sqsubseteq ^{n} M \ominus {\textsf{l}}(M)\}, \end{aligned}$$

and and the upper approximation function is:

$$\begin{aligned} {\textsf{u}}(M)={\textsf{l}}(M)\sqcup {\textsf{b}}(M). \end{aligned}$$

In addition, we also define the the internal part of the boundary of M as

$$\begin{aligned} {\textsf{b}}^{{\textsf{i}}}(M)={\textsf{b}}(M)\sqcap M. \end{aligned}$$

Let \({\mathfrak{N}}\subseteq {\mathcal{M}\mathcal{S}}^{<\infty }(O)\) be finite and assume \(D\sqsubseteq \sqcup {\mathfrak{N}}\). Then D is fully observable with respect to \({\mathfrak{N}}\) if, for every \(N\in {\mathfrak{N}}\), if \(D\sqcap N\ne \emptyset\), then \(D\sqcap N\sqsubseteq b^{i}(N)\). (The case \(D\sqcap N=\emptyset\) is not relevant.) In other words, every submultiset of D that is contained in a multiset \(N\in {\mathfrak{N}}\) is on the boundary of N. We call a nultiset u observable with respect to \({\mathfrak{N}}\) if there exists a multiset D fully observable with respect to \({\mathfrak{N}}\) and \(N\in {\mathfrak{N}}\) such that \(u\sqsubseteq D\sqcap N\). We say that u is on the observable boundary of N in this case or, on the observable boundary in short. We may omit the phrase “with respect to \({\mathfrak{N}}\)” if it is clear from the context. Observe that every fully observable base set is the finite union of observable sets.

Let us consider an example illuminating the key concepts discussed here.

Example 1

Let \(O=\{a, b, c, d, e\}\) and \(M_{1}=a^{4}b^{2}c\), \(M_{2}=d^{2}e\). Assume \({\mathfrak{B}}=\{ab, a^{2}c, de, ae, bd\}\). Then

$$l(M_{1})=a^{2}b^{2}\sqcup a^{2}c=a^{2}b^{2}c,$$

and

$$b(M_{1})=a^{2}b^{2}\sqcup a^{2}c\sqcup a^{2}e^{2}=a^{2}b^{2}ce^{2}.$$

Similarly,

$$\begin{aligned} l(M_{2})= & {} de, \\ b(M_{2})= & {} bde. \end{aligned}$$

Let \({\mathfrak{N}}=\{M_{1},M_{2}\}\). Then, for example, \(B_{1}=a^{2}b^{2}de\) is fully observable with respect to \({\mathfrak{N}}\), while \(B_{2}=a^{2}b^{2}d^{2}e\) is not.

2.2 Regulating rule application in the multiset approximation framework

In Battyányi et al. (2019), P systems with dynamical structure were considered where the dynamic character of the membrane system was encoded in the reformulation of the region structure regarding a closeness property defined among the membranes based on the actual configuration of the system. In Battyányi and Vaszil (2019), we examined what kind of questions arise when we require that in order for a rule to be applicable in a generalized P system, the multisets on its left hand side must conform to certain properties defined in the multiset approximation framework associated with the system. We also considered the approach demanding that the multisets on the left hand sides of the rules should come from the boundaries of the respective compartments. We came to the conclusion that rules from the inner part ensure only limited computational capacity, while the rules on the boundaries lend full computational strength to the P system. That is, membrane systems with boundary rules are equivalent in computational strength to the general Turing machine concept. The present paper deals with symbol object membrane systems and even improves the previous results by demanding only non-cooperative rules to ensure the full computational power of the original P systems. We also give a direct construction of how to eliminate additional computational features like membrane dissolution and promoters/inhibitors for the P system by keeping their computational strength at the same time. The constructions we implement here are making use of non-cooperative rules in sequential execution mode or at least can be led back to computational models of that kind. This involves that the result of the simulations could yield a computational model that is in a different complexity class than the original P system, though the computed multisets are the same, since every parallel action of the original P system is modeled in our devices by a series of sequential computational steps.

3 The power of boundary rules

In this section, we prove that a symbol object membrane system with the maximally parallel mode can be simulated by a membrane system with the boundary rules in sequential mode. In addition, the rules of the newly constructed membrane system are non-cooperative rules. Below, we give the usual definition of P systems, though, in the subsequent sections, a little bit informal definition is sufficient, as we will see later.

Definition 1

 

  1. 1.

    A P system of degree \(n\ge 1\) is \(\varPi =(O,\mu ,w_{1},\ldots ,w_{n},R_{1},\ldots ,R_{n})\) where O is an alphabet of objects, \(\mu\) is a membrane structure of n membranes, and let \(par(m_{j})=m_{i}\) denote that the parent membrane of \(m_{j}\) is \(m_{i}\) if \(m_{j}\ne m_{1}\), \(w_{i}\in {\mathcal {MS}}(O)\) with \(1\le i\le n\) are the initial contents of the n regions, \(R_{i}\) with \((1\le i\le n)\) are the sets of evolution rules associated with the regions; they are of the form \(u\rightarrow v\), where \(u\in {\mathcal {MS}}(O)\) and \(v\in {\mathcal {MS}}(O\times \{tar\})\), where \(tar\in \{here, out\}\cup \{in_{j}\mid 1\le j\le n\}\). We name membrane \(m_{1}\) the skin membrane.

  2. 2.

    Let \(r= u\rightarrow v\in R_{i}\) for some \(i\in \{1,\ldots ,n\}\). We collect the objects a in the multiset \(v_{1}\) such that \((a,here)\in rhs(r)\). Similarly, we collect the objects b in the multiset \(v_{2}\) such that \((b,out)\in rhs(r)\). Finally, we collect the objects c in the multiset \(v_{3}\) such that \((c,in_{j})\in rhs(r)\) for some \(2\le j\le n\) and \(par(j)=i\). With this notation, we write \(r=(v_{1},here)(v_{2},out)(v_{3},in)\) for r, or, more briefly, \(r=v_{1}(v_{2},out)(v_{3},in)\).

We discuss the semantics of the above membrane system. The P system changes its configuration by performing a computational step, which consists of the following actions. Firstly, a configuration is a tuple \(C=(w_{1},\ldots ,w_{n})\), where \(w_{i}\) are the multiset content of compartment \(m_{i}\) \((1\le i\le n)\). A computational step is a transition from configuration C to configuration \(C'\), in notation \(C\Rightarrow C'\), which is implemented in the following way. Let \(m_{i}\) be an arbitrary region, consider \(r=u\rightarrow v\in R_{i}\). If \(lhs(r)\sqsubseteq w_{i}\), we subtract the multiset u from \(w_{i}\). The rule applications follow a maximally parallel mode, that is, we subtract the left hand side of a rule until no more multisets can be subtracted. We may use the same rule arbitrary many times. In the same time we collect the objects standing on the right hand sides of the rules. Having finished the subtraction of the left hand sides, we add the right hand sides to the respective regions in the following way. If we have an object (ahere), then we add a to membrane \(m_{i}\). Furthermore, if we have an object (aout), then we add a to the parent membrane of \(m_{i}\) provided \(m_{i}\) is not the skin membrane. In this case a is sent out into the environment. Finally, an object \((a,in_{j})\) means adding a to \(m_{j}\), where \(par(m_{j})=m_{i}\). When all objects with target indication are moved to their correct place, then the new configuration \(C'\) is obtained and we are able to initiate the next computational step. For a more complete description, the reader is referred to Freund and Verlan (2007) and Păun (2002).

As was mentioned before, we assume that \(m_{1}\) is the skin membrane and, additionally, no object in O evolves in the skin membrane. For the sake of simplicity and in order to demonstrate the difference that may sometimes occur between the treatment of elementary and non-elementary membranes in the subsequent constructions, we assume that \(m_{n}\) is an elementary membrane, that is, a membrane containing no submembranes. This assumption does not reduce the validity of our argumentation.

In the next section, additional features of the membrane system are considered. First of all, we may assume that a membrane can disappear in the course of the computation. Namely, the set of objects is extended with an additional  object \(\delta\). If \(\delta\) appears in a rule \(r\in R_{i}\) \((1\le i\le n)\), then the computational step is performed as above, but after that, as the effect of the presence of \(\delta\), the region \(m_{i}\) together with its set of rules disappear from the P system. This means that the objects of \(m_{i}\) are passed over to the parent region (except for \(\delta\), which disappears), and the rules in \(R_{i}\) are not applied anymore. Note that the outermost region (the skin region) cannot dissolve. In the case of membrane dissolution, we will adopt a more convenient definition as will be described in the subsequent section.

Secondly, we can add promoters and inhibitors to the rules. These are multisets of objects that regulate the rule applications in a way that the promoter \(prom(r)\in {\mathcal{M}\mathcal{S}}(O)\) being assigned to rule \(r\in R_{i}\) means that prom(r) must be present in \(m_{i}\) by any application of r. In our notation, r can only be applied if, besides the condition \(lhs(r)\sqsubseteq m_{i}\), \(prom(r)\sqsubseteq m_{i}\) holds provided \(r\in R_{i}\) for some \(1\le i\le n\). While the inhibitor inh(r), where \(inh(r)\in {\mathcal{M}\mathcal{S}}(O)\), prevents the rule \(r\in R_{i}\) from being applied if any object of inh(r) is present in the region i \((i\in \{1,\ldots ,n\})\). That is, the rule \(r\in R_{i}\), where \(1\le i\le n\), is blocked if \(inh(r)\sqcap w_{i}\ne \emptyset\).

Finally, we make it more accurate what we mean by a membrane system with boundary rules. The fully observable base sets and observable sets are defined in the previous section. We adapt this notion to the case of P systems. The extra notion compared to P systems is the underlying approximation space together with rule applications regulated by observability. The observability condition can be considered a tool for expressing imperfect information. We apply it to P systems to impose a global context condition, allowing for powerful synchronization across the membranes as the following definition shows.

Definition 2

(P system with boundary rules) Let \(\varPi = (O,\mu , w_{1},\dots ,w_{n}, R_{1},\dots ,R_{n})\) be a P system of order n and let \({\mathfrak{B}} \subseteq {\mathcal {MS}}(O)\) be a set of base multisets. Let us impose the following condition: a rule \(u \rightarrow (v_{1}, here)(v_{2}, out)(v_{3}, in)\) is applicable in a configuration \(C = (x_{1},...,x_{n})\) if, in addition to the standard semantics described following Definition 1, u is observable with respect to \({\mathcal {X}} = \{x_{1}, x_{2}, \ldots , x_{n}\}\). Then \(\varPi\) is called a P system with boundary rules.

Observe that, as the membrane system evolves, the applicability of the rules may change. The primary reason is, naturally, the emergence and disappearing of the objects constituting the multisets of the regions, but, the other reason may be that the observability property of the base multisets changes. When the membrane system evolves, a multiset can turn from being observable into non-observable and vice versa.

Now we are in a position to state our first assertion. In the proofs that follow parallel rule application is simulated by sequential one, and for this purpose a set \(O'=\{a' \mid a\in O\}\) is introduced. An application of each rule of the form \(u\rightarrow v\) is simulated by one or more rules transforming u to \(v'\), and only at the end of simulation of each computational step are the primed objects rewritten to the non-primed ones.

We claim that the boundary rules in sequential mode and with non-cooperative rules are enough to simulate symbol object P systems with maximally parallel mode and cooperative rules.

Theorem 1

Let \(\varPi =(O,\mu ,w_{1},\ldots ,w_{n},R_{1},\ldots ,R_{n})\) be a P-system of degree n with cooperative rules and maximally parallel execution mode. Then there exists a P system \(\widetilde{\varPi }\) with non-cooperative, boundary rules and sequential mode such that \(\varPi\) and \(\widetilde{\varPi }\) compute the same subsets of \({\mathbb{N}}\).

Proof

Let \(\varPi =(O,\mu ,w_{1},\ldots ,w_{n},R_{1},\ldots ,R_{n})\) be a membrane system as above. We define a membrane system \(\widetilde{\varPi }\) with boundary rules as follows. The main characteristic of the construction is that we separate the steps where the rule applications are simulated from the steps where the newly introduced objects are finding their place. This is accomplished by introducing primed objects for every object and, in the end of the simulation of a maximally parallel step, we exchange the primed objects for their unmarked counterparts. In the sequel, the phase where the rule applications are treated will be termed the rule application phase while the process where the primed objects are transformed into non-primed objects will be termed the communication phase.

In addition, for each object \(a\in O\) so-called anti objects exist. They are denoted by \(-\,a\). The anti-objects push the original objects into the inner part of the membrane, thus restricting their further applicability in this way. A very similar notion of anti-objects were introduced in Alhazov et al. (2014), the difference between the two notions is delicate: in our case the anti-object moves its object into the inner part of the membrane but the object is not eradicated completely. Its presence may contribute to forming the inner part and, thus, the boundary of the membrane as the P system evolves. Hence, the objects “expelled” into the inner part can still exert influence on the evolution of the P system. Therefore, the objects \(-\,a\) only mimic the role of anti-objects, they interact with the original objects in a subtle way by means of changing the structure of the underlying multiset approximation space. Most importantly, objects and anti-object do not eliminate each other by explicit rules of the membrane system. Hence, it could be a question of discussion to what extent the emerging rules can be considered non-cooperative ones. As a shorthand, let \((-u)\) stand for \(-u_{1}\ldots -u_{k}\) if \(u=u_{1}\ldots u_{k}\).

We assume that, besides the objects O and the anti-objects, we have some designated objects, which are local or global control objects. None of them counts in the result computed by the membrane system. This approach is similar to the so-called terminal filtering, which was applied, for example, in Alhazov and Freund (2015). In our situation, the auxiliary objects do not mix with the usual objects. Either the auxiliary objects come up unchanged on both sides of a rule or the rule contains no objects  other than auxiliary objects. Hence, our version of “terminal filtering” seems to be very weak.

Regarding the control objects, we reserve a separate membrane for each membrane in the newly constructed P system: if \(m_{i}\) is a membrane in our construction, then the control objects are placed in a membrane denoted by \(m_{\underline{i}}\), except for the skin membrane. We assume that \(m_{\underline{i}}\) is elementary and is a child of \(m_{i}\). The skin membrane has no child of this kind. Furthermore, we assume that the skin membrane, which is membrane 1, is the output membrane both for \(\varPi\) and for \(\widetilde{\varPi }\) and no evolution rule concerning the objects of O occurs in the skin membrane. In what follows, we present the description of the multiset approximation space.

Since the newly defined P system does not enjoy maximally parallel rule application, the auxiliary objects \(O'\) for the objects constitute a “real” part of \(\widetilde{\varPi }\): they appear in the rules of \(\widetilde{\varPi }\). In accordance with this, we introduce a convenient notation for the subsequent proof. Let \(u\rightarrow v \in R_{i}\) for some \(2\le i\le n\) be a rule in \(m_{i}\) and assume \(v_{1},\ldots ,v_{k}\) are the objects in v without the target indicators. Then, if \(r'\) is the rule corresponding to r in \(\widetilde{\varPi }\), the notation \(v'\) standing on the right hand side of \(r'\) is understood as follows. We move the objects \(v_{j}'\) \((1\le j\le k)\) to their respective places except for the case when \(par(m_{i})=skin\). In this case, the objects moving to the skin membrane are not primed. Furthermore, let us assume that the object d introduced below is in the environment, outside the skin membrane. This supposition is not inevitable, but makes the presentation simpler. In what follows, we distinguish the membranes of the newly constructed P system from those of the old one by writing \(\widetilde{m}\) instead of m. Similarly, we write \(\widetilde{w}\) instead of w.

$$\begin{aligned} {O}_{1}= & {} O\cup O'\cup (-O)\cup \{\alpha , \alpha ', \varepsilon , \tau , d\}\cup \\{} & {} \{\beta _{r}\mid r=u\rightarrow v\in R\}\cup \\{} & {} \{\alpha _{i}, \gamma _{i}, \gamma _{i}^{\spadesuit }, \gamma _{i}^{\clubsuit }, \varphi _{i}, \pi _{i}\mid 2\le i\le n\},\\ {\mathfrak{B}}'= & {} \{\alpha u, \varepsilon u\mid u\rightarrow v\in R\}\cup \\{} & {} \{{\alpha '\beta _{r}\alpha _{i}u, \alpha _{i} d, \tau d}\mid r=u\rightarrow v\in R_{i}\}\cup \\{} & {} \{\gamma _{i}u, \gamma _{i}\gamma _{i},, \gamma ^{\clubsuit }_{i}\gamma ^{\clubsuit }_{i}, \pi _{i}\pi _{i}, \gamma ^{\spadesuit }_{i}u, \gamma ^{\spadesuit }_{i} d, \gamma _{i}u\gamma ^{\clubsuit }_{i}\mid 2\\{} & {} \le i\le n, u\rightarrow v\in R_{i}\}\cup \\{} & {} \{a(-a)\mid a\in O\}\cup \\{} & {} \{\alpha ' \varphi _{2}\ldots \varphi _{k}\} \end{aligned}$$

and

$$\begin{aligned} \widetilde{w}_{1}= & {} \alpha ,\\ \widetilde{w}_{i}= & {} w_{i}\sqcup \{\beta _{r}\pi _{i}\mid r\in R_{i}\} \text { if }2\le i\le n,\\ \widetilde{w}_{\underline{i}}= & {} \alpha _{i}\text { if }2\le i\le n, \end{aligned}$$

where the multisets \(\widetilde{w}_{1}\), \(\widetilde{w}_{2}\), \(\widetilde{w}_{\underline{2}}, \ldots , \widetilde{w}_{n}, \widetilde{w}_{\underline{n}}\) denote the initial multisets in the membranes of \(\widetilde{\varPi }\). We can define the sets of rules as follows:

$$\begin{aligned} {R}'_{1}= & {} \{\alpha \rightarrow \alpha ', \alpha '\rightarrow \varepsilon \},\\ {R}'_{i}= & {} \{\beta _{r}\rightarrow (-u)v'\beta _{r}, \gamma ^{\spadesuit }_{i}\rightarrow \varphi _{i}\gamma ^{\clubsuit }_{i}\pi _{i}(\varepsilon _{i}\gamma _{i}, in_{\widetilde{m}_{\underline{i}}})\mid u\rightarrow v\in R_{i}\}\\{} & {} \text { provided } 2\le i\le n,\\ R_{\underline{i}}'= & {} \{\alpha _{i}\rightarrow \gamma _{i}(\gamma ^{\spadesuit }_{i}\gamma ^{\clubsuit }_{i}, out), \gamma _{i}\rightarrow \tau , \tau \rightarrow \tau \}\text { provided } 2\le i\le n. \end{aligned}$$

Let us give a brief explanation on how the rules operate. The example following this proof also gives some clues about the operation of the simulation. The process starts with the rule \(\alpha \rightarrow \alpha '\). When the rule is applied, we know that there is an applicable rule in some of the compartments of \(\varPi\) by virtue of the fact that \(\alpha u\in {\mathfrak{B}}'\) for every \(r=u\rightarrow v\in R\). The fully observable base sets \(\{\alpha '\beta _{r}\alpha _{i}u\mid i\in I, r\in R_{i}\}\) make us possible to simulate a rule application, since \(\beta _{r}\in b^{i}(\widetilde{m}_{i})\) if \(r=u\rightarrow v\in R_{i}\) is applicable. Let us fix an index \(2\le i\le n\) and let the rule \(r\in R_{i}\) be arbitrary. We recall that the skin membrane of \(\varPi\) does not have rules manipulating the objects in O. If \(lhs(r)\sqsubseteq w_{i}\), then, as was mentioned above, because of \(\alpha '\beta _{r}\alpha _{i}u\in {\mathfrak{B}}'\), \(\beta _{r}\) falls on the boundary of \(\widetilde{m}_{i}\) and, hence, \(\beta _{r}\rightarrow (-u)v'\beta _{r}\) is applicable. This involves that we simulate the changes in \(w_{i}\) by adding the objects denoted by \(v'\) to their respective places and, at the same time, we annihilate the objects of u from \(\widetilde{w}_{i}\). Hence, our rules remain non-cooperative in the constructed P system \(\widetilde{\varPi }\) taking into account the remark in the beginning of the proof. When there are no more rules applicable in \(m_{i}\), the control element \(\alpha _{i}\) evolves into \(\gamma _{i}\) in the membrane \(\widetilde{m}_{\underline{i}}\) and \(\gamma ^{\spadesuit }_{i}\) and \(\gamma ^{\clubsuit }_{i}\) are emitted into \(\widetilde{m}_{i}\). The appearance of \(\gamma ^{\spadesuit }_{i}\) and \(\gamma ^{\clubsuit }_{i}\) symbolizes the end of the rule application phase for \(\widetilde{m}_{i}\), which is made explicit by the emergence of \(\varphi _{i}\) in \(\widetilde{m}_{i}\) by virtue of the rule \(\gamma ^{\spadesuit }_{i}\rightarrow \varphi _{i}\gamma ^{\clubsuit }_{i}\pi _{i}(\varepsilon _{i}\gamma _{i}, in_{\widetilde{m}_{\underline{i}}})\). The fact \(\alpha '\varphi _{2}\ldots \varphi _{n}\in {\mathfrak{B}}'\) synchronizes the operation of the membranes. Only if each compartment has finished its work can we shift to the communication phase by performing the rule \(\alpha '\rightarrow \varepsilon\). The object \(\pi _{i}\) on the right hand side of the rule is a control object that could have remained from previous applications. Those remaining objects are pushed into the inner part of \(\widetilde{m}_{i}\) taking into account the relations \(\pi _{i}\pi _{i}\in {\mathfrak{B}}'\). What happens when we change from \(\alpha _{i}\) to \(\gamma _{i}\) too early, that is, there are still applicable rules that have remained in \(m_{i}\), yet? In this case, since \(\gamma ^{\spadesuit }_{i}u\in {\mathfrak{B}}'\) for any \(u\in {\mathcal{M}\mathcal{S}}(O)\), where \(u\rightarrow v\in R_{i}\), the object \(\gamma ^{\spadesuit }_{i}\) cannot evolve in \(\widetilde{m}_{i}\). Instead, by virtue of \(\gamma _{i} u\gamma ^{\clubsuit }_{i}\in {\mathfrak{B}}'\) for every \(r=u\rightarrow v\in R_{i}\), the fact \(\gamma _{i}u\gamma ^{\clubsuit }_{i}\in {\mathfrak{B}}'\) pushes \(\gamma _{i}\) onto the boundary of \(\widetilde{m}_{\underline{i}}\) and, at the same time, makes \(\gamma _{i}u\gamma ^{\clubsuit }_{i}\) fully observable since \(u\gamma ^{\clubsuit }_{i}\) is on the boundary of \(\widetilde{m}_{i}\). By this, the rule \(\gamma _{i}\rightarrow \tau\) becomes applicable, which introduces the trap object \(\tau\).

Now we demonstrate how the communication phase can be simulated. The communication phase simply means substituting every object \(a'\in O'\) with \(a\in O\).

$$\begin{aligned} {O}_{2}= & {} \{\lambda _{i}, \lambda _{i}'\mid 2\le i\le n\},\\ {\mathfrak{B}}''= & {} \{\varepsilon a'\mid a\in O\}\\{} & {} \cup \{\varepsilon _{i} d, \lambda _{i}a', \lambda _{i}'a', \lambda _{i}'d, \varphi _{i}\varphi _{i}, \lambda _{i}\lambda _{i}, \mid 2\le i\le n, a\in O\}\\{} & {} \cup \{\varepsilon \pi _{2}\ldots \pi _{n}\}, \end{aligned}$$

where

$$\begin{aligned} R''_{1}= & {} \{\varepsilon \rightarrow \alpha \},\\ R''_{i}= & {} \{a'\rightarrow a\mid a\in O\}\\{} & {} \cup \{\varepsilon _{i}\rightarrow \lambda _{i}(\lambda _{i}', out)\mid 2\le i\le n\} \\{} & {} \cup \{\lambda _{i}\rightarrow \tau , \lambda _{i}'\rightarrow \pi _{i}\varphi _{i}(\lambda _{i}, in_{\widetilde{m}_{\underline{i}}})\mid 2\le i\le n\}. \end{aligned}$$

Finally, we are able to put together the components of the membrane system \(\widetilde{\varPi }=(\widetilde{O},\widetilde{\mu },\widetilde{w}_{1},\widetilde{w}_{2}, \widetilde{w}_{\underline{2}}\ldots ,\widetilde{w}_{n}, \widetilde{w}_{\underline{n}}, \widetilde{R}_{1},\widetilde{R}_{2}, \widetilde{R}_{\underline{2}}\ldots ,\widetilde{R}_{n}, \widetilde{R}_{\underline{n}})\) with boundary rules and underlying multiset approximation space \({\mathfrak{B}}\), where

$$\begin{aligned} \widetilde{O}= & {} O_{1}\cup O_{2},\\ {\mathfrak{B}}= & {} {\mathfrak{B}}'\cup {\mathfrak{B}}'',\\ \widetilde{R}_{1}= & {} R_{1}'\cup R_{1}'',\\ \widetilde{R}_{i}= & {} R_{i}'\cup R_{i}'',\\ \widetilde{R}_{\underline{i}}= & {} R_{\underline{i}}'\;\;\;(2\le i\le n). \end{aligned}$$

Moreover, \(\widetilde{\mu }\) is the same as \(\mu\), except for the fact that every \(\widetilde{m}_{i}\in \mu\) that is not the skin membrane is augmented with an additional child membrane \(m_{\underline{i}}\), which is an elementary membrane \((2\le i\le n)\). The multisets \(\widetilde{w}_{1},\widetilde{w}_{2}, \widetilde{w}_{\underline{2}}\ldots ,\widetilde{w}_{n}, \widetilde{w}_{\underline{n}}\) were defined above.

Let us give an informal explanation of how the communication step is simulated. As it was remarked before, the communication phase models the placement of the objects on the right hand side of the rules into their respective membranes. The start of the communication phase is indicated by the appearance of \(\varepsilon\) in the skin membrane. Then, by the fact \(\varepsilon a'\in {\mathfrak{B}}''\) \((a'\in O')\), the rule \(a'\rightarrow a\) is applicable. As before, let \(2\le i\le n\) be arbitrary. The objects \(a'\) are transformed back to the objects a at this stage. When there are no more \(a'\in \widetilde{w}_{i}\), then \(\varepsilon _{i}\rightarrow \lambda _{i}(\lambda _{i}',out)\) is applied. The rules \(\lambda _{i}'\rightarrow \pi _{i}\varphi _{i}(\lambda _{i}, in_{\widetilde{m}_{\underline{i}}})\) are triggered by the fact \(\lambda _{i}'d \in {\mathfrak{B}}''\), which make in the end the application of \(\varepsilon \rightarrow \alpha\) possible by reason of the fact \(\varepsilon \pi _{2}\ldots \pi _{n}\in {\mathfrak{B}}''\). What can be said when the objects \(\lambda _{i}, \lambda _{i}'\) are introduced too early and there are still \(a'\) in \(\widetilde{m}_{i}\)? Assume \(a'\in \widetilde{w}_{i}\) for some \(a'\in O'\). In this case, the object \(\lambda _{i}'\) is stuck in the inner part of \(\widetilde{m}_{i}\), that is, in \(l(\widetilde{m}_{i})\), however, the rule \(\lambda _{i}\rightarrow \tau\) can be applied by virtue of \(\lambda _{i}a'\in {\mathfrak{B}}''\). But this introduces the trap object \(\tau\). Hence, the computation remains meaningful only if, in each membrane, the point when the elements \(a'\) are eliminated is guessed correctly. In this case, \(\alpha\) appears in the skin membrane and a new computational step can be simulated. \(\square\)

Let us look at an example, to see how a P system with maximal parallel execution mode is simulated in our construction. Our example contains only one additional membrane besides the skin membrane, since the intention is to demonstrate how the maximal parallel step is actually simulated together with keeping the membrane systems as simple as possible to facilitate reading.

Example 2

Let \(\varPi =(O,\mu , w_{1}, w_{2}, R_{1}, R_{2})\) be a P-system, where

$$\begin{aligned} w_{2}= & {} a^{3}b^{2}c,\\ R_{2}= & {} \{r_{21}:ab\rightarrow a(c, out), r_{22}:a^{2}c\rightarrow b\}.\\ \end{aligned}$$

moreover, let us assume that \(w_{1}\) is the null multiset and \(R_{1}\) is empty. We simulate the maximally parallel step that consists of the applications of the rules \(r_{21}\), \(r_{22}\) in \(R_{2}\). Initially, \(\widetilde{\varPi }=(O\cup O',\widetilde{\mu }, \widetilde{w}_{1}, \widetilde{w}_{2}, \widetilde{w}_{\underline{2}}, R'_{1}\cup R_{1}'', R'_{2}\cup R''_{2}, R_{\underline{2}}' )\), where

$$\begin{aligned} \widetilde{\mu }= & {} [\,[\,[]_{\underline{2}}\,]_{2} \,]_{1},\\ \widetilde{w}_{1}= & {} \alpha ,\\ \widetilde{w}_{2}= & {} a^{3}b^{2}c\sqcup \beta _{r_{21}}\beta _{r_{22}}\pi _{2},\\ \widetilde{w}_{\underline{2}}= & {} \alpha _{2},\\ \end{aligned}$$

In addition,

$$\begin{aligned} R'_{1}= & {} \{\alpha \rightarrow \alpha ', \alpha '\rightarrow \varepsilon \},\\ {R}'_{2}= & {} \{r'_{21}:\beta _{r_{21}}\rightarrow (-ab)a'(c, out)\beta _{r_{21}}, r'_{22}:\beta _{r_{22}}\rightarrow (-a^{2}c)b'\beta _{r_{22}},\\{} & {} \gamma ^{\spadesuit }_{2}\rightarrow \varphi _{2}\gamma ^{\clubsuit }_{2}\pi _{2}(\varepsilon _{2}\gamma _{2}, in_{\widetilde{m}_{\underline{2}}})\},\\ R_{\underline{2}}'= & {} \{\alpha _{2}\rightarrow \gamma _{2}(\gamma ^{\spadesuit }_{2}\gamma ^{\clubsuit }_{2}, out), \gamma _{2}\rightarrow \tau , \tau \rightarrow \tau \},\\ R''_{1}= & {} \{\varepsilon \rightarrow \alpha \},\\ R''_{2}= & {} \{a'\rightarrow a\mid a\in O\}\\{} & {} \cup \{\varepsilon _{2}\rightarrow \lambda _{2}(\lambda _{2}', out)\}\\{} & {} \cup \{\lambda _{2}\rightarrow \tau , \lambda _{2}'\rightarrow \pi _{2}\varphi _{2}(\lambda _{2}, in_{\widetilde{m}_{\underline{2}}})\},\\ \end{aligned}$$

Now we define the base sets for the approximation space:

$$\begin{aligned} {\mathfrak{B}}'= & {} \{\alpha ab, \alpha a^{2}c, \varepsilon ab, \varepsilon a^{2}c\}\\{} & {} \cup \{{\alpha '\beta _{r_{21}}\alpha _{2}ab, \alpha '\beta _{r_{22}}\alpha _{2}a^{2}c, \alpha _{2} d, \tau d}\}\\{} & {} \cup \{\gamma _{2}ab, \gamma _{2}a^{2}c, \gamma _{2}\gamma _{2}, \gamma ^{\clubsuit }_{2}\gamma ^{\clubsuit }_{2}, \pi _{2}\pi _{2},\\{} & {} \gamma ^{\spadesuit }_{2}ab, \gamma ^{\spadesuit }_{2}a^{2}c,\gamma ^{\spadesuit }_{2} d, \gamma _{2}ab\gamma ^{\clubsuit }_{2}, \gamma _{2}a^{2}c\gamma ^{\clubsuit }_{2}\}\\{} & {} \cup \{a(-a)\mid a\in O\}\\{} & {} \cup \{\alpha ' \varphi _{2}\},\\ {\mathfrak{B}}''= & {} \{\varepsilon a'\mid a\in O\}\\{} & {} \cup \{\varepsilon _{2} d, \lambda _{2}a', \lambda _{2}'a', \lambda _{2}'d, \varphi _{2}\varphi _{2}, \lambda _{2}\lambda _{2} \mid a\in O\}\\{} & {} \cup \{\varepsilon \pi _{2}\}. \end{aligned}$$

We follow some of the computational steps. Firstly, let us examine what happens in membrane 2 when rules \(r_{21}\) and \(r_{22}\) are applied in the maximally parallel step. Since \(ab\sqsubseteq w_{2}\) and \(\alpha ab\in {\mathfrak{B}}'\), the object \(\alpha\) is on the boundary of \(\widetilde{m}_{1}\) and \(\alpha ab\) is fully observable, hence, \(\alpha \rightarrow \alpha '\) is applicable. This is the only rule that can be applied in \(\widetilde{\varPi }\) at that step. Now, \(\alpha '\) is introduced in \(\widetilde{m}_{1}\). Since \(\alpha '\beta _{r_{21}}\alpha _{i}ab\in {\mathfrak{B}}'\), and \(\alpha '\beta _{r_{21}}\alpha _{i}ab\) is fully observable, then \(\beta _{r_{21}}\) is on the observable boundary of \(w_{2}\). Thus we can apply \(\beta _{r_{21}}\rightarrow (-ab)a'(c, out)\beta _{r_{21}}\). Continuing in this spirit, we obtain the following reduction sequence:

$$\begin{aligned}{} & {} a^{3}b^{2}c\beta _{r_{21}}\beta _{r_{22}}\pi _{2}\\{} & {} \quad \rightarrow (-ab)a'(c,out)a^{3}b^{2}c\beta _{r_{21}}\beta _{r_{22}}\pi _{2}\\{} & {} \quad \rightarrow (-a^{3}bc)a'b'(c,out)a^{3}b^{2}c\beta _{r_{21}}\beta _{r_{22}}\pi _{2}. \end{aligned}$$

If we perform \(\alpha _{2}\rightarrow \gamma _{2}(\gamma ^{\spadesuit }_{2}\gamma ^{\clubsuit }_{2}, out)\) in \(\widetilde{m}_{\underline{2}}\) next, then \(\gamma _{2}\) will appear in \(\widetilde{w}_{\underline{2}}\) and \(\gamma ^{\spadesuit }_{2}\) and \(\gamma ^{\clubsuit }_{2}\) will be introduced to \(\widetilde{m}_{2}\). Now, since \((-a^{3}bc)a^{3}bc\sqsubseteq l(\widetilde{m}_{2})\), none of the base sets in which \(\gamma _{2}\) appears can be fully observable. Hence, the rule \(\gamma _{2}\rightarrow \tau\) is suppressed. On the other hand, \(\gamma ^{\spadesuit }_{2}\) can evolve because of \(\gamma ^{\spadesuit }_{2}d\in {\mathfrak{B}}'\). This results in \(\widetilde{w}_{2}=(-a^{3}bc)a'b'a^{3}b^{2}c\beta _{r_{21}}\beta _{r_{22}}\pi _{2}\pi _{2}\gamma ^{\clubsuit }_{2}\gamma ^{\clubsuit }_{2}\phi _{2}\). Observe that c is not an element of \(\widetilde{w}_{2}\). By the same rule, a copy of \(\gamma _{2}\) is moved into \(\widetilde{m}_{\underline{2}}\). This means that \(\alpha '\) falls on the observable boundary of \(\widetilde{m}_{1}\) and, hence, \(\alpha '\rightarrow \varepsilon\) is applicable. The erasure of the possibly emerging objects \(a', b'\) is the subsequent step of the simulation in order to return to the next computational step of the computation.

We examine now the case when the simulation of a maximally parallel step would end prematurely. Assume that, in the previous process, we have simulated rule \(r_{21}\) correctly, but, instead of continuing with the simulation of \(r_{22}\) we abandon that sequence of rule applications. This means that we apply rule \(\alpha _{2}\rightarrow \gamma _{2}(\gamma ^{\spadesuit }_{2}\gamma ^{\clubsuit }_{2}, out)\) in \(\widetilde{m}_{\underline{2}}\) as the next step following \(r'_{21}\). Then the configuration \((-ab)a'a^{3}b^{2}c\beta _{r}\pi _{2}\gamma ^{\spadesuit }_{2}\gamma ^{\clubsuit }_{2}\) arises in \(\widetilde{m}_{2}\). Now, since \(\alpha _{2}\) is replaced by \(\gamma _{2}\) in \(\widetilde{m}_{\underline{2}}\) and \(a^{2}c\in b^{i}(\widetilde{m}_{2})\), the base set \(\gamma _{2}a^{2}c\) is fully observable and the rule \(\gamma _{2}\rightarrow \tau\) can be applied, which introduces the trap object \(\tau\). On the other hand, since \(\gamma ^{\spadesuit }_{2}a^{2}c\in {\mathfrak{B}}'\), the object \(\gamma ^{\spadesuit }_{2}\) is sent into the inner part of \(\widetilde{m}_{2}\), while the fact \(\gamma _{2}a^{2}c\gamma ^{\clubsuit }_{2}\in {\mathfrak{B}}'\) ensures that \(a^{2}c\) remains on the boundary of \(\widetilde{m}_{2}\) preserving the observability of \(\gamma _{2}\).

4 Boundary rules and auxiliary membrane computational features

In this section, it is investigated how boundary rules can replace both membrane dissolution and promoter/inhibitor rules. In the sequel, to make matters simpler, we assume the presence of the maximally parallel execution mode. However, it should be clear by the above discussion that after having eliminated the membrane dissolution or the promoter/inhibitor rules we are able to eliminate the remaining maximally parallel execution and simulate the P system with non-cooperative rules in sequential mode.

Let us begin our discussion with membrane dissolution. We assume maximally parallel execution mode and we prove that boundary rules are enough to simulate membrane dissolution. We recall that the symbol \(\delta\) marks a region for dissolution. When it is introduced in the membrane by an application of a rule, then, after the maximally parallel and communication steps, the actual membrane containing \(\delta\) disappears. Its objects, except for \(\delta\), move to the parent membrane and its rules cannot be applied anymore.

Let us choose a rather convenient way of interpreting the behaviour of the membrane system in the presence of the object \(\delta\): we do not dissolve the membranes where \(\delta\) is introduced. However, we implement the synchronization demanded by the \(\delta\) object as follows: firstly, the rule applications are performed together with the communication phase. A timing construct ensures that these processes finish at the same time in each membrane. Then we check whether \(\delta\) is present in the membrane. In this case, the necessary redirection of the objects into the parent membrane is performed. The process must be recursive: if the parent membrane of a membrane already contains \(\delta\), then the objects must find its parent membrane and so on. Let us choose the easier way here: instead of a bottom-up traversal of the tree let us iterate this process sufficiently many times in order to ensure that the placement of the objects finishes.

As before, new sets of objects, “anti-objects”, are introduced: if a is any object, the pair a, \(-a\) extinguish each other, or, better to say, an object a is neutralized by the introduction of the anti-object \(-a\), however, they can affect the further evolution of the P system as was discussed in the proof of Theorem 1. In effect, this means that \(a(-a)\) moves into the inner part of the membrane. This is the tool that ensures that every membrane of our constructed P system, \(\widetilde{\varPi }\), should contain the correct number of objects when it turns to simulation of rules of \(\varPi\). As before, we write \((-u)\) for \(-u_{1}\ldots -u_{k}\) if \(u=u_{1}\ldots u_{k}\).

Theorem 2

Let \(\varPi =(O,\mu ,w_{1},\ldots ,w_{n},R_{1},\ldots ,R_{n})\) be a symbol object P system of degree n with membrane dissolution and maximally parallel execution mode. Then there exists a P system \(\widetilde{\varPi }\) with non-cooperative boundary rules and sequential mode such that \(\varPi\) and \(\widetilde{\varPi }\) compute the same subsets of \({\mathbb{N}}\).

Proof

Let \(\varPi =(O,\mu ,w_{1},\ldots ,w_{n},R_{1},\ldots ,R_{n})\) be a symbol object P system of degree n with membrane dissolution. As we have discussed before, it is enough to show that membrane dissolution can be simulated with non-cooperative boundary rules in the maximally parallel mode, since the maximally parallel execution mode can then be replaced by a sequential execution mode by Theorem 1. Since we return to the maximally parallel execution mode even by the simulating P systems, in the following proof we omit dealing with primed objects. The objects directly move to their appropriate places during the rule applications and the system simply “knows” when a maximal multiset of rules has been chosen. When the maximally parallel rule application is finished, we have to ensure the correct placement of the objects but only in connection with \(\delta\). The novelty, compared to the previous section, is that the rearrangement of the objects of the P system due to the presence of \(\delta\) must also be translated in terms of the boundary rules. Having finished the rule applications, the objects of a compartment where \(\delta\) is present must move to the parent membrane and this process is continued till each compartment containing a \(\delta\) is emptied (except for the \(\delta\)). The next computational step can only take place after having removed every object from the membranes with \(\delta\), however, \(\delta\) is not removed from a membrane. As before, we denote the membranes of \(\widetilde{\varPi }\) by \(\widetilde{m}\) instead of m and the configurations by \(\widetilde{w}\) instead of w, respectively.

Turning to the simulation itself, the appearance of object \(\alpha\) in the skin membrane will indicate the start of the simulation of a new computational step. The first phase of a computational step is termed the rule application phase and the phase where the objects find their membranes moving through the membranes marked for disappearance by \(\delta\) will be called the \(\delta\) phase. The simulation of the \(\delta\) phase starts with the introduction of \(\varepsilon\) in the skin membrane. However, there is a problem that must be addressed appropriately. Since the objects of O are manipulated not only in the rule application phase but also in the \(\delta\) phase, the entanglement of the two kinds of applications should be avoided. We resolve this by creating “second copies” of the original membrane contents. If \(a\in \widetilde{w}_{i}\) for any membrane \(\widetilde{m}_{i}\) \((1\le i \le n)\) and any object \(a\in O\), then the corresponding object \(a^\#\) will also appear in \(\widetilde{m}_{i}\). Regarding the construction below, first of all it is described how \(\widetilde{\varPi }\) simulates the rule application part of a computational step of \(\varPi\). This part is very similar to the proof of Theorem 1 owing to our effort to remain by a non-cooperative membrane system. The presence of the maximally parallel mode simplifies the construction a bit, however. Then we discuss how membrane dissolution is handled. It is assumed that there are no evolution rules concerning the objects of O in the skin membrane, which is membrane \(\widetilde{m}_{1}\). Moreover, for the sake of simplicity, let us assume that \(\widetilde{m}_{1}=par(\widetilde{m}_{2})\). In the following construction, the initial objects and rules for membrane 2 will differ from those of the rest of the membranes. Additionally, as in Theorem 1, we assume that only objects of O are transported into the skin membrane from its child membranes. We do not indicate this by the formulation of the rules to keep the presentation uniform. This does not mean any restriction, however, since the skin membrane does not contain evolutionary rules for the objects of O. Let \(\widetilde{\varPi }=(\widetilde{O}, \widetilde{\mu },\widetilde{w}_{1},\ldots ,\widetilde{w}_{n},\widetilde{R}_{1},\ldots ,\widetilde{R}_{n})\) be defined as follows.

$$\begin{aligned} \widetilde{O}= {} O\cup {O^{\#}}\cup -O\cup -{O^{\#}}\cup \{\delta \}\cup \{p_{r}\mid r=u\rightarrow v\in R\}\\{} & {} \cup \{\alpha , \alpha ', \varepsilon , \varepsilon ', \varepsilon '', \gamma , \gamma ', \theta , \theta ', \mu , \nu , \tau , \phi , \psi \},\\ {\mathfrak{B}}= {} \{\alpha u\mid u\in {\mathcal{M}\mathcal{S}}(O), u\rightarrow v\in R_{i}, \widetilde{m}_{i}\ne skin\}\\{} & {} \cup \{p_{r}u \alpha '\mid u\in {\mathcal{M}\mathcal{S}}(O), u\rightarrow v\in R_{i}, \widetilde{m}_{i}\ne skin\}\\{} & {} \cup \{\gamma \theta '\mu , \gamma '\theta '\nu \}\cup \{\gamma u \mid r=u\rightarrow v\in R\}\\{} & {} \cup \{{a(-a)}\mid a\in O\}\\{} & {} \cup \{{a^{\#}(-a^{\#})}\mid a\in O\}\\{} & {} \cup \{\varepsilon '\theta '\phi , \varepsilon ''\theta '\psi \}\\{} & {} \cup \{{\varepsilon a^{\#}\delta , \varepsilon 'a\delta }\mid a\in O\}\\{} & {} \cup \{\alpha 'd, \varepsilon d, \theta d, \tau d, \gamma \gamma , \gamma '\gamma ', \varepsilon ''\varepsilon '', \theta '\theta '\},\\ \end{aligned}$$

and

$$\begin{aligned} \widetilde{w_{1}}= & {} \alpha ,\\ \widetilde{w_{2}}= & {} w_{2}w^{\#}_{2}\sqcup \mu \nu \phi \psi \sqcup \{p_{r}\mid r\in R_{i}\},\\ \widetilde{w_{i}}= & {} w_{i}{w}^{\#}\sqcup \{p_{r}\mid \in R_{i}\}_{i}\;\;\; (3\le i\le n). \end{aligned}$$

Let also

$$\begin{aligned} \widetilde{R}= & {} \widetilde{R}_{1}\mathop \cup \limits _{i=2}^{n}\widetilde{R}_{i}, \end{aligned}$$

with \(\widetilde{R}_{i}=\widetilde{R}^{1}_{i}\cup \widetilde{R}^{2}_{i}\), where

$$\begin{aligned} \widetilde{R}_{1}= & {} \{\alpha \rightarrow \alpha ', \alpha '\rightarrow \gamma \theta , \gamma \rightarrow \gamma ', \varepsilon \rightarrow \varepsilon '\theta , \theta \rightarrow \theta '\},\\ \widetilde{R}^{1}_{2}= & {} \{\mu \rightarrow (\varepsilon \gamma '\theta ', out), \nu \rightarrow \tau , \psi \rightarrow \tau , \tau \rightarrow \tau \}\\{} & {} \cup \{ p_{r}\rightarrow vv^{\#}-(uu^{\#})p_{r}\mid u\rightarrow v\in R_{2}\},\\ \widetilde{R}^{2}_{2}= & {} \{a^{\#}\rightarrow (-a)(aa^{\#},out), \varepsilon '\rightarrow \varepsilon '', \phi \rightarrow (\alpha \varepsilon ''\theta ', out), \psi \rightarrow \tau \},\\ \widetilde{R}^{1}_{i}= & {} \{ p_{r}\rightarrow vv^{\#}-(uu^{\#})p_{r}\mid u\rightarrow v\in R_{i}\}\;\; \text{ and }\\ \widetilde{R}^{2}_{i}= & {} \{a^{\#}\rightarrow -a(aa^{\#},out)\}\;\;\;(3\le i\le n). \end{aligned}$$

The structure \(\widetilde{\mu }\) of the P system is the same as that of \(\varPi\). First of all, let us recall that \(\widetilde{m}_{1}\) is supposed to be the skin membrane. Let d be an object in the “environment” outside of \(\widetilde{m}_{1}\). In what follows, the simulation is described in an informal way. As mentioned above, two copies of the objects are created, the original ones being elements of O while the copies are elements of \(O^{\#}\). The rule applications are simulated in membrane \(\widetilde{m}_{i}\) \((2\le i\le n)\) by the rules \(\widetilde{R^{1}_{i}}\), while the rules \(\widetilde{R^{2}_{i}}\) serve for the placement of the objects in connection with the appearance of \(\delta\). Let \(2\le i\le n\) be arbitrary. We discuss the case of the rule applications first. The rule \(\alpha \rightarrow \alpha '\) in \(\widetilde{m}_{1}\) initiates the computational step if \(\alpha\) falls on the boundary of \(\widetilde{m}_{1}\) by virtue of \(\alpha u\in {\mathfrak{B}}\) for every \(r=u\rightarrow v\in R\). If there are applicable rules, then the objects \(p_{r}\) will lie on the boundary of \(\widetilde{m}_{i}\). The rules of \(R_{i}\) are simulated by the non-cooperative rules \(p_{r}\rightarrow v{v^{\#}}-(u{u^{\#}})p_{r}\). This means that we add the objects of \(v^{\#}\) and those of the original right hand side v to \(\widetilde{m}_{i}\) and we also subtract the objects in u and \(u^{\#}\) from \(\widetilde{m}_{i}\) by introducing their “anti-objects”. We continue in this way until there are no more applicable rules in \(m_{i}\). We try to guess when the rule application phase is over by preforming the rule \(\alpha '\rightarrow \gamma \theta\) in \(\widetilde{m}_{1}\). If the rule was applied in the right time, then \(\theta\) changes into \(\theta '\) but \(\gamma\) cannot evolve. In the next time instance, owing to the fact \(\gamma \tau '\mu \in {\mathfrak{B}}\), \(\mu\) evolves and \(\varepsilon \gamma '\theta '\) is placed in membrane 1 and, at the same time, \(\gamma\) is transformed into \(\gamma '\) (since we are in maximally parallel execution mode), which means the annihilation of \(\gamma '\) and \(\theta '\) in \(\widetilde{m}_{1}\) by expelling them from the boundary to the inner part and the \(\delta\) phase can start. Otherwise, if \(r=u\rightarrow v\in R\) would still be applicable in the presence of \(\gamma\), then, by reason of \(\gamma u\in {\mathfrak{B}}\), \(\gamma\) evolves to \(\gamma '\) and, since \(\gamma '\theta '\nu \in {\mathfrak{B}}\), \(\nu\) creates \(\tau\) in membrane 2, which is a trap object.

The implementation of the dissolution part is started with the introduction of \(\varepsilon\) in \(\widetilde{m}_{1}\). By virtue of the facts \(\varepsilon a^{\#}\delta \in {\mathfrak{B}}\), the rule \(a^{\#}\rightarrow (-a)(aa^{\#},out)\) becomes applicable when \(\delta\) is present in the membrane. This mimics expelling an object a into the parent membrane: in our case we have to move its “twin” object simultaneously. Finally, when the placement of the objects finishes, the rule \(\varepsilon \rightarrow \varepsilon '\) is applied. If the rule was applied correctly, then, by \(\varepsilon '\theta '\phi \in {\mathfrak{B}}\), \(\phi \rightarrow (\alpha \varepsilon ''\theta ', out)\) can be performed and a new computational step can be simulated. (\(\varepsilon '\) evolves to \(\varepsilon ''\) in the same time.) Otherwise, by reason of \(\varepsilon 'a\delta \in {\mathfrak{B}}\) \((a\in O)\) and the maximally parallel execution mode, \(\varepsilon '\) and \(\theta\) can evolve simultaneously. Then, because of \(\varepsilon ''\theta '\psi \in {\mathfrak{B}}\), \(\psi\) falls on the boundary of \(\widetilde{m}_{2}\), and, hence, introduces the trap object \(\tau\). \(\square\)

Finally, the simulation of rules with promoter and inhibitor is discussed. We recap again that, in the presence of promoters and inhibitors, we assign to each rule \(r\in {R}\) the so called promoter/inhibitor multisets (prom(r)/inh(r)), which fall under the conditions that r can be applied to \(w_{i}\) only if, besides the usual requirement \(lhs(r)\sqsubseteq w_{i}\), every object of prom(r) is present in \(w_{i}\), that is, \(prom(r)\sqsubseteq w_{i}\) and, in the same time, no element of inh(r) can be found in \(w_{i}\). In other words, \(inh(r)\sqcap w_{i}=\emptyset\). The basic idea of the construction is simple: if the multiset prom(r) is present in the membrane, then we add an object \(p_{r}\) to the membrane such that the execution of rule r becomes enabled. In case an inhibitor object is present, we move \(p_{r}\) into the inner part of the membrane thus preventing the application of the membrane rule. The only difficulty emerging is that we must check whether \(prom(r)\sqsubseteq w_{i}\) and \(inh(r)\sqcap w_{i}\ne \emptyset\) for every membrane \(m_{i}\) and every rule \(r\in R_{i}\) \((1\le i\le n)\) before applying the rule. Since the promoters and inhibitors can compete for the membrane objects, we can only do this one by one for each rule separately. Let us assume that every membrane contains exactly s rules (we apply dummy rules, if necessary). Having finished with the examination of all the rules, the simulation of the actual rule applications can begin. In order to uniform rule applications in the membranes of \(\widetilde{\varPi }\), we also assume that each promoter is of exactly the same length. The key idea is that the checking for the promoters and inhibitors should finish in the same time in each membrane and, thus, we ensure a synchronization for the whole P system. Below, we describe the approximation space together with the rules.

Theorem 3

Let \(\varPi =(O,\mu ,w_{1},\ldots , w_{n}, R_{1},\ldots ,R_{n})\) be a symbol object P system of degree n with promoters/inhibitors and maximally parallel execution mode. Then there exists a P system \(\widetilde{\varPi }\) with non-cooperative boundary rules and sequential mode such that \(\varPi\) and \(\widetilde{\varPi }\) compute the same subsets of \({\mathbb{N}}\).

Proof

Let \(\varPi =(O,\mu ,w_{1},\ldots , w_{n}, R_{1},\ldots ,R_{n})\) be a symbol object P system of degree n with promoters/inhibitors. As before, it is proven that the promoter/inhibitor construction can be eliminated with the help of non-cooperative boundary rules when the the maximally parallel execution mode is applied. From the above constructions it is clear that, having removed promoters/inhibitors from the P system, we are able to substitute the maximally parallel execution mode with a sequential mode following the argumentation of Theorem 1. As before, two copies of the object set is maintained, this time the second copy is denoted by \(\underline{O}\). We also have the set of “anti-objects” both for O and \(\underline{O}\). For notational convenience, let us assume that there are as many as s rules in each compartment and the promoters have equal lengths for each rule (we use dummy objects if necessary). Regarding the membranes of \(\widetilde{\Pi}\), similarly to the proof of Theorem 1, a child membrane \(\widetilde{m}_{\underline{i}}\), which is an elementary membrane, is created for each membrane \(\widetilde{m}_{i}\), except for the skin membrane. The auxiliary objects not underlined are usually belong to membranes \(\widetilde{m}_{\underline{i}}\), while their underlined counterparts are kept or created in the original membrane \(\widetilde{m}_{i}\). In the sequel, we use the notation \(prom(r)=prom(r,1)\ldots prom(r,d)\) for the promoter of the rule r, where \(d=|prom(r)|\) the common length of the promoters. The skin membrane does not have rules for the evolution of the objects in O and, in the course of the computation, it does not contain objects except for t and the objects forming the result. The equations below define the membrane system \(\widetilde{\varPi }=(\widetilde{O}, \widetilde{\mu },\widetilde{m}_{1},\widetilde{m}_{2},\widetilde{m}_{\underline{2}}, \ldots , \widetilde{m}_{n}, \widetilde{m}_{\underline{n}}, \widetilde{R}_{1}, \widetilde{R}_{2}, \widetilde{R}_{\underline{2}}, \ldots , \widetilde{R}_{n}, \widetilde{R}_{\underline{n}})\).

$$\begin{aligned} \widetilde{O}= & {} O\cup -O\cup \underline{O}\cup -\underline{O}\cup \{p^{0}_{r}, {p_{r}}, q^{0}_{r}, q_{r}\mid r\in R\}\\{} & {} \cup \{\alpha ^{k}_{i}, \underline{\alpha ^{k}_{i}}, \underline{\underline{\alpha ^{k}_{i}}}, \beta _{i}\mid 1\le i\le s, 1\le k\le d=|prom(r_{i})|\}\\{} & {} \cup \{\gamma _{1}, \gamma _{2}, t\},\\ {\mathfrak{B}}= & {} \{{\alpha ^{k}_{i}\, prom(r_{i},k)}\mid 1\le i\le s, 1\le k\le d\}\\{} & {} \cup \{{\underline{\alpha ^{k}_{i}}\; \underline{prom(r_{i},k)}}\mid 1\le i\le s, 1\le k\le d\}\\{} & {} \cup \{\beta _{i}a\mid 1\le i\le s, a\in inh(r_{i})\}\\{} & {} \cup \{\underline{\beta _{i}}{a}\mid 1\le i\le s, a\in inh(r_{i})\}\\{} & {} \cup \{\underline{\alpha ^{k}_{i}}t, \underline{\underline{\alpha ^{k}_{i}}}t\mid 1\le i\le s, 1\le k\le d\}\\{} & {} \cup \{\gamma _{1}\underline{\underline{a}}\mid a\in O\}\\{} & {} \cup \{u p^{0}_{r_{i}}t\mid r_{i}=u\rightarrow v\in R_{j}, 1\le i\le s\}\\{} & {} \cup \{{up_{r_{i}}t}\mid r_{i}=u\rightarrow v\in R_{i}, 1\le i\le s\}\\{} & {} \cup \{{\gamma _{1}p^{0}_{r_{i}}t, \gamma _{1}q^{0}_{r_{i}}t, \gamma _{2}t\mid 1\le i\le s}\}\\{} & {} \cup \{p_{r_{i}}q_{r_{i}}\mid 1\le i\le s\}, \text{ and }\\ \widetilde{w}_{1}= & {} t,\\ \widetilde{w}_{i}= & {} w_{i}\underline{w}_{i}\,\underline{\alpha ^{1}_{1}},\\ \widetilde{w}_{\underline{i}}= & {} \alpha ^{1}_{1}\;\;\; (2\le i\le n) \end{aligned}$$

In what follows, we present the set of rules \(\widetilde{R}_{k}=\widetilde{R}_{k}'\cup {\widetilde{R}_{k}}''\) for membrane \(\widetilde{m}_{k}\) and the set of rules \(\widetilde{{R}}_{\underline{k}}\) for \(\widetilde{m}_{\underline{k}}\), where \(\widetilde{m}_{k}\) is a fixed membrane different from the skin membrane and the set of rules \(\widetilde{R}_{1}\) for the skin membrane. We obtain \(\widetilde{R}\) if we let \(\widetilde{R}=\widetilde{R}_{1}\bigcup \cup _{k=2}^{n}(\widetilde{R}_{k}'\cup {\widetilde{R}_{k}}''\cup \widetilde{{R}}_{\underline{k}})\). Let \(2\le k\le n\) be arbitrary.

$$\begin{aligned} \widetilde{R}_{1}= & {} \emptyset ,\\ \widetilde{R}_{k}'= & {} \{\alpha ^{j}_{i}\rightarrow \alpha ^{j+1}_{i}(\underline{\underline{prom(i,j)}}\big (-\underline{\alpha ^{j}_{i}}prom(i,j)\big )\;\underline{\alpha ^{j+1}_{i}}, out)\mid \\{} & {} 1\le i\le s, 1\le j< d=|prom(r_{i})|\}\\{} & {} \cup \{\alpha ^{d}_{i}\rightarrow (p^{0}_{r_{i}}, out)\alpha ^{1}_{i+1}(\underline{\underline{prom(i,d)}}{{-prom(i,d)}}\big (\underline{-\alpha ^{d}_{i}}\big )\;\underline{\alpha ^{1}_{i+1}}, out)\mid \\{} & {} d=|prom(r_{i})|, 1\le i<s\}\\{} & {} \cup \big \{\underline{\alpha ^{j}_{i}}\rightarrow \underline{\underline{\alpha ^{j+1}_{i}}}\big (-\alpha ^{j}_{i}, in_{\widetilde{m}_{\underline{k}}}\big )\mid 1\le i< s, 1\le j\le d\big \}\\{} & {} \cup \big \{\underline{\underline{\alpha ^{j}_{i}}}\rightarrow \underline{\underline{\alpha ^{j+1}_{i}}}\mid 1\le j\le d\big \}\\{} & {} \cup \big \{\underline{\alpha ^{d}_{i}}\rightarrow \underline{\alpha ^{1}_{i+1}}\big (\alpha ^{1}_{i+1}, in_{\widetilde{m}_{\underline{k}}}\big )\mid 1\le i< s\big \}\\{} & {} \cup \big \{\underline{\underline{\alpha ^{d}_{i}}}\rightarrow \underline{\alpha ^{1}_{i+1}}\big (\alpha ^{1}_{i+1}, in_{\widetilde{m}_{\underline{k}}}\big )\mid 1\le i< s\big \}\\{} & {} \cup \big \{\alpha ^{d}_{s}\rightarrow \beta _{1}\big (p^{0}_{r_{s}}\big (\underline{\underline{prom(s,d)}}{{-prom(s,d)}}-\underline{\alpha ^{d}_{s}}\big )\;\underline{\beta _{1}}\big ), out\big \}\\{} & {} \cup \big \{\underline{\alpha ^{d}_{s}}\rightarrow \underline{\beta _{1}}\big (-\alpha _{s}^{d}{\beta _{1}}, in_{\widetilde{m}_{\underline{k}}}\big )\big \}\\{} & {} \cup \big \{\underline{\underline{\alpha ^{d}_{s}}}\rightarrow \underline{\beta _{1}}\big ({\beta _{1}}, in_{\widetilde{m}_{\underline{k}}}\big )\big \}\\{} & {} \cup \big \{\beta _{i}\rightarrow \beta _{i+1}(q^{0}_{r_{i}}(-\underline{\beta _{i}})\;\underline{\beta _{i+1}}, out),\\{} & {} \underline{\beta _{i}}\rightarrow \underline{\beta _{i+1}}(\beta _{i+1}, in_{\widetilde{m}_{\underline{k}}})\mid 1\le i < s\big \}\\{} & {} \cup \big \{\underline{\underline{a}}\rightarrow a\mid a\in O\big \}\\{} & {} \cup \big \{\beta _{s}\rightarrow \gamma _{1}(-\underline{\beta _{s}}, out)\big \}\\ \text{ and }\\\\ {\widetilde{R}}_{m}''= & {} \big \{p_{r_{i}}\rightarrow (-u)v(-\underline{u})\underline{v}\mid r=u\rightarrow v\in R_{j}\big \}\\{} & {} \cup \big \{p^{0}_{r_{i}}\rightarrow p_{r_{i}}, q^{0}_{r_{i}}\rightarrow q_{r_{i}}\mid 1\le i\le s\big \},\\ \overline{R}_{m}= & {} \big \{\gamma _{1}\rightarrow \gamma _{2}, \gamma _{2}\rightarrow \alpha ^{1}_{1}(\underline{\alpha ^{1}_{1}}, out)\big \}. \end{aligned}$$

Again, an informal explanation is presented. Prior to every rule application of \(\varPi\), let us collect the rules that are allowed by their promoters or prohibited by their inhibitors in that computational step. Firstly, we check whether \(prom(r_{i})\sqsubseteq w_{j}\) if \(r_{i}\in R_{j}\). This is done as follows. As above, we write \(prom(r_{i})=prom(r_{i},1)\ldots prom(r_{i},d)\) with \(prom(r_{i},l)\in O\) and \(d=|prom(r_{i})|\). We examine in each membrane separately whether the conditions imposed by \(prom(r_{i})\) and \(inh(r_{i})\) are fulfilled. In order to maintain synchronization, each membrane is supposed to contain exactly as many as s rules, hence the process finishes at the same time everywhere in the P system. Let \(2\le i\le n\) be arbitrary. The process starts by checking rule 1 of \(R_{i}\), which we denote by \(r_{1}\), with the help of \(\alpha ^{1}_{1}\). Note that there is a slight impreciseness here: we do not indicate the fact that \(r_{1}\in R_{i}\) in the notation used for the \(\alpha\)s and \(\beta\)s in order to not overburden our notation and we do not show that \(r_{1}\in R_{i}\) in the indexing of the rule, either. By the stipulation \(\alpha ^{1}_{1}\,prom(r_{1},1)\in {\mathfrak{B}}\) the rule \(\alpha ^{1}_{1}\rightarrow \alpha ^{2}_{1}\,(\underline{\underline{prom(r_{1},1)}}-(\underline{\alpha ^{1}_{1}}\,prom(r_{1},1))\;\underline{\alpha ^{2}_{1}}, out)\) can always be applied provided \(prom(r_{1})\sqsubseteq w_{i}\). This means that \(\alpha ^{2}_{1}\) appears in \(\widetilde{m}_{\underline{i}}\) and \(\underline{\alpha ^{1}_{1}}\) is neutralized by \(-\underline{\alpha ^{1}_{1}}\) in \(\widetilde{m}_{i}\) and \(\underline{\alpha ^{2}_{1}}\) is also sent out to \(\widetilde{m}_{i}\). At the same time, a copy of \(prom(r_{1},1)\) is erased from \(\widetilde{m}_{i}\) by driving \(-prom(r_{1},1)\) into \(\widetilde{m}_{i}\). The auxiliary element \(\underline{\underline{prom(r_{1},1)}}\) is placed in \(\widetilde{m}_{i}\) in order to enable us to restore \(prom(r_{1})\) when necessary. On the other hand, if \(prom(r_{1})\sqsubseteq \widetilde{w}_{i}\) does not hold and it turns out because of the fact \(prom(r_{1},1)\notin \widetilde{w}_{i}\), then \(\underline{\alpha ^{1}_{1}}\) falls at the boundary of \(\widetilde{m}_{i}\) due to \(\underline{\alpha ^{1}_{1}}t\in {\mathfrak{B}}\) and the rule \(\underline{\alpha ^{1}_{1}}\rightarrow \underline{\underline{\alpha ^{2}_{1}}} (-\alpha ^{1}_{1}, in_{\widetilde{m}_{\underline{i}}})\) applies. If the object \(\underline{\underline{\alpha ^{2}_{1}}}\) is introduced, we never return to the objects \(\alpha ^{p}_{1}\), hence \(p^{0}_{r_{1}}\) will not appear in \(\widetilde{m}_{i}\). We iterate the process for the other rules of \(R_{i}\) until we reach \(\beta _{1}\). If \(prom(r_{j})\sqsubseteq \widetilde{w}_{i}\) was indeed the case, then \(p^{0}_{r_{j}}\) is added to \(\widetilde{m}_{i}\). Otherwise, we switch to the objects \(\underline{\alpha ^{k}_{j}}\) and \(\underline{\underline{\alpha ^{k}_{j}}}\) until we reach \(\alpha ^{1}_{j+1}\) and \(p^{0}_{r_{j}}\) will not be introduced. The objects \(p^{0}_{r_{j}}\) indicate that rule \(r_{j}\) satisfies the requirement imposed by \(prom(r_{j})\). Otherwise, if an element of the multiset \(inh(r_{j})\) occurs in \(\widetilde{w}_{i}\) provided \(r_{j}\in R_{i}\), then \(r_{j}\) is inhibited. In this case, the object \(q^{0}_{r_{j}}\) is added to \(\widetilde{w}_{i}\). We check this for every rule one by one going through the objects \(\beta _{j}\) \((1\le j\le s)\). This time each \(\beta _{j}\) is connected with a rule, namely \(r_{j}\in R_{i}\). The overall process is finished when we reach \(\beta _{s}\). There is one administrative task left: we checked the correct simulation of the multisets \(prom(r_{j})\) by eliminating in membrane \(\widetilde{w}_{i}\) the already found elements \(prom(r_{j},l)\) and, in the same time, we sent an object \(\underline{\underline{prom(r_{j},l)}}\) into \(\widetilde{w}_{i}\). The created objects \(\underline{\underline{prom(r_{j},l)}}\) should be transformed back to objects \({{prom(r_{j},l)}}\) in order to give back to \(\widetilde{w}_{i}\) the missing elements. This is done in the presence of \(\gamma _{1}\) and in one maximally parallel step by the rules \(\underline{\underline{a}}\rightarrow a\) \((a\in O)\).

Lastly, the simulation of the rule applications of \(\varPi\) can start with the introduction of \(\gamma _{1}\). Termination is ensured by the conditions \(up^{0}_{r_{i}}t\in {\mathfrak{B}}\), where \(r_{i}=u\rightarrow v\in R_{k}\) for some \(2\le k\le n\) and \(1\le i\le s\). Only when at least one of them is fulfilled can the process be continued. Then the objects \(p^{0}_{r_{i}}\) and \(q^{0}_{r_{i}}\) evolve to \(p_{r_{i}}\) and \(q_{r_{i}}\), respectively. When \(p_{r_{i}}\) is present, the rule \(r_{i}=u\rightarrow v\in R_{k}\) can be simulated by virtue of the fact \(up_{r_{i}}t\in {\mathfrak{B}}\). The appearance of \(q_{r_{i}}\), however, blocks the rule application, since \(p_{r_{i}}q_{r_{i}}\in {\mathfrak{B}}\). At the same time, \(\gamma _{2}\) is introduced and this leads back to the beginning of the process since \(\gamma _{2}\) creates \(\alpha _{1}^{1}\) and \(\underline{\alpha _{1}^{1}}\). \(\square\)

5 Conclusion

In this paper, P systems equipped with an underlying multiset approximation space were studied. The idea grew out from the works of Pawlak concerning rough sets as a way of reasoning about data in artificial intelligence (Pawlak 1982, 1991), and was further pursued in Mihálydeák and Csajbók (2013, 2014), Mihálydeák and Vaszil (2015), Battyányi et al. (2019) and Battyányi and Vaszil (2019). Symbol object membrane systems were considered with the maximally parallel execution mode and it has been shown that the dynamic rule applicability property ensured by the underlying multiset approximation space was enough for simulating the computational properties of the original membrane system by a membrane system with multiset approximation space in sequential mode and operating only with non-cooperative rules. Furthermore, it was demonstrated that the membrane dissolution extension and the presence of promoter/inhibitor rules could be simulated with P systems with appropriate multiset approximation spaces. It is enough to utilize only non-cooperative rules in sequential execution mode in the newly constructed P systems. To sum up, this in turn means that P systems with approximation space operating only with non-cooperative rules and in sequential execution mode can alone compensate for the features of maximally parallel rule execution, membrane dissolution and promoter/inhibitor rules.