Journal of Functional Programming · 2010 · 164 citations · 42 references
ComputingComputer ScienceMathematicsFormal MethodsProgramming LanguagesSoftware EngineeringFormal Language FoundationsFormal SemanticsProof AssistantsProof TheoryType CheckingType SystemsAbstract SemanticsCoqFormal Proof SystemsIsabelleIsabelle/holSoundnessSoundness ProofsType Soundness
Semantic definitions of full‑scale programming languages are rarely given, and existing metalanguages make it hard to work with large definitions. The authors introduce Ott, a metalanguage and tool that enables routine, rigorous semantic definitions of realistic languages. Ott offers a concise, expressive metalanguage that compiles definitions into Coq, HOL, and Isabelle/HOL code, provides typesetting and OCaml boilerplate, and includes sanity‑checking. Ott was successfully applied to modular specifications of TAPL calculi, Lightweight Java module proposals, and a 310‑rule OCaml light fragment, yielding mechanised soundness proofs.
Abstract Semantic definitions of full-scale programming languages are rarely given, despite the many potential benefits. Partly this is because the available metalanguages for expressing semantics – usually either for informal mathematics or the formal mathematics of a proof assistant – make it much harder than necessary to work with large definitions. We present a metalanguage specifically designed for this problem, and a tool, Ott, that sanity-checks such definitions and compiles them into proof assistant code for Coq, HOL, and Isabelle/HOL, together with code for production-quality typesetting, and OCaml boilerplate. The main innovations are (1) metalanguage design to make definitions concise, and easy to read and edit; (2) an expressive but intuitive metalanguage for specifying binding structures; and (3) compilation to proof assistant code. This has been tested in substantial case studies, including modular specifications of calculi from the TAPL text, a Lightweight Java with Java JSR 277/294 module system proposals, and a large fragment of OCaml (OCaml light , 310 rules), with mechanised proofs of various soundness results. Our aim with this work is to enable a phase change: making it feasible to work routinely, without heroic effort, with rigorous semantic definitions of realistic languages.
42
Revised5 Report on the Algorithmic Language Scheme
Hal Abelson, R. Kent Dybvig, Christopher T. Haynes et al. · LISP and Symbolic Computation · 1998 · 414 citations
Thomas Reps, Tim Teitelbaum · ACM SIGPLAN Notices · 1984 · 371 citations
Patrick Borras, Dominique Clement, Th. Despeyroux et al. · 1988 · 339 citations · Full text
Revised <sup>6</sup> Report on the Algorithmic Language Scheme
Michael Sperber, R. Kent Dybvig, Matthew Flatt et al. · Journal of Functional Programming · 2009 · 325 citations · Full text
Views: a way for pattern matching to cohabit with data abstraction
Philip Wadler · 1987 · 320 citations
Computing, Computer Science, Design +17