Please help me check my proof, thanks!
(a) Show there exists $x\in (0,1)$ such that $$f(x) \leq \int_0^1 f(t) dt.$$
Proof: when $f$ is constant a.e, the equality holds for all points except for a set of measure zero. Suppose $f$ is not constant a.e, argue by contradiction, suppose that $$f(x) > \int_0^1 f(t) dt $$ for $x\in (0,1)$ a.e. Then $\{f(x) : x\in (0,1) \text { and } f(x) > \int_0^1 f(t) dt \}$ is bounded below and there exists an $C:= \inf_{x\in (0,1) \text { and } f(x) > \int_0^1 f(t) dt } f(x)$. Now we have
$$C \geq \int_0^1 f(t) dt$$ and $$\int_0^1 C dt \geq \int_0^1 f(t) dt$$ $$\int_0^1 f(t) - C dt \leq 0.$$ Observe that $f(t) - C\geq 0$ a.e. thus we must have $f(t) - C = 0$ a.e., which contradicts with the assumption that $f$ is not constant a.e.
(b) Given an $1>\epsilon > 0$, construct a function such that the measure of the set of points that satisfy the above inequality is less than $\epsilon$.
Define $f(x) = -1$ when $x\in (0,\epsilon)$ and $f(x) = 0$ when $x\in (\epsilon, 1)$.