The complexity of querying indefinite information: defined relations, recursion and linear order

This dissertation studies the computational complexity of answering queries in logical databases containing indefinite information arising from two sources: facts stated in terms of defined relations, and incomplete information about linearly ordered domains. First, we consider databases consisting of (1) a DATALOG program and (2) a description of the world in terms of the predicates defined by the program as well as the basic predicates. The query processing problem in such databases is related to issues in database theory, including view updates and DATALOG optimization, and also to the Artificial Intelligence problems of reasoning in circumscribed theories and skeptical abductive reasoning. If the program is non-recursive, the meaning of the database can be represented by Clark's Predicate Completion, and standard first order theorem proving technology may be used to evaluate queries. However, with recursive definitions such databases are intrinsically second order, and query processing is not even semi-decidable. Nevertheless, the basic queries, which do not contain defined predicates, are decidable. We show that under certain conditions querying this second order form of indefinite information is no more complex than querying indefinite information expressible in first order logic. We also consider the influence of negation and inequality on complexity. Next, we study databases containing basic atomic facts and facts asserting order relations between points in a linearly ordered domain. Incomplete information about a linearly ordered domain means that the data provide only a partial order, and a query answering requires reasoning about all the compatible linear orders. We show the complexity of this inference problem is in general intractable, but identify a variety of natural conditions under which queries may be answered in polynomial time. Finally, we consider the effect of combining the two sorts of indefinite information: we study databases containing facts defined using recursive rules with linear order constraints. Applications of such rules include reasoning about concurrent, repetitive actions. In general, even the basic queries are undecidable in this context, but by restricting definitions to a reasonable class, we are able to recapture decidability. Further, under a constraint of "bounded concurrency," query processing is in polynomial time.

[1]  G. Hardy,et al.  An Introduction to the Theory of Numbers , 1938 .

[2]  Walter J. Savitch,et al.  Relationships Between Nondeterministic and Deterministic Tape Complexities , 1970, J. Comput. Syst. Sci..

[3]  Richard Fikes,et al.  STRIPS: A New Approach to the Application of Theorem Proving to Problem Solving , 1971, IJCAI.

[4]  Edward M. Reingold,et al.  On the Optimality of Some Set Algorithms , 1972, JACM.

[5]  Joseph B. Kruskal,et al.  The Theory of Well-Quasi-Ordering: A Frequently Discovered Concept , 1972, J. Comb. Theory A.

[6]  Harry E. Pople,et al.  Session 6 Theorem Proving and Logic: I I ON THE MECHANIZATION OF ABDUCTIVE LOGIC , 2006 .

[7]  Vaughan R. Pratt,et al.  SEMANTICAL CONSIDERATIONS ON FLOYD-HOARE LOGIC , 1976, FOCS 1976.

[8]  A. K. Chandra,et al.  Alternation , 1976, 17th Annual Symposium on Foundations of Computer Science (sfcs 1976).

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

[10]  Austin Tate,et al.  Generating Project Networks , 1977, IJCAI.

[11]  Keith L. Clark,et al.  Negation as Failure , 1987, Logic and Data Bases.

[12]  Earl David Sacerdoti,et al.  A Structure for Plans and Behavior , 1977 .

[13]  Ashok K. Chandra,et al.  Optimal implementation of conjunctive queries in relational data bases , 1977, STOC '77.

[14]  David Maier,et al.  The Complexity of Some Problems on Subsequences and Supersequences , 1978, JACM.

[15]  Rohit Parikh A decidability result for a second order process logic , 1978, 19th Annual Symposium on Foundations of Computer Science (sfcs 1978).

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

[17]  E. F. Codd,et al.  Extending the database relational model to capture more meaning , 1979, ACM Trans. Database Syst..

[18]  Jeffrey D. Ullman,et al.  Introduction to Automata Theory, Languages and Computation , 1979 .

[19]  John McCarthy,et al.  Circumscription - A Form of Non-Monotonic Reasoning , 1980, Artif. Intell..

[20]  Harry B. Hunt,et al.  Processing Conjunctive Predicates and Queries , 1980, VLDB.

[21]  David Harel,et al.  Process Logic: Expressiveness, Decidability, Completeness , 1980, FOCS.

[22]  M. Golumbic Algorithmic graph theory and perfect graphs , 1980 .

[23]  Stanley J. Rosenschein,et al.  Plan Synthesis: A Logical Perspective , 1981, IJCAI.

[24]  Hirokazu Nishimura Arithmetical Completeness in First-Order Dynamic Logic for Concurrent Programs , 1981 .

[25]  Moshe Y. Vardi The implication and finite implication problems for typed template dependencies , 1982, PODS '82.

[26]  Yuri Gurevich,et al.  The Inference Problem for Template Dependencies , 1982, Inf. Control..

