skip to main content
article

Datalog LITE: a deductive query language with linear time model checking

Published:01 January 2002Publication History
Skip Abstract Section

Abstract

We present Datalog LITE, a new deductive query language with a linear-time model-checking algorithm, that is, linear time data complexity and program complexity. Datalog LITE is a variant of Datalog that uses stratified negation, restricted variable occurrences and a limited form of universal quantification in rule bodies.Despite linear-time evaluation, Datalog LITE is highly expressive: It encompasses popular modal and temporal logics such as CTL or the alternation-free μ-calculus. In fact, these formalisms have natural presentations as fragments of Datalog LITE. Further, Datalog LITE is equivalent to the alternation-free portion of guarded fixed-point logic. Consequently, linear-time model checking algorithms for all mentioned logics are obtained in a unified way.The results are complemented by inexpressibility proofs to the effect that linear-time fragments of stratified Datalog have too limited expressive power.

References

  1. ABADI,M.AND MANNA, Z. 1989. Temporal logic programming. J. Logic Prog. 8, 3, 277-295.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. ABITEBOUL, S., HULL, R., AND VIANU, V. 1995. Foundations of Databases. Addison-Wesley, Reading, Mass.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. ABITEBOUL, S., VIANU, V., FORDHAM,B.S.,AND YESHA, Y. 1998. Relational transducers for electronic commerce. In Proceedings of the Seventeenth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. J. Paredaens, Ed. ACM Press. New York, pp. 179-187.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. ANDREKA, H., VAN BENTHEM,J.,AND NEMETI, I. 1998. Modal languages and bounded fragments of predicate logic. J. Philos. Logic 27, 217-274.]]Google ScholarGoogle ScholarCross RefCross Ref
  5. APT, K. R., BLAIR,H.A.,AND WALKER, A. 1988. Towards a theory of declarative knowledge. In Foundations of DD and LP, J. Minker, Ed. pp. 89-148.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. BAUDINET, M. 1989a. Logic programming semantics: Techniques and applications. Ph.D. dissertation, Stanford Univ., Stanford, Calif.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. BAUDINET, M. 1989b. Temporal logic programming is complete and expressive. In Proceedings of the ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages. ACM, New York, pp. 276-280.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. BAUDINET, M. 1992. A simple proof of the completeness of temporal logic programming. In Intensional Logics for Programming. L. F. del Cerro and M. Penttonen, Eds. Oxford University Press, Oxford, England.]]Google ScholarGoogle Scholar
  9. BAUDINET, M. 1995. On the expressiveness of temporal logic programming. Inf. Comput. 117,2, 157-180.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. BAUDINET, M., CHOMICKI,J.,AND WOLPER, P. 1993. Temporal deductive databases. In Temporal Databases. A. Tansel, J. Clifford, S. Gadia, S. Jajodia, A. Segev, and R. Snodgrass, Eds. Benjamin/Cummings.]]Google ScholarGoogle Scholar
  11. BERMAN, K. A., SCHLIPF,J.S.,AND FRANCO, J. V. 1995. Computing well-founded semantics faster. In LPNMR'95, V. Marek and A. Nerode, Eds. Lecture Notes in Computer Science. Springer-Verlag, New York, pp. 113-126.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. BERWANGER, D. 2000. Games and model checking for guarded logics. Diplomarbeit, RWTH Aachen.]]Google ScholarGoogle Scholar
  13. BIERE, A., CIMATTI, A., CLARKE, E., AND ZHU, Y. 1999. Symbolic model checking without BDDs. In TACAS. Springer-Verlag, New York, 193-207.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. BRYANT, R. E. 1986. Graph-based algorithms for boolean function manipulation. IEEE Trans. Comput. 35, 8, 677-691.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. BURCH, J. R., CLARKE, E. M., MCMILLAN, K. L., DILL,D.L.,AND HWANG, L. J. 1992. Symbolic model checking: 10 20 states and beyond. Inf. Comput. 98, 2, 142-170.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. CERI, S., GOTTLOB,G.,AND TANCA, L. 1990. Logic Programming and Databases. Surveys in Computer Science. Springer-Verlag, New York.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. CHARATONIK,W.AND PODELSKI, A. 1998. Set-based analysis of reactive infinite-state systems. In TACAS'98. B. Steffen, Ed. Lecture Notes in Computer Services, vol, 1384. Springer- Verlag, New York.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. CHOMICKI, J. 1990a. Functional deductive databases: Query processing in the presence of limited function symbols. Ph.D., Rutgers Univ.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. CHOMICKI, J. 1990b. Polynomial-time computable queries in temporal deductive databases. In Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS). ACM, New York, pp. 379-391.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. CHOMICKI,J.AND IMIELINSKI, T. 1988. Temporal deductive databases and infinite objects. In Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS). ACM, New York, pp. 61-73.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. CHOMICKI,J.AND IMIELINSKI, T. 1989. Relational specifications of infinite query answers. In Proceedings of the ACM SIGMOD International Conference on Management of Data. ACM, New York, pp. 174-183.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. CLARKE,E.AND EMERSON, E. A. 1981. Design and synthesis of synchronization skeletons using branching time temporal logic. In Logics of Programs: Workshop. Lecture Notes in Computer Science, vol. 131. Springer-Verlag, New York, pp. 52-71.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. CLARKE, E., GRUMBERG, O., JHA, S., LU,Y.,AND VEITH, H. 2000a. Counterexample-guided abstraction refinement. In Computer-Aided Verification (CAV) 2000. Lecture Notes in Computer Science, vol. 1855. Springer-Verlag, New York. (Full version available as Technical Report CMU-CS-00- 103, Carnegie Mellon University).]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. CLARKE, E., GRUMBERG,O.,AND PELED, D. 2000b. Model Checking. MIT Press, Cambridge, Mass.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. CLARKE,E.AND SCHLINGLOFF, H. 2000. Model checking. In Handbook of Automated Reasoning. J. Robinson and A. Voronkov, Eds. Elsevier, North-Holland, Amsterdam, The Netherlands, pp. 1635-1790.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. CLARKE, E. M., GRUMBERG,O.,AND LONG, D. E. 1994. Model checking and abstraction. ACMTrans. Prog. Lang. Syst. (TOPLAS) 16, 5 (Sept.) 1512-1542.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. CODD, E. 1972. Relational completeness of database sublanguages. In Courant Computer Science Symposium 6: Database Systems, R. Rustin, Ed. vol. 3. Prentice-Hall, Englewood Cliffs, NJ, pp. 65-98.]]Google ScholarGoogle Scholar
  28. CONSENS,M.P.AND MENDELZON, A. O. 1993. Low-complexity aggregation in GraphLog and Datalog. Theoret. Comput. Sci. 116, 95-116.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. COURCELLE, B. 1990. Graph rewriting: An algebraic and logic approach. In Handbook of Theoretical Computer Science, Vol. B. Elsevier, North-Holland, Amsterdam, The Netherlands, pp. 193-242.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. CUI, B., DONG, Y., DU, X., KUMAR,K.N.,RAMAKRISHNAN, C. R., RAMAKRISHNAN,I.V., ROYCHOUDHURY, A., SMOLKA,S.A.,AND WARREN, D. S. 1998. Logic programming and model checking. In PLAP/ALP'98. C. Palamidessi, H. Glaser, and K. Meinke, Eds. Lecture Notes in Computer Science, vol. 1490. Springer-Verlag, New York, pp. 1-20.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. DAHLHAUS, E. 1987. Skolem normal forms concerning the least fixpoint. In Computation Theory and Logic. Lecture Notes in Computer Science, vol. 270. Springer-Verlag, New York, pp. 101-106.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. DANTSIN, E., EITER, T., GOTTLOB,G.,AND VORONKOV, A. 2001. Complexity and expressive power of logic programming. ACM Comput. Surv., to appear.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. DOWLING,W.F.AND GALLIER, J. H. 1984. Linear-time algorithms for testing the satisfiability of propositional Horn formulae. J. Logic Prog. 1, 3 (Oct.), 267-284.]]Google ScholarGoogle ScholarCross RefCross Ref
  34. EBBINGHAUS, H.-D. AND FLUM, J. 1999. Finite Model Theory (2nd edition). Springer-Verlag, New York.]]Google ScholarGoogle Scholar
  35. EITER, T., GOTTLOB,G.,AND VEITH, H. 1997. Modular logic programming and generalized quantifiers. In LPNMR'97. J. Dix, U. Furbach, and A. Nerode, Eds. Lecture Notes in Computer Science, vol. 1265. Springer-Verlag, New York, pp. 290-309.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  36. EITER, T., GOTTLOB,G.,AND VEITH, H. 1999. Generalized quantifiers in logic programs. In Proceedings of the ESSLLI Workshop on Generalized Quantifiers (Aix-en-Provence), France, J. Vaananen, Ed. Lecture Notes in Computer Science, vol. 1754. Springer-Verlag, New York.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  37. EMERSON, E. 1990. Temporal and modal logic. In Handbook of Theoretical Computer Science. Vol. B., J. van Leeuven, Ed. Elsevier, North-Holland, Amsterdam, The Netherlands, pp. 995- 1072.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  38. FLUM, J. 1999. On the (infinite) model theory of fixed-point logics. In Models, algebras, and proofs. X. Caicedo and C. Montenegro, Eds. Number 2003 in Lecture Notes in Pure and Applied Mathematics Series. Marcel Dekker, pp. 67-75.]]Google ScholarGoogle Scholar
  39. GELDER,A.V.,ROSS,K.A.,AND SCHLIPF, J. S. 1991. The well-founded semantics for general logic programs. J. ACM 38, 3 (July), 620-650.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  40. GOTTLOB, G., GR~DEL, E., AND VEITH, H. 2000. Linear-time datalog and branching time logic. In Logic-Based Artificial Intelligence, J. Minker, Ed. Kluwer, pp. 443-468.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  41. GOTTLOB, G., LEONE,N.,AND VEITH, H. 1999. Succinctness as a source of complexity in logical formalisms. Ann. Pure Appl. Logic 97(1-3), 231-260.]]Google ScholarGoogle ScholarCross RefCross Ref
  42. GRADEL, E. 1992. On transitive closure logic. In CSL 91. Lecture Notes in Computer Science, vol. 626. Springer-Verlag, New York, pp. 149-163.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  43. GRADEL, E. 1999a. Decision procedures for guarded logics. In Automated Deduction-CADE16. Proceedings of 16th International Conference on Automated Deduction (Trento, Italy). Lecture Notes in Artificial Intelligence, vol. 1632. Springer-Verlag, New York.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  44. GRADEL, E. 1999b. On the restraining power of guards. J. Symb. Logic 64, 1719-1742.]]Google ScholarGoogle ScholarCross RefCross Ref
  45. GRADEL, E. 1999c. Why are modal logics so robustly decidable? Bull. EATCS 68, 90-103.]]Google ScholarGoogle Scholar
  46. GRADEL,E.AND WALUKIEWICZ, I. 1999. Guarded fixed point logic. In Proceedings of the 14th IEEE Symposium on Logic in Computer Science. G. Longo, Ed. IEEE Computer Society Press, Los Alamitos, Calif., pp. 45-54.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  47. IMMERMAN, N. 1988. Nondeterministic space is closed under complementation. SIAM J. Com-put. 17, 5, 935-938.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  48. IMMERMAN,N.AND VARDI, M. Y. 1997. Model checking and transitive-closure logic. In Proceedings of the CAV 1997. O. Grumberg, Ed. Lecture Notes in Computer Science, vol. 1254. Springer-Verlag, New York, pp. 291-302.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  49. ITAI,A.AND MAKOWSKY, J. A. 1987. Unification as a complexity measure for logic programming. J. Logic Prog. 4, 2 (June), 105-117.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  50. JANIN,D.AND WALUKIEWICZ, I. 1996. On the expressive completeness of the propositional mucalculus with respect to monadic second order logic. In CONCUR 96. Lecture Notes in Computer Science, vol. 1119. Springer-Verlag, New York, pp. 263-277.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  51. JURDZINSKI, M. 2000. Small progress measures for solving parity games. In STACS 2000, Proceedings of the 17th Annual Symposium on Theoretical Aspects of Computer Science. Lecture Notes in Computer Science, vol. 1770. Springer-Verlag, New York, pp. 290-301.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  52. KOLAITIS, P. G. 1990. Implicit definability on finite structures and unambiguous computations. Inf. Comput. 90, 50-66.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  53. KOZEN, D. 1983. Results on the propositional calculus. Theoret. Comput. Sci. 27, 3 (Dec.), 333- 354.]]Google ScholarGoogle ScholarCross RefCross Ref
  54. KURSHAN, R. P. 1994. Computer-Aided Verification of Coordinating Processes. Princeton University Press, Princeton, N.J.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  55. LIU, X., RAMAKRISHNAN,C.,AND SMOLKA, S. 1998. Fully local and efficient evaluation of alternating fixed points. In TACAS'98. Lecture Notes in Computer Science, vol. 1384. Springer-Verlag, New York.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  56. MCMILLAN, K. L. 1993. Symbolic Model Checking. Kluwer.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  57. MINOUX, M. 1988. LTUR: A simplified linear-time unit resolution algorithm for Horn formulae and computer implementation. Inf. Proc. Lett. 29, 1 (15 Sept.), 1-12.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  58. MORET,B.AND SHAPIRO, H. 1990. Algorithms from P to NP. Benjamin/Cummings.]]Google ScholarGoogle Scholar
  59. MURAKAMI, M. 1990. A declarative semantics of flat guarded Horn clauses for programs with perpetual processes. Theoret. Comput. Sci. 75, 1-2 (25 Sept.), 67-83.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  60. PELED, D. A., PRATT,V.R.,AND HOLZMANN,G.J.,EDS. 1997. Partial Order Methods in Verification. DIMACS series, vol. 29. American Mathematical Society, Providence, R.I.]]Google ScholarGoogle Scholar
  61. RAMAKRISHNAN,Y.S.,RAMAKRISHNAN, C. R., RAMAKRISHNAN,I.V.,SMOLKA, S. A., SWIFT,T.,AND WARREN, D. S. 1997. Efficient model checking using tabled resolution. In Proceedings of the CAV'97, O. Grumberg, Ed. Lectures Notes in Computer Science, vol. 1254. Springer-Verlag, New York, pp. 143-154.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  62. SEESE, D. 1996. Linear time computable problems and first-order descriptions. Math. Struct. Comput. Sci. 6, 6 (Dec.), 505-526.]]Google ScholarGoogle ScholarCross RefCross Ref
  63. ULLMAN, J. D. 1989. Principles of Data Base Systems. Computer Science Press.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  64. VAN EMDE BOAS, P. 1990. Machine models and simulation. In Handbook of Theoretical Computer Science, vol. A. J. van Leeuven, Ed. Elsevier, North-Holland, Amsterdam, The Netherlands, pp. 1-66.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  65. VARDI, M. 1982. Complexity of relational query languages. In Proceedings of the 14th Annual ACM Symposium on Theory of Computing (San Francisco, Calif.). ACM, New York, pp. 137-146.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  66. VARDI, M. Y. 1998. Reasoning about the past with two-way automata. In ICALP, K. G. Larsen, S. Skyum, and G. Winskel, Eds. Lecture Notes in Computer Science, vol. 1443. Springer-Verlag, New York, pp. 628-641.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  67. VARDI,M.AND WOLPER, P. 1994. Reasoning about infinite computations. Inf. Comput. 115, 1, 1-37.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  68. WOLPER, P. 1983. Temporal logic can be more expressive. Inf. Cont. 56, 1-2, 72-99.]]Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Datalog LITE: a deductive query language with linear time model checking

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in

            Full Access

            • Published in

              cover image ACM Transactions on Computational Logic
              ACM Transactions on Computational Logic  Volume 3, Issue 1
              January 2002
              175 pages
              ISSN:1529-3785
              EISSN:1557-945X
              DOI:10.1145/504077
              Issue’s Table of Contents

              Copyright © 2002 ACM

              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: 1 January 2002
              Published in tocl Volume 3, Issue 1

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • article

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader