TITLE: Prove that the support of a section of a sheaf is a closed set
QUESTION [6 upvotes]: Let $\mathcal{F}$ be a sheaf, and let $s\in\mathcal{F}$ be a section. Show that the support of $s$ is a closed subset of $X$. 

Let us consider the sheaf of all measurable functions on $\Bbb{R}$. Then the support of the measurable function: 
$f(x)=1$ for $x\in\Bbb{R}\setminus \{0\}$
$f(x)=0$ at $x=0$
is not closed under the usual topology. 
Where am I going wrong?

REPLY [8 votes]: Given $x\in \Bbb R$ and a neighborhood $U$ of $x$, the restriction of $f$ to $U$ is nonzero. Thus, the germ of $f$ at each point of $\Bbb R$ is nonzero. Consequently, the support of $f$ is $\Bbb R$, which is closed in $\Bbb R$. 
Here is an argument to show that every section of $\mathcal{F}$ has closed support. Let $V$ be an open subset of $X$, and let $s\in \mathcal{F}(V)$. Given $x\notin \operatorname{Supp}(s)$, $s_x = 0$. Thus, there exists an open neighborhood $U$ of $x$ contained in $V$ such that $s|U = 0$. For all $y\in U$, $s_y = 0$ because $s|U = 0$. Therefore $U \cap \operatorname{Supp}(s) = \emptyset$, and $\operatorname{Supp}(s)$ is closed in $X$.