A Logical Semantics for Hypothetical Rulebases with Deletion

Abstract This paper addresses a limitation of most deductive database systems: they cannot reason hypothetically. Although they reason effectively about the world as it is, they are poor at tasks such as planning and design, where one must explore the consequences of hypothetical actions and possibilities. To address this limitation, we have developed a logic-programming language in which users can create hypotheses and draw inferences from them. Most previous work in this area has focused on the hypothetical insertion of facts into a database since insertion is accounted for by a well-established logic: intuitionistic logic. In contrast, our language includes hypothetical deletion as well as insertion. In earlier work, we established the data complexity and expressibility of this language. In this paper, we develop its logical semantics, and take a closer look at its expressibility. The paper makes three main contributions. First, we show that hypothetical queries lead naturally to a new notion of expressibility. In this new light, we show that classical logic is poor at hypothetical reasoning since it cannot express some simple hypothetical queries. Second, we develop a logical semantics for hypothetical insertions and deletions, including a proof theory, model theory, and fixpoint theory. We also give numerous examples showing the utility of the logic and the subtle effect that deletion has on its expressive power. Finally, we augment the logic with negation-as-failure so that nonmonotonic queries can be expressed. We then develop the proof theory and model theory for the logic with negation. The proof theory is inspired by the stratified semantics of Apt, Blair, and Walker, and the model theory is inspired by the perfect model semantics of Przymusinski.

[1]  Amit P. Sheth Database research at Bellcore , 1990, SGMD.

[2]  Rainer Manthey,et al.  The EKS-V1 System , 1992, LPAR.

[3]  Neil Immerman,et al.  Relational Queries Computable in Polynomial Time , 1986, Inf. Control..

[4]  Umeshwar Dayal,et al.  On the correct translation of update operations on relational views , 1982, TODS.

[5]  Anthony J. Bonner Hypothetical Datalog: Complexity and Expressibility , 1990, Theor. Comput. Sci..

[6]  Dov M. Gabbay,et al.  N-Prolog: An Extension of Prolog with Hypothetical Implications I , 1984, J. Log. Program..

[7]  Arthur M. Keller,et al.  Updates to Relational Databases Through Views Involving Joins , 1982, International Conference on Data and Knowledge Bases.

[8]  L. Thorne McCarty,et al.  Expressing Database Queries with Intuitionistic Logic , 1989, NACLP.

[9]  Moshe Y. Vardi The complexity of relational query languages (Extended Abstract) , 1982, STOC '82.

[10]  Antonio L. Furtado,et al.  Permitting updates through views of data bases , 1979, Inf. Syst..

[11]  Serge Abiteboul,et al.  Datalog Extensions for Database Queries and Updates , 1991, J. Comput. Syst. Sci..

[12]  Gabriel M. Kuper,et al.  Updating Logical Databases , 1986, Adv. Comput. Res..

[13]  LogicAnthony J. BonnerUniversity Hypothetical Reasoning with Intuitionistic Logic , 1994 .

[14]  L. T. McCarty A language for legal discourse , 1989 .

[15]  Shirley Dex,et al.  JR 旅客販売総合システム(マルス)における運用及び管理について , 1991 .

[16]  Kenneth A. Ross,et al.  The well-founded semantics for general logic programs , 1991, JACM.

[17]  Marianne Winslett,et al.  A model-based approach to updating databases with incomplete information , 1988, TODS.

[18]  L. Thorne McCarty,et al.  Adding Negation-as-Failure to Intuitionistic Logic Programming , 1990, NACLP.

[19]  L. Thorne McCarty,et al.  A language for legal Discourse I. basic features , 1989, ICAIL '89.

[20]  Weidong Chen,et al.  Declarative Specification and Evaluation of Database Updates , 1991, DOOD.

[21]  L. Thorne McCarty,et al.  Clausal Intuitionistic Logic II - Tableau Proof Procedures , 1988, J. Log. Program..

[22]  Michael Stonebraker,et al.  Third-generation database system manifesto , 1990, SGMD.

[23]  Dale Miller,et al.  Lexical Scoping as Universal Quantification , 1989, ICLP.

[24]  Michael Stonebraker,et al.  "The Committee for Advanced DBMS Function": Third Generation Data Base System Manifesto , 1990, SIGMOD Conference.

[25]  Nicola Olivetti,et al.  N-Prolog and equivalence of logic programs , 1992, J. Log. Lang. Inf..

[26]  Richard Statman,et al.  Intuitionistic Propositional Logic is Polynomial-Space Complete , 1979, Theor. Comput. Sci..

[27]  Anthony J. Bonner Hypothetical reasoning in deductive databases , 1992 .

[28]  John McCarthy,et al.  SOME PHILOSOPHICAL PROBLEMS FROM THE STANDPOINT OF ARTI CIAL INTELLIGENCE , 1987 .

