natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism = propositions as types +programs as proofs +relation type theory/category theory
In type theory, -reduction is a process of “computation”, which generally replaces more complicated terms with simpler ones. It was originally identified in the lambda-calculus, where it contrasts with -equivalence and -expansion; this is the version described below for function types. The analogous reduction for inductive types may also be known as -reduction.
In its most general form, -reduction consists of rules which specify, for any given type , if we apply an “eliminator” for to the result of a “constructor” for , how to “evaluate” the result. We write
if the term beta-reduces to the term . Sometimes we write if this reduction takes steps (leaving off the to denote ). The relation “reduces to” generates an equivalence relation on the set of terms called beta equivalence and often denoted or .
The most common (and original) example is when is a function type .
In this case, the constructor of is a -expression: given a term of type containing a free variable of type , then is a term of type .
The eliminator of says that given a term of type and a term of type , we can apply to to obtain a term of type .
Now if we first construct a term , and then apply this term to , we obtain a term . The rule of -reduction then tells us that this term evaluates or computes or reduces to , the result of substituting the term for the variable in the term .
See lambda calculus for more.
Although function types are the most publicized notion of -reduction, basically all types in type theory have a form of it. For instance, in the negative presentation of a product type , the constructor is an ordered pair , while the eliminators are projections and which yield elements of or .
The beta reduction rules then say that if we first apply a constructor , then apply an eliminator to this, the resulting terms and compute to and respectively.
confluent category / diamond / Church-Rosser theorem?