Linear Depth Increase of Lambda Terms along Leftmost-Outermost Beta-Reduction

Abstract

Performing n steps of β-reduction to a given term in the λ-calculus can lead to an increase in the size of the resulting term that is exponential in n. The same is true for the possible depth increase of terms along a β-reduction sequence. We explain that the situation is different for the leftmost-outermost strategy for β-reduction: while exponential size increase is still possible, depth increase is bounded linearly in the number of steps. For every λ-term M with depth d, in every step of a leftmost-outermost β-reduction rewrite sequence starting from M the term depth increases by at most d. Hence the depth of the n-th reduct of M in such a rewrite sequence is bounded by d· (n+1). We prove the lifting of this result to λ-term representations as orthogonal first-order term rewriting systems, which can be obtained by the lambda-lifting transformation. For the transfer to lambda-calculus, we rely on correspondence statements via lambda-lifting. We argue that the linear-depth-increase property can be a stepping stone for an alternative proof of, and so can shed new light on, a result by Accattoli and Dal Lago (2015) that states: leftmost-outermost β-reduction rewrite sequences of length n in the lambda-calculus can be implemented on a reasonable machine with an overhead that is polynomial in n and the size of the initial term.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…