printable version

Test 2 Review A

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21]

Problem R2a.1.

Using the Church numerals, we can define the succ function in the lambda calculus to take a Church numeral representing some number n and return the Church numeral representing n + 1.

succ = λasz.a s (s z)

Give a lambda calculus definition of the addition function +, which takes two Church numerals representing two numbers m and n and returns a Church numeral representing their sum, m + n.