[guided]Suppose $C$ is closed, $i \in C$, and $i \to j$. We need to show $j \in C$.
The assumption $i \to j$ means there exists $m \geq 1$ with $p_{i,j}(m) > 0$. The $m$-step probability can be decomposed as a sum over all possible paths of length $m$:
\begin{align*}
p_{i,j}(m) = \sum_{i_1, \ldots, i_{m-1} \in S} p_{i,i_1}\, p_{i_1,i_2} \cdots p_{i_{m-1},j}.
\end{align*}
This is a consequence of iterating the [Chapman--Kolmogorov Equations](/theorems/2207): we condition on the state at each intermediate time step. Every term in the sum is non-negative (as a product of probabilities), so if the sum is positive, at least one term must be positive. Fix such a term: there exist states $i_1, \ldots, i_{m-1}$ with
\begin{align*}
p_{i,i_1} > 0, \quad p_{i_1,i_2} > 0, \quad \ldots, \quad p_{i_{m-1},j} > 0.
\end{align*}
This is a path $i \to i_1 \to i_2 \to \cdots \to i_{m-1} \to j$ where every one-step transition has strictly positive probability.
Now we use the closedness of $C$ to "trap" the path inside $C$. Closedness means: for any state $a \in C$ and any state $b \notin C$, we have $p_{a,b} = 0$. Equivalently, if $a \in C$ and $p_{a,b} > 0$, then $b \in C$.
Start with $i \in C$. Since $p_{i,i_1} > 0$ and $i \in C$, closedness gives $i_1 \in C$. Since $p_{i_1,i_2} > 0$ and $i_1 \in C$, closedness gives $i_2 \in C$. Continuing step by step along the path, we deduce $i_1, i_2, \ldots, i_{m-1} \in C$. The final step: $p_{i_{m-1},j} > 0$ and $i_{m-1} \in C$ gives $j \in C$.
The key insight is that closedness is a one-step condition ($p_{i,j} = 0$ for $j \notin C$), but by applying it inductively along a path, it controls multi-step reachability: no path starting in $C$ can ever leave $C$.[/guided]