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:
- Reflexivity.
- Given A~\mathit {type} we may assert A\equiv A~\mathit {type}.
- Given A~\mathit {type} and u:A, we may assert u\equiv u:A.
- Transitivity.
- 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}.
- 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.
- Symmetry.
- Given A,B~\mathit {type} such that A\equiv B~\mathit {type}, we may assert B\equiv A~\mathit {type}.
- Given A~\mathit {type} and u,v:A such that u\equiv v:A, we may assert v\equiv u:A.