Back to Search Start Over

An Internalist Approach to Correct-by-Construction Compilers

Authors :
Emmanuel Gunther
Miguel Pagano
Alberto Pardo
Marcos Viera
Source :
PPDP
Publication Year :
2018
Publisher :
ACM, 2018.

Abstract

In this paper we present a methodology to organize the construction of a correct compiler, taking advantage of the power of full dependently type systems. The basic idea consists in decorating the abstract syntax of languages with their semantics, allowing to express the correctness of the compiler at type level. We show our methodology in a first small example and then explore how it can be promoted to more realistic languages, realizing that our internalistic approach is feasible for defining a correct-by-construction compiler from an imperative language with conditional iteration to a stack based intermediate language. We also show how this methodology can be combined with the externalist approach, compiling from the intermediate language to an assembly-like low level code and separately proving its correctness.

Details

Database :
OpenAIRE
Journal :
Proceedings of the 20th International Symposium on Principles and Practice of Declarative Programming
Accession number :
edsair.doi...........df0b8f2af7b4a499364b9fccc973c4b5
Full Text :
https://doi.org/10.1145/3236950.3236965