Let $A$ be an ordered set, with the following properties:
- $A$ is countable
- $A$ has a least and greatest element
- Between any two points with successors are points without successors; between any two points without successors are points with successors
Must $A$ be order-isomorphic to $\mathbb Q\cap\mathcal C$, where $\mathcal C$ is the Cantor set?
I'm pretty sure this is true but I'm not quite sure how to prove it. (This is not for homework.)
Corrected. Not quite. First, it can be isomorphic to $\Bbb Q\cap(\mathscr{C}\cup F)$ for any $F\subseteq\{-1,2\}$, since the first point can have a successor, and the last can be a successor. More important, the third condition isn’t quite strong enough to do what you want. As Eric Wofsey reminded me in the comments, your conditions allow $A$ to be $(\Bbb Q\cap[0,1])\times\{0,1\}$ with the lexicographic order, and this isn’t order-isomorphic to $\Bbb Q\cap\mathscr{C}$: every point of this $A$ either has or is an immediate successor, something that is not true of $\Bbb Q\cap\mathscr{C}$. You need to strength the third condition to ensure that $A$ has not only a dense set of points with immediate successors, but also a dense set of points that neither have nor are immediate successors. Once you take care of these problems, however, a standard back-and-forth argument will yield the desired result.
Let $S$ be the set of points of $A$ having successors, and for each $x\in S$ let $x^+$ be the successor of $x$. Let $S^+=\{x^+:x\in S\}$, and enumerate $A\setminus S^+=\{x_n:n\in\Bbb N\}$. Let $Q=\Bbb Q\cap\mathscr{C}$, let $S_Q$ be the set of points of $Q$ with immediate successors in $Q$, for $x\in S_Q$ let $x^+$ be the successor of $x$, let $S_Q^+=\{x^+:x\in S_Q\}$, and enumerate $Q\setminus S_Q^+=\{y_n:n\in\Bbb N\}$.
Now just carry out a standard back-and-forth argument to construct an order-isomorphism $h:Q\to A$. Suppose that $n\in\Bbb N$, $h(x_k)$ has been defined for each $k<n$, and $h(x_k^+)$ has been defined for each $k<n$ for which $x_k\in S_Q$.
It’s clear that $h$ defines an order-isomorphism of $Q$ into $A$, and the usual argument shows that $h$ is surjective.