<!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>P-stable models of Strong kernel programs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jose Luis Carballido</string-name>
          <email>jlcarballido7@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Claudia Zepeda</string-name>
          <email>czepedac@gmail.com</email>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Universidad Polit</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Currently non-monotonic reasoning (NMR) is a promising approach to model features of common sense reasoning. In order to formalize NMR the research community has applied monotonic logics. The present paper furthers the study of one of the semantics useful in this formalization called p-stable. We introduce three di®erent formats for normal programs: Negative normal programs, Restricted negative normal programs and Strong kernel programs. This forms helps to simplify the search of p-stable models of the original program. One of the main results of this paper indicates that the p-stable semantics for strong-kernel programs agrees with the stable semantics for kernel programs as de¯ned in [2]. In this way all the applications based on stable semantics of kernel programs can also be based on p-stable semantics of strong kernel programs.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Currently non-monotonic reasoning (NMR) is a promising approach to model
features of common sense reasoning. In order to formalize NMR the research
community has applied monotonic logics. The present paper furthers the study
of one of the semantics useful in this formalization called p-stable.</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] was suggested the use of Autoepistemic Logic (AL) as an alternative
formalization of NMR to avoid the problems encountered with standard modal
logics. Later Gelfond and Lifschitz de¯ned the stable model semantics [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] based
on an interpretation of :a. This interpretation characterizes perfect models of
strati¯ed logic programs in terms of the extensions of the corresponding
autoepistemic theory. More recently, in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] is described how the stable semantics of
disjunctive programs can be characterized in terms of AL via Gelfond's
translation.
      </p>
      <p>
        Additionally Pearce in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] presented a characterization of the stable model
semantics in terms of a collection of logics. He proved that a formula is \entailed
by a disjunctive program in the stable model semantics if and only if it belongs to
every intuitionistically complete and consistent extension of the program formed
by adding only negated atoms". He also showed that in place of intuitionistic
logic, any proper intermediate logic can be used. The strongest intermediate
logic is Goedel's 3-valued logic G3. The construction used by Pearce is called a
weak completion. Based on the work of Pearce in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], the authors of [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] express
the logic G3 in terms of Lukaciewicz L3-logic and gave a new characterization
of stable models based on Lukaciewicz L3-logic. In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] is also introduced a very
similar 3-valued logic based in the Lukaciewicz L3-logic: the G03 logic. Later, in
[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] a new semantics, based on weak completions, is de¯ned with the G03 logic.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] the authors generalize to disjunctive programs what was done in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
They introduce the p-stable semantics for normal programs by using a
transformation similar to the one used by Gelfond and Lifschits [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. This new semantics
for disjunctive programs agrees with semantics de¯ned in terms of weak
completions for the paraconsistent logics studied in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. The authors also present
some results that give conditions under which the concepts of stable and p-stable
models agree. They show that the p-stable model semantics for normal programs
is powerful enough to express any problem that can be expressed with the stable
model semantics for disjunctive programs. It is important to mention that
pstable semantics, which can be de¯ned in terms of paraconsistent logics, shares
several properties with the stable semantics, but is closer to classical logic. For
example, the following program P does not have stable models.
a Ã :b:
a Ã b:
b Ã a:
      </p>
      <p>However the set fa; bg could be considered the intended model for P in
classical logic. Moreover, it is the p-stable model of P .</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] is described a schema for the implementation of p-stable semantic
using two well known open source tools: Lparse and Minisat. In [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] is also
presented a prototype written in Java of a tool based on that schema.
      </p>
      <p>
        The present paper furthers the study of p-stable semantics. We introduce
three di®erent formats for normal programs: Negative normal programs,
Restricted negative normal programs and Strong kernel programs. This forms helps
to simplify the search of p-stable models of the original program. Besides we
show that the p-stable semantics for strong kernel programs agrees with the
stable semantics for kernel programs as de¯ned in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. In this way all the
applications based on stable semantics of kernel programs can also be based on
p-stable semantics of strong kernel programs.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is introduced the de¯nition of kernel programs and it is shown that any
propositional logic program P admits an equivalent|w.r.t. stable semantics|
program in a format called kernel. Currently there are applications based on this
kind of programs (see [
        <xref ref-type="bibr" rid="ref2 ref3 ref5">2,5,3</xref>
        ]). Moreover, kernel programs are useful since they
