1 Introduction
Hybrid MKNF knowledge bases [Motik and Rosati (2010)], based on the logic of minimal knowledge and negation as failure (MKNF) [Lifschitz (1991)], is one of the most influential yet mature formalisms for combining open world ontology languages, such as description logics (DLs) [Baader et al. (2003)] and the OWLbased ones [Hitzler et al. (2009)]
, with closed world rulebased languages, like logic programs under the stable model semantics
[Baral (2003)]. The semantics of hybrid MKNF knowledge bases is captured by MKNF models. It is shown that the data complexity of reasoning within hybrid MKNF knowledge bases is in many cases not higher than reasoning in the corresponding fragment of logic programming [Motik and Rosati (2010)]. For instance, if the underlying DL fragment is of polynomial data complexity, then the data complexity of instance checking after combining with nondisjunctive (normal) rules is coNPcomplete. However, despite many efficient solvers for logic programs [Heule and Schaub (2015)], there is few work on computing MKNF models of hybrid MKNF knowledge bases—the only known reasoning methods are based on the bruteforce, guessandverify approach [Motik and Rosati (2010)]. In this approach, the set of Katoms is partitioned into two subsets, the set of true Katoms and the set of false Katoms, in each possible way, and whether it corresponds to an MKNF model is verified by an operator similar to the immediate consequence operator in logic programming.Most modern SAT/ASP solvers are built under the DPLL architecture [Nieuwenhuis et al. (2006)]
, where propagating a partial assignment is a key process. Recall that a DPLLbased solver is a search engine whose basic operation is to make decisions, propagate a partial assignment at each decision point, and backtrack when a conflict is encountered. Typically, a competitive solver also implements powerful heuristics for variable selection, and conflict analysis and clause learning
[Zhang and Malik (2002)]. Propagating a partial assignment can result in substantial pruning of the search space—all the propagated truth values are committed in expanding the given partial assignment. In this context, the larger the computed set of truth values, the stronger is the propagator. Apparently, the cost of computing such a set should also be taken into consideration. As an example, BCP (Boolean Constraint Propagation, also called Unit Propagation) is considered the most important part of a SAT solver [Malik and Zhang (2009)], and a SAT solver typically spends more than of its time running BCP. In ASP, the wellknown Expand function in smodels [Simons et al. (2002)] plays a central role in constraint propagation for weight constraint logic programs, but the feature of lookahead is often abandoned due to its high cost. Also, viewing inferences in ASP as unit propagation on nogoods, along with other techniques, has made clasp among the most competitive solvers for ASP as well as for SAT [Gebser et al. (2012)]. More recently, for answer set programs with external sources [Eiter et al. (2016)], the approach of guessing truth values of external sources is replaced with evaluations under partial assignments, which produces substantial gains in search efficiency.Despite all of these advances, for hybrid MKNF knowledge bases, the fundamental issue of what constitutes constraint propagation for a DPLLbased search engine has not been addressed. The bruteforce, guessandverify proof method is still the stateoftheart.
To formulate a wellfounded semantics for normal hybrid MKNF knowledge bases, knorr2011local knorr2011local proposed a wellfounded operator to compute consequences that are satisfied by every MKNF model of a hybrid MKNF knowledge base by an alternating fixpoint construction. The operator computes the least fixpoint iteratively from the least element in a bilattice and enjoys a polynomial data complexity when the underlying DL is polynomial.
It is important to distinguish constraint propagation from computing the wellfounded semantics  while the latter computes one least fixpoint, the former can be viewed as computations by a family of operators, each of which is applied to a different partial partition (partial partitions are analogue to partial interpretations in SAT/ASP). We say that such an operator is instantiated, or induced, from the related partial partition, and call it an instance operator. If such an instance operator is monotonic, we then can analyze its properties by applying the KnasterTarski fixpoint theory [Tarski (1955)] and view the computation of its least fixpoint as the process of constraint propagation that extends the given partial partition. Thus, in this paper the term wellfounded operator refers to the corresponding family of instance operators. We show that if we apply this idea to Knorr et al.’s operator, an instance operator may not be converging. Thus, Knorr et al.’s operator does not provide a satisfactory solution for constraint propagation.
In this paper, we address the problem of constraint propagation for normal hybrid MKNF knowledge bases. The main contributions are the following:

We extend the notion of unfounded sets to normal hybrid MKNF knowledge bases and show that desirable properties for logic programs [Leone et al. (1997)] can be generalized to normal hybrid MKNF knowledge bases; in particular, MKNF models are precisely unfoundedfree models. We provide a procedure to compute the greatest unfounded set of a normal hybrid MKNF knowledge base w.r.t. a partial partition, which has polynomial data complexity when the underlying DL is polynomial.

We introduce two new wellfounded operators, with one being stronger than the other. We show that both are stronger than the one proposed in [Knorr et al. (2011)] when applied to arbitrary partitions.

Employing either of the two operators as the underlying propagator, we formulate a DPLLbased procedure to determine whether an MKNF model exists for a normal hybrid MKNF knowledge base; in case the answer is positive, the procedure can be adopted to compute all MKNF models by backtracking. This provides another DPLLbased NP inference engine, as the decision problem is NPcomplete when the underlying DL component is trackable [Motik and Rosati (2010)].

We show that the two proposed operators have different utilities. The stronger one serves as a stronger propagator in a DPLLbased search engine, and the weaker one has the desired property that it can be used to simplify the given hybrid MKNF knowledge base before we proceed to compute MKNF models. It thus provides a theoretical basis for implementing the simplification process in a grounder for normal hybrid MKNF knowledge bases.
The paper is completed with related work, followed by conclusions and future directions. The proofs are moved to B, with A providing a detailed comparison with the notion of unfounded set mentioned in a proof in [Knorr et al. (2011)].
2 Preliminaries
2.1 Minimal knowledge and negation as failure
The logic of minimal knowledge and negation as failure (MKNF) [Lifschitz (1991)] is based on a firstorder language (possibly with equality ) with two modal operators, , for minimal knowledge, and , for negation as failure. In MKNF , a firstorder atom is a formula of the form , where are terms and is a predicate in . MKNF formulas are firstorder formulas with and . An MKNF formula is ground if it contains no variables, and is the formula obtained from by replacing all free occurrences of the variable with term .
A firstorder interpretation is understood as in firstorder logic. The universe of a firstorder interpretation is denoted by . A firstorder structure is a nonempty set of firstorder interpretations with the universe for some fixed . An MKNF structure is a triple , where and are sets of firstorder interpretations with the universe . We define the satisfaction relation between an MKNF structure and an MKNF formula . Then we extend the language by object constants representing all elements of and call these constants names:

( is a firstorder atom) if is true in ,

if ,

if and ,

if for some name ,

if for all ,

if for some .
The symbols , , , , and are interpreted as usual.
An MKNF interpretation is a nonempty set of firstorder interpretations over the universe for some . An MKNF interpretation satisfies an MKNF formula , written , if for each .
Definition 2.1
An MKNF interpretation is an MKNF model of an MKNF formula if

, and

there is no MKNF interpretation such that and for every .
For example, with the MKNF formula , it is easy to verify that the MKNF interpretation is an MKNF model of .
In this paper, we consider only MKNF formulas that do not contain nested occurrences of modal operators and every firstorder atom occurring in the formula is in the range of a modal operator. Specifically, a Katom is a formula of the form and a notatom is a formula of the form , where is a firstorder formula.
2.2 Hybrid MKNF knowledge bases
Following [Motik and Rosati (2010)], a hybrid MKNF knowledge base consists of a decidable description logic (DL) knowledge base translated into firstorder logic and a rule base , which is a finite set of MKNF rules. An MKNF rule has the following form, where , and are functionfree firstorder atoms:
(1) 
If , is a normal MKNF rule; if , is a positive MKNF rule; if and , is an MKNF fact. A hybrid MKNF knowledge base is normal if all MKNF rules in are normal; is ground if it does not contain variables; and is ground if all MKNF rules in are ground.
We also write an MKNF rule of form (1) as , where is , , is , and is , and we identify , , , with their corresponding sets of Katoms and notatoms. With a slight abuse of notion, we denote .
Let be a hybrid MKNF knowledge base and an MKNF rule. We define an operator for , , and , respectively, as follows, where
is the vector of the free variables appearing in
:For simplicity, in the rest of this paper we may identify with the MKNF formula .
An MKNF rule is DLsafe if every variable in occurs in at least one nonDLatom occurring in the body of . A hybrid MKNF knowledge base is DLsafe if all MKNF rules in are DLsafe. A notion called standard name assumption is applied to hybrid MKNF knowledge bases to avoid unintended behavior [Motik and Rosati (2010)], under which interpretations are Herbrand ones with a countably infinite number of additional constants. If is DLsafe, then is semantically equivalent to in terms of MKNF models where is ground, hence decidability is guaranteed.
In the rest of this paper, we consider normal hybrid MKNF knowledge bases containing ground MKNF rules and use the standard name assumption for firstorder inferences.
2.3 Alternating fixpoint construction
We briefly review the operator based on an alternating fixpoint construction introduced in [Knorr et al. (2011)].
Let be a (ground) hybrid MKNF knowledge base. The set of Katoms of , written , is the smallest set that contains:

