Formal Semantics and Soundness of a Translation from Event-B Actions to SQL Statements
This work addresses the need for verified correctness in model-driven engineering tools, specifically for Event-B to SQL translations, but it is incremental as it builds on existing translation methods.
The authors tackled the problem of ensuring correctness in translating Event-B model actions to SQL statements by providing a formal semantics and proving soundness for the translation, enabling reliable use of generated code.
The EventB2SQL tool translates Event-B models to persistent Java applications that store the state of the model in a relational database. Most Event-B assignments are translated directly to SQL database modification statements, which can then be executed against the database. In this work, we present a formal semantics for and prove the soundness of the translation of sets of assignment statements representing the actions of an Event-B event. This allows the generated code to be used with confidence in its correctness.