allow us to express well known problems as the 3-coloring problem (see [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]).
      </p>
      <p>This paper is structured as follows. In section 2 we introduce the general
syntax of the logic programs used in this paper. We also provide the de¯nition
of stable semantics, p-stable semantics, and kernel programs. In section 3 we give
the de¯nition of the three di®erent formats for normal programs: negative normal
programs, restricted negative normal programs, and strong kernel programs.
We also show the di®erent results about the stable semantics and the p-stable
semantics of programs in these formats. Finally in section 4 we present some
conclusions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>In this section we summarize some basic concepts and de¯nitions used to
understand this paper.
2.1</p>
      <sec id="sec-2-1">
        <title>Logic programs</title>
        <p>A signature L is a ¯nite set of elements that we call atoms, or propositional
symbols. The language of a propositional logic has an alphabet consisting of
proposition symbols : p0; p1; : : : ; connectives: ^, _, Ã, :; and auxiliary symbols : (,
). Where ^, _, Ã are 2-place connectives and : is a 1-place connective. Formulas
are built up as usual in logic. A literal is either an atom a, or the negation of
an atom :a. The formula F ´ G is an abbreviation for (F Ã G) ^ (G Ã F ). A
clause is a formula of the form H Ã B (also written as B ! H), where H and
B, arbitrary formulas in principle, are known as the head and body of the clause
respectively. The body of a clause could be empty, in which case the clause is
known as a fact and can be denoted just by: H Ã. In the case when the head
of a clause is empty, the clause is called a constraint and is denoted by: Ã B.</p>
        <p>A disjunctive clause is a clause of the form H Ã B+ [ :B¡ where H is a
disjunction of atoms h1_h2_: : :_hs, B+ is a conjunction of atoms b1^b2^: : :^bn,
and :B¡ is a conjunction of negated atoms :bn+1 ^ :bn+2 ^ : : : ^ :bm. H, B+,
and B¡ could be empty sets of atoms. When the set H contains exactly one
element the clause is called normal. A de¯nite program is a normal program
whose rules do not have negations in their bodies.</p>
        <p>Finally, a program is a ¯nite set of clauses. If all the clauses in a program are
of a certain type, we say the program is also of that type. For instance a set of
disjunctive clauses is an disjunctive program, a set of normal clauses is a normal
program and so on.</p>
        <p>Finally we give two de¯nitions useful to understand the de¯nitions of stable
and p-stable semantics for normal programs.</p>
        <p>Let P be a normal program and M be a set of atoms. We de¯ne: RED(P; M ) =
fH Ã B+; :(B¡ \ M ) j H Ã B+; :B¡ 2 P g.</p>
        <p>For any program P , the positive part of P , denoted by P OS(P ) is the
program consisting exclusively of those rules in P that do not have negated literals.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Stable and P-stable semantics</title>
        <p>
          From now on we assume that the reader is familiar with the notion of classical
minimal model [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ].
        </p>
        <p>
          Now we give the de¯nition of stable semantics for normal programs.
De¯nition 1. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] Let P be a normal program and let M µ LP . Let us put
P M = P OS(RED(P; M )) then we say that M is a stable model of P if M is a
minimal classical model) of P M .
        </p>
        <p>Here we de¯ne the p-stable semantics for normal programs.</p>
        <p>
          De¯nition 2. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] Let P be a normal program and M be a set of atoms. We say
that M is a p-stable model of P if
1. M is a classical model of P (i.e. a model in classical logic), and
2. the conjunction of the atoms in M is a logical consequence in classical logic
of RED(P; M ) (denoted as RED(P; M ) j= M ).
        </p>
        <sec id="sec-2-2-1">
          <title>Example 1. Let P be the normal program:</title>
          <p>b Ã :a:
