Skip to main content
Log in

A nondeterministic well-founded semantics

  • Published:
Annals of Mathematics and Artificial Intelligence Aims and scope Submit manuscript

Abstract

In order to define the meaning of a collection of rules forming a database or logic program, we have to consider a number of alternative interpretations. In the case of stratified and locally stratified programs, researchers agree that a single such interpretation captures the intended semantics [16]. Nevertheless, nonstratified datalog databases and logic programs can be seen as descriptions of a set of “alternative scenarios”. Saccà and Zaniolo [20] have shown that the nondeterministic nature of these programs can be used to model several useful queries such as those involving thechoice operator. They introducedpartial stable models, a semantics that exhibits the desired nondeterministic behavior. This work opened the problem of finding efficient ways to compute these nondeterministic scenarios. Papadimitriou and Yannakakis [18] introduced a tie-breaking procedure that nondeterministically computes fixpoints for some programs and has polynomial data complexity. However, this algorithm does not handle many programs includingchoice programs. In this paper, we introduce the notion ofwell-founded hypothesis, an intuitive account based on hypothetical reasoning that captures the same semantics as Saccà and Zaniolo's partial stable models. We introduce a notion of linearity that can be used in a skeptical or nondeterministic fashion. We show that the skeptical case corresponds to thewell-founded semantics and that the nondeterministic case computes a sound subclass of well-founded hypotheses. We show that this latter subclass has polynomial data complexity, correctly handleschoice programs, and is universally defined. We develop a simple nondeterministic procedure that computes these linear hypotheses, and we extend it to compute a strict superclass of the well-founded tie-breaking fixpoints in polynomial time.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. K.R. Apt, H. Blair and A. Walker, Towards a theory of declarative knowledge,Workshop on Foundations of Deductive Databases and Logic Programming, Washington, DC, ed. J. Minker (1986) pp. 89–148.

  2. C. Berge and P. Duchet, Recent problems and results about kernels in directed graphs, Discr. Math. (1990)27–31.

  3. Y. Dimopoulos and A. Torres, Graph theoretical structures in logic programs and default theories, Technical Report MPI-I-93-264, Max-Planck Institute für Informatik (1993).

  4. Ph.M. Dung, Negation as hypothesis: An abductive foundation to logic programming,Proc. 8th Int. Conf. on Logic Programming (1991) pp. 3–17.

  5. H. Geffner, Beyond negation as failure,Proc. 2nd Int. Conf. on Principles of Knowledge Representation and Reasoning (Kaufman, 1991) pp. 218–229.

  6. A. van Gelder, Negation as failure using tight derivations for general logic programs,Proc. 3rd IEEE Symp. on Logic Programming (Springer, 1986).

  7. M. Gelfond and V. Lifschitz, The stable model semantics for logic programming,Proc. 5th Int. Conf. and Symp. on Logic Programming (MIT Press, Cambridge, MA, 1988).

    Google Scholar 

  8. A. van Gelder, K.A. Ross and J.S. Schlipf, Unfounded sets and well-founded semantics for general logic programs,Proc. 7th ACM Symp. on Principles of Database Systems (1988) pp. 221–230. (Full version appeared in J. ACM 38(1992)620–650.

  9. A.C. Kakas, R.A. Kowalski and F. Toni, Abductive logic programming, J. Logic Comput. 2(1992)719–770.

    Google Scholar 

  10. A.C. Kakas and P. Mancarella, Negation as stable hypotheses,Proc. 1st Int. Workshop on Logic Programming and non-monotonic reasoning, eds. W. Marek and V.S. Subrahmanian (1991) pp. 275–288.

  11. A.C. Kakas and P. Mancarella, Stable theories for logic programs,Proc. 8th Int. Conf. and Symp. on Logic Programming (1991) pp. 85–100.

  12. A.C. Kakas and P. Mancarella, Preferred extensions are partial stable models, J. Logic Progr. 14(1992)341–348.

    Google Scholar 

  13. E. Laenens, D. Vermeir and C. Zaniolo, Logic programming semantics made easy,Proc. 19th Int. Colloq. on Automata, Languages and Programs, LNCS (Springer, 1992) pp. 499–508.

  14. A. Marek and M. Truszczynski, Autoepitemic logic, J. ACM 38(1991)588–619.

    Google Scholar 

  15. J. von Neumann and O. Morgenstern,Theory of Games and Economic Behavior (Princeton University Press, Princeton, 1944).

    Google Scholar 

  16. H. Przymusinska and T. Przymusinski, Semantic issues in deductive databases and logic programs, in:Sourcebook on the Formal Approaches in Artificial Intelligence, ed. A. Banerji (North-Holland, Amsterdam, 1989).

    Google Scholar 

  17. T.C. Przymusinski, Well-founded semantics coincides with three-values stable semantics, Fundamenta Informaticae XIII(1990)445–463.

    Google Scholar 

  18. C. Papadimitriou and M. Yannakakis, Tie-breaking semantics and structural totality,Proc. 11th Symp. on Principles of Database Systems (1992) pp. 16–22.

  19. R. Reiter, On closed world databases, in:Logic and Databases, eds. H. Gallaire and J. Minker (Plenum Press, New York, 1978) pp. 55–76.

    Google Scholar 

  20. D. Saccà and C. Zaniolo, Stable models and non-determinism in logic programs with negation,Proc. 9th ACM Symp. on Principles of Database Systems (1990) pp. 205–217.

  21. A. Torres, Generalized supports for stable and well-founded semantics, in preparation.

  22. A. Torres, Is there a “right” semantics for negation as failure,Proc. 3rd Int. Workshop on the Deductive Approach to Information Systems and Databases, Universitat Politècnica de Catalunya (1992) pp. 157–166. Technical Report LSI/92/19.

  23. A. Torres, Negation as failure to support,Proc. 2nd Workshop on Logic Programming and Nonmonotonic Reasoning (MIT Press, 1993) pp. 223–243.

  24. M.Y. Vardi, The complexity of relational query languages,Proc. 14th ACM Symp. on Theory of Computing (1982) pp. 137–145.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Torres, A. A nondeterministic well-founded semantics. Ann Math Artif Intell 14, 37–73 (1995). https://doi.org/10.1007/BF01530893

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01530893

Keywords

Navigation