- Formal specification
A formal specification is a mathematical description of
software orhardware that may be used to develop animplementation . It describes "what" the system should do, not (necessarily) "how" the system should do it. Given such aspecification , it is possible to useformal 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.It is important to note that a design (or implementation) cannot ever be declared “correct” in isolation, but only “correct with respect to a given specification”. Whether the formal specification correctly describes the problem to be solved is a separate issue. It is also a difficult issue to address, since it ultimately concerns the problem constructing abstracted formal representations of an informal concrete
problem domain , and such an abstraction step is not amenable to formal proof. However, it is possible to validate a specification by proving “challenge”theorem s concerning properties that the specification is expected to exhibit. If correct, these theorems reinforce the specifiers understanding of the specification and its relationship with the underlying problem domain. If not, the specification probably needs to be changed to better reflect the domain understanding of those involved with producing (and implementing) the specification.The
Z notation is an example of a leading formalspecification language . Others include the Specification Language(VDM-SL) of theVienna Development Method and theAbstract Machine Notation (AMN) of theB-Method .See also
*
Algebraic specification
*Formal methods
*Specification (technical standard)
*Software engineering
*Specification language References
* " [http://kuro5hin.org/story/2005/7/29/04553/9714 A Case for Formal Specification (Technology)] " by Coryoth 2005-07-30
* [http://c2.com/cgi/wiki?FormalSpecification Formal Specification]
Wikimedia Foundation. 2010.