Pointwise provable equality fails to ensure compositional consistency in arithmetic-based programs
Pointwise provable equality and the failure of composition
Summary
The paper finds that when comparing computer programs based on a certain notion of equality proven inside arithmetic, two programs can seem equal piece by piece but behave differently when combined with others. This contradicts earlier claims that these programs form a mathematical structure called a category, which requires composition to be consistent. The authors show this inconsistency occurs even with basic types of partial functions and ties the problem to foundational limits in arithmetic. They also characterize exactly when this type of equality behaves well under composition, linking it to strong forms of truth provability in arithmetic.
What this means in practice
- •For program verification teams: Avoid relying on pointwise provable equality as a basis for program equivalence when verifying program composition correctness in arithmetic-based systems.
- •For formal methods engineers: Design proof systems and program equivalences that respect extensional equality to ensure compositional consistency in software verified over arithmetic theories.
A theory result. No direct application yet.