Pointwise provable equality and the failure of composition
arXiv:2609.25556
Abstract
In their studies of pathologies in recursion categories, Montagna (1989) and Di Paola--Montagna (1991) introduce the algebraic systems and , respectively, and claim that they are categories. We show that the proposed composition is not independent of the choice of representatives. For every consistent recursively enumerable extension of Peano arithmetic (), we exhibit two unary programs whose partial functions are provably equal in , separately at each standard input. Composing each after a program that searches for a -proof of contradiction and returns its code yields programs that are not equivalent in this sense. An alternative proof uses the productivity of the complement of the diagonal halting set. Montagna's is the case . More generally, for consistent , pointwise provable equality is a composition congruence exactly when proves every true sentence, in which case it is extensional equality. This completeness condition fails for every consistent recursively enumerable by Gödel's second incompleteness theorem. For every extension , the least composition congruence containing pointwise provable equality is extensional equality if is -sound and the universal relation otherwise.
arXiv comment11 pages. Minor expository revisions: removed repetition and clarified invariance of domain partial identities and R-totality under pointwise provable equality. Results, existing proofs, and Lean formalization unchanged. Registered Lean formalization: https://palomar-registry.org/entry?id=PALOMAR-2026-10-01-000013&version=1