Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
science, a formal specification is a mathematical description of
software or hardware that may be used to develop an implementation. It
describes what the system should do, not how the system should do it.
Given such a specification, it is possible to use formal verification
techniques to demonstrate that a candidate system design is correct with
respect to the specification. This has the advantage that incorrect
candidate system designs can be revised before a major investment has
been made in actually implementing the design. An alternative approach
is to use provably correct refinement steps to transform a specification
into a design, and ultimately into an actual implementation, that is
correct by construction.