Equivalent Results for Two Pure Rules
Two pure implementations can be compared by checking whether their output agrees for every input in the stated domain.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace an algebraic case
Computing \(2(x+3)\) and \(2x+6\) agrees over exact integers. A bounded arithmetic environment can require additional checks on intermediate values. See bounded integer representations.
Include all promised observations
If a calculation emits records or raises on particular inputs, output equality alone may be insufficient. Observable effects and results identify the full behavior.[1]