Definition of Lebesgue measurable function: Given a function $f: D \to \mathbb R \cup \{+\infty, -\infty\}$, defined on some domain $D \subset \mathbb{R}^n$, we say that $f$ is Lebesgue measurable if $D$ is measurable and if, for each $a\in[-\infty, +\infty]$, the set $\{x\in D \mid f(x) > a\}$ is measurable.
If $f$ is an extended real valued(codomain is $[-\infty, +\infty]$) measurable function defined on $[a, +\infty)$ and it's Lebesgue integrable with $\int_{G} f(x) dx \ge 0$ for $\forall$ open set $G \subset (a, +\infty)$, how about its integral on a $G_{\delta}$(a countable intersection of open sets) set? Is still $\int_{G_{\delta}} f(x) dx \ge 0$?
Besides, if domain of $f$ is modified to $\mathbb R$ that is $f$ is a real valued measurable function defined on $\mathbb R$ with the same property, will the conclusion still be true?
The answer is yes.
Let $U_n\:(\:n\in\Bbb{N})$ be countable number of open sets. Then any $G$-set $$ G_{\delta}=\bigcap_{n=1}^{\infty}U_n=\bigcap_{n=1}^{\infty}\bigcap_{k=1}^{n}U_k=\bigcap_{n=1}^{\infty}O_n $$ where $O_n=\bigcap_{k=1}^{n}U_k$. Clearly any $O_n$ is open set and $$ O_1\supset O_2\supset \cdots\supset O_n\supset \cdots $$ Since $O_n$ is open $$ \int_{O_n}f\:dx\geqslant0 $$ So $$ \int_{G_\delta}f\:dx=\int_{\bigcap_{n=1}^{\infty}O_n}f\:dx=\lim_{n\to\infty}\int_{O_n}f\:dx\geqslant0 $$ Here we use Monotone Class theorem in measure theory that $O_1\supset O_2\supset \cdots\supset O_n\supset \cdots$ implies $$ \mu \left ( \bigcap _{n=1}^{\infty} O_n\right )=\lim _{n\to \infty }\mu (O_n) $$ Since given $\epsilon>0$, there exists $M$ that for all $r>M$ $$ \left|\int_{\mathbb{R}} f\:dx-\int_{[-r,r]} f\:dx\right|<\epsilon $$ It holds for domain of $f$ in $\mathbb{R}$.