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
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]