3

It is established that there exist functions that, on any interval, take on all real values (see Function whose image of every open interval is $(-\infty,\infty)$ and Is there a function $f\colon\mathbb{R}\to\mathbb{R}$ such that every non-empty open interval is mapped onto $\mathbb{R}$? ).

Below is a facile proof, which I believe incorrect: Any interval in $\mathbb{R}$ has cardinality $C$, equal to the cardinality of $\mathbb{R}$ itself. By definition of equal cardinality, a function exists between the two sets creating a one-to-one correspondence. QED.

I believe this proof is incorrect, because it shows $f$ exists for any particular interval, but doesn't show that the same $f$ can be defined over multiple overlapping intervals. However, I don't find this objection to be very robustly formulated.

Can you strengthen my objection to the "proof"? Can you provide another objection?

SRobertJames
  • 4,278
  • 1
  • 11
  • 27
  • 3
    I'd say your objection is fine: the "proof" just shows that, given any specific interval $J$, there's a function $f_J$ such that $f_J(J)=\mathbb{R}$. It's not at all obvious how to use these functions $f_J$ to define a single function $f$ such that $\forall_J f(J)=\mathbb{R}$. (A meta-objection is that the "proof" seems like it may rely on circular reasoning... why are you able to use the fact that any interval has the same cardinality as the whole line?) – mjqxxxx May 03 '21 at 02:19

1 Answers1

10

Your argument just proves that for each interval, there is a function for that interval.

This is not the same as proving there is one function which works for all intervals.

For example, if $f : (-1, 1)\to \mathbb R$ is $\tan\left(\frac{\pi}2x\right)$ then $f$ works for $(-1,1),$ but it doesn’t work for $(0, 1)$ – you’d need a different function for $(0,1).$


This is an example which shows that you can’t, in general, swap existential quantifiers without changing the meaning of a statement.

$$\exists f:\forall (a,b): f((a,b))=\mathbb R$$

is not the same thing as:

$$\forall (a,b):\exists f: f((a,b))=\mathbb R.$$

Thomas Andrews
  • 177,126