Definition
Beta Reduction
The beta reduction relation is defined as the least congruence relation on expressions such that:
where means substituting the term for each free occurrence of in . If there are free variables in then bound variables in must be renamed so that substitution does not result in the free variables in becoming bound. This process of renaming bound variables is called alpha reduction.
Examples
Example: Identity
Example: Constant
Example: Avoiding Variable Capture
Naively, one would substitute with , however, there’s already a bound variable . Thus, an alpha reduction must be performed: