What is the Riemann Hypothesis?
And what does Open AI have to say about it?
The Riemann Hypothesis is widely considered to be the most important open question in all of mathematics. It’s certainly been the most famous open question in the mathematical community since I was in graduate school. David Hilbert included it in his list of ten most important problems in mathematics presented to International Congress of Mathematicians in Paris in 1900. Supposedly, Hilbert claimed that if he were to awaken after having slept for a thousand years, his first question would be: Has the Riemann hypothesis been proven?
I am no expert on the Riemann Hypothesis. As a professor of mathematics teaching undergraduate complex variables, though, an introduction to the statement of the Riemann Hypothesis and why it’s so amazing seems like a logical topic. The discussion seems even more pertinent, given Open AI’s recent dump of mathematical slop. Evidently, the Riemann Hypothesis has, thus far resisted Open AI’s assault. They do claim to have made progress, however, by supposedly proving the so-called Quasi-Riemann Conjecture.
Origin
The Riemann Hypothesis lies within that part of mathematics known as analytic number theory - the application of ideas from analysis to questions of number theory.
Real analysis is essentially the theory behind calculus. That is, \(\varepsilon\)s and \(\delta\)s and their application to the ideas of limits, continuity, and more. Complex analysis is the extension of those same ideas to complex functions mapping \(\mathbb{C}\to\mathbb{C}\). Of course, both real and complex analysis have grown beyond their original purpose to simply understanding calculus. They are fundamental subjects in their own right.
Number theory is the study of the natural numbers or the integers. There are loads of things that we could study about the these numeric systems but one of the deepest and most fruitful fields has been the study of prime numbers - those natural numbers with no divisors other than 1 and itself: \[ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, \ldots \]
Euclid famously proved that there are infinitely many such numbers. I guess that’s a lot. ¯\_(ツ)_/¯
The Riemann Hypothesis concerns a function that arises in complex analysis and its surprising implications for the distribution of the prime numbers.
Density
Within the natural numbers, there are relative sizes of infinity. There are certainly infinitely many squares, for example, but they are spread out fairly thinly compared to all the naturals. You can see this in the three lists of numbers below.
All three lists consist of the integers 1 through 36. The second and third lists highlight the primes and squares. There are
- 36 natural numbers from 1 to 36,
- 11 prime numbers from 1 to 36, and
- 6 square numbers from 1 to 36.
In a quantitative sense, there are fewer squares than primes and fewer primes than naturals; at least, over this interval. Does this pattern hold up? How could we even quantify that, if it does?
Given a set \(S\subset\mathbb{N}\), can we characterize it’s density as: \[ \lim_{n\to\infty} \frac{1}{n} \#(S\cap[1,n]). \] The density of the even numbers is \(1/2\), for example, as is the density of the odd numbers. The density of the square numbers is zero. In fact, if \(S\) is the set of squares, then for every \(m,n\in\mathbb{N}\) with \[ m^2 \leq n < (m+1)^2 \text{ we have } \#(S\cap[1,n]) = m. \] As a result, \[ \frac{1}{n}\#(S\cap[1,n]) = \frac{m}{n} = \frac{\sqrt{m^2}}{n} \leq \frac{\sqrt{n}}{n} = \frac{1}{\sqrt{n}}. \]
We can visualize this by making a discrete plot o \(y=\frac{1}{n} \#(S\cap[1,n])\) together with the continuous graph of \(y=1/\sqrt{x}\), as shown in Figure 1. We can see quite clearly that \[ \lim_{n\to\infty} \frac{1}{n} \#(S\cap[1,n]) = 0. \]
Now that we’ve got a limit, maybe we’re getting closer to analysis!
The real zeta function
For a real number \(s>1\), the the function \(\zeta(s)\) is defined by \[\zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s}.\] This function is studied in Calculus II, where the integral test is used to show that the series converges for all \(s>1\); thus \(\zeta(p)\) is well defined for \(s>1\).
It was Euler in 1737 who established a connection between \(\zeta(s)\) and the prime numbers via the formula \[ \zeta(s)=\prod_{p\text{ prime}}\frac{1}{1-\frac{1}{p^s}}. \] To see this, let’s expand each term in the product as a geometric series: \[ \frac{1}{1-\frac{1}{p^s}} = \sum_{n=0}^{\infty} \frac{1}{p^{ns}} = 1+\frac1{p^s}+\frac1{p^{2s}}+\frac1{p^{3s}}+\cdots. \]
Thus, the infinite product can be written \[ \left(1+\frac1{2^s}+\frac1{2^{2s}}+\frac1{2^{3s}}+\cdots\right) \left(1+\frac1{3^s}+\frac1{3^{2s}}+\frac1{3^{3s}}+\cdots\right) \left(1+\frac1{5^s}+\frac1{5^{2s}}+\frac1{5^{3s}}+\cdots\right)\cdots \] Now, the unique factorization theorem asserts that every integer larger than 1 can be written as a product of prime powers in a unique way. For example, \[90 = 2\times3^2\times5.\] There’s no other factorization of 90.
Next, if you expand out the infinite product above, you’ll find that you can get \(1/n\) for every \(n\) by simply choosing the term from each sum according to the prime factorization of \(n\). For example, \[\frac{1}{90^s} = \frac{1}{2^s}\times\frac{1}{3^{2s}}\times\frac{1}{5^s}.\]
The infinitude of the primes
With this connection, we immediately get another proof that there are infinitely many prime numbers. Near \(s=1\) we get \[ \lim_{s\to1^+} \prod_{p\text{ prime}}\frac{1}{1-\frac{1}{p^s}} = \lim_{s\to1^+} \sum_{n=1}^{\infty} \frac{1}{n^s} = \infty. \] That can only happen, though, if there are infinitely many prime numbers.
We can get an even stronger result, though, if we translate the product into a sum with the logarithm. To do so, note that \[ \ln(\zeta(s))=\ln\left(\prod_{p\text{ prime}}\frac{1}{1-\frac{1}{p^s}}\right) = \sum_{p\,\text{prime}} \ln\left(\frac{1}{1-\frac{1}{p^s}}\right) \approx \sum_{p\,\text{prime}} \frac{1}{p^s}. \]
In that last step, we’ve used the linear approximation \[ \ln\left(\frac{1}{1-x}\right) \approx x, \] which you can prove using some basic calculus: \(f(x) \approx f'(0)x + f(0)\). In fact, the approximation is good enough to conclude that \[ \lim_{s\to1^+} \sum_{p\,\text{prime}} \frac{1}{p^s} = \infty \text{ since } \lim_{s\to1^+} \ln(\zeta(s)) = \infty. \]
Put another way, \[ \sum_{p\,\text{prime}} \frac{1}{p} \] is a divergent series! This is a quantitative improvement on Euclid’s result. It provides a quantitative way of saying that primes are more common than squares, since \[ \sum_{n=1}^{\infty} \frac{1}{n^2} \] converges.
The prime number theorem
The prime number theorem is a strong statement about the density of the primes. Let \(P\) denote the set of primes for \(x>0\), let \(\pi(x)\) denote the number of primes less than \(x\). The prime number theorem states that \[ \pi(x) \sim x/\ln(x). \] Note that this implies that the primes are much more dense than the set of squares.
The Riemann Zeta function
If we move into the complex plane, we can say even more!
Definition
For a complex number \(z\) with \(\text{Re}(z)>1\), the Riemann Zeta function is defined by \[\zeta(z) = \sum_{n=1}^{\infty} \frac{1}{n^z}.\]
Now, \(z\) is complex so we could write \(z=a+bi\) for real \(a,b\). Thus, \[ \begin{aligned} n^z &= n^{a+bi} = e^{\ln(n^{a+bi})} = e^{(a+bi)\ln(n)} \\ &= e^{a\ln(n)}e^{i b\ln(n)} = n^a e^{i b\ln(n)} \end{aligned} \] Of course \(e^{i\theta}\) has absolute value 1, no matter the value \(\theta\). Thus, \[ \left|\frac{1}{n^z}\right| = \left|\frac{1}{n^a}\right|. \] As a result, whenever \(\text{Re}(z)>1\), \[ \sum_{n=1}^{\infty} \frac{1}{n^z} \] converges absolutely by the comparison test.
Extending the definition
As it turn out the Riemann Hypothesis states that the roots of \(\zeta\) all lie on the line with \(\text{Re}(z) = 1/2\). That seems odd, since the series defining \(\zeta\) converges only for \(\text{Re}(z) > 1\)!
The definition of \(\zeta\) can be extended, though. In fact, it can be extended to the entire complex plane, with the exception of the single point \(z=1\). Doing so, is not easy. Fortunately, though, there’s a neat trick that makes it not so hard to extend the definition to \(\text{Re}(z) > 0\).
The idea is to relate \(\zeta\) to its alternating version \(\eta\) defined by \[ \eta(z)=\sum_{n=1}^\infty\frac{(-1)^{n-1}}{n^z}. \] Now, \(\eta\) certainly looks like an alternating series so that we might think that it converges for \(\text{Re}(z)>0\). In fact, the series does converge on that larger domain but proving it is not as quite so easy as applying the alternating series test since \(n^z\) is not a real number.
What we can do, though, is group the terms: \[ \eta(z)=\sum_{n=1}^\infty \left(\frac1{(2n-1)^z}-\frac1{(2n)^z}\right). \] We can then write \[ \frac1{(2n-1)^z}-\frac1{(2n)^z} =-\int_{2n-1}^{2n}\frac{d}{dx}(x^{-z})\,dx =z\int_{2n-1}^{2n}x^{-z-1}\,dx. \] Remembering that \(z=a+bi\) and taking absolute values, we get \[ \begin{aligned} \left|\frac1{(2n-1)^z}-\frac1{(2n)^z}\right| &\leq |z|\int_{2n-1}^{2n}|x^{-z-1}|\,dx\\ &=|z|\int_{2n-1}^{2n}x^{-a-1}\,dx \leq \frac{|z|}{(2n-1)^{a+1}}. \end{aligned} \] Now, since \(a>0\), the comparison test immediately yields that \[ \sum_{n=1}^{\infty} \left|\frac1{(2n-1)^z}-\frac1{(2n)^z}\right| \] converges.
Now that we know that \(\eta\) converges for \(\text{Re}(z)>0\), we can write
\[ \eta(z)=\sum_{n=1}^\infty\frac1{n^z} -2\sum_{n=1}^\infty\frac1{(2n)^z}. \]
To see this, align the terms and add like so: \[ \begin{array}{r@{\;}c@{\;}rcrcrcrcrcrcr} \displaystyle\sum_{n=1}^{\infty}\frac1{n^z} &=&1&+&\dfrac1{2^z}&+&\dfrac1{3^z}&+&\dfrac1{4^z}&+&\dfrac1{5^z}&+&\dfrac1{6^z}&+&\cdots\\[1em] \displaystyle-2\sum_{n=1}^{\infty}\frac1{(2n)^z} &=&&-&\dfrac2{2^z}&&&-&\dfrac2{4^z}&&&-&\dfrac2{6^z}&-&\cdots\\[0.5em] \hline \displaystyle & &1&-&\dfrac1{2^z}&+&\dfrac1{3^z}&-&\dfrac1{4^z}&+&\dfrac1{5^z}&-&\dfrac1{6^z}&+&\cdots \end{array} \]
That last sum is exactly \(\eta(z)\)! This allows us to relate \(\eta\) and \(\zeta\) via
\[ \begin{aligned} \eta(z) &=\sum_{n=1}^\infty\frac1{n^z} -2\sum_{n=1}^\infty\frac1{(2n)^z}\\ &=\zeta(z)-2^{1-z}\zeta(z)=(1-2^{1-z})\zeta(z). \end{aligned} \] Solving for \(\zeta\), we get \[ \zeta(z)=\frac{\eta(z)}{1-2^{1-z}}. \] This expresses \(\zeta(z)\) in a way that’s defined for all \(z\) with \(\text{Re}(z)>0\).
The Riemann Hypothesis
The Riemann Hypothesis conjectures that the function we’ve defined has infinitely many roots and that they all lie on the line with \(\text{Re}(z)=1/2\). Let’s illustrate with a few pictures.
A contour-density plot
Figure 2 plots the Riemann zeta function with shading given by \(|\zeta(z)|\). The contours are of \(|z|\) and \(\text{Arg}(z)\).
The vertical dashed line \(\text{Re(z)} = 1/2\) is called the critical line. In the picture, we can see three roots on the critical line at about \(0.5 + 14i\), \(0.5 + 21i\), \(0.5 + 25i\). We can also see the pole at \(z=1\).
The image of a vertical line
Another way to visualize the critical line is to plot its image under \(\zeta\) in the complex plane. That is, \[\{\zeta(\frac{1}{2} + it): t\in\mathbb{R}\}.\] We should get a winding curve that passes through the origin again and again. That’s exactly what’s illustrated in Figure 3, which plots the image of the critical line over \(0\leq t \leq \text{t-max}\).
In fact, the visualization is just a bit more general, it plots \[\{\zeta(s + it): t\in\mathbb{R}\},\] where you can choose \(s\) in \(0.4 \leq s \leq 0.6\) illustrating how the path misses the origin when \(s\neq0.5\).
Hardy’s \(Z\) function
We can unwind the previous graph plotting \(t\) vs \(\pm|\zeta(0.5 + it)|\) where the \(\pm\) accounts for how many rotations have been made to determine which side of the horizontal axis we should be. Figure 4 shows the result.
The advantage of this graph is that it allows efficient and precise location of the roots.
Connecting the zeros and the primes
For our last plot, we simply illustrate one way that the roots of \(\zeta\) are connected to the distribution of the primes. In this context, it’s traditional to list the positive imaginary parts of the roots of \(\zeta\) in increasing order as \(\gamma_1\), \(\gamma_2\), …
Thus, \[ \gamma_1 \approx 14.1347, \: \gamma_2 \approx 21.022, \gamma_3 \approx 25.0109, \ldots \] Using this notation, we can define the cosine sum \(C_N(x)\) as \[ C_N(x) = \sum_{n=1}^{N}\cos(\gamma_n\ln x). \] where \(\gamma_n\) is the imaginary part of the \(n\)th positive zero listed above. The dots on the horizontal axis mark the primes.
Now, check out this plot of \(C_N\), together with the location of the primes. Note that the \(N\) slider controls how many terms to use in the sum, while the \(M\) slider controls the maximum value of the domain over which we plot.
The Quasi-Riemann Hypothesis
There is quite a lot that is known about the roots. The following have been proved:
- There are infinitely many roots.
- They all lie in the critical strip \(0<\text{Re}(z)<1\).
- Infinitely many of the roots lie on the critical line.
- In fact, a positive proportion of the roots lie on the critical line.
- The imaginary part of any root of \(\zeta\) in the upper half plane must be at least \(3\times10^{12}\).
It’s still not known if there are other roots in the critical strip that lie off the critical line. It’s also not known if those roots might ultimately get close to \(\text{Re}(z)= 0\) or \(\text{Re}(z)= 1\). The Quasi-Riemann Hypothesis conjectures that they don’t.
Quasi-Riemann Hypothesis
Conjecture: There is \(\delta>0\) such that every root \(z\) of the Riemann Zeta function in the critical strip satisfies \[\delta < \text{Re}(z) < 1 - \delta.\]
Open AI, of course, claims to hav resolved this conjecture.