Suppose that f is a measurable function $(\Omega, \mathfrak{F}, \mu)$ such that $\int_{A}f \, d\mu \geq 0 \forall A \in \mathfrak{F}$. Prove that $f \geq 0 \ \mu$-almost surely.
Hint: Let $A_n = (\omega \mid f(\omega) < \frac{-1}{n})$, and don't forget continuity.
Attempt:
$\forall n \in \mathbb{N}, A_n \subseteq A_{n+1}$ where $A_n$ is measurable since f is measurable (I think?).
By continuity of measure, lim$\mu(A_n)$ = $\mu(\bigcup_{n=1}^\infty A_n) $ where $\bigcup_{n=1}^{\infty} A_n = (\omega \mid f(\omega) < 0)$.
By monotonicity of measure, $0 \leq \mu(A_n) \leq \mu(A_{n+1})$.
Since we want to show that $\mu(\bigcup_{n=1}^\infty A_n) = 0$ (that is equivalent to $f \geq 0 \ \mu$-almost surely right?), and $(\mu(A_n))$ is a nonnegative increasing sequence, we must show that $\mu(A_n) = 0\ \forall n \in \mathbb{N}.$
I think the entire argument relies on the relationship between $\mu(A_n)$ and $\int_{A_n}f \, d\mu = \int_{\Omega}f*1_{A_n} \, d\mu$. What is it? Does nonnegativity of the integral mean that $\mu(A_n)= 0$? I am not quite sure that that necessarily follows.