A bounded function $f: A \longrightarrow \mathbb{R}$ is integrable if and only if for every $\epsilon > 0$ there is a partition $P$ of $A$ such that $U(f,P) - L(f,P) < \epsilon$.
$\textbf{Proof}$
If this condition holds, it is clear that $\sup \ \{ L(f,P) \} = \inf \ \{ U(f,P) \}$ and $f$ is integrable. On the other hand, if $f$ is integrable , so that $\sup \ \{ L(f,P) \} = \inf \ \{ U(f,P) \}$, then for any $\epsilon > 0$ there are partitions $P$ and $P'$ with $U(f,P) - L(f,P') < \epsilon$. If $P''$ refines both $P$ and $P'$, it follows from lemma 3.1 that $U(f,P'') - L(f,P'') \leq U(f,P) - L(f,P') < \epsilon$.
P.S.: $A \subset \mathbb{R}^n$.
I would like to know why $\sup \ \{ L(f,P) \} = \inf \ \{ U(f,P) \}$ implies that there are partitions $P$ and $P'$ with $U(f,P) - L(f,P') < \epsilon$. Thanks in advance!