Lemma 10.1.15 (Hedberg). Let \(X\) be an anima and assume that for each \(x,y : X\) we have a wildly constant map \(x=y \to x=y\). Then \(X\) is a set.
Proof
Assume that for each \(x,y\) we have a wildly constant map \(f_{x,y} : x=y \to x=y\). First we note that for each \(p : x=y\) we have \(f_{x,y}(p) = p \circ f_{x,x}(\id_x)\); indeed, path induction on \(p\) reduces this assertion to the reflexivity identification at \(x\). Then for two arbitrary \(p,q : x=y\) we obtain an identification \[ p = f_{x,y}(p) \circ f_{x,x}(\id_x)^{-1} = f_{x,y}(q) \circ f_{x,x}(\id_x)^{-1} = q \] where we use the equality \(f_{x,y}(p)=f_{x,y}(q)\) coming from the fact that \(f_{x,y}\) is wildly constant.
Since \(p,q\) were arbitrary, it follows from Lemma 10.1.12 that \(X\) is a set.