Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

The Exact Complexity of the First-Order Logic Definability Problem

Published: 11 May 2016 Publication History

Abstract

We study the definability problem for first-order logic, denoted by FO-Def. The input of FO-Def is a relational database instance I and a relation R; the question to answer is whether there exists a first-order query Q (or, equivalently, a relational algebra expression Q) such that Q evaluated on I gives R as an answer.
Although the study of FO-Def dates back to 1978, when the decidability of this problem was shown, the exact complexity of FO-Def remains as a fundamental open problem. In this article, we provide a polynomial-time algorithm for solving FO-Def that uses calls to a graph-isomorphism subroutine (or oracle). As a consequence, the first-order definability problem is found to be complete for the class GI of all problems that are polynomial-time Turing reducible to the graph isomorphism problem, thus closing the open question about the exact complexity of this problem. The technique used is also applied to a generalized version of the problem that accepts a finite set of relation pairs, and whose exact complexity was also open; this version is also found to be GI-complete.

References

[1]
Scott Aaronson, Greg Kuperberg, and Christopher Granade. 2005. Complexity Zoo. Retrieved March 28, 2016 from https://complexityzoo.uwaterloo.ca.
[2]
Serge Abiteboul, Richard Hull, and Victor Vianu. 1995. Foundations of Databases. Addison-Wesley, New York, NY.
[3]
Azza Abouzied, Dana Angluin, Christos H. Papadimitriou, Joseph M. Hellerstein, and Avi Silberschatz. 2013. Learning and verifying quantified Boolean queries by example. In Proceedings of the 32nd ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS’13), New York, NY, June 22--27, 2013. 49--60.
[4]
Timos Antonopoulos, Frank Neven, and Frédéric Servais. 2013. Definability problems for graph query languages. In Proceedings of the Joint 2013 EDBT/ICDT Conferences (ICDT’13), Genoa, Italy, March 18--22, 2013. 141--152.
[5]
Sanjeev Arora and Boaz Barak. 2009. Computational Complexity - A Modern Approach. Cambridge University Press, New York, NY.
[6]
Vikraman Arvind and Jacobo Torán. 2005. Isomorphism testing: Perspective and open problems. Bulletin of the EATCS 86, 66--84.
[7]
László Babai. 2015. Graph isomorphism in quasipolynomial time. CoRR abs/1512.03547 (2015). http://arxiv.org/abs/1512.03547
[8]
François Bancilhon. 1978. On the completeness of query languages for relational data bases. In Proceedings of the 7th Symposium of Mathematical Foundations of Computer Science 1978, Zakopane, Poland, September 4--8, 1978 (Lecture Notes in Computer Science), Józef Winkowski (Ed.), Vol. 64. Springer, Berlin, 112--123.
[9]
Alexander Bilke and Felix Naumann. 2005. Schema matching using duplicates. In Proceedings of the 21st International Conference on Data Engineering (ICDE’05), 5--8 April 2005, Tokyo, Japan. 69--80.
[10]
Angela Bonifati, Radu Ciucanu, and Aurélien Lemay. 2015. Learning path queries on graph databases. In Proceedings of the 18th International Conference on Extending Database Technology (EDBT’15), Brussels, Belgium, March 23--27, 2015. 109--120.
[11]
Angela Bonifati, Radu Ciucanu, Aurélien Lemay, and Slawek Staworko. 2014b. A paradigm for learning queries on big data. In Proceedings of the 1st International Workshop on Bringing the Value of “Big Data” to Users (Data4U@VLDB’14), Hangzhou, China, September 1, 2014. 7.
[12]
Angela Bonifati, Radu Ciucanu, and Slawek Staworko. 2014a. Interactive inference of join queries. In Proceedings of the 17th International Conference on Extending Database Technology (EDBT’14), Athens, Greece, March 24--28, 2014. 451--462.
[13]
Ashok K. Chandra and David Harel. 1980. Computable queries for relational data bases. Journal of Computer and System Sciences 21, 2, 156--178.
[14]
Sara Cohen and Yaacov Y. Weiss. 2013. Certain and possible XPath answers. In Proceedings of the Joint 2013 EDBT/ICDT Conferences (ICDT’13), Genoa, Italy, March 18--22, 2013. 237--248.
[15]
Herbert B. Enderton. 1972. A Mathematical Introduction to Logic. Academic Press, New York.
[16]
Flavio Antonio Ferrarotti, Alejandra Lorena Paoletti, and José M. Turull Torres. 2009. First-order types and redundant relations in relational databases. In Proceedings of Advances in Conceptual Modeling - Challenging Perspectives, ER 2009 Workshops, Gramado, Brazil, November 9--12, 2009. 65--74.
[17]
George H. L. Fletcher, Marc Gyssens, Jan Paredaens, and Dirk Van Gucht. 2009. On the expressive power of the relational algebra on finite sets of relation pairs. IEEE Transactions on Knowledge and Data Engineering 21, 6, 939--942.
[18]
George H. L. Fletcher, Marc Gyssens, Jan Paredaens, Dirk Van Gucht, and Yuqing Wu. 2015. Structural characterizations of the navigational expressiveness of relation algebras on a tree. CoRR abs/1502.03258 (2015).
[19]
Georg Gottlob and Pierre Senellart. 2010. Schema mapping discovery from data instances. Journal of the ACM 57, 2.
[20]
Martin Grohe. 2011. From polynomial time queries to graph structure theory. Communications of the ACM 54, 6, 104--112.
[21]
Martin Grohe. 2012. Fixed-point definability and polynomial time on graphs with excluded minors. Journal of the ACM 59, 5, 27.
[22]
Marc Gyssens, Jan Paredaens, and Dirk Van Gucht. 1989. A uniform approach toward handling atomic and structured information in the nested relational database model. Journal of the ACM 36, 4, 790--825.
[23]
Marc Gyssens, Jan Paredaens, Dirk Van Gucht, and George H. L. Fletcher. 2006. Structural characterizations of the semantics of XPath as navigation tool on a document. In Proceedings of the 25th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, June 26--28, 2006, Chicago, IL, 318--327.
[24]
Lane A. Hemaspaandra. 1993. Lowness: A yardstick for NP-P. SIGACT News 24, 2, 10--14.
[25]
Peter Jeavons, David A. Cohen, and Marc Gyssens. 1999. How to determine the expressive power of constraints. Constraints 4, 2, 113--131.
[26]
Johannes Köbler, Uwe Schöning, and Jacobo Toran. 1993. The Graph Isomorphism Problem: Its Structural Complexity. Springer.
[27]
Anna Lubiw. 1981. Some NP-complete problems similar to graph isomorphism. SIAM Journal on Computing 10, 1, 11--21.
[28]
Brendan D. McKay and Adolfo Piperno. 2014. Practical graph isomorphism, II. Journal of Symbolic Computation 60, 94--112.
[29]
Jan Paredaens. 1978. On the expressive power of the relational algebra. Information Processing Letters 7, 2, 107--111.
[30]
Adolfo Piperno. 2008. Search space contraction in canonical labeling of graphs (preliminary version). CoRR abs/0804.4881 (2008). http://arxiv.org/abs/0804.4881
[31]
Li Qian, Michael J. Cafarella, and H. V. Jagadish. 2012. Sample-driven schema mapping. In Proceedings of the ACM SIGMOD International Conference on Management of Data (SIGMOD’12), Scottsdale, AZ, May 20--24, 2012. 73--84.
[32]
Ronald C. Read and Derek G. Corneil. 1977. The graph isomorphism disease. Journal of Graph Theory 1, 4, 339--363.
[33]
Anish Das Sarma, Aditya G. Parameswaran, Hector Garcia-Molina, and Jennifer Widom. 2010. Synthesizing view definitions from data. In Proceedings of the 13th International Conference on Database Theory (ICDT’10), Lausanne, Switzerland, March 23--25, 2010. 89--103.
[34]
Uwe Schöning. 1983. A low and a high hierarchy within NP. Journal of Computer and System Sciences 27, 1, 14--28.
[35]
Uwe Schöning. 1988. Graph isomorphism is in the low hierarchy. Journal of Computer and System Sciences 37, 3, 312--323.
[36]
Slawek Staworko and Piotr Wieczorek. 2012. Learning twig and path queries. In 15th International Conference on Database Theory (ICDT’12), Berlin, Germany, March 26--29, 2012. 140--154.
[37]
Slawek Staworko and Piotr Wieczorek. 2015. Characterizing XML twig queries with examples. In 18th International Conference on Database Theory (ICDT’15), March 23--27, 2015, Brussels, Belgium. 144--160.
[38]
Larry J. Stockmeyer. 1976. The polynomial-time hierarchy. Theory of Computing Sciences. 3, 1, 1--22.
[39]
Balder ten Cate and Víctor Dalmau. 2015. The product homomorphism problem and applications. In 18th International Conference on Database Theory (ICDT’15), March 23--27, 2015, Brussels, Belgium. 161--176.
[40]
Balder ten Cate, Víctor Dalmau, and Phokion G. Kolaitis. 2013. Learning schema mappings. ACM Transactions on Database Systems 38, 4, 28.
[41]
Jacobo Torán and Fabian Wagner. 2009. The complexity of planar graph isomorphism. Bulletin of the EATCS 97, 60--82.
[42]
Quoc Trung Tran, Chee-Yong Chan, and Srinivasan Parthasarathy. 2009. Query by output. In Proceedings of the ACM SIGMOD International Conference on Management of Data (SIGMOD’09), Providence, RI, June 29 - July 2, 2009. 535--548.
[43]
Jan Van den Bussche. 2001. Applications of Alfred Tarski’s ideas in database theory. In Computer Science Logic, 15th International Workshop (CSL’01). Proceedings of the 10th Annual Conference of the EACSL, Paris, France, September 10--13, 2001. 20--37.
[44]
Dirk Van Gucht. 1987. On the expressive power of the extended relational algebra for the unnormalized relational model. In Proceedings of the 6th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, March 23--25, 1987, San Diego, California. 302--312.
[45]
Dirk Van Gucht. 2009. BP-completeness. In Encyclopedia of Database Systems. 265--266.
[46]
Ross Willard. 2010. Testing expressibility is hard. In Proceedings of the 16th International Conference on Principles and Practice of Constraint Programming (CP’10), St. Andrews, Scotland, UK, September 6--10, 2010. 9--23.
[47]
V. N. Zemlyachenko, N. M. Korneenko, and R. I. Tyshkevich. 1985. Graph isomorphism problem. Journal of Soviet Mathematics 29, 4.
[48]
Meihui Zhang, Hazem Elmeleegy, Cecilia M. Procopiuc, and Divesh Srivastava. 2013. Reverse engineering complex join queries. In Proceedings of the ACM SIGMOD International Conference on Management of Data (SIGMOD’13), New York, NY, June 22--27, 2013. 809--820.

