Skip to main content

Semantics of repetitions

  • Chapter
  • 261 Accesses

Part of the book series: Texts and Monographs in Computer Science ((MCS))

Abstract

The reason for the inclusion of the previous chapter is that we shall use extreme solutions of equations in predicates to define the semantics of our next compound statement, known as the “repetition”. We shall first study it in its simple form, in which it is composed of a guard B and a statement S . It is denoted by surrounding the guarded statement B → S by the special bracket pair do…od . For the sake of brevity we shall call the resulting compound statement in this chapter “D0” , i.e.,

DO = do B→S od

We shall define the semantics of DO in the usual way by defining (in terms of B and S) the predicate transformers wlp.DO and wp.DO . But we shall define them differently. Were we to follow the same pattern as in the case of the straight-line programs, we would define (i) in some way the predicate transformer wlp.DO , (ii) in some way the predicate we would denote by wp.DO.true , and (iii) in terms of the previous two the predicate transformer wp.DO by

(0) [wp.DO.X = wp.DO.true Λ wlp.DO.X] for all X

Because it is more convenient, in the case of the repetition we shall follow a slightly different route: we shall define wlp.DO and wp.DO independently and then prove (0) as a consequence of those definitions. Furthermore we shall show that wlp.DO meets requirement R0 (universal conjunctivity) if wlp.S does and that wp.DO meets requirement R1 (excluded miracle) if wp.S does.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   79.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   99.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1990 Springer-Verlag New York Inc.

About this chapter

Cite this chapter

Dijkstra, E.W., Schölten, C.S. (1990). Semantics of repetitions. In: Predicate Calculus and Program Semantics. Texts and Monographs in Computer Science. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-3228-5_9

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-3228-5_9

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4612-7924-2

  • Online ISBN: 978-1-4612-3228-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics