172 research outputs found

    Automatic generation of simplified weakest preconditions for integrity constraint verification

    Get PDF
    Given a constraint cc assumed to hold on a database BB and an update uu to be performed on BB, we address the following question: will cc still hold after uu is performed? When BB is a relational database, we define a confluent terminating rewriting system which, starting from cc and uu, automatically derives a simplified weakest precondition wp(c,u)wp(c,u) such that, whenever BB satisfies wp(c,u)wp(c,u), then the updated database u(B)u(B) will satisfy cc, and moreover wp(c,u)wp(c,u) is simplified in the sense that its computation depends only upon the instances of cc that may be modified by the update. We then extend the definition of a simplified wp(c,u)wp(c,u) to the case of deductive databases; we prove it using fixpoint induction

    On relating CTL to Datalog

    Full text link
    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.Comment: 34 pages, 1 figure (file .eps

    Foreword

    Get PDF

    Tree inclusions in windows and slices

    Get PDF
    PP is an embedded subtree of TT if PP can be obtained by deleting some nodes from TT: if a node vv is deleted, all edges adjacent to vv are also deleted, and outgoing edges are replaced by edges going from the parent of vv (if it exists) to the children of vv. Deciding whether PP is an embedded subtree of TT is known to be NP-complete. Given two trees (a target TT and a pattern PP) and a natural number ww, we address two problems: 1. counting the number of windows of TT having height exactly ww and containing pattern PP as an embedded subtree, and 2. counting the number of slices of TT having height exactly ww and containing pattern PP as an embedded subtree

    Complexity of Monadic inf-datalog. Application to temporal logic.

    Get PDF
    In [11] we defined Inf-Datalog and characterized the fragments of Monadic inf-Datalog that have the same expressive power as Modal Logic (resp. CTLCTL, alternation-free Modal μ\mu-calculus and Modal μ\mu-calculus). We study here the time and space complexity of evaluation of Monadic inf-Datalog programs on finite models. We deduce a new unified proof that model checking has 1. linear data and program complexities (both in time and space) for CTLCTL and alternation-free Modal μ\mu-calculus, and 2. linear-space (data and program) complexities, linear-time program complexity and polynomial-time data complexity for LμkL\mu_k (Modal μ\mu-calculus with fixed alternation-depth at most kk).

    A unifying theorem for algebraic semantics and dynamic logics

    Get PDF
    AbstractA unified single proof is given which implies theorems in such diverse fields as continuous algebras of algebraic semantics, dynamic algebras of logics of programs, and program verification methods for total correctness. The proof concerns ultraproducts and diagonalization

    An automata characterisation for multiple context-free languages

    Full text link
    We introduce tree stack automata as a new class of automata with storage and identify a restricted form of tree stack automata that recognises exactly the multiple context-free languages.Comment: This is an extended version of a paper with the same title accepted at the 20th International Conference on Developments in Language Theory (DLT 2016
    corecore