The evolution of logic programming semantics has included the introduction of a new explicit form of negation, beside the older implicit (or default) negation typical of logic programming. The richer language has been shown adequate for a spate of knowledge representation and reasoning forms.
The widespread use of such extended programs requires the definition of a correct top-down querying mechanism, much as for Prolog wrt. normal programs. One purpose of this paper is to present and exploit a SLDNF-like derivation procedure, SLX, for programs with explicit negation under well-founded semantics (WFSX) and prove its soundness and completeness. (Its soundness wrt. the answer-sets semantics is also shown.) Our choice ofWFSX as the base semantics is justi-fied by the structural properties it enjoys, which are paramount for top-down query evaluation.
Of course, introducing explicit negation requires dealing with contradiction. Consequently, we allow for contradiction to appear, and show moreover how it can be removed by freely changing the truth-values of some subset of a set of predefined revisable literals. To achieve this, we introduce a paraconsistent version ofWFSX, WFSX p , that allows contradictions and for which our SLX top-down procedure is proven correct as well.
This procedure can be used to detect the existence of pairs of complementary literals inWESX p simply by detecting the violation of integrity rulesf ←L, -L introduced for eachL in the language of the program. Furthermore, integrity constraints of a more general form are allowed, whose violation can likewise be detected by SLX.
Removal of contradiction or integrity violation is accomplished by a variant of the SLX procedure that collects, in a formula, the alternative combinations of revisable literals' truth-values that ensure the said removal. The formulas, after simplification, can then be satisfied by a number of truth-values changes in the revisable, among “true,” “false”, and “undefined”. A notion of minimal change is defined as well that establishes a closeness relation between a program and its revisions. Forthwith, the changes can be enforced by introducing or deleting program rules for the revisable literals.
To illustrate the usefulness and originality of our framework, we applied it to obtain a novel logic programming approach, and results, in declarative debugging and model-based diagnosis problems.
This is a preview of subscription content, log in to check access.
Buy single article
Instant access to the full article PDF.
Price includes VAT for USA
Subscribe to journal
Immediate online access to all issues from 2019. Subscription will auto renew annually.
This is the net price. Taxes to be calculated in checkout.
Alferes, J. J., Damásio, C. V., and Pereira, L. M.: SLX—A top-down derivation procedure for programs with explicit negation, in M. Bruynooghe (ed.),ILPS, MIT Press, 1994 (to appear).
Alferes, J. J., Damásio, C. V., and Pereira, L. M.: Top-down query evaluation for well-founded semantics with explicit negation, in A. Cohn (ed.),Proc. ECAI'94, Morgan Kaufmann, 1994, pp. 140–144.
Alferes, J. J. and Pereira, L. M.: On logic program semantics with two kinds of negation, in K. Apt (ed.),Int. Joint Conf. and Symp. on LP, MIT Press, 1992, pp. 574–588.
Alferes, J. J. and Pereira, L. M.: Belief, provability, and logic programs, in C. MacNish, D. Pearce, and L. M. Pereira (eds),JELIA'94, Lecture Notes in AI 838 (798), Springer-Verlag, 1994, pp. 106–121.
Alferes, J. J. and Pereira, L. M.: Contradiction: When avoidance equals removal, in R. Dyckhoff (ed.),4th Int. Ws. on Extensions of LP, Lecture Notes in AI 839 (798), Springer-Verlag, 1994.
Alferes, José Júlio:Semantics of Logic Programs with Explicit Negation, Ph.D. Thesis, Universidade Nova de Lisboa, 1993.
Apt, K. and Bol, R.: Logic programming and negation: A survey,J. Logic Programming 19/20 (1994), 9–72.
Apt, K., Bol, R., and Klop, J.: On the safe termination of Prolog programs, in Levi and Marteli (eds),Proc. LCLP'89, MIT Press, 1989, pp. 353–368.
Baral, C. and Gelfond, M.: Logic programming and knowledge representation,J. Logic Programming 19/20 (1994), 73–148.
Bidoit, N. and Legay, P.: Well!: An evaluation procedure for all logic programs, inInt. Conf. on Database Technology, 1990, pp. 335–348.
Bol, R. and Degerstedt, L.: Tabulated resolution for well founded semantics, inProc, ILPS'93, MIT Press, 1993.
Chen, W. and Warren, D. S.: A goal-oriented approach to computing well-founded semantics, in K. Apt (ed.),Int. Joint Conf. on Logic Programming, MIT Press, 1992, pp. 589–603.
Chen, W. and Warren, D. S.: Query evaluation under the well founded semantics, inPODS'93, 1993.
Chou, T. S.-C. and Winslett, M.: A model-based belief revision system,Journal of Automated Reasoning 12(2) (1994), 157–208.
Clark, K.: Negation as failure, in H. Gallaire and J. Minker (eds),Logic and Data Bases, Plenum Press, 1978, pp. 293–322.
Colmerauer, A., Kanoui, H., Roussel, P., and Pasero, R.: Un systéme de communication hommemachine en français. Technical report, Groupe de Recherche en Intelligence Artificielle, Université d'Aix-Marseille II, 1973.
Dalal, M.: Investigations into a theory of knowledge base revision: Preliminary report, in7th AAAI, 1988, pp. 475–479.
Damásio, C. V., Nejdl, W., and Pereira, L. M.: REVISE: An extended logic programming system for revising knowledge bases, inKR'94, Morgan Kaufmann, 1994.
Denecker, M. and De Schreye, D.: SLDNFA: An abductive procedure for normal abductive programs, in K. Apt (ed.),Int. Joint Conf. and Symp. on LP, MIT Press, 1992, pp. 686–700.
Dix, J.: Classifying semantics of logic programs, in A. Nerode, W. Marek, and V. S. Subrahmanian (eds),LP & NMR, MIT Press, 1991, pp. 166–180.
Dix, J.: A framework for representing and characterizing semantics of logic programs, in B. Nebel, C. Rich, and W. Swartout (eds),KR'92, Morgan Kaufmann, 1992.
Dung, P. M.: Negation as hypotheses: An abductive framework for logic programming, in K. Furukawa (ed.),8th Int. Conf. on LP, MIT Press, 1991, pp. 3–17.
Eshghi, K. and Kowalski, R.: Abduction compared with negation by failure, inProc. 6th Int. Conf. on LP, MIT Press, 1989.
Van Gelder, A., Ross, K. A., and Schlipf, J. S.: The well-founded semantics for general logic programs,Journal of the ACM 38(3) (1991), 620–650.
Gelfond, M. and Lifschitz, V.: The stable model semantics for logic programming, in R. Kowalski and K. A. Bowen (eds),5th Int. Conf. on LP, MIT Press, 1988, pp. 1070–1080.
Gelfond, M. and Lifschitz, V.: Compiling circumscriptive theories into logic programs, in M. Reinfrank, J. de Kleer, M. Ginsberg, and E. Sandewall (eds),2nd Int. Ws.on NMR, LNAI 346, Springer-Verlag, 1989, pp. 74–99.
Gelfond, M. and Lifschitz, V.: Logic programs with classical negation, in Warren and Szeredi (eds),Proc. 7th Int. Conf. on LP, MIT Press, 1990, pp. 579–597.
Gelfond, M. and Lifschitz, V.: Representing actions in extended logic programs, in K. Apt (ed.),Int. Joint Conf. and Symp. on LP, MIT Press, 1992, pp. 559–573.
HMSO:British Nationality Act, Her Majesty's Stationery Office, 1981.
Kakas, A. C. and Mancarella, P.: Generalized stable models: A semantics for abduction, inProc. ECAI'90, 1990, pp. 401–405.
Katsuno, H. and Mendelzon, A. O.: On the difference between updating a knowledge base revising it, in J. A. Allenet al. (eds),2nd KRR, Morgan Kaufmann, 1991, pp. 387–394.
Kemp, D. B., Stuckey, P. J., and Srivastava, D.: Query restricted bottom-up evaluation of normal logic programs, inProc. JICSLP'92, MIT Press, 1992, pp. 288–302.
Kowalski, R.:Logic for Problem Solving, North Holland, 1978.
Kowalski, R.: The treatment of negation in logic programs for representing legislation, in2nd Int. Conf. on AI and Law, 1989, pp. 11–15.
Kowalski, R.: Problems and promises of computational logic, in John Lloyd (ed.),Computational Logic, Basic Research Series, Springer-Verlag, 1990, pp. 1–36.
Kowalski, R.: Legislation as logic programs, inLogic Programming in Action, Springer-Verlag, 1992, pp. 203–230.
Kowalski, R. and Khuener, D.: Linear resolution with selection function,Artificial Intelligence 5 (1971), 227–260.
Kraus, S., Lehmann, D., and Magidor, M.: Nonmonotonic reasoning, preferential models and cumulative logics,Artificial Intelligence 44 (1990), 167–207.
Kunen, K.: Negation in logic programming,Journal of Logic Programming 4 (1987), 289–308.
Lloyd, J.: Declarative error diagnosis,New Generation Computing 5(2) (1987).
Lloyd, J.:Foundations of Logic Programming, Springer-Verlag, 1987.
Lloyd, J. and Topor, R.: A basis for deductive database systems,Journal of Logic Programming,2 (1985), 93–109.
Nebel, B.: Syntax based approaches to belief revision, in: P. Gärdenfors (ed.),Belief Revision, Cambridge University Press, 1992, pp. 52–88.
Pearce, D. and Wagner, G.: Reasoning with negative information I: Strong negation in logic programs, in L. Haaparanta, M. Kusch, and I. Niiniluoto (eds),Language, Knowledge and Intentionality, Acta Philosophica Fennica 49, 1990, pp. 430–453.
Pereira, L. M. and Alferes, J. J.: Well founded semantics for logic programs with explicit negation, in B. Neumann (ed.),European Conf. on AI, John Wiley & Sons, 1992, pp. 102–106.
Pereira, L. M., Alferes, J. J., and Aparicio, J. N.: Contradiction removal within well founded semantics, in A. Nerode, W. Marek, and V. S. Subrahmanian (eds),LP & NMR, MIT Press, 1991, pp. 105–119.
Pereira, L. M., Aparicio, J. N., and Alferes, J. J.: A derivation procedure for extended stable models, inInt. Joint Conf. on AI, Morgan Kaufmann, 1991.
Pereira, L. M., Aparicio, J. N., and Alferes, J. J.: Non-monotonic reasoning with logic programming,Journal of Logic Programming. Special issue on Nonmonotonic Reasoning,17(2–4) (1993), 227–263.
Pereira, L. M., Damásio, C., and Alferes, J. J.: Debugging by diagnosing assumptions, in P. A. Fritzson (ed.),1st Int. Workshop on Automatic Algorithmic Debugging, AADEBUG'93, LNCS, vol. 749, Springer-Verlag, 1993, pp. 58–74.
Pereira, L. M., Damásico, C., and Alferes, J. J.: Diagnosis and debugging as contradiction removal, in L. M. Pereira and A. Nerode (eds),2nd Int. Workshop on Logic Programming & NMR, MIT Press, 1993, pp. 316–330.
Pereira, L. M., Damásio, C., and Alferes, J. J.: Diagnosis and debugging as contradiction removal in logic programs, in L. Damas and M. Filgueiras (eds),6th Portuguese AI Conf., Springer-Verlag, 1993.
Gärdenfors, P.:Knowledge in Flux: Modeling the Dynamics of Epistemic States, The MIT Press, 1988.
Przymusinska, H., Przymusinski, T. C., and Seki, H.: Soundness and completeness of partial deductions for well-founded semantics, in A. Voronkov (ed.),Proc. of the Int. Conf. on Automated Reasoning, LNAI 624, 1992.
Przymusinski, T.: Every logic program has a natural stratification and an interated fixed point model, in8th Symp. on Principles of Database Systems, ACM SIGACT-SIGMOD, 1989.
Przymusinski, T.: Extended stable semantics for normal and disjunctive programs, in Warren and Szeredi (eds),7th Int. Conf. on LP, MIT Press, 1990, pp. 459–477.
Przymusinski, T.: Static semantics for normal and disjunctive programs, Technical report, Dept. of Computer Science, Univ. of California at Riverside, 1993.
Przymusinski, T. and Warren, D. S.: Well-founded semantics: Theory and implementation, 1992.
Reiter, R.: On closed-world data bases, in H. Gallaire and J. Minker (eds),Logic and Data Bases, Plenum Press, 1978, pp. 55–76.
Reiter, R.: Towards a logical reconstruction of relational database theory, in M. Brodie, and J. Mylopoulos (eds),On Conceptual Modelling, Springer-Verlag, 1984, pp. 191–233.
Reiter, R.: On asking what a database knows, in John Lloyd (ed.),Computational Logic, Basic Research Series, Springer-Verlag, 1990, pp. 96–113.
Ross, K. A.: A procedural semantics for well-founded negation in logic programs,Journal of Logic Programming 13 (1992), 1–22.
Teusink, F.: A proof procedure for extended logic programs, inProc. ILPS'93, MIT Press, 1993.
Van Gelder, A.: The alternating fixpoint of logic programs with negation, inProc. of the Symposium on Principles of Database Systems, ACM SIGACT-SIGMOD, 1989, pp. 1–10.
Wagner, G.: A database needs two kinds of negation, in B. Thalheim, J. Demetrovics and H.-D. Gerhardt (eds),Mathematical Foundations of Database Systems, LNCS 495, Springer-Verlag, 1991, pp. 357–371.
Wagner, G.: Logic programming with strong negation and innexact predicates,J. of Logic and Computation 1(6) (1991), 835–861.
Wagner, G.: Neutralization and preemption in extended logic programs, Technical report, Freien Universitat, Berlin, 1993.
Wagner, G.: Reasoning with inconsistency in extended deductive databases, in L. M. Pereira and A. Nerode (eds),2nd Int. Ws. on LP & NMR, MIT Press, 1993, pp. 300–315.
Winslett, M.: Reasoning about action using a possible model approach, in7th AAAI, 1988, pp. 89–93.
About this article
Cite this article
Alferes, J.J., Damásio, C.V. & Pereira, L.M. A logic programming system for nonmonotonic reasoning. J Autom Reasoning 14, 93–147 (1995). https://doi.org/10.1007/BF00883931
- logic programming procedures
- logic programming semantics
- nonmonotonic reasoning
- belief revision
- well-founded semantics