Definition 10.1.13. An anima \(X\) is said to have decidable equality if for each \(x,y: X\) we either have \(x=y\) or \(x\neq y\). In formulas \[ \texttt{hasDecidableEquality}(X) := \prod_{x,y : X} (x=y) \sqcup (x\neq y). \]

From Section 10.1, Sets and propositions.