Simplifying Logic Programs under Uniform and Strong Equivalence

Size: px
Start display at page:

Download "Simplifying Logic Programs under Uniform and Strong Equivalence"

Transcription

1 In: Proc. 7th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR-7), I. Niemelä and V. Lifschitz, (eds), LNCS, c 2004 Springer. Simplifying Logic Programs under Uniform and Strong Equivalence Thomas Eiter, Michael Fink, Hans Tompits, and Stefan Woltran Institut für Informationssysteme 184/3, Technische Universität Wien, Favoritenstraße 9-11, A-1040 Vienna, Austria Abstract. We consider the simplification of logic programs under the stablemodel semantics, with respect to the notions of strong and uniform equivalence between logic programs, respectively. Both notions have recently been considered for nonmonotonic logic programs (the latter dates back to the 1980s, though) and provide semantic foundations for optimizing programs with input. Extending previous work, we investigate syntactic and semantic rules for program transformation, based on proper notions of consequence. We furthermore provide encodings of these notions in answer-set programming, and give characterizations of programs which are semantically equivalent to positive and Horn programs, respectively. Finally, we investigate the complexity of program simplification and determining semantical equivalence, showing that the problems range between conp and ¾ È complexity, and we present some tractable cases. 1 Introduction Implementations of answer-set solvers such as DLV [4], Smodels [21], or ASSAT [13] led to the consideration of practical applications of nonmonotonic logic programs in the last years, but also renewed interest in the study of foundational properties. In particular, semantical notions of equivalence between logic programs such as strong equivalence have been studied (cf. [11, 22, 23, 17, 12, 3]): Programs È ½ and È ¾ are strongly equivalent, if, for any set Ê of rules, the programs È ½ Ê and È ¾ Ê are equivalent under the stable semantics, i.e., have the same set of stable models. This can be used to simplify a logic program È [23, 16]: if a subprogram É of È is strongly equivalent to a (simpler) program É ¼, then we can replace É by É ¼. Since strong equivalence is rather strict, the more liberal notion of uniform equivalence [20, 14] has been considered in [5, 18], where Ê is restricted to sets of facts. A hierarchical component within a program È may be replaced by a uniformly equivalent set of rules ¼, providing the global hierarchical component structure of È is not affected (which is a simple syntactic check). As recently discussed by Pearce and Valverde [18], uniform and strong equivalence are essentially the only concepts of equivalence obtained by varying the logical form of the program extensions. This work was partially supported by the Austrian Science Fund (FWF) under project Z29- N04, and the European Commission under projects FET WASP and IST INFOMIX.

2 This paper continues and extends the work in [5], which focused on semantical characterizations of uniform equivalence for disjunctive logic programs (DLPs). More specifically, we consider here the issue of simplifying DLPs under uniform and strong equivalence under different aspects. Our main contributions are briefly summarized as follows: (1) We consider a method using local transformation rules to simplify programs, where we deal both with syntactic and semantic transformation rules. Syntactic transformation rules for strong equivalence have previously been considered by Osorio et al. [16]. Besides rules from there and from [2], we also examine the recent notion of s-implication [24], as well as a new transformation rule for head-cycle free rules, called local shifting. Both preserve uniform equivalence, and the former also strong equivalence. The semantic transformation rules employ logical consequence and remove redundant rules and literals. The method interleaves syntactic and semantic transformation rules, respecting that the former have much lower (polynomial) complexity compared to the intractability of the semantic rules. (2) We provide answer-set programming (ASP) solutions for checking whether È Ö resp. È Ù Ö, where denotes the consequence operator under strongequivalence models (SE-models) [22, 23] and Ù refers to consequence under uniformequivalence models (UE-models) [5]. Note that deciding È Ù Ö is È ¾ -complete [5], and hence the full power of DLPs is needed to decide this problem, whilst deciding È Ö is only conp-complete. We remark that Pearce and Valverde [18] have provided a tableau system for deciding uniform equivalence, and that Janhunen and Oikarinen [9, 10] provided an alternative method in terms of ASP for testing strong and ordinary equivalence between normal logic programs. (3) Beyond local transformations, we present general conditions under which programs possess equivalent programs belonging to syntactic subclasses of DLPs (which have special algorithms for ASP computation). In particular, we provide semantical characterizations (in terms of conditions on models) of programs which are uniformly resp. strongly equivalent to programs which are positive or Horn. Furthermore, we give similar conditions in terms of classical consequence for strong equivalence. (4) We analyze the computational complexity of the problems encountered. In particular, we consider the cost of the semantic simplification rules, and the cost of deciding whether a given DLP is equivalent to a syntactically simpler program. While most of these problems are unsurprisingly intractable (conp-complete, and in few cases for uniform equivalence È ¾ -complete), we obtain a polynomial-time result for deciding whether a normal logic program without constraints of form ½ Ò is strongly equivalent to some positive DLP or to some Horn program, respectively. Given the availability of efficient answer-set solvers, such as the systems mentioned previously, enabling automated simplifications of logic programs has become an important issue. This is even more the case since with the development of applications using ASP solvers, an ever growing number of programs are automatically generated, leaving the burden of optimizations to the underlying ASP system. Our results might well be used for offline optimizations of application programs in ASP solvers. For space reasons, proofs are omitted; they are given in an extended version of this paper.

3 2 Preliminaries We deal with propositional disjunctive logic programs, containing rules Ö of form ½ Ð Ð ½ Ñ ÒÓØ Ñ ½ ÒÓØ Ò Ò Ñ Ð ¼, where all are atoms from a finite set of propositional atoms, Ø, and ÒÓØ denotes default negation. The head of Ö is the set À Öµ = ½ Ð, and the body of Ö is the set Öµ = Ð ½..., Ñ ÒÓØ Ñ ½..., ÒÓØ Ò. We also define Öµ = Ð ½ Ñ and Öµ = Ñ ½ Ò. Moreover, for a set of atoms ½ Ò, ÒÓØ denotes the set ÒÓØ ½ ÒÓØ Ò. A rule Ö is normal, if Ð ½; definite, if Ð ½; positive, if Ò Ñ; and Horn, if it is normal and positive. If À Öµ and Öµ, then Ö is a constraint; and if moreover Öµ, then Ö is a positive constraint. If Öµ, Ö is a fact, written as ½ Ð if Ð ¼, and as otherwise. A disjunctive logic program (DLP), È, is a finite set of rules. È is called a normal logic program (NLP) (resp., a definite, positive, Horn program), if every rule in È is normal (resp., definite, positive, Horn). We also define È Ö ¾ È Öµ. In a DLP È, an atom positively depends on an atom if ¾ À Öµ for some rule Ö ¾ È, and either ¾ Öµ, or some ¾ Öµ positively depends on ; Ö ¾ È is head-cycle free (HCF) in È if no distinct atoms ¾ À Öµ mutually positively depend on each other. A DLP È is HCF [1] if each Ö ¾ È is HCF in È. We recall the stable-model semantics for DLPs [8, 19]. Let Á be an interpretation, i.e., a subset of Ø. Then, an atom is true under Á, symbolically Á, iff ¾ Á, and false under Á otherwise. For a rule Ö, Á À Öµ iff some ¾ À Öµ is true under Á, and Á Öµ iff (i) each ¾ Öµ is true under Á, and (ii) each ¾ Ôµ is false under Á. Á satisfies Ö, denoted Á Ö, iff Á À Öµ whenever Á Öµ. Furthermore, Á is a model of a program È, denoted Á È, iff Á Ö, for all Ö ¾ È. As usual, È Ö iff Á Ö, for each model Á of È. The Gelfond-Lifschitz reduct of a program È relative to a set of atoms Á is the positive program È Á À Öµ Öµ Ö ¾ È Öµ Á. An interpretation Á is a stable model of a program È iff Á is a minimal model (under set inclusion) of È Á. The set of all stable models of È is denoted by ËÅ È µ. Several notions of equivalence between logic programs have been considered in the literature (cf., e.g., [11, 14, 20]). Under stable semantics, two DLPs È and É are regarded as equivalent, denoted È É, iff ËÅ È µ ËŠɵ. The more restrictive forms of strong equivalence and uniform equivalence are as follows: Definition 1. Let È and É be two DLPs. Then, (i) È and É are strongly equivalent, or -equivalent, denoted È É, iff, for any set Ê of rules, the programs È Ê and É Ê are equivalent, i.e., È Ê É Ê. (ii) È and É are uniformly equivalent, or Ù-equivalent, denoted È Ù É, iff, for any set of non-disjunctive facts, È and É are equivalent, i.e., È É. Obviously, È É implies È Ù É but not vice versa (see Example 1 below). Both notions of equivalence, however, enjoy interesting semantical characterizations. As shown in [11], strong equivalence is closely related to the non-classical logic of here-and-there, which was adapted to logic-programming terms by Turner [22, 23]:

