Can a Continuous Function Map Reals to Rationals?

  • Thread starter Thread starter JasonRox
  • Start date Start date
  • Tags Tags
    Continuous
Click For Summary
A continuous function mapping real numbers to rational numbers cannot exist due to fundamental topological differences between the two sets. The reals are connected, while the rationals are totally disconnected, which means any continuous image of a connected space must also be connected. The discussion highlights that if such a function existed, it would lead to contradictions involving limit points and closed sets. The Intermediate Value Theorem further supports this conclusion, as it implies that the image of a continuous function from reals must also form an interval, which cannot be entirely composed of rationals. Ultimately, the consensus is that no continuous function can map reals to rationals.
  • #31
theorem: every continuous function from the reals to the rationals is constant.
proof the image of the map is an interval containing only rationals, hence of form [c,c].
 
Physics news on Phys.org
  • #32
mathwonk said:
theorem: every continuous function from the reals to the rationals is constant.
proof the image of the map is an interval containing only rationals, hence of form [c,c].

Yes, but doesn't this theorem only hold for the rationals with the relative topology with respect to the real numbers with the usual topology?

If you give the rationals the indiscrete topology, isn't every function continuous?
 
  • #33
Yes, but of course, when asking if there is a continus map between sets X and Y we always need to think of the given topologies on sets, since the question is ill-defined otherwise.
 
  • #34
DeadWolfe said:
Yes, but of course, when asking if there is a continus map between sets X and Y we always need to think of the given topologies on sets, since the question is ill-defined otherwise.

Well yeah, but my question a few posts ago asks about a possible metric topology on the rationals such that you can create a continuous function from the reals (usual topology) to the rationals (with new metric topology).

Haven't gave much thought yet. I should write a list of things to think about.
 
  • #35
Of course there are continuous functions from the Reals to the rationals, as has been repeatedly pointed out (constant maps). Perhaps you mean continuous *surjections*, or even just non-constant continuous maps.

Yes if f:X\to Y is map either from the discrete or to the indiscrete topology it is trivially continuous.

Mind you, what metric d'ya think gives the indsicrete topology?
 
  • #36
matt grime said:
Mind you, what metric d'ya think gives the indsicrete topology?

There is none of course.
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
4K
Replies
5
Views
3K
Replies
24
Views
6K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K