Calculating dependently-typed compilers (functional pearl)

Autor: Graham Hutton, Mitchell Pickard
Rok vydání: 2021
Předmět:
Zdroj: Proceedings of the ACM on Programming Languages. 5:1-27
ISSN: 2475-1421
DOI: 10.1145/3473587
Popis: Compilers are difficult to write, and difficult to get right. Bahr and Hutton recently developed a new technique for calculating compilers directly from specifications of their correctness, which ensures that the resulting compilers are correct-by-construction. To date, however, this technique has only been applicable to source languages that are untyped. In this article, we show that moving to a dependently-typed setting allows us to naturally support typed source languages, ensure that all compilation components are type-safe, and make the resulting calculations easier to mechanically check using a proof assistant.
Databáze: OpenAIRE