a Ã :b:
p Ã :a:
p Ã :p:</p>
          <p>We can verify that M1 = fa; pg and M2 = fb; pg model the rules of P . From
the de¯nition of the RED transformation we ¯nd</p>
          <p>RED(P; M1) = fb Ã :a; a Ã; p Ã :a; p Ã :pg</p>
          <p>RED(P; M2) = fb Ã; a Ã :b; p Ã; p Ã :pg
And it is clear that RED(P; M1) j= M1 and RED(P; M2) j= M2. Hence M1 and
M2 are p-stable models for P .
2.3</p>
        </sec>
      </sec>
      <sec id="sec-2-3">
        <title>Kernel programs</title>
        <p>
          In [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] the authors show that any propositional logic program P admits an
equivalent|w.r.t. stable semantics|program in a format called kernel. They
indicate that a program in kernel format is useful to studying the existence and
number of stable models. Here we present the de¯nition of kernel programs as
de¯ned in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. We also mention some applications of this kind of programs.
        </p>
        <p>A kernel program is composed of the atoms which are unde¯ned in the
Wellfounded semantics, which are those that directly a®ect the existence of answer
sets. The body of rules is composed of negative literals only.</p>
        <p>
          De¯nition 3. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] A logic program P is a kernel program if the following
conditions hold:
1. P is WFS-irreducible, i.e., the well-founded model of P is empty, W F S(P ) =
h;; ;i (see [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]);
2. every rule has its body composed of negative literals only;
3. every atom in P occurs in the body of some rule.
        </p>
        <p>
          It is important to note that kernel programs are useful and interesting since
they allow us to express well known problems as the 3-coloring problem. In [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]
you can see an stable encoding of the 3-coloring problem.
        </p>
        <p>
          In [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] is also showed how to check consistency of kernel programs in terms of
colorings of the Extended Dependency Graph (EDG) program representation.
The EDG program representation has a regular and simple structure. Moreover
this representation gives the ¯rst purely-syntactic and complete characterization
of consistent logic programs w.r.t. stable semantics.
        </p>
        <p>
          The authors of [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] also consider programs in kernel form. In [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] is presented
a distributed version of the adjSolver algorithm for computing stable models of
logic programs in kernel form. The intrinsic parallelism of the branch-and-bound
structure of adjSolver is exploited to control, with a centralized architecture,
the delegation of promising search subspaces to distributed handling agents.
AdjSolver was designed to solve the problem of computing stable models through
the search for admissible 2-colorings of the EDG representing the logic program.
The adjSolver search strategy is di®erent from the semantics-based
coloringpropagation strategy adopted in literature for stable models computation by
graph coloring.
        </p>
        <p>
          The authors of [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] de¯ne various notions of coherence, that establish what
relation there should be between the stable models of the original programs, and
the stable models of the programs resulting from update/modi¯cation. They
introduce signi¯cant su±cient conditions for coherence on the class of kernel
programs. They also indicate that logic programs in kernel form allow one to
distinguish the elements the program is composed of, namely cycles and
handles, and thus to reason more easily about what happens when the program is
modi¯ed.
3
        </p>
        <p>
          Negative normal programs and Restricted negative
normal programs
In this section we give the de¯nition of three di®erent formats for normal
programs: Negative normal programs, Restricted negative normal programs and
Strong kernel programs. One of the main results indicates that the stable
semantics and the p-stable semantics of a restricted negative normal program
coincide. We also show how the p-stable semantics of a negative normal program
or a kernel program (as de¯ned in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]) P corresponds to the p-stable semantics of
a particular program associated to P . This new program is a restricted negative
normal program and it is the result of applying a transformation to the program
P .
        </p>
        <p>We start by introducing the de¯nitions of negative normal programs and
