Dependent types I › Rules of inference › Structural rules › Substitutivity of judgemental equality [01D6]
The following rules express the sense in which hypothetical judgments respect judgemental equality.
- Given A~\mathit {type} and x:A\vdash B[x]~\mathit {type} and u,v:A such that u\equiv v:A, we may assert B[u]\equiv B[v]~\mathit {type}.
- Given A~\mathit {type} and x:A\vdash B[x]~\mathit {type} and x:A\vdash w[x]:B[x] and u,v:A such that u\equiv v:A, we may assert w[u]\equiv w[v]:B[u].
We have written the rules “long-hand”, but a theoretician may write these in the following short-hand notation:
\frac { x:A\vdash B[x]~\mathit {type} \quad u\equiv v:A }{ B[u]\equiv B[v]~\mathit {type} } \frac { x:A\vdash B[x]~\mathit {type} \quad x:A\vdash w[x]:B[x] \quad u\equiv v:A }{ w[u]\equiv w[v]:B[u] }As you can see, it is common when in a hurry to leave out all some of the obvious premises (for example, the premises A~\mathit {type} and u,v:A in the first rule). From the perspective of this course, these premises are “actually” secretly present; when someone writes a rule like this, they are relying on a shared expectation of good faith—that they would never intentionally write down a judgement that is meaningless, and so if the necessary presuppositions are omitted, these are intended to be filled in by the reader.
Note: we could have added a rule coverning hypothetical judgements of the form X~\mathit {type}\vdash B[x]~\mathit {type}, etc., such judgements do not usually arise in dependent type theory, so we ignore it.