The λ-calculus
Warm-upHumanList the free variables of the term . Enter each variable name once.
List the free variables of the term . Enter each variable name once.
What does reduce to in one β-step (with free)?
With Church numerals , the term (the numeral applied to the numeral ) β-reduces to a Church numeral . What is ?
Which of these terms have no normal form? Here , , . Choose all that apply.
Why does the proof of the Church–Rosser theorem go through parallel reduction instead of showing directly that one-step reduction has the diamond property?
In Turing's proof of weak normalisation we contract a redex of maximal degree chosen so that contains no redex of degree . Which part of the argument needs this choice?
Which of these terms has a type in the simply typed λ-calculus (for suitable types on the bound variables)?
In the lesson's Lean file, Step t u is one β-step and ReflTransGen Step t u is . Which statement is the Church–Rosser theorem, as proved there?
Python's lambda can run Church numerals directly. With church(n) and to_int below, define times(m, n) and exp(m, n) returning the Church numerals for and , using only application and lambda (no conversion to int inside them).