A Coq mechanised formal semantics for realistic SQL queries * Formally reconciling SQL and bag relational algebra - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2018

A Coq mechanised formal semantics for realistic SQL queries * Formally reconciling SQL and bag relational algebra

Résumé

In this article, we provide a Coq mechanised, executable, formal semantics for realistic SQL queries consisting of select [distinct] from where group by having queries with NULL values, functions, aggregates, quanti-fiers and nested potentially correlated sub-queries. We then relate this fragment to a Coq formalised (extended) relational algebra that enjoys a bag semantics. Doing so we provide the first formally mechanised proof of the equivalence of SQL and extended relational algebra and, from a compilation perspective, thanks to the Coq extraction mechanism to Ocaml, a Coq certified semantic analyser for a SQL compiler.
Fichier principal
Vignette du fichier
main.pdf (635.11 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01830255 , version 1 (04-07-2018)
hal-01830255 , version 2 (09-07-2018)

Identifiants

  • HAL Id : hal-01830255 , version 2

Citer

Véronique Benzaken, Évelyne Contejean. A Coq mechanised formal semantics for realistic SQL queries * Formally reconciling SQL and bag relational algebra. 2018. ⟨hal-01830255v2⟩
335 Consultations
787 Téléchargements

Partager

Gmail Facebook X LinkedIn More