[27]  Raymond Reiter,et al.  Towards a Logical Reconstruction of Relational Database Theory , 1982, On Conceptual Modelling.

[28]  Jack Minker,et al.  On Indefinite Databases and the Closed World Assumption , 1987, CADE.

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

[30]  Jitendra Malik,et al.  Reasoning in Time and Space , 1983, IJCAI.

[31]  Pierre Wolper,et al.  Yet Another Process Logic (Preliminary Version) , 1983, Logic of Programs.

[32]  James F. Allen,et al.  Planning Using a Temporal World Model , 1983, IJCAI.

[33]  Pierre Wolper Temporal Logic Can Be More Expressive , 1983, Inf. Control..

[34]  James F. Allen Maintaining knowledge about temporal intervals , 1983, CACM.

[35]  Tomasz Imielinski,et al.  Incomplete Information in Relational Databases , 1984, JACM.

[36]  A M Keller On 'Update Semantics and Relational Views'. , 1984 .

[37]  Ellis Horowitz,et al.  Fundamentals of Data Structures in Pascal , 1984 .

[38]  David Peleg,et al.  Concurrent dynamic logic , 1985, STOC '85.

[39]  Vladimir Lifschitz,et al.  Computing Circumscription , 1985, IJCAI.

[40]  David Peleg,et al.  Process Logic with Regular Formulas , 1985, Theor. Comput. Sci..

[41]  Moshe Y. Vardi Querying logical databases , 1985, J. Comput. Syst. Sci..

[42]  Philip T. Cox,et al.  Causes for Events: Their Computation and Applications , 1986, CADE.

[43]  Hiroshi Fujita,et al.  Formulation of Induction Formulas in Verification of Prolog Programs , 1986, CADE.

[44]  Judea Pearl,et al.  Fusion, Propagation, and Structuring in Belief Networks , 1986, Artif. Intell..

[45]  Annegret Habel,et al.  May we introduce to you: hyperedge replacement , 1986, Graph-Grammars and Their Application to Computer Science.

[46]  Henry A. Kautz,et al.  Constraint Propagation Algorithms for Temporal Reasoning , 1986, AAAI.

[47]  Bruno Courcelle An Axiomatic Definition of Context-Free Rewriting and its Application to NLC Graph Grammars , 1987, Theor. Comput. Sci..

[48]  Michael R. Fellows,et al.  Nonconstructive Advances in Polynomial-Time Complexity , 1987, Inf. Process. Lett..

[49]  David Chapman,et al.  Planning for Conjunctive Goals , 1987, Artif. Intell..

[50]  Annegret Habel,et al.  Some Structural Aspects of Hypergraph Languages Generated by Hyperedge Replacement , 1987, STACS.

[51]  Oded Shmueli Decidability and Expressiveness of Logic Queries. , 1987, PODS 1987.

[52]  Johann A. Makowsky,et al.  Why Horn Formulas Matter in Computer Science: Initial Structures and Generic Examples , 1987, J. Comput. Syst. Sci..

[53]  Antony Galton,et al.  Temporal logics and their applications , 1987 .

[54]  Drew McDermott,et al.  Temporal Data Base Management , 1987, Artif. Intell..

[55]  Vladimir Lifschitz,et al.  Pointwise circumscription , 1987 .

[56]  Donald W. Loveland,et al.  Near-Horn PROLOG , 1987, ICLP.

[57]  John Wylie Lloyd,et al.  Foundations of Logic Programming , 1987, Symbolic Computation.

[58]  Moshe Y. Vardi Decidability and undecidability results for boundedness of linear recursive queries , 1988, PODS.

[59]  Anthony C. Klug On conjunctive queries containing inequalities , 1988, JACM.

[60]  Haim Gaifman,et al.  Decidable optimization problems for database logic programs , 1988, STOC '88.

[61]  Richard T. Snodgrass,et al.  A Bibliography on Temporal Databases , 1988 .

[62]  Jeffrey D. Ullman,et al.  Principles of Database and Knowledge-Base Systems, Volume II , 1988, Principles of computer science series.

[63]  V. Lifschitz,et al.  The Stable Model Semantics for Logic Programming , 1988, ICLP/SLP.

[64]  David Poole,et al.  A Logical Framework for Default Reasoning , 1988, Artif. Intell..

[65]  Michael R. Fellows,et al.  Nonconstructive tools for proving polynomial-time decidability , 1988, JACM.

[66]  Thomas Lengauer,et al.  Efficient Analysis of Graph Properties on Context-free Graph Languages (Extended Abstract) , 1988, ICALP.

[67]  Mark S. Boddy,et al.  Reasoning About Partially Ordered Events , 1988, Artificial Intelligence.