4 Definition 2. Let È be a DLP, and let Ø such that. The pair µ is an SE-model of È (over Ø), if È and È. By Å Ø È µ we denote the set of all SE-models over Ø of È. In what follows, we usually leave the set Ø implicit and write Å È µ simpliciter instead of Å Ø È µ. Proposition 1 ([22, 23]). For any DLP È and É, È É iff Å È µ Šɵ. Recently, the following pendant to SE-models, characterizing uniform equivalence for (finite) logic programs, has been defined [5]. Definition 3. Let È be a DLP and µ ¾ Å È µ. Then, µ is an UE-model of È iff, for every ¼ µ ¾ Å È µ, it holds that ¼ implies ¼. By Å Ù È µ we denote the set of all UE-models of È. Proposition 2 ([5]; cf. also [18]). For any DLP È and É, È Ù Å Ù Éµ. É iff Å Ù È µ Example 1. Consider È and É ÒÓØ over Ø. As easily checked, we have Å È µ µ µ µ and Šɵ Å È µ µ. Thus, È É. However, µ ¾ Š٠ɵ. In fact, it holds that Å Ù È µ Å È µ and Š٠ɵ Å Ù È µ. Therefore, È Ù É. Finally, we define consequence relations associated to SE- and UE-models in the usual manner. Definition 4. Let È be a DLP, Ö a rule, and ¾ Ù. Then, È Ö iff, for each µ ¾ Å È µ, µ Ö, i.e., Ö and Ö. Furthermore, we write È É iff È Ö, for every Ö ¾ É. Proposition 3. For any DLP È and É, È É iff È É and É È, ¾ Ù. 3 Local Program Transformations Given a logic program È and a notion of equivalence ( ¾ Ù ), we aim at a procedure to systematically simplify È to a program È ¼ which is -equivalent to È. As a starting point, we consider local modifications, i.e., iterative modifications of È on a rule-by-rule basis. Later on, in Section 5, we present results for replacing under certain conditions the entire program by a simpler, -equivalent program. Figure 1 gives the general structure of such a simplification algorithm, using different kinds of simplifications: A first simplification can be obtained by analyzing the syntax of the program and by applying appropriate syntactic transformation rules. After this static analysis, the notion of consequence induced by the given type of equivalence can be used for further semantic simplifications by means of consequence tests (see also next section). Systematic consequence testing can be applied to simplify rules by identifying redundant literals for removal, as well as for program simplification by identifying redundant rules.

5 Algorithm Ë ÑÔÐ Ý È ) Input: A DLP È and a notion of equivalence. Output: A simplified DLP È ¼ such that È ¼ È. var È ¼ DLP Á changeinfo È ¼ È Á ÐÐ while Á do È ¼ Ë ÑÔÐ Ý ËÝÒØ Ø È ¼ Á µ È ¼ Ê ÑÓÚ Ê ÙÒ ÒØ ÊÙÐ È ¼ Á µ if Á µ then È ¼ Ê ÑÓÚ Ê ÙÒ ÒØ Ä Ø Ö Ð È ¼ Á µ fi od return È ¼ Fig. 1. Generic simplification algorithm. The algorithm depicted in Figure 1 interleaves syntactic with semantic simplifications, giving preference to syntactic ones since they are easier to accomplish. Furthermore, it uses a data structure for recording latest changes (changeinfo Á) in order to restrict the set of applicable transformation rules as well as to restrict their range of application: By means of this information, in each iteration, only a particular set of syntactic transformation rules has to be tested for a specific rule. Of course, this basic algorithm can be further optimized to fit particular needs. Finally, we remark that Ë ÑÔÐ Ý is sound and that it is an anytime algorithm, since we use rewriting rules for a transformation-based calculus, where È È ¼ is transformed by applying rules Ì iteratively: È È ¼ Ì ½ È ½ Ì ¾ È ¾ È ½ Ì È such that È È ½, ¼. 3.1 Syntactic transformation rules Basic transformation rules. A set of basic syntactic transformation rules has been introduced and initially studied by Brass and Dix [2]. Table 1 briefly summarizes these rules, called elimination of tautologies (TAUT), positive- and negative reduction (RED and RED, respectively), partial evaluation (GPPE), weak partial evaluation (WGPPE), elimination of non-minimal rules (NONMIN), and elimination of contradictions (CON- TRA). Osorio et al. [16] reported results for TAUT, RED, RED, GPPE, and NONMIN under strong equivalence. The positive results for TAUT, RED, and NONMIN directly carry over to uniform equivalence. The programs È ÒÓØ and É show that RED and GPPE also fail to preserve uniform equivalence. Moreover, it is easily verified that CONTRA preserves both notions of equivalence. While GPPE does neither preserve -equivalence nor Ù-equivalence, both are preserved, however, by the weak variant WGPPE. Proposition 4. Let È be a DLP and consider Ö ½ Ö ¾ ¾ È such that ¾ Ö ½ µ and ¾ À Ö ¾ µ, for some atom. Then, È Ö ¼ È, where Ö ¼ is given by À Ö ½ µ À Ö ¾ µ Ò µ Ö ½ µ Ò µ ÒÓØ Ö ½ µ Ö ¾ µ.

6 Table 1. Syntactic transformation rules. Name Condition Transformation TAUT À Öµ Öµ È ¼ È Ò Ö RED ¾ Ö ½µ, Ö ¾ ¾ È ¾ À Ö ¾µ È ¼ È Ò Ö ½ Ö ¼ Ý RED À Ö ¾µ Ö ½µ, Ö ¾µ È ¼ È Ò Ö ½ NONMIN À Ö ¾µ À Ö ½µ, Ö ¾µ Ö ½µ È ¼ È Ò Ö ½ GPPE ¾ Ö ½µ, for Ö ¾ ¾ È ¾ À Ö ¾µ È ¼ È Ò Ö ½ ¼ Þ WGPPE same condition as for GPPE È ¼ È ¼ Þ CONTRA Öµ Öµ È ¼ È Ò Ö S-IMP Ö Ö ¼ ¾ È, Ö Ö ¼ È ¼ È Ò Ö ¼ LSH Ö ¾ È, À Öµ ½, Ö head-cycle free in È È ¼ È Ò Ö Ö Ý Ö ¼ À Ö½µ Ö ½µ ÒÓØ Ö ½µ Ò µ. Þ ¼ À Ö ½µ À Ö ¾µ Ò µ Ö ½µ Ò µ ÒÓØ Ö ½µ Ö ¾µ Ö ¾ ¾. Note that WGPPE creates new rules and may make other transformations applicable. Furthermore, it may be applied exponentially often during iteration steps, creating further (even minimal) rules. Hence, to avoid an exponential explosion in the simplification algorithm, the number of applications of WGPPE may be polynomially bounded. S-implication (S-IMP). Recently, Wang and Zhou [24] introduced the notion of s- implication: Definition 5. A rule Ö ¼ is an s-implication of a rule Ö Ö ¼, symbolically Ö Ö ¼, iff there exists a set Ö ¼ µ such that (i) À Öµ À Ö ¼ µ, (ii) Öµ Ö ¼ µ Ò, and (iii) Öµ Ö ¼ µ. For example, if Ö and Ö ¼ ÒÓØ, then Ö Ö ¼ (choose ). Proposition 5. Let È be a DLP, and Ö Ö ¼ ¾ È such that Ö Ö ¼. Then, È Ò Ö ¼ È. Example 2. Consider the program È Ö ½ ÒÓØ Ö ¾. Since Ö ¾ Ö ½, È can be simplified to the strongly equivalent program È ¼. Local shifting (LSH). Finally, we present a new transformation rule, called local shifting. It relies on the concept of head-cycle freeness and turns out to preserve uniform equivalence, but not strong equivalence. For any rule Ö, define Ö Öµ ÒÓØ À Öµ Ò µ ¾ À Öµ if À Öµ, and Ö Ö otherwise. Furthermore, for any DLP È, let È Ë Ö¾È Ö. Definition 6. The rule local shifting (LSH) allows replacing a rule Ö in a DLP È by Ö, providing Ö is head-cycle free in È. Theorem 1. Let È be a DLP and Ö ¾ È HCF in È. Then, È Ù È Ò Ö µ Ö. Example 3. Consider È. Here, is HCF in È, whilst is not. Hence, under Ù, program È can be simplified to È ¼ È Ò µ ÒÓØ ÒÓØ. Table 2 summarizes the results for syntactic transformation rules under both uniform and strong equivalence.

