What a Property Test Establishes

A property test checks a specified relation on selected instances. A general proof establishes a claim over every input covered by its assumptions.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a sorting check
  2. Use counterexamples well

Trace a sorting check

Generating many lists can find ordering mistakes or missing duplicates. An invariant proof can instead cover each algorithm step at arbitrary eligible length. See property tests for sorting.

Use counterexamples well

A single eligible failing test disproves a universal claim. Many successes give evidence on their exercised cases. Proof by counterexample describes that asymmetry.[1]

References

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