More Church-Rosser Proofs in BELUGA
Alberto Momigliano, Martina Sassella
TL;DR
This paper presents a Beluga-based formalization of the Church-Rosser property for lambda-calculus, extending from CR($\beta$) to CR($\eta$) and CR($\beta\eta$), and shows the same proof structure can be ported to System $F$ using intrinsically-typed terms. It leverages HOAS and Beluga's contextual reasoning to achieve modular, elegant encodings of reduction and confluence, including a meta-level discussion and a logic-programming style counterexample search. The results demonstrate Beluga's suitability for mechanizing meta-theoretic proofs and for teaching lambda-calculus, while also highlighting practical limits of meta-level encodings. The work suggests a pathway for more Church-Rosser proofs and for integrating counterexample search into proof environments via tools like QuickChick.
Abstract
We report on yet another formalization of the Church-Rosser property in lambda-calculi, carried out with the proof environment Beluga. After the well-known proofs of confluence for beta-reduction in the untyped settings, with and without Takahashi's complete developments method, we concentrate on eta-reduction and obtain the result for beta-eta modularly. We further extend the analysis to typed-calculi, in particular System F. Finally, we investigate the idea of pursuing the encoding directly in Beluga's meta-logic, as well as the use of Beluga's logic programming engine to search for counterexamples.
