<!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>Logical Time Models to Study Cyber-Physical Systems</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hassan Khalil El Zein</string-name>
          <email>dr.hassanelzein@icloud.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Grygoriy Zholtkevych</string-name>
          <email>g.zholtkevych@karazin.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>School of Mathematics and Computer Science V.N. Karazin Kharkiv National University 4</institution>
          ,
          <addr-line>Svobody Sqr., Kharkiv, 61022</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The paper is devoted to problems caused by the nonlinearity of logical time in distributed, especially cyber-physical, systems. Two approaches to the modelling of such systems are considered in the paper. The operational approach is based on the traditional model that defines the admissible system behaviour as a set of acceptable schedules of the system. The paper argues in favour of restricting possible sets of schedules by that sets of schedules that satisfy certain safety properties. The denotational approach is stated in the language of category theory. This abstraction level clarifies concepts used in the models. In particular, it is explained the feature of linear models as terminal objects with respect to some natural class of morphisms. Further, the interrelation between these two approaches is represented as a formal relation and discuss some properties of the relation that need to be studied.</p>
      </abstract>
      <kwd-group>
        <kwd>cyber-physical system</kwd>
        <kwd>logical time</kwd>
        <kwd>clock</kwd>
        <kwd>denotational semantic model</kwd>
        <kwd>operational semantic model</kwd>
        <kwd>schedule</kwd>
        <kwd>safety property</kwd>
        <kwd>clock structure</kwd>
        <kwd>clock morphism</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The National Science Foundation of USA defines cyber-physical systems (CPS
for short) as “engineered systems that are built from and depend upon the
synergy of computational and physical components”[12, Synopsis of Program] and
clarifies ibidem that “emerging CPS will be coordinated, distributed, and
connected, and must be robust and responsive”. The perspectives of the
CPS-technology is estimated by this document as follows: “The CPS of tomorrow will far
exceed the simple embedded systems of today in capability, adaptability,
resiliency, safety, security, and usability. CPS technology will transform the way
people interact with engineered systems, just as the Internet transformed the way
people interact with information. New smart cyber-physical systems will drive
innovation and competition in sectors such as the power grid, transportation,
buildings, medicine, and manufacturing”[12, Synopsis of Program]. The last
revision of the mentioned document [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] states the following: “CPS are
engineered systems that are built from, and depend upon, the seamless integration of
computational algorithms and physical components. Advances in CPS will
enable capability, adaptability, scalability, resiliency, safety, security, and usability
that will far exceed the simple embedded systems of today. CPS technology will
transform the way people interact with engineered systems – just as the Internet
has transformed the way people interact with information. New smart CPS will
drive innovation and competition in sectors such as agriculture, energy,
transportation, building design and automation, healthcare, and manufacturing just
as the Internet has transformed the way people interact with information.
Indeed, it is also clear that CPS technologies are central to achieving the vision
of Smart &amp; Connected Communities (S&amp;CC), including “Smart Cities”, which
spans these multiple sectors and includes the important attributes of e ciency,
safety, and security” [13, Synopsis of Program]. Thus, comparing this texts we
may say that the notion of CSP is a well-established concept and refer to a
combined system of executive subsystems and network of controlling units (cyber
components), which guarantee the wholeness of the system.
      </p>
      <p>
        It should be emphasised that the development trend of modern technology is
the integration of CPS-components through technology Internet of Things (IoT).
Analysing trends of IoT- and CPS-technology Kate Carruthers notes [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]: “CPS
include traditional embedded and control systems, and these will be transformed
by new approaches from IoT. However, the challenge for IoT and CPS remains
security and risk management. As less rigorously controlled systems are linked
then risk becomes distributed and the provenance of software components
becomes di cult to trace. This gives rise to questions around risk management
and liability for breaches or damages”.
      </p>
      <p>Thus, we may state that any modern CPS should be considered as a
safetycritical system. The necessity to use trustworthy strategies for development of
systems of such a type is the first significant conclusion for the practice of
system design.</p>
      <p>
        The above reasons motivate our research, which is aimed to clarification
of objective limits to the applicability of the clock model for the specification
and computer-aided analysis of behavioural constraints for cyber components
of CPS. The principal tool of our study is the clock model proposed by Leslie
Lamport [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ](see also [2, Chap. 2] and [6, Chap. 3]) for studying distributed
computing. A survey of examples of applying this model to study CPS can be
found in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
2
      </p>
      <p>General Structure of a Cyber-Physical System
