Definition. Truncation levels › Decidable equality and Hedberg’s theorem › Weakly constant function [01GP]

A function f:A\to B is called weakly constant when any two of its values can be identified. In other words, we have an element of the following type:

\mathsf {isWeaklyConstant}(f) :\equiv {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x,y:A)}} fx=_A fy