The ‘Hoare logic’ of concurrent programs |
| |
Authors: | Leslie Lamport |
| |
Affiliation: | (1) SRI International Computer Science Laboratory, 333 Ravenswood Avenue, 94025 Menlo Park, CA, USA |
| |
Abstract: | Summary Hoare's logical system for specifying and proving partial correctness properties of sequential programs is generalized to concurrent programs. The basic idea is to define the assertion {P} S {Q} to mean that if execution is begun anywhere in S with P true, then P will remain true until S terminates, and Q will be true if and when S terminates. The predicates P and Q may depend upon program control locations as well as upon the values of variables. A system of inference rules and axiom schemas is given, and a formal correctness proof for a simple program is outlined. We show that by specifying certain requirements for the unimplemented parts, correctness properties can be proved without completely implementing the program. The relation to Pnueli's temporal logic formalism is also discussed. |
| |
Keywords: | |
本文献已被 SpringerLink 等数据库收录! |
|