Conditions ensuring that a compact set can be approximated by approximating its distance function
Few votes (2) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Let \(\emptyset\neq K\subset Y\) be a closed subset of a compact metric space \((X,d)\) such that \(K\) has at-least two points and such that$$ d(Y,K):=\sup_{y\in Y}\,\inf_{k\in K}\,d(k,y)=:r>0. $$Define \(d_K(x):=\inf_{z\in K}\, d(x,z)\) and let \(f:X\rightarrow [0,\infty)\) be lower semi-continuous and such that$$ \max_{x\in X}\, \big|f(x)-d_K(x)\big|<r/2. $$
Define the levelset \(K_f:=\{x\in X:\, f(x)\leq r/2\}\) and suppose that \(K_f\neq \emptyset\) (e.g. by assuming that \(f^{-1}[\{0\}]\neq \emptyset\)).
Question:
What (non-trivial) conditions on the pair \(K\) and \(Y\) need to be imposed to ensure that, \(K_f\subseteq Y\)?
A Sufficient Condition:
Clearly, something like for some \(x\in X\) set \(Y=Ball_X(x,2r)\) and \(K=Ball_X(x,r)\) works.
More generally, if we assume that \(Y=K_r:=\{x\in X:\,d_K(x)<r\}\) then everything checks out.
When things don't work:
However, the counterexample of this post …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.