Glossary definition

Invariant

A property that must remain true before and after every relevant state transition in a system.

also: invariant property · reviewed July 22, 2026

An invariant turns an expected system property into an executable check. In a stateful fuzz test, invariants are evaluated throughout generated action sequences so the test can identify the first transition that breaks the model.

Good invariants describe system meaning rather than implementation details: assets are conserved, accounting totals agree, permissions hold, or a solvency ratio never falls below its boundary. A property that simply repeats the code’s own calculation can reproduce the same bug instead of detecting it.

Used in context

Articles using this term.