Remind that in the paper we use the term cyber-physical system to refer to a
heterogeneous complex of natural objects and artificial subsystems. This complex
is managed by the system of interacting controllers (cyber components), which
provides its operation as a whole entity.</p>
      <p>This informal description can be refined by the following class diagram
(Fig. 1) representing the abstract framework for CPS.</p>
      <p>receives
Message
sends</p>
      <p>generates
receives</p>
      <p>Response
CPS</p>
      <p>1..*
ExecutiveSubsystem</p>
      <p>1..*</p>
      <p>CyberComponent
{complete,
disjoint}</p>
      <p>{complete, disjoint}</p>
      <p>Component
ArtificialSubsystem</p>
      <p>NaturalObject</p>
      <p>This framework establishes that
– any CPS consists of at least one instance of class ExecutiveSubsystem and
at least one instance of class CyberComponent;
– each of these instances is an instance of class Component;
– an instance of class ExecutiveSubsystem is either an instance of class
NaturalObject or of class ArtificialSubsystem.</p>
      <p>This model fixes that the message interchange between components of CPS is
the only way to provide interaction of these components:
– each instance of class Component sends an instance of class Message,
which are received by some instances of class CyberComponent;
– each instance of class CyberComponent generates a special message, which
is an instance of class Response, of course, a response depends on
messages received by the cyber component that has generated this response;
– if the component receiving responses is an instance of class
ExecutiveSubsystem then it executes the actions corresponding to the received response
collection, otherwise, the behaviour is similar to the previous case.
The described architecture model establishes that the behaviour of each cyber
component is determined only by a message stream, received by the component.
In this case, the use of trace semantics to distinguish between the correct and
incorrect behaviour of a cyber component is a reasonable solution.</p>
      <p>
        The appropriate approach to the correctness of the logical time dependencies
