ACM SIGPLAN Notices · 2008 · 129 citations · 22 references
Language StudiesComputer ScienceProgramming LanguagesSemanticsSyntaxAbstract Syntax TreesCompositional SemanticsFormal SemanticsSyntactic AnalysisSyntax-semantics InterfaceType SystemsAbstract SemanticsAbstract Syntax ModelingAbstract Syntax Tree ConstructionAbstract Syntax Tree RepresentationStructural Operational Semantics
We present parametric higher-order abstract syntax (PHOAS) , a new approach to formalizing the syntax of programming languages in computer proof assistants based on type theory. Like higher-order abstract syntax (HOAS), PHOAS uses the meta language's binding constructs to represent the object language's binding constructs. Unlike HOAS, PHOAS types are definable in general-purpose type theories that support traditional functional programming, like Coq's Calculus of Inductive Constructions. We walk through how Coq can be used to develop certified, executable program transformations over several statically-typed functional programming languages formalized with PHOAS; that is, each transformation has a machine-checked proof of type preservation and semantic preservation. Our examples include CPS translation and closure conversion for simply-typed lambda calculus, CPS translation for System F, and translation from a language with ML-style pattern matching to a simpler language with no variable-arity binding constructs. By avoiding the syntactic hassle associated with first-order representation techniques, we achieve a very high degree of proof automation.
22
Formal certification of a compiler back-end or
Xavier Leroy · 2006 · 652 citations
Frank Pfenning, Conal Elliott · ACM SIGPLAN Notices · 1988 · 587 citations · Full text
Frank Pfenning, Conal Elliott · 1988 · 346 citations · Full text
Brian Aydemir, Arthur Charguéraud, Benjamin C. Pierce et al. · 2008 · 218 citations · Full text