Let ε be a real number with ε>0, and suppose for contradiction that no finite subset F⊆K satisfies K⊆⋃a∈FBd(a,ε).
Step 1 (a relation to iterate). Let S be the set of all finite subsets of K. The empty set is finite and is a subset of K, so ∅∈S and S is nonempty. Define a binary relation R on S, that is a subset of the Cartesian product S×S, by declaring (F,G)∈R exactly when there is y∈K with
y∈/a∈F⋃Bd(a,ε)andG=F∪{y}.
We check that for every F∈S there is G∈S with (F,G)∈R. Let F∈S. By the contradiction hypothesis K⊆⋃a∈FBd(a,ε) fails, so there is y∈K with y∈/⋃a∈FBd(a,ε). For each a∈F the identity-of-indiscernibles axiom of a metric gives d(a,a)=0<ε, so a∈Bd(a,ε) by Open Ball in a Metric Space; since y lies in none of these balls, y=a. Hence y∈/F, and by claim 2 of Basic Properties of Finite Sets the set F∪{y} is finite: if F is empty it equals {y}, which has 1 element, and if F has k elements it has σ(k) elements, where σ denotes the successor map of Natural Numbers. It is also a subset of K. So G=F∪{y} lies in S and (F,G)∈R.
Step 2 (an infinite ε-separated sequence). By Axiom of Dependent Choice, applied to S, R, and the starting element ∅, there is a sequence (Fm)m∈N in S with F1=∅ and (Fm,Fm+1)∈R for every m∈N.
Fix m∈N. Any y witnessing (Fm,Fm+1)∈R satisfies y∈/Fm, by the argument of Step 1, and Fm+1=Fm∪{y}, so Fm+1∖Fm={y}. Hence Fm+1∖Fm has exactly one element, and that element is a witness; define xm to be it. No choice principle is involved, since xm is determined by Fm and Fm+1. Thus (xm)m∈N is a sequence in X with xm∈K, and for every m,
Fm⊆Fm+1,xm∈Fm+1,xm∈/a∈Fm⋃Bd(a,ε).
An induction using the principle of induction and the first of these gives Fj⊆Fm whenever j≤m.
Now let j,m∈N with j<m. By claim 7 of Properties of the Order on the Natural Numbers there is t∈N with m=j+t, and 1≤t by claim 4, so j+1≤j+t=m by claim 6. Hence Fj+1⊆Fm and therefore xj∈Fm. Since xm∈/⋃a∈FmBd(a,ε), in particular xm∈/Bd(xj,ε), so d(xj,xm)<ε fails and comparability of the order on R gives
ε≤d(xj,xm).
Step 3 (contradiction with sequential compactness). By Sequentially Compact Subset of a Metric Space there are x∈K and a strictly increasing sequence (nk)k∈N in N, in the sense of Subsequence of a Sequence in a Set, such that (xnk)k∈N converges to x in (X,d). By claim 8 of Elementary Order Arithmetic in an Ordered Field, 0<ε⋅2−1 and ε⋅2−1+ε⋅2−1=ε.
By Convergent Sequence in a Metric Space there is N∈N with d(xnk,x)<ε⋅2−1 for every k with N≤k. Both k=N and k=N+1 satisfy N≤k, by claims 1 and 6 of Properties of the Order on the Natural Numbers. Since (nk) is strictly increasing, nN<nN+1, so Step 2 gives ε≤d(xnN,xnN+1).
On the other hand, the symmetry axiom of a metric gives d(x,xnN+1)=d(xnN+1,x), so adding the two strict inequalities by claim 3 of Elementary Order Arithmetic in an Ordered Field,
d(xnN,x)+d(x,xnN+1)<ε⋅2−1+ε⋅2−1=ε,
and the triangle inequality axiom gives d(xnN,xnN+1)≤d(xnN,x)+d(x,xnN+1). By claim 2 of Elementary Order Arithmetic in an Ordered Field we conclude d(xnN,xnN+1)<ε, and combining with ε≤d(xnN,xnN+1) gives ε<ε, which is false.
This contradiction shows that some finite subset F⊆K satisfies K⊆⋃a∈FBd(a,ε). Since such an F is also a finite subset of X, and ε>0 was arbitrary, Totally Bounded Subset of a Metric Space shows that K is totally bounded in (X,d).