Proof-Producing Synthesis of CakeML from Monadic HOL Functions
-
Published:2020-06-06
Issue:7
Volume:64
Page:1287-1306
-
ISSN:0168-7433
-
Container-title:Journal of Automated Reasoning
-
language:en
-
Short-container-title:J Autom Reasoning
Author:
Abrahamsson OskarORCID, Ho Son, Kanabar Hrutvik, Kumar Ramana, Myreen Magnus O., Norrish Michael, Tan Yong Kiam
Abstract
AbstractWe 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.
Funder
UK Research Institute in Verified Trustworthy Software Systems A*STAR National Science Scholarship (PhD), Singapore Swedish Foundation for Strategic Research
Publisher
Springer Science and Business Media LLC
Subject
Artificial Intelligence,Computational Theory and Mathematics,Software
Reference16 articles.
1. Anand, A., Appel, A., Morrisett, G., Paraskevopoulou, Z., Pollack, R., Belanger, O.S., Sozeau, M., Weaver, M.: CertiCoq: a verified compiler for Coq. In: CoqPL (2017) 2. Anand, A., Boulier, S., Tabareau, N., Sozeau, M.: Typed template Coq—certified meta-programming in Coq. In: CoqPL (2018) 3. Blazy, S., Robillard, B., Appel, A.W.: Formal verification of coalescing graph-coloring register allocation. In: ESOP, Volume 6012 of LNCS (2010) 4. Bulwahn, L., Krauss, A., Haftmann, F., Erkök, L., Matthews, J.: Imperative functional programming with Isabelle/HOL. In: Mohamed, O.A., Muñoz, C.A., Tahar, S. (eds.) TPHOLs, Volume 5170 of LNCS, pp. 134–149 (2008) 5. Guéneau, A., Myreen, M.O., Kumar, R., Norrish, M.L.: Verified characteristic formulae for CakeML. In: Yang, H. (ed.) ESOP, Volume 10201 of LNCS, pp. 584–610 (2017)
Cited by
4 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
|
|