λ-Calculus

Overview

Assume that there is given an infinite sequence of expressions called variables and a finite or infinite sequence of expressions called atomic constants, different from the variables. The set of expressions called λ-terms is defined inductively as follows:

If the sequence of atomic constants is empty, the system is called pure. Otherwise it is called applied.

Syntactic Identity

Syntactic identity of terms is denoted by "".

Length

The length of a λ-term (denoted lgh) is equal to the number of atoms in the term:

Occurrence

For λ-terms P and Q, the relation P occurs in Q is defined by induction on Q as:

For a particular occurrence of λx.M in a term P, the occurrence of M is called the scope of the occurrence of λx.

Free and Bound Variables

An occurrence of a variable x in a term P is called

FV(P) denotes the set of all free variables of P. A closed term is a term without any free variables.

Substitution

For any M, N, and x, define [N/x]M to be the result of substituting N for every free occurrence of x in M, and changing bound variables to avoid clashes.

For all λ-terms M, N, and variables x:

Powered by Forestry.md