A Counterexample as a State Trace

A reachable sequence of steps can refute a claim by showing a first state where the promised property fails.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an invalid queue state
  2. Check whether the trace is legal

Trace an invalid queue state

If an empty queue removes one under an unguarded transition, its separate count can become negative. The initial zero and that one operation form a witness. See transition tables.

Check whether the trace is legal

A trace starting from an invalid state or using a forbidden action may fall outside the claim. Counterexamples and preconditions describe checking that boundary.[1]

References

  1. Benjamin C. Pierce et al., Software Foundations ↩