首页   按字顺浏览 期刊浏览 卷期浏览 An introduction to Z and formal specifications
An introduction to Z and formal specifications

 

作者: J.M.Spivey,  

 

期刊: Software Engineering Journal  (IET Available online 1989)
卷期: Volume 4, issue 1  

页码: 40-50

 

年代: 1989

 

DOI:10.1049/sej.1989.0006

 

出版商: IEE

 

数据来源: IET

 

摘要:

This paper provides an introduction to the description of information systems using formal, mathematical specifications written in the Z notation, and to the refinement of these specifications into rigorously checked designs. The first part introduces the idea of a formal specification using a simple example: that of a ‘birthday book’ in which people's birthdays can be recorded, and which is able to issue reminders on the appropriate day. The behaviour of this system for correct input is specified first; then the schema calculus is used to strengthen the specification into one requiring error reports for incorrect input. The second part of the paper introduces the idea of data refinement as the primary means of constructing designs which achieve a formal specification. Refinement is presented through the medium of two examples: the first is a direct implementation of the birthday book from part one; and the second is a simple checkpoint facility, which allows the current state of a database to be saved and later restored. A Pascal-like programming language is used to show the code for some of the operations in the examples.

 

点击下载:  PDF (1094KB)



返 回