I'm trying to connect the definition of dense in a total ordered set
Def. 1 Given total order $(X,\le)$, a set $S\subseteq X$ is dense in $X$ if for any $x,x'\in S$ such that $x<x'$, there is $y\in S$ such that $x<y<x'$.
with the definition of dense-in-itself in a order topology (induced by the same total order)
Def. 2 Given the order topology $(X,\tau)$ with total order $\le$, a set $S\subseteq X$ without isolated points is called dense-in-itself.
The comparison is taken from the answer: dense in terms of order and in terms of the order topology, and is formulated as
Lemma 1. Given a totally ordered set $(X,\le)$ then $S\subseteq X$ in the induced order topology is dense-in-itself according to Definition 2 if and only if $S$ is dense according to Definition 1.
Proof. If $S$ is dense-in-itself then it has no isolated points and consists only of limit points. Given any two $x,x'\in S$ such that $x<x'$, then $(x,x')$ is not empty because (*)
On the other side, if $S$ is dense according to the total order definition, suppose that $S$ has an isolated point, that is, there is an open set containing only $x$, which contradicts Lemma ??? (the order topology consists of unions of open intervals and rays).
Is the Lemma true? How do I proceed with the proof at point (*)? Intuitively it is clear: To have a hole with $x$ and $x'$ on its ends and $x,y\in S$ then $S$ cannot be open. Should I add the condition that $S\in\tau$ to make the Lemma valid? From the answer in the cited question it seems to be the case, but I need anyway to understand how to prove it because the argument "Since X is dense in terms of topology, there is an x in (a,b)" is not enough for me to understand.
The starting point of the reasoning was to connect the definition of dense according to a total order and this third definition:
Def. 3 Given a topological space $(X,\tau)$, subset $S\subseteq X$ is said to be dense if $\bar{S}=X$. Generally given a subset $D\subseteq S$, $D$ is said to be dense in $S$ if $S\subseteq \bar{D}$.
If I take literally "dense-in-itself" and apply it to Def. 3 I would get the following lemma
Lemma 2
$S\subseteq X$, $S$ is dense-in-itself if and only if $S\subseteq\bar{S}$.
which is wrong since the r.h.s. is always true. It cannot be that all (let restrict it to) open set are dense in order topology?
How are connected Definitions 2 and 3?