Reference:
Tomi Janhunen and Emilia Oikarinen. Automated verification of weak equivalence within the smodels system. Theory and Practice of Logic Programming, 7(6):697–744, 2007.
Abstract:
In answer set programming (ASP), a problem at hand is solved by (i) writing a logic program whose answer sets correspond to the solutions of the problem, and by (ii) computing the answer sets of the program using an answer set solver as a search engine. Typically, a programmer creates a series of gradually improving logic programs for a particular problem when optimizing program length and execution time on a particular solver. This leads the programmer to a metalevel problem of ensuring that the programs are equivalent, i.e., they give rise to the same answer sets. To ease answer set programming at methodological level, we propose a translationbased method for verifying the equivalence of logic programs. The basic idea is to translate logic programs P and Q under consideration into a single logic program EQT(P,Q) whose answer sets (if such exist) yield counterexamples to the equivalence of P and Q. The method is developed here in a slightly more general setting by taking the visibility of atoms properly into account when comparing answer sets. The translationbased approach presented in the paper has been implemented as a translator called LPEQ that enables the verification of weak equivalence within the Smodels system using the same search engine as for the search of models. Our experiments with LPEQ and Smodels suggest that establishing the equivalence of logic programs in this way is in certain cases much faster than naive crosschecking of answer sets.
Keywords:
Answer set programming, weak equivalence, programming methodology, program optimization
Suggested BibTeX entry:
@article{JO07:tplp,
author = {Tomi Janhunen and Emilia Oikarinen},
journal = {Theory and Practice of Logic Programming},
number = {6},
pages = {697744},
title = {Automated Verification of Weak Equivalence within the SMODELS System},
volume = {7},
year = {2007},
}
