More Church-Rosser Proofs in BELUGA

Alberto Momigliano,Martina Sassella
DOI: https://doi.org/10.4204/EPTCS.402.6
2024-04-23
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.
Logic in Computer Science,Programming Languages
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the formal proof of the Church - Rosser property in lambda calculus. Specifically, the authors used the Beluga proof environment to formalize the Church - Rosser property, especially to verify the confluence of β - reduction, η - reduction and βη - reduction in different variants of lambda calculus (such as untyped and typed lambda calculus). ### Main problems 1. **Formalization of confluence proofs**: - The authors attempted to formalize the Church - Rosser theorem in the Beluga environment, especially for β - reduction, η - reduction and βη - reduction. - They focused on how to replicate Nipkow's results in a higher - order abstract syntax (HOAS) setting and extend them to typed calculi such as System F. 2. **Extension to typed calculi**: - The paper explored how to extend these proofs to typed lambda calculus, especially System F. Through intrinsically - typed terms, the authors were able to elegantly handle reductions limited to well - typed terms. 3. **Metalogic encoding and counterexample search**: - The authors also studied the possibility of direct encoding in Beluga's metalogic and the method of using Beluga's logic programming engine to search for counterexamples. This helps to verify unproven conjectures and show counterexamples. ### Key techniques - **Higher - order abstract syntax (HOAS)**: It is used to represent the syntax and judgments of lambda calculus, simplifying the variable - binding problem. - **Intrinsically - typed terms**: Ensure that only well - typed terms are processed, thus simplifying the proof process. - **Logic programming engine**: Used to search for counterexamples and verify the correctness of conjectures. ### Conclusion The main contributions of the paper are: - Successfully formalized the Church - Rosser theorem of multiple lambda calculi in the Beluga environment. - Extended these proofs to typed lambda calculus through intrinsically - typed terms. - Explored the applications of metalogic encoding and counterexample search, providing new tools and methods for future research. Through these works, the authors demonstrated the powerful functions of Beluga in formal proof and laid the foundation for further research on the confluence of lambda calculus and other formal systems.