Procedures in the Refinement Calculus: A New Approach?
Open Access
- 1 July 1996
- conference paper
- Published by BCS Learning & Development Ltd in Electronic Workshops in Computing
Abstract
We examine the use of procedures in the refinement calculus and show that the traditional approach leads to certain problems when programs are not constructed in a strictly top-down manner. These problems arise because a procedure name becomes associated with the implementation when the procedure body is refined, and we examine some ways in which they may be avoided. We argue that, because procedures are not required in order to express procedural abstractions, the primary purpose of using procedures in program refinement is to do with packaging the final program, and that decisions about how a program is packaged into procedures should be made separately from algorithm design decisions. We present an alternative approach based on this rationale which avoids the aforementioned problems, and discuss ways in which it can be supported by a refinement tool.Keywords
This publication has 8 references indexed in Scilit:
- A Tool for Developing Correct Programs by RefinementElectronic Workshops in Computing, 1996
- Types and invariants in the refinement calculusScience of Computer Programming, 1990
- A calculus of refinements for program derivationsActa Informatica, 1988
- A theoretical basis for stepwise refinement and the programming calculusScience of Computer Programming, 1987
- Assignment and Procedure Call Proof RulesACM Transactions on Programming Languages and Systems, 1980
- Report on the programming language EuclidACM SIGPLAN Notices, 1977
- An Introduction to the Construction and Verification of Alphard ProgramsIEEE Transactions on Software Engineering, 1976
- Program development by stepwise refinementCommunications of the ACM, 1971