Dependent types I › Rules of inference › Structural rules › Judgemental equality is an equivalence relation [01D1]

We have the following rules of inference witnessing that judgemental equality is an equivalence relation:

  1. Reflexivity.
    1. Given A~\mathit {type} we may assert A\equiv A~\mathit {type}.
    2. Given A~\mathit {type} and u:A, we may assert u\equiv u:A.
    Equivalently: \frac { A~\mathit {type} }{A\equiv A~\mathit {type}} \qquad \frac { u:A }{u\equiv u:A}
  2. Transitivity.
    1. Given A,B,C~\mathit {type} such that A\equiv B~\mathit {type} and B\equiv C~\mathit {type}, we may assert A\equiv C~\mathit {type}.
    2. Given A~\mathit {type} and u,v,w:A such that u\equiv v:A and v\equiv w:A, we may assert u\equiv w:A.
    Equivalently: \frac { A\equiv B~\mathit {type} \quad B\equiv C~\mathit {type} }{A\equiv C~\mathit {type}} \qquad \frac { u\equiv v:A \quad v\equiv w:A }{ u\equiv w:A }
  3. Symmetry.
    1. Given A,B~\mathit {type} such that A\equiv B~\mathit {type}, we may assert B\equiv A~\mathit {type}.
    2. Given A~\mathit {type} and u,v:A such that u\equiv v:A, we may assert v\equiv u:A.
    Equivalently: \frac {A\equiv B}{B\equiv A} \qquad \frac { u\equiv v:A }{ v\equiv u:A }