Specification
A precise mathematical description of system behavior, typically written in formal languages such as temporal logic, assertions, or state machines. Unlike natural-language requirements, it must be unambiguous and cover all legal inputs and boundary conditions.
Core Facts
Timeline (last 90 days)
Writing specifications is often harder than writing code: developers need to precisely describe "what the system should do," and this step is highly prone to omitting boundary conditions or implicit assumptions.
A specification describes obligations, an implementation provides the mechanism, and the same specification can be satisfied by different implementations.
Formal verification only guarantees that the code satisfies the specification, not that the specification is faithful to the natural language requirement, so a machine proof of a property narrower than the requirement may be worthless yet pass all checks.
The reliability of formal verification depends entirely on the correctness of the specification; verification tools only answer whether the code satisfies the specification, not whether the specification matches the intent.
All Facts (4)
Formal verification only guarantees that the code satisfies the specification, not that the specification is faithful to the natural language requirement, so a machine proof of a property narrower than the requirement may be worthless yet pass all checks.
75%UnverifiedWriting specifications is often harder than writing code: developers need to precisely describe "what the system should do," and this step is highly prone to omitting boundary conditions or implicit assumptions.
50%UnverifiedA specification describes obligations, an implementation provides the mechanism, and the same specification can be satisfied by different implementations.
50%UnverifiedThe reliability of formal verification depends entirely on the correctness of the specification; verification tools only answer whether the code satisfies the specification, not whether the specification matches the intent.
50%