[68]  Kave Eshghi,et al.  Abductive Planning with Event Calculus , 1988, ICLP/SLP.

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

[70]  Jan Chomicki,et al.  Temporal deductive databases and infinite objects , 1988, PODS.

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

[72]  Charles Elkan,et al.  Automated Inductive Reasoning about Logic Programs , 1988, ICLP/SLP.

[73]  David Poole,et al.  Explanation and prediction: an architecture for default and abductive reasoning , 1989, Comput. Intell..

[74]  Hector J. Levesque,et al.  A Knowledge-Level Account of Abduction , 1989, IJCAI.

[75]  Tomasz Imielinski,et al.  Complexity of query processing in databases with OR-objects , 1989, PODS '89.

[76]  Moshe Y. Vardi Invited talk: automata theory for database theoreticians , 1989, PODS '89.

[77]  Gösta Grahne Horn tables-an efficient tool for handling incomplete information in databases , 1989, PODS '89.

[78]  Rina Dechter,et al.  Temporal Constraint Networks , 1989, Artif. Intell..

[79]  Robert A. Kowalski,et al.  Abduction Compared with Negation by Failure , 1989, ICLP.

[80]  Murray Shanahan,et al.  Prediction is Deduction but Explanation is Abduction , 1989, IJCAI.

[81]  J. Naughton,et al.  Minimizing Expansions of Recursions , 1989 .

[82]  P. .KabanzaJ-M.Stevenne,et al.  Handling In nite Temporal Data yF , 1990 .

[83]  Jean-Louis Lassez,et al.  Querying constraints , 1990, PODS '90.

[84]  Hamid Pirahesh,et al.  Magic conditions , 1990, PODS.

[85]  Jack Minker,et al.  A Fixpoint Semantics for Disjunctive Logic Programs , 1990, J. Log. Program..

[86]  Robert S. Boyer,et al.  Computational Logic , 1990, ESPRIT Basic Research Series.

[87]  Frank van Harmelen,et al.  Extensions to the Rippling-Out Tactic for Guiding Inductive Proofs , 1990, CADE.

[88]  Jan Chomicki Polynomial time query processing in temporal deductive databases , 1990, PODS '90.

[89]  Jerzy Tiuryn,et al.  Logics of Programs , 1991, Handbook of Theoretical Computer Science, Volume B: Formal Models and Sematics.

[90]  Peter van Beek,et al.  Exact and approximate reasoning about temporal relations 1 , 1990, Comput. Intell..

[91]  Ron van der Meyden,et al.  Recursively Indefinite Databases , 1990, Theor. Comput. Sci..

[92]  Christos H. Papadimitriou,et al.  Some computational aspects of circumscription , 1988, JACM.

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

[94]  L. Thorne McCarty,et al.  Indefinite Reasoning with Definite Rules , 1991, IJCAI.

[95]  Yoav Shoham,et al.  A propositional modal logic of time intervals , 1991, JACM.

[96]  Dean Allemang,et al.  The Computational Complexity of Abduction , 1991, Artif. Intell..

[97]  Marianne Baudinet,et al.  On the representation of infinite temporal data and queries (extended abstract) , 1991, PODS '91.

[98]  Trevor J. M. Bench-Capon Knowledge-based systems and legal applications , 1991 .

[99]  Jack Minker,et al.  Bottom-Up Evaluation of Hierarchical Disjunctive Deductive Databases , 1991, ICLP.

[100]  Serge Abiteboul,et al.  On the Representation and Querying of Sets of Possible Worlds , 1991, Theor. Comput. Sci..

[101]  Bruno Courcelle,et al.  Recursive Queries and Context-free Graph Grammars , 1991, Theor. Comput. Sci..

[102]  Divesh Srivastava,et al.  Pushing constraint selections , 1992, J. Log. Program..

[103]  Ron van der Meyden,et al.  The complexity of querying indefinite data about linearly ordered domains , 1992, J. Comput. Syst. Sci..

[104]  Maurice Bruynooghe,et al.  Temporal Reasoning with Abductive Event Calculus , 1992, ECAI.

[105]  L. Thorne,et al.  Reasoning About Inde nite Actions , 1992 .

[106]  Alon Y. Halevy,et al.  Constraints and redundancy in datalog , 1992, PODS.

[107]  Surajit Chaudhuri,et al.  On the equivalence of recursive and nonrecursive datalog programs , 1992, J. Comput. Syst. Sci..

[108]  Ron Shamir,et al.  Complexity and algorithms for reasoning about time: a graph-theoretic approach , 1993, JACM.

[109]  Harry G. Mairson,et al.  Undecidable optimization problems for database logic programs , 1993, JACM.

[110]  Egon Wanke,et al.  The Complexity of Connectivity Problems on Context-Free Graph Languages , 1994, J. Comput. Syst. Sci..