Disjunctive ASP with functions: Decidable queries and effective computation
- 9 July 2010
- journal article
- research article
- Published by Cambridge University Press (CUP) in Theory and Practice of Logic Programming
- Vol. 10 (4-6) , 497-512
Abstract
Querying over disjunctive ASP with functions is a highly undecidable task in general. In this paper we focus on disjunctive logic programs with stratified negation and functions under the stable model semantics (ASPfs). We show that query answering in this setting is decidable, if the query is finitely recursive (ASPfsfr). Our proof yields also an effective method for query evaluation. It is done by extending the magic set technique to ASPfsfr. We show that the magic-set rewritten program is query equivalent to the original one (under both brave and cautious reasoning). Moreover, we prove that the rewritten program is also finitely ground, implying that it is decidable. Importantly, finitely ground programs are evaluable using existing ASP solvers, making the class of ASPfsfr queries usable in practice.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- On finitely recursive programsTheory and Practice of Logic Programming, 2009
- Magic Sets for the Bottom-Up Evaluation of Finitely Recursive ProgramsLecture Notes in Computer Science, 2009
- GrinGo: A New Grounder for Answer Set Programming2007
- Termination analysis of logic programs through combination of type-based normsACM Transactions on Programming Languages and Systems, 2007
- Reasoning with infinite stable modelsArtificial Intelligence, 2004
- Binding propagation techniques for the optimization of bound disjunctive queriesIEEE Transactions on Knowledge and Data Engineering, 2003
- Knowledge Representation, Reasoning and Declarative Problem Solving2003
- Bottom-up evaluation and query optimization of well-founded modelsTheoretical Computer Science, 1995
- Classical negation in logic programs and disjunctive databasesNew Generation Computing, 1991
- On the power of magicThe Journal of Logic Programming, 1991