Dependent types I › Rules of inference › Structural rules › Typing respects equality [01D2]

Another important rule of equality is that equal types have the same elements; this is sometimes called the “conversion rule”. In particular:

  1. Given A,B~\mathit {type} and u:A such that A\equiv B~\mathit {type}, we may assert u:B.
  2. Given A,B~\mathit {type} and u,v:A such that A\equiv B~\mathit {type} and u\equiv v:A, we may assert u\equiv v:B.

This is rendered like so in short-hand:

\frac { A\equiv B~\mathit {type} \quad u:A }{ u:B } \qquad \frac { A\equiv B~\mathit {type} \quad u\equiv v:A }{ u\equiv v:B }