7 Table 2. Syntactic transformations preserving -equivalence ( ¾ Ù ). Eq. TAUT RED RED NONMIN GPPE WGPPE CONTRA S-IMP LSH yes no yes yes no yes yes yes no Ù yes no yes yes no yes yes yes yes Results due to Osorio et al. [16]. 3.2 Semantic transformation rules More powerful than the above syntactic transformation rules for program simplification are semantic ones based on, in the light of Propositions 1 3. However, checking the applicability of these rules is intractable in general, while checking the applicability of the above syntactic rules is tractable. Brass and Dix [2] considered supraclassicality (SUPRA): If È, then È È. However, SUPRA fails under Ù (and thus also under under ). A simple counterexample is È ÒÓØ. Clearly, È, but È has a UE-model µ which is not a UE-model of È. Rule simplification. One way is minimizing individual rules Ö, based on property NON- MIN: replace Ö by a subsumer Ö ¼ (with À Ö ¼ µ À Öµ and Ö ¼ µ Öµ) such that È Ò Ö µ Ö ¼ È. Rule simplification (or condensation) thus amounts to the systematic search for such Ö ¼, which must satisfy È Ö ¼. The easiest way is literalwise removal, i.e., where Ö ¼ is Ö with some literal in Ö removed. Rule redundancy. In addition, we can simplify È by removing redundant rules. Proposition 3 implies that Ö ¾ È is redundant in È iff È Ò Ö Ö. Notice that rule simplification might create redundant rules, as shown by the following example, which is well-known in the context of computing a minimal cover of a set of functional dependencies in databases. Example 4. Consider the program È. None of the rules in È is redundant, neither under strong nor under uniform consequence. However, can be removed in both and, yielding È ¼. Here, or can be eliminated. We remark that some of the syntactic transformation rules, such as TAUT, RED, NONMIN, and CONTRA, can be regarded as special cases of semantic transformation rules. However, others such as LSH, cannot be viewed this way. We may bypass -consequence and stay with relation in some cases. This is true, e.g., for positive programs, which is an easy corollary of the next result, which generalizes an analogous result of [5] for uniform equivalence to -equivalence. Theorem 2. Let È be a DLP and ¾ Ù. Then, the following conditions are equivalent: (i) È Ö iff È Ö, for every rule Ö.

8 (ii) For every µ ¾ Å È µ, it holds that È. Corollary 1. For any positive DLP È and any rule Ö, È Ö iff È Ö, ¾ Ù. Thus, for every positive program, a UE- and SE-canonical form is given by any irredundant prime CNF, written in positive rule form. Hence, minimization of any program which is semantically equivalent to a positive one is possible in polynomial time with an NP-oracle; detecting this property is considered in Section Computational cost of Ë ÑÔÐ Ý and incomplete simplification As pointed out above, testing the applicability and execution of each syntactic rule in Section 3.1 valid for is clearly polynomial. Since all transformation rules except WGPPE shrink or remove program rules, Ë ÑÔÐ Ý È µ is polynomial with an oracle for if WGPPE is applied at most polynomially often. As discussed in Section 6, following from Corollary 1, deciding rule and literal redundancy is intractable in general. Interestingly, the following extension of Corollary 1 yields sound inference in terms of for arbitrary DLPs. Proposition 6. For any DLP È and rule Ö, È Ö implies È Ö, for ¾ Ù. However, the condition is not necessary; e.g., for È ÒÓØ and Ö ÒÓØ, we have È Ö but È Ö. Note that È Ö for positive Ö does not imply È Ö, as shown by È ÒÓØ and Ö. By exploiting Proposition 6, we can simplify any DLP È using its positive part È, without guaranteeing completeness. Notice that if È is Horn (e.g., if È is a NLP), this sound redundancy test is polynomial, and is in conp for general È. Thus, for È being Horn it is cheaper than the sound and complete test for NLPs (which is conpcomplete for both and Ù), and for arbitrary È for Ù (which is È ¾ -complete; cf. Section 6). 4 Consequence Testing In order to enable the systematic tests from the previous section by means of answerset solvers, we provide here efficient translations of checking SE- and UE-consequence into (disjunctive) logic programs under the stable-model semantics. We employ the following notation. For any set Á of atoms, we define Á ¼ Ú ¼ Ú ¾ Á and Á Ú Ú ¾ Á, where Ú ¼ and Ú are globally new atoms, for each atom Ú. Furthermore, Ö ¼ (resp., Ö) denotes the result of replacing in Ö each occurrence of an atom Ú by Ú ¼ (resp., Ú). Informally, primed atoms will be used to characterize in a UE- or SE-model µ; whilst atoms of form Ú will be used to encode the negation of Ú. 4.1 Encoding SE-consequence Based on results in [12, 17, 23], a SAT encoding of is easily obtained. In what follows, we describe an analogous encoding in terms of normal logic programs.

9 Definition 7. For any DLP È and atom set Î Ú ½ Ú Ò, define Ë È Î as: (1) Ú ÒÓØ Ú Ú ÒÓØ Ú ½ Ò (2) (3) Ú ¼ Ú ÒÓØ Ú ¼ Ú¼ ÒÓØ Ú ¼ Öµ ÒÓØ Öµ ÒÓØ À Öµ ½ Ò Ö ¾ È (4) Ö ¼ µ ÒÓØ Öµ ÒÓØ À Ö ¼ µ Ö ¾ È Intuitively, (1) and (2) guess sets Î such that, where atoms in are represented by primed variables; (3) checks È ; and (4) È. The next result describes the desired encoding of. Theorem 3. Let È, É be DLPs, Î the set of atoms occurring in È É, and Û a fresh atom. Then, È É iff the following NLP has no stable model: Ë È Î ÒÓØ Û Û Öµ ÒÓØ Öµ ÒÓØ À Öµ 4.2 Encoding UE-consequence Û Ö ¼ µ ÒÓØ Öµ ÒÓØ À Ö ¼ µ Ö ¾ É Definition 8. Given a DLP È, a set of atoms Î Ú ½ Ú Ò, and sets of new atoms Î Ú ½ Ú Ò, for ¾ ½ Ò, Í È Î is defined as follows: (1) Ë È Î (2) Ú Ú Ú ¼ Ú¼ Ú Ú Ú ¼ ½ Ò (3) Ú Ú ¼ Ú Ú ¼ ÒÓØ Ú Ú Ú ¼ Ú Ú ½ Ò (4) À Ö µ Ú Ú ¼ Ö µ ÒÓØ Öµ Ö ¾ È ½ Ò where rule Ö is the result of replacing in Ö each atom Ú by Ú. Intuitively, Í È Î works as follows. First, Ë È Î yields all SE-models µ of È. Then, (2) (4) check if no with satisfies È. This is done as follows: For each Ú ¾ Ò, (2) initializes sets Ú via atoms Î. Then, (4) yields, for each Ú ¾ Ò, minimal sets satisfying È. Finally, constraints (3) apply for each such. Hence, we get a stable model iff, for each such that Ú ¾ Ò, the minimal set matches. But then, µ ¾ Å Ù È µ. Formally, we have the following result: Lemma 1. Let È be a DLP over atoms Î Ú ½ Ú Ò. Then, ËÅ Í È Î µ is given by ¼ Î ¼ Ò ¼ µ Î Ò µ  Πµ ¾ Å Ù È µ, where Â Ú Ú ¾ Ò Ú ¾. Theorem 4. Let È,É be DLPs, Î the set of atoms in È É, and Ù Û new atoms. Then, È Ù É iff the program È É Í, given as follows, has no stable model: (1) Í È Î (2) Ù Öµ ÒÓØ Öµ ÒÓØ À Öµ Ö ¾ É (3) Ù Ö ¼ µ ÒÓØ Öµ ÒÓØ À Ö ¼ µ Ö ¾ É (4) Ú ¼¼ Ú ¼ Ú¼¼ Ú ÒÓØ Ú ¼¼ ÒÓØ Ú ¼¼ (5) Û ÒÓØ Ú ¼¼ Ú ¼¼ ½ Ò (6) ÒÓØ Û ÒÓØ Ù ÒÓØ ÒÓØ Ù (7) Ö ¼¼ µ ÒÓØ Öµ ÒÓØ À Ö ¼¼ µ ÒÓØ Ù Ö ¾ É