was apparently first used by Leslie Lamport [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>The clock model is developed to specify and analyse the logical temporal
relationships between the event occurrences (called below instants) inhabiting
di erent event types. The first class citizens of the model are clocks, which
are considered as sources of monotypic instants. The uniqueness of the source
for each event type means that all instants of the same event type are linearly
ordered in time, i.e. for any pair of such instants, we can exactly establish what
instant from this pair has happened before.</p>
      <p>We are interested in studying such relationships between instants which do
not depend on fortuitous aspects of behaviours of the system being studied, but
which fix regularities of behaviours of the system. In other words, our interests
are focused on relations of causality.</p>
      <p>There are two approaches to study these relationships, namely, the approach
based on representing admissible system behaviours by using sequences of
messages describing the sets of simultaneous event occurrences, and the approach
based on representing admissible system behaviours by using objects of the
special category, the category of clock structures. The first approach (see Sec 3) can
be used to define the operational semantics of the specification languages, and
the second approach (see Sec 4) can be used to define the denotational
semantics for languages describing the temporal requirements limiting possible system
behaviours.</p>
      <p>
        Thus, understanding the interrelationship between these two approaches is
an important both theoretical and applied problem for the theory of CPS. The
first results concerning this problem were obtained in [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. This paper develops
the study presented in the mentioned paper.
      </p>
      <p>
        Model of Acceptable Schedules
The operational approach goes back, apparently, to L. Lemport’s long-standing
paper [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. This approach is based on the simple idea to distinguish correct and
incorrect system behaviours by observing streams of system messages that carry
information about occurred events. In the context the concept of safety property
introduced by L. Lamport [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] is very important. This concept was formalised by
B. Alpern and F. B. Schneider in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. They also established an interconnection
between the concepts of safety and liveliness and the topological properties of
the corresponding system traces.
3.1
      </p>
      <p>Clocks, Messages, and Schedules
As mentioned above all monotypic instants have the same source. We call these
sources by clocks and introduce some finite set C whose elements are used to
refer to clocks.</p>
    </sec>
    <sec id="sec-2">
      <title>Definition 1. Any non-empty subset of C is called a message.</title>
      <p>The corresponding set of messages we denote below by MC.</p>
    </sec>
    <sec id="sec-3">
      <title>Definition 2. A schedule (or more precisely a C-schedule) is an infinite se</title>
      <p>quence of messages.</p>
      <p>As usual, the set of all C-schedule we denote by MC!.</p>
      <sec id="sec-3-1">
        <title>Any message 2 MC is interpreted as the notification “at the moment, each</title>
        <p>clock belonging to and only they fired the event occurrence”.</p>
        <sec id="sec-3-1-1">
          <title>Definition 3. Let n 2 N and u be a non-empty finite sequence (a non-empty</title>
          <p>word)1 of messages then the pair (n; u) is called a local schedule that starts at
time point n.</p>
          <p>
            To work with sequences and words, we use the notation like the Python notation
for sequential data types.
3.2 Topology on MC!
This subsection contains some facts of the general topology necessary to
understand the topological nature of the notions of safety and liveliness. For more
detailed acquaintance with the subject, you can refer to [
            <xref ref-type="bibr" rid="ref1 ref14">1,14</xref>
            ].
          </p>
          <p>Proposition 1. The family nZn(u) j n 2 N+; u 2 MC+o where Zn(u) = f 2 MC! j
[n : n + len(u)] = ug forms the base of Tikhonov topology on MC!.
1 The set of non-empty words we denote as usually by MC+.</p>
        </sec>
        <sec id="sec-3-1-2">
          <title>Proposition 2. Let f n j n 2 Ng be a sequence of C-schedules and be a C</title>
          <p>schedule then n n!1! in Tikhonov topology i for any M 2 N+ there exists
N 2 N+ such that for any n &gt; N the equality n[0 : M] = [0 : M] holds.
Definition 4. Let P be a subset of MC! then P is called closed if for any schedule
sequence f n 2 P j n 2 Ng such that there exists = lim n the schedule is
n!1
also a member of P.
3.3</p>
          <p>
            Safety Properties
Speaking not formally, L. Lamport proposed to recognise the property of
schedules (the set of schedules satisfying this property) a safety property if any
violation of this properties can be detected by the way of system observing during
a finite time interval [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ]. The following definition describes formally a safety
property.
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Definition 5. Let P be a property of C-schedules then P is a safety property i</title>
      <p>for any &lt; P there exists n 2 N+ such that 0 &lt; P for each 0 2 Z0[ [0 : n]].
In other words, a property P is a safety property i the set of schedules satisfying
P is a closed set in Tikhonov topology.</p>
      <p>
        One can find the detailed discussion of the formal definition of safety properties
and their topological characteristics in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>We consider that any acceptable behaviour of CPS is being described by the
corresponding safety property. Safety ensures that the corresponding property is
physically correct because it can be checked using information obtained in the
past and present. In other words, checking such a property does not require the
presence of magical abilities like foresight ability.
4</p>
      <p>Category of Clock Structures
We try to describe the denotational approach to modelling of CPS behaviour in
this section. We emphasize that if the approach specified above gives
acceptable schedules in physical time, then the denotational approach describes a pure
logical picture of relations between event occurrences without any references to
physical time.
4.1</p>
      <p>
        Quasi-Ordered Sets
This subsection is given to introduce the mathematical basis for the denotational
approach to semantic modelling of CPS behaviour. The principal source is [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. It
is well known that the quasi-ordered set is a set equipped with a binary relation
that is reflexive and transitive.
      </p>
      <p>As usual, for a quasi-ordered set (X; 4) we define the following derived
binary relations on X (see Table 1).</p>
      <sec id="sec-4-1">
        <title>Further, for a quasi-ordered set (X; 4) and i 2 X the principal ideal generated by i is the subset ( i ] of X defined as ( i ] = f j 2 X j j 4 ig.</title>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Definition 6. Let C be a finite set, each element of which is interpreted as a</title>
      <p>reference to the source (it is called a clock) of occurrences of the same event.
Then a C-structure S 2 is a triple (I; ; 4) where
– I is the set of instants corresponding to the occurrences of events,
– 4 is a quasi-order on I that models the causality relation between instants,
and, finally,
– : I ! C is a surjective mapping that associates each instant with the
clock that is the source of this instant
provided that the following axioms met:
the axiom of unbounded liveness:</p>
      <p>the set I is infinite;
the axiom of finite causality:</p>
      <p>
        for any i 2 I the corresponding principal ideal ( i ] is finite;
the axiom of total ordering for clock timelines:
for each c 2 C the set Ic = 1(c) is linearly ordered by the
corresponding restriction of “4”.
(1)
(2)
(3)
This definition is a repetition of the corresponding definition given in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>Some simple conclusions from this definition are gathered in the following
proposition.</p>
      <p>2 Usually, one uses the term clock structure if C is uniquely determined by the context.
Proposition 3. Let S = (I; ; 4) be a C-structure then
1. width of the ordered set (I; ) is less than or equal to jCj;
2. for each c 2 C the set Ic is well-ordered;
3. for each c 2 C the ordinal type of Ic is less than or equal to !;
4. there is at least one c 2 C such that its ordinal type equals !;
5. the set I is countable;
6. if i; j 2 I and i j then either i = j or i 6 j and j 6 i, i.e. any equivalence
class for the relation “ ” is an antichain for the strict order ;
7. if i; j; i0; j0 2 I, i j, i i0, and j j0 then i0 j0;</p>
      <sec id="sec-5-1">
        <title>8. each instant i 2 I is uniquely characterized by the pair ( (i); idx(i)) where</title>
        <p>idx : I ! N is defined as follows</p>
        <p>idx(i) = f j 2 I (i) j j ig :
4.3</p>
        <p>Morphisms of Clock Structures
As usual, we define morphisms of C-structures to describe the relationship
between them.</p>
      </sec>
      <sec id="sec-5-2">
        <title>Definition 7. Let S0 and S00 be C-structures, I0 and I00 be the corresponding</title>
        <p>sets of instants then a mapping f : I0 ! I00 is called a C-morphism from S0
into S00 if the following holds
1. (i) = ( f (i)) for any i 2 I0;
2. i 4 j implies f (i) 4 f ( j) for any i; j 2 I0;
3. i # j implies f (i) # f ( j) for any i; j 2 I0.</p>
        <p>Note 1. Usually, we do not distinguish symbols used to denote the causality
relations and the mappings associated instants with their sources for di erent
clock systems.</p>
        <sec id="sec-5-2-1">
          <title>Note 2. The fact that f is a C-morphism from S0 into S00 is as usually denoted</title>
          <p>by f : S0 ! S00.</p>
          <p>The following statement establishes an important property of C-morphisms.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Proposition 4. Any C-morphism is an injective mapping.</title>
      <sec id="sec-6-1">
        <title>Proof. Indeed, let us suppose that f : I0 ! I00 be a morphism of C-structures</title>
        <p>(I0; 4; ) and (I00; 4; ), i , j 2 I0, and f (i) = f ( j). Then either (i) , ( j) or
(i) = ( j) and idx(i) , idx( j) (see Prop 3, item 8).</p>
        <p>Firstly, let us assume that (i) , ( j) but then we get ( f (i)) = (i) , ( j) =
( f ( j)) and, therefore, f (i) , f ( j). This contradicts to the supposition, hence
the case is impossible.</p>
        <p>Secondly, let us assume that (i) = ( j) = c and idx(i) , idx( j). Let for
definiteness idx(i) &lt; idx( j) then (i) =
( j) ensures i
j. But this means that i
j, i.e.
i # j and, therefore, f (i) # f ( j), i.e. we have that f (i)
f ( j) is false and, hence,
f (i) = f ( j) is false also. Thus, in this case, we also obtain a contradiction with
the supposition. The case idx( j) &lt; idx(i) is analysed by the similar way.
tu
The following statement is evident.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Proposition 5. For any finite set C, the class of C-structures together with the</title>
      <p>class of C-morphisms form a small category 3.</p>
    </sec>
    <sec id="sec-8">
      <title>Corollary 1 (of Prop 4). Any C-morphism is a monomorphism in the category</title>
      <p>of C-structures.</p>
      <p>The above results lead to the following classification of C-morphisms.
the mapping f : I0 ! I00 is surjective.</p>
      <sec id="sec-8-1">
        <title>Definition 8. A C-morphism f : S0 ! S00 is called a covering C-morphism if</title>
        <p>The following evident proposition clarifies logical relations between di erent
classes of C-morphisms.</p>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>Proposition 6. Logical relations between the notions C-isomorphism, covering</title>
    </sec>
    <sec id="sec-10">
      <title>C-morphism, C-epimorphism, C-bimorphism, C-monomorphism, and C-morphism are shown in Fig. 2.</title>
      <p>C-epimorphism</p>
      <p>C-bimorphism</p>
      <p>C-isomorphism
covering C-morphism</p>
      <p>C-monomorphism</p>
      <p>
        C-morphism
3 The necessary definitions and results from the theory of categories can be found in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
This section contains some results concerning mutual relationships between
operational and denotational models. Below we construct a relation between clock
structures and schedules. This relation describes the possible ways to dip a clock
structure in physical time. Properties of schedules represent these ways.
5.1
      </p>
      <p>Some Needed Technique
Below we need the following notion.</p>
      <p>Definition 9. Let S = (I; ; 4) be a C-structure, A I, and i 2 A then i is
called a minimal instant in A if for any j 2 A the statement j i is false.
The subset of minimal instants of A is below denoted by min A.</p>
      <sec id="sec-10-1">
        <title>We associate the sequence of slices I[0]; I[1]; : : : with any C-structure S in</title>
        <p>the following manner
I[0] = min I</p>
        <p>0 n 1 1
I[n] = min BBBBBB@I n m[=0 I[m]ACCCCCC
for n &gt; 0
where I is the instant set of S.</p>
      </sec>
    </sec>
    <sec id="sec-11">
      <title>Proposition 7. The following properties hold:</title>
      <sec id="sec-11-1">
        <title>1. jI[n]j jCj for each n 2 N;</title>
      </sec>
      <sec id="sec-11-2">
        <title>2. if i; j 2 I[n] for some n 2 N then either i k j or i j;</title>
      </sec>
    </sec>
    <sec id="sec-12">
      <title>3. the sequence of slices is a covering of the set of instants;</title>
      <p>4. if i 2 I[n] for some n 2 N, j 2 I, and j i then j 2 I[n];</p>
      <sec id="sec-12-1">
        <title>5. if i 2 I[n + 1] for some n 2 N then there exists j 2 I[n] such that j i.</title>
        <p>Proof. 1) This property follows directly from Def 6 and item 6 of Prop 3.
2) Indeed, each of statements i j and j i contradicts to the statement that
the both statements i 2 I[n] and j 2 I[n] are true.
3) Suppose that there exists some i 2 I such that i &lt; I[n] for any n 2 N then
using induction one can demonstrate that for each n 2 N there exists jn 2 I[n]
such that jn i. Taking into account that I[m] T I[n] = ? for m , n we
conclude that the set f jn j n 2 Ng is infinite. But this set is a subset of ( i ]. This
contradiction (see Def 6) demonstrates that the proposition is true.</p>
        <sec id="sec-12-1-1">
          <title>4) If j &lt; I[n] then item 3 ensures that j 2 I[m] for some m , n.</title>
          <p>n 1 !
If m &lt; n then k i for some k 2 I n S I[s] . The statement i j ensures
s=0
that k</p>
          <p>j and, therefore, j &lt; min I n S I[s] . This contradiction shows that
m &gt; n. But similar reasoning demonstrates that the assumption m &gt; n leads also
to a contradiction.
5) If i 2 I[n + 1] for some i 2 I[n] then j 6 i for any j 2 I n
j 6 i for all j 2 I[n] also then j 6 i for any j 2 I n</p>
        </sec>
        <sec id="sec-12-1-2">
          <title>I[k] . This means</title>
          <p>S
