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!