Let . If the result is immediate, so take . Given , choose and the finitely many intervals supplied by the hypothesis. On each , choose a partition of an interval whose Darboux sum gap is less than , using Riemann integrability there.
Combine all these partitions with and all interval endpoints to obtain a global partition of an interval . On the chosen intervals the gaps add to less than . The complementary intervals have total length
and on each the difference between the supremum and infimum is at most . Consequently
The Riemann integrability criterion proves is Riemann integrable on . Shared endpoints cause no problem: the Darboux sums use closed intervals, and the complementary interval estimate includes every endpoint value. This proves Riemann integrability from almost full interval coverage.