Translation Validation and Per-Result Proofs
Validate each concrete transformation with a semantic query and distinguish that check from proving the compiler pass correct once.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A validator receives the before and after fragments
For total pure integer expressions \(P(x)\) and \(Q(x)\), ask whether some input satisfies \(P(x)\ne Q(x)\). Unsatisfiability proves equality under the modeled domain. For example, \((x+1)+1\) and \(x+2\) agree over mathematical integers. With fixed-width operations and overflow-sensitive semantics, the validator must model which results are defined before comparing them.
The trusted claim belongs to the checker
A failed or timed-out check can leave the original fragment in place. A successful check still relies on the correspondence between its formulas and the source and target machines. SMT theory solving provides constraints for local checks. Verified compiler construction instead proves simulation for transformations in advance. Whole-program effects, memory access and evaluation order require a richer observation relation than expression equality.[1][2]