Theorem: Suppose that $f:X\to [0,\infty]$ is measurable, $E\in \mathfrak{M}$, and $\int \limits_{E}fd\mu=0$. Then $f=0$ a.e. on $E$.
It's very famous fact which can be proven easy.
Am I right that this theorem becomes false if we assume that $f:X\to (0,\infty]$?
I guess that here even condition $\int \limits_{E}fd\mu=0$ fails.
Can anyone exaplain this to me detailed why my assumption false?