On relating CTL to Datalog
Preprint
Abstract
CTL is the dominant temporal specification language in practice mainly due to the fact that it admits model checking in linear time. Logic programming and the database query language Datalog are often used as an implementation platform for logic languages. In this paper we present the exact relation between CTL and Datalog and moreover we build on this relation and known efficient algorithms for CTL to obtain efficient algorithms for fragments of stratified Datalog. The contributions of this paper are: a) We embed CTL into STD which is a proper fragment of stratified Datalog. Moreover we show that STD expresses exactly CTL -- we prove that by embedding STD into CTL. Both embeddings are linear. b) CTL can also be embedded to fragments of Datalog without negation. We define a fragment of Datalog with the successor build-in predicate that we call TDS and we embed CTL into TDS in linear time. We build on the above relations to answer open problems of stratified Datalog. We prove that query evaluation is linear and that containment and satisfiability problems are both decidable. The results presented in this paper are the first for fragments of stratified Datalog that are more general than those containing only unary EDBs.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- On temporal logic versus datalogTheoretical Computer Science, 2003
- An automata-theoretic approach to branching-time model checkingJournal of the ACM, 2000
- On the Equivalence of Recursive and Nonrecursive Datalog ProgramsJournal of Computer and System Sciences, 1997
- Reasoning about Infinite ComputationsInformation and Computation, 1994
- Equivalence, query-reachability and satisfiability in Datalog extensions1993
- The expressive power of stratified logic programsInformation and Computation, 1991
- Relational queries computable in polynomial timeInformation and Control, 1986
- Horn clause queries and generalizationsThe Journal of Logic Programming, 1985
- Deciding full branching time logicInformation and Control, 1984
- Using branching time temporal logic to synthesize synchronization skeletonsScience of Computer Programming, 1982