For functions between
preordered sets, constant functions are both
order-preserving and
order-reversing; conversely, if is both order-preserving and order-reversing, and if the
domain of is a
lattice, then must be constant. • Every constant function whose
domain and
codomain are the same set is a
left zero of the
full transformation monoid on , which implies that it is also
idempotent. • It has zero
slope or
gradient. • Every constant function between
topological spaces is
continuous. • A constant function factors through the
one-point set, the
terminal object in the
category of sets. This observation is instrumental for
F. William Lawvere's axiomatization of set theory, the
Elementary Theory of the Category of Sets (ETCS). • For any non-empty , every set is
isomorphic to the set of constant functions in X \to Y. For any and each element in , there is a unique function \tilde{y}: X \to Y such that \tilde{y}(x) = y for all x \in X. Conversely, if a function f: X \to Y satisfies f(x) = f(x') for all x, x' \in X, f is by definition a constant function. • As a corollary, the one-point set is a
generator in the category of sets. • Every set X is canonically isomorphic to the function set X^1, or
hom set \operatorname{hom}(1,X) in the category of sets, where 1 is the one-point set. Because of this, and the adjunction between Cartesian products and hom in the category of sets (so there is a canonical isomorphism between functions of two variables and functions of one variable valued in functions of another (single) variable, \operatorname{hom}(X \times Y, Z) \cong \operatorname{hom}(X(\operatorname{hom}(Y, Z))) the category of sets is a
closed monoidal category with the
Cartesian product of sets as tensor product and the one-point set as tensor unit. In the isomorphisms \lambda: 1 \times X \cong X \cong X \times 1: \rho
natural in, the left and right unitors are the projections p_1 and p_2 the
ordered pairs (*, x) and (x, *) respectively to the element x, where * is the unique
point in the one-point set. A function on a
connected set is
locally constant if and only if it is constant. == References ==