Left to Solve
Problems / MathOverflow (not formalized)

Does using continued fractions work to give a homeomorphism $\mathbb{Q}^+ \rightarrow (\mathbb{Q}^+)^2$?

Open, not yet stated in LeanMathOverflow (not formalized)General Topologydifficulty55/100

Statement

Let be the topological space of rational numbers (with topology induced by inclusion in the real line) and let be the set of positive () rationals.

I'm looking for a simple construction of a homeomorphism (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 via and then we can just worry about .

Then the homeomorphism would just go like

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.

Posed by stargazer · gn.general-topology, continued-fractions

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-338523.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-338523.lean

import Mathlib

/-!
# Does using continued fractions work to give a homeomorphism $\mathbb{Q}^+ \rightarrow (\mathbb{Q}^+)^2$?

Source: https://mathoverflow.net/questions/338523
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_338523

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_338523