Proof-Producing Synthesis of CakeML from Monadic HOL Functions

Oskar Abrahamsson*, Son Ho, Hrutvik Kanabar, Ramana Kumar, Magnus O. Myreen, Michael Norrish, Yong Kiam Tan

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

8 Citations (Scopus)

Abstract

We introduce an automatic method for producing stateful ML programs together with proofs of correctness from monadic functions in HOL. Our mechanism supports references, exceptions, and I/O operations, and can generate functions manipulating local state, which can then be encapsulated for use in a pure context. We apply this approach to several non-trivial examples, including the instruction encoder and register allocator of the otherwise pure CakeML compiler, which now benefits from better runtime performance. This development has been carried out in the HOL4 theorem prover.

Original languageEnglish
Pages (from-to)1287-1306
Number of pages20
JournalJournal of Automated Reasoning
Volume64
Issue number7
DOIs
Publication statusPublished - 1 Oct 2020
Externally publishedYes

Fingerprint

Dive into the research topics of 'Proof-Producing Synthesis of CakeML from Monadic HOL Functions'. Together they form a unique fingerprint.

Cite this