[29]  Teodor C. Przymusinski On the Declarative Semantics of Deductive Databases and Logic Programs , 1988, Foundations of Deductive Databases and Logic Programming..

[30]  David Scott Warren,et al.  A Logic-based Language for Database Updates , 1988, Foundations of Deductive Databases and Logic Programming..

[31]  David Harel,et al.  Horn Clauses Queries and Generalizations , 1985, J. Log. Program..

[32]  Kenneth A. Ross,et al.  Unfounded sets and well-founded semantics for general logic programs , 1988, PODS.

[33]  Dale Miller,et al.  A Logical Analysis of Modules in Logic Programming , 1989, J. Log. Program..

[34]  L. Thorne McCarty,et al.  EPS II: estate planning with prototypes , 1989, ICAIL '89.

[35]  Ashok K. Chandra Theory of database queries , 1988, PODS '88.

[36]  Peter Scheuermann,et al.  Improving database usability and responsiveness , 1982 .

[37]  Phan Minh Dung,et al.  Declarative Semantics of Hypothetical Logic Programming with Negation as Failure , 1992, ELP.

[38]  Adrian Walker,et al.  Towards a Theory of Declarative Knowledge , 1988, Foundations of Deductive Databases and Logic Programming..

[39]  Laura Giordano,et al.  Negation as Failure in Intuitionistic Logic Programming , 1992, JICSLP.

[40]  Michael Kifer,et al.  Transaction Logic Programming , 1993, ICLP.

[41]  Anthony J. Bonner Intuitionistic Deductive Databases and the Polynomial Time Hierarchy , 1997, J. Log. Program..

[42]  Jianwen Su,et al.  On the expressive power of database queries with intermediate types , 1988, PODS '88.

[43]  Sanjay Manchanda A dynamic logic programming language for relational updates , 1987 .

[44]  Krzysztof R. Apt,et al.  Contributions to the Theory of Logic Programming , 1982, JACM.

[45]  David Harel,et al.  Structure and complexity of relational queries , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).

[46]  Jack Minker Foundations of deductive databases and logic programming , 1988 .

[47]  D.M. Gabbay,et al.  N-Prolog: An Extension of Prolog with Hypothetical Implication II - Logical Foundations, and Negation as Failure , 1985, J. Log. Program..

[48]  Anthony J. Bonner Hypothetical datalog negation and linear recursion , 1989, PODS '89.

[49]  Michael Kifer,et al.  Concurrency and Communication in Transaction Logic , 1996, JICSLP.

[50]  Anthony J. Bonner,et al.  A Logic for Hypothetical Reasoning , 1988, AAAI.

[51]  Michael Stonebraker,et al.  Embedding expert knowledge and hypothetical data bases into a data base system , 1980, SIGMOD '80.

[52]  David Harel,et al.  Computable Queries for Relational Data Bases , 1980, J. Comput. Syst. Sci..

[53]  Jeffrey D. Ullman,et al.  Principles of Database Systems , 1980 .

[54]  David Scott Warren,et al.  Database Updates in Pure Prolog , 1984, FGCS.

[55]  James Harland,et al.  A Kripke-like Model for Negation as Failure , 1989, NACLP.

[56]  Victor Vianu,et al.  Procedural Languages for Database Queries and Updates , 1990, J. Comput. Syst. Sci..

[57]  M. Fitting Intuitionistic logic, model theory and forcing , 1969 .

[58]  L. Thorne McCarty,et al.  Clausal Intuitionistic Logic I - Fixed-Point Semantics , 1988, J. Log. Program..

[59]  Alfred V. Aho,et al.  Universality of data retrieval languages , 1979, POPL.

[60]  Ronald Fagin,et al.  On the semantics of updates in databases , 1983, PODS.

[61]  A. Tarski A LATTICE-THEORETICAL FIXPOINT THEOREM AND ITS APPLICATIONS , 1955 .

[62]  Robert A. Kowalski,et al.  The Semantics of Predicate Logic as a Programming Language , 1976, JACM.

[63]  Weidong Chen,et al.  Declarative updates of relational databases , 1995, TODS.

[64]  Nicolas Spyratos,et al.  Update semantics of relational views , 1981, TODS.

[65]  David Harel,et al.  First-Order Dynamic Logic , 1979, Lecture Notes in Computer Science.

[66]  N. Nilsson,et al.  Readings in Artificial Intelligence , 1981 .

[67]  Michael Kifer,et al.  Database Programming in Transaction Logic , 1993, DBPL.

[68]  Raymond Reiter,et al.  On Formalizing Database Updates: Preliminary Report , 1992, EDBT.

[69]  Michael Kifer,et al.  An Overview of Transaction Logic , 1994, Theor. Comput. Sci..

[70]  Kenneth A. Ross,et al.  Glue-Nail: a deductive database system , 1991, SIGMOD '91.