The modal logic of programs

  • Zohar Manna
  • Amir Pnueli
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 71)


We explore the general framework of Modal Logic and its applicability to program reasoning. We relate the basic concepts of Modal Logic to the programming environment: the concept of "world" corresponds to a program state, and the concept of "accessibility relation" corresponds to the relation of derivability between states during execution. Thus we adopt the Temporal interpretation of Modal Logic. The variety of program properties expressible within the modal formalism is demonstrated.

The first axiomatic system studied, the sometime system, is adequate for proving total correctness and ‘eventuality’ properties. However, it is inadequate for proving invariance properties. The stronger nexttime system obtained by adding the next operator is shown to be adequate for invariances as well.


Modal Logic Critical Section Accessibility Relation Mutual Exclusion Proper Part 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [BUR]
    Burstall, R.M. "Formal Description of Program Structure and Semantics of First-Order Logic", in Machine Intelligence 5, B. Meltzer and D. Michie (eds.), Edinburgh Press, pp. 79–98 (1970).Google Scholar
  2. [CON]
    Constable, R.L. "On the Theory of Programming Logic", Proceedings of the 9th Annual Symposium on Theory of Computing, Boulder, Colorado (May 1977).Google Scholar
  3. [HAR]
    Harel, D. "Logic of Programs: Axiomatic and Descriptive Power", Ph.D. Thesis, Laboratory of Computer Science, M.I.T. (May 1978).Google Scholar
  4. [HOA]
    Hoare, C.A.R. "An Axiomatic Basis of Computer Programming", CACM, Vol.12, No. 10 (October 1969).Google Scholar
  5. [H&C]
    Hughes, G.E. and Cresswell, M.J. "An Introduction to Modal Logic", Methuess & Co., London (1968).Google Scholar
  6. [M&W]
    Manna, Z. and Waldinger, R. "Is 'sometime’ Sometimes Better Than ‘Always'?: Intermittent Assertions in Proving Program Correctness", CACM, Vol. 21, No. 2 (February 1978), pp. 159–172.Google Scholar
  7. [PNU]
    Pnueli, A. "The Temporal Semantics of Concurrent Programs", Technical Report, Tel-Aviv University (1978).Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1979

Authors and Affiliations

  • Zohar Manna
    • 1
  • Amir Pnueli
    • 2
  1. 1.Stanford University and Weizmann InstituteUSA
  2. 2.Tel-Aviv UniversityIsrael

Personalised recommendations