119
$\begingroup$

What are some good online/free resources (tutorials, guides, exercises, and the like) for learning Lambda Calculus?

Specifically, I am interested in the following areas:

  • Untyped lambda calculus
  • Simply-typed lambda calculus
  • Other typed lambda calculi
  • Church's Theory of Types (I'm not sure where this fits in).

(As I understand, this should provide a solid basis for the understanding of type theory.)

Any advice and suggestions would be appreciated.

9 Answers 9

78

alligators

Alligator Eggs is a cool way to learn lambda calculus.

Also learning functional programming languages like Scheme, Haskell etc. will be added fun.

  • 0
    Alligator Eggs may be a cool way to teach it, but the site assumes you already have knowledge and you're trying to teach it to others who don't.2018-07-21
43

Recommendations:

  1. Barendregt & Barendsen, 1984, Introduction to lambda-calculus;
  2. Girard, Lafont & Taylor, 1987, Proofs and Types;
  3. Sørenson & Urzyczyn, 1999, Lectures on the Curry-Howard Isomorphism.

All of these are mentioned in the LtU Getting Started thread.

  • 0
    I'm still by no means an expert in this field. I don't think I could add much, to be honest. :)2017-03-20
36

Here are a couple of resources that will get you started:

  1. The Lambda Calculus, Its Syntax and Semantics - This is a must!

  2. Lecture Notes on the Lambda Calculus by Peter Selinger

  3. History of Lambda Calculi

  4. Impact of Lambda Calculus on Logic and Computer Science

  5. Introduction to Lambda Calculus

  6. Lambda Calculi with Types

  7. Tutorial Introduction to Lambda Calculus

  8. Call-by-name, call-by-value and the Lambda Calculus

  9. Control operators, the SECD-machine, and
    the lambda-calculus.
    - With effects

  10. Modified basic functionality in combinatory logic- H.B. Curry.

  11. The principal type scheme of an object in combinatory logic. - J. Roger Hindley.

Since I am a computer science graduate, most of these are geared towards computer scientists rather than logicians.

Bonus : There is a new book that has come out Semantics Engineering with PLT Redex. I haven't read it but people have told me good things about it.

I hope this helps. Please feel free to ask me any questions. Thanks.

  • 3
    I believe that the book by Henk P. Barendregt “The Lambda Calculus, Its Syntax and Semantics” is too formal to be useful as a first textbook to learn lambda calculus. I think it is more a reference book for people working in related fields.2014-06-01
14

I like Type Theory and Functional Programming by Simon Thompson.

10

It might be nice to work through Structure and Interpretation of Computer Programs, which is available online for free. This book is an introduction to computer science and the programming language Scheme, which is a flavor of the programming language Lisp, which is based on the lambda calculus. Although it is not strictly a book about the lambda calculus, it might be fun or useful to gain some hands-on and "practical" experience with the lambda calculus by reading some of this book and working through some of its exercises.

  • 1
    @DougSpoonwood Untyped lambda calculus is just one thing the question asks for. Mostly the question is after information about typed lambda calculus.2016-12-08
10

Lambda-Calculus and Combinators, an Introduction by J. ROGER HINDLEY and JONATHAN P. SELDIN is a great (and relatively modern) resource that doesn't assume any previous knowledge.

It is available online here.

8

lol

To Dissect a Mockingbird: A Graphical Notation for the Lambda Calculus with Animated Reduction by David C Keenan is a nice complement to Alligator Eggs given above. Keenan uses Smullyan's bird metaphors from To Mock a Mockingbird and augments them with diagram notation, which aids in building intuition around combinators. The above is Y combinator in Keenan's notation.

5

I found this iPhone app that works as an un-typed lambda calculator, it works with successor, addition, addition with successor, multiplication, exponentiation, predecessor and subtraction operations. It shows a step by step process which might be helpful for people who are just starting with lambda calculus.

link: https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=928503408&mt=8

2

Some time ago, I was surprised not to find many untyped & simply-typed lambda calculus interpreters among the answers to this question, so I started working for a while in an educational lambda calculus interpreter called Mikrokosmos (can also be used online). It implements untyped and simply typed lambda calculus (and also illustrates Curry-Howard).

Surely, you could also use some functional programming language; but at least for me, it was difficult to determine exactly which constructs of the language are lambda calculus and which are extras offered by that particular language. Haskell for instance approximately implements System-F, but I also wanted to have a simply(as simple as possible)-typed lambda calculus interpreter.

The interpreter is free software and you can integrate them on other learning materials (such as Jupyter notebooks or web pages). I have used it before to teach lambda calculus to CS students.

Please note that I am the main developer of this interpreter. I am only posting here because this same question inspired me to start the development.