Math 2.0

Mathematical logic and foundations Definition

Lambda calculus

Definition

Fix a countably infinite set VV of variables. The lambda terms are the strings defined by these rules:

  1. every variable x∈Vx \in V is a term;
  2. if MM is a term and x∈Vx \in V, then (λx. M)(\lambda x.\, M) is a term, called an abstraction;
  3. if MM and NN are terms, then (M N)(M\, N) is a term, called an application.

In λx. M\lambda x.\, M the variable xx is bound in MM. Terms that differ only in the names of bound variables are identified (α\alpha-equivalence). Let M[x:=N]M[x := N] be the term obtained from MM by replacing the free occurrences of xx by NN. Before the replacement, bound variables of MM are renamed so that no free variable of NN gets bound. The untyped lambda calculus is the set of terms together with β\beta-reduction. This is the relation generated by the rule (λx. M) N→βM[x:=N],(\lambda x.\, M)\, N \to_\beta M[x := N], applied to any subterm of a term.

Remarks

Example: (λx. x x)(λy. y)(\lambda x.\, x\, x)(\lambda y.\, y) is a term by rules 1 to 3, and (λx. x x)(λy. y)→β(λy. y)(λy. y)→βλy. y.(\lambda x.\, x\, x)(\lambda y.\, y) \to_\beta (\lambda y.\, y)(\lambda y.\, y) \to_\beta \lambda y.\, y. The last term has no further reduction, so it is a normal form.

Non-example: the string λx\lambda x alone is not a term, since rule 2 requires a body MM after the dot.

The term Ω=(λx. x x)(λx. x x)\Omega = (\lambda x.\, x\, x)(\lambda x.\, x\, x) reduces only to itself, so it has no normal form. By the Church–Rosser theorem, a term has at most one normal form up to α\alpha-equivalence.

Further reading

  1. Web https://en.wikipedia.org/wiki/Lambda_calculus
About this page
TagHD5KCKVPS8
URIm2://HD5KCKVPS8
Kinddefinition
WritingW0 stub
MSC03B40, 68N18
DefinesLambda calculus
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.