Riccardo Rosati
Dipartimento di Informatica e Sistemistica
Università di Roma ``La Sapienza''
Via Salaria 113, 00198 Roma, Italy
email: rosati@dis.uniroma1.it
Research in the formalization of commonsense reasoning has pointed out the need of formalizing agents able to reason introspectively about their own knowledge and ignorance [27,20]. Modal epistemic logics have thus been proposed, in which modalities are interpreted in terms of knowledge or belief. Generally speaking, the conclusions an introspective agent is able to draw depend on both what she knows and what she does not know. Hence, any such conclusion may be retracted when new facts are added to the agent's knowledge. For this reason, many nonmonotonic modal formalisms have been proposed in order to characterize the reasoning abilities of an introspective agent.
Among the nonmonotonic modal logics proposed in the literature, the logic
of minimal belief and negation as failure
[21,22] is
one of the most studied formalisms [3,2,1].
Roughly speaking, such a logic is built by adding to first-order logic two
distinct modalities, a ``minimal belief'' modality B and a ``negation as
failure'' modality
.
The logic thus obtained is characterized in terms
of a nice model-theoretic semantics.
has been used in order to
give a declarative semantics to very general classes of logic programs
[23,36,16], which generalize the stable model semantics of
negation as failure in logic programming
[9,10,11]. Also,
can be viewed
as an extension of the theory of epistemic queries to databases
[30], which deals with the problem of querying a first-order
database about its own knowledge. Due to its ability of expressing many
features of nonmonotonic logics [22,36],
is generally
considered as a unifying framework for several nonmonotonic formalisms,
including default logic, autoepistemic logic, circumscription, epistemic
queries, and logic programming.
Although several aspects of the logic
have been thoroughly
investigated [36,3,2], the existing studies concerning
the computational properties of
are limited to subclasses of
propositional
theories [16] or to a very restricted subset
of the first-order case [1].
In this paper we present a computational characterization of deduction in
the propositional fragment of
.
In particular, we show that logical
implication in the propositional fragment of
is a
-complete problem: hence, it is harder (unless the polynomial
hierarchy collapses) than reasoning in all the best known propositional
formalisms for nonmonotonic reasoning, like autoepistemic logic
[28,12], default logic [12], circumscription
[7], (disjunctive) logic programming [8], and
several McDermott and Doyle's logics [25]. As shown in the
following, this result also implies that minimal knowledge is
computationally harder than negation as failure.
Moreover, we study the subclass of flat
theories, i.e.
theories without nested occurrences of modalities, showing that in
this case logical implication is
-complete. This case is the most
interesting one from the logic programming viewpoint. Indeed, it implies
that, under the stable model semantics, increasing the syntax of program
rules, by allowing propositional formulas as goals in the rules, does not
affect the worst-case complexity of query answering for disjunctive logic
programs with negation as failure.
Furthermore, we provide algorithms for reasoning both in
and in its
flat fragment, which are optimal with respect to worst-case complexity.
Notably, such deductive methods can be considered as generalizations of
known methods for reasoning in nonmonotonic formalisms such as default
logic, autoepistemic logic, and logic programming under stable model
semantics.
We also show that the ``negation as failure'' modality in
exactly
corresponds to negative introspection in autoepistemic logic
[27]. This result implies that the logic
can be
considered as the ``composition'' of two epistemic modalities: the
``minimal knowledge'' operator due to [14]
and Moore's autoepistemic operator.
Besides its theoretical interest, we believe that such a computational and
epistemological analysis of
has interesting implications for the
development of knowledge representation systems with nonmonotonic
abilities, since it allows for a better understanding and comparison of the
different nonmonotonic formalisms captured by
.
The interest in
defining deductive methods for
also arises from the fact that such
a logic, originally developed as a framework for the comparison of
different logical approaches to nonmonotonic reasoning, has recently been
considered as an attractive knowledge representation formalism. In
particular, it has been shown [4] that the full power of
is necessary in order to logically formalize several features of
implemented frame-based knowledge representation systems.
In the following, we first briefly recall the logic
.
In Section 3
we address the relationship between
and Moore's autoepistemic
logic. Then, in Section 4 we study the problem of reasoning in
propositional
:
we first consider the case of general
theories, then we deal with flat
theories. In Section 5 we present
the computational characterization of reasoning in
.
We conclude in
Section 6. This paper is an extended and thoroughly revised version of
[31].
In this section we briefly recall the logic
[22], which is
a modal logic with two epistemic operators: a ``minimal belief'' modality
B and a ``negation as failure'' (also called ``negation by default'')
modality
.
We use
to denote a fixed propositional language built
in the usual way from: (i) an alphabet
of propositional symbols; (ii)
the symbols
,
;
(iii) the propositional connectives
.
We denote as
the modal extension of
with the modalities B
and
.
We say that a formula
has (modal) depth i
(with
)
if each subformula in
lies within the scope of at
most i modalities, and there exists a subformula in
which lies
within the scope of exactly i modalities.
We denote as
the set of subjective
formulas, i.e. the subset of formulas from
in which each occurrence of a
propositional symbol lies within the scope of at least one modality, and
with
the set of flat
formulas, that is the set of
formulas from
in which each propositional symbol lies within the
scope of exactly one modality. We call a modal formula
from
positive (resp. negative) if the modality
(resp. B) does not occur in
.
denotes the set of positive
formulas from
,
while
denotes the set of positive formulas from
.
We now recall the notion of
model. An interpretation is a
set of propositional symbols. An
structure is a triple
(I,Mb,Mn), where I is an interpretation (also called initial world)
and Mb,Mn are non-empty sets of interpretations (worlds).
Satisfiability of a formula in an
structure is defined inductively
as follows:
We write
to indicate that
is
satisfied by (I,Mb,Mn). We say that a theory
is
satisfied by (I,Mb,Mn) (and write
)
iff each
formula from
is satisfied by (I,Mb,Mn). If
,
then the evaluation of
is insensitive to the initial
interpretation I: thus, in this case we also write
.
Analogously, if
,
then the
evaluation of
is insensitive both to the initial interpretation
I and to the set Mn, and we also write
.
If
then the evaluation of
does not depend on the sets
Mb,Mn, and in this case we write
.
In order to relate
structures to standard interpretation structures
in modal logic (i.e. Kripke structures), we remark that, due to the above
notion of satisfiability, we can consider the sets Mb, Mn in an
interpretation structure as two distinct universal Kripke
structures, i.e. possible-world structures in which each world is
connected to all worlds of the structure. In fact, since the accessibility
relation in such a structure is universal, without loss of generality it is
possible to identify a universal Kripke structure with the set of
interpretations contained in it. We recall that the class of universal
Kripke structures characterizes the logic
[25, Theorem
7.52].
The nonmonotonic character of
is obtained by imposing the following
preference semantics over the interpretation structures satisfying a given
theory.
We say that a formula
is entailed (or logically
implied) by
in
(and write
)
iff
is satisfied by every
model of
.
In order to simplify notation, we denote the
model (I,M,M) with the pair (I,M), and, if
,
we denote
(I,M,M) with M, since in this case the evaluation of
is
insensitive to the initial world I, namely, if (I,M) is a model for
,
then, for each interpretation J, (J,M) is a model for
.
Given a set of interpretations M, Th(M) denotes the set of formulas
such that
and
.
Let
M1,M2 be sets of interpretations. We say that M1 is
equivalent to M2 iff
Th(M1)=Th(M2).
It turns out that, when restricting to theories composed of subjective
positive formulas, MBNF corresponds to the modal logic of minimal
knowledge due to [14], also known as ground
nonmonotonic modal logic
[19,5].
In fact,
is obtained from modal logic
by imposing the following preference order over the universal Kripke
structures satisfying a theory
:
M is a model for
iff
and, for each M', if
then
[38]. In fact, it is immediate to see that the
semantics of theories composed of subjective positive formulas
corresponds to the above semantics according to
.
Hence, the
following property holds.
The previous proposition implies that, when
,
a set of
interpretations M satisfying
is compared with all other sets of
interpretations satisfying
,
while, in the case
,
M is only compared with the sets M' such that
(M',M) satisfies
.
Hence, the main difference between MBNF and
lies in the fact
that in
all models are maximal with respect to set containment
(or minimal with respect to the objective knowledge which holds in the
model), while in MBNF this property is not generally true. E.g., the
theory
has two types of models,
for each possible choice of the initial world J: (J,M1), where M1
corresponds to the set of all interpretations (which represents the case in
which
is not assumed to hold); and (J,M2), where
.
Namely, if
is assumed to hold,
then
forces one to conclude
:
that is, the initial assumption is justified by the knowledge
derived on the basis of such an assumption [24].
We remark that, by Proposition 2.5, the interpretation of the
operator B exactly corresponds to the interpretation of the
modality B in
.
In this section we study the relationship between autoepistemic logic and
.
First, we briefly recall Moore's autoepistemic logic (
).
In order to keep notation to a minimum, we change the language of
,
using the modality B instead of L. Thus, in the following a formula
of
is a formula from
.
Given a theory
and a formula
,
we write
iff
belongs to all the stable
expansions of
.
Each stable expansion T is a stable set
according to the following definition [39].
We recall that a stable set T corresponds to a maximal universal Kripke
structure MT such that T is the set of formulas satisfied by MT
[25]. With the term
model for
we will
thus refer to a set of interpretations M whose set of theorems Th(M)
corresponds to a stable expansion for
in
.
Finally, notice that we have adopted the notion of consistent
autoepistemic logic [25], i.e. in (1) we do not
allow the inconsistent theory
composed of all modal formulas to be
a (possible) stable expansion. The results presented in this section can be
easily extended to this case (corresponding to Moore's original proposal):
however, this requires to slightly change the semantics of
,
allowing in Definition 2.1 the empty set of interpretations
to be a possible component of
structures.
In the following, we use the term embedding (or translation) to
indicate a transformation function
for modal theories. We
are interested in finding a faithful embedding
[13,35,17], in the following sense:
is a
faithful embedding of
into
if, for each theory
and for each model M, M is an
model for
iff M is an
model for
.
It is already known that
theories can be embedded into
theories. In particular, it has been proven [24,37] that
theories with no nested occurrences of B (called flat
theories) can be embedded into
;
now, since in
any theory
can be transformed into an equivalent flat theory (which has in general
size exponential in the size of the initial theory), it follows that any
theory can be embedded into
.
However, we now prove a much stronger result: negation as
failure in
exactly corresponds to negative introspection in
,
i.e.
's modality
and
's modality
are
semantically equivalent. Hence, such a correspondence is not only limited
to modal theories without nested modalities, and induces a polynomial-time
embedding of any
theory into
.
We first define the translation
of modal theories from
to
theories.
We now show that the translation
embeds
theories into
.
To this aim, we exploit the semantic characterization of
defined by [34]. Roughly speaking, according to such
a preference semantics over possible-world structures, an
model for
is a set of interpretations M satisfying
such that, for
any interpretation J not contained in M, the pair (J,M) does not
satisfy
.
Formally:
In the following, we say that an occurrence of a subformula
in a
formula
is strict if it does not lie within the scope
of a modal operator. E.g., let
.
The
occurrence of
in
is strict, while the occurrence of
is not strict.
Proof.
If part. Suppose (I,M) is an
model of
.
Then, for each
,
.
Since
is a set of formulas of the form
,
where
does
not contain any occurrence of the operator B, it follows that, for each
subformula of the form
occurring in
,
iff
.
Now let
,
let
denote the propositional formula
obtained from
by replacing each strict occurrence in
of a
formula of the form
with
if
and
with
otherwise, and let
.
Now suppose there exists an interpretation J
such that
and
.
Then, from the definition of
satisfiability in
structures it follows that
,
thus contradicting the hypothesis that
(I,M) is an MBNF model for
.
Hence,
.
Now consider a pair (J,M): again, from the
definition of satisfiability in
structures it follows immediately
that
iff
.
And since M contains
all the interpretations satisfying
,
it follows that, for each
interpretation
,
,
therefore by
Proposition 3.4 it follows that M is an
model for
.
Only-if part. Suppose M is an
model for
.
Then, by
Proposition 3.4, for each interpretation
,
and, for each interpretation
,
.
For each
,
let
denote
the propositional formula obtained from
by replacing each strict
occurrence of a formula of the form
with
if
and with
otherwise, and let
.
Then, suppose there exists an interpretation J such
that
and
.
Then, from the definition of
satisfiability in
structures it follows that
,
thus contradicting the hypothesis that M is an AEL model for
.
Hence,
.
Now suppose that, for some
interpretation I, (I,M) is not an MBNF model for
.
Then, there exists
such that
.
From the definition of
,
it follows that each interpretation
in M' satisfies
,
and, since
,
there exists
such that
.
Contradiction. Therefore,
(I,M) is an MBNF model for
.
We remark that the above theorem could alternatively be proved from the
fact that the K-free fragment of the logic
[21] is
equivalent to
,
which is stated (although without proof) by
[37, page 123], and from the correspondence between
and
[22].
The previous theorem implies that the interpretation of the modality
in
and of the modal operator in autoepistemic logic are the same.
This property extends previous results relating
with
[24,36,3], and has interesting consequences both in the
logic programming framework and in nonmonotonic reasoning. In particular,
since
generalizes the stable model semantics for logic programs
[9], the above result strengthens the idea that
is
the true logic of negation as failure (as interpreted according to the
stable model semantics). Moreover, positive theories have the same
interpretation both in
and in the logic of minimal knowledge
[14]: consequently, the logic
generalizes both
Halpern and Moses'
and Moore's
.
In this section we present algorithms for reasoning in propositional
:
in particular, we study the entailment problem in
.
From
now on, we assume to deal with finite
theories
,
therefore we refer to a single formula
(which corresponds to the
conjunction of all the formulas contained in the finite theory
).
We now present a finite characterization of the
models of a formula
.
As in several methods for reasoning in nonmonotonic modal
logics [12,25,6,28,5],
the technique we employ is based on the definition of a correspondence
between the preferred models of a theory and the partitions of the set of
modal subformulas of the theory. In fact, such partitions can be used in
order to provide a finite characterization of a universal Kripke structure:
specifically, a partition satisfying certain properties identifies a
particular universal Kripke structure M, by uniquely determining a
propositional theory
such that M is the set of all interpretations satisfying such a theory.
We extend such known techniques in order to deal with the preference
semantics of
.
In particular, we characterize the properties that a
partition of modal subformulas of a formula
must satisfy in
order to identify an
model for
.
In this way, we provide a
method that does not rely on a modal logic theorem prover, but reduces the
problem of reasoning in a bimodal logic to a number of reasoning problems
in propositional logic.
First, we introduce some preliminary definitions. We call a formula of the
form
or
,
with
,
a modal atom.
Observe that only the occurrences in
of modal subformulas which
are not within the scope of another modality are replaced; notice also
that, if
contains
,
then
is a
propositional formula. In this case, the pair (P,N) identifies a guess on
the modal subformulas from
,
i.e. P contains the modal
subformulas of
assumed to hold, while N contains the modal
subformulas of
assumed not to hold.
Roughly speaking, the propositional formula
represents the
``objective knowledge'' implied by the guess (P,N) on the formulas of the
form
belonging to P. From the semantic viewpoint, in each
structure (I,M,M') satisfying the guess on the modal atoms given by
(P,N), the propositional formula
constrains the interpretations of
M, since in each such structure the propositional formula
must be
satisfied by each interpretation
,
i.e.
.
Proof.
Follows immediately from Definitions 4.2
and 4.5, and from the definition of satisfiability in
structures.
We now show that, if (I,M) is an
model for
which induces
the partition (P,N) of
,
then the formula
completely
characterizes the set of interpretations M.
Proof.
Let
.
Since (M,M) induces the partition (P,N), by
Definition 4.5 it follows that each interpretation in
M must satisfy
,
hence
.
Now suppose
,
and consider the structure (I,M',M). We prove that each modal atom
belongs to P iff
.
The proof is
by induction on the depth of formulas in
.
First, consider a modal atom
such that
:
from
the definition of satisfiability of a formula in an
structure, it
follows immediately that
iff
.
Then, consider a modal atom
such that
:
if
,
then, by definition of
,
the propositional formula
is valid, therefore
.
If
,
then there exists an interpretation J in M such that
,
and since
,
it follows that
.
Hence, each modal atom
of depth 1 belongs to P iff
.
Suppose now that
iff
for each modal atom
in
of depth less or equal to i. Consider a modal atom
of
of depth i+1: by the induction hypothesis, and
by Lemma 4.6,
iff
.
Now, if
,
then, by definition of
,
the propositional formula
is valid, and since
,
it follows that
,
which
in turn implies
;
on the other hand, if
,
then there exists an interpretation J in M such that
,
hence, by the induction hypothesis and
Lemma 4.6,
.
Now, since
,
it follows that
,
hence
.
In the same way it is possible to show that a modal atom of the
form
of depth i+1 belongs to P iff
.
We have thus proved that each modal atom
belongs to P
iff
:
this in turn implies that
iff
,
and since by hypothesis
(I,M,M) satisfies
and (P,N) is the partition of
induced by (M,M), by Lemma 4.6 it follows that
.
Therefore,
,
which
contradicts the hypothesis that (I,M) is an
model for
.
Consequently, M'=M, which proves the thesis.
Informally, the above theorem states that each
model for
can be associated with a partition (P,N) of the modal atoms of
;
moreover, the propositional formula
exactly characterizes the set of
interpretations M of an
model (I,M), in the sense that M is
the set of all interpretations satisfying
.
This provides a
finite way to describe all
models for
.
We now define the notion of a partition of a set of modal atoms induced by a pair of propositional formulas.
In order to simplify notation, we denote as
the
partition
.
The following theorem provides a
constructive way to build the partition
.
Proof.
The proof is by induction on the structure of the formulas in
.
First, from the fact that
is the partition
induced by (M,M'), with
,
,
and from the definition of satisfiability in
structures, it follows that, if
,
then
if
and only if
is a valid propositional formula, and
if and only if
is not a valid
propositional formula. Therefore, (P,N) agrees with
on all modal atoms of modal depth 1. Suppose
now that (P,N) and
agree on all modal atoms of
modal depth less or equal to i. Consider a modal atom
of
of modal depth i+1. From Lemma 4.6 and from the
definition of satisfiability in
structures, it follows that
if and only if
is a valid propositional
formula, and since by Definition 4.2 the value
of the formula
only depends on the guess of
the modal atoms of modal depth less or equal to i in
,
by the induction hypothesis it follows that
,
hence
belongs to P if
and only if
.
Analogously, it can be proven that any
modal atom of depth i+1 of the form
belongs to P if and only
if
.
Therefore, (P,N) and
agree on all modal atoms of modal depth i+1.
The algorithms we present in the following for reasoning in
use the
above shown properties of partitions of modal subformulas of a formula
,
together with additional conditions on such partitions (that vary
according to the different classes of theories accepted as inputs), in
order to identify all the
models for
.
As for the entailment problem
,
we point
out that the occurrences of
in
are equivalent to occurrences
of
,
since in each
model for
both modalities in
are evaluated on the same set of interpretations. Therefore, as
in the original formulation of
[22], we restrict query
answering in
to positive formulas.
Let
,
,
and
.
We denote as
the propositional formula obtained from
by substituting
each strict occurrence of a modal atom
of
with
if
,
and with
otherwise. It can be immediately
verified that
.
Proof.
The proof follows immediately from the fact that, by
Theorem 4.9,
,
and from Lemma 4.6.
We now show that the entailment problem in
is related to the
membership problem for stable sets [13], which in turn is related
to the notion of (objective) kernel that has been used to characterize
stable expansions of autoepistemic theories [25].
Proof.
Let
:
from the above definition and
Definition 3.2, it follows immediately that
.
Therefore, if
then
iff
.
We now define a deductive method for reasoning in general propositional
theories. Specifically, we present the algorithm MBNF-Not-Entails,
reported in Figure 1, for computing entailment in
.
The algorithm exploits the finite characterization of
models given
by Theorem 4.7 and an analogous finite characterization,
in terms of partitions of
,
of all the models relevant for
establishing whether a partition (P,N) of
identifies an
model.
The algorithm checks whether there exists a partition (P,N) of
satisfying the three conditions (a), (b), (c). Intuitively,
the partition cannot be self-contradictory (condition (a)): in particular,
the condition
establishes that the objective knowledge
implied by the partition (P,N) (that is, the formula
)
identifies a
set of interpretations
such that (M,M) induces the
same partition (P,N) on
.
Moreover, the partition must be
consistent with
and
(condition (b)): such a condition
implies that there exists an interpretation I such that both
is
satisfied in (I,M,M) and
is not satisfied in the structure
(I,M,M). Finally, condition (c) corresponds to check whether such a
structure (I,M,M) identifies an
model for
according to
Definition 2.1, i.e. whether there is no pair (J,M')
such that
and (J,M',M) satisfies
.
Again, the
search of such a structure is performed by examining whether there exists a
partition of
,
different from (P,N), which does not satisfy
any of the conditions (c1), (c2), (c3).
We illustrate the algorithm through the following simple example.
Suppose now that
(P,N)=(P2,N2), where
To prove correctness of the algorithm
-Not-Entails
we need the following preliminary lemma.
Proof.
The proof is by induction on the depth of the modal atoms of
.
Let
such that
:
then,
iff there exists an interpretation
such that
,
therefore
iff
.
Now let
such that
:
by Definition 4.3,
iff the propositional formula
is
valid, and since
,
it follows that
iff
.
Now suppose that, for each modal atom
of depth i,
iff
,
and let (P',N') denote the partition of
the modal atoms in
of depth less or equal to i induced by
(M',M).
First, consider a modal atom
of depth i+1. Then, by
Lemma 4.6,
iff
and, by the inductive hypothesis and
Lemma 4.6,
iff
.
Then, since
has depth i,
is a propositional formula, hence
iff there exists an interpretation
such that
,
which immediately implies that
iff
.
Now consider a modal atom
of depth i+1. Then, by
Lemma 4.6,
iff
and, by the inductive hypothesis and
Lemma 4.6,
iff
.
By Definition 4.3,
iff
the propositional formula
is valid, and since
,
it follows that
iff
,
which proves the thesis.
We are now ready to prove correctness of the algorithm MBNF-Not-Entails.
Proof.
If part. Suppose
.
Then, there exists a
pair (I,M) such that (I,M) is an
model for
and
.
Let (P,N) be the partition of
induced
by (M,M). By Theorem 4.7,
.
Therefore, by Definition 4.8,
.
Then, since
,
by Theorem 4.10 it follows that
,
and since
,
by
Lemma 4.6
,
therefore
.
Now suppose there exists a
partition (P',N') of
such that