Simply typed convertibility is TOWER-complete even for safe lambda-terms

Lê Thành Dũng Nguyên
2024-09-04
Abstract:We consider the following decision problem: given two simply typed $\lambda$-terms, are they $\beta$-convertible? Equivalently, do they have the same normal form? It is famously non-elementary, but the precise complexity - namely TOWER-complete - is lesser known. One goal of this short paper is to popularize this fact. Our original contribution is to show that the problem stays TOWER-complete when the two input terms belong to Blum and Ong's safe $\lambda$-calculus, a fragment of the simply typed $\lambda$-calculus arising from the study of higher-order recursion schemes. Previously, the best known lower bound for this safe $\beta$-convertibility problem was PSPACE-hardness. Our proof proceeds by reduction from the star-free expression equivalence problem, taking inspiration from the author's work with Pradic on "implicit automata in typed $\lambda$-calculi". These results also hold for $\beta\eta$-convertibility.
Logic in Computer Science,Programming Languages
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the decision problem regarding β - convertibility in simple - type λ - calculus. Specifically, given two simple - type λ - terms \(t\) and \(u\), are they β - convertible? Equivalently, do they have the same normal form? This problem is of great significance in computational complexity theory. It is well - known that the β - convertibility problem in simple - type λ - calculus does not belong to the elementary complexity class, but its exact complexity - namely, tower - complete - is little known. One of the goals of this paper is to generalize this fact. The main contribution of this paper lies in proving that even when the input terms belong to the "safe" λ - calculus proposed by Blum and Ong, the problem still remains tower - complete. Previously, the best - known lower bound for this type of "safe" β - convertibility problem was PSpace - hard. The author proves this by reduction from the star - free expression equivalence problem and draws inspiration from it, which is related to the previous work of the author and Pradic in "Applications of Implicit Automata in Typed λ - Calculus". The following are the specific problems that this paper attempts to solve: 1. **Decision problem of β - convertibility**: - Input: Two simple - type λ - terms \(t\) and \(u\) of the same type. - Output: Are \(t\) and \(u\) β - convertible? Equivalently, do they have the same normal form? 2. **Complexity analysis**: - Prove that the β - convertibility problem in simple - type λ - calculus is tower - complete. - Prove that even for "safe" λ - terms, the problem still remains tower - complete. 3. **Methodology**: - Use the star - free expression equivalence problem as a reduction source to prove the tower - complexity of the "safe" β - convertibility problem. - Provide an algorithm framework for calculating the normal form of simple - type λ - terms and analyze its complexity. Through these works, the paper not only deepens the understanding of the complexity of the β - convertibility problem in simple - type λ - calculus, but also shows how to use reduction techniques to map other complex problems into λ - calculus, further enriching the theoretical foundation in the field of computer science.