<!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>Hidden States in Reaction Systems ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Roberta Gori</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Damas Gruska</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paolo Milazzo</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Applied Informatics, Faculty of Mathematics</institution>
          ,
          <addr-line>Physics and Informatics</addr-line>
          ,
          <institution>Comenius University in Bratislava</institution>
          ,
          <addr-line>Slovak Republic</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dipartimento di Informatica, Universita di Pisa</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Pushing forward a previous investigation on security of reaction systems, we introduce new state based security properties. Assume there are some states of a reaction system that are in some sense critical, and that we want to hide whether the system reaches them. We de ne new security properties that guarantee that an external observer who has only a partial knowledge on the objects provided by the environment cannot infer whether a secret state is reached by the system. We also propose an e ective method for verifying such properties. The veri cation method is based on a newly de ned extension of the concept of formula based predictor to set of states.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>? Work supported by the grant VEGA 1/0778/18 and by the project \Metodologie
informatiche avanzate per l'analisi di dati biomedici" (University of Pisa, PRA 2017 44).</p>
      <p>
        In previous papers [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ] we investigated the concept of opacity in reaction
systems. Assume we have a real biochemical system described by a reaction system,
and an observer having a partial information about the objects provided by the
environment because of the cost of obtaining such informaton. We can distinguish two
types of objects: visible low level (L) objects, and invisible high level (H) objects.
We studied the detectability of H-objects, namely how much information on the
presence of H-objects can be obtained by just observing the presence of L-objects in
context sequences. This problem, called information ow [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], was extensively
studied in security by introducing the concept of opacity [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ]. We reformulated opacity
for reaction systems and proposed dynamic causality relatioships (formula based
predictors) as an e ective method to verify opacity properties in reaction systems.
      </p>
      <p>In this paper we push forward our approach by considering sets of secret states.
Let Sec be a set of states and assume we want to hide to an external observer
whether a reaction system reaches one of such states. So, Sec is a set of secret
states. As before, the observer can only see L-objects in context sequences. In order
to prevent the observer to infer whether the system reaches a secret state, we have
to ensure that for every context sequence leading to one of such states there exists
another context sequence leading to a non-secret state that is indistinguishable from
the previous one from the (limited) point of view of the observer. In other words, the
two context sequences must make the same use of L-objects, which are the only ones
that can be observed. We will formalize this idea in terms of two security properties
called Current State Opacity and n-p Window Current state Opacity, and we will
provide e ective methods for verifying them based on dynamic causalities.</p>
      <p>
        Dynamic causalities deal with the ways entities dynamically in uence each other.
