about « all posts

A Curious Topology

Aug 21 2024 · 5 min read
#maths #analysis

When I took my first proper analysis course in undergrad, I always lacked of appreciation of the $$\varepsilon$$’s and the $$\delta$$’s in “real life problems”. Myself from a decade ago could have appreciated this post on how seemingly bizarre concepts can pop up in superficially unrelated applications.

I will start with introducing/recalling some basic concepts from topology. Working with a space such as the Euclidean space $$\mathbb{R}^n$$, we define a generalization of an interval as some $$\mathcal B_{r,p}$$: a “ball” of radius $$r$$ around a point $$p\in \mathbb{R}^n$$. In 2D/3D ($$n=2$$, or $$3$$), this looks exactly how we expect it to be: a circle/sphere of radius $$r$$ centered around the point $$p$$. This simply generalizes the idea of an open interval $$(-r,r)$$ on the real line, which defines the set of all real numbers $$x$$ such that $$-r< x < r$$. Note that I have tactfully left the definition of distance undefined in this scenario. An open set is then one where no matter where you pick a point, I can find a ball of some radius $$r>0$$ such that the ball lies completely within the said set. Think of this as an orange which is “peeled off” and no matter how much you zoom in at the “surface”, you can not find a peel. In the absence of the peel, no matter how close to the surface a point you pick, I can find a ball of some positive radius around the point that fits entirely within the peeled orange. Sounds bizarre, but that is how we define an open set, which makes defining a closed set much easier. Some set $$E\subseteq \mathbb{R}^n$$ is closed, if its complement $$E^c$$ is open. An interesting result of this definition is that open sets (that are nonempty) have uncountably many points in them (this is a consequence of the fact that you can find a ball of some $$r>0$$ no matter where one picks the point in the set). So far so good.

These open and closed sets form the building blocks of a topology on a set $$E$$. Let a family of subsets of $$E$$, say, $$\sigma$$ contain the empty set and the set $$E$$ itself, and aditionally, $$\sigma$$ is closed under finite union and possibly infinite intersections of sets. That is, if $$\sigma$$ is a family of sets in $$E$$, then in addition to $$\emptyset$$ and $$E$$ being in $$\sigma$$, the union of any number of sets in $$\sigma$$ is also in $$\sigma$$, and so is the itersection of any number of sets in $$\sigma$$. If so, then $$\sigma$$ is called a topology on $$E$$. This simply allows us to study how points on $$E$$ are spatially related to each other. If you push or pull or morf the set $$E$$, what happens to the points relatively? Seems like a useful thing, especially when dealing with distances, measures, and higher dimensional spaces. But wait, there’s more. Wasn’t this post supposed to be about topology arising in weird ways? Yes! Now that we know what is an open and a closed set and what comprises a topology, let us define an interesting topology on $$\mathbb{Z}$$, the set of all integers. This way, we will use topology to prove a seemingly uninteresting result in number theory!

Define $$N_{a,b}=\{a+nb : n\in\mathbb{Z}\}$$, that is, the set of all integer multiples of $$b$$, shifted by $$a$$, for some integers $$a, b$$. In other words, $$N_{a,b}$$ is the double-sided arithmetic progression $$..., a-2b, a-b, a, a+b, a+2b, ...$$ with the common difference between successive terms being $$b$$. Some set $$O$$ is open in $$\mathbb{Z}$$ if it is nonempty, and for all $$a\in O$$, you can pick some integer $$b$$ such that $$N_{a,b}\subseteq O$$. That is, some arithmetic progression can always be found such that it lies entirely within the set $$O$$ for it to be open. Clearly, if $$O_1,O_2$$ are two such open sets, with their own common differences $$b_1$$ and $$b_2$$, then their union is also open. But what about their intersection $$O_1 \cap O_2$$?

Let $$a$$ be some point that lies in the intersection of the two sets. Since $$N_{a,b_1}$$ lies in $$O_1$$ by definition (and similatly $$N_{a,b_2}\subseteq O_2$$), then of course taking the sub-progression $$N_{a, b_1b_2}\subseteq O_1, O_2$$. Simply because if I go in steps of $$b_1\cdot b_2$$, all terms would by default lie in the arithmetic progression that goes in steps of $$b_1$$ and also the progression with step $$b_2$$. This means that intersections of open sets is also open in this scheme. Note that nonempty open sets are also infinite here as well. Therefore, we are dealing with a bonafide topology on integers here.

Now the curious open set $$N_{a,b}=\mathbb{Z} \setminus \cup_{i=1}^{b-1} N_{a+i, b}$$ is the complement of open sets in $$\mathbb{Z}$$, and so $$N+{a,b}$$ is a closed set as well (such sets are called “clopen” sets). And this is where the interesting result begins!

Now any integer $$n$$ has at least one prime factor, say $$p$$, unless of course $$n=-1$$ or $$n=+1$$. This means that any arithmetic progression with $$a=0$$ and common difference $$p$$ would have the number $$n$$ at some position since $$p$$ divides $$n$$. That is, $$N_{0,p}$$ contains the number $$n$$. Also, this is true for any such number $$n\neq \pm 1$$. Therefore, we can construct all integers except $$\pm 1$$ this way as follows:

\[\mathbb{Z} \setminus \{-1,1\} = \bigcup_{p\in\mathbb{P}} N_{0,p}\]

where we are taking unions over all possible prime numbers, cutely contained in the set $$\mathbb{P}$$.

Now if the set of all prime numbers $$\mathbb{P}$$ is finite, then the finite union $$\cup_{p\in\mathbb{P}} N_{0,p}$$ on the right hand side is closed $$\Rightarrow$$ the set $$\{-1,1\}$$ must be open (since its complement in $$\mathbb{Z}$$ is precisely the left hand side)! But that can not be the case as $$\{-1,1\}$$ is not open in this scheme. Therefore, there must be infinitely many prime numbers!

This proof of infinitely many primes using tpology is the fifth proof in the Chapter “Six Proofs of Inifinity Primes” from the wonderful book called “Proofs from the Book1”.

It’s a lovely reminder of how we mathematics provides us tools that we can choose to use in wonderfully unique and artistic ways. The tools themselves are not holding you down or limiting you, but rather an adept carpenter would find truly unique ways to work their chisel.


  1. https://www.goodreads.com/book/show/696238.Proofs_from_the_Book ↩︎