<!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>Dealing with Incoherence in ASP: Split Semi-Equilibrium Semantics?</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Mathematics and Computer Science, University of Calabria Via P. Bucci</institution>
          ,
          <addr-line>Cubo 30b, 87036 Rende (CS)</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The answer set semantics may assign a logic program no model due to classic contradiction or cyclic negation. The latter can be remedied by a paracoherent semantics given by semi-equilibrium (SEQ ) models, which are 3-valued interpretations that generalize the logical reconstruction of answer sets given by equilibrium models. However SEQ -models miss modularity in the rules, such that a natural modular (bottom up) evaluation of programs is hindered. We thus refine SEQ -models using splitting sets, the major tool for modularity in answer set programs. We consider canonical models that are independent of any particular splitting sequence from a class of splitting sequences, and present two such classes whose members are efficiently recognizable. Split SEQ -models does not make reasoning harder, except for deciding model existence in presence of constraints.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Answer set programming is a popular formalism in logic programming (LP). The answer
set semantics [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] does not assign to every logic program a model. This can be either
due to a logical contradiction, as emerging e.g. in the program fopen not closed ;
:open g1, or due to cyclic negation, as e.g. in the program fshaves (joe ; joe )
not shaves (joe; joe)g (a paraphrase of Russell’s paradox, where joe is the barber).
      </p>
      <p>
        In order to avoid trivialization of reasoning from such programs, Inoue and Sakama
[
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] introduced paraconsistent semantics for answer set programs. While dealing with
explicit contradictions can be achieved with similar methods as for (non-)classical logic
(cf. [
        <xref ref-type="bibr" rid="ref1 ref2 ref8">2, 1, 8</xref>
        ]), dealing with cyclic negation turned out to be tricky. With the idea that
atoms may also be possibly true, Inoue and Sakama defined a semi-stable semantics
which for Russell’s paradox above yields the model that shaves (joe; joe) is possibly true.
In fact, semi-stable models approximate answer sets and coincide with them whenever a
program has some answer set; otherwise, they yield under Occam’s razor models with
a least set of atoms believed to be true. That is, the intrinsic closed world assumption
(CWA) of logic programs is slightly relaxed for achieving stability of models.
      </p>
      <p>
        In a similar vein, we can regard many semantics for non-monotonic logic programs
that relax answer sets as paracoherent semantics, e.g. [
        <xref ref-type="bibr" rid="ref13 ref14 ref17 ref18 ref4 ref9">4, 9, 13, 14, 17, 18</xref>
        ]. Ideally, such
a relaxation meets for a program P the following desiderata [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]:
? This work has been carried out under the supervision of professors Thomas Eiter and Nicola
Leone, and was partially supported by Regione Calabria under the EU Social Fund and project
PIA KnowRex POR FESR 2007- 2013, and by the Italian Ministry of University and Research
under PON project “Ba2Know (Business Analytics to Know) S.I.-LAB n. PON03PE 0001.
1 Note that ’:’ denotes the strong negation, instead ’not ’ denotes the negation as failure.
(D1) Every (consistent) answer set of P corresponds to a model (answer set coverage).
(D2) If P has some (consistent) answer set, then its models correspond to answer sets
(congruence).
(D3) If P has a classical model, then P has a model (classical coherence).
      </p>
      <p>
        However, only few paracoherent semantics satisfy all three desiderata (cf. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]). A
recent one are semi-equilibrium (SEQ ) models [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], which improve semi-stable models
by avoiding some anomalies. SEQ -models are a relaxation of Pearce’s well-known
equilibrium models [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], which provide a logical reconstruction of answer sets alias
stable models in terms of a non-monotonic version of Heyting’s [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] logic of here and
there (HT-logics). Roughly speaking, SEQ -models are 3-valued interpretations in which
atoms can be true, false or believed to be true; the gap between believed and derivably
true atoms is globally minimized by SEQ -models.
      </p>
      <p>While the SEQ -semantics has nice properties, it may select models that do not
respect modular structure in the rules. To illustrate this, consider the following example.
Example 1 Suppose we have a program that captures knowledge about friends of a
person regarding visits to a party, where go(X) informally means that X will go:
P = &lt;8 ggoo((PJeothenr )) gnoo(tJgooh(nM);anrkot);go(Bill ); =9</p>
      <p>: go(Bill ) go(Peter ) ;</p>
      <p>Then P has no answer set; its semi-equilibrium models (a subset of HT-models) are
