PureCake: A Verified Compiler for a Lazy Functional Language

10Citations
Citations of this article
7Readers
Mendeley users who have this article in their library.

Abstract

We present PureCake, a mechanically-verified compiler for PureLang, a lazy, purely functional programming language with monadic effects. PureLang syntax is Haskell-like and indentation-sensitive, and its constraint-based Hindley-Milner type system guarantees safe execution. We derive sound equational reasoning principles over its operational semantics, dramatically simplifying some proofs. We prove end-To-end correctness for the compilation of PureLang down to machine code-The first such result for any lazy language-by targeting CakeML and composing with its verified compiler. Multiple optimisation passes are necessary to handle realistic lazy idioms effectively. We develop PureCake entirely within the HOL4 interactive theorem prover.

Cite

CITATION STYLE

APA

Kanabar, H., Vivien, S., Abrahamsson, O., Myreen, M. O., Norrish, M., JOHANNES ÅMAN, P. A., & Zanetti, R. (2023). PureCake: A Verified Compiler for a Lazy Functional Language. Proceedings of the ACM on Programming Languages, 7. https://doi.org/10.1145/3591259

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free