10 The intuition behind È É Í is as follows. (1) computes all UE-models µ of È via atoms Î ¼ and Î (characterizing ¼ resp. ). We must check that each of them is also a UE-model of É, and if so, the program should have no stable model. Therefore, (2) checks É and (3) É. If this fails, µ ¾ Šɵ, and thus µ ¾ Š٠ɵ. Whenever this is detected, we derive Ù, which is used to disable the constraints (6) (7). Finally, we must check whether no exists such that and µ ¾ Šɵ. To this end, (4) guesses a set such that, and (5) derives Û if some Ô ¾ Ò exists, and if some Õ ¾ Ò exists. Using (6), we remain with those which are in between and. Finally, (7) checks µ ¾ Šɵ. Now let Á be any stable model of È É Í. If Ù ¾ Á, then the members of Î,Î ¼ in Á give an UE-model of È which is not an SE-model of É; and if Ù ¾ Á, then Î, Î ¼¼ give an SE-model µ of É where µ ¾ Å Ù È µ with. Notice that both Í È Î and È É Í are normal (resp., HCF) if È is normal (resp., HCF). Hence, the test for È Ù É yields a normal (resp., HCF) program if È is normal (resp., HCF), which is in conp compared to È -completeness in general [5]. Í ¾ È Î is thus appealing from this point of view. However, the size of Í È Î is quadratic in the size of È. In the extended paper, we give a linear-size program replacing Í È Î, but it is neither normal nor HCF regardless of È. 5 Global Simplifications In this section, we consider the following issue: Given a DLP È from some class, under what conditions is there a program É from a class ¼ such that È É? This question is crucial for program transformation and simplification from a more general perspective than local transformations. We succeed here providing characterizations where ¼ is the class of positive or Horn programs. Theorem 5. Let È be a DLP. Then, there exists a positive program É such that È É iff, for all µ ¾ Å È µ, it holds that È, where ¾ Ù. Theorem 6. For any DLP È, let Å ½ È µ µ ¾ Å È µ, for ¾ Ù. Then, there exists some Horn program É such that È É iff (i) Å ½ È µ È, and (ii) Å ½ È µ is closed under intersection. Note that Theorem 5 implies that if È is -equivalent to some positive program É, then we can obtain É by shifting ÒÓØ -literals to the head. We can exploit this observation for a simple test. Let, for any rule Ö, Ö Ð be the rule such that À Ö Ð µ À Öµ Öµ, and Ö Ð µ = Öµ (i.e., the left shift of Ö). Theorem 7. Let È be any DLP and ¾ Ù. Then, there exists a positive program É such that È É iff È Ö Ð, for every Ö ¾ È such that Öµ. To test for the existence of an -equivalent Horn program É, we just need to add a check whether the models of È are intersection closed (which is in conp). In the case of, we can even get rid of SE-consequence and come up with a test using only. In the following, we characterize strong equivalence of any program È,

11 Table 3. Complexity of deciding rule and literal redundancy. / Ù Horn LP Normal LP Positive LP HCF LP DLP Ö ¾ È redundant? È conp conp conp conp/ ¾ È in Ö ¾ È redundant? È conp conp conp conp/ ¾ È possessing a classical model, to some positive program É in terms of ; if È has no classical model, then È. Note that is positive. Recall that µ ¾ Å requires, but the reduct È of program È may have models ¼ such that ¼. To select exactly those ¼ such that ¼, let, for any DLP È and interpretation Á, È Á be the positive logic program È Á Á. Proposition 7. Let È be a DLP having a classical model, and let Ö be a positive rule. Then, È Ö iff È Å Ö, for every maximal model Å of È. Note that the proposition fails for non-positive Ö. Indeed, consider the program È ÒÓØ and Ö ÒÓØ. The unique maximal model of È is Ø, and È Ø Ø, but È ÒÓØ. Theorem 8. Let È É be DLPs, where È is positive having a classical model. Then, È É iff (i) È É, and (ii) É Å È, for every maximal model Å of È. We finally arrive at the desired characterization of semantic equivalence to some positive program, by exploiting that È is a singular candidate for É. Theorem 9. Let È be any DLP without positive constraints. Then, there exists some positive program É such that È É iff È È Ò È. For strong equivalence of È to some Horn theory É, we have in the right-hand side the additional condition that the models of È are closed under intersection. 6 Complexity In this section, we address complexity issues related to the problems above. Recall that we deal with propositional programs only. The complexity of deciding redundant literals and rules is given in Table 3, for various classes of programs, where entries represent completeness for the respective complexity classes. The upper complexity bounds are easily obtained from the complexity of deciding È Ö resp. È Ù Ö for the respective program class in Table 3 (cf. [5]), since È ¾ implies È Ò Ö ¾ in each case. The hardness parts for positive programs, HCF programs, and DLPs under are easily obtained from the conp-completeness of deciding È Ú for an atom Ú and a positive HCF È. For Horn programs, the problem is polynomial since È Ö and È Ù Ö coincide with È Ö, which is polynomial for Horn È. The È ¾ -hardness of DLPs under Ù can be shown by suitable adaptions of proofs in [5]. However, redundancy checking is tractable in certain cases:

12 Table 4. Complexity of deciding if for È ¾ (row) some É ¾ ¼ (column) exists with È É. / Ù Positive LP Horn LP constraint-free positive LP Definite Horn Normal LP conp conp È/coNP È/coNP HCF LP conp conp conp conp Disjunctive LP conp/ ¾ È conp/in ¾ È conp/ ¾ È conp/in ¾ È Theorem 10. Let È be a DLP without positive constraints such that È is normal. Then, checking redundancy of a positive rule Ö ¾ È under is decidable in polynomial time, and likewise checking redundancy of a literal in a positive rule Ö ¾ È. We next consider the complexity of deciding whether a given program is equivalent to some program belonging to a specific syntactic subclass of DLPs. The generic problem is as follows: Instance: A program È (possibly from a restricted class of programs, ). Question: Does there exist some program É from a fixed class of programs, ¼, such that È É, where ¾ Ù is fixed? Our results concerning this task are summarized in Table 4, where entries stand for completeness for the respective complexity classes unless stated otherwise. Notice that definite Horn programs are constraint-free Horn programs. Unsurprisingly, the problem is intractable in general. The upper bounds for the nonpolynomial cases can be easily derived from the results in the previous sections and the complexity of, which is conp-complete for general DLPs (as follows from [22, 23]), and of Ù, which is È ¾ -complete in general but conp-complete for HCF (and, in particular, normal) logic programs. Note that the rows for NLPs and HCF programs coincide under Ù, since È Ù È holds for each HCF program È, and the shifting program È is constraint-free iff È is constraint-free. However, under, we have a different picture, and we can find some interesting tractable cases from Theorem 9: Theorem 11. Let È be a positive-constraint free DLP such that È is normal. Then, deciding if there is some positive program É such that È É is feasible in polynomial time, and likewise deciding whether there is some Horn program É with È É. 7 Conclusion We have pushed further the work on nonmonotonic logic-program simplification under the notions of strong and uniform equivalence (cf. [11, 22, 23, 20, 5, 16]) by providing syntactic and semantic rules for program transformation and giving characterizations of programs which are semantically equivalent to positive and Horn programs. Similar characterizations for equivalence to normal programs are considered in a companion paper [6]. Future work concerns implementing the methods presented, as well as extending the results to programs with two kinds of negation and to the case of programs with variables. The current results provide a solid basis, though, for lifting them using common techniques.

13 References 1. R. Ben-Eliyahu and R. Dechter. Propositional Semantics for Disjunctive Logic Programs. Annals of Mathematics and Artificial Intelligence, 12:53 87, S. Brass and J. Dix. Semantics of (Disjunctive) Logic Programs Based on Partial Evaluation. Journal of Logic Programming, 40(1):1 46, D. J. de Jongh and L. Hendriks. Characterizations of Strongly Equivalent Logic Programs in Intermediate Logics. Theory and Practice of Logic Programming, 3(3): , T. Eiter, W. Faber, N. Leone, and G. Pfeifer. Declarative Problem-Solving Using the DLV System. In Logic-Based Artificial Intelligence, pp Kluwer, T. Eiter and M. Fink. Uniform Equivalence of Logic Programs under the Stable Model Semantics. In Proc. ICLP-03. To appear. 6. T. Eiter, M. Fink, H. Tompits, and S. Woltran. Eliminating Disjunction from Propositional Logic Programs under Stable Model Preservation. In Proc. ASP-03. Available at: T. Eiter, G. Gottlob, and H. Mannila. Disjunctive Datalog. ACM Transactions on Database Systems, 22: , M. Gelfond and V. Lifschitz. Classical Negation in Logic Programs and Disjunctive Databases. New Generation Computing, 9: , T. Janhunen and E. Oikarinen. Testing the Equivalence of Logic Programs under Stable Model Semantics. In Proc. JELIA-02, LNCS 2424, pp Springer, T. Janhunen and E. Oikarinen. LPEQ and DLPEQ Translators for Automated Equivalence Testing of Logic Programs. In Proc. LPNMR-03. To appear. 11. V. Lifschitz, D. Pearce, and A. Valverde. Strongly Equivalent Logic Programs. ACM Transactions on Computational Logic, 2(4): , F. Lin. Reducing Strong Equivalence of Logic Programs to Entailment in Classical Propositional Logic. In Proc. KR-02, pp Morgan Kaufmann, F. Lin and Y. Zhao. ASSAT: Computing Answer Sets of a Logic Program by SAT Solvers. In Proc. AAAI-2002, pp AAAI Press / MIT Press, M. J. Maher. Equivalences of Logic Programs. In Minker [15], pp J. Minker, editor. Foundations of Deductive Databases and Logic Programming. Morgan Kaufman, Washington DC, M. Osorio, J. Navarro, and J. Arrazola. Equivalence in Answer Set Programming. In Proc. LOPSTR 2001, LNCS 2372, pp Springer, D. Pearce, H. Tompits, and S. Woltran. Encodings for Equilibrium Logic and Logic Programs with Nested Expressions. In Proc. EPIA 2001, LNCS 2258, pp Springer, D. Pearce and A. Valverde. Some Types of Equivalence for Logic Programs and Equilibrium Logic. In Proc. APPIA-GULP-PRODE 2003, T. Przymusinski. Stable Semantics for Disjunctive Programs. New Generation Computing, 9: , Y. Sagiv. Optimizing Datalog Programs. In Minker [15], pp P. Simons, I. Niemelä, and T. Soininen. Extending and Implementing the Stable Model Semantics. Artificial Intelligence, 138: , H. Turner. Strong Equivalence for Logic Programs and Default Theories (Made Easy). In Proc. LPNMR-01, LNCS 2173, pp Springer, H. Turner. Strong Equivalence Made Easy: Nested Expressions and Weight Constraints. Theory and Practice of Logic Programming, 3(4 5): , K. Wang and L. Zhou. Comparisons and Computation of Well-founded Semantics for Disjunctive Logic Programs. ACM Transactions on Computational Logic. To appear. Available at:

