5

Let $\mathbb{Q}$ be the topological space of rational numbers (with topology induced by inclusion in the real line) and let $\mathbb{Q}^+$ be the set of positive ($x>0$) rationals.

I'm looking for a simple construction of a homeomorphism $\phi: \mathbb{Q} \rightarrow \mathbb{Q}^2$ (not using an abstract result). In an early post, it was suggested to use continued fractions, but this has problems with negative numbers. My idea is we can first make a homeomorphism $f: \mathbb{Q}^+ \rightarrow \mathbb{Q}$ via $f(x) = (x-1)^3/x$ and then we can just worry about $\mathbb{Q}^+$.

Then the homeomorphism $\phi: \mathbb{Q}^+ \rightarrow (\mathbb{Q}^+)^2$ would just go like

$[a_0, a_1, ..., a_n] \rightarrow ([a_0, a_2, ...], [a_1, a_3, ...])$

this seems to be obviously bijective, and I believe it is bicontinous just based on the idea that two continued fractions are close if and only if enough of their initial terms agree (which sounds plausible).

Does this make sense? Or am I missing something? Thanks for your help.

  • 2
    Is $Q$ meant to be the rationals? And if so $Q^+$, means positive or non-negative? – YCor Aug 16 '19 at 21:55
  • 5
    @YCor, let $\ X\ $ be an ordered set, and $\ a\in X.\ $ I wish, people would use notation $\ X_{>a}\ $ and $\ X_{\ge a}.$ – Wlod AA Aug 16 '19 at 22:06
  • Q is the set of rationals and Q^+ is the set of all rationals positive rationals, x>0 – stargazer Aug 16 '19 at 22:13
  • 4
    Finite continued fraction expansions are not unique, so you have to be careful about that. Your "just go like" expression seems that it would miss some pairs, but this is unclear since you drop the lengths of the left and right compontents in the ellipses. – François G. Dorais Aug 16 '19 at 22:14
  • oh, not unique? I see. Thanks! If it was unique I don't think it would miss any pairs ... (the elipses end at the last odd, resp last even entry of the original – stargazer Aug 16 '19 at 22:16
  • 2
    Every rational has two continued fractions, one that ends with 1 and another that doesn't end with 1. – François G. Dorais Aug 16 '19 at 22:18
  • 1
    So you can't get $([1,2,3,4,5,6,7,8,9],[1,2,3])$ that way. It's not onto. – François G. Dorais Aug 16 '19 at 22:27
  • 3
    $f(\mathbb{Q}^+)$ isn’t $\mathbb{Q}$ – Gabe Conant Aug 17 '19 at 00:20
  • 4
    (By the way, this trick does work to get a bijection from irrationals to pairs of irrationals.) – François G. Dorais Aug 17 '19 at 02:55
  • Thanks, Gabe and Francois. – stargazer Aug 17 '19 at 03:21
  • 1
    The Calkin-Wilf representation gives an explicit bijection between positive rationals and the set $T$ of nodes in the infinite binary tree, but I'm not seeing a clean and natural bijection $T \cong T \times T$. There is of course a natural bijection $T \cong T^2 + 1$, and Andreas Blass (in his Seven Trees in One article) observed that this could be exploited to yield a natural bijection $T \cong T^7$. So if you had asked for a natural bijection $\mathbb{Q}+ \cong \mathbb{Q}+^7$, then this might just work. :-D – Todd Trimble Aug 18 '19 at 05:47
  • 2
    @FrançoisG.Dorais This is how Cantor originally showed $\Bbb R^2 \simeq \Bbb R$: show $\Bbb R \simeq \Bbb P$ (irrationals) and use continued fractions for $\Bbb P^2 \simeq \Bbb P$... – Henno Brandsma Aug 18 '19 at 06:01
  • 1
    By the way, I do not see why your proposed homeomorphism $f: \mathbb Q^+ \rightarrow \mathbb Q$ should be surjective either. For this step at least, there are viable homeomorphisms e.g. in https://math.stackexchange.com/q/119022/96384 – Torsten Schoeneberg Apr 11 '22 at 04:53

2 Answers2

2

This was to be a comment, but it is too long, consider this a partial answer then.

Here is an attempt: use the standard continued fraction, the one with all numerators equal to $1$. So a rational in $(0,1)$ corresponds to a finite sequence $[a_1,\ldots,a_n]$; turn that sequence into an infinite sequence (continued fraction) $[a_1+1,\ldots,a_n+1,1,1,1,\ldots]$. The subspace $Q_1$ of such irrational numbers (or such sequences in $\mathbb{N}^\mathbb{N}$) is homeomorphic to $\mathbb{Q}\cap(0,1)$. Interlacing two such sequences produces a subspace $Q_2$ of the irrationals (or of $\mathbb{N}^\mathbb{N}$) that is homeomorphic to the square of $Q_1$ via the homeomorphism between $\mathbb{N}^\mathbb{N}$ and its square. I have not yet found a convenient way to show that $Q_1$ and $Q_2$ are homeomorphic.

They are of course both countable and dense-in-itself subspaces of the unit interval, hence homeomorphic by a back-and-forth argument.

KP Hart
  • 9,815
  • 32
  • 42
2

Here is one way to form a (not very) explicit homeomorphism.

As has been mentioned, the function $\phi=(\phi_0,\phi_1)$ from the question applied to the set $I^{>1}$ of irrationals greater than $1$ gives you a homeomorphism $I^{>1}\to I^{>1}\times I^{>1}$. So we will be done if we find a homeomorphism from $\mathbb{Q}$ to a countable subset $A\subseteq I^{>1}$ such that $x\in A$ iff $(\phi_0,\phi_1)(x)\in A\times A$ (equivalently, $A=\phi_0(A)=\phi_1(A)$).

We can achieve that if our set $A$ is dense in $I^{>1}$ and we have an enumeration of $A$: then we can follow the proof of Cantor's isomorphism theorem to get an explicit order isomorphism between $A$ and $\mathbb{Q}$ (and thus a homeomorphism, as both sets have their order topologies).

For example we can take $A=\mathbb{I}^{>1}\cap (\mathbb{Q}+\mathbb{Q}\sqrt{2})$, the set of irrationals $>1$ with periodic continued fraction.

P.S. I know almost nothing about continuous fractions, but this could be made more explicit if there was a set $A$ as above and such that we know a homeomorphism from $\mathbb{Q}$ to $A$ without using Cantor's isomorphism theorem. We don't even need the condition $A=\phi_0(A)=\phi_1(A)$ if we know enumerations of $A,\phi_0(A)$ and $\phi_1(A)$ and explicit homeomorphisms of them with $\mathbb{Q}$.

Saúl RM
  • 7,916