The expressiveness of locally stratified programs

Springer Science and Business Media LLC - Tập 15 - Trang 209-229 - 1995
Howard A. Blair1, V. Wiktor Marek2, John S. Schlipf3
1School of Computer and Information Science, Syracuse University, Syracuse, USA
2Department of Computer Science, University of Kentucky, Lexington, USA
3Department of Computer Science, University of Cincinnati, Cincinnati, USA

Tóm tắt

This paper completes an investigation of the logical expressibility of finite, locally stratified, general logic programs. We show that every hyperarithmetic set can be defined by a suitably chosen locally stratified logic program (as a set of values of a predicate over its perfect model). This is an optimal result, since the perfect model of a locally stratified program is itself an implicitly definable hyperarithmetic set (under a recursive coding of the Herbrand base); hence, to obtain all hyperarithmetic sets requires something new, in this case selecting one predicate from the model. We find that the expressive power of programs does not increase when one considers the programs which have a unique stable model or a total well-founded model. This shows that all these classes of structures (perfect models of logically stratified logic programs, well-founded models which turn out to be total, and stable models of programs possessing a unique stable model) are all closely connected with Kleene's hyperarithmetical hierarchy. Thus, for general logic programming, negation with respect to two-valued logic is related to the hyperarithmetic hierarchy in the same way as Horn logic is to the class of recursively enumerable sets. In particular, a set is definable in the well-founded semantics by a programP whose well-founded partial model is total iff it is hyperarithmetic.

Tài liệu tham khảo

H. Andreka and I. Nemeti, The generalized completeness of Horn predicate logic as a programming language, Acta Cybern. 4(1978)3–10. K.R. Apt, Logic programming,Handbook of Theoretical Computer Science, ed. J. van Leeuven (Elsevier, 1990) pp. 495–574. K.R. Apt and M. Bezem, Acyclic programs, Technical Report CS-R9010, Centre for Mathematics and Computer Science, Amsterdam (1990). K.R. Apt, H.A. Blair and A. Walker, Towards a theory of declarative knowledge, in:Foundations of Deductive Databases and Logic Programming, ed. J. Minker (Morgan Kaufmann, Los Altos, CA, 1988) pp. 89–148. K.R. Apt and H.A. Blair, Arithmetic classification of perfect models of stratified programs, Fundamenta Inf. 13(1990)1–17. K.R. Apt and H.A. Blair, Arithmetic classification of perfect models of stratified programs — addendum, Fundamenta Inf. 14(1991)339–344. C. Baral and V.S. Subrahmanian, Dualities between alternative semantics for logic programming and non-monotonic reasoning, in:Logic Programming and Non-Monotonic Reasoning: Proc. 1st Int. Workshop, eds. A. Nerode, W. Marek and V.S. Subrahmanian (MIT Press, Cambridge, MA, 1991) pp. 69–87. N. Bidoit and Ch. Froixdevaux, Negation by default and non stratifiable logic programs, Internal Report 437, Université Paris-Sud (1988). H.A. Blair, The recursion-theoretic complexity of the semantics of predicate logic as a programming language, Inf. Contr. (July–August, 1982)25–47. C. Cholak and H. Blair, The complexity of local stratification, Manuscript (1991), submitted. M.H. van Emden and R.A. Kowalski, The semantics of predicate logic as a programming language, J. ACM 23(1976)733–742. M. Gelfond, Autoepistemic logic and formalization of commonsense reasoning,Non-Monotonic Reasoning, eds. M. Reinfrank, J. de Kleer, M.L. Ginsberg and E. Sandewall, Lecture Notes in Artificial Intelligence 346 (Springer, 1989) pp. 176–186. M. Gelfond and V. Lifschitz, The stable model semantics for logic programming,Proc. ICLP/SLP-5 (1988) pp. 1070–1080. P.G. Hinman, Recursion-theoretic hierarchies,Persepctives in Mathematical Logic (Springer, 1978). P.G. Kolaitis, The expressive power of stratified logic programs, Manuscript (1987). Private communication. R.A. Kowalski, Predicate logic as a programming language,Proc. IFIP Congress 1974 (North-Holland, Amsterdam, 1974) pp. 569–574. V. Lifschitz, On the declarative semantics of logic programs with negation,Foundations of Deductive Databases and Logic Programming, ed. J. Minker (Morgan Kaufmann, Los Altos, CA, 1988) pp. 172–192. J.W. Lloyd,Foundations of Logic Programming, 2nd Ed. (Springer, 1987). W. Marek, A. Nerode and J. Remmel, A theory of nonmonotonic rule systems, MSI Technical Report 90-31, Mathematical Sciences Institute, Cornell University (1990). W. Marek, A. Nerode and J. Remmel, How complicated is the set of stable models of a general logic program?, Technical Report, Mathematical Sciences Institute, Cornell University (1991). W. Marek and V.S. Subrahmanian, The relationship between logic program semantics and nonmonotonic reasoning,Proc. 6th Int. Conf. on Logic Programming, eds. G. Levi and M. Martelli (MIT Press, 1989) pp. 600–617. W. Marek and M. Truszczyński, Stable semantics for logic programs and default theories,Proc. North American Conf. on Logic Programming (MIT Press, Cambridge, MA, 1989) pp. 243–256. A. Nerode and R. Shore,Logic for Applications (Springer, 1993). T. Przymusinski, On the declarative semantics of deductive databases and logic programs, in:Foundations of Deductive Databases and Logic Programming, ed. J. Minker (Morgan Kaufmann, Los Altos, CA, 1988). T. Przymusinski, Every logic program has a natural stratification and an iterated fixed point model,8th ACM Symp. on Principles of Database Systems (1989) pp. 11–21 H. Rogers,Theory of Recursive Functions and Effective Computability (McGraw-Hill, 1967). J. Schlipf, The expressive powers of the logic programming semantics, to appear in J. CSS. A preliminary version appeared in the9th ACM Symp. on Principles of Database Systems (1990). J.C. Shepherdson, Unsolvable problems for SLDNF-resolution, J. Logic Progr. 10(1991)19–22. J.C. Shepherdson and H.E. Sturgis, Computability of recursive functions, J. ACM 10(1963)217–255. R.M. Smullyan,Theory of Formal Systems (Princeton University Press, Princeton, NJ, 1961). A. Van Gelder, Negation as failure using tight derivations for general logic programs, in:Foundations of Deductive Databases and Logic Programming, ed. J. Minker (Morgan Kaufmann, Los Altos, CA, 1988) pp. 149–176. A. Van Gelder, The alternating fixpoint of logic programs with negation,8th ACM Symp. on Principles of Database Systems (1989) pp. 1–10. A. Van Gelder, K. Ross and J. Schlipf, The well-founded semantics for general logic programs, J. ACM 38(1991)620–650.