The diagonal. One move behind three hard limits.
Cantor, Turing and Gödel all leaned on one move. Take a list that claims to be complete, and build the one thing it missed.
A list that cannot be complete
Someone hands you a table and says it lists every infinite sequence of 0s and 1s. Each row is one sequence. The rows go on forever, and so do the places along each row, so all you get to see is the corner.
You could read it for as long as you like and never spot a sequence that is missing. Does that make the claim true?
No, and the figure shows why. The highlighted cells are the diagonal. That is place 1 of row 1, place 2 of row 2, and so on down. Flip every one of them and read the flips off as a new sequence. It differs from row 1 in place 1, from row 2 in place 2, and from row in place . So it can be none of the rows.
Now try to repair the list. Press “Add it to the list”. The new sequence becomes row 1 and the other rows move down one. That looks like a fix, but the diagonal has changed, so it gives yet another sequence that is on no row. You can patch the list as often as you like. The gap just moves, and it never closes.
Georg Cantor published this argument in 1891. What it shows is that the infinite sequences of 0s and 1s can’t be put in a list numbered 1, 2, 3 and so on, however you arrange it. There are more of them than whole numbers. So some infinities are bigger than others.
The same move on programs
Now swap the rows for programs, and each cell for a question: does program halt when it is run on itself? A program is only text, so it can be handed to itself.
Suppose someone claims to have a program that answers this for every program, and is always right. Fine. Use it to build a program . asks what does when it is run on itself, then does the opposite. If says it halts, loops forever. If says it loops, halts.
Now run on . You pick what says.
Whatever says about , does the opposite. So is wrong about that one program, and a program that is always right cannot exist.
Any single program is fine. It either halts or it doesn’t, and plenty can be worked out by hand. What can’t exist is one method that gets every program right.
Try a real in the figure. Say runs a program for 1,000 steps and answers “loops” if it hasn’t stopped by then. It is right on all eight ordinary programs, and still wrong on its own . Give it more steps and the trouble moves further out, but it is still there.
What Gödel added
In 1931 Kurt Gödel turned the same self reference on proofs. A formal system has fixed axioms and fixed rules, and a machine can check every proof in it.
First theorem. Take a system that is effectively axiomatised (a machine can check its axioms) and able to express basic arithmetic. If it is consistent (it never proves a contradiction), there is a statement about whole numbers that it can neither prove nor disprove, and that statement is true of the whole numbers. J. Barkley Rosser weakened Gödel’s original assumptions in 1936.
Second theorem. Such a system, if it is consistent, cannot prove that it is consistent.
“Unprovable” always means unprovable in that system. Add the statement as a new axiom and the bigger system proves it, of course. But that bigger system has an unprovable statement of its own.
A tiny program nobody can classify
Pick a whole number. If it is even, halve it. If it is odd, triple it and add one. Keep going until you reach 1.
How many steps does 27 take?
27 takes 111 steps and climbs as high as 9,232 on the way. Its neighbour 28 takes 18. Step through a few more neighbours and the counts jump about with no simple pattern.
The open question is whether this little program halts from every starting number. Every number below , about , has been checked, and each one reaches 1 (Barina, 2025). There is a reason to expect it, too. The typical odd number on a path is about three quarters of the odd number before it, so paths tend to fall. That is a heuristic. It makes the answer likely and proves nothing.
Terence Tao showed in 2019 that almost all starting values come down below any bound that grows without limit, however slowly. Almost all still leaves room for exceptions.
So it stays open, and nobody has shown it is undecidable either. In 1972 John Conway proved that a slightly more general family of Collatz style rules can simulate any program, which makes deciding those undecidable. For the rule above, nobody even knows whether a proof of the answer exists.
What this does not say
These are limits on formal systems and on computation, and people misread them in a few ways.
The first is to hear “things we have not measured yet”. That is not what they say. Ordinary ignorance ends when someone does the work. These theorems prove that a certain kind of work cannot succeed.
The second is to stretch them over the physical world. On their own they say nothing about it. Take Last Thursdayism, the claim that the world began last Thursday with every memory and fossil already in place. That is a claim about the world, and every observation we could make fits it just as well as it fits the ordinary past, so no test can tell the two apart. A Gödel statement is a different kind of thing. It is a precise claim about numbers, with a definite truth value, that one particular system fails to prove.
The third is to file Collatz next to them. It is open, and nobody has shown it is undecidable.
When no evidence can separate two stories, you need another tool. Why simpler explanations win is about one.
Findings
The plain results.
- Flipping the diagonal of any list of 0 and 1 sequences gives a new sequence that differs from row k in place k, so it is on no row. Add it to the list and the next diagonal escapes again.
- If H says D(D) halts, D(D) loops forever. If H says it loops, D(D) halts. Both answers are wrong, so no such H can exist.
- 27 takes 111 steps and peaks at 9,232, while 28 takes 18. Every start below 2⁷¹ reaches 1, and nobody has proved it for all of them.
Sources
- Cantor, G. (1891). Über eine elementare Frage der Mannigfaltigkeitslehre. Jahresbericht der Deutschen Mathematiker-Vereinigung 1, 75 to 78. German text and English translation.
- Cantor’s diagonal argument. Wikipedia. Notes that the 1891 proof is not his first, which was in 1874.
- Turing, A. M. (1936 to 1937). On Computable Numbers, with an Application to the Entscheidungsproblem. Proceedings of the London Mathematical Society, series 2, 42, 230 to 265.
- Lucas, S. (2021). The origins of the halting problem. Journal of Logical and Algebraic Methods in Programming. The halting form was named and first stated by Martin Davis, and Turing’s 1936 proof concerned circle-free machines.
- De Mol, L. (2018, revised 2025). Turing Machines. Stanford Encyclopedia of Philosophy.
- Gödel, K. (1931). Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I. Monatshefte für Mathematik und Physik 38, 173 to 198.
- Rosser, J. B. (1936). Extensions of some theorems of Gödel and Church. Journal of Symbolic Logic 1(3). Cited by journal and volume only.
- Raatikainen, P. (2013, revised 2025). Gödel’s Incompleteness Theorems. Stanford Encyclopedia of Philosophy. For the plain statements of both theorems, the Rosser improvement, the point that unprovable means unprovable in a system, and the history of the diagonal lemma.
- Barina, D. (2025). Improved verification limit for the convergence of the Collatz conjecture. The Journal of Supercomputing 81. Every number below 2⁷¹ verified. The project page reports a slightly larger limit that has not been refereed.
- Tao, T. (2019). Almost all orbits of the Collatz map attain almost bounded values. arXiv:1909.03562.
- Conway, J. H. (1972). Unpredictable Iterations. Proceedings of the 1972 Number Theory Conference, Boulder, 49 to 52.
- Kurtz, S. A., and Simon, J. (2007). The Undecidability of the Generalized Collatz Problem. Theory and Applications of Models of Computation (TAMC 2007), LNCS 4484.
- Collatz conjecture. Wikipedia. Definitions, the path of 27 (111 steps, peak 9,232), the odd number heuristic, and the stopping time records.
- OEIS A006577, A006877, A006884 and A284668: steps to reach 1, record stopping times, record peaks, and the longest paths below powers of ten. Step counts here follow A006577.
- Omphalos hypothesis. Wikipedia. Gosse (1857), Russell’s five minute hypothesis (The Analysis of Mind, 1921), and the later name Last Thursdayism.