all ground Katoms occurring in , and

a Katom for each ground atom occurring in .
A partial partition of consists of two sets, where and . For a subset of , the objective knowledge of w.r.t. is the set of firstorder formulas .
For two pairs and , we define if and , if and , and .
Let be a normal hybrid MKNF knowledge base and . The operators , are defined on subsets of as follows:
Note that, both and are monotonic. We denote by and , respectively, the least fixpoint of the corresponding operator.
Let be a normal hybrid MKNF knowledge base. We define two sequences and as follows:
Definition 2.2
Let be a normal hybrid MKNF knowledge base. The coherent wellfounded partition of is defined by .^{1}^{1}1Note that, in general, may not be consistent, i.e., it is not guaranteed that the condition holds.
Clearly, the number of iterations in the construction of the coherent wellfounded partition is linear in the number of Katoms in . If the entailment relation can be computed in polynomial time, so can each iteration as well as the coherent wellfounded partition.
3 Unfounded Set and WellFounded Operators
In this section, we define the notion of unfounded set for (ground) normal hybrid MKNF knowledge bases, present an algorithm to compute the greatest unfounded set, and then introduce two new wellfounded operators. At the end, we discuss the relations of these operators with the one based on the alternating fixpoint construction.
3.1 Unfounded sets
In logic programming, an unfounded set in general refers to a set of atoms that fail to be derived by rules. In the context of hybrid MKNF knowledge bases, the concept becomes more involved due to possible inferences with the knowledge expressed in the underlying ontology.
Given a set of normal MKNF rules , we define .
Definition 3.1
A set is an unfounded set of a normal hybrid MKNF knowledge base w.r.t. a partial partition of , if for each and each such that

, and

for each , is consistent, in particular, is consistent when ,
there exists an MKNF rule satisfying one of the following conditions:

,

, or

