A subset is an open set if every admits a radius such that the open ball
is contained in . A subset is a closed set if its complement is an open set. Equivalently, contains the limit of every convergent sequence of its points.
The distance to a set is nonnegative and finite here: any fixed gives . For every , the triangle inequality gives
Taking the infimum over yields . Interchanging and proves
Thus is a Lipschitz function with Lipschitz constant one, so it is continuous. In the epsilon-delta definition of continuity, choose .
If , using in the infimum gives , so .
Conversely, if , the definition of the infimum allows a choice with . The sequence is therefore a convergent sequence with limit . Since is a closed set, its limit belongs to . Hence
Closedness matters: without it, zero distance to a set characterizes its closure, which can contain additional points.
Put . This is a closed set. First assume is nonempty. The Heine-Borel theorem makes the nonempty bounded closed set a compact set. By the preceding parts, is a continuous function and is strictly positive at every , because .
The extreme value theorem gives attaining its minimum. Therefore
The equality with the distance between two sets follows by taking the two infima successively. Crucially, compactness supplies a point attaining the minimum; positivity at each point alone would not make an arbitrary infimum positive. This is the principle that a compact subset of an open set has positive distance from its complement.
If , its complement is empty. With the usual extended-real convention , the stated inequality holds in that case too.

Articles by others on the same topic (0)

There are currently no matching articles.