M1 = (;; fgo(Mark )g), and M2 = (fgo(John)g; fgo(John); go(Bill )g). Informally,
a key difference between M1 and M2 concerns the beliefs on Mark and John. In M2
Mark does not go, and, consequently, John will go (moreover, Bill is believed to go,
and Peter will not go). In M1, instead, we believe Mark will go, thus John will not go
(likewise Peter and Bill). None of the two models provides a fully coherent view (on the
other hand, the program is incoherent, having no answer set). Nevertheless, M2 appears
preferable over M1, since, according with a layering (stratification) principle, which is
widely agreed in LP, one should prefer go(John) rather than go(Mark ), as there is no
way to derive go(Mark ) (which does not appear in the head of any rule of the program).</p>
      <p>Modularity via rule dependency as in the example above is widely used in problem
modeling and logic programs evaluation; in fact, program decomposition is crucial for
efficient answer set computation. For the program P above, advanced answer set solvers
like DLV and clasp immediately set go(Mark ) to false, as go(Mark ) does not occur
in any rule head. In a customary bottom up computation along program components,
answer sets are gradually extended until the whole program is covered, or incoherence is
detected at some component (in our example for the last two rules). But rather than to
abort the computation, we would like to switch to a paracoherent mode and continue
with building semi-equilibrium models, as an approximation of answer sets.</p>
      <p>
        In this general setting, we refine SEQ -models with the following contributions.
– Resorting to splitting sets [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], the major tool for modularity in modeling and
evaluating answer set programs, we define split SEQ -models (Section 3), for which the program
is evaluated in progressive layers according to a splitting sequence of the atoms. In
the example above, the natural sequence S = (fgo(Mark )g; fgo(Mark ); go(John)g;
fgo(Mark ); go(John); go(Bill ); go(Peter )g) will yield the expected result.
– In general, the resulting split SEQ -models depend on the particular splitting sequence
S. We thus introduce canonical splitting sequences, with the property that the models
are independent of any particular from a class of splitting sequences, and thus yield
canonical models (Section 4). For constraint-free programs P , the class derived from
the strongly connected components (SCCs) of P warrants this property, as well as
modularity property. For arbitrary programs, independence is held by a class derived
from the maximal joined components (MJCs), merging SCCs involved in constraints.
– We characterize the computational complexity of split SEQ -model semantics, for
canonical models and various classes of logic programs (Section 5).
      </p>
      <p>The refined semantics (SCC -models) lends for a modular use and bottom up
evaluation of programs. Cautious merging of components (MJC -models) aims at preserving
independence and possible parallel evaluation. So this semantics is attractive for
incorporation into answer set evaluation frameworks, in order to add paracoherent features.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>We start with recalling answer set semantics and fixing notation, and then present the
paracoherent semantics of semi-equilibrium models.</p>
      <p>
        Answer Set Programs. Following the traditional grounding view [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], we concentrate
