<!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>Negation as a Resource: a novel view on Answer Set Semantics?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Stefania Costantini</string-name>
          <email>stefania.costantini@univaq.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Formisano</string-name>
          <email>formis@dmi.unipg.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DISIM, Universita` di L'Aquila</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>DMI, Universita` di Perugia</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <fpage>17</fpage>
      <lpage>31</lpage>
      <abstract>
        <p>In recent work, we provided a formulation of ASP programs in terms of linear logic theories. Answer sets were characterized in terms of maximal tensor conjunctions provable from such theories. In this paper, we propose a full comparison between Answer Set Semantics and its variation obtained by interpreting literals (including negative literals) as resources, which leads to a different interpretation of negation. We argue that this novel view can be of both theoretical and practical interest, and we propose a modified Answer Set Semantics that we call Resource-based Answer Set Semantics. One advantage is that of avoiding inconsistencies, so every program has a (possibly empty) resource-based answer set. This implies however the introduction of a different way of representing constraints.</p>
      </abstract>
      <kwd-group>
        <kwd>Answer Set Programming</kwd>
        <kwd>Linear Logic</kwd>
        <kwd>Default Negation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], we proposed a comparison between RASP and linear logic [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], where RASP
[
        <xref ref-type="bibr" rid="ref3 ref4 ref5">3, 4, 5</xref>
        ] is a recent extension of the Answer Set Programming (ASP) framework
obtained by explicitly introducing the notion of resource. As it is well-known, ASP is
nowadays a well-established programming paradigm, with applications in many areas
(see among many [
        <xref ref-type="bibr" rid="ref6 ref7 ref8 ref9">6, 7, 8</xref>
        ] and the references therein). RASP is a significant extension,
supporting both formalization and quantitative reasoning on consumption and
production of amounts of resources.
      </p>
      <p>
        We proved in particular that RASP (and thus, ASP as a particular case) corresponds
to a fragment of linear logic. This was done by providing a two-ways translation of
RASP programs into a linear logic theory. The result implies that a RASP inference
engine (such as Raspberry [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]) can be used for reasoning in this fragment. In defining the
correspondence, we introduced a RASP and linear-logic modeling of default negation
as understood under the answer set semantics. We meant in some sense to propose “yet
another definition of answer set”, in addition to those reported in [
        <xref ref-type="bibr" rid="ref10">9</xref>
        ].
      </p>
      <p>
        In the present paper, we show that understanding default negation as a resource
goes beyond, and leads to the definition of a generalization of the answers set semantics
(for short AS, on which ASP is based), with some potential advantages. We provide a
? A short version of this paper will appear in the Proc. of LPNMR 2013. This research is partially
supported by GNCS-13 project.
model-theoretic definition of the new semantics, that we call Resource-based Answer
Set Semantics. In the new setting, there are no inconsistent programs, and basic odd
cycles (similarly to basic even cycles in AS) are interpreted as exclusive disjunctions.
Constraints must then be represented explicitly (while in ASP they are “simulated” via
unary odd cycles). Therefore, what was before programs with constraints becomes a
plain ASP program (under the extended semantics) augmented with a set of explicitly
represented constraints. We argue that representing constraints separately can lead to
more generality and to an improved elaboration-tolerance (in the sense of [
        <xref ref-type="bibr" rid="ref11">10</xref>
        ]). In the
proposed approach, the “practical expressivity” in terms of knowledge representation is
improved (as we demonstrate by means of significant examples), though unfortunately
also the computational complexity increases.
      </p>
      <p>
        The paper is organized as follows. In Sections 2 and 3, we provide the necessary
background on linear logic and ASP. In Section 4, we specialize the method defined in
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] for RASP, so as to show that ASP can be defined as a fragment of linear logic. It is
relevant to recall this formalization, because it makes it clear which is the motivation
of the new notion of negation and of the generalized answer set semantics that we
then propose. In Sections 5 and 6 the semantic extension is described, formalized and
discussed. Finally, in Section 7 we conclude.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Background on Linear Logic</title>
      <p>
        Linear logic [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] can be considered as a resource sensitive refinement of classical logic,
since it intrinsically supports a natural accounting of resources. Intuitively speaking, in
linear logic, two assumptions of a formula P are distinguished from a single
assumption of it. Below we briefly review the basic traits of (a fragment of) linear logic, by
recalling only the notions that will be used in the remaining part of the paper. For a
comprehensive treatment we refer the reader to [
        <xref ref-type="bibr" rid="ref12">11</xref>
        ] and to the references therein.
      </p>
      <p>
        In linear logic, contraction and weakening rules are not allowed: hence, while a
statement of the form P → P ∧ P is valid in classical logic, this is not the case in
linear logic. The point here can be explained by observing that in classical logic
statements are assumed to express “static” properties, unchanging facts about the world.
On the contrary, linear propositions are concerned with dynamic properties of finite
amounts of resources (and the processes that use them). An example well-known in
the literature [
        <xref ref-type="bibr" rid="ref12 ref13">11, 12</xref>
        ] may further clarify this point. Consider the following
propositions/resources:
and the following axiomatization of a vending machine:
      </p>
      <p>P : “ One dollar”
Q : “ One pack of Camel”
R : “ One pack of Marlboro”</p>
      <p>P → Q</p>
      <p>P → R</p>
      <sec id="sec-2-1">
        <title>In classical logic, one can derive that P → Q ∧ R, but this makes little sense if we are</title>
        <p>assuming the mentioned interpretation of propositions as resources (and of implications
as transformation processes, very much like in RASP).</p>
        <p>One of the crucial features of linear logic is that it makes a neat distinction between
two forms of conjunction that are not distinguished by classical logic. Namely, one
of them intuitively means “I have both”. This is said multiplicative conjunction and is
written as ⊗. The other, the additive conjunction means “I have a choice” (and is written
as &amp;). Dually, there are two disjunctions. The multiplicative one, written P O Q can be
read as “if not P, then Q”, and the additive disjunction P ⊕ Q, that intuitively stands for
the possibility of either P or Q, but we do not know which of the two. That is, it involves
“someone else’s choice”.</p>
      </sec>
      <sec id="sec-2-2">
        <title>Finally, we have linear implication P — ◦ Q. It encodes a form of production pro</title>
        <p>cess: it can be read as “ Q can be derived using P exactly once”. (Notice that, in such a
process P is “consumed”, so it cannot be used again.)</p>
        <p>Linear negation ⊥ is the only negative operation in the logic. It is involutive (namely,
(P⊥)⊥ and P can be safely identified) and, at the same time, it retains a
constructive character. Notice that it acts as a sort of transposition: P — ◦ Q coincides with</p>
        <sec id="sec-2-2-1">
          <title>Q⊥ — ◦ P⊥. Moreover, the linear implication P — ◦ Q can be rewritten as P⊥ O Q.</title>
          <p>In order to re-gain the full power of classical logic exponential operators, namely !
