EDIT: I have refined the proof as per @TedShifrin's recommendation.
This is problem 2.4.P1 from "Matrix Analysis" 2nd ed. by Horn and Johnson. Let $A\in M_n$ have distinct eigenvalues. Show that there is an $\epsilon > 0$ such that every $B\in M_n$ that satisfies $\lVert A - B \rVert_F^2 = \sum_{i,j=1}^n \lvert a_{ij}-b_{ij}\rvert^2 < \epsilon$ also has distinct eigenvalues. Conclude that the set of matrices with distinct eigenvalues is an open subset of $M_n$. Remark: we're supposed to use theorem 2.4.9.2 from the book to prove this.
Theorem 2.4.9.2
Let an infinite sequence $A_1,A_2,\ldots\in M_n$ be given and suppose that $\lim_{k\to\infty}A_k = A$ (entrywise convergence). Let $\lambda(A) = [\lambda_1(A) ~\ldots~ \lambda_n(A)]^T$ and $\lambda(A_k) = [\lambda_1(A_k) ~\ldots~ \lambda_n(A_k)]^T$ be given presentations of the eigenvalues of $A$ and $A_k$ respectively, for $k=1,2,\ldots$. Let $S_n = \{\pi ~:~ \pi ~\text{is a permutation of}~ \{1,2,\ldots,n\} \}$. Then for each given $\varepsilon > 0$ there exists a positive integer $N = N(\varepsilon)$ such that $$ \min_{\pi\in S_n}\max_{i=1,\ldots,n} \lvert \lambda_{\pi(i)}(A_k) - \lambda_i(A)\rvert \leq \varepsilon~\text{for all}~k\geq N. $$
Attempt
Define $\mathcal{B}_\epsilon(A) = \{ B\in M_n ~|~ \lVert A - B\rVert_F < \epsilon \}$, and assume for the sake of contradiction that for each $\epsilon > 0$ there is a $B\in\mathcal{B}_\epsilon(A)$ with at least one repeated eigenvalue. Let $(\epsilon_k)$ be an arbitrary, positive, strictly decreasing sequence, and let $B_k \in \mathcal{B}_{\epsilon_k}(A)$ have a repeated eigenvalue. Note then that $\epsilon_k$ decreasing implies that $\lim_{k\to\infty}B_k = A$ entrywise.
Now, let $\pi_k = \arg\min_{\pi\in S_n}\max_{i=1,\ldots,n} \lvert \lambda_{\pi(i)}(B_k) - \lambda_i(A)\rvert$, $c = \min_{i\neq j}\lvert \lambda_i(A) - \lambda_j(A)\rvert > 0$, and let $\beta_k = \lambda_{\pi_k(i_k)}(B_k) = \lambda_{\pi_k(j_k)}(B_k)$ be the repeated eigenvalue of $B_k$ for some $i_k\neq j_k,k=1,2,\ldots$. Theorem 2.4.9.2 states that for $\varepsilon < c$ there is an $N$ such that $\lvert \beta_k - \lambda_{i_k}(A)\rvert \leq \varepsilon/2$ and $\lvert \beta_k - \lambda_{j_k}(A)\rvert \leq \varepsilon/2$ for all $k \geq N$. But then $$ c \leq \lvert \lambda_{i_k}(A) - \lambda_{j_k}(A)\rvert\leq \lvert \beta_k - \lambda_{i_k}(A)\rvert + \lvert \beta_k - \lambda_{j_k}(A)\rvert\leq\varepsilon < c, $$ a contradiction. Since the sequence $(\epsilon_k)$, and consequently the sequence $(B_k)$ are arbitrary, we conclude that there is an $\epsilon$ such that every $B\in\mathcal{B}_\epsilon(A)$ has distinct eigenvalues.
Is this proof correct? My main concerns are whether the strict inequality holds, and whether the contradiction covers all cases.