This is the proposition: A monotone function $f:D\rightarrow\mathbb R$, where $D$ is included in $\mathbb R$, has one-sided limits in every accumulation point of $D$ (not necessarily in $D$.
I actually have the proof, but I don't like because it uses an analogy: it uses a arbitrary sequence $x_n$ that tends to an arbitrary accumulation point of $D$ (from one side) to prove that $f(x_n)$ tends to a finite or infinite limit.
Anyway, as the sequence doesn't have to be ordered, it doesn't have to be monotone. But the proof assumes that they are ordered because "is the same thing", in my context, it means that no matter the order, the sequence still has a limit. I don't understand why it is the same thing, what does make it an analogy? What's the key? Thanks in advance!
Hint:
Well, can you prove that every sequence $\left(x_n\right)_{n\in\mathbb{N}}\subseteq\mathbb{R}$ has a monotone subsequence $\left(x_{k_n}\right)_{n\in\mathbb{N}}$? Give it a try and infrom us about your resutls.
Edit: Now, the sequence $(x_n)$ you are given converges to an accumulation point $x$ of $D$ and $x_n\leq x$ - from "one side". Now, there is a subsequence $(x_{k_n})$ of $(x_n)$ which is monotone. Since it is a subsequence of $(x_n)$ and $x_n\to x$, we also have that: $$x_{k_n}\to x$$ Now, let $y_n=x_{k_n}$ and you have a sequence that is monotone, converges to $x$ and $y_n\leq x$. This is why it does not matter to consider your sequence monotone.
Further Edit: Due to $(y_n)$ being monotone, we also have that $(f(y_n))$ is monotone and, hence, it is either convergent or diverges to $\pm\infty$ (assume the case where $f$ is increasing, so it should be $+\infty$). Let now $l\in\mathbb{R}\cup\{+\infty\}$ be that limit, so $$\lim_{n\to\infty}f(y_n)=l$$