and its dual ?, are introduced. Intuitively, !P means that we have how many P we want.
These connectives reintroduce, in a more controllable way, contraction and weakening
in the logical framework.</p>
          <p>
            To better illustrate all these connectives, let us recall another example (taken
from [
            <xref ref-type="bibr" rid="ref13">12</xref>
            ]). Suppose that for a fixed price of 5 Dollars a restaurant will provide a
hamburger, a Coke, as many french fries as you like, onion soup or salad (your choice), and
pie or ice cream (depending on availability, hence by someone else’s choice). This is
the menu:
          </p>
          <p>For a fixed-Price Menu: 5 Dollars (D) you can have:</p>
          <p>Hamburger (H)</p>
          <p>Coke (C)</p>
          <p>All the french fries (F) you can eat</p>
          <p>One between Onion-Soup (O) or Salad (S)</p>
          <p>Pie (P) or Ice-Cream (I) depending on availability
and its encoding in a linear logic formula:
(D ⊗ D ⊗ D ⊗ D ⊗ D) — ◦</p>
          <p>H ⊗C ⊗ !F ⊗ (O &amp; S) ⊗ (P ⊕ I)</p>
          <p>Some further notions will be used in what follows. Let X s and Y s denote tensor
products of positive literals, e.g. formulas of the form (P1⊗ · · · ⊗Pn) (for n &gt; 0). Then,
generalized Horn implications are defined as follows:
– an Horn implication has the form: X — ◦Y .
– An ⊕-Horn implication has the form: X1 — ◦ (Y1 ⊕ Y2) .</p>
          <p>– An &amp;-Horn implication has the form: (X1 — ◦Y1) &amp; (X2 — ◦Y2) .</p>
        </sec>
      </sec>
      <sec id="sec-2-3">
        <title>Notice that a formula of the last form, say (P1 — ◦ Q1) &amp; (P2 — ◦ Q2), encodes a nonde</title>
        <p>terministical process where a choice is made between the two disjuncts (say P2 — ◦ Q2)
and then the (sub-)process encoded by the selected option is executed (in our case Q2
is produced using P2).</p>
        <p>
          A formal proof system for linear logic can be formulated in terms of a Gentzen-style
sequent calculus. A sequent is composed of two sequences of formulas separated by a
turnstile (`) symbol. The sequent Δ ` Γ asserts that the multiplicative conjunction of
the formulas in Δ together imply the multiplicative disjunction of the formulas in Γ .
In general, a sequent calculus proof rule consists of a set of hypothesis sequents and a
single conclusion sequent. A full set of Gentzen-style sequent rules for linear logic can
be found, for instance, in [
          <xref ref-type="bibr" rid="ref14">13</xref>
          ].
3
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Background on Answer Set Semantics</title>
      <p>
        In the answer set semantics (originally named “stable model semantics”), a (logic)
program Π (cf., [
        <xref ref-type="bibr" rid="ref15 ref16">14, 15</xref>
        ]) is a collection of rules of the form H ← L1, . . . , Ln. where H is
an atom, n &gt; 0 and each literal Li is either an atom Ai or its default negation not Ai. The
left-hand side and the right-hand side of rules are called head and body, respectively.
A rule can be rephrased as H ← A1, . . . , Am, not Am+1, . . . , not An. where A1, . . . , Am
can be called positive body and not Am+1, . . . , not An can be called negative body. A
rule with empty body (n = 0 is called a fact. A rule with empty head is a constraint,
where a constraint is of the form ← L1, . . . , Ln. and states that literals L1, . . . , Ln cannot
be simultaneously true.
      </p>
      <p>
        Various extensions to the basic paradigm exist, that we do not consider here as they
are not essential in the present context. We do not even consider “classical negation”
(cf., [
        <xref ref-type="bibr" rid="ref16">15</xref>
        ]).
      </p>
      <p>In the rest of the paper, whenever it is clear from the context, by “a (logic) program
Π ” we mean an answer set program (ASP program) Π , and we will implicitly refer
to the “ground” version of Π . The ground version of Π is obtained by replacing in all
possible ways the variables occurring in Π with the constants occurring in Π itself, and
is thus composed of ground atoms, i.e., atoms which contain no variables. By “minimal
model of Π ” we mean a minimal model of Π intended as a classical logic theory, where
← is intended as implication and not as negation in classical logic terms.</p>
      <p>
        The answer sets semantics [
        <xref ref-type="bibr" rid="ref15 ref16">14, 15</xref>
        ] is a view of a logic program as a set of inference
rules (more precisely, default inference rules), or, equivalently, a set of constraints on
the solution of a problem: each answer set represents a solution compatible with the
constraints expressed by the program. Consider simple program {q ← not p. p ←
not q.}. For instance, the first rule is read as “assuming that p is false, we can conclude
that q is true.” This program has two answer sets. In the first one, q is true while p is
false; in the second one, p is true while q is false.
      </p>
      <p>
        Unlike other semantics, a program may have several answer sets, or may have no
answer set. Whenever a program has no answer sets, we will say that the program is
inconsistent. Correspondingly, checking for consistency means checking for the existence
of answer sets. The following program has no answer set: {a ← not b. b ← not c. c ←
not a.}. The reason is that in every minimal model of this program there is a true atom
that depends (in the program) on the negation of another true atom, which is strictly
forbidden in this semantics, where every answer set can be considered as a self-consistent
and self-supporting set of consequences of given program. The program {p ← not p.}
has no answer sets either as it is contradictory. Constraints of the form defined above can
be simulated by plain rules of the form p ← not p, L1, . . . , Ln. where p is a fresh atom.
Thus, consistency is related (as discussed at length in [
        <xref ref-type="bibr" rid="ref17 ref18">16, 17</xref>
        ]) to the occurrence of
“odd cycles” (of which p ← not p is the basic case, though odd cycles may involve any
odd number of atoms) and how they are connected to other parts of the program. The
reason is that, in principle, the negation not A of atom A is an assumption, that must be
dropped whenever A can be proved, as answer sets are by definition non-contradictory.
      </p>
      <p>
        Below is the specification of the Answer Set Semantics, reported from [
        <xref ref-type="bibr" rid="ref15">14</xref>
        ].
Definition 1 (The Gelfond-Lifschitz Operator). Let I be a set of atoms and Π a
program. A GL-transformation of Π modulo I is a new program Π /I obtained from Π by
performing the following two reductions:
1. removing from Π all rules which contain a negative premise not A such that A ∈ I;
2. removing from the remaining rules those negative premises not A such that A 6∈ I.
Π /I is a positive logic program, with Least Herbrand Model1 J. Let ΓΠ (I) = J.
      </p>
      <p>Answer sets are defined as follows.</p>
      <p>Definition 2. Let I be a set of atoms and Π a program. I is an answer set of Π iff
ΓΠ (I) = I.</p>
      <p>
        It will be useful in what follows to report from [
        <xref ref-type="bibr" rid="ref17">16</xref>
        ] a simple property of ΓΠ .
Proposition 1. Let M be a minimal model2 of Π . Then, ΓΠ (M) ⊆ M.
      </p>
      <p>Answer sets are in fact minimal supported models, and non-empty answer sets form
an anti-chain with respect to set inclusion.</p>
      <p>
        In the ASP (Answer Set Programming) paradigm, each answer set is seen as a
solution of given problem, encoded as an ASP program. To find these solutions, an
ASPsolver is used. Several solvers have became available, see [
        <xref ref-type="bibr" rid="ref20">19</xref>
        ], each of them being
characterized by its own prominent valuable features. The expressive power of ASP, as
well as, its computational complexity have been deeply investigated (cf. e.g., [
        <xref ref-type="bibr" rid="ref21">20</xref>
        ]).
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>ASP and Linear Logic</title>
      <p>
        In this section, we specialize the method defined in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] for RASP, so as to show that
ASP can be defined as a fragment of linear logic. In particular, we define a translation
of ASP programs into a linear logic theory employing as connectives tensor product
⊗ (to express concomitant use/production of different resources), linear implication
— ◦ (to model production processes), and additive conjunction &amp; (to represent
alternative/exclusive resource allocation). In well-known terminology, we adopt formulas
belonging to the so-called Horn-fragment of linear logic. In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] we treat the more
general case of RASP, which manages resource production and consumption.
1 Cf. [
        <xref ref-type="bibr" rid="ref19">18</xref>
        ] for the definition of Least Herbrand Model of a Horn logic program, due to Van Emden
