Preface |
|
v | |
|
1 The Role of Specification |
|
|
1 | (12) |
|
|
2 | (3) |
|
|
3 | (1) |
|
1.1.2 Structural Complexity |
|
|
3 | (1) |
|
1.1.3 Environmental Complexity |
|
|
4 | (1) |
|
1.1.4 Application Domain Complexity |
|
|
4 | (1) |
|
1.1.5 Communication Complexity |
|
|
5 | (1) |
|
1.2 Software Specification |
|
|
5 | (4) |
|
1.2.1 What Is a Specification? |
|
|
5 | (3) |
|
1.2.2 How to Control Complexity? |
|
|
8 | (1) |
|
1.2.3 A Critique of Natural Language Specification |
|
|
9 | (1) |
|
|
9 | (1) |
|
|
10 | (1) |
|
|
10 | (3) |
|
2 Specification Activities |
|
|
13 | (10) |
|
2.1 Integrating Formal Methods into the Software Life Cycle |
|
|
14 | (2) |
|
2.2 Administrative and Technical Roles |
|
|
16 | (3) |
|
2.2.1 Specification Roles |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
|
20 | (1) |
|
|
20 | (3) |
|
3 Specification Qualities |
|
|
23 | (8) |
|
3.1 Principles of Software Specifications |
|
|
23 | (3) |
|
3.2 Attributes for Specification Languages |
|
|
26 | (3) |
|
|
29 | (1) |
|
|
30 | (1) |
|
|
30 | (1) |
|
|
31 | (8) |
|
|
31 | (1) |
|
4.2 Abstractions in Mathematics |
|
|
32 | (1) |
|
4.3 Fundamental Abstractions in Computing |
|
|
32 | (3) |
|
4.4 Abstractions for Software Construction |
|
|
35 | (2) |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
38 | (1) |
|
|
39 | (40) |
|
5.1 Peano's Axiomatization of Naturals |
|
|
40 | (1) |
|
|
41 | (2) |
|
5.2.1 Formalization in Engineering |
|
|
41 | (1) |
|
5.2.2 Formalization in Science |
|
|
42 | (1) |
|
5.2.3 Formalization Process in Software Engineering |
|
|
42 | (1) |
|
5.3 Components of a Formal System |
|
|
43 | (5) |
|
|
43 | (1) |
|
|
44 | (1) |
|
5.3.3 Inference Mechanism |
|
|
45 | (3) |
|
5.4 Properties of Formal Systems |
|
|
48 | (2) |
|
|
48 | (1) |
|
|
49 | (1) |
|
|
49 | (1) |
|
|
50 | (23) |
|
5.5.1 Extended Syntactic Metalanguage |
|
|
50 | (3) |
|
5.5.2 Extended Finite State Machine |
|
|
53 | (20) |
|
5.6 Formal Specification Methods--A Classification |
|
|
73 | (1) |
|
|
74 | (2) |
|
|
76 | (1) |
|
|
77 | (2) |
|
|
79 | (58) |
|
|
79 | (9) |
|
6.1.1 Syntax and Semantics |
|
|
80 | (1) |
|
|
81 | (7) |
|
|
88 | (21) |
|
6.2.1 Syntax and Semantics |
|
|
88 | (6) |
|
6.2.2 More on Quantified Expressions |
|
|
94 | (3) |
|
|
97 | (5) |
|
6.2.4 More Specification Examples |
|
|
102 | (7) |
|
|
109 | (23) |
|
6.3.1 Concurrent and Reactive Systems |
|
|
110 | (1) |
|
|
111 | (1) |
|
6.3.3 The Specification Hierarchy |
|
|
112 | (1) |
|
6.3.4 Temporal Logic--Syntax and Semantics |
|
|
112 | (5) |
|
|
117 | (15) |
|
|
132 | (2) |
|
|
134 | (1) |
|
|
135 | (2) |
|
7 Set Theory and Relations |
|
|
137 | (34) |
|
7.1 Formal Specification Based on Set Theory |
|
|
137 | (9) |
|
|
138 | (1) |
|
7.1.2 Reasoning with Sets |
|
|
139 | (2) |
|
7.1.3 A Specification Example |
|
|
141 | (5) |
|
7.2 Formal Specification Based on Relations and Functions |
|
|
146 | (13) |
|
7.2.1 Relations and Functions |
|
|
146 | (3) |
|
7.2.2 Functions on Relations |
|
|
149 | (3) |
|
|
152 | (4) |
|
7.2.4 A Specification Example |
|
|
156 | (3) |
|
7.3 Formal Specification Based on Sequences |
|
|
159 | (8) |
|
|
159 | (1) |
|
|
159 | (3) |
|
|
162 | (4) |
|
7.3.4 A Specification Example |
|
|
166 | (1) |
|
|
167 | (2) |
|
|
169 | (1) |
|
|
169 | (2) |
|
8 Algebraic Specification |
|
|
171 | (48) |
|
8.1 Algebra and Specification |
|
|
171 | (3) |
|
8.2 Algebras--A Brief Introduction |
|
|
174 | (3) |
|
|
175 | (2) |
|
|
177 | (4) |
|
|
178 | (2) |
|
|
180 | (1) |
|
8.4 Properties of Algebraic Specifications |
|
|
181 | (7) |
|
|
181 | (3) |
|
8.4.2 Extending Many-Sorted Specifications |
|
|
184 | (1) |
|
8.4.3 Classification of Operations |
|
|
184 | (2) |
|
|
186 | (2) |
|
8.5 Structured Specifications |
|
|
188 | (4) |
|
8.6 OBJ3--An Algebraic Specification Language |
|
|
192 | (9) |
|
|
194 | (2) |
|
8.6.2 Built-In Sorts and Subsorts |
|
|
196 | (5) |
|
8.7 Signature and Equations |
|
|
201 | (2) |
|
8.8 Parameterized Programming |
|
|
203 | (6) |
|
|
203 | (1) |
|
|
204 | (1) |
|
8.8.3 Parameterized Modules |
|
|
204 | (1) |
|
|
205 | (3) |
|
|
208 | (1) |
|
8.9 Case Study--A Multiple Window Environment |
|
|
209 | (6) |
|
|
215 | (1) |
|
|
216 | (1) |
|
|
217 | (2) |
|
9 Vienna Development Method |
|
|
219 | (62) |
|
9.1 Structure of a VDM Specification |
|
|
219 | (2) |
|
9.2 Representational Abstraction |
|
|
221 | (16) |
|
|
221 | (1) |
|
|
222 | (1) |
|
|
223 | (9) |
|
9.2.4 Patterns, Bindings, and Values |
|
|
232 | (2) |
|
9.2.5 State Representation |
|
|
234 | (2) |
|
|
236 | (1) |
|
9.3 Operational Abstraction |
|
|
237 | (6) |
|
|
238 | (1) |
|
9.3.2 Function Definitions |
|
|
238 | (3) |
|
9.3.3 Operation Definitions |
|
|
241 | (2) |
|
|
243 | (3) |
|
9.5 Specification Examples |
|
|
246 | (11) |
|
9.6 Case Study--Computer Network |
|
|
257 | (8) |
|
|
265 | (2) |
|
9.8 Refinement and Proof Obligations |
|
|
267 | (7) |
|
|
267 | (2) |
|
9.8.2 Example for Data Refinement |
|
|
269 | (2) |
|
9.8.3 Operation Decomposition |
|
|
271 | (1) |
|
9.8.4 Example for Operation Decomposition |
|
|
272 | (2) |
|
|
274 | (3) |
|
|
277 | (1) |
|
|
278 | (3) |
|
|
281 | (80) |
|
10.1 A Brief Overview of Z |
|
|
281 | (1) |
|
10.2 Representational Abstraction |
|
|
282 | (20) |
|
|
283 | (2) |
|
|
285 | (1) |
|
10.2.3 Relations and Functions |
|
|
285 | (2) |
|
|
287 | (1) |
|
|
287 | (4) |
|
|
291 | (1) |
|
|
292 | (9) |
|
10.2.8 State Representation |
|
|
301 | (1) |
|
10.3 Operational Abstraction |
|
|
302 | (9) |
|
|
303 | (2) |
|
10.3.2 Schema Decorators and Conventions |
|
|
305 | (2) |
|
10.3.3 Sequential Composition |
|
|
307 | (2) |
|
|
309 | (2) |
|
10.4 Specification Examples |
|
|
311 | (16) |
|
10.5 Proving Properties from Z Specifications |
|
|
327 | (8) |
|
10.5.1 Initial State Validation |
|
|
327 | (3) |
|
10.5.2 Consistency of Operations |
|
|
330 | (5) |
|
10.6 Case Study--An Automated Billing System |
|
|
335 | (8) |
|
10.7 Additional Features in Z |
|
|
343 | (5) |
|
10.7.1 Precondition Calculation |
|
|
343 | (2) |
|
|
345 | (3) |
|
10.8 Refinement and Proof Obligations |
|
|
348 | (8) |
|
|
348 | (5) |
|
|
353 | (3) |
|
|
356 | (2) |
|
|
358 | (1) |
|
|
359 | (2) |
|
|
361 | (56) |
|
11.1 The Two Tiers of Larch |
|
|
362 | (1) |
|
11.2 LSL--Larch Shared Language |
|
|
363 | (14) |
|
11.2.1 Equational Specification |
|
|
363 | (4) |
|
11.2.2 More Expressive Specifications and Stronger Theories |
|
|
367 | (3) |
|
|
370 | (1) |
|
|
371 | (1) |
|
11.2.5 Stating Checkable Properties |
|
|
371 | (2) |
|
11.2.6 Stating Assumptions |
|
|
373 | (2) |
|
11.2.7 Operator Overloading |
|
|
375 | (1) |
|
|
376 | (1) |
|
|
377 | (13) |
|
|
378 | (2) |
|
|
380 | (3) |
|
|
383 | (4) |
|
|
387 | (3) |
|
11.4 Larch/C++: A Larch Interface Specification Language for C++ |
|
|
390 | (10) |
|
11.4.1 Relating Larch/C++ to C++ |
|
|
392 | (5) |
|
11.4.2 Function Specification |
|
|
397 | (2) |
|
11.4.3 Additional Function Specification Features |
|
|
399 | (1) |
|
|
400 | (6) |
|
|
400 | (2) |
|
11.5.2 LP: Larch Proof Assistant |
|
|
402 | (4) |
|
11.6 Case Study--Two Examples from Rogue Wave Library |
|
|
406 | (7) |
|
11.6.1 RWZone Specification |
|
|
409 | (1) |
|
11.6.2 RWFile Specification |
|
|
409 | (4) |
|
|
413 | (2) |
|
|
415 | (1) |
|
|
416 | (1) |
Index |
|
417 | |