on programs over a propositional signature . A disjunctive rule r is of the form
a1 _ _ al b1; :::; bm; not bm+1; :::; not bn; (1)
where all ai and bj are atoms (from ) and l 0, n m 0 and l + n &gt; 0; not
represents negation-as-failure. The set H(r) = fa1; :::; alg is the head of r, while
B+(r) = fb1; :::; bmg and B (r) = fbm+1; : : : ; bng are the positive body and the
negative body of r, respectively; the body of r is B(r) = B+(r) [ B (r). We denote
by At(r) = H(r) [ B(r) the set of all atoms occurring in r. For any set of atoms S,
we let not S = fnot a j a 2 Sg; rules of form (1) will also be written (in abuse of
notation) H(r) B+(r); not B (r). A rule r is a fact, if B(r) = ; (we then omit );
a constraint, if H(r) = ;; normal, if jH(r)j 1 and positive, if B (r) = ;.
      </p>
      <p>A (disjunctive logic) program P is a finite set of disjunctive rules. P is called normal
[resp. positive] if each r 2 P is normal [resp. positive]. We let At(P ) = Sr2P At(r).</p>
      <p>
        Any set I is an interpretation; it is a model of a program P (denoted I j= P ) iff
for each rule r 2 P , I \ H(r) 6= ; if B+(r) I and B (r) \ I = ; (denoted I j= r).
A model M of P is minimal, iff no model M 0 M of P exists. We denote by MM (P )
the set of all minimal models of P and by AS(P ) the set of all answer sets (or stable
models) of P , i.e., the set of all interpretations I such that I 2 MM (P I ), where P I is
the well-known Gelfond-Lifschitz reduct [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] of P w.r.t. I.
      </p>
      <sec id="sec-2-1">
        <title>Semi-equilibrium paracoherent semantics. We call logic programs that lack answer</title>
        <p>
          sets due to cyclic dependency of atoms among each other by rules through negation
incoherent (cf. Russel’s paradox). The semi-equilibrium semantics [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] avoids incoherence
by resorting to the view of answer sets in the logic of here and there (HT-logic) [
          <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
          ].
We focus here on formulas of the form
b1 ^ ::: ^ bm ^ :bm+1 ^ ::: ^ :bn ! a1 _ ::: _ al;
(2)
which correspond in an obvious way to rules of form (1). In HT-logic, interpretations
are pairs (X; Y ), X Y , where X is the here world and Y the there world.
Intuitively, the atoms in X are true (value t), atoms not in Y are false (f ), and the atoms
in gap(X; Y ) = Y n X are believed to be true (bt). For any set A of HT-interpretations,
we denote by mc(A) the set of maximal canonical interpretations (X; Y ) 2 A, i.e., no
(X 0; Y 0) 2 A exists such that gap(X 0; Y 0) gap(X; Y ). We define (X; Y ) to be an
HT-model of the formula , denoted (X; Y ) j= , in a recursive way:
1. (X; Y ) j= a iff a 2 X ;
2. (X; Y ) 6j= ?; (? is falsity)
3. (X; Y ) j= ^ iff (X; Y ) j= and (X; Y ) j= ;
54.. ((XX;; YY )) jj== _! ififff(X(i); (YX);j=Y ) 6j=or (Xor; (YX);j=Y ) j=; , and (ii) Y j= ! ;2
6. (X; Y ) j= : iff (X; Y ) j= ! ?.
        </p>
        <p>In particular, (X; Y ) j= :a iff a 2= Y , and (X; Y ) j= r for a rule r of form (2)
iff either fa1 : : : ; akg \ X 6= ;, fb1; : : : ; bmg 6 Y , or fbm+1; : : : ; bng \ Y 6= ;. A
HT-interpretation (X; Y ) is an HT-model of a theory (i.e., a set of formulas) , denoted
(X; Y ) j= iff (X; Y ) j= for each 2 . It is an equilibrium (EQ ) model of iff
X = Y and for every X 0 Y it holds that (X 0; Y ) 6j= .</p>
        <p>
          As shown by Pearce [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], M At(P ) fulfills M 2 AS(P ) iff (M; M ) is an EQ
model of P . Paracoherent answer sets emerge with minimal sets of believed atoms.
Definition 1 ([
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]) A semi-equilibrium (SEQ ) model (or paracoherent answer set) of
a program P is any HT-model (X; Y ) of P s.t. (i) (X 0; Y ) 6j= P , for all X 0 X
(hminimality) and (ii) no HT-model (X 0; Y 0) of P satisfies h-minimality and gap(X 0; Y 0)
gap(X; Y ) (gap-minimality).
        </p>
        <sec id="sec-2-1-1">
          <title>The set of all semi-equilibrium models of P is denoted by SEQ (P ).</title>
          <p>Example 2 Consider the program P = fa b; b not ag. Its HT-models are (;; a),
(;; ab), (a; a), (a; ab), (b; ab) and (ab; ab). Hence, there is no equilibrium model for P ,
while SEQ (P ) = f(;; a)g.
3</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Split Semi-Equilibrium Semantics</title>
      <p>In this section, we introduce a refinement to the semi-equilibrium semantics. In fact we
observe that sometimes gap minimization is too weak. Consider the following example.
Example 3 Let P = fc b; not c; b not ag; then SEQ (P ) = f (b; bc); (;; a)g.
Here (b; bc) is more appealing than (;; a) because a is not derivable, as no rule has a in
the head. Moreover, intuitively, P1 = fb not ag is a lower (coherent) part feeding
into the upper part P2 = fc b; not cg.</p>
      <p>To overcome this limitation, we introduce a refined paracoherent semantics, called
split semi-equilibrium semantics. It coincides with the answer sets semantics in case of
coherent programs, and selects a subset of the SEQ -models otherwise. The main results
2 Note that in condition 5.(ii) ’j=’ is the standard operator of classical propositional logic.
of this section are two model-theoretic characterizations which identify necessary and
sufficient conditions for deciding whether a SEQ -model is selected.</p>
      <p>
        Splitting sets and sequences. Splitting sets [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] allow us to divide a program P into
two parts which can be evaluated bottom up. Formally, a set S At(P ) is a splitting
set of P , if for each rule r in P s. t. H(r) \ S 6= ;, then At(r) S. We denote by
bS (P ) = fr 2 P j At(r) Sg the bottom of P , tS (P ) = P n bS (P ) the top of P
relative to S. Splitting sets naturally lead to splitting sequences. A splitting sequence
S = (S1; : : : ; Sn) of P is a sequence of splitting sets of P s. t. Si Sj for each i &lt; j.
      </p>
      <sec id="sec-3-1">
        <title>Split semi-equilibrium models. We introduce the notion of SEQ -models related to a</title>
        <p>splitting set. Given a splitting set S for a program P and an HT-interpretation (I; J ) for
bS (P ), we let</p>
        <p>P S (I; J ) = P n bS (P ) [ fa j a 2 Ig [ f not a j a 2 J g [ f a j a 2 S n J g:</p>
        <p>Informally, the bottom part of P w.r.t. S is replaced with rules and constraints which
fix in any EQ -model of the remainder (= tS (P )) the values of the atoms in S to (I; J ).</p>
      </sec>
      <sec id="sec-3-2">
        <title>Definition 2 (Semi-equilibrium models related to a splitting set) Let S be a splitting</title>
        <p>set of a program P . Then the semi-equilibrium models of P related to S are defined as
SEQ S (P ) = mc</p>
        <p>[
(I;J)2SEQ(bS(P ))</p>
        <p>SEQ(P S (I; J )) :
(3)
Example 4 (cont’d) For the splitting set S = fa; bg of P in Example 3, bS (P ) =
fb not ag and SEQ (bS (P )) = f(b; b)g. Hence, P S (b; b) = fc b; not c; b;
not b; ag and SEQ S (P ) = SEQ(P S (b; b)) = f(b; bc)g.</p>
        <p>For any HT-model (X; Y ) and splitting set S of a program P , we define the
restriction of (X; Y ) to S as (X; Y )jS = (X \ S; Y \ S). We have proved the following
semantic characterization for semi-equilibrium models related to a splitting set:
Theorem 1 Let S be a splitting set of a program P . Then (X; Y ) 2 SEQS (P ) iff
(X; Y ) 2 SEQ(P ) and (X; Y )jS 2 SEQ(bS (P )).</p>
        <p>Now we generalize the use of splitting sets to compute the SEQ -models of a program
via splitting sequences.</p>
      </sec>
      <sec id="sec-3-3">
        <title>Definition 3 (Semi-equilibrium models related to a splitting sequence) Given a split</title>
        <p>ting sequence S = (S1; : : : ; Sn) for a program P , we let S0 = (S2; :::; Sn) and define
the semi-equilibrium models of P related to the splitting sequence S = (S1; :::; Sn) as
SEQS (P ) = mc
[</p>
        <p>SEQS0 (P S1 (I; J )) :
(4)
(I;J)2SEQ(bS1 (P ))</p>
        <p>The SEQ -models related to a splitting sequence can be characterized similarly
as those related to a splitting set. To ease presentation, for a program P and
splitting sequence S = (S1; :::; Sn), we let P0 = P and Pk = (Pk 1)Sk (Ik; Jk), where
(Ik; Jk) 2 SEQ(bSk (Pk 1)), k = 1; :::; n. We now state the main result of this section.
Theorem 2 Let S = (S1; :::; Sn) be a splitting sequence of a program P . Then (X; Y ) 2
SEQ S (P ) iff (X; Y ) 2 SEQ (P ) and (X; Y )jSk 2 SEQ (bSk (Pk 1)), for k = 1; :::; n.</p>
        <p>Note that a classically consistent program does not necessarily have split SEQ
models. In fact, if P = f b; b not ag and S = fag, then SEQ(bS (P )) = f(;; ;)g
and so SEQS (P ) = ;. However (a; a) and (;; a) are HT-models of P .</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Canonical Semi-Equilibrium Models</title>
      <p>The split SEQ -semantics depends on the choice of the particular splitting sequence,
which is not much desirable. We thus consider a way to obtain a refined split SEQ
semantics independent of a particular splitting sequence, but imposes conditions on
sequences that come naturally with the program and can be easily tested. Attractive are
the strongly connected components (SCCs) of a given program, which are at the heart of
bottom up evaluation algorithms in ASP systems. In absence of constraints, we get the
desired independence of a particular splitting sequence, and so we can talk about the
SCC -models of a program. Allowing for constraints will need a slight extension.</p>
      <sec id="sec-4-1">
        <title>4.1 SCC -split sequences and models</title>
        <p>Recall that the dependency graph of a program P is the directed graph DG(P ) =
hVDG; EDGi, where VDG = At(P ) and EDG = f(a; b) j a 2 H(r); b 2 B(r) [
(H(r) n fag); r 2 P g. The SCCs of P , denoted SCC (P ), are the SCCs of DG(P ),
and the supergraph of P is the graph SG(P ) = hVSG; ESGi, where VSG = SCC (P )
and ESG = f(C; C0) j C 6= C0 2 SCC (P ); 9a 2 C; 9b 2 C0; (a; b) 2 EDGg. Note
that SG(P ) is a directed acyclic graph (dag); recall that a topological ordering of a dag
G = hV; Ei is an ordering v1; v2; :::; vn of its vertices, denoted , such that for every
(vi; vj ) 2 E we have i &gt; j. Such an ordering always exists, and the set O(G) of all
topological orderings of G is nonempty. We thus define
Definition 4 Let P be a program and let = (C1; :::; Cn) be a topological ordering of
SG(P ). Then the splitting sequence induced by is S = (S1; :::; Sn), where S1 = C1
and Sj = Sj 1 [ Cj , for j = 2; :::; n.</p>
        <sec id="sec-4-1-1">
          <title>We call any such S a SCC -splitting sequence; note that S</title>
          <p>sequence of P . We now have the following result.
is indeed a splitting
Theorem 3 Let P be a constraint-free program. For every ; 02 O(SG(P )), we have
SEQ S (P ) = SEQS 0 (P ):</p>
          <p>This result allows to define the SCC -models of P as M SCC (P ) = SEQ S (P ) for
an arbitrary topological ordering of SG(P ). We then obtain:
Proposition 1 The SCC -models semantics, given by M SCC (P ) for constraint-free P ,
satisfies (D1)-(D3).</p>
          <p>Example 5 Consider P = fa c; not a; a not b; c not d; b not eg;
its SCCs are C1 = fag, C2 = fbg, C3 = fcg, C4 = fdg and C5 = feg. For =
(C4; C5; C3; C2; C1), we obtain that SEQ S (P ) = SEQ (S2;S3;S4;S5)(P S1 (;; ;)) =
SEQ (S3;S4;S5)(P1S2 (;; ;)) = SEQ (S4;S5)(P2S3 (c; c)) = SEQ (S5)(P3S4 (bc; bc)) = f(bc;
abc)g; hence M SCC (P ) = f(bc; abc)g. For 0= (C5; C2; C4; C3; C1), we obtain
SEQ S 0 (P ) = f(bc; abc)g, in line with Theorem 3. Note that SEQ (P ) = f(bc; abc);
(b; bd); (ac; ace)g.</p>
          <p>Finally, if we replace in Equation (4) SEQ , SEQ S , and SEQ S0 all by M SCC , then
the resulting equation holds; i.e., we can compute SCC -models modularly bottom up
along an arbitrary splitting sequence (using always M SCC ).
Theorem 3 fails if we allow constraints in P . E.g., P = fb; b; not ag has the
SCCs fag and fbg; hence O(SG(P )) = f(fag; fbg), (fbg; fa ) . But the respective
g g
SEQ -models are different: SEQ (fag;fa;bg)(P ) = ; and SEQ (fbg;fa;bg)(P ) = f(b; ba)g.
We thus consider merging SCCs of P in such a way that independence of topological
orderings is preserved and merging is done only if deemed necessary. This is embodied
by the maximal joinable components of P , which lead to so called MJC -split sequences
and models. Informally, relevant SCCs are merged if they intersect with a constraint.</p>
          <p>We call (K1; K2) from SCC (P )2 a related pair, if either K1 = K2 or some
constraint r 2 P fulfills At(r) \ K1 6= ; and At(r) \ K2 6= ;; by C(K1;K2)(P )
we denote the set of all such constraints. A related pair (K1; K2) is a joinable pair
iff K1 = K2 or some (C1; : : : ; Cn) in O(SG(P )) exists such that (i) K1 = Cs
and K2 = Cs+1 for some 1 s &lt; n, (ii) (K2; K1) 2= ESG and (iii) there exists
r 2 C(K1;K2)(P ) s.t. At(r) C1 [ ::: [ Cs+1. We denote by J P (P ) the set of all
joinable pairs. We extend joinability from pairs to any number of SCCs.
Definition 5 Let P be a program. Then K1; :::; Km 2 SCC (P ) are joinable iff m = 2
and some K 2 SCC (P ) exists such that (K1; K); (K; K2) 2 J P (P ), or
otherwise Ki; Kj are joinable for each i; j = 1; :::; m. We let J C(P ) = f Sim=1 Ki j
K1; :::; Km 2 SCC (P ) are joinableg and call MJC (P ) = fJ 2 J C(P ) j 8J 0 2
J C(P ) : J 6 J 0g the set of all maximal joined components (MJC s) of P .
Example 6 For P = f b; not a; b; not c; d not a; c not e; b cg, we
have SCC (P ) = ffag; fbg; fcg; fdg; fegg. We note that (fcg; fbg) is a related, but not
a joinable pair, since (fcg; fbg) satisfies (i) and (iii), but not (ii). Whereas (fag; fbg) is
the only nontrivial joinable pair; hence M J C(P ) = ffa; bg; fcg; fdg; fegg.</p>
          <p>We define the MJC graph of P as J G(P ) = hVJG; EJGi, where VJG = MJC (P )
and EJG = f(J; J 0) j J 6= J 0 2 MJC (P ); 9a 2 J; 9b 2 J 0; (a; b) 2 EDGg. Note that
J G(P ) is like SG(P ) a dag, and hence admits a topological ordering. We thus define
Definition 6 Let P be a program and = (J1; :::; Jm) be a topological ordering of
J G(P ). Then the splitting sequence induced by is S = (S1; :::; Sm), where S1 = J1
and Sk = Sk 1 [ Jk, for k = 2; : : : ; m.</p>
          <p>The sequence S is again indeed a splitting sequence, which we call a MJC -splitting
sequence. We obtain a result analogous to Theorem 3, but in presence of constraints.
Theorem 4 For every program P and
SEQS 0 (P ).</p>
          <p>; 02 O(J G(P )), we have SEQ S (P ) =</p>
          <p>Similarly as SCC -models, we thus can define the MJC -models of P as M MJC (P ) =
SEQ S (P ) for an arbitrary topological ordering of J G(P ). The problem in
Section 4.2 disappears when we use the MJCs. The program P = f b; not a; bg there
has the single MJC J = fa; bg, since the two SCCs fag and fbg are related through
the constraint b; not a and thus joinable. Therefore we get (b; ab) as the (single)
MJC -model of P . As for the desiderata, we note:
Proposition 2 The MJC -models semantics, given by M MJC (P ) for any program P ,
satisfies (D1)-(D2).</p>
          <p>Classical coherence (D3), however, is not ensured by MJC -models, due to lean
component merging that fully preserves dependencies.</p>
          <p>Example 7 (cont’d) Reconsider P in Ex. 6. Then for the ordering = (fag; fdg;
feg; fcg; fbg) we obtain SEQ S (P ) = ;, while for 0= (feg; fcg; fbg; fag; fdg) we
obtain SEQ S 0 (P ) = f(bc; abc)g. On the other hand, J G(P ) has the single
topological ordering = (feg; fcg; fa; bg; fdg), and SEQ S (P ) = f(bc; abc)g; hence
M MJC (P ) = f(bc; abc)g. Note that SEQ(P ) = f(bc; abc); (d; de)g.
5</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Complexity and Computation</title>
      <p>In this section, we consider the computational complexity of the following major
reasoning tasks for programs under split SEQ -semantics.
(MCH) Given a program P , a splitting sequence S and an HT-interpretation (X; Y ),
decide whether (X; Y ) is a split semi-equilibrium model of P .
(INF) Given a program P , a splitting sequence S, an atom a and v 2 ft; f ; btg, decide
if a is a brave [resp. cautious] SEQ S -consequence of P with value v, denoted
P j=bS;v a [resp. P j=cS;v a], i.e., a has in some (all) (X; Y ) 2 SEQS (P ) value v.
(CON) Given a program P and a splitting sequence S, decide whether SEQ S (P ) 6= ;.</p>
      <p>We consider also SCC - and MJC -splitting sequences and several classes of
programs, viz. normal, disjunctive, stratified, and headcycle-free programs.Recall that a
program P is stratified, if for each r 2 P and C 2 SCC (P ) either H(r) \ C = ;
or B (r) \ C = ;; P is headcycle-free (hcf), if jH(r) \ Cj 1 for each r 2 P and
a B+(r) j r 2 P; a 2 H(r)g. Positive programs
aCre2heSrCeCof(lPes0s),inwtehreerset,Pa0s S=EfQ S (P ) = f(M; M ) j M 2 MM (P )g for each splitting
sequence S. Our complexity results are summarized in Table 1.</p>
      <sec id="sec-5-1">
        <title>Constructing and recognizing canonical splitting sequences. It is well-known that</title>
        <p>
          SCC (P ) and SG(P ) are efficiently computable from P (using Tarjan’s [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] algorithm
even in linear time); hence, it is not hard to see that one can recognize a SCC -splitting
sequence S in polynomial time, and that every such S can be (nondeterministically)
generated in polynomial time (in fact, in linear time). We obtain similar tractability
results for MJC (P ) and M J C-splitting sequences.
        </p>
        <p>Theorem 5 Given a program P , M J C(P ) and J G(P ) are computable in polynomial
time (in time O(cs kP k), where cs = jfr 2 P j H(r) = ;gj and kP k is the size of P ).
6</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Application: Inconsistency-Tolerant Query Answering</title>
      <p>The standard answer set semantics may be regarded as appropriate when a knowledge
base, i.e., logic program, is properly specified adopting the CWA principle to deal
with incomplete information. Query answering over a knowledge base then resorts
usually to brave or cautious inference from the answer sets of a knowledge base; let
us focus on the latter here. However, if (unexpected) incoherence arises, then we lose
all information and query answers are trivial. This, however, may not be satisfactory,
especially if it is not possible to modify the knowledge base, which may be due to various
reasons. Paracoherent semantics can be exploited to overcome this problem and to render
query answering operational, without trivialization. In particular, SEQ -semantics is
attractive as it builds on simple grounds and (1) brings in “unsupported” assumptions,
(2) stays in model building close to answer sets, but distinguishes atoms that require
such assumptions from atoms derivable without them, (3) keeps the CWA/LP spirit
of minimal assumptions, and (4) easily lifts to extensions (nested programs, arbitrary
formulas, aggregates, etc).</p>
      <p>
        For instance, consider a variant of the Russell paraphrase from the Introduction [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]:
P = fshaves(joe; X )
      </p>
      <p>not shaves(X ; X ); man(paul )g.</p>
      <p>
        While this program has no answer set, SEQ -semantics gives us the model
(fshaves(joe; paul ); man(paul )g; fshaves(joe; paul ); man(paul ); shaves(joe; joe)g);
here the incoherent rule shaves(joe; joe) not shaves(joe; joe) obtained by
grounding is isolated from rest of the program, avoiding the absence of solutions (a similar
intuition is underlying the definition of CWA inhibition rule in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], used for contradiction
removal in a logic program), and allows us to derive, for instance, that shaves(joe; paul )
and man(paul ) are true; furthermore, we can infer that shaves(joe; joe) can not be false.
Such a capability seems very attractive in query answering.
      </p>
      <p>Now reconsider the program in Ex. 1, and let us ask for query go(John). Again
answer set semantics yields only a trivial answer to the query. However the local
incoherence is due to the second and the third rule, and the CWA implies that go(Mark ) is
false; hence there is no reason to avoid the answer. Moreover split-SEQ semantics yields
the unique model (fgo(John)g; fgo(John); go(Bill )g) and removes the SEQ -model
ambiguity, as it makes stronger gap minimization through the bottom-up evaluation. In
this way, the relaxation of CWA is minimized.
7</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusion</title>
      <p>We have studied a refinement of SEQ -semantics that respects modular structure, and we
gave a semantics via splitting sets that is amenable to bottom up evaluation of programs.</p>
      <p>
        The generic framework of Equilibrium Logic makes it easy to define SEQ -semantics
via gap minimization for many extensions of the programs considered here, such as
nested programs, programs with aggregates and external atoms, hybrid knowledge bases
etc; programs with classical negation require to use more truth values [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. It remains
to consider modularity in these extensions and to define suitable refinements of SEQ
models. Particularly interesting are modular logic programs where explicit (by module
encapsulation) and implicit modularity (by splitting sets) occur at the same time.
      </p>
      <p>Besides language extensions, another issue is generalizing the model selection. To
this end, preference of gap minimization at higher over lower levels must be supported;
however, this intuitively requires more guessing and hinders bottom up evaluation.
Finally, efficient algorithms and an implementation are to be done, as well integration
into an answer set building framework.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Alcaˆntara</surname>
            , J., Dama´sio,
            <given-names>C.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.M.:</given-names>
          </string-name>
          <article-title>A declarative characterization of disjunctive paraconsistent answer sets</article-title>
          .
          <source>In: Proc. ECAI-04</source>
          . pp.
          <fpage>951</fpage>
          -
          <lpage>952</lpage>
          . IOS Press (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Blair</surname>
            ,
            <given-names>H.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Subrahmanian</surname>
            ,
            <given-names>V.S.:</given-names>
          </string-name>
          <article-title>Paraconsistent logic programming</article-title>
          .
          <source>Theor. Comput. Sci</source>
          .
          <volume>68</volume>
          (
          <issue>2</issue>
          ),
          <fpage>135</fpage>
          -
          <lpage>154</lpage>
          (
          <year>1989</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fink</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moura</surname>
          </string-name>
          , J.:
          <article-title>Paracoherent answer set programming</article-title>
          . In:
          <string-name>
            <given-names>F.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          and M. Truszcyn´ski (eds.),
          <source>Proc. KR-10, May</source>
          <volume>9</volume>
          -
          <issue>13</issue>
          ,
          <year>2010</year>
          , Toronto, Canada. pp.
          <fpage>486</fpage>
          -
          <lpage>496</lpage>
          . AAAI Press (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leone</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sacca`</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>On the partial semantics for disjunctive deductive databases</article-title>
          .
          <source>Ann. Math. &amp; Artif. Intell</source>
          .
          <volume>19</volume>
          (
          <issue>1</issue>
          /2),
          <fpage>59</fpage>
          -
          <lpage>96</lpage>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Gelfond</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lifschitz</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Classical negation in logic programs</article-title>
          and disjunctive databases.
          <source>New Generation Computing</source>
          <volume>9</volume>
          ,
          <fpage>365</fpage>
          -
          <lpage>385</lpage>
          (
          <year>1991</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Heyting</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Die formalen Regeln der intuitionistischen Logik</article-title>
          .
          <source>Sitzungsberichte der Preussischen Akademie der Wissenschaften</source>
          <volume>16</volume>
          (
          <issue>1</issue>
          ),
          <fpage>42</fpage>
          -
          <lpage>56</lpage>
          (
          <year>1930</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Lifschitz</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Turner</surname>
          </string-name>
          , H.:
          <article-title>Splitting a logic program</article-title>
          .
          <source>In: Proc. ICLP-94</source>
          . pp.
          <fpage>23</fpage>
          -
          <lpage>38</lpage>
          . MIT-Press (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Odintsov</surname>
            ,
            <given-names>S.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pearce</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Routley semantics for answer sets</article-title>
          .
          <source>In: Proc. LPNMR-05. LNCS 3662</source>
          , pp.
          <fpage>343</fpage>
          -
          <lpage>355</lpage>
          . Springer (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Osorio</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          , Ram´ırez,
          <string-name>
            <given-names>J.R.A.</given-names>
            ,
            <surname>Carballido</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.L.</surname>
          </string-name>
          :
          <article-title>Logical weak completions of paraconsistent logics</article-title>
          .
          <source>J. Log. Comput</source>
          .
          <volume>18</volume>
          (
          <issue>6</issue>
          ),
          <fpage>913</fpage>
          -
          <lpage>940</lpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Pearce</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Equilibrium logic</article-title>
          . Ann. Math. &amp;
          <string-name>
            <surname>Artif</surname>
          </string-name>
          . Intell.
          <volume>47</volume>
          (
          <issue>1-2</issue>
          ),
          <fpage>3</fpage>
          -
          <lpage>41</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Pearce</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Valverde</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Quantified equilibrium logic and foundations for answer set programs</article-title>
          .
          <source>In: Proc. ICLP-08. LNCS 5366</source>
          , pp.
          <fpage>546</fpage>
          -
          <lpage>560</lpage>
          . Springer (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alferes</surname>
            ,
            <given-names>J.J.</given-names>
          </string-name>
          , Apar´ıcio,
          <string-name>
            <surname>J.N.</surname>
          </string-name>
          :
          <article-title>Contradiction removal semantics with explicit negation</article-title>
          .
          <source>In: Logic at Work. LNCS 808</source>
          , pp.
          <fpage>91</fpage>
          -
          <lpage>105</lpage>
          . Springer (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pinto</surname>
            ,
            <given-names>A.M.:</given-names>
          </string-name>
          <article-title>Revised stable models - a semantics for logic programs</article-title>
          .
          <source>In: Proc. EPIA-05. LNCS 3808</source>
          , pp.
          <fpage>29</fpage>
          -
          <lpage>42</lpage>
          . Springer (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Przymusinski</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Stable semantics for disjunctive programs</article-title>
          .
          <source>New Generation Computing</source>
          <volume>9</volume>
          ,
          <fpage>401</fpage>
          -
          <lpage>424</lpage>
          (
          <year>1991</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Sakama</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Inoue</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Paraconsistent stable semantics for extended disjunctive programs</article-title>
          .
          <source>J. Log. Comput</source>
          .
          <volume>5</volume>
          (
          <issue>3</issue>
          ),
          <fpage>265</fpage>
          -
          <lpage>285</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Tarjan</surname>
          </string-name>
          , R.E.:
          <article-title>Depth-first search and linear graph algorithms</article-title>
          .
          <source>SIAM J. Comput</source>
          .
          <volume>1</volume>
          (
          <issue>2</issue>
          ),
          <fpage>146</fpage>
          -
          <lpage>160</lpage>
          (
          <year>1972</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>van Gelder</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ross</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schlipf</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>The well-founded semantics for general logic programs</article-title>
          .
          <source>J. ACM</source>
          <volume>38</volume>
          (
          <issue>3</issue>
          ),
          <fpage>620</fpage>
          -
          <lpage>650</lpage>
          (
          <year>1991</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>You</surname>
            ,
            <given-names>J.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yuan</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>A three-valued semantics for deductive databases and logic programs</article-title>
          .
          <source>J. Comput. Syst. Sci</source>
          .
          <volume>49</volume>
          ,
          <fpage>334</fpage>
          -
          <lpage>361</lpage>
          (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>