Definition 1.2.1 (Simply typed lambda-term). The set ΛΠ of simply typed λ-terms is defined by the grammar

ΛΠ:=Vvariables|λV:Π.ΛΠλ-abstraction|ΛΠΛΠλ-application.

A context is a set of pairs {x1:τ1,,xn:τn} where the xi are (distinct) variables and each τiΠ. We write C for the set of all possible contexts. Given a context ΓC, we also write Γ,x:τ for the context Γ{x:τ} (if x does not appear in Γ).

The domain of Γ is the set of variables that occur in it, and the range |Γ| is the set of types that it manifests.