A Complete Logic for Non-Deterministic Database Transformations

Database transformations provide a unifying framework for database queries and updates. Recently, it was shown that non-deterministic database transformations can be captured exactly by a variant of ASMs, the so-called Database Abstract State Machines (DB-ASMs). In this article we present a logic for DB-ASMs, extending the logic of Nanchen and Stärk for ASMs. In particular, we develop a rigorous proof system for the logic for DB-ASMs, which is proven to be sound and complete. The most difficult challenge to be handled by the extension is a proper formalisation capturing non-determinism of database transformations and all its related features such as consistency, update sets or multisets associated with DB-ASM rules. As the database part of a state of database transformations is a finite structure and DB-ASMs are restricted by allowing quantifiers only over the database part of a state, we resolve this problem by taking update sets explicitly into the logic, i.e. by using an additional modal operator [X], where X is interpreted as an update set ∆ generated by a DB-ASM rule. The DB-ASM logic provides a powerful verification tool to study properties of database transformations. Acknowledgement. The research reported in this paper results from the project Behavioural Theory and Logics for Distributed Adaptive Systems supported by the Austrian Science Fund (FWF): [P26452-N15]. It was further supported by the Austrian Research Promotion Agency (FFG) through the COMET funding for the Software Competence Center Hagenberg.

[1]  Martin Otto,et al.  Inductive Definability with Counting on Finite Structures , 1992, CSL.

[2]  Max J. Cresswell,et al.  A New Introduction to Modal Logic , 1998 .

[3]  Jan Van den Bussche,et al.  Non-deterministic aspects of database transformations involving object creation , 1993 .

[4]  Martin Otto,et al.  The expressive power of fixed-point logic with counting , 1996, Journal of Symbolic Logic.

[5]  Egon Börger,et al.  Abstract State Machines. A Method for High-Level System Design and Analysis , 2003 .

[6]  Serge Abiteboul,et al.  Object identity as a query language primitive , 1989, SIGMOD '89.

[7]  Serge Abiteboul,et al.  A translation language complete for database update and specification , 1987, PODS '87.

[8]  José Maria Turull Torres Relational Databases and Homogeneity in Logics with Counting , 2002, Acta Cybern..

[9]  Andreas Blass,et al.  Persistent queries in the behavioral theory of algorithms , 2011, TOCL.

[10]  G. R. D. Lavalette A Logic of Modification and Creation , 2001 .

[11]  Jan Gilbert Van Den Bussche Formal aspects of object identity in database manipulation , 1993 .

[12]  Gerard R. Renardel de Lavalette,et al.  Reasoning About Dynamic Features in Specification Languages - A Modal View on Creation and Modification , 1993, Semantics of Specification Languages.

[13]  Jan Van den Bussche,et al.  Non-Deterministic Aspects of Object-Creating Database Transformations , 1992, FMLDO.

[14]  Michael Kifer,et al.  The State of Change: A Survey , 1996, Transactions and Change in Logic Databases.

[15]  Qing Wang,et al.  Logical Foundations of Database Transformations for Complex-Value Databases , 2010 .

[16]  Lauri Hella,et al.  Logics with aggregate operators , 1999, Proceedings. 14th Symposium on Logic in Computer Science (Cat. No. PR00158).

[17]  Dieter Fensel,et al.  A Survey of Languages for Specifying Dynamics: A Knowledge Engineering Perspective , 2001, IEEE Trans. Knowl. Data Eng..

[18]  Roel Wieringa,et al.  Dynamic Database Logic: the First-order Case , 1992, FMLDO.

[19]  Roel Wieringa,et al.  Regular database update logics , 2001, Theor. Comput. Sci..

[20]  Gerard Renardel de Lavalette,et al.  A Formalisation of Evolving Algebras , 1995 .

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

[22]  Jan Van den Bussche,et al.  On the completeness of object-creating database transformation languages , 1997, JACM.

[23]  Arno Schonegge,et al.  Extending Dynamic Logic for Reasoning about Evolving Algebras , 1995 .

[24]  José Maria Turull Torres On the expressibility and the computability of untyped queries , 2001, Ann. Pure Appl. Log..

[25]  Saharon Shelah,et al.  On polynomial time computation over unordered structures , 2001, Journal of Symbolic Logic.

[26]  Dieter Fensel,et al.  MLPM: Defining a Semantics and Axiomatization for Specifying the Reasoning Process of Knowleged-based Systems , 1996, ECAI.

[27]  Robert F. Stärk,et al.  A Logic for Abstract State Machines , 2001, J. Univers. Comput. Sci..

[28]  Neil Immerman,et al.  Expressibility as a complexity measure: results and directions , 1987, SCT.

[29]  Yuri Gurevich,et al.  Sequential abstract-state machines capture sequential algorithms , 2000, TOCL.

[30]  Roel Wieringa,et al.  Aziomatization, Declarative Semantics and Operational Semantics of Passive and Active Updates in Logic Databases , 1995, J. Log. Comput..

[31]  Martin Otto,et al.  Bounded Variable Logics and Counting: A Study in Finite Models , 1997, Lecture Notes in Logic.

[32]  Serge Abiteboul,et al.  Updates, A New Frontier , 1988, ICDT.

[33]  Michal Walicki,et al.  Complete Axiomatisations of Properties of Finite Sets , 2008, Log. J. IGPL.

[34]  Yuri Gurevich,et al.  Metafinite Model Theory , 1994, LCC.

[35]  Jan Van den Bussche,et al.  A Semideterministic Approach to Object Creation and Nondeterminism in Database Queries , 1997, J. Comput. Syst. Sci..

[36]  Neil Immerman,et al.  An optimal lower bound on the number of variables for graph identification , 1992, Comb..

[37]  Serge Abiteboul,et al.  Datalog Extensions for Database Queries and Updates , 1991, J. Comput. Syst. Sci..

[38]  Klaus-Dieter Schewe,et al.  A Customised ASM Thesis for Database Transformations , 2010, Acta Cybern..