Backdoors to Normality for Disjunctive Logic Programs

The main reasoning problems for disjunctive logic programs are complete for the second level of the polynomial hierarchy and hence considered harder than the same problems for normal (i.e., disjunction-free) programs, which are on the first level. We propose a new exact method for solving the disjunctive problems which exploits the small distance of a disjunctive programs from being normal. The distance is measured in terms of the size of a smallest “backdoor to normality,” which is the smallest number of atoms whose deletion makes the program normal. Our method consists of three phases. In the first phase, a smallest backdoor is computed. We show that this can be done using an efficient algorithm for computing a smallest vertex cover of a graph. In the second phase, the backdoor is used to transform the logic program into a quantified Boolean formula (QBF) where the number of universally quantified variables equals the size of the backdoor and where the total size of the quantified Boolean formula is quasilinear in the size of the given logic program. The quasilinearity is achieved by means of a characterization of the least model of a Horn program in terms of level numberings. In a third phase, the universal variables are eliminated using universal expansion yielding a propositional formula. The blowup in the last phase is confined to a factor that is exponential in the size of the backdoor but linear in the size of the quantified Boolean formula. By checking the satisfiability of the resulting formula with a Sat solver (or by checking the satisfiability of the quantified Boolean formula by a Qbf-Sat solver), we can decide the Asp reasoning problems on the input program. In consequence, we have a transformation from Asp problems to propositional satisfiability where the combinatorial explosion, which is expected when transforming a problem from the second level of the polynomial hierarchy to the first level, is confined to a function of the distance to normality of the input program. In terms of parameterized complexity, the transformation is fixed-parameter tractable. We complement this result by showing that (under plausible complexity-theoretic assumptions) such a fixed-parameter tractable transformation is not possible if we consider the distance to tightness instead of distance to normality.

[1]  Johannes Klaus Fichte The Good, the Bad, and the Odd: Cycles in Answer-Set Programs , 2011, ESSLLI Student Sessions.

[2]  Stefan Szeider,et al.  Backdoors to Tractable Answer-Set Programming , 2011, IJCAI.

[3]  Dov M. Gabbay,et al.  What Is Negation as Failure? , 2012, Logic Programs, Norms and Action.

[4]  David A. Basin,et al.  Bounded Model Construction for Monadic Second-Order Logics , 2000, CAV.

[5]  Giovambattista Ianni,et al.  The third open answer set programming competition , 2012, Theory and Practice of Logic Programming.

[6]  Alexander A. Razborov,et al.  Why are there so many loop formulas? , 2006, TOCL.

[7]  Albert R. Meyer,et al.  Word problems requiring exponential time(Preliminary Report) , 1973, STOC.

[8]  Miroslaw Truszczynski,et al.  The First Answer Set Programming System Competition , 2007, LPNMR.

[9]  Stefan Szeider,et al.  Backdoors to Satisfaction , 2011, The Multivariate Algorithmic Revolution and Beyond.

[10]  Stefan Szeider,et al.  The Parameterized Complexity of Reasoning Problems Beyond NP , 2013, KR.

[11]  Miroslaw Truszczynski,et al.  Answer set programming at a glance , 2011, Commun. ACM.

[12]  Yuliya Lierler,et al.  cmodels - SAT-Based Disjunctive Answer Set Solver , 2005, LPNMR.

[13]  Rina Dechter,et al.  Propositional semantics for disjunctive logic programs , 1994, Annals of Mathematics and Artificial Intelligence.

[14]  Jack Minker,et al.  Logic and Data Bases , 1978, Springer US.

[15]  Ge Xia,et al.  Improved Parameterized Upper Bounds for Vertex Cover , 2006, MFCS.

[16]  Timo Soininen,et al.  Extending and implementing the stable model semantics , 2000, Artif. Intell..

[17]  Yannet Interian,et al.  A Model for Generating Random Quantified Boolean Formulas , 2005, IJCAI.

[18]  Armin Biere,et al.  Bridging the gap between dual propagation and CNF-based QBF solving , 2013, 2013 Design, Automation & Test in Europe Conference & Exhibition (DATE).

[19]  Tomi Janhunen,et al.  Some (in)translatability results for normal logic programs and propositional theories , 2006, J. Appl. Non Class. Logics.

[20]  Fedor V. Fomin,et al.  The Multivariate Algorithmic Revolution and Beyond , 2012, Lecture Notes in Computer Science.

[21]  Ilkka Niemelä,et al.  Computing Stable Models via Reductions to Difference Logic , 2009, LPNMR.

[22]  Victor W. Marek,et al.  The Logic Programming Paradigm: A 25-Year Perspective , 2011 .

