The modal logic of programs
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.
KeywordsModal Logic Critical Section Accessibility Relation Mutual Exclusion Proper Part
Unable to display preview. Download preview PDF.
- [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
- [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
- [HAR]Harel, D. "Logic of Programs: Axiomatic and Descriptive Power", Ph.D. Thesis, Laboratory of Computer Science, M.I.T. (May 1978).Google Scholar
- [HOA]Hoare, C.A.R. "An Axiomatic Basis of Computer Programming", CACM, Vol.12, No. 10 (October 1969).Google Scholar
- [H&C]Hughes, G.E. and Cresswell, M.J. "An Introduction to Modal Logic", Methuess & Co., London (1968).Google Scholar
- [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
- [PNU]Pnueli, A. "The Temporal Semantics of Concurrent Programs", Technical Report, Tel-Aviv University (1978).Google Scholar