restricted negative normal programs. This de¯nitions will be useful to de¯ne
negative normal programs and restricted negative normal programs with
constraints.
conditions
De¯nition 4. Let P be a normal program. We say that P is a negative normal
(NN) program if it satis¯es the ¯rst of the two conditions listed below, and we
say that P is a restricted negative normal (RNN) program if it satis¯es both
1. every rule has its body composed of negative literals only;
2. the head of any rule does not appear in the body of the same rule.</p>
        <p>Let us observe that a RNN program is a NN program, and that NN, RNN
and kernel programs have the common characteristic of having the body of every
rule composed of negative literals only.</p>
        <sec id="sec-2-3-1">
          <title>Let P be a RNN program, for any M</title>
          <p>:b1; ^ : : : ^ :bm 2 P; fb1; : : : ; bmg \ M = ;g.</p>
          <p>The following lemma will be useful to show that the stable semantics and the
p-stable semantics of a RNN program coincide. Given a RNN program P , this
lemma gives a characterization for a set M µ LP , to be a p-stable model of P .
µ LP , we de¯ne SM = fa j a Ã
Lemma 1. Let P be a RNN program. If M is p-stable model of P then M = SM .
Proof. RED(P; M ) = f
a Ã :(B¡ \ M ) j H
Ã
:B¡ 2 P g: By part 1) of
the de¯nition of p-stable model (De¯nition 2), it follows that SM ½ M . Let us
assume that M n SM 6= ; and take m 2 M n SM . Let us de¯ne an interpretation:
I : LP ! f0; 1g such that I(a) = 1 for each a 2 LP n fmg and I(m) = 0.</p>
          <p>Now, using the fact that the program P has the property that the head of
each rule does not appear in its body, it follows that I is a classical model for
RED(P; M ) but it is not a model for M (Since I(m) = 0) this contradicts 2) in
the de¯nition of a p-stable model (De¯nition 2) and the lemma is proved.</p>
          <p>The following theorem indicates that the stable semantics and the p-stable
semantics of a RNN program coincide.</p>
          <p>Theorem 1. Let P be a RNN program, then the stable semantics of P coincides
with the p-stable semantics of P .</p>
          <p>Proof. If M is a p-stable model of P then M = SM according to the lemma 1, and
from the de¯nition of P M (De¯nition of a stable model), P M = f
then we conclude that M is a minimal model of P M and then a stable model of
a Ã j a 2 SM g
P .
that P M
minimal model for P M = f
Let us now assume that M is a stable model of P . It follows that M is a
½ RED(P; M ), it follows that RED(P; M ) j= M .</p>
          <p>We still need to show that M is a classical model of P . Let us consider a
Therefore M models all of the rules in P as we wanted to show.
rule a Ã :b1 ^ :b2 ^ : : : ^ :bs 2 P , such that a 62 M . Then there is at least an
i for which bi 2 M (otherwise a 2 SM = M ), then the rule is modeled by M .
a Ã j a 2 SM g. Therefore M = SM . From the fact
tu
tu</p>
          <p>Let us observe that, from the de¯nition, in a NN program the head of any
rule could appear in the body of the same rule.</p>
          <p>We shall show how the p-stable semantics of a NN program P corresponds to
the p-stable semantics of a particular program associated to P . This new program
is a RNN program and it is the result of applying the following transformation to
P : For any normal program P , the transformed program, denoted by T RN (P )
is the program that results from P after deleting from the body of each rule the
atom that appears as the head of the same rule. The rules that do not present
this condition remain the same.</p>
          <p>De¯nition 5. For a rule r of the form a Ã :a ^ :b1 ^ : : : ^ :bn 2 P , we de¯ne
the transformation T RN as follows: T RN (r) = a Ã :b1 ^ : : : ^ :bn. For a rule
r for which head(r) 62 body(r), we de¯ne T RN (r) = r. For a normal program P
we de¯ne the transformation T RN as follows: T RN (P ) = fT RN (r) j r 2 P g.</p>
          <p>Here we show how the p-stable semantics of a NN program P corresponds
to the p-stable semantics of the RNN program T RN (P ).</p>
          <p>Theorem 2. Let P be a NN program, then the p-stable semantics of P coincides
with the p-stable semantics of the RNN program T RN (P ).
for one i, bi 2
Proof. Let us assume that M is a p-stable model of P and let a Ã :a; :b1; ::::bn
be one of the rules in P with the property that the head appears in the body.
Assume that a 2= M . Since M is a classical model for the rule, then at least</p>
          <p>M , making the rule true according to M ; but then it is clear
that the corresponding rule in T RN (P ) is also modeled by M . It follows that a
classical model for P is also a classical model for T RN (P ). Next, by hypothesis
we have that RED(P; M ) j= M . Now, it is easy to see that for each rule r 2
P , the rule RED(r; M ) is a logical consequence (in classical logic) of the rule
RED(T RN (r); M ), Therefore we conclude that RED(T RN (P ); M ) j= M .</p>
          <p>Now, if M is a p-stable model of T RN (P ), according to lemma 1, M consists
of those atoms for which there exists a rule r : a Ã :b1 ^ : : : ^ :bn such that</p>
          <p>Let us show ¯rst that M is a classical model of P . It is enough to examine
bi 62 M for all i.
the rules in P n T RN (P ):</p>
          <p>a Ã :a ^ :b1 ^ : : : ^ :bn
follows now.
the rule is modeled by M . So M</p>
          <p>models P .</p>
          <p>In the case for which a 2 M , there is nothing to prove. In the case for which
a 62 M , according to the lemma 1 there must exist bi 2 M for some i, and then</p>
          <p>Now, it only remains to prove that RED(P; M ) j= M . But again, M consists
of those atoms for which there is a rule, a Ã :b1 ^ : : : ^ :bn and bi 62 M for all i;
then RED(P; M ) contains the rules a Ã, for all a 2 M . The desired conclusion
tu</p>
          <p>
            We also introduce another format for normal program called Strong Kernel
program. This last format considers the three conditions of a kernel program (as
de¯ned in [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ]) and also the condition of RNN programs about that the head of
any rule does not appear in the body of the same rule.
          </p>
          <p>
            De¯nition 6. Let P be a normal program. We say that P is a strong kernel
(SK) program if the following conditions hold:
1. P is WFS-irreducible, i.e., the well-founded model of P is empty, W F S(P ) =
h;; ;i (see [
            <xref ref-type="bibr" rid="ref13">13</xref>
            ]);
2. every rule has its body composed of negative literals only;
3. every atom in P occurs in the body of some rule.
4. the head of any rule does not appear in the body of the same rule.
          </p>
          <p>Let us observe that SK programs are also RNN programs. Then a corollary
of theorem 1 indicates that the stable semantics of a SK program coincides with
the p-stable semantics of the same program.</p>
          <p>Corollary 1. Let P be a SK program, then the stable semantics of P coincides
with the p-stable semantics of P .</p>
          <p>
            Let us observe ¯rst, that a kernel program (as de¯ned in [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ]) is a NN program,
and also that if we apply the transformation T RN to a kernel program, then we
obtain a SK program. So, a corollary of theorem 2 indicates that the p-stable
semantics of a kernel program P corresponds to the p-stable semantics of the
SK program T RN (P ).
          </p>
          <p>Corollary 2. Let P be a kernel program, then the p-stable semantics of P
coincides with the p-stable semantics of the SK program T RN (P ).</p>
          <p>
            As a consequence of corollary 2, all the applications based on stable
semantics of kernel programs can also be based on p-stable semantics of strong kernel
programs: to check consistency of kernel programs in terms of colorings of the
Extended Dependency Graph program representation, as described in [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ]; a
distributed version of the adjSolver algorithm for computing p-stable models of
logic programs in strong-kernel form, as described in [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ]; and to distinguish the
elements that a program is composed of, namely cycles and handles, and thus
to reason more easily about what happens when the program is modi¯ed, as
described in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ]. We mentioned this applications at the end of section 2 of this
paper.
          </p>
          <p>
            We remark that kernel and, in particular strong kernel programs are
