Lem: reusable engineering of real-world semantics
Autor: | Kathryn E. Gray, Scott Owens, Tom Ridge, Peter Sewell, Dominic P. Mulligan |
---|---|
Jazyk: | angličtina |
Rok vydání: | 2014 |
Předmět: |
Functional programming
Computer science Programming language Semantics (computer science) business.industry Scale (chemistry) Constraint (computer-aided design) Computer programming HOL computer.software_genre Semantics Computer Graphics and Computer-Aided Design Task (project management) QA76 TheoryofComputation_LOGICSANDMEANINGSOFPROGRAMS business computer Software |
Zdroj: | ICFP |
Popis: | Recent years have seen remarkable successes in rigorous engineering : using mathematically rigorous semantic models (not just idealised calculi) of real-world processors, programming languages, protocols, and security mechanisms, for testing, proof, analysis, and design. Building these models is challenging, requiring experimentation, dialogue with vendors or standards bodies, and validation; their scale adds engineering issues akin to those of programming to the task of writing clear and usable mathematics. But language and tool support for specification is lacking. Proof assistants can be used but bring their own difficulties, and a model produced in one, perhaps requiring many person-years effort and maintained over an extended period, cannot be used by those familiar with another. We introduce Lem, a language for engineering reusable large-scale semantic models. The Lem design takes inspiration both from functional programming languages and from proof assistants, and Lem definitions are translatable into OCaml for testing, Coq, HOL4, and Isabelle/HOL for proof, and LaTeX and HTML for presentation. This requires a delicate balance of expressiveness, careful library design, and implementation of transformations - akin to compilation, but subject to the constraint of producing usable and human-readable code for each target. Lem's effectiveness is demonstrated by its use in practice. |
Databáze: | OpenAIRE |
Externí odkaz: |