Proof (Cauchy criterion for integrability)

For any dissection $\mathcal{D}$ we have $$ \begin{align*} 0 \leq I^\star(f) - I_\star(f) \leq U(f,\mathcal{D}) - L(f,\mathcal{D}) \end{align*} $$ so if the criterion holds, then $$ \begin{align*} 0 \leq I^\star(f) - I_\star(f) \leq \epsilon \quad \forall \epsilon>0 \end{align*} $$ so $I^\star(f) - I_\star(f) = 0$ and hence $f$ is integrable.

Conversely suppose $f$ is integrable and fix $\epsilon > 0$. It follows from the definition of supremum and infimum that there exist dissections $\mathcal{D}_1$, $\mathcal{D}_2$ with $$ \begin{align*} U(f,\mathcal{D}_1) &\leq I^\star(f) + \frac{\epsilon}{2}, \\ L(f,\mathcal{D}_2) &\geq I_\star(f) - \frac{\epsilon}{2}. \end{align*} $$ Let $\mathcal{D} = \mathcal{D}_1 \cup \mathcal{D}_2$. Then $$ \begin{align*} 0 &\leq U(f,\mathcal{D}) - L(f,\mathcal{D}) \\ &\leq U(f,\mathcal{D}_1) - L(f,\mathcal{D}_2) \\ &\leq I^\star(f) + \frac{\epsilon}{2} - I_\star(f) + \frac{\epsilon}{2} \\ &= \epsilon &\text{since } I^\star(f) = I_\star(f). \end{align*} $$