β-reduction

Overview

Any term of form (λx.M)N is called a β-redex. The corresponding term [N/x]M is its contractum. If and only if a term P contains an occurrence of (λx.M)N and we replace that occurrence by [N/x]M, and the result is P, we say we have contracted the redex-occurrence in P, and P β-contracts to P or P1βP.

If and only if P can be changed to a term Q by a finite series of β-contractions and changes of bound variables, we say P β-reduces to Q, or PβQ.

Substitution is well-defined with respect to β-reduction. That is, if MβM and NβN, then

[N/x]Mβ[N/x]M.

Normal Form

A term Q which contains no β-redexes is called a β-normal form (or a term in β-normal form or just a β-nf). The class of all β-normal forms is called β-nf or λβ-nf. If a term P β-reduces to a term Q in β-nf, then Q is called a β-normal form of P.

As an alternative characterization, the class β-nf is the smallest class such that

β-equality

We say P is β-equal or β-convertible to Q (P=βQ) iff Q can be obtained from P by a finite series of β-contractions, reversed β-contractions, and changes of bound variables. That is, P=βQ iff there exist P0,,Pn (n0) such that P0P, PnQ, and

in1,(Pi1βPi+1)(Pi+11βPi)(PiαPi+1).

Church-Rosser Theorem

If PβM and PβN, then there exists a term T such that MβT and NβT. As an immediate corollary, if P has a β-normal form then it it is unique modulo α.

Likewise, if P=βQ, then there exists a term T such that PβT and QβT.

Powered by Forestry.md