It is a remarkable property of uncountable compact metric spaces that each of them contains a homeomorphic copy of the Cantor set. In general, one cannot expect containment of Cantor cubes (in particular, in the case of scattered compact spaces) but instead different totally disconnected subspaces occur quite often. My question is the following



> 
> Let $K$ be a compact Hausdorff space. Does $K$ contain a closed, totally disconnected subspace having the same cardinality as $K$?
> 
> 
> 



Closed totally disconnected subspaces
EDIT: I tried to improve the presentation. I hope that it is a bit more readable now.


I think that the following construction gives a consistent counter-example. It uses the combinatorial principle $\diamondsuit$, which implies CH (the continuum hypothesis) and is independant from ZFC. 


I'll work with ordinals, and since $\alpha<\omega\_1$ (for instance) may be seen either as a point or as a an initial segment in $ \omega\_1 $, I'll use the interval notation when I refer to the latter.


Start with a circle bundle over $\omega\_1$, that is, a space $X$ with a continous map $\pi$ onto $\omega\_1$, such that the fiber over each point $\pi^{-1}(\{\alpha\})$ is a circle. (Of course, $\omega\_1$ is endowed with the order topology.) Say that a subset of $X$ is bounded if it is contained in $\pi^{-1}([0,\alpha])$ for some $\alpha<\omega\_1$, and unbounded otherwise. 


Nyikos showed in his article "The theory of non-metrizable manifolds" in the Handbook of set theoretic topology (Example 6.17) that using $\diamondsuit$, we can construct a circle bundle over $\omega\_1$ with the following properties:


1) The underlying set of $X$ is $\omega\_1\times\mathbb{S}^1$, but the topology is not the product topology.


2) $\pi^{-1}([0,\alpha])$ is homeomorphic to $[0,\alpha]\times\mathbb{S}^1$ with the usual product topology for any $\alpha<\omega\_1$. In particular, $X$ is locally compact. We may fix an homeomorphism $\psi\_\alpha:\pi^{-1}([0,\alpha])\to [0,\alpha]\times\mathbb{S}^1$ for each $\alpha<\omega\_1$.


3) If $E\subset X$ is closed, then either $E$ is bounded, or $E$ contains $\pi^{-1}(C)$ for $C$ a closed and unbounded subset of $\omega\_1$. In particular, in the latter case $E$ is not totally disconnected since it contains copies all the fibers (which are circles) above the member of $C$.


(Note: Actually, Nyikos builds a bundle over the long ray ${\mathbb{L}}\_+$ which is even a surface, but we take only the restriction to $\omega\_1$.)


Now, define a circle bundle $\pi':Y\to\omega\_{\omega\_1}$ as follows. The underlying set of $Y$ is $\omega\_{\omega\_1}\times\mathbb{S}^1$. $X$ will be included in $Y$ as the union of the fibers above the $\omega\_\alpha$, for $\alpha<\omega\_1$. 
The topology "between" $\omega\_\alpha$ and $\omega\_{\alpha+1}$ is the usual product topology. That is, if $\omega\_\alpha < \gamma < \omega\_{\alpha+1}$, given $x\in\mathbb{S}^1$, take $\beta,\beta'$ with $\omega\_\alpha\le\beta<\gamma<\beta'< \omega\_{\alpha+1}$ and an open $O\subset\mathbb{S}^1$ containing $x$, then $(\beta,\beta')\times O$ is a neighborhood of $\langle\gamma,x\rangle$. 


We now define the neighborhoods of $\langle\omega\_{\alpha},x\rangle$. 
In $X$, choose a neighborhood $U$ of $\langle \alpha,x\rangle$, and denote by $U^\beta$ the intersection $U\cap \pi^{-1}(\{\beta\})$. Set $V^{\omega\_\beta}=U^\beta$, and
if $\omega\_\beta<\gamma<\omega\_{\beta+1}$, set $V^{\gamma}=U^{\beta+1}$. That is: $V^\gamma$ is equal to the intersection of $U$ with the fiber over $\beta+1$. Then a neighborhood of $\langle\omega\_{\alpha},x\rangle$ is given by the union of $\{\gamma\}\times V^{\gamma}$ for all $\gamma$ greater than some $\gamma'$. 


Then $Y$ has the following properties:


2') For any $\alpha<\omega\_{\omega\_1}$, $(\pi')^{-1}([0,\alpha])$ is homeomorphic to $[0,\alpha]\times\mathbb{S}^1$ with the usual product topology (and thus $Y$ is locally compact). To see this, define the homeomorphism $\phi:(\pi')^{-1}([0,\alpha])\to [0,\alpha]\times\mathbb{S}^1$ by setting $\phi(\langle\omega\_{\alpha},x\rangle)=\psi(\langle\alpha,x\rangle)$, and for $\omega\_\alpha<\gamma<\omega\_{\alpha+1}$, set $\phi(\langle\gamma,x\rangle)=\psi(\langle\alpha+1,x\rangle)$, where $\psi$ is defined in 2) above. 


3') As 3) with $\omega\_{\omega\_1}$ rather than $\omega\_1$.


Now, a bounded subset of $Y$ is contained in some $[0,\alpha]\times\mathbb{S}^1$, and has thus cardinality $\max\{|\alpha|,\omega\_1\}<\omega\_{\omega\_1}$ (since $2^\omega=\omega\_1$ by CH). Taking the one-point compactification yields a compact space such that a closed set of cardinality $\omega\_{\omega\_1}$ cannot be totally disconnected.


I hope that I did not miss something. 


I don't know whether another construction can be done in ZFC, but this particular one needs at least something more than ZFC+CH, because Nyikos space $X$ would have to contain a copy of $\omega\_1$ (which is impossible, and thus the space does not exist) in a model of ZFC+CH due to Eisworth and Nyikos.