0 k n
!
!
I[k] . If</p>
          <p>S
0 k&lt;n
that i 2
the proposition.</p>
          <p>S
0 k&lt;n</p>
        </sec>
        <sec id="sec-12-1-3">
          <title>I[k] and, therefore, i 2 I[n + 1] is false. This proves the item of</title>
          <p>tu
tu
mal chain in ( i ] equals n + 1.</p>
        </sec>
      </sec>
      <sec id="sec-12-2">
        <title>Corollary 2. An instant i belongs to I[n] i number of elements of each maxi</title>
        <p>Proof. It is being proved by induction with respect to n.</p>
      </sec>
      <sec id="sec-12-3">
        <title>Corollary 3. Slice I[n] for each n 2 N is a union of -equivalence classes of</title>
        <p>elements belonging the slice, moreover slice elements lying to di erent classes
are independent.
5.2</p>
        <p>Linear Clock Structures
An important special class of clock structures is formed by so-called linear clock
structures.
is false for any i; j 2 I.</p>
        <p>Definition 10. A C-structure L = (I; ; 4) is called a linear C-structure if i k j</p>
        <p>Any linear clock structure holds the following property.</p>
        <p>Proposition 8. Let L = (I; ; 4) be a linear C-structure, S0 = (I0; ; 4) be a
