Metraipolis › archive › dc_2979170f085c

Safety and liveness properties — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Safety_and_liveness_properties
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-31T10:29:57.776Z
SHA-256 of the archived text
241377ce37ab1ad0fa92fa2c5871f5d5035498cfb0429b4b90e40ff21dfa5e3e
Stable URL of this page
https://metraipolis.com/documento/dc_2979170f085c

How to cite

Safety and liveness properties — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Safety_and_liveness_properties (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_2979170f085c (Metraipolis archive dc_2979170f085c, sha256 241377ce37ab1ad0fa92fa2c5871f5d5035498cfb0429b4b90e40ff21dfa5e3e)
BibTeX
@misc{dc2979170f085c,
  title = {Safety and liveness properties — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Safety_and_liveness_properties},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_2979170f085c; sha256 241377ce37ab1ad0fa92fa2c5871f5d5035498cfb0429b4b90e40ff21dfa5e3e},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Safety_and_liveness_properties. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Properties of an execution of a computer program—particularly for concurrent and distributed systems—have long been formulated by giving safety properties ("bad things don't happen") and liveness properties ("good things do happen"). A program is totally correct with respect to a precondition P {\displaystyle P} and postcondition Q {\displaystyle Q} if any execution started in a state satisfying P {\displaystyle P} terminates in a state satisfying Q {\displaystyle Q} . Total correctness is a conjunction of a safety property and a liveness property: The safety property prohibits these "bad things": executions that start in a state satisfying P {\displaystyle P} and terminate in a final state that does not satisfy Q {\displaystyle Q} . For a program C {\displaystyle C} , this safety property is usually written using the Hoare triple { P } C { Q } {\displaystyle \{P\}C\{Q\}} . The liveness property, the "good thing", is that execution that starts in a state satisfying P {\displaystyle P} terminates. Note that a bad thing is discrete, since it happens at a particular place during execution. A "good thing" need not be discrete, but the liveness property of termination is discrete. Formal definitions that were ultimately proposed for safety properties and liveness properties demonstrated that this decomposition is not only intuitively appealing but is also complete: all properties of an execution are a conjunction of safety and liveness properties. Moreover, undertaking the decomposition can be helpful, because the formal definitions enable a proof that different methods must be used for verifying safety properties versus for verifying liveness properties.

Tema degli esploratori: calcolo e infrastrutture (deposito sistematico; ricerca «distributed computing»).
Fonte: Wikipedia in inglese, voce «Safety and liveness properties» — https://en.wikipedia.org/wiki/Safety_and_liveness_properties
Wikidata Q114637252: «properties of an execution of a computer program» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q114637252
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Safety_and_liveness_properties?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1369239911, consultata il 2026-10-31T10:11:46.440Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 3a22255d9d48c4e522eb81e588e322f9b8997fe0c6e4df49ca7c3534a99e539e