Cited By

View all
  • (2023)Separability and Its Approximations in Ontology-based Data ManagementSemantic Web10.3233/SW-233391(1-36)Online publication date: 8-Jun-2023
  • (2022)Logical separability of labeled data examples under ontologiesArtificial Intelligence10.1016/j.artint.2022.103785313(103785)Online publication date: Dec-2022
  • (2021)Regularizing conjunctive features for classificationJournal of Computer and System Sciences10.1016/j.jcss.2021.01.003119(97-124)Online publication date: Aug-2021
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Database Systems
ACM Transactions on Database Systems  Volume 41, Issue 2
Invited Paper from SIGMOD 2014 and Regular Papers
June 2016
271 pages
ISSN:0362-5915
EISSN:1557-4644
DOI:10.1145/2936309
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 11 May 2016
Accepted: 01 January 2016
Revised: 01 October 2015
Received: 01 May 2015
Published in TODS Volume 41, Issue 2

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Definability problem
  2. expressiveness
  3. first-order logic
  4. relational algebra

Qualifiers

  • Research-article
  • Research
  • Refereed

Funding Sources

  • Millennium Nucleus Center for Semantic Web Research
  • Becas Chile of CONICYT Chile

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)13
  • Downloads (Last 6 weeks)0
Reflects downloads up to 22 Sep 2024

