Support (source code)

= Support
{title2=$\operatorname{supp}f$}
{wiki=Support_(mathematics)}

= Support of a function
{synonym}

For a <scalar-valued function> $f$ on a <topological space> $X$, its support is
$$
\operatorname{supp}f=\overline{\{x\in X:f(x)\ne0\}}.
$$
The <closure> matters. On the <real line>, $f(x)=\max(0,1-|x|)$ is nonzero exactly on $(-1,1)$, but its <support> is the closed <interval> $[-1,1]$. A point where $f$ vanishes can still belong to the <support> if nonzero values occur arbitrarily near it.

For the <discrete topology>, every <subset> is closed, so the <support> is simply the <set> of inputs with nonzero values. This is the convention used when representing a finitely supported count function. A <function> has <compact support> when the displayed closed <set> is compact.