[23]  Naomi Nishimura,et al.  Detecting Backdoor Sets with Respect to Horn and Binary Clauses , 2004, SAT.

[24]  Mikolás Janota,et al.  cmMUS: A Tool for Circumscription-Based MUS Membership Testing , 2011, LPNMR.

[25]  Hans K. Buning,et al.  Propositional Logic: Deduction and Algorithms , 1999 .

[26]  Cesare Tinelli,et al.  Handbook of Satisfiability , 2021, Handbook of Satisfiability.

[27]  Wolfgang Faber,et al.  The DLV system for knowledge representation and reasoning , 2002, TOCL.

[28]  Yuliya Lierler,et al.  Answer Set Programming Based on Propositional Satisfiability , 2006, Journal of Automated Reasoning.

[29]  Moshe Y. Vardi On P, NP, and computational complexity , 2010, Commun. ACM.

[30]  N. Leone,et al.  Look-Back Techniques and Heuristics in DLV : Implementation and Evaluation ! , 2007 .

[31]  Michael R. Fellows,et al.  Fundamentals of Parameterized Complexity , 2013 .

[32]  G. S. Tseitin On the Complexity of Derivation in Propositional Calculus , 1983 .

[33]  Robert A. Kowalski,et al.  The Semantics of Predicate Logic as a Programming Language , 1976, JACM.

[34]  Stefan Woltran,et al.  Modularity Aspects of Disjunctive Stable Models , 2007, LPNMR.

[35]  Wolfgang Faber,et al.  Look-back techniques and heuristics in DLV: Implementation, evaluation, and comparison to QBF solvers , 2008, J. Algorithms.

[36]  Jörg Flum,et al.  Describing parameterized complexity classes , 2003, Inf. Comput..

[37]  Stefan Woltran,et al.  Computing Stable Models with Quantified Boolean Formulas: Some Experimental Results , 2001, Answer Set Programming.

[38]  Stefan Woltran,et al.  Solving Advanced Reasoning Tasks Using Quantified Boolean Formulas , 2000, AAAI/IAAI.

[39]  Martin Gebser,et al.  Advanced Conflict-Driven Disjunctive Answer Set Solving , 2013, IJCAI.

[40]  Georg Gottlob,et al.  On the computational cost of disjunctive logic programming: Propositional case , 1995, Annals of Mathematics and Artificial Intelligence.

[41]  Joohyung Lee,et al.  Loop Formulas for Disjunctive Logic Programs , 2003, ICLP.

[42]  Toby Walsh,et al.  Handbook of Satisfiability: Volume 185 Frontiers in Artificial Intelligence and Applications , 2009 .

[43]  OstrowskiMax,et al.  Potassco: The Potsdam Answer Set Solving Collection , 2011 .

[44]  Bart Selman,et al.  Backdoors To Typical Case Complexity , 2003, IJCAI.

[45]  Martin Gebser,et al.  Conflict-Driven Answer Set Solving , 2007, IJCAI.

[46]  Miroslaw Truszczynski,et al.  Dual-normal logic programs – the forgotten class , 2015, Theory and Practice of Logic Programming.

[47]  Bart Selman,et al.  On the connections between backdoors, restarts, and heavy-tailedness in combinatorial search , 2003 .

[48]  Victor W. Marek,et al.  Autoepistemic logic , 1991, JACM.

[49]  Ilkka Niemelä,et al.  Logic programs with stable model semantics as a constraint programming paradigm , 1999, Annals of Mathematics and Artificial Intelligence.

[50]  Florian Lonsing,et al.  Long-Distance Resolution: Proof Generation and Strategy Extraction in Search-Based QBF Solving , 2013, LPAR.

[51]  Jürgen Dix,et al.  Characterizations of the Disjunctive Well-founded Semantics: Confluent Calculi and Iterated Gcwa , 1997 .

[52]  Sharad Malik,et al.  Boolean satisfiability from theoretical hardness to practical success , 2009, Commun. ACM.

[53]  Georg Gottlob,et al.  Fixed-Parameter Algorithms For Artificial Intelligence, Constraint Satisfaction and Database Problems , 2007, Comput. J..

[54]  J. van Leeuwen,et al.  Logic Programming , 2002, Lecture Notes in Computer Science.

[55]  Michael R. Fellows,et al.  Parameterized Complexity , 1998 .

[56]  Stefan Rümmele,et al.  Backdoors to Abduction , 2013, IJCAI.

[57]  Jean H. Gallier,et al.  Linear-Time Algorithms for Testing the Satisfiability of Propositional Horn Formulae , 1984, J. Log. Program..

