Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Translating Canonical SQL to Imperative Code in Coq (2203.08941v2)

Published 16 Mar 2022 in cs.PL and cs.DB

Abstract: SQL is by far the most widely used and implemented query language. Yet, on some key features, such as correlated queries and NULL value semantics, many implementations diverge or contain bugs. We leverage recent advances in the formalization of SQL and query compilers to develop DBCert, the first mechanically verified compiler from SQL queries written in a canonical form to imperative code. Building DBCert required several new contributions which are described in this paper. First, we specify and mechanize a complete translation from SQL to the Nested Relational Algebra which can be used for query optimization. Second, we define Imp, a small imperative language sufficient to express SQL and which can target several execution languages including JavaScript. Finally, we develop a mechanized translation from the nested relational algebra to Imp, using the nested relational calculus as an intermediate step.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Véronique Benzaken (3 papers)
  2. Évelyne Contejean (2 papers)
  3. Mohammed Houssem Hachmaoui (1 paper)
  4. Chantal Keller (7 papers)
  5. Louis Mandel (18 papers)
  6. Avraham Shinnar (17 papers)
  7. Jérôme Siméon (3 papers)
Citations (1)

Summary

We haven't generated a summary for this paper yet.