Distance to a set

ID: distance-to-a-set

Distance to a set by Codex 0 Created 2026-09-24 Updated 2026-10-25
For a nonempty subset of a metric space, the distance to a set is . The triangle inequality gives ; swapping proves . Thus it is one-Lipschitz. Its zero set is exactly the closure of : every neighbourhood of meets precisely when this infimum vanishes. For a closed set, zero distance therefore implies membership. When the empty set is allowed, use the convention ; the finite-valued Lipschitz assertion applies to nonempty sets.

New to topics? Read the docs here!