The prime number theorem gives the average density of primes. The Riemann hypothesis (RH) concerns the size of the fluctuations around that average. The link is an explicit formula in which each nontrivial zero of the zeta function contributes an oscillation to a weighted prime count.
These notes assume basic calculus and unique prime factorization. Complex exponentials, Fourier inversion and residues are introduced where they enter the argument. The final section explains the strategy of the 2026 formal proof and identifies the deep arithmetic estimate on which it depends.
If were all the primes, a prime divisor of would be missing from the list. Yet primes can have arbitrarily long gaps. For , the number is divisible by , so are consecutive composites. To study a global pattern despite these gaps, count how many primes occur up to .
Gauss's density heuristic suggests about primes in a short interval of length near . Adding these contributions suggests . Integration by parts gives , which explains its leading term and why the integral retains more information.
Let and define for . The prime number theorem says
Here means . To study the error, it is convenient to count prime powers with logarithmic weights. Define the von Mangoldt function and the Chebyshev function by
For example, , since the powers of up to are and the powers of are . Partial summation and the lower-order contribution of higher prime powers give the equivalent form of the prime number theorem.
To see the equivalence, let . Every higher prime power counted by has base , and for each such base the total weight is at most . Thus . Partial summation, the discrete version of integration by parts, gives both conversions:
If , the integral in the first line is and . If , the integral in the second line is and .
Write . For , unique prime factorization gives Euler's product:
For a finite set of primes, expand each factor as . Choosing one term per prime produces . Each integer supported on those primes occurs exactly once. For example, comes from , with the constant term selected at every other prime. Letting the set grow recovers the entire series by absolute convergence.
This also explains two examples from the video. As real , by divergence of the harmonic series, whereas any finite prime product would have a finite limit. At , , so . This product is the limiting probability that two independently chosen integers from through are coprime. For finitely many primes the Chinese remainder theorem multiplies the limiting probabilities of avoiding a common divisor, and the discarded primes contribute at most .
More generally, multiplying Dirichlet series groups terms by the product of their indices. For instance
To isolate prime powers, take the logarithm of the product using . The logarithm defined by this convergent series is analytic for , and its exponential is , which therefore has no zeros there:
Differentiation produces from , cancelling the . Hence
The kernel explains the Fourier analogy. The real part controls the weight and the imaginary part is a frequency in the variable .
A power series can converge on a smaller domain than the function it represents. For instance represents on , and the rational expression extends it everywhere except . For , the starting series converges absolutely for . An integral gives a first extension. In that half-plane,
The first line follows by writing and integrating each indicator from to infinity. In the second line is bounded, so its integral converges locally uniformly for . This already isolates the simple pole at , of residue .
The full extension uses the Gaussian sum for . Poisson summation for the Gaussian gives . The gamma integral, with the substitution , gives for
Split at . On the lower interval substitute and use the theta identity. Integrating the two elementary powers from the constant terms gives
The integral is entire because decays exponentially as . The right side is invariant under . Multiplication by cancels its two poles and defines the completed function
with . Real coefficients in the original series give by continuation. At , has a simple pole and by Euler's product. Thus has a simple zero at each of these points. These are the trivial zeros. The other zeros are exactly the zeros of . The classical zero-free result on , together with Euler's product and reflection, puts them in the critical strip . NIST DLMF, Riemann zeta function
Here is the argument on . For real and real , apply term by term to the logarithm of the Euler product. Exponentiating gives
If and , then as the first factor grows like , the second is , and the third stays bounded. The product would tend to zero. This rules out zeros on that boundary. The values follow from the integral representation.
Riemann hypothesis. Every nontrivial zero satisfies
The functional equation and conjugation give symmetry across the critical line . It therefore suffices to rule out zeros strictly to its right.
For , represent as . Each summand contributes to the following integral:
Absolute convergence justifies the interchange. With and , the left side is . This is the Fourier transform, under the convention with kernel , of extended by zero for .
The video motivates inversion with roots of unity. For , the average equals if and otherwise, by the finite geometric-series formula. Multiplying a generating function by the opposite phase before averaging keeps just one residue class of exponents. For the zeta calculation the frequencies are continuous in , and Fourier inversion recovers the function from that continuous family.
Worked example. Count subsets of whose elements sum to a multiple of . In , selecting skips and selecting includes it. Thus the coefficient of counts subsets with sum . Set in the filter above. The answer is
For each factor equals . For , the factors repeat every five indices. In each block their product is , by evaluating at . There are blocks.
Fourier inversion at a jump returns the average of the two limits. On multiplying by and using , it gives the Perron integral for any :
For , let be the average of the left and right limits of at . The midpoint convention matters at prime powers. Then
To obtain it, close the vertical segment of the Perron integral to the left. The residue theorem replaces the integral around the rectangle by the sum of the residues inside. A residue is the coefficient of in the Laurent expansion at a pole . The factor decays as for . The classical contour estimates take the horizontal sides along heights avoiding zeros and justify the limit. Each family of poles contributes as follows.
| Pole of the integrand | Residue |
|---|---|
| , since a simple pole of gives residue | |
| Nontrivial zero of order | , since with |
| , from the factor | |
| Trivial zero |
For the second row, differentiating the factorization gives . The fourth row sums to by the logarithm series. The nontrivial zero sum counts multiplicity and takes symmetric limits over . This ordering is part of the formula. Bombieri's official problem description
For with , the terms for and combine as
Thus sets the frequency in and sets the power of in the amplitude. Controlling the whole zero sum requires a truncation estimate. The classical bound is
For the forward direction, evaluate at a half-integer and use the classical truncated explicit formula at a height of order , with error . Under RH, . The zero-counting estimate , where counts zeros with , gives by partial summation:
The finitely many small ordinates contribute a constant. Taking absolute values in the truncated zero sum gives . Passing from half-integers to all costs at most , since at most one integer jump needs to be included.
In the reverse direction, the mechanism is analytic continuation. For , partial summation gives
A square-root error makes the integral holomorphic for . A zeta zero there would give a pole of the logarithmic derivative. Symmetry then puts every nontrivial zero on the critical line.
To see convergence explicitly, fix . The integrand in absolute value is bounded at infinity by a constant times . It is integrable, uniformly on compact subsets of the half-plane. The rational term subtracts the pole at and is analytic at every other point in this region.
A Dirichlet character modulo is a multiplicative character of the group of invertible residue classes, extended by zero on integers sharing a factor with . The simplest nonprincipal example is modulo , with and on the two odd classes. Its -function and logarithmic derivative are
For odd , the weights and pick out and modulo , respectively. The same idea with all characters modulo isolates any invertible residue class. The generalized Riemann hypothesis discussed here puts the nontrivial zeros in the critical strip of each Dirichlet -function on . Ordinary RH is the case of the character modulo .
The Lean proof developed by Levent Alpöge with Claude takes the reverse direction above, using a smoothed count and a one-sided estimate.
Smooth the prime-power count. The zeta component is
where is Euler's constant. The sum equals , by integrating the contribution of each . The Dirichlet case combines this with character-weighted counts so that the arithmetic coefficients stay nonnegative.
Bound the combined count from above. The proof adapts Stepanov's method, where high orders of vanishing help bound the number of points on a curve over a finite field. Here a chain of theta lifts (transfers between spaces of automorphic forms) plays the role of multiplicity. A term of size shrinks with the chain length, while another part of the estimate grows with it. Choosing near allows the proof to obtain a one-sided bound at scale on arbitrarily late windows for every sufficiently small .
Exclude zeros to the right of the line. A zero gives a pole of the transform of the smoothed error. A windowed form of Landau's argument uses positivity to turn the upper bound into a zero-free region. A zero with real part would contradict the estimate when is sufficiently small. The functional equations supply the symmetry needed to conclude.
The arithmetic estimate in step 2 is the technical core. The roadmap traces that estimate and the windowed Landau argument to the corresponding Lean declarations. Alpöge's announcement, Proof roadmap, §§4–6
The transform in step 3 can be seen directly in the zeta component. Let . For ,
Indeed, the Laurent expansion produces exactly those two polar terms at before subtraction. At a nontrivial zero , the transform still has a pole. This is why an error estimate on the smoothed count can give information about zeros. The one-sided bound on windows requires the additional positivity argument in the roadmap. The display above derives the transform for ordinary .
These notes were inspired by Manshi and his video “What Is the Riemann Hypothesis, and How Was It Solved?” YouTube
— Nov 29, 2026
Made with ❤ at Earth.