Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lambda Zoo

Lambda Zoo

A brief presentation on animals used in explanations of lambda calculus. Presented at Hacker School during the Summer of 2012

NeiL saitug

July 04, 2012
Tweet

More Decks by NeiL saitug

Other Decks in Programming

Transcript

  1. Care of Combinators Combinators make ideal pets. Housing They should

    be kept in a suitable axiom-scheme, preferably shaded by Böhm trees. They like plenty of scope for their contractions, and a proved extensionality is ideal for this. Diet To keep them in strong normal form a diet of mixed free variables should be given twice a day. Bound variables are best avoided as they can lead to contradictions. The exotic R combinator needs a few Church numerals added to its diet to keep it healthy and active. House-training If they are kept well supplied with parentheses, changed daily (from the left), there should be no problems. Exercise They can be safely let out to contract and reduce if kept on a long corollary attached to a fixed point theorem, but do watch that they don't get themselves into a logical paradox while playing around it. Discipline Combinators are generally well behaved but a few rules of inference should be enforced to keep their formal theories equivalent. Health For those feeling less than weakly equal a check up at a nearby lemma is usually all that is required. In more serious cases a theorem (Church–Rosser is a good general one) should be called in.