Beyond Uniform Equivalence between Answer-set Programs

被引:3
|
作者
Oetsch, Johannes [1 ,2 ]
Seidl, Martina [3 ]
Tompits, Hans [2 ]
Woltran, Stefan [2 ]
机构
[1] Bosch Ctr Artificial Intelligence, Robert Bosch Campus 1, D-71272 Berlin, Germany
[2] Tech Univ Wien, Inst Log & Computat, Favoritenstr 9-11, A-1040 Vienna, Austria
[3] Johannes Kepler Univ Linz, Inst Formal Models & Verificat, Altenbergerstr 69, A-4040 Linz, Austria
基金
奥地利科学基金会;
关键词
Answer-set programming; disjunctive logic programs; nonmonotonic reasoning; program equivalence; quantified Boolean logic; SIMPLIFYING LOGIC PROGRAMS; QBFS; DIAGNOSIS; NETWORKS; NEGATION; NOTIONS; SYSTEM; SOLVER;
D O I
10.1145/3422361
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This article deals with advanced notions of equivalence between nonmonotonic logic programs under the answer-set semantics, a topic of considerable interest, because such notions form the basis for program verification and are useful for program optimisation, debugging, and modular programming. In fact, there is extensive research in answer-set programming (ASP) dealing with different notions of equivalence between programs. Prominent among these notions is uniform equivalence, which checks whether two programs have the same semantics when joined with an arbitrary set of facts. In this article, we study a family of more fine-grained versions of uniform equivalence, viz. relativised uniform equivalence with projection, which extends standard uniform equivalence in terms of two additional parameters: one for specifying the input alphabet and one for specifying the output alphabet for programs. In particular, the second parameter is used for projecting answer sets to a set of designated output atoms. Answer-set projection, in particular, allows to compare programs that make use of different auxiliary atoms, which is important for practical programming aspects. We introduce novel semantic characterisations for the program correspondence problems under consideration and analyse their computational complexity. In the general case, deciding these problems lies on the third level of the polynomial hierarchy. Therefore, this task cannot be efficiently reduced to propositional answer-set programs itself (under the usual complexity-theoretic assumptions). However, reductions to quantified Boolean formulas (QBFs) are feasible. Indeed, we provide efficient (in fact, linear-time constructible) reductions to QBFs and discuss simplifications for certain special cases. These QBF reductions yield the basis for a prototype implementation, the system ccT, for deciding correspondence problems by using off-the-shelf QBF solvers. We discuss an application of cc T for verifying the correctness of solutions by students drawn from a laboratory course on logic programming and knowledge representation at the Technische Universitat Wien, employing relativised uniform equivalence with projection as the underlying program correspondence notion.
引用
收藏
页数:46
相关论文
共 50 条
  • [1] Equivalence between answer-set programs under (partially) fixed input
    Bliem, Bernhard
    Woltran, Stefan
    ANNALS OF MATHEMATICS AND ARTIFICIAL INTELLIGENCE, 2018, 83 (3-4) : 277 - 295
  • [2] Equivalence Between Answer-Set Programs Under (Partially) Fixed Input
    Bliem, Bernhard
    Woltran, Stefan
    FOUNDATIONS OF INFORMATION AND KNOWLEDGE SYSTEMS (FOIKS 2016), 2016, 9616 : 95 - 111
  • [3] Equivalence between answer-set programs under (partially) fixed input
    Bernhard Bliem
    Stefan Woltran
    Annals of Mathematics and Artificial Intelligence, 2018, 83 : 277 - 295
  • [4] On Testing Answer-Set Programs
    Janhunen, Tomi
    Niemela, Ilkka
    Oetsch, Johannes
    Puhrer, Jorg
    Tompits, Hans
    ECAI 2010 - 19TH EUROPEAN CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2010, 215 : 950 - 955
  • [5] A common view on strong, uniform, and other notions of equivalence in answer-set programming
    Woltran, Stefan
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2008, 8 (217-234) : 217 - 234
  • [6] Annotating answer-set programs in LANA
    De Vos, Marina
    Kisa, Doga Gizem
    Oetsch, Johannes
    Puehrer, Joerg
    Tompits, Hans
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2012, 12 : 619 - 637
  • [7] Stepwise debugging of answer-set programs
    Oetsch, Johannes
    Puehrer, Joerg
    Tompits, Hans
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2018, 18 (01) : 30 - 80
  • [8] Contrastive Explanations for Answer-Set Programs
    Eiter, Thomas
    Geibinger, Tobias
    Oetsch, Johannes
    LOGICS IN ARTIFICIAL INTELLIGENCE, JELIA 2023, 2023, 14281 : 73 - 89
  • [9] Testing Relativised Uniform Equivalence under Answer-Set Projection in the System ccinverted perpendicular
    Oetsch, Johannes
    Seidl, Martina
    Tompits, Hans
    Woltran, Stefan
    APPLICATIONS OF DECLARATIVE PROGRAMMING AND KNOWLEDGE MANAGEMENT: 17TH INTERNATIONAL CONFERENCE, INAP 2007/21ST WORKSHOP ON LOGIC PROGRAMMING, WLP 2007, 2009, 5437 : 241 - +
  • [10] On Semantic Update Operators for Answer-Set Programs
    Slota, Martin
    Leite, Joao
    ECAI 2010 - 19TH EUROPEAN CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2010, 215 : 956 - 961