Cstructure, and f : I ! I0 be a covering C-morphism then f is a C-isomorphism.
Proof. Indeed, taking into account that f is a covering C-morphism one can
Now let us demonstrate that g is a C-morphism.
such that g( f (i)) = i for each i 2 I and f (g(i0)) = i0 for each i0 2 I0.
conclude that f is a bijection, hence there exists the unique mapping g : I0 ! I
If i0; j0 2 I0 and i0 4 j0 then for i = g(i0) and j = g( j0) the linearity of I ensures
either j</p>
        <p>i or i 4 j.</p>
        <p>The statement j
j0
i0 _ i0</p>
        <p>i implies j # i and, therefore, f ( j) = j0 # f (i) = i0, i.e.
j0. On the other hand, the statement j
i implies j 4 i and,
therefore, j0 4 i0. But the assertions i0</p>
        <p>j0 and j0 4 i0 are evidently incompatible,
hence j0
i0 is necessary true. Taking into account that j0
i0 and i0 4 j0 are
ensures i
that i
incompatible one can conclude that i 4 j is the unique acceptable variant. Thus,
we proved that g(i0) 4 g( j0).</p>
        <p>Further, if i0; j0 2 I0 and i0 # j0 then for i = g(i0) and j = g( j0) the linearity of I
j or i # j. Taking into account that i
j ensures i0
j0 we conclude
j contradicts to i0 # j0. Thus, we proved that g(i0) # g( j0).</p>
        <p>Therefore, g is the inverse C-morphism for f .
