From: Jim Pryor Date: Mon, 20 Sep 2010 19:40:22 +0000 (-0400) Subject: Merge branch 'pryor' X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=4c41ba9c22b453bb23667786c1b549f15bf5cf1e;hp=d63b0d0e1c52b50a383e419345a54e2bc6339a77 Merge branch 'pryor' --- diff --git a/assignment2.mdwn b/assignment2.mdwn index 648ef210..ff600cc7 100644 --- a/assignment2.mdwn +++ b/assignment2.mdwn @@ -33,6 +33,36 @@ Reduce to beta-normal forms:
  • `(\x y z. x z (y z)) (\u v. u)` +Combinatory Logic +----------------- + +Reduce the following forms, if possible: + +
      +
    1. `Kxy` +
    2. `KKxy` +
    3. `KKKxy` +
    4. `SKKxy` +
    5. `SIII` +
    6. `SII(SII)` + +
    7. Give Combinatory Logic combinators that behave like our boolean functions. + You'll need combinators for `true`, `false`, `neg`, `and`, `or`, and `xor`. +
    + +Using the mapping specified in the lecture notes, +translate the following lambda terms into combinatory logic: + +
      +
    1. `\x.x` +
    2. `\xy.x` +
    3. `\xy.y` +
    4. `\xy.yx` +
    5. `\x.xx` +
    6. `\xyz.x(yz)` +
    7. For each translation, how many I's are there? Give a rule for + describing what each I corresponds to in the original lambda term. +
    Lists and Numbers ----------------- diff --git a/index.mdwn b/index.mdwn index aeb0564e..46f6b74a 100644 --- a/index.mdwn +++ b/index.mdwn @@ -16,11 +16,14 @@ Student sessions will be held on Tuesdays from 11-12 and Wednesdays from 3-4. (Y Lots of lecture notes summarizing and expanding on last Monday's seminar now posted. Also, lecture notes for upcoming session have been posted. (Click "Notes and Schedule".) -## Assignments ## +## Lecture Notes and Assignments ## -[[Assignment1]] +Lecture notes for [[Week1]]; [[Assignment1]]. -[[Assignment2]] +Lecture notes for [[Week2]]; [[Assignment2]]. + +There is now a [lambda evaluator](lambda-let.html) you can use in your browser (no need to install any software). +It can help you check whether your answer to some of the homework questions works correctly. [Lambda Calculator](/lambda-let.html)