Scott–Curry theorem

In mathematical logic, the Scott–Curry theorem is a result in lambda calculus stating that if two non-empty sets of lambda terms A and B are closed under beta-convertibility then they are recursively inseparable.{{cite book|title=Introduction to Combinators and (lambda) Calculus|last1=Hindley|first1=J.R.|author-link1=J. Roger Hindley|last2=Seldin|first2=J.P.|isbn=9780521268967|lccn=lc85029908|series=Cambridge Monographs on Mathematical Physics|year=1986|publisher=Cambridge University Press}}

Explanation

A set A of lambda terms is closed under beta-convertibility if for any lambda terms X and Y, if X \in A and X is β-equivalent to Y then Y \in A. Two sets A and B of natural numbers are recursively separable if there exists a computable function f : \mathbb{N} \rightarrow \{0, 1\} such that f(a) = 0 if a \in A and f(b) = 1 if b \in B. Two sets of lambda terms are recursively separable if their corresponding sets under a Gödel numbering are recursively separable, and recursively inseparable otherwise.

The Scott–Curry theorem applies equally to sets of terms in combinatory logic with weak equality. It has parallels to Rice's theorem in computability theorem, which states that all non-trivial semantic properties of programs are undecidable.

The theorem has the immediate consequence that it is an undecidable problem to determine if two lambda terms are β-equivalent.

Proof

The proof is adapted from Barendregt in The Lambda Calculus.{{cite book|title=The Lambda Calculus: Its Syntax and Semantics|last=Barendregt|first=H.P.|isbn=0444875085|series=Studies in Logic and the Foundations of Mathematics|volume=103|year=1985|edition=3rd|publisher=Elsevier Science}}

Let A and B be closed under beta-convertibility and let a and b be lambda term representations of elements from A and B respectively. Suppose for a contradiction that f is a lambda term representing a computable function such that fx = 0 if x \in A and fx = 1 if x \in B (where equality is β-equality). Then define G \equiv \lambda x.\text{if}\ (\text{zero?} \ (fx)) a b. Here, \text{zero?} is true if its argument is zero and false otherwise, and \text{if} is the identity so that \text{if}\ b x y is equal to x if b is true and y if b is false.

Then x \in C \implies Gx = a and similarly, x \notin C \implies Gx = b. By the Second Recursion Theorem, there is a term X which is equal to f applied to the Church numeral of its Gödel numbering, X{{'}}. Then X \in C implies that X = G(X') = b so in fact X \notin C. The reverse assumption X \notin C gives X = G(X') = a so X \in C. Either way we arise at a contradiction, and so f cannot be a function which separates A and B. Hence A and B are recursively inseparable.

History

Dana Scott first proved the theorem in 1963. The theorem, in a slightly less general form, was independently proven by Haskell Curry.{{cite book|title=Logic from Russell to Church|last=Gabbay|first=D.M.|last2=Woods|first2=J.|isbn=9780080885476|series=Handbook of the History of Logic|year=2009|publisher=Elsevier Science}} It was published in Curry's 1969 paper "The undecidability of λK-conversion".{{cite journal |last1=Curry |first1=Haskell B. |author-link1=Haskell Curry |date=1969 |title=The undecidability of λK-conversion |journal=Journal of Symbolic Logic |volume=January 1969 |pages=10–14}}

References