{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,17]],"date-time":"2026-09-17T01:57:17Z","timestamp":1789610237587,"version":"build-2803163510"},"reference-count":38,"publisher":"Cambridge University Press (CUP)","issue":"2-3","license":[{"start":{"date-parts":[[2014,1,20]],"date-time":"2014-01-20T00:00:00Z","timestamp":1390176000000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2014,5]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>The higher-order logic found in proof assistants such as Coq and various HOL systems provides a convenient setting for the development and verification of functional programs. However, to efficiently run these programs, they must be converted (or \u2018extracted\u2019) to functional programs in a programming language such as ML or Haskell. With current techniques, this step, which must be trusted, relates similar looking objects that have very different semantic definitions, such as the set-theoretic model of a logic and the operational semantics of a programming language. In this paper, we show how to increase the trustworthiness of this step with an automated technique. Given a functional program expressed in higher-order logic, our technique provides the corresponding program for a functional language defined with an operational semantics, and it provides a mechanically checked theorem relating the two. This theorem can then be used to transfer verified properties of the logical function to the program. We have implemented our technique in the HOL4 theorem prover, translating functions to a subset of Standard ML, and have applied the implementation to examples including functional data structures, a parser generator, cryptographic algorithms, a garbage collector and the 500-line kernel of the HOL light theorem prover. This paper extends our previous conference publication with new material that shows how functions defined in terms of a state-and-exception monad can be translated, with proofs, into stateful ML code. The HOL light example is also new.<\/jats:p>","DOI":"10.1017\/s0956796813000282","type":"journal-article","created":{"date-parts":[[2014,1,20]],"date-time":"2014-01-20T11:15:16Z","timestamp":1390216516000},"page":"284-315","source":"Crossref","is-referenced-by-count":35,"title":["Proof-producing translation of higher-order logic into pure and stateful ML"],"prefix":"10.1017","volume":"24","author":[{"given":"MAGNUS O.","family":"MYREEN","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"SCOTT","family":"OWENS","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2014,1,20]]},"reference":[{"key":"S0956796813000282_ref13","doi-asserted-by":"publisher","DOI":"10.1016\/S1567-8326(02)00065-6"},{"key":"S0956796813000282_ref7","first-page":"93","volume-title":"Proceedings of Principles of Programming Languages (POPL '10).","author":"Chlipala","year":"2010"},{"key":"S0956796813000282_ref20","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-73595-3_3"},{"key":"S0956796813000282_ref31","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-39634-2_38"},{"key":"S0956796813000282_ref17","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-39185-1_12"},{"key":"S0956796813000282_ref32","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00722-4_2"},{"key":"S0956796813000282_ref34","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511530104"},{"key":"S0956796813000282_ref26","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-15057-9_10"},{"key":"S0956796813000282_ref15","volume-title":"Principles of Programming Languages (POPL)","author":"Kumar","year":"2014"},{"key":"S0956796813000282_ref37","unstructured":"Slind, K. (1999) Reasoning about Terminating Functional Programs, PhD Thesis. Technical University of Munich."},{"key":"S0956796813000282_ref3","first-page":"160","volume-title":"Proceedings of European Symposium on Programming (ESOP'09)","author":"Barthwal","year":"2009"},{"key":"S0956796813000282_ref5","first-page":"321","volume-title":"Proceedings of International Conference on Functional Programming (ICFP '10)","author":"Chargu\u00e9raud","year":"2010"},{"key":"S0956796813000282_ref30","first-page":"115","volume-title":"Proceedings of International Conference on Functional Programming (ICFP'12).","author":"Myreen","year":"2012"},{"key":"S0956796813000282_ref38","doi-asserted-by":"publisher","DOI":"10.1007\/s00165-007-0028-5"},{"key":"S0956796813000282_ref10","unstructured":"Davis, J. & Myreen, M. O. (2012) The Self-Verifying Milawa Theorem Prover is Sound (Down to the Machine Code that Runs it). Available at: http:\/\/www.cl.cam.ac.uk\/~mom22\/jitawa\/ Accessed Nov 1, 2013."},{"key":"S0956796813000282_ref27","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-32347-8_29"},{"key":"S0956796813000282_ref18","first-page":"169","volume-title":"Formal Methods (FM)","author":"Li","year":"2011"},{"key":"S0956796813000282_ref9","volume-title":"V\u00e8rification formelle d'un compilateur pour langages fonctionnels","author":"Dargaye","year":"2009"},{"key":"S0956796813000282_ref19","first-page":"205","volume-title":"European Symposium on Programming (ESOP)","author":"Li","year":"2007"},{"key":"S0956796813000282_ref25","doi-asserted-by":"publisher","DOI":"10.7551\/mitpress\/2319.001.0001"},{"key":"S0956796813000282_ref23","first-page":"273","volume-title":"Proceedings of International Conference on Functional Programming (ICFP'10).","author":"McCreight","year":"2010"},{"key":"S0956796813000282_ref35","doi-asserted-by":"publisher","DOI":"10.1007\/s10990-008-9038-0"},{"key":"S0956796813000282_ref29","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22863-6_20"},{"key":"S0956796813000282_ref36","first-page":"43","volume-title":"Proceedings of Principles of Programming Languages (POPL'11).","author":"\u0160ev\u010d\u00edk","year":"2011"},{"key":"S0956796813000282_ref33","doi-asserted-by":"publisher","DOI":"10.1093\/comjnl\/45.1.37"},{"key":"S0956796813000282_ref11","doi-asserted-by":"publisher","DOI":"10.1007\/11591191_36"},{"key":"S0956796813000282_ref22","first-page":"237","volume-title":"Proceedings of Principles of Programming Languages (POPL'10).","author":"Malecha","year":"2010"},{"key":"S0956796813000282_ref4","doi-asserted-by":"publisher","DOI":"10.1145\/321864.321875"},{"key":"S0956796813000282_ref24","doi-asserted-by":"publisher","DOI":"10.21236\/AD0785072"},{"key":"S0956796813000282_ref1","doi-asserted-by":"publisher","DOI":"10.1007\/11541868_4"},{"key":"S0956796813000282_ref16","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-009-9155-4"},{"key":"S0956796813000282_ref8","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(88)90005-3"},{"key":"S0956796813000282_ref12","volume-title":"Metatheory and Reflection in Theorem Proving: A Survey and Critique","author":"Harrison","year":"1995"},{"key":"S0956796813000282_ref14","volume-title":"Automating Recursive Definitions and Termination Proofs in Higher-Order Logic","author":"Krauss","year":"2009"},{"key":"S0956796813000282_ref28","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-03545-1_5"},{"key":"S0956796813000282_ref2","first-page":"47","volume-title":"Proceedings of European Symposium on Programming (ESOP '12)","author":"Barthe","year":"2012"},{"key":"S0956796813000282_ref21","first-page":"471","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems (TACAS)","author":"Li","year":"2008"},{"key":"S0956796813000282_ref6","first-page":"418","volume-title":"Proceedings of International Conference on Functional Programming (ICFP'11).","author":"Chargu\u00e9raud","year":"2011"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796813000282","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:32Z","timestamp":1779834992000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796813000282\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2014,1,20]]},"references-count":38,"journal-issue":{"issue":"2-3","published-print":{"date-parts":[[2014,5]]}},"alternative-id":["S0956796813000282"],"URL":"https:\/\/doi.org\/10.1017\/s0956796813000282","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2014,1,20]]}}}