Mind Matters Natural and Artificial Intelligence News and Analysis
Abstract background architecture lines. modern architecture detail
Photo licensed via Adobe Stock

3. In Infinity, Lines and Squares Have an Equal Number of Points

We can demonstrate this fact with simple diagram

In previous posts, we have established that two sets are of the same size if there is a one-to-one correspondence between the elements of both sets. Applying this principle to Cantor’s theory of infinity leads us to the weird but valid conclusion that the number of points on a line segment is the same as the number of points in a square. To show that this is true, here is a picture of a unit length line segment and a unit square.

Let’s choose a point on the line segment. Let’s say 0.6917381276543… . It’s shown with a big blue dot on the line segment on the left. If this point corresponds to an irrational number, it goes on forever without repeating or showing a discernible pattern.

We’re going to break up this number into two numbers. The first number is every other digit. Shown in red below the line segment is this number, namely 0.6131753… . The remaining digits form the second number, shown in green. It is 0.978264… .

A single number between zero and one can thus be broken into two numbers between zero and one. We can take these two numbers and as the x and y coordinates on the unit square shown on the right. They define the blue dot shown in the square on the right. So the blue dot on the line segment maps to the blue dot in the square.

For every point on the line segment, there is one and only one blue dot in the square. The size of the sets of infinity on a line segment and in a square are exactly the same. An extension of this argument shows that the number of points in a cube is the same as the number of points on a line segment. This is counterintuitive and weird.

(Non-Computable You (Discovery Institute Press,
2022) by Robert J. Marks is available here.)

Backward mapping from the square to the line segment is also possible. Take the two coordinates defining the blue dot in the square and shuffle them together to obtain one number. Two numbers between zero and one can always be combined to make a single number between one and zero. This new number is the point on the line segment.

Since there is a one-to-one mapping of every point on the line segment to every point in the square, the number of points on a line segment is the same as the number of points in a square.

But can’t you draw a line segment and square on a sheet of paper and do the mapping? Isn’t this an illustration of infinity in reality? No. Each point is assumed to be measured with infinite precision. Precision in reality is always finite. So the conclusion that there are no infinities in reality stands strong.

This counterintuitive result, driven by Cantor’s theory of infinities is strange. Nevertheless, it is a valid property of the infinite.

Next: We’ll show that the entire Library of Congress is digitally encoded on almost every randomly chosen number.

Here’s Part 1: Why infinity does not exist in reality. A few examples will show the absurd results that come from assuming that infinity exists in the world around us as it does in math. In a series of five posts, I explain the difference between what infinity means — and doesn’t mean — as a concept.


Part 2. Infinity illustrates that the universe has a beginning. The logical consequences of a literally infinite past are absurd, as a simple illustration will show. The absurdities that an infinite past time would create, while not a definitive mathematical proof, are solid evidence that our universe had a beginning.

You may also wish to read: Yes, you can manipulate infinity in math. The hyperreals are bigger (and smaller) than your average number — and better! (Jonathan Bartlett)

Robert J. Marks II

Director, Senior Fellow, Walter Bradley Center for Natural & Artificial Intelligence
Besides serving as Director, Robert J. Marks Ph.D. hosts the Mind Matters podcast for the Bradley Center. He is Distinguished Professor of Electrical and Computer Engineering at Baylor University. Marks is a Fellow of both the Institute of Electrical and Electronic Engineers (IEEE) and the Optical Society of America. He was Charter President of the IEEE Neural Networks Council and served as Editor-in-Chief of the IEEE Transactions on Neural Networks. He is coauthor of the books Neural Smithing: Supervised Learning in Feedforward Artificial Neural Networks (MIT Press) and Introduction to Evolutionary Informatics (World Scientific). For more information, see Dr. Marks’s expanded bio.

3. In Infinity, Lines and Squares Have an Equal Number of Points