From Wikipedia
The definition of the Hausdorff distance can be derived by a series of natural extensions of the distance function $d(x, y)$ in the underlying metric space $M$, as follows:[4]
Define a distance function between any point $x$ of $M$ and any non-empty set $Y$ of $M$ by: $$ d(x,Y)=\inf \{ d(x,y) | y \in Y \}\ . $$
Define a distance function between any two non-empty sets $X$ and $Y$ of $M$ by: $$ d(X,Y)=\sup \{ d(x,Y) | x \in X \}\ . $$
If $X$ and $Y$ are compact then $d(X,Y)$ will be finite; $d(X,X)=0$; and $d$ inherits the triangle inequality property from the distance function in $M$. As it stands, $d(X,Y)$ is not a metric because $d(X,Y)$ is not always symmetric, and $d(X,Y) = 0$ does not imply that $X = Y$ (It does imply that $X \subseteq Y$). However, we can create a metric by defining the Hausdorff distance to be: $$ d_{\mathrm H}(X,Y) = \max\{d(X,Y),d(Y,X) \} \, . $$
I was wondering why in the three steps, $\inf$ and $\sup$ are as they are? What if some or all of they are flipped between $\inf$ and $\sup$?
For example, the first step defines the distance between a point and a set by $\inf$, but the second step defines the distance between two sets by $\sup$ and the third step uses $\max$ again. Why are they not all using $\inf$ or $\min$ (or $\sup$ or $\max$, respectively), which I think would make the three steps more agreeable, since in the first step, a point can be seen as a singleton set.
Thanks and regards!