A Coq Mechanised Formal Semantics for Realistic SQL Queries - Archive ouverte HAL
Communication Dans Un Congrès Année : 2019

A Coq Mechanised Formal Semantics for Realistic SQL Queries

Résumé

In this article, we provide a Coq mechanised, executable, formal semantics for a realistic fragment of SQL consisting of select [distinct] from where group by having queries with NULL values, functions, aggregates, quantifiers and nested potentially correlated sub-queries. Relying on the Coq extraction mechanism to Ocaml, we further produce a Coq certified semantic analyser for a SQL compiler. We then relate this fragment to a Coq formalised (extended) relational algebra that enjoys a bag semantics hence recovering all well-known algebraic equivalences upon which are based most of compilation optimisations. By doing so, we provide the first formally mechanised proof of the equivalence of SQL and extended relational algebra.
Fichier principal
Vignette du fichier
hal.pdf (802.32 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01955433 , version 1 (14-12-2018)

Identifiants

Citer

Véronique Benzaken, Évelyne Contejean. A Coq Mechanised Formal Semantics for Realistic SQL Queries. CPP 19, ACM, Jan 2019, Cascais, Portugal. pp.249-261, ⟨10.1145/3293880.3294107⟩. ⟨hal-01955433⟩
146 Consultations
312 Téléchargements

Altmetric

Partager

More