useful and interesting since they allow us to express well known problems as the
3-coloring problem. Next, we illustrate the p-stable kernel encoding of the
3coloring problem over the graph hV; Ei = hf1; 2g; f(1; 2)gi. Let us note that in
this program, when expressed in the p-table semantics, is necessary to implement
three rules for each constraint necessary in the stable semantics. In the encoding
below, those three rules are written below the corresponding constraint in the
stable semantics, which has been commented out. The formal and detailed
description of how to write such constraints in the p-stable semantics, is presented
in [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ].
%Assignment of colors to vertices
col(1; blue) Ã :col(1; red); :col(1; green):
col(2; blue) Ã :col(2; red); :col(2; green):
col(1; red) Ã :col(1; blue); :col(1; green):
col(2; red) Ã :col(2; blue); :col(2; green):
col(1; green) Ã :col(1; blue); :col(1; red):
col(2; green) Ã :col(2; blue); :col(2; red):
% arc(1,2) cannot join 2 nodes of the same color
% Ã :col(1,red); :col(2,red); :col(1, blue); :col(2, blue):
x Ã :y; :col(1; red); :col(2; red); :col(1; blue); :col(2; blue):
y Ã :z; :col(1; red); :col(2; red); :col(1; blue); :col(2; blue):
z Ã :x; :col(1; red); :col(2; red); :col(1; blue); :col(2; blue):
% Ã :col(1,red); :col(2,red); :col(1,greeen); :col(2,green):
x Ã :y; :col(1; red); :col(2; red); :col(1; green); :col(2; green):
y Ã :z; :col(1; red); :col(2; red); :col(1; green); :col(2; green):
z Ã :x; :col(1; red); :col(2; red); :col(1; green); :col(2; green):
% Ã :col(1,green); :col(2,green); :col(1,blue); :col(2,blue):
x Ã :y; :col(1; green); :col(2; green); :col(1; blue); :col(2; blue):
y Ã :z; :col(1; green); :col(2; green); :col(1; blue); :col(2; blue):
z Ã :x; :col(1; green); :col(2; green); :col(1; blue); :col(2; blue):
          </p>
          <p>There are six p-stable models: fcol(1; red); col(2; green)g; fcol(2; green);
