Brendan Ang

Search

Search IconIcon to open search

Safety and Liveliness

Last updated Apr 11, 2023 Edit Source

# Safety and Liveliness

Correctness properties which are common in computer science.

# Safety

Properties that state that nothing bad ever happens. It can only be:

[!Formal definition] A property P is a safety property if given any execution E such that P(trace(E)) = false, there exists a prefix of E, s.t. every extension of that prefix gives an execution F s.t. P(trace(F))=false

500

# Liveliness

Properties that state that something good eventually happens. It can only be:

[!Formal definition] A property P is a liveness property if given any prefix F of an execution E, there exists an extension of trace(F) for which P is true

500