(if (< 3 4) 1 foo)If you execute this, you'll always get 1 and you'll never get an error even though foo is free. Your job is to do the same thing, but for an expression in the lambda calculus (where you don't have conditionals or special forms of any kind).
Here's a few hints:
(lambda (x) (lambda (y) y))This function takes a value, x, and returns a lambda expression which doesn't rely on it. This function has the same value independent of what it is applied to. Can you use this function (unchanged) as part of a lambda calculus expression that has a free variable, but whose value is independent of that variable?
If there are problems with this page, please send mail to <cs330ta@cs.byu.edu>
If you have a comment about the class, please send mail to <seamons@cs.byu.edu>
© 1994-2009, Phillip J. Windley and
Bryan S. Morse. All rights reserved.
Reproduction of all or part of this work is permitted for educational or research use provided
that this copyright notice is included in any copy.
Last updated at 9:18 pm on Friday, September 03, 2004.