Stating Assumptions Alongside a Correctness Claim
A correctness result depends on the assumed input set, execution model, and required observations. State them near the claimed property.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a search guarantee
A binary search can promise a correct location under sorted input and the chosen order. On a different order, its elimination rule changes. See binary search by hand.
Keep the proof reproducible
Provide a clear representation and an example illustrating where the premises are used. Function preconditions give a place for them at the interface.[1]