The basic rule for computing with the lambda calculus is called
and is given by:
where
represents the effect of substituting all
free occurrences of
in
uniformly by
. (We shall
formally define what we mean by a free occurrence of
shortly.)
The
rule is one that we use unconciously all the time: If
, then
which is just
.
From the rule it is clear that an application
is
meaningful only if
is of the form
. Thus,
though we can write terms like
, we cannot do much with them.
Effectively, the rule is the only rule we need to set
up the lambda calculus. For the moment, think of it as a rewriting
rule for expressions that can be applied to any subterm in a lambda
expression. We will formalize this later.