A Model-Theoretic Counterpart of Loop Formulas

A Model-Theoretic Counterpart of Loop Formulas A Model-Theoretic Counterpart of Loop Formulas Joohyung Lee Department of Computer Sciences The University of Texas at Austin Austin, TX 78712, USA appsmurf@cs.utexas.edu Abstract In an important recent

More information

Qualitative Decision Making and Answer Set Programming Extended Abstract

Qualitative Decision Making and Answer Set Programming Extended Abstract Qualitative Decision Making and Answer Set Programming Extended Abstract Gerhard Brewka Universität Leipzig, Institut für Informatik Augustusplatz 10-11, 04109 Leipzig, Germany brewka@informatik.uni-leipzig.de

More information

A Backjumping Technique for Disjunctive Logic Programming

A Backjumping Technique for Disjunctive Logic Programming A Backjumping Technique for Disjunctive Logic Programming Wolfgang Faber, Nicola Leone, and Francesco Ricca Department of Mathematics University of Calabria 87030 Rende (CS), Italy faber,leone,ricca @mat.unical.it

More information

Answer Sets and the Language of Answer Set Programming. Vladimir Lifschitz

Answer Sets and the Language of Answer Set Programming. Vladimir Lifschitz Answer Sets and the Language of Answer Set Programming Vladimir Lifschitz Answer set programming is a declarative programming paradigm based on the answer set semantics of logic programs. This introductory

More information

3 No-Wait Job Shops with Variable Processing Times

3 No-Wait Job Shops with Variable Processing Times 3 No-Wait Job Shops with Variable Processing Times In this chapter we assume that, on top of the classical no-wait job shop setting, we are given a set of processing times for each operation. We may select

More information

Scan Scheduling Specification and Analysis

Scan Scheduling Specification and Analysis Scan Scheduling Specification and Analysis Bruno Dutertre System Design Laboratory SRI International Menlo Park, CA 94025 May 24, 2000 This work was partially funded by DARPA/AFRL under BAE System subcontract

More information

nfn2dlp: A Normal Form Nested Programs Compiler

nfn2dlp: A Normal Form Nested Programs Compiler nfn2dlp: A Normal Form Nested Programs Compiler Annamaria Bria, Wolfgang Faber, and Nicola Leone Department of Mathematics, University of Calabria, 87036 Rende (CS), Italy {a.bria,faber,leone}@mat.unical.it

More information

Declarative Semantics for Revision Programming and Connections to Active Integrity Constraints

Declarative Semantics for Revision Programming and Connections to Active Integrity Constraints Declarative Semantics for Revision Programming and Connections to Active Integrity Constraints Luciano Caroprese 1 and Mirosław Truszczyński 2 1 Università della Calabria, 87030 Rende, Italy, caroprese@deis.unical.it

More information

Propositional Theories are Strongly Equivalent to Logic Programs

Propositional Theories are Strongly Equivalent to Logic Programs Under consideration for publication in Theory and Practice of Logic Programming 1 Propositional Theories are Strongly Equivalent to Logic Programs Pedro Cabalar Department of Computer Science, University

More information

Towards Logic Programs with Ordered and Unordered Disjunction

Towards Logic Programs with Ordered and Unordered Disjunction Towards Logic Programs with Ordered and Unordered Disjunction Philipp Kärger 1, Nuno Lopes 2, Daniel Olmedilla 1, and Axel Polleres 2 1 L3S Research Center & Leibniz University of Hannover, Germany 2 DERI

More information

spock: A Debugging Support Tool for Logic Programs under the Answer-Set Semantics

spock: A Debugging Support Tool for Logic Programs under the Answer-Set Semantics spock: A Debugging Support Tool for Logic Programs under the Answer-Set Semantics Martin Gebser 1, Jörg Pührer 2, Torsten Schaub 1, Hans Tompits 2, and Stefan Woltran 2 1 Institut für Informatik, Universität

More information

T E C H N I C A L R E P O R T. Disjunctive Logic Programs with Inheritance INSTITUT FÜR INFORMATIONSSYSTEME DBAI-TR-99-30

T E C H N I C A L R E P O R T. Disjunctive Logic Programs with Inheritance INSTITUT FÜR INFORMATIONSSYSTEME DBAI-TR-99-30 T E C H N I C A L R E P O R T INSTITUT FÜR INFORMATIONSSYSTEME ABTEILUNG DATENBANKEN UND ARTIFICIAL INTELLIGENCE Disjunctive Logic Programs with Inheritance DBAI-TR-99-30 Francesco Buccafurri 1 Wolfgang

More information

Debugging Answer-Set Programs with Ouroboros Extending the SeaLion Plugin

Debugging Answer-Set Programs with Ouroboros Extending the SeaLion Plugin Debugging Answer-Set Programs with Ouroboros Extending the SeaLion Plugin Melanie Frühstück 1, Jörg Pührer 2, and Gerhard Friedrich 1 1 Siemens AG Österreich, Corporate Technology, Vienna, Austria melanie.fruehstueck@siemens.com

More information

Forcing in disjunctive logic programs

Forcing in disjunctive logic programs Forcing in disjunctive logic programs Marina De Vos Free University of Brussels, VUB marinadv@tinf1vubacbe Dirk Vermeir Free University of Brussels, VUB dvermeir@vubacbe Abstract We propose a semantics

More information

SAT-Based Answer Set Programming

SAT-Based Answer Set Programming SAT-Based Answer Set Programming Enrico Giunchiglia 1, Yuliya Lierler 2, and Marco Maratea 1 1 DIST - Università di Genova, Genova, Italy 2 Institut für Informatik, Erlangen-Nürnberg-Universität, Germany

More information

Consistency and Set Intersection

Consistency and Set Intersection Consistency and Set Intersection Yuanlin Zhang and Roland H.C. Yap National University of Singapore 3 Science Drive 2, Singapore {zhangyl,ryap}@comp.nus.edu.sg Abstract We propose a new framework to study

More information

Preferred well-founded semantics for logic programming by alternating fixpoints: Preliminary Report

Preferred well-founded semantics for logic programming by alternating fixpoints: Preliminary Report Preferred well-founded semantics for logic programming by alternating fixpoints: Preliminary Report Torsten Schaub and Kewen Wang Institut für Informatik, Universität Potsdam Postfach 900327, D 14439 Potsdam,

More information

Disjoint, Partition and Intersection Constraints for Set and Multiset Variables

Disjoint, Partition and Intersection Constraints for Set and Multiset Variables Disjoint, Partition and Intersection Constraints for Set and Multiset Variables Christian Bessiere ½, Emmanuel Hebrard ¾, Brahim Hnich ¾, and Toby Walsh ¾ ¾ ½ LIRMM, Montpelier, France. Ö Ð ÖÑÑ Ö Cork

More information

Unified Configuration Knowledge Representation Using Weight Constraint Rules

Unified Configuration Knowledge Representation Using Weight Constraint Rules Unified Configuration Knowledge Representation Using Weight Constraint Rules Timo Soininen ½ and Ilkka Niemelä ¾ and Juha Tiihonen ½ and Reijo Sulonen ½ Abstract. In this paper we present an approach to

More information

On the Hardness of Counting the Solutions of SPARQL Queries

On the Hardness of Counting the Solutions of SPARQL Queries On the Hardness of Counting the Solutions of SPARQL Queries Reinhard Pichler and Sebastian Skritek Vienna University of Technology, Faculty of Informatics {pichler,skritek}@dbai.tuwien.ac.at 1 Introduction

More information

A Comparison of Structural CSP Decomposition Methods

A Comparison of Structural CSP Decomposition Methods A Comparison of Structural CSP Decomposition Methods Georg Gottlob Institut für Informationssysteme, Technische Universität Wien, A-1040 Vienna, Austria. E-mail: gottlob@dbai.tuwien.ac.at Nicola Leone

More information

Model checking for nonmonotonic logics: algorithms and complexity

