2010 · 95 citations · 16 references
ComputingComputer ScienceData ManagementDatabasesFormal MethodsConcurrency VerificationDatabase ManagementQuery ProcessingRelational AlgebraRelational Data ModelRelational DatabasesB+ TreesB-treesCoqRelational Database SystemsRelational SemanticsSpecification Modeling
We report on our experience implementing a lightweight, fully verified relational database management system (RDBMS). The functional specification of RDBMS behavior, RDBMS implementation, and proof that the implementation meets the specification are all written and verified in Coq. Our contributions include: (1) a complete specification of the relational algebra in Coq; (2) an efficient realization of that model (B+ trees) implemented with the Ynot extension to Coq; and (3) a set of simple query optimizations proven to respect both semantics and run-time cost. In addition to describing the design and implementation of these artifacts, we highlight the challenges we encountered formalizing them, including the choice of representation for finite relations of typed tuples and the challenges of reasoning about data structures with complex sharing. Our experience shows that though many challenges remain, building fully-verified systems software in Coq is within reach.
16
Separation logic: a logic for shared mutable data structures
John Reynolds · 2003 · 2.2K citations
An introduction to database systems
Ben Shneiderman · Information Processing & Management · 1976 · 1K citations
Resources, concurrency, and local reasoning
Peter W. O’Hearn · Theoretical Computer Science · 2007 · 558 citations
Conor McBride, James McKinna · Journal of Functional Programming · 2004 · 327 citations · Full text
A semantics for concurrent separation logic
Stephen Brookes · Theoretical Computer Science · 2007 · 235 citations