Accession Number:

ADA461683

Title:

Is "Sometime" Sometimes Better Than "Always"? Intermittent Assertions in Proving Program Correctness

Descriptive Note:

Research paper

Corporate Author:

SRI INTERNATIONAL MENLO PARK CA ARTIFICIAL INTELLIGENCE CENTER

Personal Author(s):

Report Date:

1977-03-01

Pagination or Media Count:

42.0

Abstract:

This paper explores a technique for proving the correctness and termination of computer programs simultaneously. This approach, which the authors call the intermittent-assertion method, involves documenting the program with assertions that must be true at some time when control passes through the corresponding point, but that need not be true every time. The method, introduced by Burstall, promises to provide a valuable complement to more conventional methods. The authors first introduce the intermittent-assertion method with a number of examples of correctness and termination proofs. Some of these proofs are markedly simpler than their conventional counterparts. On the other hand, they show that a proof of correctness or termination by any of the conventional techniques can be rephrased directly as a proof using intermittent assertions. Finally, they show how the intermittent-assertion method can be applied to prove the validity of program transformations and the correctness of continuously operating programs.

Subject Categories:

  • Computer Programming and Software
  • Cybernetics

Distribution Statement:

APPROVED FOR PUBLIC RELEASE