I have been trying to get my head around this question and its solution.
The (easier and more straightforward) solution using the Lebesgue Number Lemma is greatly explained here: Prove that a space is simply connected
Let $X$ top. Space and $x_0 \in X$. Let $(U_i)_{i \in I}$ be open sets in $X$, $\quad$ $x_0 \in U_i \forall i$, $\quad$ $X = \cup \space U_{i}$ and $U_i \cap U_j$ is path-connected for all $i$ and $j$ in $I$.
Let $\gamma: [0, 1] \to X$ be a loop at $x_0$. Show $\exists m \geq 1$ and real numbers $[t_0 = 0 < t_1 < \cdots < t_{m-1} < t_m = 1]$ such that for $0 \leq k < m$, the subset $\gamma([t_k, t_{k+1}])$ is contained in $U_{i(k)}$ for some $i(k) \in I$. (1)
The solution given was essentially this: Let $D = \left\{ \delta \in (0, 1] : \exists m \geq 1 \text{ and } 0 = t_0 < \cdots < t_m = \delta \text{ with property (1)} \right\}.$ We prove that $D$ is open and closed which implies $D$. Now the trouble starts. Essentially I have to main questions:
- Why does D beeing clopen imply that we solved the problem?
- How do I prove D is closed
The solution provided:
This may be trivial but I somehow have a hard time understanding this so I would be grateful for an explanation.

