[step:Construct a Cantor scheme inside the perfect kernel to establish cardinality $\mathfrak{c}$]We show that $K$ (and hence $F$) has cardinality $\mathfrak{c}$ by embedding the Cantor space $\{0,1\}^\mathbb{N}$ into $K$.
Let $2^{< \mathbb{N}} := \bigcup_{n=0}^\infty \{0,1\}^n$ denote the set of finite binary strings. We construct by recursion a family $\{C_s\}_{s \in 2^{<\mathbb{N}}}$ of nonempty closed subsets of $K$ satisfying:
(i) $C_{s^\frown 0}, C_{s^\frown 1} \subset C_s$ and $C_{s^\frown 0} \cap C_{s^\frown 1} = \varnothing$.
(ii) $\operatorname{diam}(C_s) \le 2^{-|s|}$.
**Base case.** Pick $x_\varnothing \in K$ and set $C_\varnothing := \overline{B}_d(x_\varnothing, 2^{-1}) \cap K$.
**Recursive step.** Given $C_s$ with a distinguished point $x_s \in C_s \subset K$ and $\operatorname{diam}(C_s) \le 2^{-|s|}$, we split as follows. Since $K$ has no isolated points, $B_d(x_s, 2^{-|s|-2}) \cap K$ contains a point $y \neq x_s$. Set $\delta := d(x_s, y)/3 > 0$ and $r := \min(\delta, 2^{-|s|-2})$. Define
\begin{align*}
C_{s^\frown 0} := \overline{B}_d(x_s, r) \cap K, \qquad C_{s^\frown 1} := \overline{B}_d(y, r) \cap K.
\end{align*}
Set $x_{s^\frown 0} := x_s$ and $x_{s^\frown 1} := y$.
**Disjointness.** If $z \in C_{s^\frown 0} \cap C_{s^\frown 1}$, then $d(x_s, y) \le d(x_s, z) + d(z, y) \le 2r \le 2\delta = 2d(x_s, y)/3$, a contradiction.
**Containment.** We refine the construction to ensure containment. At the base, set $C_\varnothing := \overline{B}_d(x_\varnothing, 2^{-1}) \cap K$ (not radius $1$). Inductively, define $C_s := \overline{B}_d(x_s, 2^{-|s|-1}) \cap K$. Then for $z \in C_{s^\frown 0} = \overline{B}_d(x_s, r) \cap K$ with $r \le 2^{-|s|-2}$: $d(z, x_s) \le r \le 2^{-|s|-2} < 2^{-|s|-1}$, so $z \in C_s$. For $z \in C_{s^\frown 1} = \overline{B}_d(y, r) \cap K$: $d(z, x_s) \le d(z, y) + d(y, x_s) \le r + 2^{-|s|-2} \le 2 \cdot 2^{-|s|-2} = 2^{-|s|-1}$, so $z \in C_s$.
**Diameter.** $\operatorname{diam}(C_{s^\frown i}) \le 2r \le 2 \cdot 2^{-|s|-2} = 2^{-(|s|+1)}$.
**Nonemptiness.** $x_s \in C_{s^\frown 0}$ and $y \in C_{s^\frown 1}$.
For each $\sigma \in \{0,1\}^\mathbb{N}$, the nested sequence $C_\varnothing \supset C_{\sigma|_1} \supset C_{\sigma|_2} \supset \cdots$ consists of nonempty closed subsets of the complete metric space $(X, d)$ (each $C_s$ is an intersection of a closed ball with the closed set $K$, hence closed in $X$) with $\operatorname{diam}(C_{\sigma|_n}) \to 0$. By the [Cantor Intersection Theorem](/theorems/624) (complete metric space version: a nested sequence of nonempty closed sets with diameters tending to $0$ has a unique point of intersection), the intersection $\bigcap_{n=0}^\infty C_{\sigma|_n}$ contains exactly one point $\pi(\sigma)$.
This defines a map
\begin{align*}
\pi: \{0,1\}^\mathbb{N} &\to K \\
\sigma &\mapsto \text{the unique point in } \bigcap_{n=0}^\infty C_{\sigma|_n}.
\end{align*}
The map $\pi$ is injective: if $\sigma \neq \tau$, let $n$ be the first index where they differ. Then $\pi(\sigma) \in C_{\sigma|_{n+1}}$ and $\pi(\tau) \in C_{\tau|_{n+1}}$, and these sets are disjoint (they are the two children $C_{s^\frown 0}$ and $C_{s^\frown 1}$ where $s = \sigma|_n = \tau|_n$), so $\pi(\sigma) \neq \pi(\tau)$.
Therefore $|K| \ge |\{0,1\}^\mathbb{N}| = 2^{\aleph_0} = \mathfrak{c}$. Since $K \subset F \subset X$ and $|X| \le \mathfrak{c}$ (because $X$ is second-countable: each point is determined by the set of basis elements containing it, giving an injection $X \hookrightarrow \mathcal{P}(\mathbb{N})$), we conclude $|K| = |F| = \mathfrak{c}$.[/step]