1
- https://doi.org/10.1007/978-3-030-30942-8_33
Reasoning Formally About Database Queries and Updates
- Jan 1, 2019
- Jon Haël Brenas +2 more
This paper explores formal verification in the area of database technology, in particular how to reason about queries and updates in a database system. The formalism is sufficiently general to be applicable to relational and graph databases. We first define a domain-specific language consisting of nested query and update primitives, and give its operational semantics. Queries are in full first-order logic. The problem we try to solve is whether a database satisfying a given pre-condition will satisfy a given post-condition after execution of a given sequence of queries and updates. We propose a weakest-precondition calculus and prove its correctness. We finally examine a restriction of our framework that produces formulas in the guarded fragment of predicate logic and thus leads to a decidable proof problem.
- # Full First-order Logic
- # Update Primitives
- # Sequence Of Queries
- # Graph Databases
- # Database Queries
- # Operational Semantics
- # Sequence Of Updates
- # Query Primitives
- # Database System
- # Fragment Of Logic