Abstract
In this chapter we give a more abstract, purely mathematical semantics to IMP, called denotational semantics. The operational semantics is close to the memory-based, executable machine-like view: given a program and a state, we derive the state obtained after the execution of that program. The denotational semantics takes a program and returns the transformation function over memories associated with that program: given an initial state as the argument, the final state is returned as the result. Since functions will be written in some fixed mathematical notation, i.e., they can also be regarded as “programs” of a suitable formalism, we can say that, to some extent, the operational semantics defines an “interpreter” of the language (given a program and the initial state it returns the final state obtained by executing the program), while the denotational semantics defines a “compiler” for the language (from programs to functions, i.e., programs written in a more abstract language). We conclude the chapter by reconciling the equivalences induced by the operational and the denotational semantics and by stating the principle of computational induction.
The point is that, mathematically speaking, functions are independent of their means of computation and hence are “simpler” than the explicitly generated, step-by-step evolved sequences of operations on representations. (Dana Scott)
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2017 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Bruni, R., Montanari, U. (2017). Denotational Semantics of IMP. In: Models of Computation. Texts in Theoretical Computer Science. An EATCS Series. Springer, Cham. https://doi.org/10.1007/978-3-319-42900-7_6
Download citation
DOI: https://doi.org/10.1007/978-3-319-42900-7_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-42898-7
Online ISBN: 978-3-319-42900-7
eBook Packages: Computer ScienceComputer Science (R0)