<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>PCF-based formalization of the parallel composition of automata</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Artem Davydov</string-name>
          <email>artem@icc.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aleksandr Larionov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nadezhda Nagul</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Matrosov Institute for System Dynamics and Control Theory of the Siberian Branch of the Russian Academy of Sciences</institution>
          ,
          <addr-line>134 Lermontov str., 664033 Irkutsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <abstract>
        <p>The paper demonstrates how the automatic theorem proving technique of the PCF calculus is applied to construct parallel composition of automata. Parallel composition plays an essential role in the supervisory control theory at di erent stages of systems and supervisors design. Improved formalization of discrete event systems as positively-constructed formulas along with auxiliary predicates, serving for accessibility of the automaton checking, simplify parallel composition construction.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        This paper continuous the series of works developing a new way to deal with discrete-event
systems (DES). Being subject to Ramage-Wonham supervisory control theory (SCT) for DES,
a physical system and requiments to system`s behavior are usually modeled by one or several
nite state automata, sometimes called free behavior models and speci cations. Nodes of
the state transition diagrams of the automata involved correspond to essential states of the
system while edges correspond to events leading to changes of the states. Then, in the SCT
framework, a supervisor as a means of control is built to guarantee the speci cations ful llment.
In previous papers the application of automated theorem proving based on the
positivelyconstructed formulas (PCF) to the formalization of DES [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] was presented. The PCF calculus
advantages allow solving various problems of supervisor constructing sequence, for example,
problems of checking observability and co-observability of languages [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ].
      </p>
      <p>
        The PCF calculus is developed in [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ] to formalize and solve some control theory problems.
In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] the proof of soundness and completeness of the PCF calculus as the rst-order logical
formalism is presented, and its further development may be found in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The PCF calculus
is naturally aimed at solving problems of dynamic systems control due to its features, such
as modi ability of semantics (constructive, nonmonotonic, temporal, etc.) and an ability to
construct intuitionistic inferences of some non-Horn formulas. Constructive semantics allows
one to extract some knowledge (for example, action plans) from proofs, while non-monotonicity
and a treat of time help to construct plans in dynamically changing subject areas. Interactive
properties of the PCF calculus, its application for dynamic systems control and action planning
are described in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] with the examples of elevator group control, mobile robot action planning and
telescope guidance. Problems of automated theorem proving software in the PCF calculus design
and implementation are brie y discussed in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Due to its features, the PCF calculus allows one
to combine the automatic search for logic inferences with special domain based heuristics which
are customizable for each task being solved.
      </p>
      <p>
        Since more and more complicated systems are modeled as DES to apply SCT results and
obtain control required, such DES are usually constructed as sets of automata where each
automaton corresponds to some aspect of physical system`s functioning. For example, in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]
it is shown how state of the art problems of swarm robotics can be formalized and solved
using the SCT framework. Problems of segregation, aggregation, object clustering and group
formation are considered for two robotic platforms, the e-puck and the Kilobot. To formalize,
for example, the case study of segregation, four free behaviour models are used which represent
input device to con gure the robot, the robot's ability to assume one of the leader types or
to be a follower, motion capabilities, and the robot's ability to receive messages from nearby
leader robots. Speci cation for the segregation case study consists of three automata: one of
them con gures the robot through user interaction; one allows followers to move and leaders to
transmit a signal, and one moves the follower robot according to the signal received. To built a
supervisor, free behavior models and speci cations are combined using an operation known as
parallel, or synchronous, composition.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] to investigate the applicability of SCT to a high-tech system, a theme park vehicle,
called a multimover, is chosen. Its main structure contains mechanical parts to which sensors
and actuators are mounted. Supervisory control is used to coordinate the individual components
and give the desired functionality to the whole system. The user interface of the multimover
contains three buttons (the reset, the forward and the backward button) so three automata are
used to represent the buttons. Sensors of a multimover are modelled by six automata, with
ve of them having the same structure. Two automata correspond to the steer motor and to
the drive motor. One automaton is employed for ride control and one for the scene program
handler. In the event-based framework, it is not possible to derive a centralized supervisor for a
problem of this size because parallel composition leads to state explosion phenomenon. However,
combining by parallel composition components e ected by the same speci cation, aggregative
distributed synthesis [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] becomes possible.
      </p>
      <p>
        The examples above show that parallel composition as one of composition operations on
