A top down approach for describing the acquaintance organisation of multiagent systems
Full text
Salable Computing: Pratie and Experiene Volume 8, Number 1, pp. 4962. http://www.spe.org ISSN 1895-1767 © 2007 SWPS A TOP DOWN APPROACH FOR DESCRIBING THE ACQUAINTACE ORGANISATION OF MULTIAGENT SYSTEMS ∗ JOAQUÍN PEÑA † , RAFAEL CORCHUELO † AND ANTONIO RUIZ-CORTÉS † Abstrat. When the proto ol of a omplex Multi-Agent System (MAS) needs to b e develop ed, the top-down approah emphasises to start with abstrat desriptions that should be rened inrementally until we ahieve the detail level neessary to implement it. Unfortunately, there exist a semanti gap in interation proto ol metho dologies b eause most of them rst, identify whih tasks has to b e performed, and then use low level desription suh as sequenes of messages to detail them. In this pap er, we prop ose an approah to bridge this gap proposing a set of tehniques that are integrated in a methodology alled MaCMAS (Metho dology for Analysing Complex Multiagent Systems). We model MAS proto ols using several abstrat views of the tasks to b e p erformed, and provide a systemati metho d to reah message sequenes desriptions from task desriptions. These tasks are represented by means of interations that shall b e rened systematially into lower-level interations with the tehniques prop osed in this pap er (simpler interations are easier to desrib e and implement using message passing.) Unfortunately, deadlo ks may appear due to protool design mistakes or due to the renement pro ess that we present. Thus, we also propose an algorithm to ensure that protools are deadlo k free. Key words. Top-down approah, agent proto ol desriptions, interation renements, and deadlo k detetion. 1. Intro dution. Agent-Oriented Software Engineering (AOSE) is paving the way for a new paradigm in the Software Engineering eld. This is the reason why a large amount of researh pap ers on this topi are app earing in the literature. One of the main researh lines in AOSE arena is devoted to developing metho dologies for mo delling interation protools (hereafter proto ols) between agents. 1.1. Motivation. When a large system is mo deled, its omplexity b eomes a ritial fator that has to b e managed prop erly to ahieve lear, readable, reusable, and orret speiations [8, 24, 30℄. In the literature, there exist various tehniques to palliate this problem. The most imp ortant are the top down and the bottom up approahs. The top down approah, whih is the fo us of this pap er, rst tries to desrib e software from a high level of abstration, and then go es into further details until they are enough for implementing the system [32℄. When the proto ol of a large MAS has to b e developed, it is desirable to start with an abstrat desription that an b e rened inrementally aording to the top down approah . In our opinion, there exist two drawbaks in most existing methodologies: • On the one hand, most of them provide top-down approahes for mo deling and developing these systems. These metho dologies, general or proto ol-entri, agree on using abstrat messages and sequene diagrams to desrib e proto ols [3, 19, 37, 15℄. Although these messages represent a high level view of a proto ol, whih shall b e rened later, the tasks that are p erformed are formulated as a set of messages. This representation implies that the abstration level falls dramatially sine a task that is done by more than two agents requires several messages to b e represented. This o urs even if we onsider a task b etween two agents. For instane, an information request b etween two agents must be represented with two messages at least (one to ask, and another to reply). This introdues a semanti gap b etween tasks to be p erformed identied at requirements and its internal design sine it is diult to identify the tasks represented in a sequene of messages. This representation b eomes an imp ortant problem regarding readability and manageability of large MAS. • On the other hand, abstrations of proto ols (interations) that allow designers to enapsulate piees of a proto ol that is exeuted by an arbitrary numb er of agents has b een proved adequate in this ontext [3, 4, 19, 20, 38℄. Unfortunately, interations are generally used to hide unneessary details ab out some views of the proto ol. This improves readability and promotes reusability of protool patterns, but they are not used for bridging the existing semanti gap b etween tasks and its representation. 1.2. Contributions. In our proposal, we present a dierent approah to use interations, whih is based on the ideas presented in [4, 26, 38℄. This approah is integrated on a methodology alled MaCMAS that overs top-down and b ottom-up. The top down software proess is skethed in Figure 1.1. As shown, our goal is to ∗ This work has b een partially supp orted by the Europ ean Commission (FEDER) and Spanish Government under CICYT pro jet Web-Fatories (TIN2006-00472) and TIC200302737C0201 † University of Seville, {joaquinp, orhu}lsi.us.es, aruizus.es 49
50 Joaquín Peña, Rafael Corhuelo and Antonio Ruiz-Cortés ! ! " " " " # # " $ " $ Fig. 1.1 . Software proess of renements. bridge this gap using interation abstrations to mo del the tasks to b e p erformed, and Finite State Automata (FSA), represented using UML 2.0, to mo del how to sequene them. Afterwards, we rene them systematially into simpler ones iteratively. This dereases the level of abstration so that the interation we obtain are simpler. Thus, they are desrib ed internally as message sequenes easily, e.g. using AUML [3℄. We have used a proto ol abstration alled multi-role interation (mRI), whih was rst prop osed in [25℄. An mRI is an abstration that enapsulates a set of messages between an arbitrary numb er of agent roles. Furthermore, the renement pro ess we use is based on the ideas presented in [10℄ sine the interation we use is similar to suh used in this work. The renement pro ess relies on analysing the knowledge used by eah role in an mRI and using this information to transform an mRI into several simpler mRIs automatially. An mRI is simpler when both the numb er of partiipant roles and the omputation made by it dereases. The main advantages of rening mRIs are the followings: • First, its internal desription is easier sine the omputation to p erform in the obtained tasks are simpler. • Seond, it is easier to implement interations with a low numb er of partiipant roles [12, page 206℄ [2, 33, 21, 35℄. • Finally, mRIs are ritial deadlo k free regions and they are mutually exlusive. Thus, if the numb er of partiipant roles inreases, the onurreny grain dereases, what is learly not desirable [34℄. The main drawbak of suh renements is that they may lead to deadlo ks. In this pap er, we also prop ose a tehnique to detet if a renement may intro due deadlo ks (see Figure 1.1); it also haraterises them by means of regular expressions that help nding the renements that are not adequate in a given ontext. It is based on analysing the FSA that represents the proto ol of a role model and some previous work on deadlok detetion in the ontext of lient/server interations [5, 14, 36℄. It improves on other results in that it an be automated beause it do es not require any knowledge about the implied, intuitive semantis of the interations as other approahes. This pap er is organised as follows: in Setion 2 we present the related work ab out proto ol mo deling in MAS and ab out interation renements; in Setion 3, we summarise the metho dology where this work is integrated; in Setion 4 we present the example that we use to illustrate our approah; in Setion 5 we present our ideas on
A Top Down Approah for Desribing the Aquaintae Organisation of Multiagent Systems 51 proto ol mo deling and we show the renement tehniques appliable; in Setion 6 we present our approah to the automati deadlo k detetion pro ess; Setion 7, we show our main onlusions. Finally, an app endix that shows an implementation of the ase study using IP. 2. Related work. In this setion we over the related work on proto ol modelling and on renements. 2.1. Proto ol Mo deling. As we showed in the previous setion, we think that most approahes model proto ols at low level of abstration sine they require the designer to mo del omplex o op erations as messagebased proto ols. This issue has b een identied in the Gaia Metho dology [38℄, and also in the work of Caire et. al. [4℄, where the proto ol desription proess starts with a high level view based on desribing tasks as omplex ommuniation primitives (hereafter interations). We think that the ideas presented in b oth pap ers are adequate for this kind of systems where interations are more imp ortant than in ob jet-oriented programming. On the one hand, in the Gaia metho dology, proto ols are mo deled using abstrat textual templates. Eah template represents an interation or task to b e p erformed b etween an arbitrary numb er of partiipants. Furthermore, interations are deorated with the knowledge they pro ess and the p ermissions eah role has, their purp ose, their inputs and outputs, and so on. On the other hand, in [4℄, the authors prop ose a metho dology in whih the rst proto ol view is a stati view of the interations in a system. Eah interation is used by a set of agent roles and they are deorated with the knowledge eah role uses/supplies. Later, the internals of these interations are desrib ed using AUML [3℄. As the metho dologies ited ab ove, we also use interations to deal with the rst stage of protool modeling. Furthermore, we also represent a stati view of interations and the knowledge that eah role onsumes and pro dues in eah of them. Unfortunately, b oth metho dologies do not provide an automati metho d for rening omplex interations into smaller interations that are loser to the implementation level. In this pap er, we elab orate on suh a metho d. Furthermore, in metho dologies that use sequene diagrams to model proto ols, it has b een also identied the need for advaned multi-role interations that enapsulate a piee of proto ol. Unfortunately, in most of them these interations are used to dene reusable patterns of interation or for hiding details in some omplex views. Several examples of suh use of interations an b e found in the literature: For instane, AUML nested proto ols [3℄ or miro-proto ols [19℄. These approahes provide the user with a set of to ols to mo del omplex o-op erations; however, most designers use messagebased desriptions. 2.2. Renements. The need for suh proto ol primitives has also b een identied in other areas suh as distributed systems [11, 7, 23℄. In this ontext suh interations have b een studied for long, and there exist advaned tehniques to rene them (synhrony lo osening renements [10℄). Unfortunately, these renements an lead to deadlo k. Although the theory of renements has reahed a rather elab orate state in other ontexts, f. [1℄, there are not many results on interation renements or the haraterisation of their anomalies. The main reason is that lassial renements are ontext-free, whereas interation renements are ontextsensitive. Thus, the main problem is the establishment of their monotoniity prop erties [10℄, whereby their appliation to subparts of a proto ol preserves the orretness of the whole proto ol with resp et the set of valid synhronisation patterns it desrib es. The stateoftheart tehnique that fous on design time properties was presented in [12℄. It is based on designing a formal pro of system ( ooperating proof ) that allows to prove a suient ondition for monotoniity that ensures that a system omp osed of interations is deadlo k free. It is based on analysing linked interations, i.e., interations that need to b e exeuted in sequene, to avoid deadloks, whih was previously suggested in [9, 18℄. Unfortunately, this tehnique is quite diult to apply in pratie b eause it requires in-depth knowledge of the implied, intuitive meaning of the interations, and no automati proof rules were designed for showing the satisfation of the suient ondition. Our proposal an detet if a renement may lead to a deadlo k situation automatially, and also haraterises the set of traes that lead to it by means of regular expressions. It is based on FSA analysis used by many researhers in the ontext of lient/server deadlo k detetion of interation mo dels [5, 14, 36℄. 3. Engineering MultiAgent Systems with MaCMAS. MaCMAs 1 is a metho dology for engineering omplex multiagent systems that is integrated with several researh elds, i.e. autonomi omputing [31℄, software pro dut lines [27, 28℄ and evolving systems [29℄. 1 see james.eii.us.es/MaCMAS/ for further details on MaCMAS
52 Joaquín Peña, Rafael Corhuelo and Antonio Ruiz-Cortés Requirements Abst. Layer 1 Abst. Layer 2 Abst. Layer 3 Abst. Layer n-1 Abst. Layer n Decomp./ Ref. … Comp./ Abst. Requirements reuse reuse traceability abstraction Macro-Level Micro - Level Focus of this paper Fig. 3.1 . Proess Overview MaCMAS overs arefully the ve priniples to deal with omplexity in software engineering where top-down and b ottom-up are of high imp ortane [16, 17, 30℄: abstration, deomp osition/renements, omp osition/abstration, automation and reuse. In Figure 3.1, we show an overview of the main onepts applied in MaCMAS from the software pro ess p oint of view. As shown, mo dels of the system are strutured into a set of abstration layers. Top mo dels are the most abstrat while bottom mo dels are the most rened mo dels. MaCMAS provides also a set of vertial and horizontal transformations. Vertial transformations are applied to split mo dels or to omp ose mo dels, and horizontal transformations are used to rene and abstrat mo dels in order to over b ottom-up and top-down software pro esses. As shown, for overing the rest of priniples, traeability b etween mo dels at dierent abstration layers and reuse of mo dels and their abstrations/renements is also provided. In MaCMAS, two kind of renements are proposed. One that is base on analyzing information on requirement do uments, onretely system goals hierarhies, to reommend the user of the CASE to ol whih mo dels an b e rened and whih is the b est deomp osition reommended. The other renement, whih is the fo us of this pap er, is based on analyzing the dep endenies b etween the elements in a mo del to reommend a renement. 3.1. Mo dels. In other to engineer MASs, MaCMAS provides a rih set of UML2.0-based models that an b e summarized in: a) Stati Aquaintane Organization View: This shows the stati interation relationships between roles in the system and the knowledge pro essed by them. It omprises the following UML mo dels: Role Mo dels: shows an aquaintane sub-organization as a set of roles ollab orating by means of several mRIs. As mRIs allow abstrat representation of interations, we an use these mo dels at whatever level of abstration we desire. We use role mo dels to represent autonomous and autonomi properties of the system at the level of abstration we need. Parameterized Role Mo dels : A parameterised role mo del p ermits us to represent reusable ollaboration patterns parameterising some of their elements. Resoures dep endeny mo del: A resoures dependeny mo del provides means for do umenting the dep endenies b etween knowledge entities and servies provided by roles in the ontext of an mRI and for do umenting the dep endenies b etween the knowledge of mRIs. Relating role mo dels mo del: As a result of using deomp osition and omp osition and of instantiating parameterised role models, we usually manage role models that are obtained from others. This mo del show the relationships b etween several role mo dels. Ontology: shows the ontology shared by roles in a role mo del. It is used to add semantis to the knowledge owned and exhanged by roles.
A Top Down Approah for Desribing the Aquaintae Organisation of Multiagent Systems 53 % & ' ( ) * + , - . & ' ( / 0 1 2 3 4 5 6 1 7 2 8 9 : ; < = > ; ? @ A 7 B C = D E F G 2 C 6 1 E 5 ? @ H C 0 I C ? @ J = 7 9 C 7 K 1 2 1 6 B F 7 1 5 6 C 5 7 5 9 C ? @ L M N O P Q R Q S T U V W U X Y S T U V Z T [ V U W U X Y S V \ T ] ^ _ V \ ` V a V Y [ V _ b V \ Z T [ V U S T U V Z T [ V U c Y d T U T e f g d X d b _ h _ i ] X b Y d X Y _ V c ^ e X Y b \ X d b T Y Z T [ V U \ j ^ X _ V X k b U b d f Z T [ V U l T m a U V n b d f ` T m X b Y o ] b [ V U b Y V \ ` V _ T m a p o ] b [ V U b Y V \ l T m a p o ] b [ V U b Y V \ S V ] \ V o ] b [ V U b Y V \ ` f Y X m b _ h _ i ] X b Y d X Y _ V c ^ e X Y b \ X d b T Y Z T [ V U \ W X ^ X m V d V ^ b \ V [ S T U V Z T [ V U c a V Y g f \ d V m \ o ] b [ V U b Y V \ S V U X d b Y e S T U V Z T [ V U \ j T a q [ T r Y s t u v T d d T m q ] a o ] b [ V U b Y V \ Fig. 3.2 . Aquaintane analysis disipline b) Behavior of Aquaintane Organization View: The b ehavioral asp et of an organization shows the sequening of mRIs in a partiular role mo del. It is represented by two equivalent mo dels: Plan of a role: separately represents the plan of eah role in a role mo del showing how the mRIs of the role sequene. It is represented using UML 2.0 Proto olStateMahines [22, p. 422℄. It is used to fo us on a ertain role, while ignoring others. Plan of a role mo del: represents the order of mRIs in a role mo del with a entralized desription. It is represented using UML 2.0 StateMahines [22, p. 446℄. It is used to failitate easy understanding of the whole b ehavior of a sub-organization. ) Traeability view: This mo del shows how mo dels in dierent abstration layers relate. It shows how mRIs are abstrated, omp osed or deomp osed by means of lassiation , aggregation , generalization or redenition . Notie that we usually show only the relations between interations b eause they are the fo us of modeling, but all the elements that omp ose an mRI an also b e related. Finally, sine an mRI presents a diret orrelation with system goals, traeability mo dels learly show how a ertain requirement system goal is rened and materialized. This is main what helps us to bridge the gap b etween requirements and design. For the purp ose of this pap er, we only need to detail role mo dels, role mo del plans, whih are shown in the following setions. 4. The Example. The example we use hereafter is a debitard system. This problem an b e viewed as one of the basi oordination patterns in the agent e-ommere world, and it involves three dierent agent roles (hereafter roles): a p oint of sales role (PS) whih interats with the user, a ustomer aount manager role(CA), and a merhant aount manager role (MA). When a ustomer uses his or her debit ard, the agent playing role PS agrees with a CA agent and merhant aount agent on p erforming a sequene of tasks to transfer the money from the ustomer aount to the merhant aount, whih shall also b e harged the osts of the transation. If
54 Joaquín Peña, Rafael Corhuelo and Antonio Ruiz-Cortés Fig. 5.1 . Stati interation view of the debitard system. Fig. 5.2 . Plans of the roles in the debitard system. the ustomer aount annot aord the purhase b eause it has not enough money, the ustomer aount agent then pays on hirepurhase. 5. Mo deling the Proto ol with MaCMAS. As we showed ab ove, our approah starts when the requirements system goals to b e p erformed have b een already obtained. Then, we mo del eah task as an mRI as we show in the role mo del in Figure 5.1. These system goals in our example are mo deled as the following mRIs: approv is used by the CA role to inform the other parties if it an aord a purhase; transfer is used to transfer money from the CA to the MA by means of the PS; mRI hire _ p is used to buy on hire-purhase; nally, there is a two-party mRI alled next _ sale , whih is not further detailed, whose goal is to enapsulate the op erations needed to read the sum to b e transferred and the ustomer data from his or her debit ard. For further details on the knowledge pro essed by eah partiipants and in the mRI see the App endix. One the mRIs are identied and linked with their partiipant roles, we represent their p ossible sequenes by means of FSAs (see Figure 5.2). When an mRI is exeuted by more than one role it must app ear a transition in all the roles that perform it. Eah of these transitions represents the part of the mRIs that a role p erform. Whereby,
A Top Down Approah for Desribing the Aquaintae Organisation of Multiagent Systems 55 w xy z { | } ~| y w xy z { | } ~| y w xy z { | } ~| y w xy z { | } ~| y w xy z { | } ~| y w xy z { | } ~| y costs balance Knowledge used by transfer Knowledge used by transfer price costs balance balance Knowledge used by transfer a) Before refinement b) After refinement okok price balance Fig. 5.3 . Deoupling mRI transfer . to exeute an mRI we must transit from one state to another in all the roles that partiipate on it. Furthermore, with the algorithms presented in [25℄, whih we outline in setion 6, we an automatially infer a single FSA that represents the role mo del proto ol as a whole. This alternative representation an b e used for b etter readability. Finally, eah mRI have to b e deorated with some additional information: suh as the dep endenies b etween they knowledge it pro ess, a guard for eah role, and so on. The knowledge dep endeny, as we show in the next setion, an b e analysed in order to rene mRIs. Furthermore, the guard of mRIs allows eah role to deide if it want to exeute the mRI or not, whih has been proved adequate to deal with proativity of agents [7, 19, 25℄. 5.1. Renements. The mo del we presented in previous setion takes advantage of omplex threeparty mRIs, whih provides a high level design of the proto ol. However, it should b e rened in an attempt to transform its mRIs into a set of simpler ones that are loser to message sequenes desription. That is to say, desribing them internally shall be easier. This is the next step in our approah. The renements are based on analysing the dep endenies b etween the knowledge that roles use from others in a partiular mRI. In order to automate the renement pro ess the designer has to build a dep endeny graph (see Figures 5.3, 5.4 and 5.5) whih shall b e analysed with the algorithms prop osed in [18, 10℄. To illustrate how our tehnique works we applied it to our example. The rst renement we an apply is deoupling [12℄. It an transform ertain n party mRIs into an m party mRI (m < n) followed by an mRI with n−m+ 1 partiipants. We an illustrate it by means of mRI transfer in our example. Figure 5.3 shows a diagram in whih we have depited the knowledge of its roles and their dep endenies. As shown, b oth the MA and CA need to up date their balanes aording to some information in the knowledge of the PS. The idea is thus to deouple mRI transfer into two binary mRIs so that the CA up dates its balane b efore the MA. Thus, as we an see in Figure 5.3 mRI transfer1 will exeuted by PS and CA, and transfer2 by PS and MA (see Figure 5.7 for the new sequenes of exeution). We have applied this renement to the mRI hire _ p , as well. The seond renement we an apply is partiipant elimination [12℄. It onsists of eliminating those roles from the set of partiipant roles of an mRI whose knowledge is not referred to by other roles and do not refer to the knowledge of any other role. Figure 5.4 shows a diagram in whih we have depited the knowledge of the roles partiipating in mRI approv and their relationships. Obviously, role MA an b e eliminated from this mRI. Another renement alled splitting , whih annot b e apply to our example, onsist in breaking an mRI into two mRIs if the knowledge aessed by several groups of roles are disjoint as is depited in Figure 5.5 with a titious mRI. The resulting role plans after applying all renements are presented in Figure 5.7. Apparently, they works well but we an disover that the renements have intro dued a deadlo k situation if we take a loser look. Consider a trae in whih the following mRIs are exeuted: next _ sale, approv, transfer1, and hire _ p1 . This exeution deadlo ks b eause of an unfortunate interleaving in whih, after approving a sale and harging the CA, this role is ready to interat with the PS by means of transfer2 ; however, the MA is readied then to
56 Joaquín Peña, Rafael Corhuelo and Antonio Ruiz-Cortés costs balance balance Knowledge used by aprob price costs balance balance Knowledge used by aprob a) Before refinement b) After refinement ok price ok Fig. 5.4 . Eliminating role from approv . ¡ ¢ ¡ ¢ £ ¤ ¥ ¦ £ ¤ ¥ § £ ¨ ¥ © £¨ ¥ ¦ £ ª ¥ ¦ £ « ¥ © £ « ¥ § £ « ¥ ¦ £ ª ¥ © Knowledge used by I ¬ Knowledge used by I £ ¤ ¥ ¦ £ ¤ ¥ § £¨ ¥ © £¨ ¥ ¦ £ ª ¥ ¦ £ « ¥ © £ « ¥ § £ « ¥ ¦ £ ª ¥ © Knowledge used by I a) Before refinement b) After refinement Fig. 5.5 . Splitting titious mRI I . exeute b oth transfer1 and hire _ p1 . If hire _ p1 is exeuted now, it leads to a situation in whih no role an ontinue b eause PS is readying transfer2 and waits for the CA to ready it, the CA is readying approv and waits for the PS to ready it, and the MA is waiting for any of them to ready transfer1 or hire _ p1 . This situation an b e avoided if we use a guard for transferi and hire _ pi that ensures that when one of these mRI is exeuted the guard of the others shall b e evaluated as false, but unfortunately this is not p ossible in general. These renements allow us to exeute several mRIs at the same time sine the the knowledge they omputed b efore renements is now omputed separately in dierent mRIs. In addition, they simplify the numb er of partiipant roles that eah mRI uses, whih lead us to easier implementations (the proto ol to o ordinate n parties is more diult that suh for two parties) [12, page. 206℄[2, 33, 21, 35℄. Finally, another advantage is that the amount of knowledge to b e pro essed in eah mRI dereases thus easing their internal design. For instane, the mRI transfer has b een broken into two simpler mRIs: transfer1 and transfer2 . transfer1 omputes the balane of the CA and transfer2 omputes the balane of the MA. Thus, simpler omputations are performed. Furthermore, the original mRI had three partiipant roles, and the new mRIs have only two, whose o ordination/negotiation proto ol is simpler to implement. The rened role model is presented in Figure 5.6. 6. Ensuring Deadlo k Free Renements. Our approah to detet deadlo ks is based on building an FSA and analysing its paths. Next, we present some results we need, and then we show how to onstrut the FSA and how to analyse it.
A Top Down Approah for Desribing the Aquaintae Organisation of Multiagent Systems 57 Fig. 5.6 . Role model of the debitard system after renements. Fig. 5.7 . Role plans after renement. As we an see in Figure 5.7, the denition of the protool of eah role is done by means of FSAs. They an b e haraterised as follows: Definition 6.1 ( Finite State Automaton ). A nite state automaton (FSA) is a tuple of the form (S, Σ, δ, s0, F ) , where S is a set of states, Σ is a set of mRIs (the voabulary in FSA theory), δ:S×Σ→S is a transition funtion that represents an mRI exeution, s0∈S is an initial state, and F⊆S is a set of nal states. Thus, let Ai= (Si,Σi, δi, s0 i, Fi) (i= 1,2,···, n) b e the set of FSAs that represents eah role in a role mo del. Starting from this information we an build a new FSA C= (S, Σ, δ, s0, F ) that represents the proto ol as a whole, where •S=S1× · · · × Sn •Σ = Sn i=1 Σi •δ(a, {s1,...,sn}) = {s′ 1,...,s′ n} i ∀i∈[1..n]·(a6∈ Σi∧si=s′ i)∨(a∈Σi∧δ(a, si) = s′ i)