[step:Define the parallel bodies used in the Hausdorff distance]
For every nonempty compact set $A \subset \mathbb{R}^n$ and every $\varepsilon \geq 0$, define the closed $\varepsilon$-parallel body $A_\varepsilon \subset \mathbb{R}^n$ by
\begin{align*}
A_\varepsilon := \{x \in \mathbb{R}^n : \operatorname{dist}(x,A) \leq \varepsilon\},
\end{align*}
where $\mathcal{P}(\mathbb{R}^n)$ denotes the power set of $\mathbb{R}^n$ and $\operatorname{dist}: \mathbb{R}^n \times \mathcal{P}(\mathbb{R}^n) \to [0,\infty)$ is given by
\begin{align*}
\operatorname{dist}(x,A) := \inf_{a \in A} |x-a|.
\end{align*}
Since $A$ is compact, the infimum in the definition of $\operatorname{dist}(x,A)$ is attained for each $x \in \mathbb{R}^n$. Equivalently,
\begin{align*}
A_\varepsilon = A + \overline{B}(0,\varepsilon),
\end{align*}
where
\begin{align*}
\overline{B}(0,\varepsilon) := \{z \in \mathbb{R}^n : |z| \leq \varepsilon\}.
\end{align*}
Indeed, if $x \in A_\varepsilon$, choose $a \in A$ with $|x-a|=\operatorname{dist}(x,A) \leq \varepsilon$; then $x=a+(x-a) \in A+\overline{B}(0,\varepsilon)$. Conversely, if $x=a+z$ with $a \in A$ and $z \in \overline{B}(0,\varepsilon)$, then $\operatorname{dist}(x,A) \leq |x-a|=|z| \leq \varepsilon$, so $x \in A_\varepsilon$.
With this notation, the Hausdorff distance is
\begin{align*}
d_H(K,L)
:=
\inf \{\varepsilon \geq 0 : K \subset L_\varepsilon \text{ and } L \subset K_\varepsilon\}.
\end{align*}
[/step]