tu
As it is below shown the proposition converse to Prop. 8 is also true.
fore we study its analogue for clock structures.</p>
        <p>
          Definition 11. Let S = (I; ; 4) be C-structures then a covering non-invertible
C-morphism e : I ! I0 for some C-structure S0 = (I0; ; 4) is called an
extension of S. Whenever S0 is a linear C-structure we say that e is a linear extension
The following theorem refines Theorem 3 in [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ].
linear extension e : S ! L such that the condition e(i )
e( j ) holds.
        </p>
        <p>Theorem (about Linear Extension). Let S = ( ; ; 4) be a C-structure and
I
i ; j be some pair of independent instants belonging to I then there exists a
To prove the theorem we need in the following lemmas.
instants in I then there exists an extension e : S ! S such that e(i )
Lemma 1. Let S = ( ; ; 4) be a C-structure and i ; j be two independent
I</p>
        <p>Proof. Let 1 = f g be some singleton. Then let us define</p>
        <p>I = I</p>
        <p>1
(i; ) = (i) for any i 2 I
e(i) = (i; ) for any i 2 I:
(i; ) 4 ( j; ) i either i 4 j or i 4 i and j 4 j for any i; j 2 I
Let us check that “4” defined on I is a quasi-order. Indeed, it is evident that
this relation is reflexive. If now we have that (i; ) 4 ( j; ) and ( j; ) 4 (k; ) for
some i; j; k 2 I then the next variants are only possible:
1. i 4 j and j 4 k; these conditions ensure i 4 k and, hence, (i; ) 4 (k; );
2. i 4 i , j 4 j, and j 4 k; these conditions ensure i 4 i and j 4 k, but this
means that (i; ) 4 (k; );
3. i 4 j, j 4 i , and j 4 k; these conditions ensure (i; ) 4 (k; ) that is
checked similarly to above.</p>
        <sec id="sec-12-3-1">
          <title>Thus, “4” is a quasi-order on I .</title>
          <p>One can easily see that (i ; ) 4 ( j ; ), but ( j ; ) 64 ( j ; ), i.e. e(i )
The construction ensures evidently that i # j implies e(i) # e( j).
And, finally, it is evident that ( (i; ) ]
( i ] S( i ]. Therefore, the set ( (i; ) ] is</p>
        </sec>
        <sec id="sec-12-3-2">
          <title>I ; ; 4) is a C-structure, e : S ! S is a covering C-morphism,</title>
        </sec>
        <sec id="sec-12-3-3">
          <title>Thus, S</title>
          <p>and e(i )
finite for any (i; ) 2 I .</p>
          <p>Lemma 2. Let S = (I; ; 4) then for I = I 1; (i; ) = (i); and (i; ) 4 ( j; )
meaning i 2 I[m], j 2 I[n], and m
n the triple L = (</p>
          <p>I ; ; 4) is a linear
C-structure. Moreover, e : S ! L that is defined as e(i) = (i; ) is a linear</p>
        </sec>
        <sec id="sec-12-3-4">
          <title>Therefore, e is a linear extension of S.</title>
          <p>items 4 and 5 of Prop 7 ensure that i 4 j implies (i; ) 4 ( j; ) and i
Proof. Taking into account that I[m] T I[n] = ? if m , n and item 3 of Prop 7
one can conclude that 4 is a correctly defined quasi-order on I , moreover
j implies
(i; )</p>
          <p>( j; ). Thus, L is a linear C-structure and e is a covering C-morphism.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-13">
      <title>Proof (of Theorem about Linear Extension).</title>
      <p>then e = e00</p>
      <p>e0 is a linear extension of S.</p>
      <sec id="sec-13-1">
        <title>Let e0 : S ! S0 be the extension of S constructed in accordance with Lemma 1 end e00 be the linear extension of S0 constructed in accordance with Lemma 2</title>
        <p>Construction of e0 ensures that e0(i )
e0( j ) and construction of e00 ensures
that i0
j0 implies e00(i0)
e00( j0). Thus, e(i )
linear extensions in the following sense</p>
        <sec id="sec-13-1-1">
          <title>Corollary 4. Each C-structure S is uniquely defined by the family fe g of all its</title>
          <p>if i; j 2 I then i 4 j i e (i) 4 e ( j) for all e .