and Kowalski.
      </p>
      <p>2 The property holds for models in general, but minimal ones are those of interest here.</p>
      <p>A positive ASP program Π (i.e., a program without default negation) can be
transformed into a corresponding Linear Logic RASP Theory as follows (notice that the
reverse translation is also possible, i.e., to transform a Linear Logic RASP Theory into
a (R)ASP program). In particular, in the definition below each atomq in the body of the
j-th rule of given program is renamed as q j, where the q j’s are called the
standardizedapart versions of q. Moreover, since the formalization passes through RASP, which
considers atoms as resources, each standardized-apart atom q j will stand for q j:1 (In
RASP terminology, a writing of the form q:a denotes an amount a of the resource q.).
The meaning is that, when using the body of a rule to derive the head, one uses one unit
of each atom (seen as a resource) in the body3. Notice that, in Π , the truth of an atom
might be used to prove several consequences (through different rules). As we
mentioned before, linear logic provides the exponential connective !A, intuitively meaning
that we can use as many occurrences of A as we want. However, exploiting this
connective would bring us outside the finite propositional fragment of linear logic at hand.
The devised method remains within the propositional fragment.</p>
      <p>Definition 3. Given a positive ASP program Π , the corresponding Linear Logic RASP
Theory ΣΠ is obtained by applying, in sequence, the following rewritings.
– Standardize apart the atoms in the bodies of rules of Π . Namely, each occurrence
of an atom A in the body of the j-th rule is replaced by A j:1.
– For every atom A occurring as head of h &gt; 0 rules in (the standardize apart version
of) Π , let A ← Bi,1, . . . , Bi,`i , for i = 1, . . . , h, be such rules (with `i possibly null,
if the corresponding rule is a fact). Replace these rules by the following linear
implications (where the Ais are fresh atoms):</p>
      <p>Bi,1⊗ . . . ⊗ Bi,`i — ◦ Ai
A1 &amp; . . . &amp; Ah — ◦ A
for i = 1, . . . , h
– For each atom A, let A1:1, . . ., Am:1 be its standardized apart versions, introduced
as described earlier. Add to ΣΠ the linear implication A — ◦ A1:1 ⊗ . . . ⊗ Am:1.
– Replace in ΣΠ any linear implication B1 ⊗ . . . ⊗ Bn — ◦ H with the implication</p>
      <p>B1 ⊗ . . . ⊗ Bn — ◦ H ⊗ B1R ⊗ . . . ⊗ BnR.</p>
      <p>Let us remark some aspects of the previous definition. Notice that through the second
step of the translation, the body of each rule in Π , which is a conjunction of atoms,
is turned into a tensor conjunction of atoms. The purpose of the linear implication</p>
      <sec id="sec-4-1">
        <title>A1 &amp; . . . &amp; Ah — ◦ A is that of enabling the derivation of A by either of the (translations</title>
        <p>of the) rules defining it. Clearly, the introduction of such an implication can be avoided
in case A occurs as head of a single rule (in this case h = 1 and we can simply replace A1
by A in the first linear implication). In what follows we will adhere to this convention
whenever possible.</p>
        <sec id="sec-4-1-1">
          <title>The linear implication A — ◦ A1:1 ⊗ . . . ⊗ Am:1 can be seen as an &amp;-Horn implica</title>
          <p>tions with a unique conjunct. It models the fact that A is a resource available to any rule
that may need to use it.</p>
          <p>3 RASP allows for arbitrary quantities, not needed here.</p>
          <p>Notice, moreover, the introduction of a fresh atom BiRs corresponding to each atom
Bi, in the last step of the translation. These fresh atoms are called the r-copies of the
Bis. They are produced just in order to keep a record of those resources that have been
consumed. R-copies allow us to establish a correspondence between answer sets of Π
and maximal tensor conjunctions provable from ΣΠ , where:
Definition 4. Given linear logic theory Σ , a tensor conjunction of atoms A1 ⊗ . . . ⊗ An
(n ≥ 0), is called maximally provable if it is provable from Σ , and for any atom B, the
tensor conjunction A1 ⊗ . . . ⊗ An ⊗ B is not provable from Σ (we equivalently talk about
a maximal tensor conjunction provable from Σ ).</p>
          <p>Lemma 1. Let Π be a positive ASP program Π , and ΣΠ be the corresponding Linear
Logic RASP Theory. Every maximal tensor conjunction A provable from ΣΠ includes
all the r-copies of facts of ΣΠ and of standardized-apart atoms occurring in the body of
linear implications of ΣΠ that have been used for proving atoms in A .</p>
          <p>As mentioned, the role of r-copies is to keep records of facts (intended as resources
originally present in the program) and of intermediate conclusions used (as resources)
in further inference. In a linear-logic setting in fact, resources which are consumed
“disappear”, thus we would not be able to establish a relation between provable tensor
conjunctions and answer sets. Now in fact, we are able to state (neglecting, by abuse of
notation, the syntactic distinction between an atom A and its r-copy AR):
Theorem 1. Let Π be a positive ASP program Π , and ΣΠ be the corresponding Linear
Logic RASP Theory. A1 ⊗ . . . ⊗ An is a maximal tensor conjunction provable from ΣΠ
if and only if {A1, . . . , An} is an answer set for Π .</p>
          <p>Let us now consider full ASP, where rule bodies involve negative literals. Assume
there are n occurrences of not A in the body of rules of given program Π . To represent
full RASP (and thus full ASP) we improve the transformation devised in Definition 3:
Definition 5. Given ASP program Π , the corresponding Linear Logic RASP Theory
ΣΠ is obtained by applying, in sequence, the following rewritings.</p>
          <p>– For each atom A occurring negated in rules of Π , standardize apart each of its
negated occurrences by replacing not A with not A j:1, in the j-th rule.
Being not A j1 :1, . . ., not A jn :1 all the occurrences introduced in this manner, add
the (linear) fact not A:n to the translation of Π .
– For each rule A ← B1, . . . , B` of Π . Let such rule be the j-th one; rewrite it as
A ← B1, . . . , B`, not A j:n.</p>
          <p>Let us denote by not Ak1 :n, . . ., not Aks :n all the atoms introduced in this manner.4
– Apply the rewriting indicated in Definition 3 to the result of the previous steps.
– Finally, for each linear fact not A:n added to ΣΠ (cf., the first two steps), also add
the &amp;-Horn implications to the translation of Π :
(not A:n — ◦ not Ak1 :n) &amp; . . . &amp; (not A:n — ◦ not Aks :n) &amp;
(not A:n — ◦ not A j1 :1 ⊗ . . . ⊗ not A jn :1)
4 In case identical atoms would be introduced in the body in consequence of different steps of
the translation, e.g., not Ak:1 and not Ak:1 might occur in the same rule if n equals 1 in the
first step andnot A already appeared in the ASP rule body, then further standardize apart these
occurrences, e.g., as not Ak1:1 and not Ak2:1.</p>
          <p>The intuitive meaning behind this translation is that the assumption not A is made
available to every rule that intends to adopt it, unless A itself is provable. In which case
the assumption becomes totally unavailable (as proving A consumes the full available
quantity of the “resource” not A).</p>
          <p>The transformation of Definitions 3 and 5 is clearly polynomial, as we add: (i) a
new conjunct in the body (not A if the rule head is A) and new elements (r-copies) in
the head of rules ; (ii) one &amp;-Horn implication for each A occurring in the head of some
rule; (iii) one linear implication for each atom defined via several rules; (iv) one &amp;-Horn
implication for each A occurring negatively in the body of some rule. Hence, we have:
Theorem 2. Let Π be an ASP program, and ΣΠ the corresponding Linear Logic RASP
Theory, obtained according to Definitions 3 and 5. Let M = {A1, . . . , An} be an answer
set for Π . Then, A1 ⊗ . . . ⊗ An is a maximal tensor conjunction provable from ΣΠ .</p>
          <p>
            Note that the reverse result does not necessarily hold, because there are maximal
tensor conjunctions that are not answer sets but are provable from ΣΠ . This is due (as
discussed in [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ]) to the lack of relevance of the answer set semantics (cf., [
            <xref ref-type="bibr" rid="ref22">21</xref>
            ]), but also
to the locality of a proof-based system such as linear logic.
5
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Negation as a Resource: a novel view on Answer Set Semantics</title>
      <p>It is interesting to notice that the linear logic formulation we summarized in the previous
section prevents contradictions. Consider for example the program Π1 = {p ← not p.}.
It is transformed into:
not p11:1 ⊗ not p12:1 — ◦ p,
not p:1,
(not p:1 — ◦ not p11:1) &amp; (not p:1 — ◦ not p12:1)</p>
      <p>In the first rule, one occurrence ofnot p corresponds to the one originally present,
the other one has been added as for proving p it is necessary to “absorb” the whole
available quantity of not p (consider n = 1 in Definition 5). We can in fact verify that
the singleton tensor conjunction p is by no means provable: in fact, it would require
two units of not p, while just one is available. This does not lead to inconsistency, but
simply to the impossibility to prove p.</p>
      <p>Consider again program Π = {a ← not b. b ← not c. c ← not a.} which is an “odd
cycle” involving three atoms. In our formulation, ΣΠ is the following:
not a1:1 ⊗ not b1:1 — ◦ a
not c2:1 ⊗ not b2:1 — ◦ b
not a3:1 ⊗ not c3:1 — ◦ c
not a:1
not b:1
not c:1
(not a:1 — ◦ not a1:1) &amp; (not a:1 — ◦ not a3:1)
(not b:1 — ◦ not b1:1) &amp; (not b:1 — ◦ not b2:1)
(not c:1 — ◦ not c2:1) &amp; (not c:1 — ◦ not c3:1)</p>
      <p>From this linear logic theory we can prove the three maximal tensor conjunctions,
namely, a, b and c. Assume, in fact, to try to prove a (the cases of b and c are of course
analogous). Proving a uses resources not a1:1 and not b1:1. Therefore, after proving a,
b cannot be proved because its own negation (i.e., not b2:1) is not available: in fact,
the &amp;-Horn implication related to b generates (indifferently) only one of the two items,
and has already been requested to produce not b1:1 for proving a. In turn, c cannot
be proved because not a3:1 is not available, as the &amp;-Horn implication related to a
generates (indifferently) only one of the two items, and has already been requested to
produce not a1:1 for proving a. Then, ΣΠ behaves analogously to the GL-reduct as far
as c is concerned, being not a unavailable once a has been proved. But it behaves in a
more uniform way on b, in the sense that once not b has been used to prove a, it is no
longer possible to prove b.</p>
      <p>This means that the 3-atoms odd cycles is interpreted as an exclusive disjunction,
exactly like the 2-atoms even cycle (such as {q ← not p. p ← not q.}) in AS.
Therefore, in the generate-and-test perspective which is at the basis of the ASP programming
methodology, our new view provides a new mean of easily generating the search space.</p>
      <sec id="sec-5-1">
        <title>We call {a}, {b}, and {c} resource-based answer sets, for which we provide below a logic programming characterization. The resource-based answers set for program {p ← not p.} is the empty set.</title>
        <p>The ternary cycle has many well-known interpretations in terms of knowledge
representation, among which the following is an example:
{beach ← not mountain.
mountain ← not travel.</p>
        <p>
          travel ← not beach.}
In our approach we would have exactly one of (indifferently) beach, mountain, or travel.
Similarly for the program {work ← not tired. tired ← not sleep. sleep ← not work.}.
Note that, in answer set programming, for defining the exclusive disjunction of three
atoms one has to resort to the extremal program [
          <xref ref-type="bibr" rid="ref23">22</xref>
          ] {a ← not b, not c. b ←
not c, not a. c ← not a, not b.}
        </p>
        <p>
          There are other semantic approaches to managing odd cycles, such as for instance
[
          <xref ref-type="bibr" rid="ref24 ref25">23, 24</xref>
          ] and [
          <xref ref-type="bibr" rid="ref26 ref27">25, 26</xref>
          ], with their own sound theoretical foundations, that can however
be distinguished from the present one: in fact, the former proposals basically choose
(variants of) the classical models, and the latter ones treat differently the unary and
ternary cycles.
        </p>
        <p>Below we provide a variation of the answer set semantics that defines
resourcebased answer sets.</p>
        <p>Definition 6. Let Π be a program and I a minimal model of Π . I is called a Π -based
minimal model iff ∀A ∈ I, there exists a rule in Π with head A and positive body
C1, . . . ,Cm, m ≥ 0, where {C1, . . . ,Cm} ⊆ I.</p>
        <p>Definition 7. Let Π be a program. M is a resource-based answer set of Π iff M =
ΓΠ (I), where I is a Π -based minimal model of Π .</p>
        <p>By Definition 7, there is a resource-based answer set for each Π -based classical
minimal model. It is clear that answer sets are among resource-based answer sets. In
fact, as stated in Section 3 (Proposition 1), for any minimal model I it holds ΓΠ (I) ⊆ I:
thus any answer set S, being a minimal model which is equal to ΓΠ (S), fits as a particular
case in the above definition. Therefore, some of the resource-based answer sets ofΠ are
classical models (coinciding with its answer sets), while the others are subsets of the
remaining Π -based minimal models (if any). Non-empty resource-based answer sets
still form an anti-chain w.r.t. set inclusion.</p>
        <p>
          We call the new semantics RAS semantics (Resource-Based Answer Set semantics),
w.r.t. AS (Answer Set) semantics. Differently from answer sets, a (possibly empty)
resource-based answer set always exists. Complexity of RAS semantics is however
higher than complexity of AS semantics: in fact, [
          <xref ref-type="bibr" rid="ref28">27</xref>
          ] proves that deciding whether a set
of formulas is a minimal model of a propositional theory is co-NP-complete. Clearly,
checking whether a minimal model I is Π -based and computing ΓΠ (I) has polynomial
complexity. Then:
Proposition 2. Given program Π , deciding whether a set of atom I is a resource-based
answer set of Π is co-NP-complete.
        </p>
        <p>
          The previous result about the relation with linear logic (Theorem 2) extends to the
new semantics. The proof, reported in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] in the context of full RASP programs,
remains essentially the same. The difference is that where in previous case one referred
to answer sets, which implies that given program Π was supposed to be consistent, we
are now able to refer to any ASP program. Then we have:
Theorem 3. Let Π be an ASP program, and ΣΠ the corresponding Linear Logic RASP
Theory, obtained according to Definitions 3 and 5. If M = {A1, . . . , An} is a
resourcebased answer set for Π , then A1 ⊗ . . . ⊗ An is a maximal tensor conjunction provable
from ΣΠ .
        </p>
        <p>
          It remains to be explained why the new definition models the intuition, and how
it applies to practical cases. In particular, given minimal model I of Π , it may be that
ΓΠ (I) ⊂ I, i.e., ΓΠ (I) is a proper subset of I and thus I is not an answer set, for only
one reason. For atom A to belong to a Π -based minimal model I, there exists some rule
in Π with head A. For A not to belong to ΓΠ (I), so that ΓΠ (I) ⊂ I, each of the rules
that could cause A to be in the model must have been canceled by step (1) of ΓΠ , as
they include literal not B in their body, B ∈ I. Atoms belonging to ΓΠ (I) are therefore
those atoms in I that can be derived without such contradictions. As widely discussed in
[
          <xref ref-type="bibr" rid="ref17 ref18">16, 17</xref>
          ], contradictions only arise in program fragments corresponding to unbounded
odd cycles, i.e., odd cycles where no atom is bounded to be true/false (thus resolving the
contradiction) by links with other parts of the program. Starting from Π -based minimal
models however, ΓΠ (I) provides for these cycles the “exclusive or” interpretation that
we have proposed above.
        </p>
        <p>Regarding general odd cycles involving k atoms, of the form {a1 ← not a2. a2 ←
not a3. . . . ak ← not a1.}, it is easy to see that each such cycle has k classical minimal
Π -based models (it admits k classical minimal models, all of them Π -based as there
are no positive conditions). Correspondingly, we obtain k resource-based answer sets,
where we have Mi = {ai+d , with d even, 0 ≤ d &lt; k − 1}. This fact can be verified by
producing a translation into the corresponding Linear Logic RASP Theory analogous to
the one performed above for unary and ternary cycles. Then, unfortunately, odd cycles
no longer model disjunction if k &gt; 3, similarly to even cycles, which do not model
disjunction if k &gt; 2.</p>
        <p>
          In resource-based answer set semantics, there are no inconsistent programs.
Nevertheless, the new semantics is useful in knowledge representation not just to fix
inconsistencies: rather, it depicts a more general scenario in many reasonable examples.
Consider for instance the variation of the above program (inspired to examples proposed
in [
          <xref ref-type="bibr" rid="ref24 ref25">23, 24</xref>
          ]):
beach ← not mountain.
mountain ← not travel.
travel ← not beach, passport ok.
passport ok ← not forgot renew.
        </p>
        <p>forgot renew ← not passport ok.</p>
        <p>This program has answer set M1 = {forgot renew, mountain}, as passport ok
being false forces travel to be false, which in turn makes mountain true. The answer
set semantics cannot cope with the case of the passport being ok, which is in fact
excluded as this option determines no answer set. Instead, in resource-based answer
set semantics we have, in addition to M1, three other answer sets stating that, if the
passport is ok, any choice is possible, namely we have M2 = {passport ok, mountain},
M3 = {passport ok, beach}, and M4 = {passport ok, travel}. We may notice that the
semantics is still a bit strong on this example on the side of the answer set, as one
would say that not having passport ok prevents traveling, but any other choice should
be possible, while instead the mountain choice is forced.</p>
        <p>A better formalization of the above example would be by means of the plain odd
cycle, plus the even cycle concerning passport, plus the constraint</p>
        <p>← not passport ok, travel.</p>
        <p>In the next section we will discuss how to introduce such a constraint, as a unary odd
cycle is no longer usable to this purpose.
6</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Modeling Constraints</title>
      <p>
        In resource-based answer set semantics, constraints cannot be modeled in terms of odd
cycles. Therefore, they have to be modeled explicitly. In particular, let assume a
constraint C to be of the form ← E1, . . . , En. where the Eis are atoms5. This is with no loss
of generality, as a constraint such as, for instance, ← A, not B. can be reformulated as
the program fragment ← A, B0. B0 ← not B. Thus, an overall program ΠO can be seen
as composed of answer set program Π plus a set {C1, . . . , Cv} of constraints, and,
possibly, an auxiliary program ΠC , so that constraints can be defined on atoms belonging
to either Π or ΠC . We assume however that ΠC is stratified (i.e., it contains no cycles,
cf. e.g., [
        <xref ref-type="bibr" rid="ref29">28</xref>
        ] for a formal definition) and that atoms ofΠ may occur in ΠC only in the
body of rules (in the terminology of [
        <xref ref-type="bibr" rid="ref17 ref30">16, 29</xref>
        ], ΠC is a top program of Π ).
5 This limitation will be useful for the linear logic formulation (provided below).
Consider for instance ΠO to be composed of the following Π :
{beach ← not mountain.
mountain ← not travel.
travel ← not beach.
      </p>
      <p>hyperthyroidism.}
plus the following ΠC :</p>
      <p>{unhealthy ← beach, hyperthyroidism.}
plus the constraint ← unhealthy.</p>
      <sec id="sec-6-1">
        <title>The resulting theory will have resource-based answer sets {mountain,</title>
        <p>hyperthyroidism}, and {travel, hyperthyroidism}, while {beach, hyperthyroidism,
unhealthy} is excluded by the constraint. We now proceed to the formal definition.
Definition 8. An Answer Set Theory T is a couple hΠO , Constri, with ΠO = Π ∪ ΠC ,
where ΠC is a top program for Π , and where Constr is a set {C1, . . . , Cv}, v ≥ 0, of
constraints.</p>
        <p>Definition 9. Given Answer Set Theory T = hΠO , Constri, a resource-based Answer
Set M for Π fulfills the constraints in Constr iff the answer set program Π 0 is consistent
(in the sense of traditional answer set semantics), where Π 0 is obtained from ΠC by
adding all atoms in M as facts, and all constraints in Constr as rules.</p>
        <p>Definition 10. A Resource-based Answer Set M of Answer Set Theory T =
hΠO , Constri is a resource-based answer set for Π that fulfills all constraints in Constr.</p>
        <p>
          It is easy to see that, in order to check that resource-based Answer Set M for Π
fulfills the constraints, one can check consistency ofΠ 0 in a simple way, by: (i) computing
(in polynomial time, cf., e.g., [
          <xref ref-type="bibr" rid="ref21">20</xref>
          ]) the unique answer set M00 of the stratified program
Π 00 obtained from ΠC by adding all atoms in M as facts, and then (ii) checking
constraints on M00 by pattern-matching. Then, for constraints of the above simple form, we
can conclude that:
Proposition 3. Given Answer Set Theory T , deciding about the existence of a
resource-based answer set is a co-NP-complete problem.
        </p>
        <p>
          The partition of ΠO into Π and ΠC is not strictly necessary in the present context.
In fact, one might simply check the constraints on Π ∪ ΠC . However, we choose to
introduce the distinction because we believe that it may have a significance in terms
of knowledge representation and elaboration-tolerance, in the sense of [
          <xref ref-type="bibr" rid="ref11">10</xref>
          ]. In fact, the
same “generate” part ( Π ) can be customized by adding on top, as an independent layer,
different “test” parts ( ΠC ). Moreover, constraints might be generalized with respect to
the simple form proposed above, for instance drawing inspiration from the discussion
in [
          <xref ref-type="bibr" rid="ref31 ref32 ref33">30, 31, 32</xref>
          ], or also following the approach of Answer Set Optimization (cf. [
          <xref ref-type="bibr" rid="ref34">33</xref>
          ] and
the references therein), which proposes constraints expressing complex preferences for
choosing among answer sets.
        </p>
        <p>For the sake of completeness, it may be interesting to illustrate the linear logic
formalization of the full approach. To this aim, we have to resort to linear logic negation.
A constraint C = ← E1, . . . , En. can in fact be represented in linear logic as C L = E1⊥ O
. . . O En⊥ where O is the multiplicative disjunction, and ⊥ is linear logic negation, A⊥
meaning “there is no proof for A”. 6</p>
      </sec>
      <sec id="sec-6-2">
        <title>Thus, the overall linear logic theory would be ΣΠO , and its resource-based answer</title>
        <p>sets should be matched against the constraints. Formally:
Definition 11. Given resource-based answer set M = {A1, . . . , An} for ΠO , M is
a resource-answer set for answer set theory T = hΠO , Constri where Constr
= {C1, . . . , Cv} iff tensor conjunction A1 ⊗ . . . ⊗ An ⊗ C1L⊗ . . . ⊗ CvL is provable
from ΣΠO .</p>
        <p>Notice that each constraint is provable whenever at least one of its disjuncts is not
one of the Ai’s. Then, in terms of equivalence between the logic programming and linear
logic formulation, nothing really changes w.r.t. Theorem 3.
7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Concluding Remarks</title>
      <p>In this paper, we have proposed an extension of the answer set semantics where ternary
odd cycles are understood as exclusive disjunctions, similarly to binary even cycles.
This extension stems from the interpretation of an answer set program as a linear logic
theory, where default negation is considered to be a resource. The practical advantage is
that there is more freedom in defining a search space, where constraints must however
be defined in a separate “module” to be added to given answer set program.</p>
      <p>Concerning implementation, which is of course a main future issue for this research,
answer set solvers based on SAT appear to be good candidates for extension to the new
setting. In fact, apart from checking for minimality of models (which is the part
responsible for the additional complexity), they do not seem to need substantial modifications
in order to cope with the new semantics, that thus might in principle be easily and
quickly implemented.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , “
          <article-title>RASP and ASP as a fragment of linear logic</article-title>
          ,
          <source>” Journal of Applied Non-Classical Logics (JANCL)</source>
          , vol.
          <volume>23</volume>
          , no.
          <issue>1-2</issue>
          , pp.
          <fpage>49</fpage>
          -
          <lpage>74</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.-Y.</given-names>
            <surname>Girard</surname>
          </string-name>
          , “Linear logic,
          <source>” Theoretical Computer Science</source>
          , vol.
          <volume>50</volume>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>102</lpage>
          ,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , “
          <article-title>Answer set programming with resources</article-title>
          ,
          <source>” Journal of Logic and Computation</source>
          , vol.
          <volume>20</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>533</fpage>
          -
          <lpage>571</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , “
          <article-title>Modeling preferences and conditional preferences on resource consumption and production in ASP,”</article-title>
          <source>Journal of Algorithms in Cognition, Informatics and Logic</source>
          , vol.
          <volume>64</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>3</fpage>
          -
          <lpage>15</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Petturiti</surname>
          </string-name>
          , “
          <article-title>Extending and implementing RASP,” Fundamenta Informaticae</article-title>
          , vol.
          <volume>105</volume>
          , no.
          <issue>1-2</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>33</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <article-title>6 In fact, linear logic negation as such was used in [34] to model negation-as-failure in Prolog.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Baral</surname>
          </string-name>
          ,
          <article-title>Knowledge representation, reasoning and declarative problem solving</article-title>
          . Cambridge University Press,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Truszczyn</surname>
          </string-name>
          <article-title>´ski, “Logic programming for knowledge representation,” in Logic Programming, 23rd Intl</article-title>
          . Conference,
          <article-title>ICLP 2007 (V. Dahl and I</article-title>
          . Niemela¨,
          <source>eds.)</source>
          , pp.
          <fpage>76</fpage>
          -
          <lpage>88</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Gelfond</surname>
          </string-name>
          , “Answer sets,”
          <source>in Handbook of Knowledge Representation. Chapter</source>
          <volume>7</volume>
          ,
          <string-name>
            <surname>Elsevier</surname>
          </string-name>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>V.</given-names>
            <surname>Lifschitz</surname>
          </string-name>
          , “
          <article-title>Twelve definitions of a stable model,” in Proc. of the 24th Intl</article-title>
          . Conference on Logic
          <string-name>
            <surname>Programming (M. Garcia de la Banda</surname>
          </string-name>
          and E. Pontelli, eds.), vol.
          <volume>5366</volume>
          of LNCS, pp.
          <fpage>37</fpage>
          -
          <lpage>51</lpage>
          , Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [10]
          <string-name>
            <surname>J. McCarthy</surname>
          </string-name>
          , “Elaboration tolerance,”
          <source>in Proc. of Common Sense'98</source>
          ,
          <year>1998</year>
          . Available at http://www-formal.stanford.edu/jmc/ elaboration.html.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [11]
          <string-name>
            <surname>J.-Y. Girard</surname>
          </string-name>
          , “
          <article-title>Linear logic: Its syntax and semantics</article-title>
          ,” in Advances in Linear
          <string-name>
            <surname>Logic (J.-Y. Girard</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Lafont</surname>
          </string-name>
          , and L. Regnier, eds.),
          <source>Proc. of the 1993 Workshop on Linear Logic</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>42</lpage>
          , Cambridge Univ. Press,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>P.</given-names>
            <surname>Lincoln</surname>
          </string-name>
          , “Linear logic,
          <source>” ACM SIGACT News</source>
          , vol.
          <volume>23</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>29</fpage>
          -
          <lpage>37</lpage>
          ,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [13]
          <string-name>
            <surname>M. I. Kanovich</surname>
          </string-name>
          , “
          <article-title>The complexity of horn fragments of linear logic</article-title>
          ,
          <source>” Ann. Pure Appl. Logic</source>
          , vol.
          <volume>69</volume>
          , no.
          <issue>2-3</issue>
          , pp.
          <fpage>195</fpage>
          -
          <lpage>241</lpage>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Gelfond</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Lifschitz</surname>
          </string-name>
          , “
          <article-title>The stable model semantics for logic programming</article-title>
          ,
          <source>” in Proc. of the 5th Intl. Conference and Symposium on Logic Programming</source>
          <volume>(</volume>
          <string-name>
            <given-names>R.</given-names>
            <surname>Kowalski</surname>
          </string-name>
          and K. Bowen, eds.), pp.
          <fpage>1070</fpage>
          -
          <lpage>1080</lpage>
          , The MIT Press,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>M.</given-names>
            <surname>Gelfond</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Lifschitz</surname>
          </string-name>
          , “
          <article-title>Classical negation in logic programs</article-title>
          and disjunctive databases,
          <source>” New Generation Computing</source>
          , vol.
          <volume>9</volume>
          , pp.
          <fpage>365</fpage>
          -
          <lpage>385</lpage>
          ,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          , “
          <article-title>Contributions to the stable model semantics of logic programs with negation</article-title>
          ,
          <source>” Theoretical Computer Science</source>
          , vol.
          <volume>149</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>231</fpage>
          -
          <lpage>255</lpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          , “
          <article-title>On the existence of stable models of non-stratified logic programs</article-title>
          ,
          <source>” Theory and Practice of Logic Programming</source>
          , vol.
          <volume>6</volume>
          , no.
          <issue>1-2</issue>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>J. W.</given-names>
            <surname>Lloyd</surname>
          </string-name>
          ,
          <source>Foundations of Logic Programming</source>
          . Springer-Verlag,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [19]
          <article-title>Web-references, “Some ASP solvers</article-title>
          .” Clasp: potassco.sourceforge.net; Cmodels: www.cs.utexas.edu/users/tag/cmodels; DLV: www.dbai.tuwien.ac.at/ proj/dlv; Smodels: www.tcs.hut.fi/Software/smodels.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>E.</given-names>
            <surname>Dantsin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Eiter</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Gottlob, and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Voronkov</surname>
          </string-name>
          , “
          <article-title>Complexity and expressive power of logic programming</article-title>
          ,
          <source>” ACM Computing Surveys</source>
          , vol.
          <volume>33</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>374</fpage>
          -
          <lpage>425</lpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>J.</given-names>
            <surname>Dix</surname>
          </string-name>
          , “
          <article-title>A classification theory of semantics of normal logic programs I-II</article-title>
          .,” Fundam. Inform., vol.
          <volume>22</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>227</fpage>
          -
          <lpage>255</lpage>
          and
          <fpage>257</fpage>
          -
          <lpage>288</lpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>P.</given-names>
            <surname>Cholewinski</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Truszczynski</surname>
          </string-name>
          , “
          <article-title>Extremal problems in logic programming and stable model computation</article-title>
          ,” in JICSLP, pp.
          <fpage>408</fpage>
          -
          <lpage>422</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>L. M.</given-names>
            <surname>Pereira</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Pinto</surname>
          </string-name>
          , “
          <article-title>Revised stable models - a semantics for logic programs</article-title>
          ,
          <source>” in Progress in Artificial Intelligence, Proc. of EPIA</source>
          2005
          <string-name>
            <surname>(C. Bento</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Cardoso</surname>
          </string-name>
          , and G. Dias, eds.), vol.
          <volume>3808</volume>
          of LNCS, Springer,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>L. M.</given-names>
            <surname>Pereira</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Pinto</surname>
          </string-name>
          , “
          <article-title>Tight semantics for logic programs</article-title>
          ,” in Tech.
          <source>Comm. of the 26th Intl. Conference on Logic Programming</source>
          ,
          <string-name>
            <surname>ICLP 2010 (M. V. Hermenegildo</surname>
          </string-name>
          and T. Schaub, eds.), vol.
          <volume>7</volume>
          of LIPIcs, pp.
          <fpage>134</fpage>
          -
          <lpage>143</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>M.</given-names>
            <surname>Osorio</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Lo</surname>
          </string-name>
          <article-title>´pez, “Expressing the stable semantics in terms of the pstable semantics,”</article-title>
          <source>in Proc. of the LoLaCOM06 Workshop</source>
          , vol.
          <volume>220</volume>
          <source>of CEUR Workshop Proc. , CEURWS.org</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>M.</given-names>
            <surname>Osorio</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. A. N.</surname>
          </string-name>
          <article-title>Pe´rez</article-title>
          ,
          <string-name>
            <given-names>J. R. A.</given-names>
            <surname>Ram</surname>
          </string-name>
          <article-title>´ırez, and V. B</article-title>
          . Mac ´ıas, “
          <article-title>Logics with common weak completions,”</article-title>
          <string-name>
            <given-names>J.</given-names>
            <surname>Log</surname>
          </string-name>
          . Comput., vol.
          <volume>16</volume>
          , no.
          <issue>6</issue>
          , pp.
          <fpage>867</fpage>
          -
          <lpage>890</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>M.</given-names>
            <surname>Cadoli</surname>
          </string-name>
          , “
          <article-title>The complexity of model checking for circumscriptive formulae</article-title>
          ,” Inf. Process. Lett., vol.
          <volume>44</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>113</fpage>
          -
          <lpage>118</lpage>
          ,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>K. R.</given-names>
            <surname>Apt</surname>
          </string-name>
          and
          <string-name>
            <given-names>R. N.</given-names>
            <surname>Bol</surname>
          </string-name>
          , “
          <article-title>Logic programming and negation: A survey,”</article-title>
          <string-name>
            <given-names>J.</given-names>
            <surname>Log</surname>
          </string-name>
          . Program., vol.
          <volume>19</volume>
          /20, pp.
          <fpage>9</fpage>
          -
          <lpage>71</lpage>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>V.</given-names>
            <surname>Lifschitz</surname>
          </string-name>
          and
          <string-name>
            <given-names>H.</given-names>
            <surname>Turner</surname>
          </string-name>
          , “
          <article-title>Splitting a logic program</article-title>
          ,”
          <source>in Proc. of ICLP'94</source>
          ,
          <string-name>
            <surname>Intl</surname>
          </string-name>
          .
          <source>Conference on Logic Programming</source>
          , pp.
          <fpage>23</fpage>
          -
          <lpage>37</lpage>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , “
          <article-title>Weight constraints with preferences in ASP,”</article-title>
          <source>in Proc. of Intl. Conf. on Logic Programming and Nonmonotonic Reasoning LPNMR'11</source>
          , vol.
          <volume>6645</volume>
          of LNCS, Springer-Verlag,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref32">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , “
          <article-title>Nested weight constraints in ASP,” Fundamenta Informaticae</article-title>
          , vol.
          <volume>124</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>449</fpage>
          -
          <lpage>464</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref33">
        <mixed-citation>
          [32]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Formisano</surname>
          </string-name>
          , “
          <article-title>Augmenting weight constraints with complex preferences,” in AAAI Spring Symposium: Logical Formalizations of Commonsense Reasoning</article-title>
          , AAAI Press,
          <year>2011</year>
          .
          <source>Technical report SS-11-06.</source>
        </mixed-citation>
      </ref>
      <ref id="ref34">
        <mixed-citation>
          [33]
          <string-name>
            <given-names>G.</given-names>
            <surname>Brewka</surname>
          </string-name>
          , I. Niemela¨, and
          <string-name>
            <given-names>M.</given-names>
            <surname>Truszczynski</surname>
          </string-name>
          , “Answer set optimization,”
          <source>in IJCAI-03, Proc. of the Eighteenth Intl. Joint Conference on Artificial Intelligence (G</source>
          . Gottlob and T. Walsh, eds.), pp.
          <fpage>867</fpage>
          -
          <lpage>872</lpage>
          , Morgan Kaufmann,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref35">
        <mixed-citation>
          [34]
          <string-name>
            <given-names>S.</given-names>
            <surname>Cerrito</surname>
          </string-name>
          , “
          <article-title>A linear axiomatization of negation as failure</article-title>
          ,
          <source>” Journal of Logic Programming</source>
          , vol.
          <volume>12</volume>
          , no.
          <issue>1</issue>
          &amp;
          <issue>2</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>24</lpage>
          ,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>