From: jim Date: Wed, 18 Feb 2015 03:16:07 +0000 (-0500) Subject: Add old translation scheme back in (commented out), for reference X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=e7e25cbb6455da295bfc0d84f0b243dff3db29dc Add old translation scheme back in (commented out), for reference --- diff --git a/topics/week3_combinatory_logic.mdwn b/topics/week3_combinatory_logic.mdwn index 0ddb4469..8a453cde 100644 --- a/topics/week3_combinatory_logic.mdwn +++ b/topics/week3_combinatory_logic.mdwn @@ -165,7 +165,7 @@ combinators in Combinatory Logic can be exactly reproduced by a lambda term. How about the other direction? Here is a method for converting an arbitrary lambda term into an equivalent Combinatory Logic term using only `S`, `K`, and `I`. -Besides the intrinsic beauty of this mapping, and the importance of what it +Besides the intrinsic beauty of such mappings, and the importance of what it says about the nature of binding and computation, it is possible to hear an echo of computing with continuations in this conversion strategy (though you wouldn't be able to hear these echos until we've covered a considerable portion @@ -175,6 +175,48 @@ used to establish a correspondence between two natural language grammars, one of which is based on lambda-like abstraction, the other of which is based on Combinatory Logic-like manipulations. + + [WARNING: the mapping from the lambda calculus to Combinatory Logic has been changed since the class in which it was presented. It now matches the presentation in Barendregt. The revised version is @@ -196,7 +238,7 @@ expressions `X` and `Y`. So examples of CL expressions include omit parentheses, the assumption will be left associativity, so that `XYZ == ((XY)Z)`. -It may seem wierd to allow variables in CL. The reason that is +It may seem weird to allow variables in CL. The reason that is necessary is because we're trying to show that every lambda term can be translated into an equivalent CL term. Since some lambda terms contain free variables, we need to provide a translation for free