automata plays a very important role in SCT. After a supervisor has been designed, behavior
of the system under its control is described by the parallel composition of the automaton
representing uncontrolled behavior and the automaton of the supervisor. Parallel composition
also serves for checking controllability of a speci cation language and helps to design supervisor
if speci cation occurs to be controllable. Target language [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], built as parallel composition of
the speci cation and the system automata, is a base for founding bad states which should be
forbidden by a supervisor.
      </p>
      <p>The current paper demonstrates how the PCF calculus is applied to construct parallel
composition using logical inference only. The rest of the paper is organized as follows. In the
next section the basic notion of the automata-based DES with a small example of the parallel
composition of automata is provided. The third section contains brief description of PCFs and
the PCF calculus. In section 4 main features of the PCF calculus are discussed. The
PCFformalization of parallel composition is given in section 5. Application of the results obtained
are discussed in Conclusions.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Automata representation of discrete event systems</title>
      <p>
        The rst [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and the most popular way to represent DES is a nite-state automaton. It is
de ned as a structure G = (Q; ; ; q0; Qm) where Q is the set of states q; the set of events;
: Q ! Q the transition function; q0 2 Q the initial state; Qm Q the set of marker
states. Marked states correspond to some completed tasks performed by the system under
consideration, for example, nished processing sequence in manufacturing system. Note that
marking does not have any terminal meaning that is system proceeds after a marker state is
achieved. That is why G is called a generator of a formal language [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. As usual, let denote
the set of all strings over , including the empty string ". is easily extended on strings from
. A language generated by G is L(G) = fw : w 2 and (w; q0)! g, while a language marked
by G is Lm(G) = fw : w 2 L(G) and (w; q0) 2 Qmg. Here (s; q0)! means that (s; q0) is de ned.
      </p>
      <p>As well known, two operations are used to compose automata: product and parallel, or
synchronous, compositions. In SCT parallel composition is used in supervisor constructing
algorithms, for checking controllability, to construct system behavior under control of the
supervisor. Moreover, since complex systems are usually designed using modular architecture,
with each module having its special functionality, generator G may correspond to one of these
modules. Parallel composition then serves to compose system model from models of separate
modules. Leaving SCT applications for future work, in what follows general notion of parallel
composition of deterministic automata, as used to built complex system, is considered.</p>
      <p>
        De nition 1 [Parallel composition] If two generators Gi = (Qi; i; i; q0i; Qim), i = 1; 2, are
given then parallel composition is de ned [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] as G1jjG2 := Ac(Q1 Q2; 1 [ 2; ; (q01; q02); Q1m
Q2m),
( ; q1; q2) =
8 ( 1( ; q1); 2( ; q2)) if 1( ; q1)!; 2( ; q2)!; and
&gt;&lt;&gt; ( 1( ; q1); q2) if 1( ; q1)! and 2
&gt;:&gt; (uqn1d;e2(ne;dq2)) oifth2e(rw;iqs2e):! and 2
1 n 2;
2 n 1;
2
1 \ 2;
(1)
Here Ac(G) denotes operation of taking accessible part of the automaton that is deleting all
states that are not reachable from q0 by some string from L(G) and transitions attached to these
states.
      </p>
      <p>In the parallel composition of two automata events shared by the automata must occur
concurrently. Thus the automata are synchronized by the common events. Events that
are not shared by the automata may occur independently. Using the same principle, above
de nition may be extended on any number of automata. Parallel composition is commutative
up to a reordering of the state components in composed states and associative: (G1jjG2)jjG3 =
G1jj(G2jjG3). The parallel composition of a set of n automata can therefore be de ned using
associativity: G1jjG2jjG3 := (G1jjG2)jjG3.</p>
      <p>Example 1. Consider two state transition diagrams in gures 1 and 2. Initial states are
marked with arrows while double circles denote marked states. The automaton in gure 3 is the
result of the parallel composition of the automata in gures 1 and 2.</p>
      <p>a
A
a
b</p>
      <p>C
c
b
b</p>
      <p>B</p>
      <p>B,Y</p>
      <p>Before operation Ac implementation, the resulting automaton has 6 states. Three of them
are inaccessible. Attention should be paid to the missing self-loop over b at the state (B; Y ).
The fourth rule of (1) is applied in this case since the event b is shared by automata but 2(b; Y )
is unde ned. In section 5 this example will be formalized by PCFs. Note that G2 may be
considered as a speci cation for G1.</p>
    </sec>
    <sec id="sec-3">
      <title>3. PCF calculus</title>
      <p>Consider a language of a rst-order logic that consists of rst-order formulas (FOFs) built out
of atomic formulas with &amp;; _; :; !; $ operators, 8 and 9 quanti er symbols, and constants true
and f alse. The concepts of a term, an atom, and a literal are de ned in the usual way.
Nonatomic formulas and subformulas will be denoted further by capital calligraphic letters (F ; P; Q,
etc.), possibly with indices. Sets of formulas will be denoted by capital Greek letters ( ; , etc.),
possibly with indices.</p>
      <p>Let X = fx1; : : : ; xkg be a set of variables, A = fA1; : : : ; Amg be a set of atomic
formulas called conjunct, and = fF1; : : : ; Fng be a set of FOFs. The formulas
8x1 : : : 8xk(A1&amp; : : : &amp;Am) ! (F1 _ : : : _ Fn) and 9x1 : : : 9xk(A1&amp; : : : &amp;Am)&amp;(F1&amp; : : : &amp;Fn)
are denoted as 8x1; : : : ; xkA1; : : : ; AmfF1; : : : ; Fng and 9x1; : : : ; xkA1; : : : ; AmfF1; : : : ; Fng,
respectively. They can be abbreviated as 8X A and 9X A , respectively, keeping in mind
that the 8-quanti er corresponds to ! _, where _ means disjunction of all the formulas
from , and 9-quanti er corresponds to &amp; &amp;, where &amp; means conjunction of all the formulas
from . Any of sets X, A, may be empty and in this case they could be omitted in
formula formalization. Thus, if Q 2 f8; 9g then QX A ? QX A, QX ? QX , and
Q?A QA . Since an empty disjunction is identical to f alse whereas an empty conjunction
is identical to true, the following equivalences are correct: 8X A ? 8X A ! f alse 8X A,
9X A ? 9X A&amp;true 9X A, 8? true ! 8 , and 9? true&amp; 9 .</p>
      <p>The constructions 8X A and 9X A are called positive type quanti ers (TQ) because A is a
conjunction of positive atoms only and referred to as type condition for X. In practice, these
constructions denote phrases such as \for all X satisfying A there is...", \there exists X satisfying
property A such that...", and so on; for example, \for all integer x; y; z and n &gt; 2 there is
xn + y 6</p>
      <p>
        n = zn". Originally, the term \type quanti er" was introduced by N. Bourbaki [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] as a
part of notation for formalization of mathematics.
      </p>
      <sec id="sec-3-1">
        <title>3.1. PCF language explicit de nition</title>
      </sec>
      <sec id="sec-3-2">
        <title>De nition 2 [Positively constructed formula (PCF)] Let X be a set of variables and A a conjunct.</title>
        <p>Then
(i) 9X A and 8X A are 9{PCF and 8{PCF, respectively.
(ii) If F = fF1; : : : ; Fng is a set of 8{PCFs then 9X A : F is 9{PCF.
(iii) If F = fF1; : : : ; Fng is a set of 9{PCFs then 8X A : F is 8{PCF.
(iv) Any 9{PCF or 8{PCF is PCF.</p>
        <p>
          This form of logical formulas is referred to as positively constructed formulas (PCFs) as they
are written with positive type quanti ers only and do not contain the explicit logic negation
sign. Without loss of generality only closed formulas will be considered. Any FOF may be
represented as PCF [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
        <p>PCF starting with 8? is called PCF in the canonical form. Any PCF can be represented
in the canonical form. If F is a non{canonical 9{PCF then 8? : F is the canonical PCF
since 8? : F true ! F F . If F is a non{canonical 8{PCF then the canonical PCF is
8? : f9? : F g true ! true&amp;F F . Type quanti ers 8? and 9? are called ctitious since
they do not in uence truth value of the original PCF and do not bind any variables. They are
used to regularize PCFs, i.e. transform them to the canonical ones.</p>
        <p>For the sake of readability we represent PCFs as trees whose nodes are type quanti ers, and
we use corresponding names: node, root, leaf, branch. For example, PCF</p>
        <p>8 f9X1 A1 f8Y1 B1; 8B2 f9X2 A2; 9A3 f8Y2 B3g; 9A4gg; 9A5 f8Y3 B4gg
may be represented as a tree
8
9X1 A1
9A5
8Y1 B1
8B2
8Y3 B4:
9X2 A2
9A3
9A4
8Y2 B3</p>
        <p>Parts of a canonical PCF are named as follows:
(i) The root of a canonical PCF's tree-view 8? is called a PCF root.
(ii) Each PCF root child 9X A is called a PCF base, the conjunct A is called base of facts, and</p>
        <p>PCF rooted from the base is called a base subformula.
(iii) PCF base children 8Y B are called questions to the parent base. If a question is a leaf of a
tree then it is called a goal question.
(iv) Subtrees of questions are called consequents.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.2. Inference rule</title>
        <p>In the process of reasoning one often proves a statement F by refuting its negation. We intend
to proceed similarly.</p>
        <p>De nition 3 [Answer] A question 8Y D : to a base 9X A has an answer if and only if is
a substitution Y ! H1 [ X and D A, where H1 is Herbrand universe based on constant
and function symbols that occur in corresponding base subformula.</p>
        <p>De nition 4 [Splitting] Let B = 9X A : , and Q = 8Y D : , where =
f9Z1 C1 : 1; : : : ; 9Zn Cn : ng then split(B; Q) = f9X[Z10 A[C10 : [ 10; : : : ; 9X[Zn0 A[Cn0 : [
n0g, where 0 is a variable renaming operator. We say that B is split by Q. Obviously,
split(B; 8Y D) = split(B; 8Y D : ?) = ?.</p>
        <p>De nition 5 [Inference rule !] Consider some canonical PCF F = 8? : . Let there exist
a question Q that has an answer to appropriate base B 2 . Then !F = 8? : n fBg [
split(B; Q ).</p>
        <p>In other words, if a question has an answer to its base then the base subformula is split by
this question. In the case of a goal question we say that the basic subformula is refuted because
split(B; 8Y D) = ?. The refuted base subformula B is removed from the set of base subformulas
since n fSg [ ? = n fSg. Note that when the set becomes empty after applying ! rule
and PCF becomes just 8 then it can be concluded that the negation of the original formula is
unsatis able.</p>
        <p>Any nite sequence of PCFs F , !F , !2F , : : :, !nF , where !sF = !(!s 1F ), !1 = !; !nF =
8, is called a deduction of F in the PCF calculus (with the axiom 8). Suppose that a search
strategy veri es the questions in consecutive order, without omissions (i.e. the veri cation is
repeated only when the whole list of questions was used), and it does not use several applications
of ! to a question with the same (question-answering method of automated deduction).</p>
      </sec>
      <sec id="sec-3-4">
        <title>Example 2. [Refutation of PCF] Consider PCF</title>
        <p>At the rst step of the inference there is the only answer fx ! eg to the rst question (name
it Q1, from the top to the bottom numbering is used). After applying the rule ! with this
answer to the only base of F1, the formula is converted to the form F2:</p>
        <p>F1 = 8</p>
        <p>9S(e)
F2 = 8 9S(e); A(e)
8x S(x)
8x; y C(x; y)
8x A(x)
8x S(x)
8x; y C(x; y)
8x A(x)
9A(x)
9y C(y; f (x))
9
8x S(x); A(x)</p>
        <p>9C(x; f (x))
9A(x)
9y C(y; f (x))
9
8x S(x); A(x)
9C(x; f (x))</p>
        <p>At the second step there is also only one answer fx ! eg to the question Q3. After applying
! with this answer, F2 is split because Q3 has the disjunctive branching. The formula gets the
form F3:</p>
        <p>F3 = 8
9y1 S(e); A(e); C(y1; f (e))
9y1 S(e); A(e)</p>
        <p>Q1
Q2
Q3
Q1
Q2
Q3
8x S(x); A(x)
9C(x; f (x))</p>
        <p>At the third step the rst base can be refuted by answering to Q2 (the goal question) with
fx ! y1; y ! f (e)g. The refuted base (and its whole base subformula) is to be deleted from the
list of the base subformulas.</p>
        <p>At the fourth step there is the answer fx ! e; y ! eg to the fourth new question of the
second base which adds the atom C(e; f (e)) to it.</p>
        <p>At the fth step the only base can be refuted by answering to Q2 (the goal question) with
the answer fx ! e; y ! f (e)g. This nishes refutation because all the bases were refuted.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. PCF features</title>
      <p>
        Consider main features of the PCF language. First of all, unlike predicate calculus language
syntax, PCFs have rather unconventional and exquisite form:
(i) Any formula written in the PCF language is characterized by a large-block structure and
contains only positive quanti ers.
(ii) Any PCF has a simple and regular structure, i.e. the formula to some extent is characterized
by predictability of its structure determined by the order of 9- and 8-nodes which alternate
at each branch.
(iii) The negation of PCF is merely obtained by the replacement of the symbol 9 with 8, and
vice versa (after what canonization follows).
(iv) The PCF-representation is more compact than the representation in terms of the well known
language of clauses [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] used, for example, in the resolution method [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. Furthermore, it is
more compact than representations in terms of standard disjunctive and conjunctive normal
forms.
(v) It is not necessary to preprocess (scolemize) the formulas by eliminating of all existential
quanti ers. The scolemization procedure related to this elimination leads to elevating the
complexity of terms (see [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]).
(vi) The natural structure of the knowledge in the language of PCFs is retained better. Indeed,
the description of the knowledge in the original form does not employ "theoretical"
quanti ers 8x; 9x. Instead of them, type quanti ers 8x(A ! t); 9x(A&amp;t) with simple and
natural forms of conditions A (e.g., without symbols 8; 9 inside of A) are employed. The
PCF structure retains most of the original structure of the knowledge when the knowledge
is written as an expression constructed of atoms (and/or their negations) with the help of
positive quanti ers and logic connectives &amp;, _. In this case, the PCF structure may di er
from the initial structure merely by appending auxiliary quanti ers 9? (instead of some
connectives &amp;; _ mentioned above) and/or replacing the negations of atoms :A with the
structures 8 A ?.
      </p>
      <p>Consider features (iv){(vi) in greater detail with the help of the following example.
Example 3. The FOF</p>
      <p>8x(A&amp; ! (9y1 B1&amp; _ : : : _ 9yk Bk&amp;));
where Bi&amp; = C1i &amp; : : : &amp;Cni; A&amp; = A1&amp; : : : &amp;Al; i = 1; k; in terms of the PCF-representation
has l + n k atoms. In terms of the language of clauses it takes the form
(i1;:::;ik)2(1;n)k(:A1 _ : : : _ :Al _ Ci11 _ : : : _ Cikk );</p>
      <p>&amp;
i.e. contains (l + k)nk atoms (nk clauses). It is also obvious that, except of the auxiliary
quanti ers, the number of atoms in the PCF-representation is not larger than in any classical
disjunctive (conjunctive) normal form. Moreover, the representation (3) of the initial formula
(2) is not only more complicated but also substantially destroys the structure of (2), although
in the language of PCFs the initial structure of (2) is saved:
(2)
(3)</p>
      <p>
        The language of clauses has been used in the resolution method [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] since its representation
(2) in comparison with formulas of the classical predicate calculus is hogeneous. This allowed J.
Robinson, basing on Herbrand's results, to develop a popular method of automated deduction
with one inference rule known as the resolution rule.
      </p>
      <p>Below we list quite important advantages of PCF calculus which are due not only to the
features of the PCF language, but also to the proper deductive power of the calculus.
(i) Unlike that in many other known logic calculi, e.g. those of Hentzen type, the PCF calculus
has only one inference rule !. Availability of the only rule narrows the combinatorial space.
However, this is not the main advantage of the calculus. The set of important merits of the
PCF calculus includes not only uniqueness of its inference rule but also its unary character
(e.g., in comparison with the resolution method). Another advantage of the PCF calculus,
obvious from the view-point of decrescence of combinatorics, is that the inference rule !
is a large-block one, likewise the language of the PCF calculus itself. Such a rule leads to
additional reduction of complexity of the combinatorial space (unlike that of the resolution
rule which is also unique but is binary and a small-block one).
(ii) The deduction (refutation) technique described has centered on application of ! to the
questions only, i.e. to the successors of PCF roots. Application of ! to questions only is
based on the properties (i), (ii) of the PCF language and allows one to focus the attention
of the technique on the local fragments of PCF, without any loss of completeness of the
technique.
(iii) The deduction technique can be described in pithy terms of the question-answering
procedure instead of technical terms of formal deducibility (i.e. in terms of logic connectives,
atoms, etc.).
(iv) Owing to properties (i), (ii), (vi) of the PCF language and (ii), (iii) of the PCF calculus, the
deduction technique is quite compatible with heuristics of speci c applications as well as
with general heuristics of control of deduction. Owing to (i), the deduction process consists
of large-block steps, so is well observable and controllable.
(v) The deduction technique o ers natural OR-parallelism, because the refutations of basic
subformulas are executed independently of one another.
(vi) The deductions obtained are quite interpretable by man owing to properties (iii), (iv). This
interpretability is quite important from the viewpoint of man-machine applications. So,
conceptually, the language and the calculus of PCFs are not only machine-oriented, but
also human-oriented: the implementation of these techniques for the purpose of speci c
applications may use these two capabilities to some greater or lesser extent.
(vii) Due to the features of the PCF language and calculus, the PCF formalism has another very
important merit: its semantics can be modi ed without any changes of the axiom 8 and
the inference rule !. Such modi cations are implemented merely by some restrictions
of applying ! and allow one to transform classical semantics of the PCF calculus in
nonmonotonous semantics, constructive (intuitionistic) semantics, etc.</p>
      <p>All these features are useful for formalizing the discrete event systems since the special
structure and convenient way of inference search make it possible to describe the automata
underlying the DES and to customize the inference strategies.</p>
    </sec>
    <sec id="sec-5">
      <title>5. PCF formalization of parallel composition</title>
      <p>In order to formalize a generator representing DES, the following predicates will be used. Let
L(s; S) denote \s is a current sequence of events in a state S" and Lm(s; S) denote \s is a current
sequence of events in a state S, and s is a string of a marked language". Thus, rst arguments
of these atoms accumulate the strings of corresponding languages, generated and marked by the
automaton. Atoms of the form (S1; e; S2) will be interpreted as automaton transitions from a
state S1 to a state S2 with an event e. If the right state of a transition is marked, then delta
atoms with an index is used, i.e. m(S1; e; S2) if S2 is a marked state. The function symbol \ "
denotes strings concatenation, and the \"" symbol corresponds to the empty string.</p>
      <sec id="sec-5-1">
        <title>5.1. Formalization of a generator</title>
        <p>Behavior of a generator, representing some DES, may be simulated using the logical inference
of a PCF which has the general structure depicted in gure 4.</p>
        <p>9 L("; S0); (S1; e; S2); Lm("; S0); m(S1; e; S2)
8 ; s; e; s0 L( ; S); (s; e; s0)</p>
        <p>9L(
8 ; s; e; s0 L( ; S); m(s; e; s0) 9Lm(</p>
        <p>
          This way of formalization of a generator is more compact than the one previously suggested [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]
and gives more possibilities when setting up search strategies of the inference. Indeed, there is
the only base subformula describing the automaton. Transitions of the automaton are listed in
the base of facts and two questions correspond to the implementation of transitions, with one
of them corresponding to marked transitions. If an answer to a question is found, L(: : : ; : : :)
or Lm(: : : ; : : :) atoms are added to the base, with a new event as the rst argument, thus
accumulating strings of the generated and marked languages.
        </p>
        <p>Example 4. Consider the automaton G1 from example 1 in section 2. The base of the PCF
corresponding to transitions of G1 looks as</p>
        <p>L("; A); (A; a; A); (A; b; B); (A; c; C); (B; a; A); (B; b; B); (C; b; B);
Lm("; A); m(A; a; A); m(A; b; B); m(B; a; A); m(B; b; B); m(C; b; B):
(G1P CF )
Recall that the base of the PCF is a set of atoms, but we arrange them, aligned and grouped
in meaning, for clarity. Questions that generate the strings of the languages L(G1), Lm(G1) are
the same as in the PCF on gure 4.</p>
        <p>An inference constructing is demonstrated on the example of PCF for the automaton G2,
which has the following base:</p>
        <p>L("; X); (X; b; Y ); (X; a; X); (Y; a; X);
m(X; b; Y ):
(G2P CF )
Table 1 describes the inference of PCF with the base G2P CF . The rst column contains the
number of a question, an answer to which is used. The second column contains a -atom used
for the answer search. In the third column a corresponding substitution (answer) is presented.
The fourth column contains atoms derived and added to the base, in this case, L(: : : ; : : :) and
Lm(: : : ; : : :). The rst arguments of these atoms are the strings of the languages L(G2) and
Lm(G2). The strategy used to build the inference is to answer both questions with the current
contents of the base, if possible.</p>
        <p>Table 1 { continued from the previous page
Base atoms Substitution Atoms added
m(X; b; Y ) f ! "; s ! X; e ! b; s0 ! Y g Lm(b; Y )
(X; a; X) f ! "; s ! X; e ! a; s0 ! Xg L(a; X)
(Y; a; X) f ! b; s ! Y; e ! a; s0 ! Xg L(ba; X)
m(X; b; y) f ! a; s ! X; e ! b; s0 ! Y g Lm(ab; Y )
(X; b; y) f ! ba; s ! X; e ! b; s0 ! Y g L(bab; Y )
m(X; b; y) f ! ba; s ! X; e ! b; s0 ! Y g Lm(bab; Y )
(X; a; X) f ! ba; s ! X; e ! b; s0 ! Xg L(baa; X)</p>
        <p>and so on...</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Formalization of parallel composition</title>
        <p>The goal is to build parallel composition of automata without going beyond the framework of a
formal logic, i.e. it is necessary to construct a composition of automata using a logic inference,
having their PCF-formalized representations. Consider two PCFs, F1 and F2, similar to the
one in gure 4, representing some generators G1 and G2. To separate di erent automata in the
combined base, atoms are indexed with the numbers of PCFs. To obtain PCF representing
G1jjG2, we combine bases and questions of F1 and F2, and add new questions that represent the
rules of (1) in de nition 1 (section 2). PCF in gure 5 is a combined formula whose inference
builds the languages of automata G1, G2, and also adds new atoms in the base that correspond
to transitions of G1jjG2 including marked transitions.</p>
        <p>Let us describe the strategy that allows one to stop the inference in the most reasonable
way. If the questions are numbered from the top to the bottom, then the rst four of them are
the questions generating strings of the languages L(Gi), Lm(Gi), i = 1; 2, and the strategy for
answering these questions remains the same. Question 5 is used only once: it adds to the base
the initial state of the composition automaton. Question 6 adds a starting atom for further
construction of transitions and is also used once. A pair of questions 7 and 8 corresponds to the
rst rule of (1), which handles transitions over events common to both automata. Questions 9
and 10 correspond to the second rule of (1), and are aimed to handle events that belong to the
alphabet of the automaton G1 only. Questions 11 and 12 handle events which belong exactly
to the alphabet of the second automaton. To determine sets 1 \ 2, 1 n 2, and 2 n 1
computable predicates are used. Their computation in this case is an elementary action since
the alphabets of both automata are known, however, if desired, these actions can be carried out
within the logical inference.</p>
        <p>Obviously, the answers to questions 7-12 form a nite set and are exhausted as the composition
automaton is constructed. According to the strategy of inference search, after answering
questions 5 and 6 the inference uses questions 7-12 only until all of their answers have been
exhausted, then they may be omitted from using. It should be noted that the formula on gure
5 can be used to obtain languages for the constructed composition, if we add a pair of questions
similar to the rst four, which generate languages of the automata G1 and G2.</p>
        <p>Example 5. An example of constructing parallel composition of automata with the help of a
constructive inference in the PCF calculus is given for the automata G1 and G2 from example
1 (section 2). Bases G1P CF and G2P CF are indexed as mentioned above and the inference is
constructed using the questions depicted in gure 5. The inference with the corresponding
composition automaton drawing is depicted in table 2.
8 ; s; e; s0 L1( ; S); m1(s; e; s0)
8 ; s; e; s0 L2( ; S); 2(s; e; s0)
8 ; s; e; s0 L2( ; S); m2(s; e; s0)
8s; p L1("; s); L2("; p)
8s; p L1("; s); L2("; p)
!
!
m1(A; b; B),
m2(X; b; Y )
3("; "; AX),
1(A; c; C)
fs1 !
X; !
B; p2 ! Y g</p>
        <p>A; p1
b; s2
!
!
fs1 ! A; p1 ! X;</p>
        <p>! c; s2 ! Cg</p>
        <p>Thus, a method has been developed for constructing the parallel composition of automata
using only constructive logical inference of PCF. The advantage of this method is that the
composition automaton after the completion of the inference does not have inaccessible states,
so there is no need to use Ac operation. This is due to control of the connectivity of the graph,
representing the automaton, at each step of constructing the inference. It is implemented in
PCF with the help of i( ; ; x) atoms in questions 7{12 where index i is a parameter that takes
any of the values f1; 2; 3g and the symbols \ " correspond to variables, i.e. placements for the
substitution of any terms.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions</title>
      <p>The parallel composition of automata, wildly employed in SCT, was considered in this paper as a
part of the automatic theorem proving based approach to deal with DES in the SCT framework.
New formalization of DES as PCF along with auxiliary predicates, serving for accessibility of
the automaton checking, simpli ed parallel composition construction. In future work predicates
for controllable and observable events will be added to above PCFs for checking controllability,
observability, etc., and designing supervisors. Although some results in this direction were
obtained earlier, complex systems, built using the parallel composition, may be considered now
due to the new results presented above.</p>
      <p>Acknowledgments
The research is supported by the Russian Science Foundation (project no. 16-11-00053). This
work was also supported in part by the Presidium RAS, program no. 2, project "Methods
and tools for solving hard-search problems with supercomputers" (reg. no.
AAAA-A18118031590005-5).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Davydov</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Larionov</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Nagul</surname>
            <given-names>N 2017</given-names>
          </string-name>
          <year>2017</year>
          40th
          <article-title>International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO) (IEEE)</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Davydov</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Larionov</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Nagul</surname>
            <given-names>N 2018</given-names>
          </string-name>
          <year>2018</year>
          41st
          <article-title>International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO</article-title>
          ) pp
          <volume>0938</volume>
          {
          <fpage>0943</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Davydov</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Larionov</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Nagul N 2018 AIP Conference</surname>
          </string-name>
          Proceedings
          <year>2046</year>
          020021 (Preprint https://aip.scitation.org/doi/pdf/10.1063/1.5081541) URL https://aip.scitation.org/doi/abs/10.1063/1.5081541
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Vassilyev</surname>
            <given-names>S N</given-names>
          </string-name>
          1990
          <source>The Journal of Logic Programming 9</source>
          <volume>235</volume>
          {
          <fpage>266</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Zherlov</surname>
            <given-names>A K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vassilyev</surname>
            <given-names>S N</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fedosov</surname>
            <given-names>E A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Fedunov</surname>
            <given-names>B E</given-names>
          </string-name>
          <year>2000</year>
          <article-title>Intelligent control of dynamic systems</article-title>
          (Moscow: Fizmatlit) in Russian
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Davydov</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Larionov</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Cherkashin E 2011 Automatic</surname>
          </string-name>
          <article-title>Control</article-title>
          and
          <source>Computer Sciences 45</source>
          <volume>402</volume>
          {
          <fpage>407</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Larionov</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Davydov</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Cherkashin E 2013 International</surname>
          </string-name>
          <article-title>Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO)</article-title>
          ,
          <year>Opatija 2013</year>
          1023{
          <fpage>1028</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Lopes</surname>
            <given-names>Y K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Trenkwalder S M</surname>
            , Leal
            <given-names>A B</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dodd</surname>
            <given-names>T J</given-names>
          </string-name>
          and
          <string-name>
            <surname>Gro</surname>
            <given-names>R</given-names>
          </string-name>
          <source>2016 Swarm Intelligence 10</source>
          <volume>65</volume>
          {97
          <string-name>
            <surname>ISSN</surname>
          </string-name>
          <year>1935</year>
          -3820 URL http://dx.doi.org/10.1007/s11721-016-0119-0
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Forschelen S T J</surname>
            , van de Mortel-Fronczak J M, Su
            <given-names>R</given-names>
          </string-name>
          and
          <string-name>
            <surname>Rooda J E 2012 Discrete Event</surname>
          </string-name>
          Dynamic Systems 22
          <volume>511</volume>
          {540 ISSN 1573-7594 URL http://dx.doi.org/10.1007/s10626-012-0130-6
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Su</surname>
            <given-names>R</given-names>
          </string-name>
          ,
          <string-name>
            <surname>van Schuppen J H and Rooda J E 2010 IEEE</surname>
          </string-name>
          <article-title>Transactions on</article-title>
          <source>Automatic Control 55 1627{1640 ISSN 0018-9286</source>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Ramadge</surname>
            <given-names>P J</given-names>
          </string-name>
          and
          <string-name>
            <surname>Wonham W M 1987 SIAM</surname>
          </string-name>
          <article-title>Journal on Control</article-title>
          and
          <source>Optimization 25</source>
          <volume>206</volume>
          {
          <fpage>230</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Cassandras</surname>
            <given-names>C G</given-names>
          </string-name>
          and
          <string-name>
            <surname>Lafortune S 2008 Introduction to Discrete Event Systems</surname>
          </string-name>
          (Springer US)
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Bourbaki</surname>
            <given-names>N</given-names>
          </string-name>
          2004 Theory of sets (Springer Berlin Heidelberg)
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Davis</surname>
            <given-names>M</given-names>
          </string-name>
          and
          <string-name>
            <surname>Putnam H 1960 J. ACM</surname>
          </string-name>
          7
          <volume>201</volume>
          {215 ISSN 0004-5411 URL http://doi.acm.
          <source>org/10</source>
          .1145/321033.321034
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Robinson J A 1965 J. ACM</surname>
          </string-name>
          12
          <volume>23</volume>
          {41 ISSN 0004-5411 URL http://doi.acm.
          <source>org/10</source>
          .1145/321250.321253
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Russell</surname>
            <given-names>S</given-names>
          </string-name>
          and
          <string-name>
            <surname>Norvig P 2010 Arti cial</surname>
          </string-name>
          <article-title>Intelligence: A Modern Approach 3rd ed Series in Arti cial Intelligence (Upper Saddle River</article-title>
          , NJ: Prentice Hall) URL http://aima.cs.berkeley.edu/
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>