---
library: "bootstrap"
slug: "Reversibility"
name: "Reversibility"
ref: "Reversibility#cb35"
hash: "sema:Reversibility#mh:SHA-256:cb359b693e6f3e674083df81b207143179d19330d5c3ce6e1832674901074b37"
type: "Primitives"
layer: "Physics"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Reversibility"
---

# Reversibility

Condition: Can this action be undone?

Physics · Primitives

## Mechanism

Evaluates whether the post-state of an action allows a return to the pre-state. Two tests in order: whether the information needed to reconstruct the pre-state still exists, and only then whether restoring it costs less than the caller's declared limit. Returns TRUE for Type 2 decisions (reversible) and FALSE for Type 1 (one-way doors).

## Invariants

- A post-state that destroyed the information yields FALSE at any cost limit.
- The verdict names the cost limit and information-loss tolerance it was judged against, both [Constraint](https://semahash.org/vocabularies/bootstrap/patterns/Constraint.md)s supplied by the caller.

## Parameters

- cost_limit: type=PositiveInteger, range=unspecified, description=Maximum acceptable cost to reverse, in a unit the caller states.

## Failure modes

- False reversibility: the action created externalities the pre-action analysis omitted.
- Cost drift: the tolerance was declared before the reversal is attempted.

## Where this came from

—

## Builds on

- [Constraint](https://semahash.org/vocabularies/bootstrap/patterns/Constraint.md) (references)

## Used by

- [ReversibilityCheck](https://semahash.org/vocabularies/bootstrap/patterns/ReversibilityCheck.md) (references)
- [Translate](https://semahash.org/vocabularies/bootstrap/patterns/Translate.md) (references)
- [Trialhaven](https://semahash.org/vocabularies/bootstrap/patterns/Trialhaven.md) (references)

## Related

- [Trialhaven](https://semahash.org/vocabularies/bootstrap/patterns/Trialhaven.md)
- [ErrorCostAsymmetry](https://semahash.org/vocabularies/bootstrap/patterns/ErrorCostAsymmetry.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Reversibility#cb35
- Hash: sema:Reversibility#mh:SHA-256:cb359b693e6f3e674083df81b207143179d19330d5c3ce6e1832674901074b37

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Reversibility
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Reversibility.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
