On the expressive power of datalog: tools and a case study

We study here the language Datalog(≠), which is the query language obtained from Datalog by allowing equalities and inequalities in the bodies of the rules. We view Datalog(≠) as a fragment of an infinitary logic <italic>L</italic><supscrpt>ω</supscrpt> and show that <italic>L</italic><supscrpt>ω</supscrpt> can be characterized in terms of certain two-person pebble games. This characterization provides us with tools for investigating the expressive power of Datalog(≠). As a case study, we classify the expressibility of <italic>fixed subgraph homeomorphism</italic> queries on directed graphs. Fortune et al. [FHW80] classified the computational complexity of these queries by establishing two dichotomies, which are proper only if P ≠ NP. Without using any complexity-theoretic assumptions, we show here that the two dichotomies are indeed proper in terms of expressibility in Datalog(≠).

[1]  Jeffrey D. Ullman,et al.  Principles of database and knowledge-base systems, Vol. I , 1988 .

[2]  Neil Immerman Upper and lower bounds for first order expressibility , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).

[3]  Laks V. S. Lakshmanan,et al.  Inductive pebble games and the expressive power of datalog , 1989, PODS '89.

[4]  Morton Davis,et al.  7. Infinite Games of Perfect Information , 1964 .

[5]  Phokion G. Kolaitis On Asymptotic Probability of Inductive Queries and Their Decision Problem , 1985, Logic of Programs.

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

[7]  Michel de Rougemont Second-order and Inductive Definability on Finite Structures , 1987, Math. Log. Q..

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

[9]  Y. Moschovakis Elementary induction on abstract structures (Studies in logic and the foundations of mathematics) , 1974 .

[10]  Saharon Shelah,et al.  Fixed-point extensions of first-order logic , 1985, 26th Annual Symposium on Foundations of Computer Science (sfcs 1985).

[11]  K. Jon Barwise,et al.  On Moschovakis closure ordinals , 1977, Journal of Symbolic Logic.

[12]  Bela Bollobas,et al.  Graph theory , 1979 .

[13]  H. Keisler Model theory for infinitary logic , 1971 .

[14]  Andreas Blass,et al.  Existential Fixed-Point Logic , 1987, Computation Theory and Logic.

[15]  Yiannis N. Moschovakis,et al.  Elementary induction on abstract structures , 1974 .

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

[17]  John E. Hopcroft,et al.  The Directed Subgraph Homeomorphism Problem , 1978, Theor. Comput. Sci..

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

[19]  Christos H. Papadimitriou,et al.  A note the expressive power of Prolog , 1985, Bull. EATCS.

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

[21]  Oded Shmueli,et al.  Decidability and expressiveness aspects of logic queries , 1987, XP7.52 Workshop on Database Theory.

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

[23]  Yuri Gurevich,et al.  Datalog vs. first-order logic , 1989, 30th Annual Symposium on Foundations of Computer Science.