Proof-Producing Synthesis of CakeML from Monadic HOL Functions
Loading...
Date
Authors
Abrahamsson, Oskar
Ho, Son
Kanabar, Hrutvik
Kumar, Ramana
Myreen, Magnus
Norrish, Michael
Tan, Yong Kiam
Journal Title
Journal ISSN
Volume Title
Publisher
Kluwer Academic Publishers
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
Description
Citation
Collections
Source
Journal of Automated Reasoning
Type
Book Title
Entity type
Access Statement
Open Access
License Rights
Creative Commons Attribution licence
Restricted until
Downloads
File
Description