Other Metrics

Citations

Cited By

View all
  • (2023)Separability and Its Approximations in Ontology-based Data ManagementSemantic Web10.3233/SW-233391(1-36)Online publication date: 8-Jun-2023
  • (2022)Logical separability of labeled data examples under ontologiesArtificial Intelligence10.1016/j.artint.2022.103785313(103785)Online publication date: Dec-2022
  • (2021)Regularizing conjunctive features for classificationJournal of Computer and System Sciences10.1016/j.jcss.2021.01.003119(97-124)Online publication date: Aug-2021
  • (2020)The complexity of definability by open first-order formulasLogic Journal of the IGPL10.1093/jigpal/jzaa008Online publication date: 30-May-2020
  • (2020)Deciding Quantifier-free Definability in Finite Algebraic StructuresElectronic Notes in Theoretical Computer Science10.1016/j.entcs.2020.02.003348(23-41)Online publication date: Mar-2020
  • (2020)Efficient Query Reverse Engineering Using Table FragmentsDatabase Systems for Advanced Applications10.1007/978-3-030-59419-0_25(406-422)Online publication date: 24-Sep-2020
  • (2019)Model comparison games for horn description logicsProceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science10.5555/3470152.3470156(1-14)Online publication date: 24-Jun-2019
  • (2019)Regularizing Conjunctive Features for ClassificationProceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3294052.3319680(2-16)Online publication date: 25-Jun-2019
  • (2019)Model Comparison Games for Horn Description Logics2019 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1109/LICS.2019.8785658(1-14)Online publication date: Jun-2019
  • (2019)Fully Generic Queries: Open Problems and Some Partial AnswersModel and Data Engineering10.1007/978-3-030-32065-2_2(20-31)Online publication date: 28-Oct-2019
  • Show More Cited By

View Options

Get Access

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media