Model checking for nonmonotonic logics: algorithms and complexity Model checking for nonmonotonic logics: algorithms and complexity Riccardo Rosati Dipartimento di Informatica e Sisteinistica Universita di Roma "La Sapienza" Via Salaria 113, 00198 Roma, Italy rosati@dis.unirornal.it

More information

Exploiting Unfounded Sets for HEX-Program Evaluation

Exploiting Unfounded Sets for HEX-Program Evaluation Exploiting Unfounded Sets for HEX-Program Evaluation Thomas Eiter, Michael Fink, Thomas Krennwallner, Christoph Redl, Peter Schller redl@kr.tuwien.ac.at September 27, 2012 Redl C. (TU Vienna) HEX-Programs

More information

Choice Logic Programs and Nash Equilibria in Strategic Games

Choice Logic Programs and Nash Equilibria in Strategic Games Choice Logic Programs and Nash Equilibria in Strategic Games Marina De Vos and Dirk Vermeir Dept. of Computer Science Free University of Brussels, VUB Pleinlaan 2, Brussels 1050, Belgium Tel: +32 2 6293308

More information

Recursive Aggregates in Disjunctive Logic Programs: Semantics and Complexity

Recursive Aggregates in Disjunctive Logic Programs: Semantics and Complexity Recursive Aggregates in Disjunctive Logic Programs: Semantics and Complexity Revised version as of September 5, 2005 Wolfgang Faber 1, Nicola Leone 2, and Gerald Pfeifer 1 1 Institut für Informationssysteme,

More information

SFU CMPT Lecture: Week 8

SFU CMPT Lecture: Week 8 SFU CMPT-307 2008-2 1 Lecture: Week 8 SFU CMPT-307 2008-2 Lecture: Week 8 Ján Maňuch E-mail: jmanuch@sfu.ca Lecture on June 24, 2008, 5.30pm-8.20pm SFU CMPT-307 2008-2 2 Lecture: Week 8 Universal hashing

More information

A Game-Theoretic Approach to Constraint Satisfaction

A Game-Theoretic Approach to Constraint Satisfaction A Game-Theoretic Approach to Constraint Satisfaction Phokion G. Kolaitis Computer Science Department University of California, Santa Cruz Santa Cruz, CA 95064 kolaitis@cse.ucsc.edu www.cse.ucsc.edu/ kolaitis

More information

Extending Conceptual Logic Programs with Arbitrary Rules

Extending Conceptual Logic Programs with Arbitrary Rules Extending Conceptual Logic Programs with Arbitrary Rules Stijn Heymans, Davy Van Nieuwenborgh, and Dirk Vermeir Dept. of Computer Science Vrije Universiteit Brussel, VUB Pleinlaan 2, B1050 Brussels, Belgium

More information

Unifying and extending hybrid tractable classes of CSPs

Unifying and extending hybrid tractable classes of CSPs Journal of Experimental & Theoretical Artificial Intelligence Vol. 00, No. 00, Month-Month 200x, 1 16 Unifying and extending hybrid tractable classes of CSPs Wady Naanaa Faculty of sciences, University

More information

Reasoning With Characteristic Models

Reasoning With Characteristic Models This papers appears in the Proceedings of the Eleventh National Conference on Artificial Intelligence (AAAI-93), Washington, D.C., 1993. Reasoning With Characteristic Models Henry A. Kautz, Michael J.

More information

Answer Set Optimization

Answer Set Optimization Gerhard Brewka Comp. Sci. Institute University of Leipzig Leipzig, Germany brewka@informatik.uni-leipzig.de Answer Set Optimization Ilkka Niemelä Dept. of Comp. Sci. and Eng. Helsinki University of Technology

More information

Joint Entity Resolution

Joint Entity Resolution Joint Entity Resolution Steven Euijong Whang, Hector Garcia-Molina Computer Science Department, Stanford University 353 Serra Mall, Stanford, CA 94305, USA {swhang, hector}@cs.stanford.edu No Institute

More information

ASPARTIX: Implementing Argumentation Frameworks Using Answer-Set Programming

ASPARTIX: Implementing Argumentation Frameworks Using Answer-Set Programming ASPARTIX: Implementing Argumentation Frameworks Using Answer-Set Programming Uwe Egly, Sarah Alice Gaggl, and Stefan Woltran Institut für Informationssysteme, Technische Universität Wien, Favoritenstraße

More information

Towards Automated Integration of Guess and Check Programs in Answer Set Programming

Towards Automated Integration of Guess and Check Programs in Answer Set Programming In: Proc. 7th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR-7), I. Niemelä and V. Lifschitz, editors, LNCS, c 2004 Springer. Towards Automated Integration of Guess and

More information

From Tableaux to Automata for Description Logics

From Tableaux to Automata for Description Logics Fundamenta Informaticae XX (2003) 1 33 1 IOS Press From Tableaux to Automata for Description Logics Franz Baader, Jan Hladik, and Carsten Lutz Theoretical Computer Science, TU Dresden, D-01062 Dresden,

More information

RSA (Rivest Shamir Adleman) public key cryptosystem: Key generation: Pick two large prime Ô Õ ¾ numbers È.

RSA (Rivest Shamir Adleman) public key cryptosystem: Key generation: Pick two large prime Ô Õ ¾ numbers È. RSA (Rivest Shamir Adleman) public key cryptosystem: Key generation: Pick two large prime Ô Õ ¾ numbers È. Let Ò Ô Õ. Pick ¾ ½ ³ Òµ ½ so, that ³ Òµµ ½. Let ½ ÑÓ ³ Òµµ. Public key: Ò µ. Secret key Ò µ.

More information

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic 3.4 Deduction and Evaluation: Tools 3.4.1 Conditional-Equational Logic The general definition of a formal specification from above was based on the existence of a precisely defined semantics for the syntax

More information

The Encoding Complexity of Network Coding

The Encoding Complexity of Network Coding The Encoding Complexity of Network Coding Michael Langberg Alexander Sprintson Jehoshua Bruck California Institute of Technology Email: mikel,spalex,bruck @caltech.edu Abstract In the multicast network

More information

The Resolution Algorithm

The Resolution Algorithm The Resolution Algorithm Introduction In this lecture we introduce the Resolution algorithm for solving instances of the NP-complete CNF- SAT decision problem. Although the algorithm does not run in polynomial

More information

Structure and Complexity in Planning with Unary Operators

Structure and Complexity in Planning with Unary Operators Structure and Complexity in Planning with Unary Operators Carmel Domshlak and Ronen I Brafman ½ Abstract In this paper we study the complexity of STRIPS planning when operators have a single effect In

More information

Efficiency versus Convergence of Boolean Kernels for On-Line Learning Algorithms

Efficiency versus Convergence of Boolean Kernels for On-Line Learning Algorithms Efficiency versus Convergence of Boolean Kernels for On-Line Learning Algorithms Roni Khardon Tufts University Medford, MA 02155 roni@eecs.tufts.edu Dan Roth University of Illinois Urbana, IL 61801 danr@cs.uiuc.edu

More information

Aggregates in Recursion: Issues and Solutions

Aggregates in Recursion: Issues and Solutions Aggregates in Recursion: Issues and Solutions Alpen-Adria-Universität Klagenfurt RuleML Webinar, 2018-05-25 Outline 1 2 3 4 Coincidence Results Complexity Results : Aggregates Aggregates facilitate problem

More information

Multi Domain Logic and its Applications to SAT

Multi Domain Logic and its Applications to SAT Multi Domain Logic and its Applications to SAT Tudor Jebelean RISC Linz, Austria Tudor.Jebelean@risc.uni-linz.ac.at Gábor Kusper Eszterházy Károly College gkusper@aries.ektf.hu Abstract We describe a new

More information

cf2 Semantics Revisited 1

cf2 Semantics Revisited 1 cf2 Semantics Revisited 1 Sarah Alice GAGGL and Stefan WOLTRAN Institute of Information Systems 184, Vienna University of Technology, A-1040 Vienna, Austria Abstract. Abstract argumentation frameworks

More information

Answer Set Programming as SAT modulo Acyclicity

Answer Set Programming as SAT modulo Acyclicity Answer Set Programming as SAT modulo Acyclicity Martin Gebser, Tomi Janhunen, and Jussi Rintanen Helsinki Institute for Information Technology HIIT Department of Information and Computer Science Aalto

More information

Computer Science Technical Report

Computer Science Technical Report Computer Science Technical Report Feasibility of Stepwise Addition of Multitolerance to High Atomicity Programs Ali Ebnenasir and Sandeep S. Kulkarni Michigan Technological University Computer Science

More information

Propositional Logic. Part I

Propositional Logic. Part I Part I Propositional Logic 1 Classical Logic and the Material Conditional 1.1 Introduction 1.1.1 The first purpose of this chapter is to review classical propositional logic, including semantic tableaux.

More information

Semantic Forcing in Disjunctive Logic Programs

Semantic Forcing in Disjunctive Logic Programs Semantic Forcing in Disjunctive Logic Programs Marina De Vos and Dirk Vermeir Dept of Computer Science Free University of Brussels, VUB Pleinlaan 2, Brussels 1050, Belgium Abstract We propose a semantics

