λ-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
- all variables and atomic constants are
-terms (called atoms); - if
and are -terms, then is a -term (called application); - if
is a -term and is a variable, then is a -term (called abstraction).
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
for all atoms ; ; .
Occurrence
For
occurs in ; - if
occurs in or in , then occurs in ; - if
occurs in or is , then occurs in .
For a particular occurrence of
Free and Bound Variables
An occurrence of a variable
- bound if it is in the scope of a
in ; - bound and binding iff it is the
in ; - free otherwise.
Substitution
For any
For all