Automated verification of weak equivalence within the SMODELS system
Tomi Janhunen, Emilia Oikarinen

TL;DR
This paper introduces a translation-based method and tool for automatically verifying weak equivalence of logic programs in answer set programming, improving efficiency over naive methods.
Contribution
It presents a novel translation approach for checking program equivalence and implements it as the lpeq tool within the smodels system.
Findings
Verification can be faster than naive cross-checking
Method effectively handles visibility of atoms in answer sets
Implementation demonstrates practical utility in ASP development
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 meta-level 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 translation-based 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 counter-examples to the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, Reasoning, and Knowledge · Multi-Agent Systems and Negotiation · Logic, programming, and type systems