from S is a C-isomorphism” then this C-structure is linear.</p>
        </sec>
        <sec id="sec-13-1-2">
          <title>Corollary 5. If C-structure S satisfies the property “any covering C-morphism</title>
          <p>Note 3. Cor 5 is the claimed inversion of Prop 8.</p>
          <p>Note 4. The obtained criterion for the linearity of a clock structure shows that
all linear clock structures and only them are “weak terminal” with respect to
covering clock morphisms.
tu
tu
tu
Linear extensions of a clock structure can be considered as admissible
realisations of the clock structure in physical time. In this subsection, the
corresponding formal relation called admissibility is defined.</p>
          <p>Let us assume that some finite set of clock are fixed. Then we associate
the linear C-structure L = (I ; 4; ) with any C-schedule in the following
manner:
1. I = f(n; c) 2 N C j c 2 (n)g;
2. (n; c) = c for (n; c) 2 I ;</p>
        </sec>
      </sec>
      <sec id="sec-13-2">
        <title>3. (m; a) 4 (n; b) means m n for any (m; a) and (n; b) belonging to I .</title>
        <p>Thus we can define the following relation.</p>
        <sec id="sec-13-2-1">
          <title>Definition 12. We say that a C-structure S admits a C-schedule this fact by S j= if there exists an extension e : S ! L .</title>
          <p>Def 12 leads us to the notion property of clock structure.
and denote
Definition 13. A set of C-schedules P is a property of C-structure S 4 if for any
2 P the condition S j= is fulfilled.</p>
          <p>Cor 4 of Theorem about Linear Extension shows that any clock structure can be
uniquely specified by some property, which we call the characteristic property of
the structure. Unfortunately, at this time we do not how can be characterised the
class of properties that contains all characteristic properties of clock structures
and only them. Such a hypothesis seems plausible.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-14">
      <title>Conjecture. The characteristic property of any clock structure is a safety prop</title>
      <p>erty.
6</p>
      <p>Conclusion
The paper discusses the problems of the interaction of components for an
important class of complex systems, so-called cyber-physical systems. The clock
model, first described by L. Lamport has been chosen as the principle tool for
research. Such a choice is motivated by rich expressive means of the model
language, which provide the specification process both synchronous and
asynchronous methods of intercomponent interactions. The successful practice of
using this model for specification temporal guarantees and constraints for
system behaviour on the base of Clock Constraint Specification Language was also
taking into account.</p>
      <p>4 Symbolically, S j= P.</p>
      <p>Two approaches to modelling logical time for cyber-physical system have
been considered in the paper.</p>
      <p>The first approach is based on the notion schedule, which is used to model an
acceptable sequence of occurrences of system events. Each set of schedules can
be considered as a specification of the required property of system behaviour. In
the context, the key notion is safety property that ensures the guarantee to detect
a violation of system behaviour during a finite time.</p>
      <p>The second approach had been proposed to define the denotational
semantics of Clock Constraint Specification Language. In the paper, our e orts have
been focused on developing this approach on the base of the category-theoretic
language. Sets of instants equipped by the causality relation and the mapping
associating each instant with its source are objects of the corresponding
category, a category of clock structures. Using the category-theoretic language has
given a possibility to refine and make more rigorous this model due to the suited
definition of morphisms. The theorem about linear extension under such an
approach is becoming more expressive. This theorem, which has been proved in
the paper, is a bridge between two approaches being analysed.</p>
      <p>The manner to use Theorem about Linear Extension to establish
interdependence between clock structures and properties of schedules has been described
in the last part of the paper.</p>
      <p>It has been shown that properties of clock structures are identified by sets of
schedules. It is also clear that there exist sets that are not characteristic properties
of the corresponding clock structure. But the problem to prove the Conjecture
formulated in Subsection 5.4 is very important because if Conjecture is fulfilled
then the role of safety properties obtains not only operational but denotational
meaning.</p>
      <p>Another very important and interest problem consists in studying the
features of the class of properties that are characteristic properties of clock
structures.</p>
      <p>We hope that further study of this topic will lead to formulating the weakest