More information

Semantics for Dynamic Logic Programming: A Principle-Based Approach

Semantics for Dynamic Logic Programming: A Principle-Based Approach Semantics for Dynamic Logic Programming: A Principle-Based Approach José J. Alferes 1, Federico Banti 1, Antonio Brogi 2, and João A. Leite 1 1 CENTRIA, Universidade Nova de Lisboa, Portugal, {jja,banti,jleite}@di.fct.unl.pt

More information

RSA (Rivest Shamir Adleman) public key cryptosystem: Key generation: Pick two large prime Ô Õ ¾ numbers È.

RSA (Rivest Shamir Adleman) public key cryptosystem: Key generation: Pick two large prime Ô Õ ¾ numbers È. RSA (Rivest Shamir Adleman) public key cryptosystem: Key generation: Pick two large prime Ô Õ ¾ numbers È. Let Ò Ô Õ. Pick ¾ ½ ³ Òµ ½ so, that ³ Òµµ ½. Let ½ ÑÓ ³ Òµµ. Public key: Ò µ. Secret key Ò µ.

More information

STABILITY AND PARADOX IN ALGORITHMIC LOGIC

STABILITY AND PARADOX IN ALGORITHMIC LOGIC STABILITY AND PARADOX IN ALGORITHMIC LOGIC WAYNE AITKEN, JEFFREY A. BARRETT Abstract. Algorithmic logic is the logic of basic statements concerning algorithms and the algorithmic rules of deduction between

More information

Computing Answer Sets of a Logic Program via-enumeration of SAT certificates

Computing Answer Sets of a Logic Program via-enumeration of SAT certificates Computing Answer Sets of a Logic Program via-enumeration of SAT certificates Yuliya Lierler and Marco Maratea Department of Computer Sciences, University of Texas, Austin, USA Dipartimento di Informatica,

More information

Math 5593 Linear Programming Lecture Notes

Math 5593 Linear Programming Lecture Notes Math 5593 Linear Programming Lecture Notes Unit II: Theory & Foundations (Convex Analysis) University of Colorado Denver, Fall 2013 Topics 1 Convex Sets 1 1.1 Basic Properties (Luenberger-Ye Appendix B.1).........................

More information

Translation of Aggregate Programs to Normal Logic Programs

Translation of Aggregate Programs to Normal Logic Programs Translation of Aggregate rograms to Normal Logic rograms Nikolay elov arc Denecker and aurice Bruynooghe Dept. of Computer Science.U.Leuven Celestijnenlaan 00A B-3001 Heverlee Belgium E-mail: pelovmarcdmaurice

More information

A proof-producing CSP solver: A proof supplement

A proof-producing CSP solver: A proof supplement A proof-producing CSP solver: A proof supplement Report IE/IS-2010-02 Michael Veksler Ofer Strichman mveksler@tx.technion.ac.il ofers@ie.technion.ac.il Technion Institute of Technology April 12, 2010 Abstract

More information

Logic and Computation

Logic and Computation Logic and Computation From Conceptualization to Formalization Here's what we do when we build a formal model (or do a computation): 0. Identify a collection of objects/events in the real world. This is

More information

Repairing Preference-Based Argumentation Frameworks

Repairing Preference-Based Argumentation Frameworks Repairing Preference-Based Argumentation Frameworks Leila Amgoud IRIT CNRS 118, route de Narbonne 31062, Toulouse Cedex 09 amgoud@irit.fr Srdjan Vesic IRIT CNRS 118, route de Narbonne 31062, Toulouse Cedex

More information

Preferred Arguments are Harder to Compute than Stable Extensions

Preferred Arguments are Harder to Compute than Stable Extensions Preferred Arguments are Harder to Compute than Stable Extensions Yannis Dimopoulos Bernhard Nebel Francesca Toni University of Cyprus Universitat Freiburg Imperial College Dept. of Computer Science Institut

More information

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Foundations of AI 9. Predicate Logic Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Wolfram Burgard, Andreas Karwath, Bernhard Nebel, and Martin Riedmiller 09/1 Contents Motivation

More information

Complexity of unique list colorability

Complexity of unique list colorability Complexity of unique list colorability Dániel Marx 1 Department of Computer Science and Information Theory, Budapest University of Technology and Economics, Budapest H-151, Hungary. Abstract Given a list

More information

Lecture 6: Faces, Facets

Lecture 6: Faces, Facets IE 511: Integer Programming, Spring 2019 31 Jan, 2019 Lecturer: Karthik Chandrasekaran Lecture 6: Faces, Facets Scribe: Setareh Taki Disclaimer: These notes have not been subjected to the usual scrutiny

More information

The Inverse of a Schema Mapping

The Inverse of a Schema Mapping The Inverse of a Schema Mapping Jorge Pérez Department of Computer Science, Universidad de Chile Blanco Encalada 2120, Santiago, Chile jperez@dcc.uchile.cl Abstract The inversion of schema mappings has

More information

Logic Programming and Reasoning about Actions

Logic Programming and Reasoning about Actions Chapter 4 Logic Programming and Reasoning about Actions [Chitta Baral & Michael Gelfond] In this chapter we discuss how recent advances in logic programming can be used to represent and reason about actions

More information

Core Membership Computation for Succinct Representations of Coalitional Games

Core Membership Computation for Succinct Representations of Coalitional Games Core Membership Computation for Succinct Representations of Coalitional Games Xi Alice Gao May 11, 2009 Abstract In this paper, I compare and contrast two formal results on the computational complexity

More information

A CSP Search Algorithm with Reduced Branching Factor

A CSP Search Algorithm with Reduced Branching Factor A CSP Search Algorithm with Reduced Branching Factor Igor Razgon and Amnon Meisels Department of Computer Science, Ben-Gurion University of the Negev, Beer-Sheva, 84-105, Israel {irazgon,am}@cs.bgu.ac.il

More information

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition. 18.433 Combinatorial Optimization Matching Algorithms September 9,14,16 Lecturer: Santosh Vempala Given a graph G = (V, E), a matching M is a set of edges with the property that no two of the edges have

More information

A Knowledge Compilation Technique for ALC Tboxes

A Knowledge Compilation Technique for ALC Tboxes A Knowledge Compilation Technique for ALC Tboxes Ulrich Furbach and Heiko Günther and Claudia Obermaier University of Koblenz Abstract Knowledge compilation is a common technique for propositional logic

More information

COMP4418 Knowledge Representation and Reasoning

COMP4418 Knowledge Representation and Reasoning COMP4418 Knowledge Representation and Reasoning Week 3 Practical Reasoning David Rajaratnam Click to edit Present s Name Practical Reasoning - My Interests Cognitive Robotics. Connect high level cognition

More information

arxiv:cs/ v1 [cs.ai] 8 Mar 2000

arxiv:cs/ v1 [cs.ai] 8 Mar 2000 DLV A System for Declarative Problem Solving Thomas Eiter and Wolfgang Faber and Christoph Koch arxiv:cs/0003036v1 [cs.ai] 8 Mar 2000 Nicola Leone and Gerald Pfeifer Institut für Informationssysteme, TU

More information

Pbmodels Software to Compute Stable Models by Pseudoboolean Solvers

Pbmodels Software to Compute Stable Models by Pseudoboolean Solvers Pbmodels Software to Compute Stable Models by Pseudoboolean Solvers Lengning Liu and Mirosław Truszczyński Department of Computer Science, University of Kentucky, Lexington, KY 40506-0046, USA Abstract.

More information

Enforcement in Abstract Argumentation via Boolean Optimization

Enforcement in Abstract Argumentation via Boolean Optimization Enforcement in Abstract Argumentation via Boolean Optimization Andreas Niskanen MSc thesis University of Helsinki Department of Computer Science Helsinki, November 30, 2016 HELSINGIN YLIOPISTO HELSINGFORS

More information

PROPOSITIONAL LOGIC (2)

PROPOSITIONAL LOGIC (2) PROPOSITIONAL LOGIC (2) based on Huth & Ruan Logic in Computer Science: Modelling and Reasoning about Systems Cambridge University Press, 2004 Russell & Norvig Artificial Intelligence: A Modern Approach

More information

Binary Decision Diagrams

Binary Decision Diagrams Logic and roof Hilary 2016 James Worrell Binary Decision Diagrams A propositional formula is determined up to logical equivalence by its truth table. If the formula has n variables then its truth table

More information

Discrete Optimization. Lecture Notes 2

Discrete Optimization. Lecture Notes 2 Discrete Optimization. Lecture Notes 2 Disjunctive Constraints Defining variables and formulating linear constraints can be straightforward or more sophisticated, depending on the problem structure. The

More information

Solving disjunctive fuzzy answer set programs

Solving disjunctive fuzzy answer set programs Solving disjunctive fuzzy answer set programs LPNMR 2015 Preliminaries Fuzzy Answer Set Programming Fuzzy ASP = Fuzzy logic + ASP Allows graded truth values of atoms (usually in [0, 1]) Extends the operators,,

