Variables

A variable is a free term in a $\lambda$-term if it is not bound by a $\lambda$.

More precisely, the set of free variables of a term is defined as:

$\displaystyle FV(x)$ $\displaystyle = {x}$ (10)
$\displaystyle FV(\lambda x.M)$ $\displaystyle = FV(M)-{x}$ (11)
$\displaystyle FV(MN)$ $\displaystyle = FV(M) \cup FV(N)$ (12)

Terms without free variables are called closed terms.

We may also define the set of bound variables as:

$\displaystyle BV(x)$ $\displaystyle =\emptyset
BV(\lambda x.M)$ $\displaystyle =\{x\}\cup BV(M)
BV(MN)$ $\displaystyle = BV(M)\cup BV(N)$ (13)

A variable is bound by a lambda term, if it is not linked to a lambda term then it is a free variable.