Skip to main content

Denotational Semantics of IMP

  • Chapter
  • First Online:
Models of Computation

Part of the book series: Texts in Theoretical Computer Science. An EATCS Series ((TTCS))

  • 1264 Accesses

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)

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 64.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Roberto Bruni .

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics