Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws

The Lambda Calculus

also known as — λ-calculus, Church's calculus
"Build all of computation out of nothing but functions that take arguments and are applied to them."
In plain English

What does The Lambda Calculus mean?

The lambda calculus is a formal system for expressing computation based entirely on function abstraction and application, using variable binding and substitution. In it, everything is a function. Terms are built from just three ingredients: variables; abstraction, written lambda x dot M, denoting a function of x with body M; and application, writing one term next to another to apply a function to an argument. Introduced by Alonzo Church in the 1930s, it is one of the two classical foundations of computability, equal in power to the Turing machine, and it is the theoretical basis of functional programming, type theory, and proof assistants.

Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

Lineage
1936COINED
How it works

How does The Lambda Calculus work?

Computation proceeds by beta-reduction, the heart of the calculus: applying a function to an argument substitutes the argument for the function's bound variable in its body. Alpha-conversion allows renaming bound variables, and care is taken so substitution does not accidentally capture free variables. Data can be encoded purely as functions, such as Church numerals, which represent a number by how many times they apply a function, and recursion is achieved with fixed-point combinators like the Y combinator. The untyped calculus is Turing-complete, equivalent to Turing machines and the recursive functions, while the simply typed version trades that universal power for guaranteed termination.

Figure illustrating The Lambda Calculus
The Lambda Calculus — Epachamo · CC BY-SA 4.0 · source
Where you'll see it

What are examples of The Lambda Calculus?

Beta-reduction Applying the identity function lambda x dot x to an argument reduces to that argument, the basic step by which lambda terms compute.
Church numerals Numbers are encoded as higher-order functions, with the number n represented by a function that applies its argument n times, so arithmetic becomes function manipulation.
The Y combinator A fixed-point combinator that lets an anonymous function refer to itself, giving the untyped calculus the power of recursion and, with it, Turing-completeness.
Types & variants

What are the types of The Lambda Calculus?

Typed versus untyped§

The untyped lambda calculus is Turing-complete, while the simply typed version is strongly normalising, so every well-typed term terminates and it is deliberately not Turing-complete.

The Curry-Howard correspondence§

The deep parallel in which propositions correspond to types and proofs to programs, linking logic and computation and underpinning proof assistants.

Why it matters

Why does The Lambda Calculus matter?

The lambda calculus is one of the two founding models of computation, and through the Church-Turing thesis it helped define what is computable. It is the theoretical bedrock of functional programming languages such as Lisp, ML, and Haskell, and of denotational semantics, type theory, and the proof assistants used to verify mathematics and software. The Curry-Howard correspondence it supports, identifying proofs with programs, is one of the deepest bridges between logic and computer science. Few formal systems so small have proved so fertile.

Working with it

How do you apply The Lambda Calculus?

  • Reduce everything to functions — express computation using only variables, abstraction, and application, treating data and control alike as functions.
  • Compute by substitution — drive computation with beta-reduction, substituting arguments for bound variables, with alpha-conversion to avoid variable capture.
  • Recover recursion — use a fixed-point combinator to give anonymous functions self-reference, the ingredient that makes the untyped calculus Turing-complete.
Where it breaks down

What are the limits of The Lambda Calculus?

Beta-reduction is confluent, so a normal form is unique when it exists, but not every term has one: some terms reduce forever, so evaluation may not terminate. Naive substitution can accidentally capture free variables, which is why capture-avoiding substitution and alpha-conversion are needed. Turing-completeness belongs to the untyped calculus; adding simple types buys guaranteed termination at the cost of that universal power, an inherent trade-off, and richer type systems are needed to regain it. And the Church-Turing thesis, that the calculus captures the informal notion of effective computability, is a thesis, not a formally provable theorem.

What it doesn't say

What are common misconceptions about The Lambda Calculus?

The lambda calculus is not merely a programming language; it is a minimal formal system and model of computation that programming languages draw on but greatly extend. The simply typed lambda calculus is not Turing-complete, being deliberately strongly normalising; only the untyped version, or richer typed ones with recursion, has universal power. Church's lambda-calculus work of the 1930s predates and parallels Turing's machines rather than following them, and the two were proved equivalent. And Church numerals are functions that encode numbers by iteration, not numbers themselves.

Is it real?

Is The Lambda Calculus real?

Yes, as far as the evidence goes. The Lambda Calculus is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.

Regularly printedin printed books: one of 144 names in its band, of 903 measured
36 of 69entries in software & systems carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did The Lambda Calculus come from?

Introduced by Alonzo Church in the early 1930s and used in his 1936 proof that the Entscheidungsproblem is undecidable; shown by Church, Turing, and Kleene to be equivalent in power to Turing machines and the recursive functions.

How the name spread

When did people start saying “The Lambda Calculus”?

1800coined 19362019
How often “Lambda Calculus” appears in printed English, which takes hold around 1979 and peaks around 1993. The idea dates to 1936: the phrase took about 43 years to reach print in any quantity, which is the gap this chart measures. Source: Google Books Ngrams.
Known elsewhere as

What is The Lambda Calculus called in other languages?

  • Arabicحسابات اللامدا
  • GermanLambda-Kalkül
  • Spanishcálculo lambda
  • Frenchlambda-calcul
  • Italianlambda calcolo
  • Japaneseラムダ計算
  • Portuguesecálculo lambda
  • Russianлямбда-исчисление
  • Chineseλ演算

9 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.

Sources

Sources & further reading

  1. 1The Lambda Calculus, Stanford Encyclopedia of Philosophy. — the term-forming rules, beta-reduction, Turing-completeness, and Curry-Howard.secondary
  2. 2Lambda calculus, Wikipedia. — the syntax, reduction rules, Church encodings, and typed-versus-untyped distinction.secondary

Everything above traces to plato.stanford.edu and en.wikipedia.org: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.