An intrinsically-typed solution for the list-machine benchmark.

No Thumbnail Available
Date
2022
Journal Title
Journal ISSN
Volume Title
Publisher
Abstract
Formal models are important tools in the programming language research community. However, such models are full of intricacies and, due to that, they are subject to subtle errors. Such failures motivated the usage of tools to ensure the correctness of these formalisms. One way to eliminate such errors is to encode models in a dependently-typed language in order to ensure its ‘‘correctness-by-construction’’. In this paper, we use this idea to build a verified interpreter for the list-machine benchmark in the Agda programming language, comparing the results with formalizations developed by Appel et al.. We formalize the 14 tasks of the benchmark using roughly 14% of LOC compared to a Twelf solution, and 47% of LOC compared to a Coq solution, even without the use of proof automation. We also describe a solution to the second version of the benchmark and compare it with Appel’s et. al. Coq-based solution.
Description
Keywords
Dependent types, Formal semantics, Agda
Citation
FEITOSA, S. da S.; RIBEIRO, R. G. An intrinsically-typed solution for the list-machine benchmark. Journal of Computer Languages, v. 68, artigo 101085, 2021. Disponível em: <https://www.sciencedirect.com/science/article/pii/S2590118421000629>. Acesso em: 06 jul. 2022.