Proof (inequality of lower and upper Riemann sums)
Clearly for any dissection $\mathcal{D}$, $L(f,\mathcal{D})\leq U(f,\mathcal{D})$.
Suppose $\mathcal{D} = \set{x_0,x_1,\ldots,x_n}$ with $x_0<\ldots<x_n$. First consider the case $\mathcal{D}'=\mathcal{D}\cup\set y$. Then $y\in(x_{r-1}, x_r)$ for some $r$. Since $$ \sup_{x\in[x_{r-1}, y]} f(x), \sup_{x\in[y, x_{r}]} f(x) \leq \sup_{x\in[x_{r-1}, x_r]} f(x), $$ we have $$ \begin{align*} (y-x_{r-1}) \sup_{x\in[x_{r-1}, y]} f(x) + (x_{r} - y) \sup_{x\in[y,x_r]} f(x) &\leq (y-x_{r-1}) \sup_{x\in[x_{r-1}, x_{r}]} f(x) + (x_{r} - y) \sup_{x\in[x_{r-1},x_r]} f(x) \\ &= (x_{r} - x_{r-1}) \sup_{x\in[x_{r-1}, x_{r}]} f(x) \end{align*} $$ so $U(f,\mathcal{D}') \leq U(f,\mathcal{D})$.
Similarly $$ \begin{align*} \inf_{x\in[x_{r-1}, y]} f(x), \inf_{x\in[y, x_{r}]} f(x) \geq \inf_{x\in[x_{r-1}, x_r]} f(x), \end{align*} $$ so $L(f,\mathcal{D}') \geq L(f,\mathcal{D})$.
Hence $$ \begin{align*} L(f, \mathcal{D}) \leq L(f, \mathcal{D}') \leq U(f, \mathcal{D}') \leq U(f, \mathcal{D}). \end{align*} $$
If $\mathcal{D}'\supset D$, then add the extra points one at a time and use induction.
For general $\mathcal{D}_1, \mathcal{D}_2$, since $\mathcal{D}_1, \mathcal{D_2} \subseteq \mathcal{D}_1 \cup \mathcal{D}_2$, $$ \begin{align*} L(f,\mathcal{D}_1) \leq L(f,\mathcal{D}_1\cup \mathcal{D}_2) \leq U(f,\mathcal{D}_1\cup \mathcal{D}_2) \leq U(f,\mathcal{D}_2). \end{align*} $$