necessary requirements for the languages of the behaviour constraint
specification based on the clock model for cyber-physical systems.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Alpern</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schneider</surname>
            ,
            <given-names>F. B.: Defining</given-names>
          </string-name>
          <string-name>
            <surname>Liveness</surname>
          </string-name>
          .
          <source>Information Processing Letters</source>
          .
          <volume>21</volume>
          ,
          <fpage>181</fpage>
          -
          <lpage>185</lpage>
          (
          <year>1985</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cachin</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guerraoui</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rodrigues</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Introduction to Reliable and Secure Distributed Programming, 2nd edition</article-title>
          . Springer-Verlag Berlin Heidelberg (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Carruthers</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Internet of Things and Beyond: Cyber-Physical Systems</article-title>
          . IEEE IoT Newsletter. May (
          <year>2016</year>
          ), http://iot.ieee.org/newsletter/may-2016/
          <article-title>internet-of-things-and-beyond-cyber-physical-systems</article-title>
          .html
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Glitia</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Deantoni</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mallet</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Logical Time @ Work: Capturing Data Dependencies and Platform Constraints</article-title>
          . In: Kaz´mierski,
          <string-name>
            <given-names>T. J. J.</given-names>
            ,
            <surname>Morawiec</surname>
          </string-name>
          , A (Eds.).
          <source>System Specification and Design Languages. LNEE</source>
          , vol.
          <volume>106</volume>
          ,
          <fpage>223</fpage>
          -
          <lpage>238</lpage>
          . Springer New York (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Harzheim</surname>
          </string-name>
          , E.: Ordered Sets. Springer Science &amp; Business
          <string-name>
            <surname>Media</surname>
          </string-name>
          (
          <year>2006</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kshemkalyani</surname>
            ,
            <given-names>A. D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Singhal</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          : Distributed Computing: Principles, Algorithms, and Systems. Cambridge University Press (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Lamport</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Proving the Correctness of Multiprocess Programs</article-title>
          .
          <source>IEEE Transactions on Software Engineering</source>
          .
          <volume>2</volume>
          ,
          <fpage>125</fpage>
          -
          <lpage>143</lpage>
          (
          <year>1977</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Lamport</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Time, clocks, and the ordering of events in a distributed system</article-title>
          .
          <source>CACM</source>
          .
          <volume>21</volume>
          (
          <issue>7</issue>
          ),
          <fpage>558</fpage>
          -
          <lpage>565</lpage>
          (
          <year>1978</year>
          ), http://lamport.azurewebsites.net/pubs/time-clocks.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Mac</given-names>
            <surname>Lane</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.</surname>
          </string-name>
          :
          <article-title>Categories for the Working Mathematician</article-title>
          , 2nd ed. Springer-Verlag New York Inc (
          <year>1998</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Mallet</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Clock constraint specification language: specifying clock constraints with UML/MARTE</article-title>
          . Innovations
          <source>in Systems and Software Engineering</source>
          .
          <volume>4</volume>
          (
          <issue>3</issue>
          ),
          <fpage>309</fpage>
          -
          <lpage>314</lpage>
          (
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Mallet</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>MARTE/CCSL for Modeling Cyber-Physical Systems</article-title>
          . In: Drechsler,
          <string-name>
            <surname>R.</surname>
          </string-name>
          and Ku¨hne, U. (Eds.)
          <article-title>Formal Modeling and Verification of Cyber-Physical Systems</article-title>
          . Pp.
          <volume>26</volume>
          -
          <fpage>49</fpage>
          . Springer Fachmedien Wiesbaden (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <source>The National Science Foundation. Cyber-Physical Systems (CPS)</source>
          .
          <source>Program Solicitation NSF 12-520</source>
          . Arlington, VA: NSF,
          <year>2012</year>
          , https://www.nsf.gov/pubs/2012/nsf12520/ nsf12520.htm#toc
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <source>The National Science Foundation. Cyber-Physical Systems (CPS)</source>
          .
          <source>Program Solicitation NSF 17-529</source>
          . Arlington, VA: NSF,
          <year>2017</year>
          , https://www.nsf.gov/pubs/2017/nsf17529/ nsf17529.htm#toc
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Willard</surname>
          </string-name>
          , S.:
          <article-title>General Topology. Dover Publication Inc</article-title>
          . Mineola, NY (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Zholtkevych</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mallet</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaretska</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zholtkevych</surname>
          </string-name>
          , G.:
          <article-title>Two Semantic Models for Clock Relations in the Clock Constraint Specification Language</article-title>
          . In: Ermolayev,
          <string-name>
            <surname>V.</surname>
          </string-name>
          et al (Eds.) Information and Communication Technologies in Education, Research, and
          <string-name>
            <given-names>Industrial</given-names>
            <surname>Applications</surname>
          </string-name>
          . CCIS, vol.
          <volume>412</volume>
          ,
          <fpage>190</fpage>
          -
          <lpage>209</lpage>
          . Springer International Publishing (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>