The Riemann hypothesis [Main.lean]
For a complex number with , the Riemann zeta function is the sum of over the positive integers. Its meromorphic continuation has a simple pole at 1. The open strip contains all its nontrivial zeros. The Riemann hypothesis asserts that each such zero lies on the vertical line of real part one half. [2]
The analytic input is the zero-free half-plane theorem for the family of Dirichlet -functions. In the open critical strip the functional equation for a primitive character sends a zero of to a zero of at , where is the conjugate character. For a character induced from a smaller modulus, the additional Euler factors are nonzero in the strip, so the same reflection holds. A zero in the left half of the strip would therefore give a zero with real part . Once the whole family is known to be zero-free to the right of , every character’s zeros in the strip must lie on the line. [1]
In the local reading edition, the proof obtains by specializing this conclusion in the open critical strip. The unique character of modulus one has value 1 on every integer, so its -function is . The dashed line to Zeta zeros passes through this modulus-one specialization. Its conclusion is the statement defined there, with the pole and the negative even integers excluded. [7]
Which zeros enter the statement? [Statements.lean]
Write for the Riemann zeta function and for the Euler gamma function. For a complex argument , the functional equation relates the values of at and . Its sine factor accounts for the zeros at the negative even integers.
At , with a positive integer, the sine vanishes. Both and are finite and nonzero. These are the trivial zeros. Inside the critical strip the sine and gamma factors are finite and nonzero, so a zero at gives a zero at . The reflection exchanges the two open halves of the strip. [2]
The global formulation says that every zero other than the negative even integers, with the pole at excluded, has real part . It immediately implies the assertion in the open strip, since the strip contains none of the excluded points.
Conversely, suppose the assertion holds in the open strip. The Euler product rules out zeros for , and the classical nonvanishing theorem rules them out on away from the pole. For and , reflection now shows that the only zeros are the negative even integers. At the origin, the pole of at cancels the zero of the sine factor in the functional equation. Indeed, as , the residue at that pole gives , while . The remaining factor tends to , so . Every remaining zero lies in the open strip, where the assumed assertion applies. [2]
This last implication is the direction used in the formal proof. After reflection gives the critical-line theorem for Dirichlet characters, specializing to modulus one shows that every zeta zero in the open strip lies on the critical line. To obtain the global statement, Lean applies the strip equivalence, whose proof uses the unconditional fact that every nontrivial zero lies in the open strip. The preceding argument derives this fact from the Euler product, nonvanishing on the line of real part one, and reflection. The limit above recovers the boundary value recorded in Mathlib. [7]
The statement in Lean
def RiemannZetaZerosOnLine : Prop :=
∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2This proposition agrees by definition with Mathlib’s RiemannHypothesis. The final specialization proves the latter and supplies a proof of the former directly. [1]
A zero-free half-plane for every character [OneSidedBound.lean]
A Dirichlet character of modulus is a character of the group of units modulo , extended periodically to the integers and by zero on nonunits. Its -function is the meromorphic continuation of the series from . The half-plane theorem asserts that for every positive and every such , whenever , with one exception at for the principal character, the character that equals one on every invertible residue class. The classical nonvanishing theorem at 1 treats the other characters there. [1] [2]
The theorem permits the modulus to vary. This freedom is useful because the arithmetic estimate is available for a particular family of moduli. A character of any positive modulus can be induced to one of these larger moduli.
To apply the zero-free criterion to , choose for , take and use the class modulo . Since , this class is modulo . It is coprime to , since is odd and any common divisor divides . The one-sided bound for the prime remainder with gives precisely the exponent . Inducing to this larger modulus multiplies its -function by finitely many Euler factors. Nonvanishing of the product implies nonvanishing of the original -value. The proof of the Riemann hypothesis uses this conclusion for the family of characters. Reflection first puts their critical-strip zeros on the line, and the trivial character modulo one then gives the assertion for . [1]
How a one-sided estimate excludes a zero [Criterion.lean]
Fix a positive modulus divisible by 8 and an invertible residue class modulo congruent to 7 modulo 8. For a prime in that class, write for the Legendre symbol. The weighted prime remainder at a real cutoff is
The sum runs over positive integers. Here is the von Mangoldt function, counts the invertible classes, and is the constant for which . Both the weights and depend on the fixed prime . To exclude a zero at , choose . The criterion assumes that for each prime in the class there is a constant such that for all sufficiently large . The threshold may also depend on . The conclusion is that every character modulo has nonzero -value at . [1]
Zero-density estimate for quadratic twists. Fix the modulus, the residue class, the height , and . Call a prime in the class exceptional if, for at least one character modulo , the twist has a zero with and . The formalization proves the following zero-density lemma along a path omitted from the diagram. Its conclusion is a bound of on the number of exceptional primes up to , with the implied constant allowed to depend on the fixed data. Zero-density lemma.
To see the origin of the exponent, put and take . Pass from each to its inducing primitive character. For each twist of that character, integrate the sum of the absolute values of two theta series over against . The first series has the twist coefficients and the second multiplies them by the Möbius function. A zero in the specified region forces this integral to exceed . The sum of the integrals over the possible exceptional primes is , by a mean estimate using the Pólya–Vinogradov inequality. Dividing gives primes for each character, and there are only characters to consider. The two theta estimates and their comparison.
By partial summation, this power saving makes converge over the exceptional primes. The same sum diverges over all primes in the fixed invertible class, so the class contains a prime for which every twist avoids the region. When , the same choice with left boundary gives a prime that works throughout the smaller region . Choice of the prime.
Fix the chosen prime . Write for the meromorphic continuation of the transform of the weighted prime remainder. The initial integral representation in Lean is
For an integer , the term indexed by enters the prime sum only once . Its kernel is therefore , where . Integrating the two powers of separately gives
Thus each prime weight contributes its Dirichlet series term times the common factor . To compute the series, average over all characters modulo . This selects , while the factor gives the difference between the untwisted and twisted series. For , the logarithmic derivatives of the Euler products give
At only the untwisted principal character contributes a pole to the averaged logarithmic derivatives. By the definition of , the weighted Dirichlet series has expansion . Multiplying by the kernel gives the principal part . Subtracting in the remainder cancels these two terms in its transform.
At a point in the chosen region with , the second logarithmic derivative is regular for every . A zero of of multiplicity contributes to the residue of the first term. Averaging over the characters and restoring the kernel factor gives the following residue at the candidate zero .
Here each summand counts the multiplicity of the zero at , with value zero when . The continuation has at most simple poles in . At real points to the right of , the residues are nonnegative. The denominator is positive between and 1, the transform is regular at 1, and the Euler products have no zeros to its right. Residue formula.
To see why the sign matters, subtract the remainder from its upper bound. This gives a nonnegative tail. The meromorphic continuation of its transform has the opposite residues to the right of , where the transform of the upper bound is analytic. If the tail’s abscissa of convergence lay to the right of , Landau’s lemma would force a singularity at that real point. The Laplace-transform version used here applies to a nonnegative tail with finite abscissa of convergence. [9] A simple pole there would have nonpositive residue, while the transform of the nonnegative tail approaches it through nonnegative values. The residue must vanish, contradicting the singularity. Thus the tail transform converges throughout , so the transform of the prime remainder is holomorphic at . Hence . Since , the displayed formula forces the sum of multiplicities to vanish. Each summand is nonnegative, so for every character modulo . The half-plane theorem uses this implication at each candidate zero , after choosing the modulus and verifying the remainder estimate for the corresponding class of primes. Suzuki gives a related application of this transform argument to a different weighted von Mangoldt sum in §3.1. Here it is the choice of quadratic twist that isolates the untwisted multiplicities. [1] [8]
The weighted prime remainder [PrimeError.lean]
Fix a positive modulus and an odd prime coprime to it. The von Mangoldt function has value at every positive power of a prime and vanishes at all other positive integers. Within the progression modulo , multiply this weight by , where denotes the Legendre symbol. A nonzero quadratic residue modulo then receives weight zero, a quadratic nonresidue receives twice the von Mangoldt weight, and a multiple of retains its original weight. [1]
Form the weighted sum up to with kernel . Subtract the logarithmic term and the constant . To specify this constant, form the Dirichlet series of the same weights, replacing the cutoff kernel by and summing over all . Subtract , where counts the invertible residue classes. The limit along real is . The prime number theorem for the remainder then shows that the normalized remainder tends to zero. Normalization of the Dirichlet series. With fixed, the notation suppresses its occurrence in both and . For the resulting definition is
The constant specifies what remains after the mean logarithmic growth has been subtracted. This normalization matters to both results joined to the definition. The one-sided bound estimates this remainder by a multiple of for every and all sufficiently large , for the moduli and primes specified there. The zero-free criterion takes an estimate for the same remainder as a hypothesis and uses it to exclude a zero. An additive shift would change the estimate when its right-hand side tends to zero. The quadratic weight serves a different purpose. Expanding the progression using Dirichlet characters compares ordinary -functions with their quadratic twists, which is how their zeros enter the transform of this prime sum. [1]
From the geometric bound to square-root decay [OneSidedBound.lean]
Let be a positive multiple of 18480 and a prime congruent to modulo . Write for the weighted prime remainder attached to this pair and for the number of invertible residue classes modulo . For every and all sufficiently large real , the fourth-power refinement of the main inequality gives the following one-sided bound. [5]
Fix as above and choose with . For every sufficiently large integer , the existence theorem for the geometric data constructs the number of successive theta lifts, the larger cutoff , and the weight together. It takes to be the least power of two at least and sets . The auxiliary field is obtained by adjoining a root of unity of order , a multiple of , to . The weight is the least multiple of exceeding . The existence theorem also gives and for this choice of root order and weight. Hence for all sufficiently large we have
Put , the derivative order used in the geometric estimate. The auxiliary field is totally imaginary. Each of its infinite places corresponds to a conjugate pair of complex embeddings. With the embedding of the quadratic base field fixed, each place determines a power of the chosen primitive root of unity. Reducing its exponent labels the place by a unit modulo . Write for the places in class and for the selected places of weight in class . The unit classes modulo have fibers of equal size, so the total number of infinite places is . The construction chooses large enough that is at least the size of one fiber, namely . Let denote the total error in the local prime sums. The place count in the main inequality gives the following identity, where uses the same prime at modulus one.
Solving for gives the term . The main inequality bounds by . Since , division by contributes the fifth power of . Taking absolute values of the two remainders at gives
For these data the first term is at most . To estimate the other two terms, fix an integer . The prime number theorem for the weighted remainder gives for and all sufficiently large , with fixed. At the chosen cutoff this gives
The two cutoff terms therefore contribute at most . At integers the resulting bound is . For real , moving the cutoff from to adds at most . Since and the exponent lies between and , replacing the integer power by the real power costs at most a factor of two. This gives the stated constant and, since , the stated exponent. The base revision chooses to obtain the same decay exponent with the smaller prefactor . The refined geometric inequality keeps the numerical factor explicit. The base estimate absorbs it into an extra power of at sufficiently large weights. Both versions suffice for the zero-free criterion. The dashed line to the main inequality passes through two estimates. The first isolates the prime remainder in the geometric inequality. The second obtains its decay at integer cutoffs. The half-plane theorem chooses a real number between one half and the real part of the candidate zero, then applies this bound with . Its exponent is then exactly , as required by the zero-free criterion. [1] [5]
The main inequality [MainInequality.lean]
The geometric argument gives a one-sided estimate for a signed error in a prime sum. Fix the geometric data of the formal construction for a positive modulus divisible by 18480 and a prime congruent to modulo . Write for the weight parameter, and for the two cutoffs, for the derivative order used in the prime sum, for the number of theta lifts, and for the number of infinite places of the auxiliary CM field, a totally imaginary quadratic extension of a totally real number field. Each infinite place is a conjugate pair of complex embeddings. The scales in this construction satisfy , , and . The construction also takes sufficiently large in terms of the fixed arithmetic parameters. These are the scale hypotheses used in the comparison below. The full construction also fixes the ranks, levels, and local weights of the forms. [1]
The auxiliary field is obtained by adjoining a primitive root of unity of order , a multiple of , to . Fix one complex embedding of this quadratic field. Each infinite place has a unique representative extending this embedding. It sends the chosen root to a primitive root of the same order. The cyclotomic polynomial of order is irreducible over the quadratic field, so each primitive root occurs as the image under exactly one such embedding. The corresponding exponents therefore run once through the units modulo . Let consist of the places whose units reduce to modulo , and let be the chosen places whose units reduce to . The derivative order assigned to is , equal to on and elsewhere. Identification of the places.
At a place , the finite-prime contribution to the logarithmic divisibility estimate for a derivative of integer order is the following sum. Here is the von Mangoldt function, is the Legendre symbol and . The place denoted by is obtained by multiplying the unit for by modulo when is coprime to . For the other integers the construction uses itself. The chapter on short forms explains the quadratic factor in this sum. Prime-by-prime identity.
Take and sum over . Using derivative order at every place would give the kernel once for each such place. To recover the prescribed orders, replace by wherever . The quotient has only and as possible prime divisors, and both divide . Thus makes a unit modulo . Multiplication by then carries the entire fiber of class bijectively onto the fiber of class and takes values in the selected subset exactly times. For every other unit the image has a different class, and a nonunit leaves each fixed. The first sum therefore runs over all prime powers, and the correction is supported on . For the unrestricted sum the subtracted main term per place is , where is the normalizing constant at modulus one. In the progression the constants at the two cutoffs cancel, leaving for each selected place. The total error is therefore
Substituting the prime remainders for these centered sums gives the following identity by the place count. Both remainders use the same prime .
Main inequality. In the local reading edition, . The base revision has the bound . The local refinement keeps the factor explicit in the last comparison, where the base revision absorbs it into another power of . [5]
Let be the dimension of the target space and put . The archimedean contribution comes from the Taylor coefficients of the theta functions in the lifts. For order , the logarithmic factor in the estimate is , where is the principal level and is the positive real period used to normalize these coefficients. Subtracting the finite-prime contribution at each place gives the common term in the upper norm estimate of Theorem A(a) and the lower volume estimate of Theorem C. If is the rank of the underlying Hermitian source space, then
Here runs over the infinite places of the auxiliary field. The level and period satisfy . In the finite-prime sum only contribute, since and . Bounding the quadratic weight by and using gives . Thus each summand in is nonnegative. This sign is what allows the two volume estimates to be compared even when the chosen family spans only part of the target. Archimedean normalization · Definition of the period · Bounds for the two contributions.
The short forms of Theorem A(a) span the source. For a short source form , let be its target image under the normalized Poincaré map for the translate . Theorem B chooses translates whose target images together span nearly the whole space. From these images we can select independent target forms with . Rank is counted before lifting. To measure volume, apply the chain of theta lifts with trivial twists, , to these same images. Each has logarithmic squared norm at most . Hadamard’s inequality therefore gives the covolume bound . For this same family, Theorem A(b) bounds the logarithmic cost of clearing denominators. The bound on the number of translates in Theorem B controls the size of this cost. Applying Theorem C to the very same family gives
The coefficient of is on the left and on the right. Since and , discarding the excess on the left gives . For the chosen translates, the index bound implies , using . The right-hand side is then at most . Since , division gives . The dashed line to the one-sided bound follows what happens to this inequality. Solving the identity for the total remainder isolates . An estimate at integer cutoffs then gives the decay rate that extends to real cutoffs.
What the covolume measures [TwistedLattice.lean]
A single vector has a squared norm. For several vectors the corresponding quantity is the determinant of their Gram matrix, whose entries are their pairwise inner products. For an orthogonal family this determinant is the product of the squared norms. For any family it equals the squared norm of in the induced Hermitian norm. This squared volume is measured in the span of the family. Hadamard’s inequality bounds the determinant by the same product of squared norms. In Hadamard’s proof, adjoining a row to the family multiplies this upper bound by the squared length of the new row. [10]
The vectors here belong to the space of target forms. The proof measures them after a fixed linear map . This map composes the successive theta lifts, which carry forms to forms on the next Hermitian space in the construction. The subscript means that the character twists in the chain are trivial. Fix a field automorphism of and apply it to the coordinates of each lifted vector. Denote the resulting vectors by . Pair them using the positive definite Hermitian form specified by the rational Gram matrix of the lattice. We say the family satisfies the covolume bound with parameter if its squared volume is at most for every . Equivalently,
The order matters. A general field automorphism of need not commute with complex conjugation. The definition applies to each vector before forming the Hermitian products. Theorem C uses this information for two automorphisms at a time to bound the absolute value of a conjugate of the original determinant. If every squared norm is at most for every , Hadamard’s inequality gives the uniform bound . Theorem C takes precisely this uniform determinant bound as a hypothesis. For an independent family of nearly full rank, it gives a lower bound on , where accounts for clearing denominators. [1]
Theorem A(a). Short integral forms [ShortAndEnough.lean]
Let be the complex space of ramified source forms and the complex space of target forms. The source consists of algebraic forms of fixed level and weight on the initial definite Hermitian space. The ramification condition requires the translates to sum to zero over the cyclic group generated by local scaling at each designated place above the auxiliary level prime. On the target side, the general linear groups over the residue fields at the chosen places above two auxiliary level primes act on forms of principal level. The construction fixes a projection in the group algebra of their product and takes its image as the target space. A source form is integral if it belongs to the specified local lattice at every prime and every place above that prime. For an element of this finite product of general linear groups, write for the corresponding normalized Poincaré map. The unnormalized map forms a Poincaré series from the Bessel function associated with the source form. The operator translates this series by , projects to , and applies the scalar normalization used in the norm and index estimates. Poincaré-series realization. One scalar comes from a seesaw identity, which expresses a pairing of theta lifts by transferring it between groups. Kudla gives the basic identity for these pairings. Wang studies a related transfer for automorphic periods, which are integrals of forms against prescribed test data. [11] [12] Write for the composite of the successive theta lifts, with every character twist trivial. In the squared norm below, the subscript means that the field automorphism of acts on the lifted vector’s coordinates before its Hermitian norm is taken. [1]
Size estimate. The integral forms satisfying the following bound for every and span all of . The exponent separates three contributions. The geometric main term measures derivative size after allowance for divisibility. The signed error sums the deviations of the local prime sums from their main term. The explicit allowance is , where counts the infinite places, is the derivative order, and is the weight parameter. The main inequality gives the expressions for these quantities.
To see why divisibility affects this upper bound, consider one finite prime and one infinite place. In the derivative estimate the powers , , contribute according to how factors in , the quadratic field determined by the fixed prime . Here . By quadratic reciprocity, for every odd prime the Legendre symbol is or according as splits or remains inert in this field. At the supplementary law gives , and splits because the field discriminant is modulo . A split prime contributes nothing. At an inert prime only odd powers contribute, with coefficient one. At the ramified prime every power contributes with coefficient one half. These three cases give exactly , where is the Legendre symbol. Multiplying by converts a local divisibility exponent to a logarithmic squared-norm contribution. Since the von Mangoldt function satisfies and vanishes away from prime powers, summing these contributions gives the local prime sum in the main inequality. Local divisibility coefficients.
The divisibility exponents add along the successive lifts. The normalized Poincaré map includes a rational factor that divides out the prime powers predicted by these exponents, allowing for the local losses and rounding to integral exponents. This division subtracts their contribution from the logarithmic squared norm. For derivatives of order , summing the local prime sums minus their prescribed main terms over all places in class gives . In the sum of the divisibility exponents, each lift contributes this order- sum once. Subtracting its centered value over the chain gives . The other sum, at orders over all infinite places, occurs with multiplicity equal to the source rank at each lift. Combining that sum with the archimedean contribution gives , while projection, normalization and rounding introduce additional errors. The proof of the short-form estimate bounds their total contribution by . The scale inequalities put this sum below . Normalization of the squared norm.
It remains to have enough input forms on which to apply the bound. The integral source forms with bounded conjugate lengths span at the initial level. Applying the product of the differences between the identity and the local scaling translations gives the ramified subspace and preserves integrality, with a controlled increase in length. Their images thus give a spanning family to which the lift estimate applies. The main inequality selects independent vectors from the translated images of this family and applies Hadamard’s inequality to their Gram determinant. Spanning by short ramified forms.
Theorem A(b). The cost of clearing denominators [ShortAndEnough.lean]
Let be the complex space of source forms satisfying the local vanishing conditions of Theorem A(a). Fix a finite set of group elements indexing the normalized Poincaré maps of Theorem A(a). Each map translates the Poincaré image by before projecting to the target space. At a finite place a target form can acquire denominators even when its source was integral. A bound on the logarithmic index controls the valuation of the determinant of a local matrix that clears denominators simultaneously for all admissible twists.
Index estimate. A finite family of target forms has logarithmic index at most if its denominators can be cleared at the following cost. At every place above a prime , an integral matrix must carry the family into the target lattice after each of the character twists allowed at . Here a twist specifies the characters in the chain of theta lifts. A twist is allowed at when none of the finite places in its modulus lies above . The same matrix must work for every such twist. Its determinant has valuation at most , where the nonnegative losses satisfy for every finite set of primes. The local matrix may depend on the place. To state the estimate, let be the arithmetic modulus, the infinite places labelled by the class modulo through the action on roots of unity described in the main inequality, the derivative order, and the larger cutoff in the prime sums. If every member of the family comes from an integral source form under a translate indexed by , the following value of suffices.
The refinement adds the local determinant losses one prime at a time. To recover the bound used in the main comparison, let count all infinite places, and let be the weight parameter. Since , and , the coefficient is at most . [6]
The main inequality applies this estimate after choosing an independent family from the translated integral forms. The bound on the number of translates controls for that family, so the proof can account for the term when it compares the upper and lower volume estimates.
Theorem B. Spanning with few translates [ShortAndEnough.lean]
To use the lower bound for volume, we need independent forms spanning almost the whole target. Let and be the complex spaces of ramified source forms and projected target forms defined in Theorem A(a). Write . Each group element gives a linear map from to by translating and projecting the Poincaré image. The weight parameter controls both the permitted number of translates and the fraction of dimensions they may miss. Theorem B gives a finite set of group elements satisfying both estimates. [1]
The proof first chooses the translates for the full source space. Their images miss at most dimensions. Restricting each translate to the ramified subspace loses at most the codimension of that subspace per translate. The codimension is at most times the dimension of the full source. For the chosen , that dimension times is at most . Since at the prescribed scale, the total extra loss is at most . Adding the two losses gives the stated rank bound. Proof of the rank estimate.
The sum in the second line is the linear span of the image subspaces. Its dimension can be smaller than the sum of their dimensions because images may intersect. The first bound counts for each translate of the ramified subspace, even when its image overlaps earlier images. It follows from the corresponding bound for the full source because restriction can only decrease the dimension. It bounds precisely the factor that appears in the logarithmic index estimate of Theorem A(b).
Each image is spanned by images of short integral forms, since these forms span the source. Select a basis from their union. Its members retain the individual norm estimates, and its size is the dimension of the sum in the second line. Its span therefore has codimension at most . The main inequality uses both estimates for this one choice of translates. The rank estimate makes the family large enough for the lower volume bound, while the bound on the number of translates limits the cost of clearing its denominators.
Theorem C. A lower volume bound for a family of nearly full rank [LongForms.lean]
Let be linearly independent elements of the space of target forms. Let be the complex dimension of the target space and the weight parameter. Here nearly full rank means that the family spans at least dimensions. Suppose also that the family admits logarithmic index bound in the sense of Theorem A(b) and covolume bound . Thus bounds the logarithmic cost of clearing denominators, and bounds the logarithm of the squared volume of the lifted family after any field automorphism of is applied to its coordinates. Write for the common geometric main term in the two height estimates, for the number of infinite places, and for the derivative order. With these quantities as in the main inequality, Theorem C gives
Complete the family to a basis by adjoining auxiliary forms. For a choice of characters in the chain of theta lifts, let be the composite lift and let be the Gram determinant of the images of this basis. The trivial choice is written . The factor by which the lift multiplies squared volume is , where the star denotes the Hermitian adjoint. Multiplying by the Gram determinant of the original basis gives . The untwisted lift is injective, so its images of the basis are independent and . Dividing the twisted identity by the untwisted one cancels the common Gram determinant of the original basis.
At a prime , fix an abstract field isomorphism . The -adic valuation of measures the denominator of a coefficient . The twist selection theorem supplies one twist at each such identification. Its modulus is coprime to . The theorem makes these choices simultaneously so that, at each of the lifts, the family of untwisted-to-twisted determinant ratios has logarithmic height at most , where . This height bound can be negative because its logarithmic contribution at infinity can be negative. The height calculation below explains how it combines with the contributions from the finite places. The index estimate clears denominators for the original forms for both and the map , since the same twist is allowed at both. The two determinant losses account for . For the chosen twist, one further scalar clears the auxiliary forms at both identifications.
To use as a common multiplier, one also needs an upper bound for for every automorphism of . Let be the exterior product of the untwisted lifts of the completed basis, so . Define . The matrix of the Hermitian form has rational entries, so applying to the scalar gives , with both automorphisms acting on coordinates. Cauchy–Schwarz now gives
Each squared norm satisfies the same covolume bound for the completed basis. Their geometric mean therefore gives that bound for the absolute value of the conjugated determinant. Bound for conjugates of the Gram determinant.
At each finite place multiplication by turns into by the displayed identity. This is precisely the local determinant controlled by clearing denominators. Gram determinant comparison. [15]
To pass from the reciprocal ratio for one lift to the ratio for the entire chain, factor the chain determinant into the single-lift determinants and a scalar correction. Each single-lift estimate contributes to the logarithmic bound. Each uses the same sum of derivative sizes less divisibility over the infinite places that occurs in Theorem A(a). Summing over the lifts therefore gives precisely . The scalar correction costs at most . Single-lift and chain estimates.
The twist may depend on the prime and on the identification . A height bound for such a family uses one nonzero scalar for all identifications. It bounds the logarithmic absolute value of the scalar under every automorphism of the complex numbers and, for each prime, the logarithmic absolute values of the scaled local entries uniformly over the identifications at that prime. The archimedean bound plus the sum of the nonnegative local allowances over any finite set of primes must fit within the stated height bound. Multiplying the two families multiplies their scalars and adds their bounds. At each identification the forward and reciprocal ratios use the same twist and multiply to , since the chosen lifts are injective. For the constant family, the local bound at bounds the -adic absolute value of the common scalar under every identification. The algebraicity criterion used here therefore makes the scalar algebraic over . Its field norm is a nonzero rational number. Applying the product formula to that norm shows that the combined height bound is nonnegative. This is how the locally chosen twists enter one global inequality. Height of the constant family. [13]
Let be the larger cutoff in the prime sum. Each auxiliary form costs at most in logarithmic squared norm and for its clearing scalar. The forward ratio thus has logarithmic bound . Adding the reciprocal bound gives a nonnegative sum by the product formula. Rearranging gives
Near-full rank gives . The scale inequalities give and . The entire completion thus costs at most , and the two losses of fit inside . This yields the stated bound. The main inequality applies it to the same family whose individual norms give an upper bound for , so the two estimates can be compared directly. Completion estimate and Theorem C.
Edition and scope
The base text is the community’s readable edition of Levent Alpöge’s formalization, at the November 27 revision cited below. The diagram restricts the compiled dependency relation, including references in types and proof bodies, to its twelve named declarations. The map shows the transitive reduction on these twelve declarations. For all 132 ordered pairs of distinct nodes, following lines in the map gives exactly the same reachability as following references in the compiled edition. Thirty-four pairs are reachable. The horizontal positions are chosen for legibility. The exposition incorporates three pending revisions affecting these statements and their final specialization. In particular, the sharper index estimate implies the coarser estimate needed in the fourth-power argument. We reconciled the two estimates and the modulus-one specialization in one local build on Lean 4.37.0-rc1. That build recompiled the Riemann hypothesis in both of its displayed formulations, the zero-free half-plane theorem for Dirichlet characters, and the critical-line theorems for all characters and for primitive characters. Each depends only on propositional extensionality, classical choice and the quotient soundness axiom. The reachability relation among the twelve displayed declarations is the same on the upstream main branch and in this edition. Changes inside the omitted paths can still matter mathematically. The source pane gives the local declaration and labels upstream links by revision. This edition incorporates the three proposals affecting the displayed theorem statements or their specialization; the other proposals are outside the joint build. [1] [5] [6] [7]
Proof compression
Several community revisions shorten proofs by sharing an intermediate calculation. Examples include changing coordinates in a Gram matrix, adjoining two families of forms, and showing that two local correction terms vanish at the same primes. [3] [4] [14] I developed Flow Proof Optimizer to help find such opportunities. Given a compiled Lean project and a target theorem, it traces the theorem’s dependencies and finds repeated derivations. For supported patterns it can extract a shared lemma and check it at the original proof sites. I describe the method in the Atomic Inference article How to Simplify a Lean Proof Without AI.
These accounts contributed to shortening or sharing Lean proofs in the community repository. The contributors appear in GitHub’s contributor order for the period beginning August 22, 2026.
Last updated: · Next automated updateReferences
- L. Alpöge with Claude; Lean community readable edition. Riemann hypothesis and GRH for Dirichlet L-functions. Revision 8c828eda, November 27, 2026. Reading guide and source.
- T. M. Apostol. “Zeta and Related Functions,” in the NIST Digital Library of Mathematical Functions, chapter 25. §25.4, Reflection Formulas and §25.10(i), Distribution of Zeros. For Dirichlet characters, see §25.15, Dirichlet L-functions.
- Y. Ren. Two proposed changes of basis in the determinant argument. Volume preservation under Gram coordinate changes (PR 9630, 9878f40a) and equal inverse rows (PR 9662, 046fcd0f).
- alkor2000. “Generalize the covolume bound for adjoining two families.” PR 6192, revision 7d57cc6d.
- imvladikon. “Keep the fourth power in the main inequality.” PR 5659, revision 681d6949. Main inequality and its analytic consequence.
- Grativy6. “Sharpen the logarithmic index bound in Theorem A(b).” PR 9439, revision 94057773.
- alkor2000. “Specialize the Dirichlet zero theorem to the Riemann zeta function.” PR 9571, revision 2670d722.
- M. Suzuki. “On variants of Chebyshev’s conjecture.” The Ramanujan Journal 68, article 95 (2025). Published article; §2.4, Proposition 1 (the transform criterion), and §3.1 (an application).
- D. V. Widder. The Laplace Transform. Princeton Mathematical Series 6, Princeton University Press, 1941. Chapter II, Theorem 5b, on the singularity at the real abscissa of convergence. Book.
- J. Hadamard. “Résolution d’une question relative aux déterminants.” Bulletin des sciences mathématiques, 2nd ser., 17 (1893), 240–246. §§2–4 derive the Gram determinant bound. Original paper · English translation.
- S. S. Kudla. “Seesaw Dual Reductive Pairs.” In Automorphic Forms of Several Variables, Progress in Mathematics 46, Birkhäuser, 1984. §1 introduces seesaw pairs and their basic identity. Paper.
- B. P. J. Wang. “Global theta lifting and automorphic periods associated to nilpotent orbits.” Journal of Number Theory 271 (2025), 122–149. Theorem 4.5 relates periods under global theta lifting. Published article.
- J. S. Milne. Algebraic Number Theory, version 3.08 (2020). Chapter 8, Theorem 8.8, proves the product formula with normalized absolute values over all places. Author’s notes.
- uos1231234. “Share the vanishing of gains and losses outside their support.” PR 6711, revision 28777078.
- andersonwu2000. “Bound the forward volume ratio of a twisted lattice.” PR 7373, revision 8f02ba5b.
Cite this blog
If you refer to this article in your work, please use the following BibTeX entry.
@misc{Ren2026ReadableRH,
author = {Ren, Yuanjie},
title = {A Guide to Reading the {Riemann} {Hypothesis} Proof in {Lean}},
year = {2026},
url = {https://collinyuanjieren.com/blog/readable-RH/}
}
Notation mapping
The formulas use mathematical names for the objects in the local reading edition. In the Lean expressions, P fixes the arithmetic parameters and D : New.Data P fixes the geometric data. A projection such as D.f denotes New.Data.f D. The article suppresses these fixed arguments. For example, New.primeRemainder d q y becomes : the subscript names the modulus, the argument is the cutoff, and the prime is held fixed.
Marked names in the manuscript are replaced by the TeX entries in the first table when the page is built. The table also identifies specializations and proof-local abbreviations. The second table pairs each declaration in the compiled map with the chapter explaining its mathematical role.
| Lean expression or local name | Symbol and LaTeX | Meaning and chapter |
|---|---|---|
D.q₁ | q_1 | Order of the root of unity adjoined to the quadratic base field. It is a multiple of q. Main inequality for the total remainder. |
D.weight | \kappa | Derivative order assigned to an infinite place. Main inequality for the total remainder. |
D.primeSum | s_{\mathrm{fin}} | Local weighted prime sum at derivative order ν and infinite place τ. Main inequality for the total remainder. |
New.Data.Θ D ξ | \Theta_\xi | Composite theta lift for the chain of characters ξ. Theorem C. A lower volume bound for a family of nearly full rank. |
New.Data.chainDeterminant D | Z | Squared volume factor for the composite theta lift as a function of its twist. Theorem C. A lower volume bound for a family of nearly full rank. |
G in New.TwistedLattice.heightLe_volume_div | G | Gram determinant for the lifted completed basis as a function of its twist. Theorem C. A lower volume bound for a family of nearly full rank. |
New.isPolar_primeRemainder | \widehat R_q | Article notation for the meromorphic continuation of the integral of the weighted prime remainder against y to the power −s. The prime d is fixed. Zero-free criterion from a one-sided remainder estimate. |
New.primeRemainder d q | R_q | Weighted prime remainder as a function of a real cutoff. The subscript records the modulus. The prime d is fixed. Weighted prime remainder. |
New.Data.ramifiedSourceForms D | V | Complex space of source forms satisfying the local vanishing conditions. Theorem A(a). Spanning by short integral forms. |
New.Data.targetForms D | W | Complex space obtained by projecting the target forms at principal level. Theorem A(a). Spanning by short integral forms. |
New.Data.targetDim D | d_{\mathrm T} | Complex dimension of W, the target space of forms. The subscript T stands for target. Theorem B. A nearly full span with few translates. |
New.Data.normalizedPoincare D g | P_g | Normalized Poincaré map from V to W for the translate indexed by g. Theorem A(a). Spanning by short integral forms. |
New.Data.totalRemainder D | E | Signed sum of the errors in the local prime sums over the infinite places in class 1. Main inequality for the total remainder. |
New.Data.mainAmount D | H | Geometric main term shared by the upper and lower height estimates. Main inequality for the total remainder. |
New.Data.errorUnit D | fa(\log b)^3 | Cubic logarithmic allowance used to bound the cost of clearing denominators. Theorem A(b). Logarithmic index bound. |
D.M | M | Principal level in the archimedean normalization of the Taylor coefficients. Main inequality for the total remainder. |
P.bigOmega D.towerExp | \Omega | Positive real period in the archimedean normalization. Main inequality for the total remainder. |
D.k | k | Rank of the Hermitian source space in the formula for H. Main inequality for the total remainder. |
δ in zero_density_quadTwist | \alpha | Exponent (β − 1/2)/9 in the exceptional-prime count. Zero-free criterion from a one-sided remainder estimate. |
T in zero_density_quadTwist | T | Square root of qX when counting exceptional primes up to X. Zero-free criterion from a one-sided remainder estimate. |
New.primeRemainder d 1 | R_1 | Modulus-one specialization, with the same fixed prime d as in the remainder at modulus q. Eventual one-sided bound for the prime remainder. |
(New.logDerivMean d q 1).re | c_q | Real normalizing constant subtracted in the prime sum. It also depends on d. Weighted prime remainder. |
P.q₀ | q | Arithmetic modulus in the geometric construction. In the half-plane argument the auxiliary modulus is 18480 times the original character modulus. Zero-free half-plane for Dirichlet L-functions. |
P.d | d | Prime specifying the quadratic character used in the weights of the prime sum. Weighted prime remainder. |
D.x | x | First cutoff in the prime sum. Eventual one-sided bound for the prime remainder. |
D.x₁ | x_1 | Larger cutoff at which the remaining arithmetic errors are estimated. Eventual one-sided bound for the prime remainder. |
D.b | b | Weight assigned to the selected infinite places in class −1. Main inequality for the total remainder. |
D.a | a | Derivative order, the product of the first cutoff and the weight. Main inequality for the total remainder. |
D.m | m | Number of successive theta lifts in each chain. Theorem A(a). Spanning by short integral forms. |
D.f | f | Total number of infinite places of the auxiliary CM field. Main inequality for the total remainder. |
D.aPlaces | \Phi_a | Set of infinite places in class 1 modulo q. Main inequality for the total remainder. |
D.bPlaces | \Phi_b | Selected subset of the infinite places in class −1 modulo q. Main inequality for the total remainder. |
New.Data.Θ D 1 | \Theta_1 | Composite theta lift with every character twist trivial. Uniform bound on the logarithm of the squared covolume. |
sizeError | F | Local abbreviation in the proof of the main inequality for D.f * D.a * D.logB ^ 4. The fourth power occurs in the height estimates. Main inequality for the total remainder. |
t | T | Finite set of group elements indexing the selected translates. In the index estimate this set is an argument. In Theorem B it is chosen by the theorem. Theorem B. A nearly full span with few translates. |
D.targetLattice.IndexLe y δ | \delta | The final argument bounds the logarithmic cost of clearing denominators for the family y. Theorem A(b). Logarithmic index bound. |
D.targetLattice.CovolumeLe y c | c | The final argument bounds the logarithm of the squared covolume of y, uniform over complex field automorphisms. Uniform bound on the logarithm of the squared covolume. |
| Lean declaration | Article terminology | Local edition source |
|---|---|---|
riemannHypothesis | Riemann hypothesis | Main.lean · L9 |
RiemannZetaZerosOnLine | Statement locating the nontrivial zeta zeros | Statements.lean · L7 |
New.grh | Zero-free half-plane for Dirichlet L-functions | New/Reduction/OneSidedBound.lean · L249 |
New.LFunction_ne_zero_of_primeRemainder_le | Zero-free criterion from a one-sided remainder estimate | New/Reduction/Zeros/Criterion.lean · L41 |
New.primeRemainder | Weighted prime remainder | New/Reduction/Zeros/PrimeError.lean · L74 |
New.eventually_primeRemainder_le_mul_rpow | Eventual one-sided bound for the prime remainder | New/Reduction/OneSidedBound.lean · L213 |
New.star_inequality | Main inequality for the total remainder | New/Reduction/MainInequality.lean · L93 |
New.TwistedLattice.CovolumeLe | Uniform bound on the logarithm of the squared covolume | New/Reduction/Lattices/TwistedLattice.lean · L271 |
New.Data.span_short_integralRamified_eq_top | Theorem A(a). Spanning by short integral forms | New/Reduction/ShortAndEnough.lean · L202 |
New.Data.indexLe_normalizedPoincare | Theorem A(b). Logarithmic index bound | New/Reduction/ShortAndEnough.lean · L324 |
New.Data.enough_forms | Theorem B. A nearly full span with few translates | New/Reduction/ShortAndEnough.lean · L400 |
New.Data.integral_forms_long | Theorem C. A lower volume bound for a family of nearly full rank | New/Determinant/Twist/LongForms.lean · L274 |