[58]  Joao Marques-Silva,et al.  Empirical Study of the Anatomy of Modern Sat Solvers , 2011, SAT.

[59]  Victor W. Marek,et al.  The Logic Programming Paradigm , 1999, Artificial Intelligence.

[60]  Salil P. Vadhan,et al.  Computational Complexity , 2005, Encyclopedia of Cryptography and Security.

[61]  David A. Basin,et al.  QUBOS: Deciding Quantified Boolean Logic Using Propositional Satisfiability Solvers , 2002, FMCAD.

[62]  Armin Biere,et al.  DepQBF: A Dependency-Aware QBF Solver , 2010, J. Satisf. Boolean Model. Comput..

[63]  Michael Gelfond,et al.  Classical negation in logic programs and disjunctive databases , 1991, New Generation Computing.

[64]  Rolf Niedermeier,et al.  Invitation to Fixed-Parameter Algorithms , 2006 .

[65]  Mario Alviano,et al.  The Third Answer Set Programming Competition: Preliminary Report of the System Competition Track , 2011, LPNMR.

[66]  Jörg Flum,et al.  Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series) , 2006 .

[67]  François Fages,et al.  Consistency of Clark's completion and existence of stable models , 1992, Methods Log. Comput. Sci..

[68]  J. Davenport Editor , 1960 .

[69]  Graham Wrightson,et al.  Automation of reasoning--classical papers on computational logic , 2012 .

[70]  Armin Biere,et al.  DepQBF: A Dependency-Aware QBF Solver (System Description) , 2010 .

[71]  Stefan Szeider,et al.  Fixed-Parameter Tractable Reductions to SAT , 2014, SAT.

[72]  Enrico Pontelli,et al.  A Conformant Planner with Explicit Disjunctive Representation of Belief States , 2009, ICAPS.

[73]  Tomi Janhunen,et al.  Representing Normal Programs with Clauses , 2004, ECAI.

[74]  Martin Gebser,et al.  Detecting Inconsistencies in Large Biological Networks with Answer Set Programming , 2008, ICLP.

[75]  Yuliya Lierler,et al.  Fages' Theorem and Answer Set Programming , 2000, ArXiv.

[76]  Y. Gurevich On Finite Model Theory , 1990 .

[77]  Armin Biere,et al.  Resolve and Expand , 2004, SAT.

[78]  J. Meigs,et al.  WHO Technical Report , 1954, The Yale Journal of Biology and Medicine.

[79]  Miroslaw Truszczynski Trichotomy and dichotomy results on the complexity of reasoning with disjunctive logic programs , 2011, Theory Pract. Log. Program..

[80]  Christine Froidevaux,et al.  Negation by Default and Unstratifiable Logic Programs , 1991, Theor. Comput. Sci..

[81]  Victor W. Marek,et al.  Stable models and an alternative logic programming paradigm , 1998, The Logic Programming Paradigm.

[82]  Martin Gebser,et al.  Answer Set Programming as SAT modulo Acyclicity , 2014, ECAI.

[83]  K FichteJohannes,et al.  Backdoors to Normality for Disjunctive Logic Programs , 2015 .

[84]  Stefan Szeider,et al.  Parameterized Complexity Results for Agenda Safety in Judgment Aggregation , 2015, AAMAS.

[85]  Joohyung Lee,et al.  A Model-Theoretic Counterpart of Loop Formulas , 2005, IJCAI.

[86]  Jörg Flum,et al.  Parameterized Complexity Theory , 2006, Texts in Theoretical Computer Science. An EATCS Series.

[87]  Martin Gebser,et al.  Conflict-Driven Disjunctive Answer Set Solving , 2008, KR.

[88]  Stefan Woltran,et al.  Simplifying Logic Programs Under Uniform and Strong Equivalence , 2004, LPNMR.

[89]  Marius Thomas Lindauer,et al.  Potassco: The Potsdam Answer Set Solving Collection , 2011, AI Commun..

[90]  Fangzhen Lin,et al.  ASSAT: computing answer sets of a logic program by SAT solvers , 2002, Artif. Intell..

[91]  Jia-Huai You,et al.  Unfolding partiality and disjunctions in stable model semantics , 2000, TOCL.

[92]  Keith L. Clark,et al.  Negation as Failure , 1987, Logic and Data Bases.

[93]  Stefan Woltran,et al.  On Eliminating Disjunctions in Stable Logic Programming , 2004, KR.

[94]  Victor W. Marek,et al.  Computing Intersection of Autoepistemic Expansions , 1991, LPNMR.