Brijder, Ehrenfeucht and Rozenberg initiated an investigation on causalities in
reaction systems [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], by introducing the idea of predictor. Assume that one is interested
in knowing whether a particular object s 2 S will be present after n steps of
execution of the reaction system. Since the only source of non-determinism are the
contextual elements received at each step, knowing which objects will be received
allows the production of s after n steps to be predicted. In [9{12] the new notion of
formula based predictor was introduced. A formula based predictor is a propositional
logic formula to be satis ed by the sequence of (sets of) elements provided by the
environment. Satisfaction of the logic formula precisely discriminates the cases in
which s will be produced after n steps from those in which it will not. In the style of
[
        <xref ref-type="bibr" rid="ref13 ref14">13, 14</xref>
        ], here the notion of formula-based predictor is rst naturally extended to sets
of objects (states), and then it is extended to sets of states. The result is a formula
based predictor that can be used to precisely characterize all context sequences that
lead to one secret state in a set Sec. We apply this extended predictor for secret
states in Sec to prove whether the reaction system is opaque for an observer that
can only see L-objects of the context sequence provided by the environment.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Reaction Systems</title>
      <p>
        In this section we brie y introduce reaction systems [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. Given S, a nite set of
symbols, called objects, a reaction is a triple (R; I; P ) with R; I; P S, composed
of reactants R, inhibitors I, and products P . Reactants and inhibitors are disjoint
(R \ I = ;) otherwise the reaction would never be applicable. The set of all possible
reactions over a set S is denoted by rac(S). Finally, a reaction system is a pair
A = (S; A), with S a nite background set, and A rac(S) a set of reactions.
      </p>
      <p>The state of a reaction system is a set of objects. Let a = (Ra; Ia; Pa) be a
reaction and T be a set of objects. The result resa(T ) of the application of a to T is
either Pa, if T separates Ra from Ia (i.e. Ra T and Ia \ T = ;), or the empty set
; otherwise. The application of multiple reactions at the same time occurs without
any competition for the used reactants (threshold supply assumption). Therefore,
each reaction for which no inhibitor is present in the current state is applied, and
the result of application of multiple reactions is cumulative. Given a reaction system
A = (S; A), the result of the application of A to a set T S is de ned as resA(T ) =
resA(T ) = Sa2A resa(T ). An important characteristic of reaction systems is the
assumption about the non-permanency of objects: the objects carried over to the
next step are only those produced by reactions. All the other objects vanish.</p>
      <p>The dynamics of a reaction system A = (S; A) is driven by the contextual
objects, namely the objects which are supplied to the system by the external
environment at each step. The dynamics is de ned as an interactive process = ( ; ),
with and being nite sequences of sets of objects called the context sequence and
the result sequence, respectively. The sequences are of the form = C0; C1; : : : ; Cn
and = D0; D1; : : : ; Dn for some n 1, with Ci; Di S, and D0 = ;. Each set
Di, for i 1, in the result sequence is obtained from the application of reactions A
to a state composed of both the results of the previous step Di 1 and the objects
Ci 1 from the context; formally Di = resA(Ci 1 [ Di 1) for all 1 i n. Finally,
the state sequence of is the sequence W0; W1; : : : ; Wn, where Wi = Ci [ Di for all
1 i n. In the following we call = C0; C1; : : : ; Cn a n-step context sequence.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Preliminaries on Predicate Logic</title>
      <p>The aim of formula based predictors is to characterize all context sequences that
lead to the production of a speci c object in a given number of steps. In order to
describe conditions on the presence or absence of objects in context sequences, we
use objects of reaction systems as propositional symbols. Formally, we de ne the set
FS of propositional formulas on S in the standard way: S [ ftrue; f alseg FS and
:f1; f1 _ f2; f1 ^ f2 2 FS if f1; f2 2 FS . Propositional formulas FS are interpreted
with respect to subsets of S. Intuitively, a subset C S is used to describe the
objects that are present in (an element of) a context sequence, and this implies
the truth of the corresponding propositional symbol. The formal de nition of the
satisfaction relation is as follows.</p>
      <p>De nition 1. Let C S for a set of objects S. Given a propositional formula
f 2 FS , the satisfaction relation C j= f is inductively de ned as follows:
C j= s i s 2 C;
C j= :f 0 i C 6j= f 0;
C j= f1 ^ f2 i C j= f1 and C j= f2:</p>
      <p>C j= true;</p>
      <p>C j= f1 _ f2 i either C j= f1 or C j= f2;
In the following l stands for the logical equivalence on propositional formulas FS .
Moreover, given a formula f 2 FS we use atom(f ) to denote the set of propositional
symbols that appear in f . The simpli ed version of a formula is obtained by applying
the standard formula simpli cation procedure of propositional logic converting a
formula to Disjunctive Normal Form, DN F (f ). We recall that for any formula
f 2 FS the simpli ed formula DN F (f ) is equivalent to f , it is minimal with
respect to the number of propositional symbols and unique up to commutativity
and associativity. Thus, we have f l DN F (f ) and atom(DN F (f )) atom(f )
and there exists no formula f 0 such that f 0 l f and atom(f 0) atom(DN F (f )).</p>
      <p>The causes of an object in a reaction system are de ned by a propositional
formula on the set of objects S. First of all we de ne the applicability predicate of
a reaction a as a formula describing the requirements for applicability of a, namely
that all reactants have to be present and inhibitors have to be absent. This is
represented by the conjunction of all atomic formulas representing reactants and the
negations of all atomic formulas representing inhibitors of the considered reaction.
De nition 2. Let a = (R; I; P ) be a reaction with R; I; P S for a set of objects
S. The applicability predicate of a, denoted by ap(a), is de ned as follows: ap(a) =
Vsr2R sr ^ Vsi2I :si :
The causal predicate of a given object s is a propositional formula on S representing
the conditions for the production of s in one step, namely that at least one reaction
having s as a product has to be applicable.</p>
      <p>De nition 3. Let gA = (S; A) be a r.s. and s 2 S. The causal predicate of s in A,
denoted by cause(s; A) (or cause(s), when A is clear from the context), is de ned
as follows3: cause(s; A) = Wf(R;I;P )2Ajs2P g ap ((R; I; P )) :</p>
      <sec id="sec-3-1">
        <title>We introduce a simple reaction system as running example.</title>
        <p>Example 1. Let A1 = (fA; : : : ; Gg; fa1; a2; a3g) be a reaction system with
a1 = (fAg; fg; fBg)
a2 = (fC; Dg; fg; fE; F g)
a3 = (fGg; fBg; fEg) :
The applicability predicates of the reactions are ap(a1) = A, ap(a2) = C ^ D and
ap(a3) = G ^ :B. Thus, the causal predicates of the objects are
cause(A) = cause(C) = cause(D) = cause(G) = f alse;
cause(B) = A; cause(F ) = C ^ D; cause(E) = (G ^ :B) _ (C ^ D):
Note that cause(A) = f alse given that A cannot be produced by any reaction. An
analogous reasoning holds for objects C, D and G.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Formula Based Predictors</title>
      <p>
        In the rst part of this section we introduce the notion of formula based predictor
as it was originally presented in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Then, we extend the notion of predictors to
3 We assume that cause(s) = f alse if there is no (R; I; P ) 2 A such that s 2 P .
states (see Corollary 1) and to sets of states (see Corollary 2) in order to address
causal dependences of the secret states set Sec that we want to hide.
      </p>
      <p>A formula based predictor for an object s at step n + 1 is a propositional formula
satis ed exactly by the context sequences leading to the production of s at step n+1.
Minimal formula based predictors can be calculated in an e ective way.</p>
      <p>Given a set of objects S, we consider a corresponding set of labelled objects
S IN. For the sake of legibility, we denote (s; i) 2 S IN simply as si and we
introduce Sn = Sin=0 Si where Si = fsi j s 2 Sg. Propositional formulas on labelled
objects Sn describe properties of n-step context sequences. The set of propositional
formulas on Sn, denoted by FSn , is de ned analogously to the set FS (presented in
Sect. 3) by replacing S with Sn. Similarly, the set FSi can be de ned by replacing
S with Si. Given a formula f 2 FS , a corresponding formula labelled(f; i) 2 FSi
can be obtained by replacing each s 2 S in f with si 2 Si.</p>
      <p>A labelled object si represents the presence (or the absence, if negated) of object
s in the i-th element Ci of the n-step context sequence = C0; C1; : : : Cn. This
interpretation leads to the following de nition of satisfaction relation for propositional
formulas on context sequences.</p>
      <p>De nition 4. Let = C0; C1; : : : Cn be a n-step context sequence and f 2 FSn a
propositional formula. The satisfaction relation j= f is de ned as
fsi j s 2 Ci; 0
i
ng j= f :
As an example, let us consider the context sequence = C0; C1 where C0 = fA; Cg
and C1 = fBg. We have that satis es the formula A0 ^ B1 (i.e. j= A0 ^ B1)
while does not satisfy the formula A0 ^ (:B1 _ C1) (i.e. 6j= A0 ^ (:B1 _ C1)).</p>
      <p>The latter notion of satisfaction allows us to de ne formula based predictor.
De nition 5 (Formula based Predictor). Let A = (S; A) be a reaction system,
s 2 S and f 2 FSn a propositional formula. We say that f f-predicts s in n + 1
steps if for any n-step context sequence = C0; : : : ; Cn</p>
      <p>j= f , s 2 Dn+1
where = D0; : : : ; Dn is the result sequence corresponding to
resA(Cn [ Dn).
and Dn+1 =
Note that if formula f f-predicts s in n + 1 steps and if f 0 l f then also f 0
fpredicts s in n + 1. More speci cally, we are interested in the formulas that f-predict
s in n + 1 and contain the minimal numbers of propositional symbols, so that their
satis ability can easily be veri ed. This is formalised by the following approximation
order on FSn .</p>
      <p>De nition 6 (Approximation Order). Given f1; f2 2 FSn we say that f1 vf f2
if and only if f1 l f2 and atom(f1) atom(f2).</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] it is shown that there exists a unique equivalence class of formula based
predictors for s in n + 1 steps that is minimal with respect to the order vf .
      </p>
      <p>We now de ne an operator fbp that allows formula based predictors to be
effectively computed.</p>
      <p>De nition 7. Let A = (S; A) be a r.s. and s 2 S. We de ne a function fbp :
S IN ! FSn as follows: fbp(s; n) = fbs(cause(s); n), where the auxiliary function
fbs : FS IN ! FSn is recursively de ned as follows:
fbs(s; 0) = s0
fbs((f 0); i) = (fbs(f 0; i))
fbs(:f 0; i) = :fbs(f 0; i)
fbs(true; i) = true
fbs(s; i) = si _ fbs(cause(s); i 1) if i &gt; 0
fbs(f1 _ f2; i) = fbs(f1; i) _ fbs(f2; i)
fbs(f1 ^ f2; i) = fbs(f1; i) ^ fbs(f2; i)
fbs(f alse; i) = f alse
The function fbp gives a formula based predictor that, in general, may not be
minimal with respect to the approximation order vf . Therefore, the calculation of a
minimal formula based predictor requires the application of the standard simpli
cation procedure that simpli es the obtained logic formula and puts it in disjunctive
normal form, here called simply DN F (:).</p>
      <p>Theorem 1. Let A = (S; A) be a r.s.. For any object s 2 S,
{ fbp(s; n) f-predicts s in n + 1 steps;
{ DN F (fbp(s; n)) f-predicts s in n + 1 steps and is minimal w.r.t. vf .
Example 2. Let us consider again the reaction system A1 of Ex. 1. We are interested
in the production of E after 4 steps. Hence, we calculate the logic formula that
fpredicts E in 4 steps applying the function fbp:
fbp(E; 3) = fbs (G ^ :B) _ (C ^ D); 3
= fbs(G; 3) ^ :fbs(B; 3) _ fbs(C; 3) ^ fbs(D; 3)
= (G3) ^ :(B3 _ fbs(A; 2))) _ (C3 ^ D3)
= G3 ^ :B3 ^ :A2 _ (C3 ^ D3)
A context sequence satis es fbp(E; 3) i the execution of the reaction system leads
to the production of object E after 4 steps. Furthermore, in this case the obtained
formula is also minimal w.r.t. vf . This is because DN F (fbp(E; 3)) = fbp(E; 3).
Indeed, the formula fbp(E; 3) cannot be further simpli ed and any literal cannot
be canceled without obtaining a non equivalent formula.</p>
      <p>The result of Theorem 1 can be easily extended to states. Indeed, we can
characterize all the context sequences that lead to the production of the set of objects
of the state. To this aim, we need to consider the context sequences that satisfy all
conditions for the production of each single object of the set. Assume sec to be a
state, that is, a set of objects in S then we can characterize all the context sequence
leading to states in the following way.</p>
      <p>Corollary 1. Let A = (S; A) be a r.s.. Consider sec a set of objects in S,
{ Vs2sec fbp(s; n) f-predicts sec in n + 1 steps;
{ DN F Vs2sec fbp(s; n) f-predicts s in n + 1 steps and is minimal w.r.t. vf .</p>
      <p>Moreover, the previous results can be extended to nite sets of states. Assume
Sec to be a set of states fsec1; sec2; ::::; secmg, for some m. We need to characterize
all the context sequences that lead to some state in Sec.</p>
      <p>Corollary 2. Let A = (S; A) be a r.s.. Let Sec be a set of states fsec1; sec2; ::::; secmg,
for some m,
{ Wseci2Sec
{ DN F Wseci2Sec
mal w.r.t. vf .</p>
      <p>Vs2seci fbp(s; n) f-predicts the set Sec in n + 1 steps;</p>
      <p>Vs2seci fbp(s; n) f-predicts Sec in n + 1 steps and is
miniExample 3. Let us consider again the reaction system A1 of Examples 1 and 2.
Assume we are interested in reaching the state fE; F g after 4 steps. In Example 2
we calculated the logic formula that f-predicts E in 4 steps applying the function
fbp. This resulted in the formula G3 ^ :B3 ^ :A2 _ (C3 ^ D3) . Analogously, we
can calculate the logic formula that f-predicts F in 4 steps applying the function
fbp. This resulted in the formula (C3 ^ D3). Now, in order to obtain the minimal
formula characterising the context sequences that lead to the state where both E
and F are present, according to Corollary 1, we need to compute</p>
      <p>DN F (fbp(E; 4) ^ fbp(F; 4)) =
DN F</p>
      <p>(G3 ^ :B3 ^ :A2) _ (C3 ^ D3) ^ (C3 ^ D3) = C3 ^ D3:
A context sequence satis es C3 ^ D3 i the execution of the reaction system leads
to the production of both object E and F after 4 steps.</p>
      <p>Assume now we are interested in characterising the context sequences that
either lead to state fE; F g or to state fBg after 4 steps. Hence, in this case
Sec = ffE; F g; fBgg.</p>
      <p>According to Corollary 2 the minimal formula can be obtained by computing
DN F ((fbp(E; 4) ^ fbp(F; 4)) _ fbp(B; 4)) =</p>
      <p>DN F ((C3 ^ D3) _ A3) = (C3 ^ D3) _ A3:</p>
      <p>Note that any sequence satisfying the formula (C3 ^ D3) _ A3 leads to a state
in Sec. Moreover, such sequences are the only ones that can lead to the production
of a state in Sec.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Information ow</title>
      <p>
        As in [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ], we now consider a reaction system A = (S; A) where we assume an
external observer can only detect or see some kinds of objects in the context sequence.
To formally describe this situation, borrowing techniques developed for reasoning
about ow based security (see [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]), we divide objects from S into two groups, namely
public (low level) objects L and private (high level) objects H. It is assumed that
L [ H = S and L \ H = ;. We assume that an observer can see only L-objects, i.e.
objects from L. Moreover, we introduce an equivalence on sets of objects and on
contexts sequences. Two sets of objects A; B are equivalent with respect to the set
M if they contain the same objects apart from those in M . Formally, A M B i
A n M = B n M . This can be applied to reaction system contexts: we write 1 M 2
if 1 = C01; ::::Cn1; ::: and 2 = C02; ::::Cn2; ::: and 8i; Ci1 M Ci2. To formalize
information ow between L-objects and H-objects we exploit a concept known as current
state opacity (see [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] for an overview paper).
Let us assume a set of states Sec with Sec 2S . We assume an external observer of
the system who can detect or see only L objects in the context sequence, but who
wants to discover whether the current state Wi is a secret state belonging to Sec.
In this context a reaction system is i-current state opaque if whenever there exists
a context sequence leading to a secret state of Sec, there exists an equivalent (with
respect to the L object) context sequence that does not lead to a secret state in Sec.
This will assure us that just observing the context sequence an external observer
cannot decide whether the system will go to a secret state.
      </p>
      <p>De nition 8. (i-Step Current State Opacity) The reaction system A = (S; A) is
i-current state opaque with respect to L and Sec i whenever there exists an i-step
context sequence leading to a secret state in Sec, that is, Di+1 2 Sec, there also
exists an i-step context sequence 0 not leading to a state in Sec, that is, Di0+1 62 Sec,
such that L 0.</p>
      <p>
        Note that di erently from our previous work [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ], here the attacker observes
properties of context sequences to detect properties of the system states.
      </p>
      <p>Since formula based predictors express all causal dependences of an object from
all the objects of the context sequences, we can use this concept to verify if a reaction
system is i-step current state opaque.</p>
      <p>Theorem 2. A r.s. A is i-current state opaque with respect to L and Sec i</p>
      <sec id="sec-5-1">
        <title>DN F Wsec2Sec Vs2sec fbp(s; i)</title>
        <p>8m 2 f1; :::; ng; fA j Aj 2 atom(cm); with 0
= c1 _ c2 _ ::: _ cn and
j &lt; ig \ (S n L) 6= ;:
Proof. We start by proving the right hand implication. Assume by contradiction
that the reaction system A is i-current state opaque with respect to L and Sec but
that there exists a cm such that fA j Aj 2 atom(cm); with 0 j &lt; ig \ (S n L) = ;.
Choose a minimal context sequence such that j= cm. has to be minimal in
the sense that it just provides the positive literals in the conjunction cm. Note that
by hypothesis, provides only low level L-objects. Note that j= cm implies that
j= c1 _ c2 _ ::: _ cn = DN F Wsec2Sec Vs2sec fbp(s; i) . By applying Corollary 2
we have that the context sequence leads to the production of one state in Sec after
i steps. However, since contains just low level objects L, any context sequence
0 such that 0 L will satisfy cm, since cm contains only L-objects. Then, by
Corollary 2 any 0 will lead to the production of a state in Sec after i steps. Therefore
A is not i-current state opaque. This gives a contradiction.</p>
        <p>For proving the left hand implication, assume, by contradiction that every ci
contain at least an H object but that the reaction system A is not i-current state
opaque with respect to a set of low level objects L and Sec. This implies that there
do not exist two context sequence and 0 with L 0 such that one lead to a
secret state in Sec and the other does not.</p>
        <p>Choose a leading to the production of a state in Sec such that it satisfy only
one particular conjunction ci in the disjunction c1 _ c2 _ ::: _ cn. By Corollary 2 such
exists and we can choose as the minimal context sequence satisfying a ci. Since
by hypothesis ci is a conjunction containing at least one object in S n L consider 0
as the context sequence satisfying the conjunction of low level objects in ci but that
does not satisfy the S n L literals in ci. Now, by construction L 0. However,
0 6j= ci. Moreover, since we have chosen to be the minimal context sequence
satisfying just ci and ci 2 c1 _ c2 _ ::: _ cn then it is simpli ed, we can be sure that
0 6j= c1 _ c2 _ ::: _ cn. Then, by Corollary 2, we have that the context sequence 0
does not lead to the production of a state in Sec. Hence, we found and 0 such
that L 0 and context sequence leads to a secret state in Sec while context
sequence 0 does not. This gives a contradiction.
tu
This gives us an easy method to verify if a reaction system is i-current state opaque
with respect to a set of low level objects L and a secret set of states Sec. While
computing c1 _ c2 _ ::: _ cn gives us a way to represent all di erent context sequences
that lead to the production of a secret state in Sec (see Corollary 2), the condition
that each conjunction in c1 _ c2 _ ::: _ cn has to contain at least one non low level
object, gives us a way to automatically construct an L-equivalent context sequence
that does not lead to a state in Sec. We will illustrate this construction in the next
example. As a consequence of Theorem 2, we can state the following proposition.
Proposition 1. The property of a reaction system A to be i-current state opaque
with respect to a set of low level objects L and a secret set of states Sec is decidable.
Example 4. Let A2 = (fA; : : : ; F g; fa1; a2; a3; a4g) be a reaction system with
a1 = (fAg; fBg; fCg)
a3 = (fDg; fg; fBg)
a2 = (fAg; fDg; fCg)
a4 = (fF g; fg; fEg)
and consider L = fA; B; E; F g; Sec = ffC; Egg. Note that A2 is 3-current state
opaque even if E is caused just by a low level object F . Roughly speaking, A2 is
icurrent state opaque for each i 2 because in that case C is always caused by an H
level object. This can formally be proved by considering DN F (fbp(C; 3)^fbp(E; 3))
DN F (fbp(C; 3) ^ fbp(E; 3)) = DN F fbs (A ^ :B) _ (A ^ :D); 3 ^ fbs(F; 3)
= DN F ((fbs(A; 3) ^ :fbs(B; 3))</p>
        <p>_ (fbs(A; 3) ^ :fbs(D; 3))) ^ fbs(F; 3)
= DN F ((A3 ^ :B3 ^ D2) _ (A3 ^ :D3)) ^ F3
= (A3 ^ :B3 ^ D2 ^ F3) _ (A3 ^ :D3 ^ F3)
Since both conjunctions A3 ^ :B3 ^ D2 ^ F3 and A3 ^ :D3 ^ F3 contain at least
a high level object D then by Theorem 2 we are sure that A2 is 3-current state
opaque.</p>
        <p>It is worth noting that using the formula based predictor for each leading to
the production of a secret state in Sec we can actually construct 0 with L 0
such that 0 does not lead to a secret state in Sec. Indeed, let = C1; C2; C3
where C2 and C3 are such that D 2 C2, F; A 2 C3 and B 62 C3. Consider then
0 = C1; C2 n fDg; C3, by Corollary 2, we have that lead to a state in Sec while
0 does not lead to the state in Sec.</p>
        <p>The following example shows that the conditions for a system to be i-current
state opaque cannot be checked on isolation. Let A3 = (fA; : : : ; Dg; fa1; a2g) be
the following reaction system with rules
a1 = (fAg; fDg; fBg)
a2 = (fA; Dg; fg; fCg)
and consider L = fA; B; Cg; Sec = ffCgfBgg. Note that both rules depend on one
H-object D. However, the system is not i-current state opaque for any i 1. Let
us verify if a system is 3-current state opaque,</p>
        <p>DN F (fbp(B; 3) _ fbp(C; 3)) = DN F fbs (A ^ :D); 3 _ fbs (A ^ D); 3
= DN F (fbs(A; 3) ^ :fbs(D; 3)</p>
        <p>_ (fbs(A; 3) ^ fbs(D; 3))
= DN F (A3 ^ :D3) _ (A3 ^ D3) = A3</p>
        <p>In this case, the conjunction A3 does not satisfy the claim of Theorem 2 since
it does not have at least one hight level H-object. Indeed, consider any context
sequence = C1; C2; C3 where A 2 C3. Note that any context sequence 0 L
will provide A at the third step. Then, by Corollary 2, any 0 L will lead to the
state in Sec. Hence, A3 is not 3-state opaque.
5.2</p>
        <p>n-p Window State Opacity
We now introduce a stronger notion of opacity. Assume now that an observer can
observe all objects in the context sequence except for a \blurry window" on which
it can observe just L-objects. Once again he wants to discover whether the state at
some given step belongs to the set of secret states Sec.</p>
        <p>We rst de ne the concept of observational window of a context sequence. Let
= C0; ::::Cn; :::; Cp; :::; Ci, by n;p, for 0 n p we denote the subsequence
Cn; :::; Cp.</p>
        <p>0;n 1 S 00;n 1, n;p</p>
        <p>L n0;p and p+1;i S p0+1;i.</p>
        <p>De nition 9. (n-p Window i-State Opacity) Let n and p such that 0 n p i.</p>
        <p>Reaction system A = (S; A) is n-p window i-state opaque with respect to L and
Sec, i whenever there exists a such that Di+1 belongs to Sec, i.e. Di+1 2 Sec,
there exists 0 such that state Di0+1 does not belong to Sec i.e. Di0+1 62 Sec and</p>
        <p>Once again, formula based predictors can be used to verify if a reaction system
is n-p window i-state opaque.</p>
        <p>Theorem 3. A reaction system A is n-p window i-state opaque with respect to L
and Sec i for every</p>
      </sec>
      <sec id="sec-5-2">
        <title>DN F Wsec2Sec Vs2sec fbp(s; i)</title>
        <p>8m 2 f1; :::; ng; fA j Aj 2 atom(cm); with n
= c1 _ c2 _ ::: _ cn and
j
pg \ (S n L) 6= ;:
As before, to verify if a reaction system is n-p window i-state opaque with respect to
a set of low level objects L and a secret set of states Sec, we can check c1 _c2 _:::_cn.
Proof. The proof is similar to the proof of Theorem 2, therefore it is only sketched.</p>
        <p>For the right hand implication assume by contradiction that the reaction system
A is n-p window i-state opaque with respect to L and Sec but the second part of
the claim is false for at lest one cm. Choose a minimal (in the sense of the proof
of Theorem 2) context sequence such that j= cm. By hypothesis, does not
provide S n L objects at any step included between n and p. Note that any context
sequence 0 such that 0;n 1 S 00;n 1, n;p L n0;p and p+1;i S p0+1;i will
satisfy cm. Then, by Corollary 2 any 0 will lead to the production of a state in Sec
after i steps. This gives a contradiction.</p>
        <p>For proving the left hand implication, assume, by contradiction that every ci
contain at least one S n L object at some step included between n and p but A
is not n-p window i-state opaque. This means that there do not exist two context
sequence and 0 with 0;n 1 S 00;n 1, n;p L n0;p and p+1;i S p0+1;i such
that one lead to a secret state in Sec and the other does not.</p>
        <p>Choose a = C0; :::; Ci leading to the production of a state in Sec such that it
satis es only one particular conjunction ci in the disjunction c1 _ c2 _ ::: _ cn. By
Corollary 2 such exists. Consider 0 = C0; :::; Cn 1; Cn0; :::; Cp0; Cp+1; :::; Ci as the
context sequence such that Cn0; :::; Cp0; satisfy the conjunction of low level objects
only included between n and p of ci but that does not satisfy the S n L literals
of ci. Now, by construction 0;n 1 S 00;n 1, n;p L n0;p and p+1;i S p0+1;i.
However, 0 6j= ci. Following the reasoning of proof of Theorem 2, we can conclude
that we have found and 0 such that one leads to a secret state in Sec while the
other does not. This gives a contradiction.
tu</p>
        <sec id="sec-5-2-1">
          <title>Therefore we can state the following.</title>
          <p>Proposition 2. The property of a reaction system A to be n-p window i-state
opaque with respect to a set of low level objects L and a secret sets of state Sec
is decidable.</p>
          <p>If a system is 0-i window i-state opaque then it is i-current state opaque.
Example 5. Consider again the reaction system A2, L and Sec as in Example 4.
A2 was 3-current state opaque. However, A2 it is not 3-3 window i-state opaque.
Recall that</p>
          <p>DN F (fbp(C; 3) ^ fbp(E; 3)) = (A3 ^ :B3 ^ D2 ^ F3) _ (A3 ^ :D3 ^ F3):
Then, fA j Aj 2 atom((A3^:B3^D2^F3)); with 3 j 3g\(SnL) = ; and
Theorem 3 is not satis ed. Consider, for example, we can choose = fg; fg; fDg; fA; B; F g,
then any 0 such that 0;2 S 00;2, 3;3 L 30;3 must be 0 = fg; fg; fDg; C30 with
C30 fA; B; F g, therefore also 0 will lead to a secret state in Sec.</p>
          <p>Finally, note that A2 is n-3 window i-state opaque for any 0 n 2.
6</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusions and further work</title>
      <p>In this paper we have de ned two state based security properties, that are, Current
State Opacity and n-p Window State Opacity for reaction systems. We proposed
effectively computable methods for verifying such properties based on the new notion
of formula based predictor for set of secret states sets, newly de ned in Section 4.</p>
      <p>
        As further work we plan to elaborate other notions of opacity for reaction
systems. The rst one is in a sense a complement notion to n-p Window i-State Opacity.
We consider an observer who can see only a small \window" of computation. If
after that computation a secret state has been reached we expect that there exists
seemingly the same window which leads to non-secret states. Also we plan to study
the notion Initial State Opacity. In this case an observer tries to learn properties of
an initial state of the computation. We believe that these concepts, borrowed by the
security theory, can be also studied in the context of reaction systems. Moreover, it
would be interesting to study variants of reaction systems with a limited threshold
assumption and with timed properties (for a process algebra example, see [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]).
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Ehrenfeucht</surname>
          </string-name>
          , G. Rozenberg, Reaction Systems, Fundam. Inform.
          <volume>75</volume>
          (
          <issue>1-4</issue>
          ) (
          <year>2007</year>
          )
          <volume>263</volume>
          {
          <fpage>280</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>R.</given-names>
            <surname>Brijder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ehrenfeucht</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Main</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Rozenberg</surname>
          </string-name>
          ,
          <source>A Tour of reaction Systems, Int. J. Found. Comput. Sci</source>
          .
          <volume>22</volume>
          (
          <issue>7</issue>
          ) (
          <year>2011</year>
          )
          <volume>1499</volume>
          {
          <fpage>1517</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>D.</given-names>
            <surname>Gruska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Studying opacity of reaction systems through formula based predictors</article-title>
          ,
          <source>in: Proc. of the 26th Int. Workshop on Concurrency, Speci cation and Programming</source>
          ,
          <string-name>
            <surname>CS</surname>
          </string-name>
          &amp;P,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>D.</given-names>
            <surname>Gruska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Studying opacity of reaction systems through formula based predictors</article-title>
          , Fundamenta Informaticae To appear.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Goguen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Meseguer</surname>
          </string-name>
          ,
          <article-title>Security policies and security models</article-title>
          ,
          <source>Proc. of IEEE Symposium on Security and Privacy.</source>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>J.</given-names>
            <surname>Bryans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Koutny</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Ryan</surname>
          </string-name>
          ,
          <article-title>Modelling non-deducibility using petri nets</article-title>
          ,
          <source>in: 2nd Workshop on Security Issues with Petri Nets and other Computational Models</source>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>J. W.</given-names>
            <surname>Bryans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Koutny</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Mazare</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. Y.</given-names>
            <surname>Ryan</surname>
          </string-name>
          , Opacity generalised to transition systems,
          <source>International Journal of Information Security</source>
          <volume>7</volume>
          (
          <issue>6</issue>
          ) (
          <year>2008</year>
          )
          <volume>421</volume>
          {
          <fpage>435</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>R.</given-names>
            <surname>Brijder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ehrenfeucht</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Rozenberg</surname>
          </string-name>
          ,
          <source>A Note on Causalities in Reaction Systems, ECEASST 30.</source>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>R.</given-names>
            <surname>Barbuti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Levi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Investigating dynamic causalities in reaction systems</article-title>
          ,
          <source>Theoretical Computer Science</source>
          <volume>623</volume>
          (
          <year>2016</year>
          )
          <volume>114</volume>
          {
          <fpage>145</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>R.</given-names>
            <surname>Barbuti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Levi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Specialized predictor for reaction systems with context properties</article-title>
          ,
          <source>in: Proc. of the 24th Int. Workshop on Concurrency, Speci cation and Programming</source>
          ,
          <source>CS&amp;P</source>
          <year>2015</year>
          ,
          <year>2015</year>
          , pp.
          <volume>31</volume>
          {
          <fpage>43</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>R.</given-names>
            <surname>Barbuti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Levi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Specialized predictor for reaction systems with context properties</article-title>
          ,
          <source>Fundamenta Informaticae</source>
          <volume>147</volume>
          (
          <issue>2-3</issue>
          ) (
          <year>2016</year>
          )
          <volume>173</volume>
          {
          <fpage>191</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>R.</given-names>
            <surname>Barbuti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Levi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Generalized contexts for reaction systems: de nition and study of dynamic causalities</article-title>
          ,
          <source>Acta Inf</source>
          .
          <volume>55</volume>
          (
          <issue>3</issue>
          ) (
          <year>2018</year>
          )
          <volume>227</volume>
          {
          <fpage>267</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>R.</given-names>
            <surname>Barbuti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Multiset patterns and their application to dynamic causalities in membrane systems</article-title>
          ,
          <source>in: Membrane Computing - 18th Int. Conference, CMC</source>
          <year>2017</year>
          ,
          <year>2017</year>
          , pp.
          <volume>54</volume>
          {
          <fpage>73</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>R.</given-names>
            <surname>Barbuti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Milazzo</surname>
          </string-name>
          ,
          <article-title>Predictors for at membrane systems</article-title>
          ,
          <source>Theor. Comput. Sci</source>
          .
          <volume>736</volume>
          (
          <year>2018</year>
          )
          <volume>79</volume>
          {
          <fpage>102</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <given-names>R.</given-names>
            <surname>Jacob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lesage</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Faure</surname>
          </string-name>
          ,
          <article-title>Overview of discrete event systems opacity: Models, validation, and quanti cation</article-title>
          ,
          <source>Annual Reviews in Control</source>
          <volume>41</volume>
          (
          <year>2016</year>
          )
          <volume>135</volume>
          {
          <fpage>146</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>M. C. Ruiz</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Cazorla</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Cuartero</surname>
            ,
            <given-names>J. J.</given-names>
          </string-name>
          <string-name>
            <surname>Pardo</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Macia</surname>
          </string-name>
          ,
          <article-title>A bounded true concurrency process algebra for performance evaluation</article-title>
          ,
          <source>in: FORTE Workshops</source>
          <year>2004</year>
          ,
          <year>2007</year>
          , pp.
          <volume>143</volume>
          {
          <fpage>155</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>