Prove that the following statements are equivalent.
(a) $\lim_{x\to a}f(x)$ exists
(b) Given $\epsilon \gt 0$, there is a $\delta \gt 0$ such that if $0\lt |x-a| \lt \delta, 0\lt |y-a| \lt \delta$, then $|f(x)-f(y)|\lt \epsilon.$
(a) $\to$ (b) is easy. But I'm having trouble showing $(b)\to (a)$, actually I'm not even sure if this direction is true.
My initial thought was that I can prove this by the contrapositive. For some $\epsilon \gt 0$, suppose the limit does not exist at $a$. Then there are some sequences $x_n$, $y_n$ such that they both tend to $a$, but are never $a$, however, $\lim f(x_n)\neq \lim f(y_n)$. Then since $\lim x_n=\lim y_n=a$, we can choose a large enough $N$ such that if $n\ge N$, then $|x_n-a|\lt \delta, |y_n-a|\lt \delta$. Then we get $|f(x_n)-f(y_n)|\gt 0$.
However, I realized that I cannot prove that such $x_n$ and $y_n$ exist in the first place. From definition, the function $f$ does not have a limit at $a$ if and only if there exists a sequence $x_n$ with $x_n\neq a$ for all $n\in \mathbb{N}$ such that the sequence $x_n$ converges to $a$ but the sequence $f(x_n)$ does not converge in $\mathbb{R}$. This does not mean that I can find two sequences with different limits from the function values.
How can I solve this problem? I would greatly appreciate any help.