More information

An Experimental CLP Platform for Integrity Constraints and Abduction

An Experimental CLP Platform for Integrity Constraints and Abduction An Experimental CLP Platform for Integrity Constraints and Abduction Slim Abdennadher ½ and Henning Christiansen ¾ ½ ¾ Computer Science Department, University of Munich Oettingenstr. 67, 80538 München,

More information

Stepping with SeaLion

Stepping with SeaLion Stepping with SeaLion April 26, 2013 Contents 1 Introduction 1 1.1 Stepping Terminology in a Nut Shell.......................... 2 1.2 Set-up........................................... 2 1.3 The Toy Problem.....................................

More information

Abstract Modular Systems and Solvers

Abstract Modular Systems and Solvers Abstract Modular Systems and Solvers Yuliya Lierler 1 and Miroslaw Truszczynski 2 1 University of Nebraska at Omaha ylierler@unomaha.edu 2 University of Kentucky mirek@cs.uky.edu Abstract. Integrating

More information

Extending ASPIDE with User-defined Plugins

Extending ASPIDE with User-defined Plugins Extending ASPIDE with User-defined Plugins Onofrio Febbraro 1, Nicola Leone 2, Kristian Reale 2, and Francesco Ricca 2 1 DLVSystem s.r.l. - P.zza Vermicelli, Polo Tecnologico, 87036 Rende, Italy febbraro@dlvsystem.com

More information

Order and Negation as Failure

Order and Negation as Failure Order and Negation as Failure Davy Van Nieuwenborgh and Dirk Vermeir Dept of Computer Science Vrije Universiteit Brussel, VUB dvnieuwe,dvermeir @vubacbe Abstract We equip ordered logic programs with negation

More information

Building a Knowledge Base System for an integration of Logic Programming and Classical Logic

Building a Knowledge Base System for an integration of Logic Programming and Classical Logic Building a Knowledge Base System for an integration of Logic Programming and Classical Logic Marc Denecker and Joost Vennekens Department Computer Science, Katholieke Universiteit Leuven Celestijnenlaan

More information

The Tractability of Global Constraints

The Tractability of Global Constraints The Tractability of Global Constraints Christian Bessiere ½, Emmanuel Hebrard ¾, Brahim Hnich ¾, and Toby Walsh ¾ ¾ ½ LIRMM-CNRS, Montpelier, France. bessiere@lirmm.fr Cork Constraint Computation Center,

More information

Extending Object-Oriented Languages by Declarative Specifications of Complex Objects using Answer-Set Programming

Extending Object-Oriented Languages by Declarative Specifications of Complex Objects using Answer-Set Programming Extending Object-Oriented Languages by Declarative Specifications of Complex Objects using Answer-Set Programming Johannes Oetsch, Jörg Pührer, and Hans Tompits Institut für Informationssysteme 184/3,

More information

Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV*

Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV* Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV* Tina Dell'Armi Dept. of Mathematics, Univ. of Calabria 87030 Rende (CS), Italy dellarmi@mat.unical.it

More information

Inferring preferred extensions by Pstable semantics

Inferring preferred extensions by Pstable semantics Inferring preferred extensions by Pstable semantics Juan Carlos Nieves 1 and Mauricio Osorio 2 1 Universitat Politècnica de Catalunya Software Department (LSI) c/jordi Girona 1-3, E08034, Barcelona, Spain

More information

Principles of AI Planning. Principles of AI Planning. 7.1 How to obtain a heuristic. 7.2 Relaxed planning tasks. 7.1 How to obtain a heuristic

Principles of AI Planning. Principles of AI Planning. 7.1 How to obtain a heuristic. 7.2 Relaxed planning tasks. 7.1 How to obtain a heuristic Principles of AI Planning June 8th, 2010 7. Planning as search: relaxed planning tasks Principles of AI Planning 7. Planning as search: relaxed planning tasks Malte Helmert and Bernhard Nebel 7.1 How to

More information

Linear Time Unit Propagation, Horn-SAT and 2-SAT

Linear Time Unit Propagation, Horn-SAT and 2-SAT Notes on Satisfiability-Based Problem Solving Linear Time Unit Propagation, Horn-SAT and 2-SAT David Mitchell mitchell@cs.sfu.ca September 25, 2013 This is a preliminary draft of these notes. Please do

More information

An Algorithm for Computing Semi-Stable Semantics

An Algorithm for Computing Semi-Stable Semantics An Algorithm for Computing Semi-Stable Semantics Martin Caminada Department of Information and Computing Sciences, Utrecht University Technical Report UU-CS-2007-010 www.cs.uu.nl ISSN: 0924-3275 An Algorithm

More information

The DLV Java Wrapper

The DLV Java Wrapper The DLV Java Wrapper Francesco Ricca Department of Mathematics University of Calabria, 87030 Rende (CS), Italy ricca@mat.unical.it Abstract. Disjunctive logic programs are a powerful tool in knowledge

More information

An Interactive Approach to Answer Set Programming

An Interactive Approach to Answer Set Programming An Interactive Approach to Answer Set Programming Martin Brain 1, Richard Watson 2, and Marina De Vos 1 1 Department of Computer Science, University of Bath Bath, United Kingdom {mjb,mdv@cs.bath.ac.uk

More information

LTCS Report. Concept Descriptions with Set Constraints and Cardinality Constraints. Franz Baader. LTCS-Report 17-02

LTCS Report. Concept Descriptions with Set Constraints and Cardinality Constraints. Franz Baader. LTCS-Report 17-02 Technische Universität Dresden Institute for Theoretical Computer Science Chair for Automata Theory LTCS Report Concept Descriptions with Set Constraints and Cardinality Constraints Franz Baader LTCS-Report

More information

Nonmonotonic Databases and Epistemic Queries*

Nonmonotonic Databases and Epistemic Queries* Nonmonotonic Databases and Epistemic Queries* Vladimir Lifschitz Department of Computer Sciences and Department of Philosophy University of Texas at Austin Austin, TX 78712, U. S. A. Abstract The approach

More information

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,, CMPSCI 601: Recall From Last Time Lecture 5 Definition: A context-free grammar (CFG) is a 4- tuple, variables = nonterminals, terminals, rules = productions,,, are all finite. 1 ( ) $ Pumping Lemma for

More information

I N F S Y S R E S E A R C H R E P O R T. Error-Tolerant Agents INSTITUT FÜR INFORMATIONSSYSTEME ABTEILUNG WISSENSBASIERTE SYSTEME

I N F S Y S R E S E A R C H R E P O R T. Error-Tolerant Agents INSTITUT FÜR INFORMATIONSSYSTEME ABTEILUNG WISSENSBASIERTE SYSTEME I N F S Y S R E S E A R C H R E P O R T INSTITUT FÜR INFORMATIONSSYSTEME ABTEILUNG WISSENSBASIERTE SYSTEME Error-Tolerant Agents Thomas Eiter Viviana Mascardi V.S. Subrahmanian INFSYS RESEARCH REPORT 1843-00-07

More information

Chordal deletion is fixed-parameter tractable

Chordal deletion is fixed-parameter tractable Chordal deletion is fixed-parameter tractable Dániel Marx Institut für Informatik, Humboldt-Universität zu Berlin, Unter den Linden 6, 10099 Berlin, Germany. dmarx@informatik.hu-berlin.de Abstract. It

More information

Dominance Constraints and Dominance Graphs

Dominance Constraints and Dominance Graphs Dominance Constraints and Dominance Graphs David Steurer Saarland University Abstract. Dominance constraints logically describe trees in terms of their adjacency and dominance, i.e. reachability, relation.

More information

Intelligence Analysis Using Quantitative Preferences

Intelligence Analysis Using Quantitative Preferences Intelligence Analysis Using Quantitative Preferences Davy Van Nieuwenborgh, Stijn Heymans, and Dirk Vermeir Dept. of Computer Science Vrije Universiteit Brussel, VUB Pleinlaan 2, B1050 Brussels, Belgium

More information

Scalable Web Service Composition with Partial Matches

Scalable Web Service Composition with Partial Matches Scalable Web Service Composition with Partial Matches Adina Sirbu and Jörg Hoffmann Digital Enterprise Research Institute (DERI) University of Innsbruck, Austria firstname.lastname@deri.org Abstract. We

More information

Formally-Proven Kosaraju s algorithm

Formally-Proven Kosaraju s algorithm Formally-Proven Kosaraju s algorithm Laurent Théry Laurent.Thery@sophia.inria.fr Abstract This notes explains how the Kosaraju s algorithm that computes the strong-connected components of a directed graph

More information

FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC. Angel Garrido

FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC. Angel Garrido Acta Universitatis Apulensis ISSN: 1582-5329 No. 22/2010 pp. 101-111 FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC Angel Garrido Abstract. In this paper, we analyze the more adequate tools to solve many

More information