.
A Katom in an unfounded set is called an unfounded atom.
Roughly speaking, for a modal atom to be unfounded w.r.t. , any group of rules that can help derive it, along with , must contain at least one rule which is not applicable given . Since the condition must be satisfied for each , when is a minimal set such that , the existence of such a rule blocks the derivation.
More precisely, an unfounded set w.r.t. is one such that for each , if is derivable from (the objective heads of) rules in and objective knowledge , where is not in conflict with any false atom based on , then there exists at least one rule in such that either its body is not satisfied by or the body being satisfied depends on some atoms in .
It is not difficult to verify that, when , this notion of unfounded sets coincides with the one for the corresponding logic programs [Van Gelder et al. (1991)].
Example 1
Consider , where and . Since there exists no with and is consistent, is an unfounded set of w.r.t. .
Proposition 3.1
Let be a normal hybrid MKNF knowledge base, a partial partition of . If and are unfounded sets of w.r.t. , then is an unfounded set of w.r.t. .
As the union of two unfounded sets is also an unfounded set, the greatest unfounded set of w.r.t. , denoted , exists, which is the union of all unfounded sets of w.r.t. .
Proposition 3.2
Let be a normal hybrid MKNF knowledge base, a partial partition of , and an unfounded set of w.r.t. . For any MKNF model of with , for each .
In logic programming, a declarative characterization of stable models is that they are precisely unfoundedfree models (see, e.g. [Alviano et al. (2011)]). The same property holds for normal hybrid MKNF knowledge bases under the notion of unfounded set defined in this paper.
Proposition 3.3
Let be a normal hybrid knowledge base and an MKNF model of . Define by and . Then, is the greatest unfounded set of w.r.t. .
We provide an approach to computing the greatest unfounded set of w.r.t. , i.e., . First, we define an operator as follows:
Clearly, is monotonic. We thus define the function to be the least fixpoint of . We show that the greatest unfounded set can be computed from .
Theorem 3.1
Let be a normal hybrid MKNF knowledge base and a partial partition of . .
Clearly, the number of iterations in the construction of is linear in the number of Katoms in . If the entailment relation can be computed in polynomial time, then can be computed in polynomial time, and the same holds for computing the greatest unfounded set of w.r.t. .
3.2 A wellfounded operator
By applying the process of computing the greatest unfounded set w.r.t. a partial partition, we can define a new wellfounded operator.
Let be a normal hybrid MKNF knowledge base, and a partial partition of . We introduce the wellfounded operator of as follows:
Note that, is monotonic, i.e., if , then
Notice also that each partition induces an instance operator . Thus, we have defined a family of monotonic operators. We often just write , and call it a wellfounded operator, to mean the family of instance operators induced from partial partitions.
Definition 3.2
The wellfounded partition of a normal hybrid MKNF knowledge base is defined by the least fixpoint of the instance operator .
In particular, we define
The wellfounded partition of is . If the entailment relation can be computed in polynomial time, then can be computed in polynomial time.
Example 1 (Continued)
3.3 An expanding wellfounded operator
Here, we introduce another wellfounded operator extended from . The idea is to apply unit propagation to increase the propagation power of .
Let be a normal hybrid MKNF knowledge base, a partial partition of . We use to denote the partial partition that can be derived from based on by unit propagation. Formally, it is defined in Algorithm 1.
Then we introduce the expanding wellfounded operator of as follows:
For example, consider a hybrid MKNF knowledge base , where and . By the definition of , we have and , and thus is inconsistent. For this example, the result shows that no MKNF model exists under the condition that .
Since is monotonic, is monotonic as well. Again, above we have defined a family of monotonic operators. We may write , and call it a wellfounded operator, to mean the family of these instance operators.
Definition 3.3
The expanding wellfounded partition of a normal hybrid MKNF knowledge base is defined by the least fixpoint of the instance operator .
Similarly, we define
The expanding wellfounded partition of is . If the entailment relation can be computed in polynomial time, then can be computed in polynomial time.
Note that, since , the expanding wellfounded operator is an extension of the wellfounded operator .
Proposition 3.4
Let be a normal hybrid MKNF knowledge base and a partial partition of . and .
The following example shows that is possible.
Example 1 (Continued)
The expanding wellfounded partition of can be computed as follows:
Then , which corresponds to the unique MKNF model of .
3.4 Relations to coherent wellfounded partition
In this subsection, we show the relations of the new wellfounded operators proposed in this paper with the one based on the alternating fixpoint construction.
Theorem 3.2
Let be a normal hybrid MKNF knowledge base. .
From Proposition 3.4, we have .
The above theorem shows that the wellfounded partition is equivalent to the coherent wellfounded partition. On the other hand, given a partial partition for a normal hybrid MKNF knowledge base , returns an expansion of . Similarly, for the purpose of adopting alternating fixpoint construction for constraint propagation, we may attempt to define and from the sequences and with and .
As shown below, may not coincide with .
Example 2
Consider , where and consists of
We have , while
Therefore, .
The next example shows that, when applied to an arbitrary partial partition, the alternating fixpoint construction may not converge.
Example 3
Consider , where and consists of
Let . Then
However, the sequences and do not converge.
Note that .
Note that the nonconverging issue does not arise when the alternating fixpoint construction commences only from the least partition . However, for the goal of constraint propagation, converging must be guaranteed when applied to arbitrary partitions.
Theorem 3.3
Let be a normal hybrid MKNF knowledge base and a partial partition of . , for each .
4 Computing MKNF Models
We show that both wellfounded operators can be used to compute MKNF models of a normal hybrid MKNF knowledge base in a DPLLbased procedure. We first provide some properties.
Theorem 4.1
Let be a normal hybrid MKNF knowledge base, a partial partition of , , and . Then for any MKNF model of with ,

, and

.
The theorem can be proved from Proposition 3.2, i.e., given an unfounded set of w.r.t. , if is an MKNF model of satisfying , then for each .
Corollary 4.2
Let be a normal hybrid MKNF knowledge base, the wellfounded partition of , and the expanding wellfounded partition of .

If and , then is the only MKNF model of .

If and , then is the only MKNF model of .

If or
Comments
There are no comments yet.