Abstract
Schlipf [Sch95] proved that Stable Logic Programming (SLP) solves all NP decision problems. We extend Schlipf’s result to prove that SLP solves all search problems in the class NP. Moreover, we do this in a uniform way as defined in [MT99]. Specifically, we show that there is a single DATALOG⌝ program P Trg such that given any Turing machine M, any polynomial p with non-negative integer coefficients and any input σ of size n over a fixed alphabet ∑, there is an extensional database edb M,p,σ such that there is a one-to-one correspondence between the stable models of edb M,p,σ ∪ PTrg and the accepting computations of the machine M that reach the final state in at most p(n) steps. Moreover, edb M,p,σ can be computed in polynomial time from p, σ and the description of M and the decoding of such accepting computations from its corresponding stable model of edb M,p,σ ∪ P Trg can be computed in linear time. A similar statement holds for Default Logic with respect to∑stackP stack2-search problems.
We also show that there is single program Meta which is a metainterpreter for SLP programs. That is, for any program Q, there there is an encoding of Q as an extensional data base edb Q such that the stable models of Meta ∪ edb Q are in one-to-one correspondence with the stable models of Q.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
K. R. Apt. Logic Programming. in Handbook of Theoretical Computer Science, pp. 475–574. Elsevier, 1990. 107
K. R. Apt and H. A. Blair. Arithmetical classification of perfect models of stratified programs. Fundamenta Informaticae, 12:1–17, 1990. 109
K. Apt, H. A. Blair, and A. Walker. Towards a theory of declarative knowledge. In J. Minker, editor, Foundations of deductive databases and logic programming, pages 89–142, Los Altos, CA, 1988. Morgan Kaufmann. 109
K. R. Apt and D. Pedreschi. Reasoning about termination of pure Prolog programs. Information and Computation 106:109–157, 1994. 108
K. R. Apt and A. Pellegrini. On the occur-check free pure Prolog programs. ACM Toplas 16:687–726, 1994. 108
S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison-Wesley Publishing Company, 1995. 110
H. A. Blair, W. Marek, and J. Schlipf. The expressiveness of locally stratified programs. Annals of Mathematics and Artificial Intelligence, 15:209–229, 1995. 109
K. A. Bowen and R. A. Kowalski. Amalgamating language and metalanguage in Logic Programming. In: Logic Programming, pp. 153–172, Academic Press, 1982.
M. Cadoli and L. Palipoli. Circumscribing datalog: expressive power and complexity. Theoretical Computer Science, 193:215–244, 1998. 107
M. Cadoli, T. Eiter and G. Gottlob. Default logic as a query language. IEEE Transactions on Knowledge and Data Engineering, 9:448–463, 1997. 116
D. Cenzer and J. B. Remmel. ?0 1 Classes in Mathematics. Handbook of Recursive Mathematics pp. 623–821, Elsevier 1999. 109
P. Cholewiński, W. Marek, and M. Truszczyński. Default reasoning system DeReS. In Proceedings of KR-96, pages 518–528. Morgan Kaufmann, 1996. 107, 108
S. Cook. The complexity of theorem-proving procedures. Proceedings of Third Annual ACM Symposium on Theory of Computing pp. 151–158. 1971. 111
E. Dantsin, T. Eiter, G. Gottloband A. Voronkov. Complexity and Expressive Power of Logic Programming, Technical Report of Institut für Informationssysteme, Technische Universität Wienff, INFSYS RR-1843-99-05, 1999, To appear in: ACM Computing Surveys. 111
P. M. Dung and K. Kanchanasut. On the generalized predicate completion of non-Horn programs, In: Logic programming, Proceedings of the North American Conference, pp. 587–603, MIT Press, 1989.
T. Eiter, W. Faber, N. Leone and G. Pfeifer, Computing Preferred and Weakly Preferred Answer Sets by Meta-Interpretation in Answer Set Programming, In: Proceedings AAAI 2001 Spring Symposium on Answer Set Programming: Towards Efficient and Scalable Knowledge Representation and Reasoning, Stanford, CA (Workshop Technical Report SS-01-01), AAAI Press, 2001. 118
T. Eiter, N. Leone, C. Mateis, G. Pfeifer, and F. Scarcello. A deductive system for non-monotonic reasoning. In Proceedings of the 4th International Conference on Logic Programming and Nonmonotonic Reasoning, pages 363–374, 1997. Springer LN in Computer Science 1265. 107, 108
M. R. Garey and D. S. Johnson. Computers and intractability; a guide to the theory of NP-completeness. W. H. Freeman, 1979. 110
M. Gelfond and V. Lifschitz. The stable semantics for logic programs. In Proceedings of the 5th International Symposium on Logic Programming, pages 1070–1080, Cambridge, MA, 1988. MIT Press. 107, 109
M. Gelfond and V. Lifschitz. Classical negation in logic programs and disjunctive databases. New Generation Computing 9:365–385, 1991. 108
J. Jaffar and M. J. Maher. Constraint logic programming: A survey. Journal of Logic Programming, 19(20):503–581, 1994. 107
V. Lifschitz. Action languages, answer sets and planning. The Logic Programming Paradigm, pp. 357–373. Series Artificial Intelligence, Springer-Verlag, 1999. 107
W. Marek, A. Nerode, and J. B. Remmel. The stable models of predicate logic programs. Journal of Logic Programming, 21(3):129–154, 1994. 109
W. Marek and M. Truszczyński. Autoepistemic logic. Journal of the ACM, 38:588–619, 1991. 110
V. W. Marek and M. Truszczyński. Nonmonotonic Logic-Context-Dependent Reasoning. Series Artificial Intelligence, Springer-Verlag, 1993. 110, 116
V. W. Marek and M. Truszczyński. Stable Models and an Alternative Logic Programming Paradigm. The Logic Programming Paradigm, pp. 375–398. Series Artificial Intelligence, Springer-Verlag, 1999. 107, 110
K. Marriott and P. J. Stuckey. Programming with Constraints: An Introduction. MIT Press, Cambridge, MA, 1998. 107
I. Niemelä. Logic programs with stable model semantics as a constraint programming paradigm. In Proceedings of the Workshop on Computational Aspects of Nonmonotonic Reasoning, pages 72–79, 1998. 107
I. Niemelä and P. Simons. Efficient implementation of the well-founded and stable model semantics. In Proceedings of JICSLP-96. MIT Press, 1996. 107, 108, 110
T. Przymusiński. On the declarative semantics of deductive databases and logic programs. In Foundations of deductive databases and logic programming, pages 193–216, Los Altos, CA, 1988. Morgan Kaufmann. 109
P. Rao, I. V. Ramskrishnan, K. Sagonas, T. Swift, D. S. Warren, and J. Freire. XSB: A system for efficiently computing well-founded semantics. In Proceedings of LPNMR’97, pages 430–440, Lecture Notes in Computer Science, 1265, Springer-Verlag, 1997. 109
J. Schlipf. The expressive powers of the logic programming semantics. Journal of the Computer Systems and Science, 51:64–86, 1995. 107, 111
J. D. Ullman. Principles of Database and Knowledge-Base Systems. Computer Science Press, Rockville, MD, 1988. 110
A. Van Gelder, K. A. Ross, and J. S. Schlipf. Unfounded sets and wellfounded semantics for general logic programs. Journal of the ACM, 38:620–650, 1991. 110
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Marek, V.W., Remmel, J.B. (2001). On the Expressibility of Stable Logic Programming. In: Eiter, T., Faber, W., Truszczyński, M.l. (eds) Logic Programming and Nonmotonic Reasoning. LPNMR 2001. Lecture Notes in Computer Science(), vol 2173. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45402-0_8
Download citation
DOI: https://doi.org/10.1007/3-540-45402-0_8
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-42593-9
Online ISBN: 978-3-540-45402-1
eBook Packages: Springer Book Archive