col(1; blue)g; fcol(1; green); col(2; red)g; fcol(1; blue); col(2; red)g; fcol(1; green);
col(2; blue)g; and fcol(1; red); col(2; blue)g. Each of them indicates a coloring for
the given graph.
4</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>This paper furthers the study of p-stable semantics. We introduced three
different formats for normal programs: NN programs, RNN programs and SK
programs. We showed that the stable semantics and the p-stable semantics of a
RNN program coincide; and that the p-stable semantics of a NN program
corresponds to the p-stable semantics of a particular RNN program associated to
the original program.</p>
      <p>
        Since the SK format considers the three conditions of a kernel program [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
and also the condition of RNN programs about that the head of any rule does not
appear in the body of the same rule then, is showed that the stable semantics
of a SK program coincides with the p-stable semantics of the same program
and that the p-stable semantics of a kernel program corresponds to the p-stable
semantics of a particular SK program.
      </p>
      <p>We also indicated that all the applications based on stable semantics of kernel
programs can also be based on p-stable semantics of strong kernel programs.</p>
      <p>We remarked that kernel and, in particular strong kernel programs are useful
and interesting since they allow us to express well known problems as the
3coloring problem.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>C.</given-names>
            <surname>Baral</surname>
          </string-name>
          .
          <article-title>Knowledge Representation, reasoning and declarative problem solving with Answer Sets</article-title>
          . Cambridge University Press, Cambridge,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>S.</given-names>
            <surname>Constantini</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Provetti</surname>
          </string-name>
          .
          <article-title>Normal forms for answer set programming</article-title>
          .
          <source>Journal of Theory and Practice of Logic Programming</source>
          ,
          <volume>5</volume>
          :
          <fpage>747</fpage>
          {
          <fpage>760</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Intrigila</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Provetti</surname>
          </string-name>
          .
          <article-title>Coherence of updates in answer set programming</article-title>
          .
          <source>In Proc. of the IJCAI-2003 Workshop on Nonmonotonic Reasoning, Action and Change, NRAC03</source>
          , pages
          <fpage>66</fpage>
          {
          <fpage>72</fpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <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>
          . In R. Kowalski and K. Bowen, editors,
          <source>5th Conference on Logic Programming</source>
          , pages
          <volume>1070</volume>
          {
          <fpage>1080</fpage>
          . MIT Press,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>G.</given-names>
            <surname>Grossi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Marchi</surname>
          </string-name>
          , E. Pontelli,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Provetti</surname>
          </string-name>
          .
          <article-title>Experiments with answer set computation over parallel and distributed architectures</article-title>
          .
          <source>In Proceedings of 4th International Workshop on Answer Set Programming (ASP2007)</source>
          .,
          <year>September 2007</year>
          .
          <article-title>To appear an extended version in a special issue of the Journal of Logic and Computation</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>J. W.</given-names>
            <surname>Lloyd</surname>
          </string-name>
          .
          <source>Foundations of Logic Programming</source>
          . Springer, Berlin, second edition,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>R. C.</given-names>
            <surname>Moore</surname>
          </string-name>
          .
          <article-title>Autoepistemic logic</article-title>
          . In P. Smets,
          <string-name>
            <given-names>E. H.</given-names>
            <surname>Mamdani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dubois</surname>
          </string-name>
          , and H. Prade, editors,
          <source>Non-Standard Logics for Automated Reasoning</source>
          . Academic Press,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>M.</given-names>
            <surname>Osorio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Arrazola</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J. L.</given-names>
            <surname>Carballido</surname>
          </string-name>
          .
          <article-title>Logical weak completions of paraconsistent logics</article-title>
          . To apper in
          <source>the Journal of Logic and Computation</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>M.</given-names>
            <surname>Osorio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Borja</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Arrazola</surname>
          </string-name>
          .
          <article-title>Three valued logic of LÃukasiewicz for modeling semantics of logic programs</article-title>
          .
          <source>In Proceedings of IBERAMIA, number 3315 in Lecture Notes in Computer Science</source>
          , pages
          <volume>343</volume>
          {
          <fpage>352</fpage>
          . Springer,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>M. Osorio</surname>
            ,
            <given-names>J. A.</given-names>
          </string-name>
          <string-name>
            <surname>Navarro</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Arrazola</surname>
            , and
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Borja</surname>
          </string-name>
          .
          <article-title>Logics with common weak completions</article-title>
          .
          <source>Journal of Logic and Computation</source>
          ,
          <volume>16</volume>
          (
          <issue>6</issue>
          ):
          <volume>867</volume>
          {
          <fpage>890</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>S.</given-names>
            <surname>Pascucci</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Lopez. Implementing</surname>
          </string-name>
          p
          <article-title>-stable with simpli¯cation capabilities</article-title>
          . Submmited to Inteligencia Arti¯cial, Revista Iberoamericana de
          <string-name>
            <given-names>I.A.</given-names>
            ,
            <surname>Spain</surname>
          </string-name>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>D.</given-names>
            <surname>Pearce</surname>
          </string-name>
          .
          <article-title>Stable Inference as Intuitionistic Validity</article-title>
          .
          <source>Logic Programming</source>
          ,
          <volume>38</volume>
          :
          <fpage>79</fpage>
          {
          <fpage>91</fpage>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>A. van Gelder</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Ross</surname>
            , and
            <given-names>J. S.</given-names>
          </string-name>
          <string-name>
            <surname>Schlipf</surname>
          </string-name>
          .
          <article-title>The well-founded semantics for general logic programs</article-title>
          .
          <source>Journal of the ACM</source>
          ,
          <volume>38</volume>
          (
          <issue>3</issue>
          ):
          <volume>620</volume>
          {
          <fpage>650</fpage>
          ,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>