Dependent types I › Judgemental structure of dependent types › Parameterised and hypothetical judgements [01D3]

Sometimes we will describe a family of judgements by writing a judgement with a placeholder or a parameter in it. In this case we may wish to speak of the judgement holding for all instantiations of this parameter; for example, to describe the body of a function \mathsf {int}\to \mathsf {string} in OCaml we must parameterise a term u[x]:\mathsf {string} in a variable x:\mathsf {int} to obtain the function \lambda {x}\mathpunct {.}u[x]:\mathsf {int}\to \mathsf {string}. The judgement that u[x] describes a string assuming x describes an integer is called a hypothetical judgement, and it is written x:\mathsf {int}\vdash u[x]:\mathsf {string}.

Many formal presentations of type theory make explicit the context \Gamma of parameters that are in scope. This is a perfectly valid, but one of the overarching principles of type theory is that all constructs are arranged so as to be invariant under substitution of paramters; the up-shot is that we can allow the ambient parameters to be implicit, explicitly introducing scopes only when we wish to bind a new parameter.