Book contents
- Frontmatter
- Contents
- Foreword
- Preface
- 1 Introduction
- 2 Constructing a Model
- 3 VDMTools Lite
- 4 Describing System Properties Using Logical Expressions
- 5 The Elements of a Formal Model
- 6 Sets
- 7 Sequences
- 8 Mappings
- 9 Recursive Structures
- 10 Validating Models
- 11 State-Based Modelling
- 12 Large-Scale Modelling
- 13 Using VDM in Practice
- Appendix A Language Guide
- Appendix B Solutions to Exercises
- Bibliography
- Subject Index
- Definitions Index
6 - Sets
Published online by Cambridge University Press: 03 February 2010
- Frontmatter
- Contents
- Foreword
- Preface
- 1 Introduction
- 2 Constructing a Model
- 3 VDMTools Lite
- 4 Describing System Properties Using Logical Expressions
- 5 The Elements of a Formal Model
- 6 Sets
- 7 Sequences
- 8 Mappings
- 9 Recursive Structures
- 10 Validating Models
- 11 State-Based Modelling
- 12 Large-Scale Modelling
- 13 Using VDM in Practice
- Appendix A Language Guide
- Appendix B Solutions to Exercises
- Bibliography
- Subject Index
- Definitions Index
Summary
Aims
The aim of this chapter is to show how unordered collections of values can be modelled as sets. The set type constructor and set operators in VDMSL are introduced via an example of a safety-related system. On completion of this chapter, the reader should be confident in the use of sets and the associated operators in models of systems involving collections of values.
Introduction
This is the first of three chapters that describe ways of modelling collections of data values. The three collection types covered (sets, sequences and mappings) describe progressively more structured collections. For each collection type, we will show how collections may be expressed
A formal model of a computing system should be sufficiently abstract to model the system properties of interest, and not so concrete that a great deal of irrelevant detail has to be tackled in order to understand or analyse the model. Modelling languages such as VDM-SL contain a number of features supporting such abstraction. One of the most fundamental is the facility to model sets of values without being concerned about the order in which they are stored.
- Type
- Chapter
- Information
- Modelling SystemsPractical Tools and Techniques in Software Development, pp. 99 - 120Publisher: Cambridge University PressPrint publication year: 2009