Inject into Rationals!

by greenturtle3141, Mar 1, 2023, 5:00 AM

Alright I need to put out a new blog post before the month ends otherwise my readers get mad so uhhhhhhh here is this cool trick.

EDIT: I have failed to release the post in February by a minute. This is extremely sad.

Reading Difficulty: 2.5/5

Prereqs:
  • Know what injective/bijective/surjective functions are
  • Know the difference between a countably infinite set and an uncountably infinite set (both Google-able!)


Background

Rational numbers are basically fractions between integers and natural numbers. Since both integers and naturals are countable, we know that the set of rational numbers is, perhaps surprisingly, countable.

(If you need a quick refresher, recall that a set is countable if, roughly speaking, you can "count them up" one-by-one, possibly forever, such that you're guaranteed to reach any particular element of the set eventually. More formally, a set $S$ is countable if there exists an injective function $f:S \to \mathbb{N}$, i.e. "$S$ is a set that is smaller than the size of the natural numbers".)

Why is this surprising? It's because the rationals are dense. Basically, a dense set is a set that is "close to everything". In the case of the rationals, $\mathbb{Q}$, we say that this set is "dense in $\mathbb{R}$" because every real number can be approximated as closely as you want with a rational number. Some interesting consequences of this are:
  • If you look at any non-empty interval of $\mathbb{R}$, it contains a rational.
  • There is always a rational number between any two different real numbers.
  • If we look at the set $\mathbb{Q}^2$ of rational points, which is the set of all points $(x,y)$ both of whose coordinates are rational, then this set is also "dense in $\mathbb{R}^2$", which roughly means that if you draw and circle, it will always contain a rational point.
So, rational numbers are really, really everywhere... and yet, if you decide to color a number line red and blue, with rational numbers red and irrational numbers blue, you'd see that the number line is painted overwhelmingly blue, because there are uncountably many irrational numbers but "only" countably many rational numbers. Sad!

....or is that really sad? In this post, we will see that the rational numbers being both countable and dense at the same time is extremely powerful.

Specifically, we will use this fact (called "separability of $\mathbb{R}^N$") to prove that certain things are well-behaved or that certain sets are small (i.e. at most countable).

Let's Have Fun!

Victim 1: If a function $f:\mathbb{R} \to \mathbb{R}$ is increasing (not necessarily strictly; that is, if $x < y$ then $f(x) \leq f(y)$), then the number of discontinuities of $f$ is at most countable.

Proof.
  • Each discontinuity is a jump discontinuity (I'm going to take this for granted because I want to make this post accessbile, but in university real analysis this is a fact that would demand proof).
  • At every such discontinuity, $f$ jumps from $a$ to $b$ where $a < b$.
  • But there is a rational between $a$ and $b$.
  • Since the rationals are countable, the number of jumps is at most countable. End of proof.

Whoa. Let's try and dive into the logic a bit deeper.
  1. First, I found a property that the things I'm trying to count have. In this case, this property is the "jump".
  2. Then, I found a way to relate this property to the rationals. In this case, I use the fact that there is a rational number between any two distinct real numbers.
  3. Finally, I use this relation to assign every object in the set to a different rational number. formally... It is essential that each jump gets assigned to a different rational number! Remember, the punchline we want to show is that there can't be more jumps than rational numbers. I'm chilling here because no two jumps can "cross" since $f$ is increasing, so indeed each jump will be assigned to a different rational.

Victim 2: A set $S \subseteq \mathbb{R}$ is called "isolated" if for every number $x$ in $S$, we can find a small positive number $\varepsilon_x$ such that $x$ is the only element of $S$ inside the interval $(x-\varepsilon_x,x+\varepsilon_x)$. Prove that every isolated set is at most countable.

Proof. We want to pick a rational number inside each of those intervals, but they might overlap. The trick for preventing this is to shrink every interval's size in half! Is it possible for two intervals $(x-\varepsilon_x/2,x+\varepsilon_x/2)$ and $(y-\varepsilon_y/2,y+\varepsilon_y/2)$ to overlap, where $x$ and $y$ are two different elements of $S$?

It turns out that they cannot overlap. To formally prove this, assume without loss of generality that $\varepsilon_x \leq \varepsilon_y$. If the intervals overlap, there is a real number $z$ such that $|x-z| < \varepsilon_x/2$ and $|y-z| < \varepsilon_y/2$. By the triangle inequality, we can then write
$$|x-y| \leq |x-z| + |y-z| < \varepsilon_x/2 + \varepsilon_y/2 \leq \varepsilon_y/2 + \varepsilon_y/2 = \varepsilon_y.$$This means that $x$ is an element of $S$ that is within $\varepsilon_y$ of $y$, which is a contradiction!

Now we can freely pick a rational number inside every interval $(x+\varepsilon_x/2,x-\varepsilon_x/2)$ over all $x \in S$. No two intervals overlap, so we pick a different rational every time. So the intervals are at most countable. So $S$ is at most countable. $\square$

Super-Duper Injecting!

Remember how we mentioned in the introduction that $\mathbb{Q}^2$ is a dense subset of $\mathbb{R}^2$? This is amazing - $\mathbb{Q}^2$ is also countable! And $\mathbb{Q}^3$ is countable! And $\mathbb{Q}^4$ is countable! And... uh... yeahhhh you see where this is going don't you?

Victim 3: Consider a function $f:\mathbb{R} \to \mathbb{R}$. We say that $f$ has a strict local minimum at some point $x \in \mathbb{R}$ if, for some small number $\varepsilon > 0$, we have that $f(x) < f(y)$ for every $y$ that is within $\varepsilon$ of $x$, i.e. for every $y$ such that $0 < |x-y| < \varepsilon$. Example

Prove that the number of strict local minima of $f$ is at most countable.

Proof.

This is harder now. But just remember the protocol: Start by finding some nice property of the thing we're counting, and then try and associate it with rationals...

Ok, let's take some $x$ where $f$ has a strict local minimum. Then we can find $\varepsilon > 0$ such that $f(y) > f(x)$ for all $y$ satisfying $0 < |x-y| < \varepsilon$. Hm... could we just pick a rational in the interval $(x-\varepsilon,x+\varepsilon)$?

Unfortunately no! This is because we're not guaranteed that the the intervals won't overlap, so we might pick the same rational twice. For example, it could be the case that the function goes down and up again within the interval $(x,x+\varepsilon)$. Bummer!

We need more power... hmmmmmmmmmmmmmmmm.... what if we picked TWO rationals instead?

Yeah! Let's pick a rational $r$ inside $(x-\varepsilon,x)$ and another rational $s$ inside $(x,x+\varepsilon)$. So, for every $x$, we pick two rationals $r$ and $s$ such that:
  • $f(y) > f(x)$ for all $y$ between $r$ and $x$, and
  • $f(y) > f(x)$ for all $y$ between $x$ and $s$.
Is it possible that we end up picking the same TWO rationals for two different $x$'s?

Let's take two different points $x$ and $x'$ where $f$ has a strict local minimum, with $x < x'$, and let us assume for contradiction that we choose the same rational numbers $r$ and $s$ for them. Then $r < x < x' < s$. Now:
  • Since we chose $r$ for the point $x'$, we know that $f(y) > f(x')$ for all $y$ between $r$ and $x'$. Since $r < x < x'$, we can plug in $y = x$ to get $f(x) > f(x')$.
  • Since we chose $s$ for the point $x$, we know that $f(y) > f(x)$ for all $y$ between $x$ and $s$. Since $x < x' < s$, we can plug in $y = x'$ to get $f(x') > f(x)$.
So $f(x) > f(x')$ and $f(x) < f(x')$. Contradiction!

So, we have successfully associated every strict local minimum with a different pair of rationals $(r,s) \in \mathbb{Q}^2$. Since $\mathbb{Q}^2$ is at most countable, so is the number of strict local minima. Voila! $\square$

Moral of the story: Pick more rationals to gain more info! We can pick as many rationals as we want (as long as its finite...) in order to uniquely characterize the thing we're looking at more and more.

Victim 4: Is it possible to draw uncountably many non-intersecting figure-8-shapes in the plane?
https://i.imgur.com/GXRrVfe.png

(They don't have to look so round; they just need to be two loops attached to each other.)

Answer: No.

Proof. Last time we injected into $\mathbb{Q}^2$. This time, we're going to inject into $\mathbb{Q}^4$! For each figure-8, pick two rational points: One rational point in one loop, and another rational point in the other. (Since each rational point consists of two rationals, we're indeed choosing a total of $2 \times 2 = 4$ rational numbers!)

https://i.imgur.com/jJdykdE.png

Is it possible to choose the same two rational points for two different figure-8's? The answer is no! Try it for yourself: It's pretty hard for two different 8's to share the same two points without intersecting each other...

https://i.imgur.com/JOA4qK0.png

...rigorously proving this is a job for a topologist though. And I am no topologist. Onwards! $\square$

The next example is the highlight of this post.

Victim 5: Can you draw uncountably many non-intersecting Y-shapes in a plane?

https://cdn.discordapp.com/attachments/967917863543394344/1027972473427337226/unknown.png

The solution is so good that I'm going to spoiler it. Consider thinking about it for yourself before revealing the insane methodology.

Hint 1

Hint 2

Hint 3 (MAJOR SPOILERS)

Solution

Your Turn
  1. Is it possible to place uncountably many carpets (of positive length and width) on an infinite plane, without any of them overlapping? Why or why not?
  2. We can define strict local minimums for 3D functions too! When $f:\mathbb{R}^2 \to \mathbb{R}$ is a function, we say that $f$ has a strict local minimum at $(x,y)$ if we can find a small positive $\varepsilon$ such that for all points $(w,z)$ (distinct from $(x,y)$) within a distance $\varepsilon$ of $(x,y)$, we have $f(w,z) > f(x,y)$.

    Prove that again, the number of strict local minimums of $f$ is at most countable.
  3. Prove that any function $f:\mathbb{R} \to \mathbb{R}$ has at most countably many jump discontinuites. ($f$ has a jump discontinuity at $x$ if the left limits $f_-(x)$ and $f_+(x)$ both exist, but are not equal to each other.)
  4. (Harder) Let $f:\mathbb{R} \to \mathbb{R}$ be a function. Call a point $x \in \mathbb{R}$ bad if the left derivative $f'_-(x)$ and right derivative $f'_+(x)$ both exist, but they are not equal to each other. Prove that the number of bad points is at most countable.
This post has been edited 10 times. Last edited by greenturtle3141, Mar 1, 2023, 7:42 AM

Comment

1 Comment

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
....
Amazing
...
Finally, one I understand even sort of
...
Amazing
...

by Amkan2022, Mar 16, 2023, 8:38 PM

Turtle math!

avatar

greenturtle3141
Archives
+ October 2024
Shouts
Submit
  • Can you give some thought to dropping a guide to STS? Just like how you presented your research (in your paper), what your essays were about, etc. Also cool blog!

    by Shreyasharma, Mar 13, 2025, 7:03 PM

  • this is so good

    by purpledonutdragon, Mar 4, 2025, 2:05 PM

  • orz usamts grader

    by Lhaj3, Jan 23, 2025, 7:43 PM

  • Entertaining blog

    by eduD_looC, Dec 31, 2024, 8:57 PM

  • wow really cool stuff

    by kingu, Dec 4, 2024, 1:02 AM

  • Although I had a decent college essay, this isn't really my specialty so I don't really have anything useful to say that isn't already available online.

    by greenturtle3141, Nov 3, 2024, 7:25 PM

  • Could you also make a blog post about college essay writing :skull:

    by Shreyasharma, Nov 2, 2024, 9:04 PM

  • what gold

    by peace09, Oct 15, 2024, 3:39 PM

  • oh lmao, i was confused because of the title initially. thanks! great read

    by OlympusHero, Jul 20, 2024, 5:00 AM

  • It should be under August 2023

    by greenturtle3141, Jul 11, 2024, 11:44 PM

  • does this blog still have the post about your math journey? for some reason i can't find it

    by OlympusHero, Jul 10, 2024, 5:41 PM

  • imagine not tortoise math

    no but seriously really interesting blog

    by fruitmonster97, Apr 2, 2024, 12:39 AM

  • W blog man

    by s12d34, Jan 24, 2024, 11:37 PM

  • very nice blog greenturtle it is very descriptive and fascinating to pay attention to :-D

    by StarLex1, Jan 3, 2024, 3:12 PM

  • orz blog

    by ryanbear, Dec 6, 2023, 9:23 PM

67 shouts
Tags
About Owner
  • Posts: 3553
  • Joined: Oct 14, 2014
Blog Stats
  • Blog created: Oct 23, 2021
  • Total entries: 54
  • Total visits: 40509
  • Total comments: 126
Search Blog
a