Skeletal semantics and their interpretations
Authors:
Open Access
- 2 January 2019
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 3 (POPL) , 1-31
Abstract
The development of mechanised language specification based on structured operational semantics, with applications to verified compilers and sound program analysis, requires huge effort. General theory and frameworks have been proposed to help with this effort. However, none of this work provides a systematic way of developing concrete and abstract semantics, connected together by a general consistency result. We introduce a skeletal semantics of a language, where each skeleton describes the complete semantic behaviour of a language construct. We define a general notion of interpretation , which provides a systematic and language-independent way of deriving semantic judgements from the skeletal semantics. We explore four generic interpretations: a simple well-formedness interpretation; a concrete interpretation; an abstract interpretation; and a constraint generator for flow-sensitive analysis. We prove general consistency results between interpretations, depending only on simple language-dependent lemmas. We illustrate our ideas using a simple While language.Keywords
All Related Versions
Funding Information
- EPSRC (REMS EP/K008528/1)
- ANR (AJACS ANR-14-CE28-0008, CISC ANR-17-CE25-0014-01)
This publication has 27 references indexed in Scilit:
- Coinductive Big-Step Semantics for ConcurrencyElectronic Proceedings in Theoretical Computer Science, 2013
- Towards a program logic for JavaScriptACM SIGPLAN Notices, 2012
- Abstracting abstract machinesCommunications of the ACM, 2011
- An overview of the K semantic frameworkThe Journal of Logic and Algebraic Programming, 2010
- Ott: Effective tool support for the working semanticistJournal of Functional Programming, 2010
- Mechanized Semantics for the Clight Subset of the C LanguageJournal of Automated Reasoning, 2009
- A Calculational Approach to Control-Flow Analysis by Abstract Interpretation2008
- Extracting a data flow analyser in constructive logicTheoretical Computer Science, 2005
- Verified bytecode verifiersTheoretical Computer Science, 2003
- Closure analysis in constraint formACM Transactions on Programming Languages and Systems, 1995