Theorem (Lebesgue's criterion for Riemann integrability)

If $f:[a,b]\to\R$ is bounded, then $f$ is Riemann integrable iff $D = \sb{x\in[a,b]}{f \text{ discontinuous at }x}$ has measure zero.

Proof of necessity