In the early 1930s Alonzo Church at Princeton invented the lambda calculus, a notation in which functions are written, applied and evaluated by nothing but substitution.[1] This lesson explains the notation, the numbers Church built from it, the paradox that broke his first system, and how it gave one of the two exact definitions of computation of 1936.
Alonzo Church at Princeton
Alonzo Church was born in Washington, D.C., on 14 June 1903.[2] He studied at Princeton, where he took his first degree in 1924 and his doctorate in 1927, under Veblen.[3] After two years as a National Research Fellow, at Harvard and then at Göttingen and Amsterdam, he returned to Princeton in 1929 as an assistant professor of mathematics.[4]
Princeton in the 1930s was a lively place for logic. Church worked with two of his doctoral students, J. Barkley Rosser and Stephen Kleene; John von Neumann was there; Kurt Gödel visited the Institute for Advanced Study in 1933 and 1935; and in 1936 Alan Turing arrived as a graduate student.[5] Kleene took his doctorate under Church in 1934, with a thesis on the theory of positive integers in Church’s system of logic.[6] In 1936 Church helped to found the Journal of Symbolic Logic.[7]
The previous lessons, Hilbert’s decision problem and Turing’s 1936 paper on computable numbers, tell the problem that Church and Turing answered in 1936. This lesson tells Church’s side.
A notation for functions
The words of Church, Kleene and Gödel quoted in this lesson are taken from the Stanford Encyclopedia of Philosophy entries cited with them, not from the original publications. McCarthy is quoted from his own paper of 1960.
For Church a function was a rule, in words from his book of 1941: “a rule of correspondence by which when anything is given (as argument) another thing (the value of the function for that argument) may be obtained.”[8] His notation writes such a rule directly. The expression λx. M stands for the function that takes an input, called x, to M; applying it to an argument means putting the argument in place of x in M.[9]
Every variable (x, y, f, …) is a λ-term. If M and N are λ-terms, so is the application M N, “M applied to N”. If M is a λ-term and x a variable, then the abstraction λx. M is a λ-term.[10] Nothing else is a λ-term.
Application groups to the left: f a b means (f a) b.[11] The body of a λ reaches as far to the right as possible, so λx. f x means λx. (f x). Church wrote the body in square brackets, λx[M], or after a dot, following a convention of Russell’s Principia Mathematica;[12] the Stanford Encyclopedia uses the brackets.[10] This lesson writes λx. M.
In λx. M the λ binds the variable x in M. An occurrence of x in a term is bound if it lies inside some λx. … , and free otherwise.[13]
A term of the form (λx. M) N may be replaced by the result of putting N in place of the free occurrences of x in M.[14]
Carry out one step on (λy. y (h y)) c.
- The function is λy. y (h y): its input is called y and its body is y (h y). The argument is c.
- The body contains two y’s, neither inside another λy, so both are free in the body and bound by the λy.
- Replace both by c: c (h c).
Answer: c (h c). Check: no y is left, the λy and the argument have gone, and the variable h, which the λy does not bind, is unchanged.
A λ takes one input. A function of two inputs is written as a function of the first whose value is a function of the second, and applied to its arguments one at a time.[17] This method is now called currying, after Haskell Curry.[18]
Who first had the idea is told differently. The Stanford Encyclopedia’s entry on Church says the method is due to Moses Schönfinkel;[18] its entry on the lambda calculus finds it already in Frege’s work of 1893 and suggests that “fregeing” would be the more accurate name.[19] All agree that the name, after Curry, came later than the idea.
Reduce (λx. λy. y x) a b to a term with no λ-conversion step left.
- By the convention, the term is ((λx. λy. y x) a) b: first the function meets a.
- Step 1: the λx binds the x in λy. y x. Replace it by a: (λy. y a) b.
- Step 2: the λy binds the first y. Replace it by b: b a.
Answer: b a. The function puts its second argument in front of its first. Check with the arguments the other way round: (λx. λy. y x) b a gives a b, a different term, so the order of the arguments matters.
Carry out one step on (λx. f y) a, and on (λx. x (λx. x)) a.
- In (λx. f y) a the body f y contains no x. Nothing is replaced; the result is f y, and the argument a disappears.
- In (λx. x (λx. x)) a the body has two x’s. The first is free in the body and bound by the outer λx. The second lies inside the inner λx. x, so it is bound by the inner λ and is not free in the body.[13]
- Replace only the first: a (λx. x).
Answer: f y, and a (λx. x). The inner λx. x is a function of its own; renaming its variable, to λz. z, would change nothing, which shows that its x was never the outer one.
Substitute the argument
- Round
- 1
- Score
- 0
- Streak
- 0
One step of λ-conversion: the variable f of the first λ is replaced by the argument. Tap every f that gets replaced, then press Check.
The argument is g. Marked so far: 0.
Carry out one step on (λx. λy. x) y.
- The outer λx binds the x inside λy. x; the argument is the variable y, which is free.
- Putting y in place of x without care gives λy. y. That is wrong: the free y has slipped under the inner λy and become bound.
- The rule forbids this. First rename the inner bound variable, an allowed change of a bound variable: λx. λy. x becomes λx. λz. x.[20]
[21] Now replace x by y: λz. y.
Answer: λz. y, a function that ignores its input and always gives y. The wrong answer λy. y would be the function that gives back its input, a different function. This is why the definition speaks of free occurrences, and why a casual attitude to substitution leads to errors.[22]
Church’s logic and its paradox
Church first used the λ in a much larger system, a new foundation for logic and mathematics, published in 1932 in the Annals of Mathematics as “A set of postulates for the foundation of logic”.[23] To avoid the paradoxes of logic he restricted the law of excluded middle, rather than follow Russell’s or Zermelo’s methods, which seemed to him “somewhat artificial”.[24] A form of Russell’s paradox could still be derived in the system of 1932, but it was there that Church first formulated the λ-calculus, as one part of the whole.[25]
A second paper, of 1933, removed the problem with Russell’s paradox. But in 1935 Kleene and Rosser showed that both systems fell prey to another paradox, Richard’s.[26] The λ-calculus itself survived: on its own it is consistent, in the sense that not every equation between λ-terms can be derived, as follows from a result of Church and Rosser of 1936, the Church–Rosser theorem.[27]
Two senses of “inconsistent” are in play. Church’s systems of 1932 and 1933, which combined the λ with logic, were inconsistent in the sense that a paradox, a contradiction, could be derived in them.[26] For the pure calculus of λ-terms and conversion, inconsistency would mean that all terms are equal; that this is not so was an early result.[28]
Numbers made of functions
Numbers can be represented by λ-terms. The numeral for a number n is the function that takes a function f and a value x and applies f to x n times: 0 is λf. λx. x, 1 is λf. λx. f x, 2 is λf. λx. f (f x), and so on. Church himself began with 1; it is now common to begin with 0.[29]
| number | numeral | applied to g and a |
|---|---|---|
| 0 | λf. λx. x | a |
| 1 | λf. λx. f x | g a |
| 2 | λf. λx. f (f x) | g (g a) |
| 3 | λf. λx. f (f (f x)) | g (g (g a)) |
Reduce (λf. λx. f (f x)) g a, the numeral 2 applied to a function g and a value a.
- Step 1: the λf binds both f’s. Replace them by g: (λx. g (g x)) a.
- Step 2: the λx binds the one x. Replace it by a: g (g a).
Answer: g (g a): g applied twice. Check: the numeral contained two f’s, and the result contains two g’s. In the same way the numeral 3 gives g (g (g a)), and the numeral 0 gives a, with no g at all, as in the last column of the table.
Operations on numbers are λ-terms too. The successor, which adds 1, can be written λn. λf. λx. f (n f x): given a numeral n, it applies f once more than n does.[31]
Reduce (λn. λf. λx. f (n f x)) (λf. λx. f (f x)), the successor applied to the numeral 2.
- Step 1: the outer λn binds the one n. Replace it by the numeral: λf. λx. f ((λf. λx. f (f x)) f x). The f and x of the numeral are bound inside the numeral, so nothing is captured.
- Step 2: inside, the numeral is applied to f: (λf. λx. f (f x)) f gives λx. f (f x). The term is now λf. λx. f ((λx. f (f x)) x).
- Step 3: (λx. f (f x)) x gives f (f x). The term is now λf. λx. f (f (f x)).
Answer: λf. λx. f (f (f x)), the numeral 3. Check: count the f’s applied to x: three. Nothing but substitution was used, yet the result is 2 + 1.
A function of numbers is λ-definable if there is a λ-term which, applied to the numerals of its arguments, can be converted into the numeral of its value; in other words, if its values can be obtained by repeated substitution.[32]
The idea of a λ-definable function was due to Church and Kleene, with contributions from Rosser.[33] Some simple functions were hard: Kleene later described how difficult it was to define the predecessor function, which subtracts 1, with Church’s numerals.[34] As more and more functions were found to be λ-definable, it only gradually dawned on Church, Kleene and Rosser that λ-definability might be an exact counterpart of what can be computed.[35]
Church’s thesis and the first unsolvable problems
Church made the proposal in a paper, “An unsolvable problem of elementary number theory”, in the American Journal of Mathematics 58 (1936), pages 345–363,[36] after a preliminary report in 1935.[37] In its seventh section he wrote: “We now define the notion, already discussed, of an effectively calculable function of positive integers by identifying it with the notion of a recursive function of positive integers (or of a lambda-definable function of positive integers).”[38]
The claim that every effectively calculable function of positive integers, every function whose values can be found by an effective method, is λ-definable, or equivalently recursive.[41] The name was introduced by Kleene in 1952.[42]
With this definition Church could prove that some problems have no effective solution. A λ-term is in normal form if no λ-conversion step can be applied to it or to any part of it.[43] Church proved that there is no recursive function that decides whether a given formula has a normal form;[44] by his thesis, no effective method decides it. The Stanford Encyclopedia’s entry on the λ-calculus counts the calculus as the source of the first undecidable problem, which it gives as the question whether two given λ-terms are equal in the calculus.[45]
Reduce (λy. y y) (λy. y y).
- The function λy. y y applies its input to itself; here the input is a copy of the function.
- Replace both y’s of the body by the argument: (λy. y y) (λy. y y).
- The result is the term we started with. The next step gives it again, and so on forever.
Answer: the only possible step gives the same term again, so no sequence of steps ever ends and the term has no normal form. Here this is easy to see, but Church’s Theorem XVIII, with his thesis, says that no single method can tell, for every term, whether it has a normal form.[44]
In a two-page note in the first issue of the Journal of Symbolic Logic, “A note on the Entscheidungsproblem”, Church drew the consequence for Hilbert’s problem: first-order logic is undecidable.[46] He published it a few months before Turing’s paper.[47]
Not everyone was convinced at once. Kleene later reported that, according to a letter Church wrote to him on 29 November 1935, Gödel “regarded as thoroughly unsatisfactory” the proposal to define effective calculability as λ-definability; Gödel accepted Church’s thesis only after Turing’s analysis appeared.[48]
Recursive functions and the Church–Turing thesis are taught in the Mathematics unit Computability & Incompleteness, in “Recursive functions” and “The Church–Turing thesis”.
From logic to programming
In 1941 Church published The Calculi of Lambda-Conversion, a book of 77 pages in the Annals of Mathematics Studies, based on the lectures he had given at Princeton in 1936.[53] For a long time the calculus remained a somewhat obscure formalism; in the 1960s its relation to programming languages was clarified.[54]
In 1960 John McCarthy, describing LISP, a programming system developed by the Artificial Intelligence group at M.I.T., wrote that turning an expression into a function “is accomplished by Church’s λ-notation”.[55]
LISP is the subject of the lesson “McCarthy’s LISP” in the unit The Founding of AI. Functions as values, the functional style of programming, are taught in the unit Programming Paradigms & Software Design, in its part “Functional Style”.
Church taught at Princeton until 1967 and then at the University of California, Los Angeles, until 1990.[58] He had 31 doctoral students, among them Turing and Kleene,[59] and he died in Hudson, Ohio, on 11 August 1995.[2]
Exercises
Carry out one step on (λy. y y y) c. Is another step possible?
▸ Show solution
The λy binds all three y’s of the body y y y. Replacing them by c gives c c c, which by the convention means (c c) c. No λ is left, so no further step is possible.
Reduce (λx. λy. x) a b and (λx. λy. y) a b. What does each function do with its two arguments?
▸ Show solution
(λx. λy. x) a b: step 1 replaces x by a, giving (λy. a) b; step 2 replaces the y’s of the body a, of which there are none, giving a.
(λx. λy. y) a b: step 1 replaces the x’s of λy. y, of which there are none, giving (λy. y) b; step 2 gives b.
The first function keeps its first argument, the second keeps its second.
In (λx. x (λy. x) (λx. x)) a, which x’s does one step replace? Give the result.
▸ Show solution
The body is x (λy. x) (λx. x). The first x is free in the body. The second, inside λy. x, is also free in the body, because the inner λ binds y, not x. The third, inside λx. x, is bound by that inner λx. So two x’s are replaced: a (λy. a) (λx. x).
Reduce the numeral 3 applied to g and a. Then apply the successor λn. λf. λx. f (n f x) to the numeral 1, step by step.
▸ Show solution
(λf. λx. f (f (f x))) g a: step 1 gives (λx. g (g (g x))) a; step 2 gives g (g (g a)), with three g’s.
Successor of 1: (λn. λf. λx. f (n f x)) (λf. λx. f x). Step 1: λf. λx. f ((λf. λx. f x) f x). Step 2: (λf. λx. f x) f gives λx. f x, so the term is λf. λx. f ((λx. f x) x). Step 3: (λx. f x) x gives f x, so the term is λf. λx. f (f x), the numeral 2.
Carry out one step on (λx. λz. x) z correctly, and explain what goes wrong if it is done carelessly.
▸ Show solution
Replacing x by z directly in λz. x would give λz. z: the free z of the argument would be captured by the inner λz. Rename the inner bound variable first, say λz. x to λw. x, and then replace: λw. z, a function that always gives z.
Church was born on 14 June 1903 and Turing on 23 June 1912.[2]
▸ Show solution
From 14 June 1903 to 14 June 1912 is 9 years; Turing was born on 23 June 1912, nine days later. So Church was 9 years and 9 days older. In 1936, when both published their answers to the decision problem, Church turned 33 (1903 + 33 = 1936) and Turing 24 (1912 + 24 = 1936).
Summary
- Alonzo Church (1903–1995) of Princeton created the lambda calculus in the early 1930s, first as one part of a system of logic published in 1932.
- In the calculus a function is a rule: λx. M takes x to M, and one step of λ-conversion replaces the free occurrences of x in M by the argument. Care is needed with variables bound by an inner λ and with capture.
- Kleene and Rosser showed in 1935 that Church’s logical systems were inconsistent; the pure λ-calculus survived, and the Church–Rosser theorem of 1936 shows it consistent.
- Numbers can be written as λ-terms (the numeral n applies a function n times) and arithmetic done by substitution alone; such functions are called λ-definable.
- In 1936 Church identified the effectively calculable functions with the λ-definable (or recursive) ones, proved that no method decides whether a term has a normal form, and proved first-order logic undecidable. Turing showed his own definition equivalent.
Sources
- 1.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “1.1 Church’s Seminal Paper”. plato.stanford.edu/entries/church · open at the quoted passage.
“Church was the first to devise a formalism—the λ-calculus—within which it was possible to define a class of functions that coincide, arguably, with the intuitively computable functions”
Used for: Church inventing the lambda calculus, the formalism behind his definition of computable functions. - 2.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Quick Info”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“14 June 1903 Washington, D.C., USA Died 11 August 1995 Hudson, Ohio, USA”
Used for: born in Washington, D.C., on 14 June 1903; died in Hudson, Ohio, on 11 August 1995 (also Exercise 6). - 3.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“He was a student at Princeton receiving his first degree, an A.B., in 1924, then his doctorate three years later. His doctoral work was supervised by Veblen, and he was awarded his doctorate in 1927”
Used for: his first degree in 1924 and doctorate in 1927 at Princeton, under Veblen. - 4.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“Church spent two years as a National Research Fellow, one year at Harvard University then a year at Göttingen and Amsterdam. He returned to the United States becoming Assistant Professor of Mathematics at Princeton in 1929.”
Used for: the two years as a National Research Fellow and the return to Princeton as assistant professor in 1929. - 5.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“Princeton in the 1930's was an exciting place for logic. There was Church together with his students Rosser and Kleene. There was John von Neumann.”
Used for: Princeton in the 1930s, with Church’s students Rosser and Kleene and with von Neumann; Gödel’s visits to the Institute for Advanced Study in 1933 and 1935 and Turing’s arrival in 1936 (the same quotation from Enderton goes on). - 6.J. J. O’Connor and E. F. Robertson, “Stephen Cole Kleene”, MacTutor History of Mathematics Archive, University of St Andrews (December 2008).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Kleene · open at the quoted passage.
“Kleene received a doctorate from Princeton for his thesis entitled A Theory of Positive Integers in Formal Logic in 1934.”
Used for: Kleene’s doctorate of 1934 under Church (“his doctoral studies were supervised by Alonso Church”, the paragraph before), on positive integers in Church’s system of logic (his introduction, quoted on the page). - 7.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“Church was a founder of the Journal of Symbolic Logic in 1936”
Used for: Church as a founder of the Journal of Symbolic Logic in 1936. - 8.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“function is a rule of correspondence by which when anything is given (as argument) another thing (the value of the function for that argument) may be obtained.”
Used for: Church’s description of a function (Church 1941), quoted in the lesson. - 9.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).
“The main ideas are applying a function to an argument and forming functions by abstraction.”
Used for: the two operations of the notation: forming a function λx. M and applying it to an argument. - 10.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “2. Syntax”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“Terms formed according to rule (2) are called application terms. Terms formed according to rule (3) are called abstraction terms.”
Used for: the definition of λ-terms (the three rules just before: every variable; the application of two terms; λx[M] for a term M and a variable x), the words application and abstraction, and the bracket notation λx[M] used by the encyclopedia. - 11.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “2. Syntax”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“we can recover the missing parentheses by associating to the left”
Used for: the convention that application groups to the left (“Convention (association to the left)”, the words before). - 12.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“Church sometimes adopts Russell’s notational convention (PM) that a dot placed before an expression brackets the expression.”
Used for: Church writing the body in brackets or after a dot, after the convention of Principia Mathematica (PM). - 13.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “2.1 Variables, bound and free”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“is that it binds the variable appearing immediately after it in the term”
Used for: the λ binding its variable in the body; bound and free occurrences (defined formally in the same section); an x inside an inner λx bound by the inner λ. - 14.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “2.1 Variables, bound and free”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“We write ‘M[x := N]’ to denote the substitution of N for the free occurrences of x in M.”
Used for: putting N in place of the free occurrences of x in M, the substitution used by the λ-conversion step (the β-conversion axiom stated later in the section); the figure. - 15.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“Regarding the last two rules, it is required that Ψβ be the result of uniformly substituting free occurrences of β for free occurrences of α throughout Ψα.”
Used for: the λ-contraction rule (an occurrence of “λα·Ψα β” replaced by Ψβ, the rule just before) with substitution for the free occurrences only (second source). - 16.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“These two rules are together known as “λ-conversion” (although “λ-contraction” is sometimes known as “β-reduction” or “λ-concretion””
Used for: the names λ-contraction (for the step, one of Church’s rules listed just before) and β-reduction; λ-conversion as the name of the rules of contraction and expansion together. - 17.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “1.1 Multi-argument operations”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“by viewing the operation as taking one input at a time”
Used for: a function of two inputs written as a function of the first whose value is a function of the second. - 18.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“(This is the method known today as “Currying”, for Haskell Curry, although the method is due to Moses Schönfinkel; see Church 1941 [BE: 202–3].)”
Used for: the name currying, after Haskell Curry, and the method credited to Schönfinkel by this entry. - 19.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “3. Brief history of λ-calculus”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“Perhaps it would be more historically accurate to call the operation fregeing”
Used for: the method found already in Frege’s work of 1893 (“Already the essential ingredients of the subject can be found in Frege’s pioneering work (Frege, 1893)”, the paragraph’s first sentence) and the name “fregeing”. - 20.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “2.1 Variables, bound and free”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“provided no variable that occurrs free in N becomes bound after its substitution into M.”
Used for: the rule forbidding a free variable of the argument to become bound (the “no-capture proviso” of β-conversion), with the encyclopedia’s spelling. - 21.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“alphabetic changes of bound variables”
Used for: renaming a bound variable as an allowed change (α-conversion, the first of Church’s three rules). - 22.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “2.1 Variables, bound and free”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“a casual attitude about substitution can lead to syntactic difficulties”
Used for: careless substitution leading to errors. - 23.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “Bibliography”. plato.stanford.edu/entries/church · open at the quoted passage.
“1932, “A Set of Postulates for the Foundation of Logic”, The Annals of Mathematics, 33(2): 346–366.”
Used for: the paper of 1932 in the Annals of Mathematics. - 24.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “5.1 Attempts at Type-Free Foundations”. plato.stanford.edu/entries/church · open at the quoted passage.
“Rather than adopt the method of Russell for avoiding the paradoxes of mathematical logic, or that of Zermelo, both of which appear somewhat artificial, we introduce for this purpose, as we have said, a certain restriction on the law of excluded middle.”
Used for: Church’s words of 1932 on avoiding the paradoxes, quoted in part in the lesson. - 25.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “5.1 Attempts at Type-Free Foundations”. plato.stanford.edu/entries/church · open at the quoted passage.
“It turned out that despite this restriction a form of Russell’s paradox is derivable in the system of 1932. Nevertheless, it was here that Church first formulated the (untyped) λ-calculus as a mere part of the whole system.”
Used for: Russell’s paradox derivable in the system of 1932, and the λ-calculus first formulated there as one part of it. - 26.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “5.1 Attempts at Type-Free Foundations”. plato.stanford.edu/entries/church · open at the quoted passage.
“But Kleene and Rosser (1935) established that both systems—those of Church 1932 and 1933—as well as related early systems of combinatory logic fell prey to Richard’s paradox.”
Used for: the second paper of 1933 correcting the problem with Russell’s paradox (the sentence before), and Kleene and Rosser showing in 1935 that a paradox could be derived in both systems, which were therefore inconsistent (“So much for inconsistency!”, a few sentences before, on the system of 1932). - 27.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “5.1 Attempts at Type-Free Foundations”. plato.stanford.edu/entries/church · open at the quoted passage.
“The mere part—the pure untyped λ-calculus—is, however, consistent in the sense that not all equations between λ terms are derivable. This follows from an early result due to Church himself and Rosser (1936)—the Church-Rosser theorem”
Used for: the pure λ-calculus consistent, by the Church–Rosser theorem of 1936. - 28.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “3. Brief history of λ-calculus”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“In this context, inconsistency means that all terms are equal”
Used for: what inconsistency means for the λ-calculus, and its consistency as an early question and result (“That this is not the case is an early result”, the next sentences). - 29.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“Church begins with the numeral “1” (1941 [BE: 219]); but it is now common to begin with “0” and we do so here.”
Used for: Church beginning his numerals with 1, and the present custom of beginning with 0 (text and table). - 30.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“We iterate this method to represent the rest of the natural numbers:”
Used for: the numerals 0 = λf·λx·x, 1 = λf·λx·fx, 2 = λf·λx·f(fx) and 3 = λf·λx·f(f(fx)), displayed on the page around this sentence, and so on for the rest. - 31.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“This too can be represented in in the λ-calculus:”
Used for: the successor written as a λ-term (“S(m) = λy·λf·λx·f(yfx) m”, displayed next; the lesson calls the variable n instead of y). - 32.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“A function is said to be λ-definable if the values of the function can be obtained by a certain process of repeated substitution.”
Used for: the definition of a λ-definable function. - 33.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“The concept of a λ-definable function was due to Church and Kleene, with contributions also by Rosser”
Used for: the idea due to Church and Kleene, with contributions from Rosser. - 34.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “1.2 What is Church’s Thesis?”. plato.stanford.edu/entries/church · open at the quoted passage.
“Kleene also describes the difficulty of giving λ-definitions of certain basic number theoretic functions—particularly the predecessor function—given the particular way Church gives λ-expressions standing for integers”
Used for: the difficulty of defining the predecessor with Church’s numerals, as Kleene described it (Kleene 1981). - 35.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “1.2 What is Church’s Thesis?”. plato.stanford.edu/entries/church · open at the quoted passage.
“it only gradually dawned on Church, Rosser (J. Barkley Rosser, also Church’s student), and himself that λ-definability may serve as a precise counterpart of intuitive computability (Kleene 1981).”
Used for: the gradual realization by Church, Kleene and Rosser; Rosser’s full name. - 36.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“Church's Thesis appears in An unsolvable problem in elementary number theory published in the American Journal of Mathematics 58 (1936), 345-363.”
Used for: the paper in the American Journal of Mathematics 58 (1936), pages 345–363. - 37.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “Bibliography”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
““An Unsolvable Problem of Elementary Number Theory, Preliminary Report” (abstract), Bulletin of the American Mathematical Society”
Used for: the preliminary report of 1935 (the entry is dated 1935). - 38.Harry Deutsch and Oliver Marshall, “Alonzo Church”, Stanford Encyclopedia of Philosophy (first published 21 October 2021, substantive revision 24 February 2022).Section “1.1 Church’s Seminal Paper”. plato.stanford.edu/entries/church · open at the quoted passage.
“We now define the notion, already discussed, of an effectively calculable function of positive integers by identifying it with the notion of a recursive function of positive integers (or of a lambda-definable function of positive integers).”
Used for: Church’s words, quoted in the lesson, from section 7 of his paper (“Section 7 of Church’s paper contains the first explicit formulation of Church’s thesis”, the sentence before). - 39.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“of an effectively calculable function of positive integers by identifying it with the notion of a recursive function of positive integers (or of a λ-definable function of positive integers). (Church 1936a: 356)”
Used for: the same words of Church’s paper of 1936, page 356 (second source; Copeland’s quotation prints “λ-definable” where the Alonzo Church entry prints “lambda-definable”). - 40.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“The class of λ-definable functions (of positive integers) and the class of recursive functions (of positive integers) are identical; this was proved by Church and Kleene (Church 1936a; Kleene 1936a,b).”
Used for: Church and Kleene proving that the λ-definable and the recursive functions are the same. - 41.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“A function of positive integers is effectively calculable only if λ-definable (or, equivalently, recursive).”
Used for: the statement of Church’s thesis. - 42.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“In 1952, he introduced the name “Church’s thesis” for the proposition that every effectively calculable function (on the natural numbers) is recursive”
Used for: the name Church’s thesis, introduced by Kleene in 1952. - 43.Harry Deutsch and Oliver Marshall, “The λ-Calculus and Type Theory (supplement D to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “D.1 Church’s Lambda Calculus”. plato.stanford.edu/entries/church/supplementD.html · open at the quoted passage.
“where an expression is in normal form iff neither it nor any part of it is of the form”
Used for: the definition of normal form: no part of the term of the form (λx. M) N, so no λ-conversion step can be applied. - 44.Harry Deutsch and Oliver Marshall, “Computability and the Church-Turing Thesis (supplement A to “Alonzo Church”)”, Stanford Encyclopedia of Philosophy (2022).Section “A.1 Church’s Unsolvable Problem”. plato.stanford.edu/entries/church/supplementA.html · open at the quoted passage.
“Church remarks that the content of Theorem XVIII is that “the property of a well-formed formula that it has a normal form is not recursive” (1936a [BE: 123]).”
Used for: Church’s theorem that no recursive function decides whether a formula has a normal form (Theorem XVIII, quoted just before on the page). - 45.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “3. Brief history of λ-calculus”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“earns a special place in the history of logic because it was the source of the first undecidable problem.”
Used for: the λ-calculus as the source of the first undecidable problem, given in the next sentence as the problem of deciding, for λ-terms M and N, whether M = N. - 46.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“Church's Theorem, showing the undecidability of first order logic, appeared in A note on the Entscheidungsproblem published in the first issue of the Journal of Symbolic Logic.”
Used for: the note in the first issue of the Journal of Symbolic Logic and its result. - 47.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.7 The Entscheidungsproblem”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“The two discovered this result independently of one another, both publishing it in 1936 (Church a few months earlier than Turing).”
Used for: Church publishing a few months before Turing. - 48.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.6 Comparing the Turing and Church approaches”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“According to a November 29, 1935, letter from Church to me, Gödel “regarded as thoroughly unsatisfactory” Church’s proposal to use λ-definability as a definition of effective calculability.”
Used for: Church’s letter of 29 November 1935 to Kleene (Kleene is quoted) and Gödel’s words, quoted in the lesson. - 49.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.6 Comparing the Turing and Church approaches”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“It seems that only after Turing’s formulation appeared did Gödel accept Church’s thesis.”
Used for: Gödel accepting the thesis only after Turing’s analysis. - 50.B. Jack Copeland, “The Church-Turing Thesis”, Stanford Encyclopedia of Philosophy (first published 8 January 1997, substantive revision 18 December 2023).Section “1.5 Church’s thesis”. plato.stanford.edu/entries/church-turing · open at the quoted passage.
“he quickly established that the concept of λ-definability and his concept of computability are equivalent (by proving the “theorem that all … λ-definable sequences … are computable” and its converse”
Used for: Turing showing that the λ-definable sequences are computable and the converse, in his paper of 1936 (“Turing 1936 [2004: 88ff]”, the citation that follows; the proof is outlined in the paper’s appendix). - 51.“AMT/B/11: Off-print, “Computability and λ-Definability””, The Turing Digital Archive, King’s College, Cambridge.turingarchive.kings.cam.ac.uk/publications-lectures-and-talks-amtb/amt-b-11 · open at the quoted passage.
“Off-print, 'Computability and λ-Definability' from The Journal of Symbolic Logic, (Vol. 2, Dec. 1937).”
Used for: Turing’s paper “Computability and λ-definability”, Journal of Symbolic Logic, volume 2, December 1937. - 52.Michael Sipser, Introduction to the Theory of Computation (3rd ed., Cengage Learning, 2013).Chapter 3, “The Church–Turing Thesis”, section 3.3, “The Definition of Algorithm”, “Hilbert’s Problems”, p. 183 (the whole topic: pp. 182–184).
“Church used a notational system called the λ-calculus to define algorithms. Turing did it with his “machines.” These two definitions were shown to be equivalent.”
Used for: the two definitions of 1936 and their equivalence, in a modern textbook. - 53.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“In 1941 he published the 77 page book The Calculi of Lambda-Conversion as a volume of the Princeton University Press Annals of Mathematics Studies. It is effectively a rewritten and polished version of lectures Church gave in Princeton in 1936 on the λ-calculus.”
Used for: the book of 1941, its length and series, and the lectures of 1936 behind it. - 54.Jesse Alama and Johannes Korbmacher, “The Lambda Calculus”, Stanford Encyclopedia of Philosophy (first published 12 December 2012, substantive revision 25 July 2023).Section “3. Brief history of λ-calculus”. plato.stanford.edu/entries/lambda-calculus · open at the quoted passage.
“was a somewhat obscure formalism until the 1960s, when, at last, a ‘mathematical’ semantics was found. Its relation to programming languages was also clarified.”
Used for: the calculus long a somewhat obscure formalism, and its relation to programming languages clarified in the 1960s. - 55.John McCarthy, “Recursive functions of symbolic expressions and their computation by machine, Part I”, Communications of the ACM 3(4) (1960), 184–195.Section 1, Introduction. doi.org/10.1145/367177.367199 · open at the quoted passage.
“A programming system called LISP (for LISt Processor) has been developed for the IBM 704 computer by the Artificial Intelligence group at M.I.T.”
Used for: LISP, developed by the Artificial Intelligence group at M.I.T., described in McCarthy’s paper of 1960 (dated April 1960 in the author’s copy). - 56.John McCarthy, “Recursive functions of symbolic expressions and their computation by machine, Part I”, Communications of the ACM 3(4) (1960), 184–195.Section 2e, “Functions and Forms”. doi.org/10.1145/367177.367199 · open at the quoted passage.
“A form can be converted into a function if we can determine the correspondence between the variables occurring in the form and the ordered list of arguments of the desired function. This is accomplished by Church’s λ-notation.”
Used for: McCarthy’s words, quoted in part in the lesson; his reference is Church’s book of 1941. - 57.“6. Expressions”, The Python Language Reference, docs.python.org.Section “6.14. Lambdas”. docs.python.org/3/reference/expressions.html · open at the quoted passage.
“Lambda expressions (sometimes called lambda forms) are used to create anonymous functions.”
Used for: lambda expressions in Python creating functions without names. - 58.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“In 1967 he retired from Princeton and went to the University of California at Los Angeles as Kent Professor of Philosophy and Professor of Mathematics. He continued teaching and undertaking research at Los Angeles until 1990”
Used for: Princeton until 1967, then Los Angeles until 1990. - 59.J. J. O’Connor and E. F. Robertson, “Alonzo Church”, MacTutor History of Mathematics Archive, University of St Andrews (November 2004).Section “Biography”. mathshistory.st-andrews.ac.uk/Biographies/Church · open at the quoted passage.
“Church had 31 doctoral students including Foster, Turing, Kleene, Kemeny, Boone, and Smullyan.”
Used for: 31 doctoral students, among them Turing and Kleene. - 60.Andrew Hodges, “Alan Turing”, Stanford Encyclopedia of Philosophy (first published 3 June 2002, substantive revision 30 September 2013).Section “1. Outline of Life”. plato.stanford.edu/entries/turing · open at the quoted passage.
“Alan Mathison Turing was born in London, 23 June 1912”
Used for: Turing’s date of birth (Exercise 6).