Let $f$ be integrable over $R$ such that for any open set $U$: $\int_U fd\mu\leq b\mu(U)$. Then $f\leq b$ a.e. ($b\in R$)
We also have the following result: If $f \in L^1$ and $\int_U f \geq 0$ for all open subsets $U$, then $f\geq 0$?
I want to use the result for $b-f$ but then I realised that $b-f$ need not be integrable over R.
Does anyone have any suggestions on how to proceed?
I also have an equivalent statement for $a\mu(u)\leq \int_u fd\mu$, $a\in R$
I might have a possible solution:
Note: $b$ has to be positive if not $f$ would not be integrable.
Let $E=\{x\in X|f(x)>b\}=\cup\{x\in X|f(x)>b+\frac{1}{n}\}$. Suppose that $\mu(E)>0$. There exists $n$ s.t $\mu(E_n:=\{x\in X|f(x)>b+\frac{1}{n}\})>0$. Hence, we can find an open set $U_1$ s.t $\mu (U_1)<\mu(E_n)+\frac{1}{n_1}$ where $n_1$ is s.t $\frac{b}{n_1}<\frac{\mu(E_n)}{n}$ and $E_n\subseteq U_1$.
Since $f$ is integrable on R, we have absolute continuity. Let $\epsilon$ s.t $\epsilon<\frac{\mu(E_n)}{n}-\frac{b}{n_1}$.
Therefore, there exists $\delta$ s.t for all $\mu(A)<\delta$,$|\int_A fd\mu|<\epsilon$
Hence, we also have $E_n \subseteq U_2$ s.t $\mu(U_2- E_n)<\delta$
Now let $U=U_1\cap U_2$
Hence,$$b(\mu(E_n)+\frac{1}{n_1})\geq b\mu (U)\geq\int_Ufd\mu=\int_{E_n}fd\mu+\int_{U-E_n}fd\mu\geq (b+\frac{1}{n})\mu(E_n)-\epsilon$$ which implies that $$\frac{b}{n_1}\geq \frac{\mu(E_n)}{n}-\epsilon$$
Hence, contradiction.
For the equivalent statement with $a\in R$: Since $f$ is integrable this implies $-f$ is integrable hence and $-\int fd\mu=\int -f d \mu$. Hence, for all open $U$ we have that $\int_U -f d \mu\leq -a\mu(U)$. Hence apply the above proof.