In lambda calculus, a term is in beta normal form if no beta reduction is possible. A term is in beta-eta normal form if neither a beta reduction nor an eta reduction is possible. A term is in head normal form if there is no beta-redex in the head position. The normal form of a term, if one exists, is unique (as a corollary of the Church–Rosser theorem). However, a term may have more than one head normal form.
Beta reduction In the lambda calculus, a beta redex is a term of the form:
( λ x . A ) M . {\displaystyle (\mathbf {\lambda } x.A)M.}
A redex r {\displaystyle r} is in head position in a term t {\displaystyle t} , if t {\displaystyle t} has the following shape (note that application has higher priority than abstraction, and that the formula below is meant to be a lambda-abstraction, not an application):
λ x 1 … λ x n . ( λ x . A ) M 1 ⏟ the redex r M 2 … M m , {\displaystyle \lambda x_{1}\ldots \lambda x_{n}.\underbrace {(\lambda x.A)M_{1}} _{{\text{the redex }}r}M_{2}\ldots M_{m},}
where n ≥ 0 {\displaystyle n\geq 0} and m ≥ 1. {\displaystyle m\geq 1.}
A beta reduction is an application of the following rewrite rule to a beta redex contained in a term:
( λ x . A ) M ⟶ A [ x := M ] {\displaystyle (\mathbf {\lambda } x.A)M\longrightarrow A[x:=M]}
where A [ x := M ] {\displaystyle A[x:=M]} is the result of substituting the term M {\displaystyle M} for the variable x {\displaystyle x} in the term A {\displaystyle A} . A head beta reduction is a beta reduction applied in head position, that is, of the following form:
λ x 1 … λ x n . ( λ x . A ) M 1 M 2 … M m ⟶ λ x 1 … λ x n . A [ x := M 1 ] M 2 … M m , {\displaystyle \lambda x_{1}\ldots \lambda x_{n}.(\lambda x.A)M_{1}M_{2}\ldots M_{m}\longrightarrow \lambda x_{1}\ldots \lambda x_{n}.A[x:=M_{1}]M_{2}\ldots M_{m},}
where n ≥ 0 {\displaystyle n\geq 0} and m ≥ 1. {\displaystyle m\geq 1.}
Any other reduction is an internal beta reduction.
Normal forms A normal form is a term that does not contain any beta redex, i.e. that cannot be further reduced. Some authors may also include η reductions, hence the distinguishing terms beta normal form and beta-eta normal form. A head normal form is a term that does not contain a beta redex in head position, i.e. that cannot be further reduced by a head reduction. When considering the simple lambda calculus (viz. without the addition of constant or function symbols, meant to be reduced by additional delta rule head normal forms are the terms of the following shape:
λ x 1 … λ x n . x M 1 M 2 … M m , {\displaystyle \lambda x_{1}\ldots \lambda x_{n}.xM_{1}M_{2}\ldots M_{m},}
… excerpt ends here. Continue reading the full article.
