Proof-Producing Synthesis of CakeML with I/O and Local State from Monadic HOL Functions
Authors: Son Ho, Oskar Abrahamsson, Ramana Kumar, Magnus O. Myreen, Yong Kiam Tan and Michael Norrish
Paper Information
Title: | Proof-Producing Synthesis of CakeML with I/O and Local State from Monadic HOL Functions |
Authors: | Son Ho, Oskar Abrahamsson, Ramana Kumar, Magnus O. Myreen, Yong Kiam Tan and Michael Norrish |
Proceedings: | IJCAR Proceedings 9th IJCAR, 2018 |
Editors: | Stephan Schulz, Didier Galmiche and Roberto Sebastiani |
Keywords: | interactive theorem proving, program synthesis, ML |
Abstract: | 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 type inferencer 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. |
Pages: | 16 |
Talk: | Jul 15 17:00 (Session 107E: Verification) |
Paper: |