Nested compact sets

108 Views Asked by At

Suppose I have a compact metric space $X$ with an open set $O \subsetneq X$ and a compact set $C \subset O$ given. Is it possible to find another compact set $\tilde{C}$ such that $C \subsetneq \tilde{C} \subset O$?

My idea was to check the distance between the disjoint sets $C$ and $X\setminus O$ and hopefully find a lower bound $\varepsilon > 0$. Then I could expand the set $C$ by $\varepsilon/2$ and take the closure. However, I think the dist-function is not continuous on $C \times X\setminus O$, it is only componentwise contiuous? Is it possible to find such $\tilde{C}$?

2

There are 2 best solutions below

6
On BEST ANSWER

first we need to suppose $C\neq O$ (yes, it could be a clopen). if this is true, take any element $x\in O\setminus C$ and then $C\cup \lbrace x\rbrace$ is close, so compact (compact space)

1
On

I'll complete it. Consider the close set $F=X\setminus O$, so compact and the function $f(x)=\frac{\mathrm{d}(x,F)}{1+ \mathrm{d}(x,F)}$, which is continuous and bounded by $1$, and $f(x)=0\iff x\in F$ , so $f:X\rightarrow[0,1]$ and $f^{-1}(0,1]=O$. Then, as $$\bigcup_{n\in\mathbb{N}}[1/n,1]=(0,1]$$ and $[1/n,1]$ are close sets, then if we define $C_i=f^{-1}[1/n,1]$, as f is continuous $C_i$ is close, so compact, and satisfices the asked