A Verified Compiler for an Impure Functional Language. Chlipala, A. In Proceedings of the 37th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, of POPL '10, pages 93–106, New York, NY, USA, January, 2010. ACM. event-place: Madrid, Spain
Paper doi abstract bibtex We present a verified compiler to an idealized assembly language from a small, untyped functional language with mutable references and exceptions. The compiler is programmed in the Coq proof assistant and has a proof of total correctness with respect to big-step operational semantics for the source and target languages. Compilation is staged and includes standard phases like translation to continuation-passing style and closure conversion, as well as a common subexpression elimination optimization. In this work, our focus has been on discovering and using techniques that make our proofs easy to engineer and maintain. While most programming language work with proof assistants uses very manual proof styles, all of our proofs are implemented as adaptive programs in Coq's tactic language, making it possible to reuse proofs unchanged as new language features are added. In this paper, we focus especially on phases of compilation that rearrange the structure of syntax with nested variable binders. That aspect has been a key challenge area in past compiler verification projects, with much more effort expended in the statement and proof of binder-related lemmas than is found in standard pencil-and-paper proofs. We show how to exploit the representation technique of parametric higher-order abstract syntax to avoid the need to prove any of the usual lemmas about binder manipulation, often leading to proofs that are actually shorter than their pencil-and-paper analogues. Our strategy is based on a new approach to encoding operational semantics which delegates all concerns about substitution to the meta language, without using features incompatible with general-purpose type theories like Coq's logic.
@inproceedings{chlipala_verified_2010,
address = {New York, NY, USA},
series = {{POPL} '10},
title = {A {Verified} {Compiler} for an {Impure} {Functional} {Language}},
isbn = {978-1-60558-479-9},
url = {http://doi.acm.org/10.1145/1706299.1706312},
doi = {10/c86n2s},
abstract = {We present a verified compiler to an idealized assembly language from a small, untyped functional language with mutable references and exceptions. The compiler is programmed in the Coq proof assistant and has a proof of total correctness with respect to big-step operational semantics for the source and target languages. Compilation is staged and includes standard phases like translation to continuation-passing style and closure conversion, as well as a common subexpression elimination optimization. In this work, our focus has been on discovering and using techniques that make our proofs easy to engineer and maintain. While most programming language work with proof assistants uses very manual proof styles, all of our proofs are implemented as adaptive programs in Coq's tactic language, making it possible to reuse proofs unchanged as new language features are added. In this paper, we focus especially on phases of compilation that rearrange the structure of syntax with nested variable binders. That aspect has been a key challenge area in past compiler verification projects, with much more effort expended in the statement and proof of binder-related lemmas than is found in standard pencil-and-paper proofs. We show how to exploit the representation technique of parametric higher-order abstract syntax to avoid the need to prove any of the usual lemmas about binder manipulation, often leading to proofs that are actually shorter than their pencil-and-paper analogues. Our strategy is based on a new approach to encoding operational semantics which delegates all concerns about substitution to the meta language, without using features incompatible with general-purpose type theories like Coq's logic.},
urldate = {2019-10-16},
booktitle = {Proceedings of the 37th {Annual} {ACM} {SIGPLAN}-{SIGACT} {Symposium} on {Principles} of {Programming} {Languages}},
publisher = {ACM},
author = {Chlipala, Adam},
month = jan,
year = {2010},
note = {event-place: Madrid, Spain},
keywords = {compiler verification, interactive proof assistants},
pages = {93--106}
}
Downloads: 0
{"_id":"LJs45oPqFZHdqxDM9","bibbaseid":"chlipala-averifiedcompilerforanimpurefunctionallanguage-2010","authorIDs":[],"author_short":["Chlipala, A."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","address":"New York, NY, USA","series":"POPL '10","title":"A Verified Compiler for an Impure Functional Language","isbn":"978-1-60558-479-9","url":"http://doi.acm.org/10.1145/1706299.1706312","doi":"10/c86n2s","abstract":"We present a verified compiler to an idealized assembly language from a small, untyped functional language with mutable references and exceptions. The compiler is programmed in the Coq proof assistant and has a proof of total correctness with respect to big-step operational semantics for the source and target languages. Compilation is staged and includes standard phases like translation to continuation-passing style and closure conversion, as well as a common subexpression elimination optimization. In this work, our focus has been on discovering and using techniques that make our proofs easy to engineer and maintain. While most programming language work with proof assistants uses very manual proof styles, all of our proofs are implemented as adaptive programs in Coq's tactic language, making it possible to reuse proofs unchanged as new language features are added. In this paper, we focus especially on phases of compilation that rearrange the structure of syntax with nested variable binders. That aspect has been a key challenge area in past compiler verification projects, with much more effort expended in the statement and proof of binder-related lemmas than is found in standard pencil-and-paper proofs. We show how to exploit the representation technique of parametric higher-order abstract syntax to avoid the need to prove any of the usual lemmas about binder manipulation, often leading to proofs that are actually shorter than their pencil-and-paper analogues. Our strategy is based on a new approach to encoding operational semantics which delegates all concerns about substitution to the meta language, without using features incompatible with general-purpose type theories like Coq's logic.","urldate":"2019-10-16","booktitle":"Proceedings of the 37th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages","publisher":"ACM","author":[{"propositions":[],"lastnames":["Chlipala"],"firstnames":["Adam"],"suffixes":[]}],"month":"January","year":"2010","note":"event-place: Madrid, Spain","keywords":"compiler verification, interactive proof assistants","pages":"93–106","bibtex":"@inproceedings{chlipala_verified_2010,\n\taddress = {New York, NY, USA},\n\tseries = {{POPL} '10},\n\ttitle = {A {Verified} {Compiler} for an {Impure} {Functional} {Language}},\n\tisbn = {978-1-60558-479-9},\n\turl = {http://doi.acm.org/10.1145/1706299.1706312},\n\tdoi = {10/c86n2s},\n\tabstract = {We present a verified compiler to an idealized assembly language from a small, untyped functional language with mutable references and exceptions. The compiler is programmed in the Coq proof assistant and has a proof of total correctness with respect to big-step operational semantics for the source and target languages. Compilation is staged and includes standard phases like translation to continuation-passing style and closure conversion, as well as a common subexpression elimination optimization. In this work, our focus has been on discovering and using techniques that make our proofs easy to engineer and maintain. While most programming language work with proof assistants uses very manual proof styles, all of our proofs are implemented as adaptive programs in Coq's tactic language, making it possible to reuse proofs unchanged as new language features are added. In this paper, we focus especially on phases of compilation that rearrange the structure of syntax with nested variable binders. That aspect has been a key challenge area in past compiler verification projects, with much more effort expended in the statement and proof of binder-related lemmas than is found in standard pencil-and-paper proofs. We show how to exploit the representation technique of parametric higher-order abstract syntax to avoid the need to prove any of the usual lemmas about binder manipulation, often leading to proofs that are actually shorter than their pencil-and-paper analogues. Our strategy is based on a new approach to encoding operational semantics which delegates all concerns about substitution to the meta language, without using features incompatible with general-purpose type theories like Coq's logic.},\n\turldate = {2019-10-16},\n\tbooktitle = {Proceedings of the 37th {Annual} {ACM} {SIGPLAN}-{SIGACT} {Symposium} on {Principles} of {Programming} {Languages}},\n\tpublisher = {ACM},\n\tauthor = {Chlipala, Adam},\n\tmonth = jan,\n\tyear = {2010},\n\tnote = {event-place: Madrid, Spain},\n\tkeywords = {compiler verification, interactive proof assistants},\n\tpages = {93--106}\n}\n\n","author_short":["Chlipala, A."],"key":"chlipala_verified_2010","id":"chlipala_verified_2010","bibbaseid":"chlipala-averifiedcompilerforanimpurefunctionallanguage-2010","role":"author","urls":{"Paper":"http://doi.acm.org/10.1145/1706299.1706312"},"keyword":["compiler verification","interactive proof assistants"],"downloads":0},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero/k4rtik","creationDate":"2020-05-31T17:07:22.569Z","downloads":0,"keywords":["compiler verification","interactive proof assistants"],"search_terms":["verified","compiler","impure","functional","language","chlipala"],"title":"A Verified Compiler for an Impure Functional Language","year":2010,"dataSources":["Z5Dp3qAJiMzxtvKMq"]}