TESTING THE EQUIVALENCE OF DISJUNCTIVE LOGIC PROGRAMS

To solve a problem in answer set programming (ASP), one constructs a logic program so that its answer sets correspond to the solutions of the problem and computes the answer sets of the program using a special purpose search engine. The encodings are not unique, i.e. several versions of a program can be used e.g. in optimizing the execution time or space. Since the solutions to the problem correspond to answer sets of the program, it is necessary to ensure that the different encodings yield the same output. In ASP this means that one has to check whether given two logic programs have the same answer sets, i.e., whether they are semantically equivalent. We consider in this thesis the class of disjunctive logic programs, that form a proper generalization of normal logic programs. The equivalence of logic programs P and Q can naturally be verified using an explicit cross-check of all the answer sets of both programs. The aim in this thesis is, however, to develop a systematic method for testing the equivalence so that a naive cross-check of answer sets is not needed. The idea is to translate logic programs P and Q into a single logic program that has an answer set if and only if P has an answer set that is not an answer set of Q. Thus answer sets of the translation (if found), act as a counter-examples for the equivalence of P and Q. The counterexamples for equivalence divide naturally in two types. Thus the search for counterexamples can be performed separately for both types using a two-phased translation. We have implemented the translation functions. Experiments with the implementation show that in several cases the translation-based approach is superior to the naive cross-checking approach, especially, if the programs to be tested have several answer sets and are likely to be nonequivalent. If the number of answer sets is low, then the naive cross-checking approach is likely to be faster. Furthermore, in general it is faster to use the two-phased translation.

[1]  Toby Walsh,et al.  Beyond NP: the QSAT phase transition , 1999, AAAI/IAAI.

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

[3]  Chiaki Sakama,et al.  Negation as Failure in the Head , 1998, J. Log. Program..

[4]  Fangzhen Lin Reducing Strong Equivalence of Logic Programs to Entailment in Classical Propositional Logic , 2002, KR.

[5]  J. Wallén ON THE DIFFERENTIAL AND LINEAR PROPERTIES OF ADDITION , 2003 .

[6]  Tomi Janhunen On the Effect of Default Negation on the Expressiveness of Disjunctive Rules , 2001, LPNMR.

[7]  Tommi A. Junttila,et al.  On the symmetry reduction method for Petri nets and similar formalisms , 2003 .

[8]  Martin D. F. Wong,et al.  Wire Routing and Satisfiability Planning , 2000, Computational Logic.

[9]  Stefan Woltran,et al.  A polynomial translation of logic programs with nested expressions into disjunctive logic programs: preliminary report , 2002, NMR.

[10]  J. Lloyd Foundations of Logic Programming , 1984, Symbolic Computation.

[11]  Stefan Woltran,et al.  Encodings for Equilibrium Logic and Logic Programs with Nested Expressions , 2001, EPIA.

[12]  Peter J. F. Lucas,et al.  Analysis of Notions of Diagnosis , 1998, Artif. Intell..

[13]  Heikki Tauriainen,et al.  ON TRANSLATING LINEAR TEMPORAL LOGIC INTO ALTERNATING AND NONDETERMINISTIC AUTOMATA , 2003 .

[14]  David Pearce,et al.  Strongly equivalent logic programs , 2001, ACM Trans. Comput. Log..

[15]  Michael Gelfond,et al.  Logic Programs with Classical Negation , 1990, ICLP.

[16]  Tommi A. Junttila SYMMETRY REDUCTION ALGORITHMS FOR DATA SYMMETRIES , 2002 .

[17]  Marko Mäkelä,et al.  Efficient computer-aided verification of parallel and distributed software systems , 2003 .

[18]  M. F.,et al.  Bibliography , 1985, Experimental Gerontology.

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

[20]  Toni Jussila,et al.  BOUNDED MODEL CHECKING FOR VERIFYING CONCURRENT PROGRAMS , 2002 .

[21]  Keijo Heljanko,et al.  Using Logic Programs with Stable Model Semantics to Solve Deadlock and Reachability Problems for 1-Safe Petri Nets , 1999, Fundam. Informaticae.

[22]  Tommi A. Junttila New Canonical Representative Marking Algorithms for Place/Transition-Nets , 2004, ICATPN.

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

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

[25]  P. Kaski A CENSUS OF STEINER TRIPLE SYSTEMS AND SOME RELATED COMBINATORIAL OBJECTS , 2002 .

[26]  Ilkka Niemelä,et al.  DES: a Challenge Problem for Nonmonotonic Reasoning Systems , 2000, ArXiv.

[27]  Georg Gottlob,et al.  The complexity of logic-based abduction , 1993, JACM.

[28]  T. Janhunen TRANSLATABILITY AND INTRANSLATABILITY RESULTS FOR CERTAIN CLASSES OF LOGIC PROGRAMS , 2003 .

[29]  Gerald Pfeifer,et al.  The KR System dlv: Progress Report, Comparisons and Benchmarks , 1998, KR.

[30]  Tomi Janhunen,et al.  Testing the Equivalence of Logic Programs under Stable Model Semantics , 2002, JELIA.

[31]  Sam Sandqvist,et al.  Aspects of modelling and simulation of genetic algorithms : a formal approach , 2002 .

[32]  Danny De Schreye,et al.  Answer Set Planning , 1999 .

[33]  Vladimir Lifschitz,et al.  Nested expressions in logic programs , 1999, Annals of Mathematics and Artificial Intelligence.

[34]  TurnerHudson Strong equivalence made easy: nested expressions and weight constraints , 2003 .

[35]  Vladimir Lifschitz,et al.  Weight constraints as nested expressions , 2003, Theory and Practice of Logic Programming.

[36]  Jürgen Dix,et al.  Characterizations of the Stable Semantics by Partial Evaluation , 1994, LPNMR.

[37]  Hudson Turner,et al.  Strong equivalence made easy: nested expressions and weight constraints , 2003, Theory and Practice of Logic Programming.

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