A Certified Theorem about a Substitute for the Zeta Function

Alpöge’s Lean Derivation, the Values It Assigns at Poles, and the Sponsors Between It and the Riemann Hypothesis

Parker Emmerson (Yaohushuason) · Independent Researcher · ORCID 0009-0007-1288-3292 · 29 November 2026 · Version 15 · © All rights reserved

Companion papers:

Abstract

On 21 November 2026 the Lean Focused Research Organization and the Mathlib Initiative certified that “both the statement and the proof of the Riemann Hypothesis are correct” for a Lean library released by Levent Alpöge. This paper establishes what the checks behind that sentence support. The certified sentence is written with a function of Mathlib that has the number \(-0.977\) at \(s=1\), where the zeta function \(\zeta\) of Riemann is undefined, and with a division for which \(1/0=0\). No operation with a value at every argument obeys the law that defines division, and no function with a value at every point is \(\zeta\). So no interpretation of Lean’s language reads its symbols as division and as \(\zeta\), and in every interpretation in which Lean’s rules are sound, their theorems are theorems about substitutes. The rule \(1/0=0\) is consistent with Lean’s other rules and with the axioms of a field; read as a statement about division it is not true, since it names \(0\) as a quotient of \(1\) by \(0\), and no number is one. Five statements on the line of descent of every certified theorem assert that the zeta function is not \(0\) at its pole. Read by the names of their symbols, they give \(\zeta\) a value where it has none and are not true. Read as encodings, they say that the pole is not a zero, and the derivation proves this from the number written at \(1\). The checks establish that Lean’s rules derive the certified sentence. A derivation shows its conclusion true only together with the soundness of the rules: the statement that they never derive anything untrue. That is a statement about every derivation at once; no check of one derivation tests it, and neither Lean’s rules nor ordinary set theory derives it unless Lean’s rules are inconsistent. Lean’s rules are equiconsistent with set theory together with the axioms that \(n\) inaccessible cardinals exist, one for each whole number \(n\), and relative to ordinary set theory the certification establishes that the Riemann hypothesis holds if Lean’s rules are consistent. Read through the standard model of Lean’s rules in set theory, the certified term requires six inaccessible cardinals, so that the premise of truth is the consistency of set theory with six of them, and every theory that derives that premise is stronger than set theory with six. The paper does not show the hypothesis false or Lean’s rules inconsistent, and it does not show that the certified sentence fails to carry over to \(\zeta\).

Graphical abstract. Announced: a proof of the Riemann hypothesis. Certified: a derivation about a substitute. What was certified (checked by machine): Lean’s rules derive a sentence about Z, a function of Mathlib, with Z(1) ≈ −0.977, a number written where ζ has its pole; the main line asserts Z(1) ≠ 0, which read by names is not true of ζ and read as an encoding says the pole is not a zero. From derivation to truth (tested by no check): truth needs soundness, that the rules never derive anything untrue, a statement about every derivation that no check of one derivation tests; Lean’s rules are equiconsistent with ZFC plus n inaccessible cardinals for every n, and neither Lean nor ZFC derives soundness unless Lean’s rules are inconsistent. What is established relative to ZFC: Con(Lean) implies RH; the sponsor Con(Lean) is the premise the certification omits; not a proof from ZFC alone. Division in Lean, stated exactly: the law of division z · y = x; any total operation breaks the law at y = 0; Lean’s rule 1/0 = 0 is consistent, a field satisfies it; read as division it is not true, since 0 is no quotient of 1 by 0.
Graphical abstract

Keywords: Riemann hypothesis; Riemann zeta function; Lean proof assistant; Mathlib; formal verification; division by zero in total functions; soundness; consistency and reflection; inaccessible cardinals

1 Introduction

On 20 November 2026 Levent Alpöge released a note and a library for the proof assistant Lean; the note presents the library as a formalization “without assumptions” of a proof of the Riemann hypothesis [1]. The library’s main file states five theorems. The first is \[\texttt{theorem riemannHypothesis : RiemannHypothesis := rhOfAll},\] where RiemannHypothesis is the definition of that name in Mathlib, the library of mathematics maintained by the Lean community [10]. On 21 November the Lean Focused Research Organization and the Mathlib Initiative issued a joint statement certifying that “both the statement and the proof of the Riemann Hypothesis are correct” [2]. The statement lists four checks: experts in Lean and in number theory vetted Mathlib’s definition; dozens of people compiled the library and reproduced the same exported proof; two tools confirmed that the theorem proved is exactly Mathlib’s RiemannHypothesis; and Lean’s kernel and independently written proof checkers accepted the exported proof. The verification record of Andrew Sutherland of the Massachusetts Institute of Technology lists each run [3], and the certifiers’ working notes state what a pass relies on [4].

Three phrases have a fixed meaning throughout this paper. The certified sentence is Mathlib’s sentence RiemannHypothesis, the statement of the first of the five theorems; it is a sentence about a function of Mathlib. The certified theorems are the five theorems of the library’s main file, each a sentence about functions of Mathlib, that the checks accepted. The certified term, also called the certified derivation or the certified proof, is the exported proof that the checkers accepted. None of these phrases means the Riemann hypothesis, and none means a proof of it. What was announced is a proof of the Riemann hypothesis, a statement about the zeta function of Riemann. What was certified is these sentences and this term. To say that a certified theorem is established is therefore to say that a sentence about Mathlib’s functions is derived by Lean’s rules; it is not to say that what was announced is established. The difference between the two is the subject of this paper.

1.1 The either-or

The plainest finding of this paper needs one fact about \(\zeta\) and three lines of Mathlib.

The fact: \(\zeta\) has no value at \(s=1\). As \(s\) approaches \(1\) its values grow beyond every bound. This is its pole (Section 2). The standard word is that \(\zeta\) is undefined at \(1\): the point \(1\) lies outside the set of points at which \(\zeta\) is a function. This paper says that \(\zeta\) has no value at \(1\), with that meaning.

The three lines. Mathlib’s theorem div_zero states that \(x/0=0\) for every \(x\) (Mathlib/Algebra/GroupWithZero/Basic.lean, line 407). Its theorem Complex.Gamma_zero states that \(\Gamma(0)=0\) (Mathlib/Analysis/SpecialFunctions/Gamma/Basic.lean, line 340). Its theorem riemannZeta_one states that the zeta function at \(1\) equals \((\gamma-\log4\pi)/2\), a number near \(-0.977\), where \(\gamma\) is Euler’s constant (Mathlib/NumberTheory/Harmonic/ZetaAsymp.lean, line 418). All three are among the theorems on which the certified proof depends: 472 of the archive’s declarations cite the first, three cite the second, and the third enters through Mathlib’s riemannZeta_one_ne_zero, which the archive’s declaration poleData_char cites (Section 5). These three are examples: of the 218 theorems of Mathlib on \(\Gamma\), \(\zeta\) and \(L\)-functions that the archive’s declarations cite directly, 23 give a value at a pole or at a zero denominator, and 64 declarations of the archive cite at least one of them (Table 3). Finally, every function in Lean has a value at every argument (Section 2), and Mathlib’s riemannZeta, the symbol with which the certified sentence is written, is a function from the complex numbers to the complex numbers.

Proposition 1 (the either-or).

  1. (a) Read as statements about division, about \(\Gamma\) and about \(\zeta\), the three theorems are untrue. Division by \(0\) has no value, so \(x/0\) is not \(0\). \(\Gamma\) has no value at \(0\), where it has a pole. \(\zeta\) has no value at \(1\). On this reading the certified proof depends on untrue statements.

  2. (b) Read so that the three theorems are true, the symbols name other functions: a division that returns \(0\) at the denominator \(0\), a gamma function with the value \(0\) at \(0\), and a zeta function with a number at \(1\). On this reading the certified sentence, which is written with that zeta symbol, is not a statement about \(\zeta\).

  3. (c) There is no third reading. A function from the complex numbers to the complex numbers has a value at \(1\), and \(\zeta\) has none; so no function of that kind is \(\zeta\). Whatever riemannZeta is read as, either it is read as \(\zeta\), and then riemannZeta_one is untrue, or it is read as another function, and then the certified sentence is about another function.

Proof. (a) A quotient of \(x\) by \(y\) is a number \(q\) with \(q\cdot y=x\). For \(y=0\) and \(x\neq0\) no number \(q\) has \(q\cdot0=x\), since \(q\cdot0=0\); for \(x=0\) every number has, so none is singled out. In neither case is the quotient \(0\). That \(\Gamma\) has a pole at \(0\) and \(\zeta\) a pole at \(1\) is shown in Section 2. A statement that gives a value where there is none is not true. The dependence of the certified proof on the three theorems is the count just stated, reproduced in the Supporting Information. (b) If riemannZeta_one is true of the function the symbol names, that function has the value \((\gamma-\log4\pi)/2\) at \(1\). \(\zeta\) has no value at \(1\). So the function is not \(\zeta\), and a sentence written with the symbol is a sentence about that function. The same holds of the other two symbols. (c) Let the symbol be read as some function \(f\) from the complex numbers to the complex numbers. Then \(f\) has a value at \(1\), and \(\zeta\) has none, so \(f\) is not \(\zeta\). If instead the symbol is read as \(\zeta\) itself, then riemannZeta_one, which gives \(\zeta\) a value at \(1\), is untrue. The Lean file checks this form of the argument for any function that has no value at a point and any function that has one there (no_total_function_is_partial and value_statement_untrue_at_pole, Appendix A). An interpretation of Lean’s language assigns to a symbol of function type a function with a value at every argument, because that is what the type says, so no interpretation assigns \(\zeta\) to riemannZeta (no_interpretation_assigns_partial_function).

Consequence. The certification states that “both the statement and the proof of the Riemann Hypothesis are correct” [2]. On reading (a) the proof depends on untrue statements. On reading (b) the statement is not the Riemann hypothesis: it is a sentence about another function. The certification’s sentence is therefore true as written on neither reading. This does not turn on foundations, or on how far a checker is to be trusted. It can be read from the type of one function and from three lines of the library. The library’s own documentation line for the symbol names it the Riemann zeta function (Mathlib/NumberTheory/LSeries/RiemannZeta.lean, line 119). The name belongs to reading (a); the theorems proved about the symbol are true only on reading (b). Reading (b) leaves room for a translation, and the translation is not a third reading. A statement about \(Z\) that sets the point \(1\) aside, or that is faithful to \(\zeta\) at \(1\), can be carried to a statement about \(\zeta\) by a theorem of classical mathematics, and for the certified sentence that theorem is short and its pieces are theorems of Mathlib (Section 4). The translation reads the symbols by their definitions and then argues outside the checked material. What the either-or excludes is reading the certified sentence, or any statement of the certified proof, as a statement about \(\zeta\) by the names of its symbols.

What is left, on reading (b), is a theorem about a substitute for \(\zeta\), and the question whether the Riemann hypothesis follows from it. That question is the bridge. The certifiers and Mathlib’s authors hold reading (b): they call the number at \(1\) a junk value and write the sentence with a clause that sets it aside (Section 3.9). The rest of this paper takes reading (b) at its word and examines the substitute (Sections 3 and 4), the derivation’s use of the numbers at the poles (Sections 5–8), and the bridge with what stands under it (Sections 11 and 12). The author’s earlier note argued from the premise about Lean’s rules alone [49]; the either-or comes before that argument, because it concerns what the theorem is about.

What is known and what this paper adds. That the number at \(s=1\) is a junk value is not news. Mathlib’s authors, its documentation and the certifiers record it, and the clause \(s\neq1\) was written into the sentence because of it (Section 3.9). The accepted view is that the clause closes the matter. This paper adds thirteen things to that record. First, the clause does not close the matter for the derivation. The statement from which all five certified theorems are drawn has no such clause and asserts a nonzero value at the pole; the clause enters one step after it, with Mathlib’s change-of-level formula, which carries it as a sponsor (Section 1.2). Ten declarations of the certified proof depend on the number that the clause sets aside, among them the lemma that produces the absence of zeros (Proposition 14). Second, the number depends on how the formula is written: two fractions written separately give \(-0.977\) at the pole, the same two written as one give “0,” and with the second the derivation fails (Proposition 7). Third, a statement of the hypothesis free of the substitute was available in Lean; the pieces of the step that ties it to the certified sentence are theorems of Mathlib in the exported proof, and the step itself is short and is not in the certified material (Section 4.4). Fourth, the bridge from the certified sentence to \(\zeta\) is set out premise by premise, with what holds each (Section 12). Fifth, the reach of the dependence is measured from the dependency tables: every certified theorem descends through the lemma just named along a single chain of declarations, and four fifths of the archive’s declarations rest on the statement \(0^{-1}=0\) (Section 8.6). Sixth, the argument that leads from the acceptance of the derivation to the hypothesis under the consistency of Lean’s rules is separated from the derivation itself: it uses the derivation only as an accepted term, it is a reduction to a premise that the rules cannot derive, and it leaves open whether the hypothesis is independent of ordinary set theory and of arithmetic (Sections 11 and 12.5). Seventh, the conditions under which a theorem about a substitute gives a statement about \(\zeta\) are stated, and the last of them, that what the rules derive is true, is shown to be a step of the \(\omega\)-completion of the rules, assumed and not derived (Propositions 17 and 31). Eighth, the certified result is stated with its system, as the statement that a system derives a sentence, and what the records lack for its classification is listed (Proposition 2). Ninth, the statements on the main line that are untrue of \(\zeta\) by their names are shown to settle what acceptance by the kernel establishes under each reading of the symbols (Proposition 18). Tenth, the certified sentence is set beside the hypothesis as Riemann stated it, for the function \(\xi\), in which the point \(1\) is covered and the pole is what makes the statement true there (Proposition 13). Eleventh, the premise that the announced claim requires, that Lean’s rule for division never contradicts the properties of \(\zeta\), is stated and shown to be refuted by theorems that the kernel accepted, and the bridge that remains is set out in five parts with what holds each (Proposition 20 and Section 5.3). Twelfth, the law that defines division is stated with the place where Lean’s operation breaks it and Mathlib’s own record of the break; the soundness proof for Lean’s rules is shown to be a proof for the substitutes, because the type of a function admits no other interpretation; and the argument from agreement with \(\zeta\) away from \(1\) is shown to apply equally to the function with “0” at \(1\), for which the derivation fails, so that what the derivation runs on is the one fact by which Mathlib’s function encodes the pole, that its number at \(1\) is not “0.” Thirteenth, the paper states with exact results what the checks support. No operation with a value at every argument obeys the law of division at a zero denominator, whatever value it writes there; the rule \(x/0=\text{“0”}\) is consistent with the axioms of a field, and read as a statement about division it is not true; no interpretation reads Lean’s symbols by their names; the statements of the derivation at the point \(1\) are untrue of \(\zeta\) by their names and are faithful encodings of the fact that the pole is not a zero; a derivation gives truth only with soundness, a statement about every derivation that no check of one derivation tests; and, relative to ZFC, the certification establishes that the hypothesis holds if Lean’s rules are consistent, a sponsor that ZFC does not derive unless those rules are inconsistent (Propositions 3, 12, 19 and 29).

1.2 The statement the certified theorems are drawn from asserts a nonzero value at the pole

One statement of the certified proof shows the either-or at work. A reader can check it against the archive in a few minutes, and nothing else in this paper is needed to follow it.

The statement. A Dirichlet character \(\chi\) of modulus \(N\) is a function on the whole numbers that repeats with period \(N\), is multiplicative, and is \(0\) exactly at the numbers that share a factor with \(N\). Its \(L\)-function \(L(\chi,s)\) is the continuation to the complex plane of the series \(\sum_n\chi(n)/n^s\). The character of modulus \(1\) is equal to \(1\) at every whole number, and its \(L\)-function is the zeta function. A character is primitive when it does not arise from a character of smaller modulus; the character of modulus \(1\) is primitive. The archive defines \[\begin{aligned} &\texttt{ZeroFreeAll}:\\ &\qquad\text{for every primitive Dirichlet character }\psi\text{ and every complex } s \text{ with } \operatorname{Re}s>\tfrac12,\quad L(\psi,s)\neq0 \end{aligned}\] (Formalism/SharpRestriction/RamificationFrobenius/TotientGaloisClasses/ExplicitFormulaErrorOfHostConditions.lean, lines 11–18, through the definitions PChar.ZeroFreeAbove and ZeroFreeOn). The statement has no exception. The character of modulus \(1\) is among the characters it ranges over (PChar.one, PrimePairSizeCondition.lean, line 19), Mathlib’s \(L\)-function of that character is its zeta function riemannZeta (LFunction_modOne_eq), and the point \(s=1\) has real part above \(\tfrac12\). So ZeroFreeAll contains the assertion \[\texttt{riemannZeta 1}\neq0:\qquad\text{the value of the zeta function at } 1 \text{ is not } 0 .\]

Its place in the proof. All five certified theorems are drawn from ZeroFreeAll. The theorem UpperTheory.Top.imprimitive (Development/AutomorphicArithmetic/CharacterBoxes/Imprimitive.lean, line 5) states: if ZeroFreeAll, then for every Dirichlet character \(\chi\) and every \(s\) with \(\operatorname{Re}s>\tfrac12\), provided that \(\chi\neq1\) or \(s\neq1\), \(L(\chi,s)\neq0\). Its conclusion is the archive’s EveryCharacter, and from EveryCharacter one step gives Mathlib’s sentence RiemannHypothesis (rh_of_every). The exception for \(s=1\) appears for the first time in the conclusion of imprimitive. It enters there with Mathlib’s change-of-level theorem DirichletCharacter.LFunction_changeLevel (Mathlib/NumberTheory/LSeries/DirichletContinuation.lean, lines 150–153), which the proof of imprimitive applies at its line 18. That theorem writes the \(L\)-function of a character induced from a character of smaller modulus as the \(L\)-function of the smaller character times finitely many factors, and Mathlib states it with the sponsor that the character is not \(1\) or the point is not \(1\): the formula is stated with the pole set aside, where the pole matters. Beneath it the statements carry no exception. ZeroFreeAll is concluded by zeroFreeAll_of_topG, which rests on formB, on zeroFree_of_rpow_window and on lemmaL; each of these concludes that the \(L\)-functions of a family of characters have no zero at any \(s\) with real part above a bound \(\theta<1\); and the families on this line always contain the character of modulus \(1\), because the archive’s definition of a level requires it (KSet.one_mem, PrimePairSizeCondition.lean, line 41). Section 5 gives these statements in full.

True of Mathlib’s function; by its names, not true of \(\zeta\). Mathlib’s function has the number \((\gamma-\log4\pi)/2\approx-0.977\) at \(s=1\) (Section 3). From that number Mathlib proves that its zeta function is not \(0\) at any \(s\) with \(\operatorname{Re}s\ge1\), the point \(1\) included (riemannZeta_ne_zero_of_one_le_re), and its documentation gives the reason: no hypothesis \(s\neq1\) is needed, because the “junk value” at \(s=1\) is, as it happens, not zero. The lemma lemmaL cites that theorem for every \(s\) with \(\operatorname{Re}s\ge1\). So ZeroFreeAll is a true statement about Mathlib’s function, and the checkers were right to accept it.

Of the zeta function of Riemann the assertion, read by the names of its symbols, is not true. That function has a pole at \(1\): its values grow without bound as \(s\) approaches \(1\), and it has no complex number as its value at \(1\). A statement that says “the value at \(1\) is a complex number other than \(0\)” gives a value to a function that has none there, and on either account that logicians give of such a statement, false or without truth value, it is not true. The point \(1\) does not have to be a zero for this. The statement fails because it supplies a value. Read as an encoding, the assertion says something else: that \(1\) is not a zero of \(\zeta\). That is true, since a pole is not a zero, and \(Z(1)\neq0\) is exactly what makes the zeros of \(Z\) the zeros of \(\zeta\) (Proposition 12). The derivation proves the encoding from the number written at \(1\).

The test. Let \(Z_0\) be Mathlib’s function with \(0\) in place of \(-0.977\) at \(s=1\). It agrees with \(\zeta\) wherever \(\zeta\) has a value, as \(Z\) does, and it is what Mathlib’s own formula produces when its two pole terms are written as one fraction (Proposition 7). It differs from \(Z\) in the one respect that the test measures: the zeros of \(Z\) are exactly the zeros of \(\zeta\), and the zeros of \(Z_0\) are those together with the point \(1\), which is not a zero of \(\zeta\) (Proposition 12). The certified sentence RiemannHypothesis has the same truth value for \(Z_0\) as for \(Z\), because it sets \(s=1\) aside. ZeroFreeAll, lemmaL and the statements between them are false for \(Z_0\) (Propositions 14 and 15). The test therefore shows what the statement from which the certified theorems are drawn is about. It is a statement about \(Z\), true because the number written at \(1\) is not \(0\); it bears on \(\zeta\) through an encoding that is faithful for \(Z\) and not for \(Z_0\); and the number that makes the encoding faithful comes from the way one formula was written.

The remark that a pole is not a zero, and the statement proved. A mathematician reads “\(\zeta\) has no zero with real part above \(\tfrac12\)” at the point \(1\) as the remark that a pole is not a zero. That reading takes \(\zeta\) as a function into the extended plane, which is the complex numbers together with one further point written \(\infty\), and sets \(\zeta(1)=\infty\). Since \(\infty\) is not \(0\), the remark is true of \(\zeta\); it is the classical fact. The statement that Lean accepted is a different statement in the same words. Lean’s function takes its values in the complex numbers, its value at \(1\) is the complex number \(-0.977\), and the accepted statement says of that number that it is not \(0\). The test separates the two statements. The remark that a pole is not a zero is a fact about the values of \(\zeta\) near \(1\), so it stays true whatever finite number a library writes at \(1\). The accepted statement becomes false when the number written is \(0\). A statement whose truth depends on the number written at \(1\) is therefore not the remark that a pole is not a zero. It is the encoding of that remark for one function, faithful because that function’s number at \(1\) is not \(0\), and it is this encoding, with that dependence, which the certified proof establishes and uses. Mathlib at the pinned commit has no zeta function with values in the extended plane; it has the pole as theorems about limits of its function near \(1\) (Section 4).

Why the checkers accepted it. Nothing escaped them. The kernel checks that a statement follows from the definitions by the rules, and Mathlib’s definition does put the number \(-0.977\) at \(1\). No rule of Lean marks a value as one that carries no mathematics. The four checks of the certification compared the final statements with Mathlib’s definitions, and the final statements carry the exception \(s\neq1\); no check compares a statement inside the proof with the mathematics it is named for.

What the exception \(s\neq1\) answers and what it does not. Every textbook leaves the point \(1\) out of the list of zeros of \(\zeta\). No textbook leaves the pole out of the proof. Riemann’s own statement does not leave the point out at all: he made it for a function \(\xi\) that is defined at \(1\), with the value \(\tfrac12\) that the pole gives it (Proposition 13). The classical arguments about zeros run on it: Jacques Hadamard (1865–1963) and Charles-Jean de la Vallée Poussin (1866–1962) showed in 1896, after Riemann’s memoir of 1859, that \(\zeta\) has no zero on the line \(\operatorname{Re}s=1\) by setting the growth of \(\zeta\) near its pole against the decay that a zero would cause [16, 17]. An argument from the properties of \(\zeta\) uses the pole as a pole, through the values of \(\zeta\) near \(1\), and at no step asks for a value at \(1\). The certified proof asks for the value at \(1\), receives Mathlib’s number, and uses it. The exception that enters afterwards, with the change-of-level formula, does not change what was proved beneath it, which is a statement about a function that has a number where \(\zeta\) has its pole.

Consequence. In the statement from which its conclusions are drawn, the certified proof is a proof about a function that is not \(\zeta\) at the point where \(\zeta\) has its pole, and it uses the difference. Where an argument from the properties of \(\zeta\) uses the pole, it uses the number. This does not show the Riemann hypothesis false, and it does not show that no proof about \(\zeta\) can be written along the same lines. It shows that the certified proof is not such a proof, and that a proof with the exception carried through every statement would be another proof, which has not been written and which no checker has seen. It also does not show that the certified sentence fails to carry over to \(\zeta\). A true statement about Mathlib’s function that sets the point \(1\) aside holds of \(\zeta\), whatever was used to derive it, under three conditions that Section 5.3 states. The third of them, that what the rules derive is true, is the premise on which the certification rests.

1.3 What the checks establish, stated with the system it is established in

A statement of the form “the system \(T\) derives the sentence \(\varphi\)” says that a certain finite object exists, a derivation, and it is settled by examining that object. It needs no trust in \(T\): it is as true of an inconsistent system as of a consistent one. The same holds of “\(T\) derives \(\varphi\) if \(S\) does” and of “\(T\) and \(S\) derive a contradiction together or not at all.” The study of such statements is metatheory. It is mathematics, carried out in the arithmetic of finite objects, and it is the means by which mathematics records where a result stands. For much of mathematics the record is complete.

Three examples show what a complete record is. Gerhard Gentzen (1909–1945) proved in 1936 that arithmetic derives no contradiction, by induction along one transfinite ordinal, written \(\varepsilon_0\), and in 1943 that arithmetic derives induction along every smaller ordinal and does not derive it along \(\varepsilon_0\) [31, 32]. The strength of arithmetic is thereby known exactly. Jeff Paris (born 1944) and Leo Harrington (born 1946) gave in 1977 a true statement about finite sets of whole numbers that arithmetic does not derive, and its place is known exactly as well: over arithmetic it comes to the statement that arithmetic derives no false existential checkable sentence [33]. The third example is a proof of the kind at issue here. The proof of Fermat’s Last Theorem by Andrew Wiles (born 1953), published in 1995, cites results written with the universes of Alexander Grothendieck (1928–2014), sets whose existence is the existence of inaccessible cardinals. Colin McLarty examined in 2010 what the proof needs, and the question of the system in which the theorem is proved was treated as a question with an answer [34, 35]. In 2020 he showed that the large structures of Grothendieck can be founded on arithmetic of finite order, without the universes [36]. A fourth example shows the form in which a result that uses more than ZFC is stated. Robert Solovay (born 1938) constructed in 1970 a model of set theory in which every set of real numbers is measurable in the sense of Henri Lebesgue (1875–1941), and his theorem is stated together with its sponsor, the existence of an inaccessible cardinal [37].

The proposition below uses terms that Section 12 treats in full. ZFC is ordinary set theory, the axioms of Zermelo and Fraenkel with the axiom of choice, in which mathematics is ordinarily taken to be carried out. An inaccessible cardinal is an infinite size so large that it cannot be reached from smaller sizes by the operations of ZFC; that one exists is an axiom added to ZFC, and ZFC does not derive it. Lean arranges its types in levels called universes; in the models of type theories of Lean’s kind in set theory, each universe that a derivation uses is interpreted by one inaccessible cardinal (Section 12.2). A universal checkable sentence says “for every whole number \(n\), \(P(n)\),” where a finite computation decides \(P(n)\) for each \(n\). The \(\omega\)-rule is the passage from \(P(0)\), \(P(1)\), \(P(2)\) and so on, all together, to that sentence.

Proposition 2 (the certified result, stated with its system). Grant that the checkers ran correctly, which is the sponsor S1 of Section 11.

  1. (a) Lean’s rules, with the three axioms, derive Mathlib’s sentence RiemannHypothesis. This is what the four checks of the certification establish.

  2. (b) With the model of Lean’s rules in set theory due to Mario Carneiro (2019), built in the manner of the model that Benjamin Werner (1997) gave for the calculus of inductive constructions, and with the reading of Mathlib’s definitions set out in Section 4, it follows that ZFC with \(k\) inaccessible cardinals derives the Riemann hypothesis, where \(k\) is the number fixed by the universe levels that the certified term uses (Section 12.2).

  3. (c) Neither (a) nor (b) rests on the consistency of any system. Each says that a derivation exists.

  4. (d) The joint statement, the verification record and the certifiers’ notes do not give \(k\). The dependency tables of J. Shore report the universe levels that occur in the exported terms, up to Type 2 in the archive’s own constants and up to Type 6 in two constants of Lean’s core, and state that these levels are not a set-theoretic bound (Section 12.2). From Shore’s lists of the levels at which the term forms products and sums of families of types, the companion paper computes that the standard model of the term requires exactly six inaccessible cardinals, so that \(k=6\) for that model, under the sponsor that Carneiro’s model covers the rules of Lean 4 that the term uses [55]. The records do not examine whether ZFC without inaccessible cardinals derives the hypothesis, or whether arithmetic does.

  5. (e) The passage from (b) to “the Riemann hypothesis is true” is the premise that ZFC with \(k\) inaccessible cardinals derives no false universal checkable sentence. That premise is the consistency of that theory (Proposition 26). The theory does not derive it, and it is reached from what the theory derives only by the \(\omega\)-rule (Proposition 31). Every theory that derives it is stronger than ZFC with \(k\) inaccessible cardinals: the latter does not derive the consistency of such a theory, since it would then derive its own consistency, against Gödel’s second theorem.

  6. (f) Relative to ZFC the result reads: ZFC derives “if Lean’s rules are consistent, the Riemann hypothesis holds,” and ZFC does not derive that Lean’s rules are consistent unless they are inconsistent (Proposition 29).

Proof. (a) The checks compared the statement with Mathlib’s definition and had Lean’s kernel and three independently written checkers accept the exported term; under S1 an accepted term is a derivation by Lean’s rules. (b) Carneiro showed for Lean’s rules, as Werner had for the calculus of inductive constructions, that a derivation that uses finitely many universes yields a derivation, in ZFC with one inaccessible cardinal for each of those universes, of the statement that the derived sentence holds in a model built from sets [25, 40]. In that model Mathlib’s zeta function is the function \(Z\) of this paper. Ordinary set theory derives that \(Z\) agrees with \(\zeta\) away from \(1\) and that the sentence sets the point \(1\) aside (Theorem 10, Proposition 11), so inside the set theory the sentence about \(Z\) gives the hypothesis. (c) A statement that a derivation exists is true or false according to whether the finite object exists, whatever the system is. (d) is read from the records and from the tables [2, 3, 4, 7], and Section 12.2 gives what they show about the universes. (e) The Riemann hypothesis is equivalent to a universal checkable sentence (Section 10). A system that derives such a sentence is wrong about it only if the system is inconsistent, and Propositions 26 and 31 give the rest. (f) is Proposition 29.

Consequence. The certification announced the sentence bare: the statement and the proof of the Riemann hypothesis are correct. What its checks support, once the bridge that people make is added (Section 5.3), is the sentence with its system: set theory with \(k\) inaccessible cardinals derives the Riemann hypothesis, with \(k=6\) for the standard model of the term [55]; relative to ZFC, if Lean’s rules are consistent, the Riemann hypothesis holds. The two differ by the words “the system derives,” and those words are the difference between a statement that a finite check settles and a statement that needs the ladder of Section 12. Kept, they give a result with a place among the systems of mathematics, and they show at once where the place lies and what has not been determined: read through the standard model, the place is ZFC with six inaccessible cardinals, with the premise of truth one rung higher, and the sufficiency of ordinary set theory or of arithmetic has not been examined. Dropped, they leave a sentence asserted on the strength of a premise that the system cannot supply. Mathematics does not ignore that premise, and it does not have to prove it. It names the system and classifies the result. The certification did neither.

1.4 The findings

This paper establishes what the four checks cover and what they leave to arguments made elsewhere. Its findings are the following.

  1. (1) The either-or of Proposition 1: the certified proof depends on untrue statements about division, \(\Gamma\) and \(\zeta\), or the certified theorem is not about \(\zeta\); no reading avoids both.

  2. (2) Mathlib’s zeta function, written riemannZeta and denoted \(Z\) in this paper, is a function from the complex numbers to the complex numbers that agrees with Riemann’s \(\zeta\) at every point other than \(s=1\) and carries at \(s=1\) the number \((\gamma-\log4\pi)/2\), where \(\zeta\) has a pole. That number comes from reading \(\zeta\)’s own pole term \(1/(s-1)\) at \(s=1\) as “0.” Mathlib’s gamma function carries “0” at its poles, where \(\Gamma\) is infinite. The authors of the construction, Mathlib’s documentation and the certifiers’ notes each record the number at \(s=1\) as a value assigned to an expression that has none (Section 3).

  3. (3) Lean’s division rule, applied to Mathlib’s formula for \(\zeta\) at \(s=0\), gives a false zero, and a value set by hand replaces it; applied to the classical formula \(\eta(s)/(1-2^{1-s})\), it gives false zeros at every point \(1+2\pi i k/\log2\) with \(k\) a nonzero integer (Propositions 8 and 6).

  4. (4) The certified sentence is a statement about \(Z\). Its truth value is the same for every function that agrees with \(Z\) away from \(s=1\), whatever that function carries at \(1\), and it is refuted by a value “0” at \(s=0\) (Proposition 11, checked in Lean). Mathlib, at the commit the archive is pinned to, defines no function that carries \(\zeta\)’s pole as a value. The identification of the certified sentence with the Riemann hypothesis is a short argument made outside the kernel from theorems of Mathlib that are in the exported proof (Section 4).

  5. (5) The derivation uses the number at \(s=1\) that the sentence is blind to. The statement from which all five certified theorems are drawn, ZeroFreeAll, says that no primitive Dirichlet \(L\)-function vanishes at any \(s\) with \(\operatorname{Re}s>\tfrac12\), with no exception, and so asserts of the zeta function that its value at \(1\) is not \(0\). That assertion is true of \(Z\); read by the names of its symbols it gives \(\zeta\) a value at \(1\) and is not true; read as an encoding it says that the pole is not a zero, which is true; and the exception \(s\neq1\) enters one step later with Mathlib’s change-of-level formula (Section 1.2, Propositions 12 and 15). As statements about a function with a value at \(1\), statements of this kind are settled by no property of the values of \(\zeta\) (Proposition 16). The set of zeros the derivation works with at the step where it produces the absence of zeros has no clause removing \(s=1\); the pole is outside that set because the assigned number is not \(0\), and the derivation proves this from Mathlib’s theorem about the assigned number. For the function that carries “0” at \(s=1\) and agrees with \(Z\) at every other point, the sentence keeps its truth value and the lemma that concludes the absence of zeros is false (Proposition 14). Every one of the five certified theorems descends through that lemma along a single chain of declarations (Section 8.6). Further steps hold of the substitutes and are not true of \(\zeta\) and \(\Gamma\) at their poles by their names, and both of the archive’s derivations of the sentence rule out \(s=0\) with the hand-set value (Section 5).

  6. (6) Throughout the derivation the conventions do three kinds of work: they omit terms that classical texts exclude by writing the term and letting “0” erase it; they supply values at poles and degenerate points; and they carry facts that were proved upstream, dropped from statements, and recovered downstream (Sections 6–8). Measured by what rests on what, 646,337 of the 805,751 declarations of the archive in the exported proof, and all five certified theorems, rest on the statement \(0^{-1}=0\) (Section 8.6).

  7. (7) The verification record lists three further theorems about whole numbers and ideals, checked on 24 November, among them the inequality of Lagarias at every whole number. Lean derives that sentence by computation for the whole numbers below \(e^{74500}\) and, for all the others, in one step from the certified sentence about \(Z\). In that sentence no convention fires at any instance, so its symbols carry their classical values (Section 10).

  8. (8) The certified derivation is not by itself a proof of the Riemann hypothesis: by (1)–(6) it is an argument about substitutes. A theorem about a substitute gives a statement about \(\zeta\) under three conditions: the statement does not consult the value at the pole, the substitute agrees with \(\zeta\) at every other point, and what the rules derive is true (Proposition 17). The first two hold for the certified sentence, by short arguments from theorems of Mathlib; the third is a premise. Two arguments lead from the acceptance of the derivation to the hypothesis, each under named sponsors and each made outside the checked material. The analytic route passes through the bridge from \(Z\) to \(\zeta\). The arithmetic route passes through whole numbers and avoids the pole; it rests on the consistency of Lean’s rules and on the classical theorem of Robin and Lagarias. The implication of the arithmetic route holds, and it is not the derivation: it uses the derivation only through the fact of its acceptance, it would run unchanged for any accepted term, and it reduces the hypothesis to a premise that the rules, if consistent, do not derive (Proposition 25). That premise is consistency: that the rules derive no statement together with its negation. For the sentences about whole numbers in question it is the same condition as “every such sentence that the rules derive is true,” so the implication says that the sentence Lean derived is true if the sentences Lean derives are true (Proposition 26). The premise is a step of the \(\omega\)-completion of the rules: they derive each of its instances and do not derive the statement about all of them, so whoever takes the derivation to establish a truth assumes it (Proposition 31). Consistency is a different property from truth of \(\zeta\). The findings (1)–(6) show that the rules, read as rules about division, \(\Gamma\) and \(\zeta\), derive statements that are false at the poles; they do not show an inconsistency, and Section 11.1 states why the two fit together (Section 11).

  9. (9) A bridge from the certified theorems to \(\zeta\) is necessary on both routes, and its premises divide into three kinds. Statements about \(Z\) and about whole numbers are held by machine checks. Every premise in which \(\zeta\) appears is held by people, because Lean holds no \(\zeta\): each is the identification of \(\zeta\) with a function whose properties Mathlib proves, or a classical theorem about \(\zeta\). The premise about the rules is equivalent to the consistency of set theory with infinitely many inaccessible cardinals, in the form with one axiom for each whole number \(n\) saying that \(n\) of them exist, which is stronger than ordinary set theory and which ordinary set theory cannot justify even relative to its own consistency. Read through the standard model of Lean’s rules, the certified term requires six inaccessible cardinals [55], and the premise of truth can be taken to be the consistency of set theory with six; every theory that derives that consistency is stronger than set theory with six, and no account of whether the derivation needs its six cardinals has been given. An implication from the consistency of a system to the hypothesis exists for every system, so the implication obtained from the certified material weighs what the independent grounds for that consistency weigh (Section 12).

  10. (10) The certified derivation leaves independence open. With the checking granted, it shows that one sentence about whole numbers is derivable by Lean’s rules. It shows nothing about derivability in ordinary set theory or in arithmetic; its premise of consistency is a sentence that the rules leave undecided; and no check excludes a later finding that the rules are inconsistent. For a sentence of this kind a finding of independence from a system would establish the hypothesis. Findings of independence from weaker sets of premises are on record, and the certified derivation is consistent with them (Section 12.5).

  11. (11) The certification’s sentence, that the statement and the proof of the Riemann hypothesis are correct, covers the acceptance of a term and the identity of a sentence with Mathlib’s definition. Applied to the Riemann hypothesis it leaves out what joins the two: the statement certified is a statement about a substitute, and the term certified gives the hypothesis only under the three conditions of (8), which the certification does not name (Section 14).

  12. (12) Stated with its system, what the checks establish is that Lean’s rules derive Mathlib’s sentence, a sentence about Mathlib’s function. Granted that the checkers ran correctly, and with the first four parts of the bridge, which are made outside the checked material from readings, classical theorems and theorems of Mathlib, this gives that ZFC with \(k\) inaccessible cardinals derives the Riemann hypothesis, where \(k\) is fixed by the universe levels of the certified term. This statement needs no premise of consistency. The dependency tables report the universe levels of the term, and from them the companion paper computes \(k=6\) for the standard model of the term [55]; no examination of whether ordinary set theory or arithmetic suffices has been reported. Relative to ZFC the result is that the hypothesis holds if Lean’s rules are consistent (Proposition 29). The certification dropped the words “the system derives,” and the bare sentence is the one that needs the ladder (Proposition 2).

  13. (13) Read by their names, Lean’s rules derive statements that are not true, five of them on the line of descent of every certified theorem. Under that reading acceptance by the kernel does not give truth, and the certified term establishes nothing about \(\zeta\). Read by their definitions, the statements are true and the certified sentence is about a substitute. No reading gives both sound rules and statements about \(\zeta\). Which of the 805,751 declarations of the archive are true by their names has not been examined (Proposition 18).

  14. (14) Riemann stated the hypothesis for the function \(\xi\), which is defined at every point and has at \(s=1\) the value \(\tfrac12\) that the pole gives it. His statement covers the point \(1\) and sets nothing aside. Transcribed factor by factor with Mathlib’s functions, the same product is “0” at \(1\), at \(0\) and at the negative even integers under Lean’s rules, and Riemann’s sentence so written is refuted; written as \(\tfrac12\bigl(s(s-1)\Lambda_0(s)+1\bigr)\), with Mathlib’s entire function \(\Lambda_0\), it equals \(\xi\) and is \(\tfrac12\) at \(0\) and at \(1\) under Lean’s rules too. Whether a formula written with Mathlib’s functions represents \(\xi\) at the pole depends on how it is written. The exception in the certified sentence is a repair for a number that \(\zeta\) does not have; it is not the classical treatment of the pole (Proposition 13).

  15. (15) A correct proof of the Riemann hypothesis, taken by the names of its symbols, requires that the rule \(x/0=\text{“0”}\) and the values assigned at poles never contradict the properties of division, of \(\Gamma\) and of \(\zeta\). That premise is false. Theorems that the kernel accepted refute it; they lie on the only route to the conclusion; and the derivation cannot do without them, since with “0” at the pole it stops. Acceptance by the kernel therefore warrants no statement by its name. What remains is a derivation about a substitute and a bridge of five parts: three readings and classical theorems made by people, one whose pieces Mathlib proves, and one assumed (Proposition 20, Section 5.3).

  16. (16) Lean’s division satisfies the law that defines division at every nonzero denominator and breaks it at a zero denominator, and Mathlib’s cancellation theorem carries the hypothesis \(b\neq0\) that marks the break. A proof that Lean’s rules are sound is a model in which every function has a value at every argument. Division, \(\Gamma\) and \(\zeta\) are not such functions, so the soundness proof is a proof for the substitutes. The argument that \(Z\) agrees with \(\zeta\) away from \(1\) is valid for the last sentence and applies equally to the function with “0” at \(1\), for which the derivation fails; the derivation runs on the one fact by which \(Z\) encodes the pole, that its number at \(1\) is not “0,” a fact that Mathlib proves from that number (Sections 2, 5.4 and 5.3).

  17. (17) No operation with a value at every argument obeys the law that defines division: at a zero denominator the law fails whatever value is written there. The rule \(x/0=\text{“0”}\) has a model and is consistent with the axioms of a field, and read as a statement about division it is not true (Proposition 3). No interpretation of Lean’s language reads its symbols as division, \(\Gamma\) and \(\zeta\), so under every interpretation in which Lean’s rules are sound their theorems are theorems about substitutes. A derivation establishes its conclusion only together with the soundness of the rules, which is a statement about every derivation at once: derivability gives no truth by itself, and a derivation with a true conclusion is compatible with rules that are not sound (Proposition 19). Lean’s rules are equiconsistent with ZFC together with infinitely many inaccessible cardinals, one axiom for each whole number \(n\) saying that \(n\) of them exist; neither they nor ZFC derives their consistency unless they are inconsistent; and relative to ZFC what the certification establishes is that the Riemann hypothesis holds if Lean’s rules are consistent (Proposition 29).

The paper also records how the certified term departs from the announced argument (Section 9), how the numeral in the sentence reads under the reading of numerals as counts (Section 13), and what clauses at the poles would and would not change (Section 15). Its bound is stated in Sections 11 and 12 and in the conclusion: the findings establish that what was certified is a derivation about substitutes that depends on values \(\zeta\) does not have, and that it gives the Riemann hypothesis only together with premises outside the certified material, the last of which is assumed and not derived; they do not establish that the certified sentence fails to carry over to \(\zeta\), that the Riemann hypothesis is false, or that Lean’s rules are inconsistent.

Sources. The archive was read in the copy of J. Stephens, repository jsmorph/rh, commit ecd09ff9b4aaf6c08f2b5ef17dc49ca9648a77de, pinned to Lean 4.33.1 and to Mathlib at commit 0df444a360eaa60ab8c11dca51a86af692955474 [5]. A declaration is in the exported proof when it is a constant of the dependency tables of J. Shore, dataset version 0.2.1 [7]; these tables list, for every constant on which the main theorems depend, the constants its compiled term refers to. File references are relative to the archive’s directory lean/src or to Mathlib’s root, with line numbers at the pinned commits. The reproduction of I. Dixit [6] gives the statement and the build steps used in the checks. The formalization of the criteria of Robin and Lagarias was read at commit 5ce18bf3487c68d9353276ef5811057f60d17808 [8]. The joint statement, the verification record and the certifiers’ notes were read on 26 November 2026, and the verification record again on 27 November 2026. The README of the dependency tables was read on 28 November 2026. Every count, table, excerpt and numerical value is reproduced in the executed Supporting Information notebook, and the Lean file that accompanies the paper was checked with Lean 4.33.1; the notebook’s code, the census scripts, the numerical checks and the Lean file were written with the language models cited as [57], which were also used in reading the archive and the libraries and in preparing the manuscript. Alpöge’s note states that the archive was formalized with the language model Claude [1]; the models cited as [57] belong to the same family.

Changes from earlier versions. Version 1 was dated 25 November 2026. Version 2 added the certifiers’ and the library authors’ own records of the assigned value; Proposition 11 with its Lean file; Proposition 14; the other four certified sentences; the census of the further conventions; a first-hand reading of the declarations named in a published report on the geometric conditions; and the arithmetic theorems checked on 24 November with the second route they open. Version 3 is the result of a check of version 2 against its sources: every cited file location was read again, the counts taken from the dependency tables were recomputed with separate queries, the numerical values were recomputed, and the public records were read again. The check confirmed the propositions, the theorems, the counts from the tables and every quotation, and it corrected the following. Section 11 now defines consistency and truth of \(\zeta\) side by side, because version 2 used the first while its other sections established a failure of the second, and did not say that these are different properties. Six of the twelve declarations that cite Mathlib’s nonvanishing theorem use it at the pole or cover it, where version 2 said four, and two further declarations use the assigned number as a limit (Section 5). The description of thirty-seven statements as written over an index set containing a point of vanishing denominator holds of eighteen of them (Exhibit 5). The gamma factor of Exhibit 3 has six uses. The condition of Exhibit 11 is a premise at 84 places and is concluded at two, where version 2 said that no declaration concludes it. The claim that no proof checks the value set by hand at \(s=0\) is withdrawn: Mathlib proves that value to be the limit. The sampling bound is \(0.118\). Statements attributed to the certifiers’ notes and to the verification record were brought into line with those documents, and the account of which Lean theorems of the appendix use the axioms was corrected. The Lean file has two further theorems, used in Section 11.1. The marks “0” inside formulas, which earlier versions typeset with a double prime in place of the closing quotation mark, are typeset correctly. Version 4 adds Section 12, which takes the bridge to \(\zeta\) apart premise by premise, states the premise about the rules in set theory, proves that an implication from consistency to the hypothesis is available for every system, and follows the premise up the ladder of stronger theories; and it rewrites Section 15. Versions 1 to 3 weighed the steps at the poles by asking whether a true statement could replace each. A derivation with the replacements in it is a different derivation, which nobody has written or checked, so the existence of replacements is no property of the certified proof; Section 15 now says so. Version 5 states first what the earlier versions reached by degrees: Proposition 1, the either-or, now opens the paper, the abstract and the conclusion. Version 6 is the result of a second check of every name, file location, number and quotation against the sources, and of a search for what the earlier versions left unsaid. The check corrected four file references that named a file by a name two files share, the date attached to the arithmetic theorems (the record gives the date of the checks, 24 November, and no date of addition), the description of the theory of Section 12.2, and three statements about the ladder. The additions are Proposition 7; Section 4.4; Table 3; the count of the definitions on which the meaning of the certified sentence rests and of the declarations written at higher universes (Section 12); and the certifiers’ record of the kernel’s recent corrections (Section 11). Version 7 corrects three statements of version 6 and adds two sections. Version 6 called the implication from the consistency of Lean’s rules to the hypothesis the contribution of the derivation to the hypothesis. That implication is an argument made outside Lean which uses the derivation only as an accepted term; Proposition 25 and the conclusion now say so. Version 6 said that clauses at the pole would repair the steps there. A derivation with the clauses would still be a derivation about Mathlib’s function, and Section 15 now says so. Version 6 ended on the statement that the hypothesis is a conditional theorem. The paper now states first what holds without condition: that the certified derivation is not about \(\zeta\) and depends on values \(\zeta\) does not have. The additions are Section 8.6, which measures from the dependency tables how far that dependence reaches, and Section 12.5, on what the certified derivation excludes and what it leaves open about independence, with the findings of independence already on record. The Lean file has four further theorems. Version 8 places at the front the statement on which the either-or is seen most directly (Section 1.2): the statement from which all five certified theorems are drawn has no exception for \(s=1\) and asserts a nonzero value of the zeta function at its pole, and the exception is added one step later (Proposition 15). It adds Proposition 16, that a statement turning on the value at the pole follows from no property of \(\zeta\). It corrects the account of how Lagarias’s sentence is derived: version 7 said that Lean derived the inequality at every whole number, and the derivation computes below \(e^{74500}\) and takes every instance above it from the sentence about \(Z\) (Section 10). It adds Proposition 26: the premise of consistency is the same condition as the truth of every sentence of that kind that the rules derive. It states the three conditions under which a theorem about a substitute gives a statement about \(\zeta\) (Proposition 17); where earlier versions said that the certified derivation is not a proof of the hypothesis, this version says what those conditions support, that it is not one by itself and that the last condition is assumed and not derived. And it adds Proposition 31: the consistency of Lean’s rules is a step of their \(\omega\)-completion. The Lean file has ten further theorems. Version 9 states the certified result with its system (Section 1.3, Proposition 2). It adds Proposition 18, on what acceptance by the kernel establishes under the two readings of the symbols, with the count of the statements on the main line that are written without the exception. It adds to the account of the ladder the place of the three conditions on it and what a search by a machine can and cannot do. It shortens the abstract. The Lean file has one further theorem. Version 10 sets the certified sentence beside Riemann’s own statement of the hypothesis, for the function \(\xi\) (Section 4.3, Proposition 13), gives the standard term for the fact that \(\zeta\) has no value at \(1\), and states that the agreement of \(Z\) with \(\zeta\) away from \(1\) is an identity by the definition of \(\zeta\). The Lean file has one further theorem. Version 11 fixes the meaning of the phrases “the certified sentence,” “the certified theorems” and “the certified term” at their first use, so that none can be read as the Riemann hypothesis or as a proof of it. Version 12 is the version prepared for posting as a preprint. It states the premise that the announced claim requires and its refutation (Proposition 20); it sets out the bridge in five parts with what holds each; it attaches to the statement about set theory the conditions under which it is obtained; and it has a one-paragraph abstract, keywords, and statements on the availability of the data and on conflicts of interest before the references. Version 13 states the law that defines division and the place where Lean’s operation breaks it, with Mathlib’s own record of the break (Section 2); gives the reason that a proof of the soundness of Lean’s rules is a proof for the substitutes, and adds it to the account of the checkers’ formal proof (Section 5.4); and answers the argument that agreement with \(\zeta\) away from \(1\) carries the result over, by the function with “0” at \(1\) (Section 5.3). The Lean file has two further theorems. Version 14 replaces several statements of version 13 by exact ones and adds four propositions. Proposition 3: no operation with a value at every argument obeys the law that defines division, the rule \(x/0=0\) has a model, and the rule joined with the law derives \(0=1\). Proposition 12: the zeros of \(Z\) are the zeros of \(\zeta\) because \(Z(1)\neq0\), so that the statements of the derivation at the point \(1\), untrue of \(\zeta\) by their names, are faithful encodings of the fact that the pole is not a zero, which the derivation proves from the number at \(1\); the function \(Z_0\) is no longer called as good a stand-in for \(\zeta\) as \(Z\), since its zeros include the point \(1\), and the statements of the derivation at \(1\) are no longer called false of \(\zeta\) without the reading named. Proposition 19, on derivation, soundness and truth. Proposition 29, which states the certified result relative to ZFC with the result of Bresolin and Mamino. Version 14 also states that the pieces of the identification of \(Z\) with \(\zeta\) away from \(1\) are theorems of Mathlib in the exported proof, where version 13 said that the part of the bridge they form was checked by no machine; reports the universe levels that the dependency tables give for the exported terms, where version 13 said that no computation on the term had been reported; attributes to Benjamin Werner the model of the calculus of inductive constructions and to Mario Carneiro the model of Lean’s rules; states that Riemann’s product formula for \(\xi\), transcribed factor by factor, is \(0\) at \(1\) under Lean’s rules while the formula \(\tfrac12\bigl(s(s-1)\Lambda_0(s)+1\bigr)\) gives \(\tfrac12\); and states that the exception at \(s=1\) enters the archive’s line with Mathlib’s change-of-level formula, which carries it as a sponsor. The Lean file has seven further theorems and one definition. Version 15 corrects Proposition 3. Version 14 stated that the rule \(x/0=0\) joined with the law of division derives \(0=1\), and that Lean’s cancellation theorem carries \(b\neq0\) because Lean keeps the rule and gives up the law at a zero denominator. The law at a zero denominator derives \(0=1\) by itself, from \(x\cdot0=0\), whatever value is written there, and cancellation fails at \(b=0\) for every operation with a value at every argument; the proposition and its consequence now say so, and add that the rule holds together with the law at every nonzero denominator in a field. Version 15 also states, at each place where the abstract and the introduction name it, that the set theory of Bresolin and Mamino has one axiom for each whole number \(n\); reports the companion paper’s computation that the standard model of the certified term requires six inaccessible cardinals [55], where version 14 said that no computation of their number had been reported, and states that every theory that derives the premise of truth so obtained is stronger than ZFC with six; and lists in the appendix the two lemmas of the Lean file that version 14 did not list. The Lean file replaces one theorem, removes an unneeded hypothesis from another, and adds one theorem and five definitions, those of the field with two elements.

2 Background

2.1 The zeta function and its pole

For a complex number \(s\) with real part greater than \(1\), the zeta function is the sum \[\zeta(s)=\sum_{n=1}^{\infty}\frac{1}{n^{s}}=1+\frac{1}{2^{s}}+\frac{1}{3^{s}}+\cdots,\] where \(n\) runs over the positive whole numbers. Leonhard Euler (1707–1783) studied this series for real \(s\) and showed in 1737 that it equals the product \(\prod_p(1-p^{-s})^{-1}\) over the prime numbers \(p\) [12]. Bernhard Riemann (1826–1866), writing in 1859, after Euler and with Euler’s product as one of his sources, extended \(\zeta\) to all complex \(s\) other than \(s=1\) [15]. The extension is the analytic continuation: a function of \(s\) that has a complex derivative at every point of the plane other than \(1\) and agrees with the series where the series converges. Only one such function exists, because two functions with complex derivatives on a connected open set that agree on a region agree on the whole set (the identity theorem).

At \(s=1\) the series becomes the harmonic series \(1+\tfrac12+\tfrac13+\cdots\), whose partial sums \(1,\ 1.5,\ 1.83,\ 2.08,\dots\) grow without bound, and the continued function grows without bound as \(s\) approaches \(1\). Near \(s=1\) it has the expansion \[\zeta(s)=\frac{1}{s-1}+\gamma+c_1(s-1)+c_2(s-1)^2+\cdots,\qquad \gamma=0.5772\ldots,\] where \(\gamma\) is the constant of Euler and Lorenzo Mascheroni (1750–1800) and the \(c_j\) are further constants. A point where a function grows without bound in this way is a pole. The coefficient of \(1/(s-1)\), here \(1\), is the residue at the pole; the constant term, here \(\gamma\), is the finite part. At \(s=1\) the defining expression of \(\zeta\) contains the term \(1/(s-1)\), which at that point is \(1/0\). Classical complex analysis records that fact in one of two ways: it lists the pole with its residue and finite part, or it lets the function take the value \(\infty\) at \(1\) in the extended plane, where \(1/0=\infty\). In both, the pole is a property \(\zeta\) has. A pole is never a zero: near \(s=1\), \(|\zeta(s)|\) exceeds every bound, so \(\zeta\) does not vanish there.

2.2 The gamma function, the completed zeta function, and the trivial zeros

For \(\operatorname{Re}s>0\) the gamma function is the integral \(\Gamma(s)=\int_0^\infty t^{s-1}e^{-t}\,dt\); it satisfies \(\Gamma(s+1)=s\,\Gamma(s)\) and \(\Gamma(n+1)=n!\) for whole numbers \(n\ge0\). The relation \(\Gamma(s)=\Gamma(s+1)/s\) extends it leftward. At \(s=0,-1,-2,\dots\) this extension divides a nonzero number by \(0\), and \(\Gamma\) has poles there: \(|\Gamma(s)|\) grows without bound as \(s\) approaches \(-n\). The gamma function never vanishes. The reflection formula of Euler, \[\Gamma(s)\,\Gamma(1-s)=\frac{\pi}{\sin(\pi s)},\] shows this: its right side is never \(0\), so \(\Gamma(s)\) could vanish only where \(\Gamma(1-s)\) is infinite, that is at \(s=1,2,3,\dots\), and there \(\Gamma(s)=(s-1)!\) is not \(0\). The reciprocal \(1/\Gamma\) is therefore a function with a complex derivative at every point of the plane, and it vanishes exactly at \(0,-1,-2,\dots\); Carl Friedrich Gauss (1777–1855) gave it as a limit of products in 1812 [13].

Write \(\Gamma_{\mathbb R}(s)=\pi^{-s/2}\,\Gamma(s/2)\). It has poles at \(s=0,-2,-4,\dots\) and never vanishes, and \(\Gamma_{\mathbb R}(1)=\pi^{-1/2}\Gamma(1/2)=\pi^{-1/2}\sqrt\pi=1\). The completed zeta function is \(\Lambda(s)=\Gamma_{\mathbb R}(s)\,\zeta(s)\). Riemann proved the functional equation \(\Lambda(s)=\Lambda(1-s)\) and showed that \(\Lambda\) has poles at \(s=0\) and \(s=1\) and a complex derivative everywhere else: near \(0\), \(\Lambda(s)=-1/s+O(1)\), and near \(1\), \(\Lambda(s)=1/(s-1)+O(1)\), where \(O(1)\) denotes a quantity that stays bounded as \(s\) approaches the point. Equivalently, \(\Lambda_0(s)=\Lambda(s)+1/s-1/(s-1)\) has a complex derivative at every point of the plane.

From \(\zeta=\Lambda/\Gamma_{\mathbb R}\): at \(s=-2,-4,-6,\dots\) the numerator \(\Lambda\) is finite and nonzero (because \(\Lambda(-2m)=\Lambda(1+2m)\) and \(\zeta(1+2m)>0\)) and the denominator is infinite, so \(\zeta(-2m)=0\) for \(m=1,2,3,\dots\). These are the trivial zeros. At \(s=0\) numerator and denominator are both infinite: \(\Lambda(s)=-1/s+O(1)\) and \(\Gamma_{\mathbb R}(s)=(2/s)(1+O(s))\), because \(\Gamma(s/2)=(2/s)\Gamma(1+s/2)\); their ratio tends to \(-1/2\), and \(\zeta(0)=-\tfrac12\).

2.3 The Riemann hypothesis

The Riemann hypothesis is the statement that every zero of \(\zeta\) other than the trivial zeros has real part \(\tfrac12\). In 1896, after Riemann, Jacques Hadamard (1865–1963) and Charles-Jean de la Vallée Poussin (1866–1962) proved that \(\zeta(s)\neq0\) on the line \(\operatorname{Re}s=1\) [16, 17]; with the functional equation this confines the zeros other than the trivial ones to the strip \(0<\operatorname{Re}s<1\).

2.4 Lean, Mathlib, and the value-assigning conventions

Lean is a proof assistant: a program whose kernel checks that each proof term follows the rules of Lean’s logic. A Lean theorem is a statement together with a term the kernel accepts. The derivation examined here rests on three axioms besides the rules: propositional extensionality, the axiom of choice in the form Classical.choice, and the soundness of quotients. Excluded middle (every statement is true or false) follows from these.

Every Lean function is total: it returns a value at every argument of its type. Where mathematics gives an expression no value, Mathlib gives it one. Mathlib calls such a value a junk value. This paper calls the rule that assigns it a convention. The conventions that bear on this paper are:

In the classical mathematics of Riemann, Hadamard and de la Vallée Poussin, \(1/0\) has no value as a quotient of numbers, and in the extended plane in which poles are written as values, \(1/0=\infty\). Classical mathematics can define a different function, written here \[d(x,y)=\begin{cases}x/y,& y\neq0,\\ 0,& y=0,\end{cases}\] for which \(d(1,0)=0\) is a fact about \(d\); it is no fact about \(1/0\). Lean’s division is \(d\), written with the division sign.

The law that defines division, and where \(d\) breaks it. The difference between \(d\) and division is a difference of law. Division is defined by a law: \(x/y\) is the number \(z\) with \(z\cdot y=x\). For \(y\neq0\) exactly one number satisfies the law. For \(y=0\) and \(x\neq0\) none does, since \(z\cdot0=0\) for every \(z\); for \(x=y=0\) every number does, so none is singled out. Division is therefore undefined at a zero denominator. The function \(d\) satisfies the law at every \(y\neq0\) and breaks it at \(y=0\): \(d(1,0)\cdot0=0\cdot0=0\), and \(0\neq1\). Mathlib records the break in its own definitions. Its definition of a division ring, from which its fields inherit, has two clauses about the inverse: \(a\cdot a^{-1}=1\) for every \(a\neq0\), and \(0^{-1}=\text{“0”}\) (Mathlib/Algebra/Field/Defs.lean, lines 119–121). Its theorem that \((a/b)\cdot b=a\), div_mul_cancel0, carries the hypothesis \(b\neq0\) (Mathlib/Algebra/GroupWithZero/Units/Basic.lean, line 337), and without that hypothesis the statement is false of every operation with a value at every argument, whatever value it takes at a zero denominator (cancel_needs_nonzero, Appendix A). The archive uses both sides of the break. Of its declarations in the exported proof, 1,677 cite div_mul_cancel0 and 5,158 cite mul_inv_cancel0, and each such citation supplies a proof that the denominator is not “0.” At those places the archive uses division as division. The 881 declarations counted in Section 8 cite div_zero or inv_zero, and at those places it uses the value that \(d\) gives at a zero denominator, which division does not have.

Proposition 3 (no operation with a value at every argument is division). Take any multiplication with \(x\cdot0=0\) for every \(x\), in a setting where \(1\neq0\); the multiplication of the complex numbers is one.

  1. (a) No operation \(f\) that has a value at every pair of arguments satisfies the law of division, \(f(x,y)\cdot y=x\), at every pair. The law at a zero denominator derives \(0=1\) by itself, whatever value \(f\) takes there.

  2. (b) The rule \(x/0=0\) has a model: an operation with a value at every pair satisfies it, the function \(d\) among them. The rule holds together with the law of division at every nonzero denominator in a field: in the complex numbers with \(d\), and in the field with two elements, whose inverse of \(0\) is \(0\).

  3. (c) The value that the rule puts at a zero denominator is not a quotient: \(d(1,0)\cdot0=0\neq1\). Read as a statement about division, the rule names \(0\) as the number \(z\) with \(z\cdot0=1\), and no number is one.

Proof. (a) Let \(c=f(1,0)\), whatever number it is. At \(x=1\) and \(y=0\) the law requires \(c\cdot0=1\), and \(c\cdot0=0\) by the property of the multiplication; so \(0=1\), against \(1\neq0\). The argument holds for every value \(c\), so the rule \(x/0=0\) takes no part in it. (b) \(d(x,0)=0\) for every \(x\), by the definition of \(d\). For \(y\neq0\), \(d(x,y)\) is the quotient \(x/y\) of the complex numbers, and \(d(x,y)\cdot y=x\). So in the complex numbers \(d\) satisfies the rule and the law at every nonzero denominator. Mathlib proves that the complex numbers satisfy its definition of a field, the clause \(0^{-1}=0\) included (Complex.instField, Mathlib/Data/Complex/Basic.lean, lines 713–715). The field with two elements has the elements \(0\) and \(1\), with \(1+1=0\); the inverse of \(1\) is \(1\), and the inverse of \(0\) is set to \(0\). Each axiom of a field, the rule, and the law at the one nonzero denominator \(1\) is an equation in finitely many cases, and each case holds. (c) \(d(1,0)=0\), and \(0\cdot0=0\neq1\). A quotient of \(1\) by \(0\) would be a number \(q\) with \(q\cdot0=1\), and \(q\cdot0=0\) for every \(q\). The Lean file checks the three parts, for every multiplication of this kind and for the field with two elements (no_total_operation_obeys_division_law, law_at_zero_derives_zero_eq_one, rule_has_a_model, field_with_rule_has_a_model, no_quotient_by_zero, standin_true_classical_false, Appendix A).

Consequence. The proposition states exactly where an operation with a value at every argument and division part. They part at a zero denominator, and they part there whatever value the operation takes, since the law at a zero denominator is refuted by \(x\cdot0=0\) alone (a). The rule \(x/0=0\) takes no part in that refutation. It fixes the value that Lean writes where division has none, and it is consistent with the axioms of a field and with the law at every nonzero denominator (b); Section 11.1 shows that it brings no contradiction into Lean’s other rules. What it states, read as a statement about division, is not true (c). Mathlib’s cancellation theorem carries the hypothesis \(b\neq0\) for the reason given in (a): cancellation fails at \(b=0\) for every operation with a value at every argument, whatever value the operation takes there (cancel_needs_nonzero). By (a) this is forced on every system in which every function has a value at every argument: whatever operation such a system writes for division differs from division at a zero denominator.

Read as a statement about division, “\(1/0=0\)” is not true. Logicians differ on whether a sentence that gives a value to an undefined term is false or without truth value, and on either account it is not true. Read as a statement about \(d\), it is true by the definition of \(d\). The two readings of this paper, by names and by definitions (Section 5.4), are the two sides of this one law.

Mathlib assigns further values of the same kind: the logarithm of \(0\), a negative power of \(0\), the square root of a negative number, the dimension of a space of infinite dimension, the inverse of a matrix with determinant \(0\). Section 8 lists those the derivation cites (Table 4).

2.5 The criteria of Robin and Lagarias

For a whole number \(n\ge1\) write \(\sigma(n)\) for the sum of the whole numbers that divide \(n\); for instance \(\sigma(6)=1+2+3+6=12\). Write \(H_n=1+\tfrac12+\tfrac13+\dots+\tfrac1n\) for the \(n\)th harmonic number; \(H_n\ge1\). In 1984 Guy Robin proved that the Riemann hypothesis holds exactly when \[\sigma(n)<e^{\gamma}\,n\,\log\log n\qquad\text{for every whole number } n>5040\] [20]. In 2002 Jeffrey Lagarias (born 1949), starting from Robin’s theorem, proved that the Riemann hypothesis holds exactly when \[\sigma(n)\le H_n+e^{H_n}\log H_n\qquad\text{for every whole number } n\ge1\] [21]. Both are theorems of classical analysis about \(\zeta\), the function with its pole; their proofs use the product of Euler, the pole of \(\zeta\) at \(1\), and estimates for sums over primes that hold when \(\zeta\) has no zero off the critical line. Each turns the hypothesis into a law about whole numbers: a statement that an inequality between computable quantities holds at every whole number.

2.6 The archive and the certification

The archive holds 175,187 files and 17,374,215 lines. Its exported proof contains 1,270,184 constants of the archive’s own and 204,488 constants of Mathlib [7]. The verification record, in its state of 25 November 2026, 22:05 UTC, lists the following for the exported proof of 61,570,595,788 bytes: acceptance by Lean’s kernel in its default and its stricter mode (version 4.36.0), by the independently written checker nanoda, and by the checkers con-leche and con-ron in the versions of their development branches; acceptance of the compiled modules, one by one, by lean4lean; a match of the proved statements with a file that imports only Mathlib; and the three axioms on which the five main theorems rest [3]. The same record reports, from 24 November, a second exported proof that joins the archive to an independent formalization of the criteria of Robin and Lagarias (Section 10).

3 How Mathlib builds its zeta function, and what it puts at the poles

The author lines of Mathlib’s files name David Loeffler for the gamma function and the zeta function, and Michael Stoll and David Loeffler for the nonvanishing results; Loeffler and Stoll describe the work in [11]. Their files state plainly where they assign values to undefined expressions. This section reads the construction step by step and states, at each pole, what Mathlib’s function carries and what the classical function has.

3.1 The gamma function

Mathlib defines a sequence of functions GammaAux n by GammaAux 0 = GammaIntegral (the integral above) and GammaAux (n+1) s = GammaAux n (s+1) / s, and sets \(\Gamma(s)=\) GammaAux \(\lfloor 1-\operatorname{Re}s\rfloor_+\) \(s\), where \(\lfloor x\rfloor_+\) is the largest whole number not exceeding \(x\), or \(0\) when \(x<0\) (Mathlib/Analysis/SpecialFunctions/Gamma/Basic.lean, lines 248–288). The documentation of GammaAux says that the \(n\)th function of the family is \(\Gamma(s)\) where \(-n<\operatorname{Re}s\), and it calls the values elsewhere junk.

Proposition 4. In Mathlib, \(\Gamma(-n)=\text{“0”}\) for every whole number \(n\ge0\); \(\Gamma_{\mathbb R}(-2n)=\text{“0”}\); Mathlib’s theorem Gammaℝ_eq_zero_iff states that \(\Gamma_{\mathbb R}(s)=\text{“0”}\) exactly when \(s=-2n\) for some whole number \(n\); and at each such point \(\Gamma_{\mathbb R}(s)\cdot\Gamma_{\mathbb R}(s)^{-1}=\text{“0.”}\)

Proof. At \(s=0\): \(\operatorname{Re}s=0\), so \(\lfloor1-0\rfloor_+=1\) and \(\Gamma(0)=\texttt{GammaAux 1 0}=\texttt{GammaAux 0 1}/0\). The numerator is the integral at \(1\), which equals \(1\); the denominator is \(0\); by div_zero, \(1/0=\text{“0.”}\) This is Mathlib’s proof of Complex.Gamma_zero (lines 340–341), whose rewriting list ends with div_zero. For \(s=-n\) with \(n\ge1\), Mathlib’s Gamma_neg_nat_eq_zero (line 344, whose documentation says that the gamma function is undefined at these points and that the value \(0\) is assigned there by convention) proceeds by induction: from \(\Gamma(-(n+1)+1)=(-(n+1))\,\Gamma(-(n+1))\), with \(-(n+1)\neq0\) and \(\Gamma(-n)=\text{“0”}\) by the previous step, it obtains \(\Gamma(-(n+1))=\text{“0.”}\) Since \(\Gamma_{\mathbb R}(-2n)=\pi^{n}\,\Gamma(-n)\) and \(\pi^n\neq0\), \(\Gamma_{\mathbb R}(-2n)=\text{“0.”}\) Conversely, at every other point Mathlib proves \(\Gamma(s/2)\neq0\), and \(\pi^{-s/2}\neq0\); this gives Gammaℝ_eq_zero_iff (Mathlib/Analysis/SpecialFunctions/Gamma/Deligne.lean, line 73). Finally, at \(s=-2n\) the inverse is \(0^{-1}=\text{“0”}\) by inv_zero, and the product of “0” with “0” is “0.”

Consequence. Classically, \(\Gamma\) is infinite at \(0,-1,-2,\dots\) and never vanishes, and \(1/\Gamma\) is the function that vanishes there. Mathlib writes the infinite value as “0,” the opposite of what it is, and then also writes its reciprocal as “0.” At those points a function and its reciprocal both carry “0,” and their product is “0” instead of \(1\). The theorem Gammaℝ_eq_zero_iff is a certified statement whose classical reading (“\(\Gamma_{\mathbb R}\) vanishes exactly at \(0,-2,-4,\dots\)”) is false: those are the points where \(\Gamma_{\mathbb R}\) is infinite. Statements Mathlib proves for every argument then hold at the poles only as “0”\({}={}\)“0.” The reflection formula Complex.Gamma_mul_Gamma_one_sub holds at every whole number \(z\) because the left side contains a factor “0” and the right side is \(\pi/\sin(\pi z)=\pi/0=\text{“0”}\); classically both sides are infinite. The limit theorem Complex.GammaSeq_tendsto_Gamma, which states that Gauss’s products tend to \(\Gamma(s)\), holds at the poles because the products themselves become \(x/0=\text{“0”}\) once their denominators pass through \(0\); classically the products have a vanishing denominator there and no value.

3.2 The completed function and its pole terms

Mathlib builds the completed function from a pair of functions linked by a functional equation, through the Mellin transform \(\int_0^\infty t^{s-1}f(t)\,dt\) of a theta function. For such a pair it defines an entire function \(\Lambda_0\) and then \[\Lambda(s)=\Lambda_0(s)-\frac{1}{s}\,f_0-\frac{\varepsilon}{k-s}\,g_0\] (Mathlib/NumberTheory/LSeries/AbstractFuncEq.lean, lines 376–379), where \(f_0\), \(g_0\) are constants, \(\varepsilon\) is a sign and \(k\) is the weight. For the even Hurwitz zeta function at the parameter \(0\), which is Riemann’s case, Mathlib evaluates this at \(s/2\) with \(k=\tfrac12\) and divides by \(2\) (HurwitzZetaEven.lean, lines 297–298). The two pole terms are therefore multiples of \(1/s\) and of \(1/(1-s)\). At \(s=0\) the first is \(1/0\); at \(s=1\) the second is \(1/0\). Under div_zero each is “0,” so Mathlib’s completed function carries finite numbers at both of its poles. Mathlib’s documentation says so in its own terms: the \(\zeta\) of mathematics has no value at \(s=1\), the \(\Lambda\) of mathematics has none at \(s=0\) or at \(s=1\), and the construction puts values at these points (RiemannZeta.lean, module documentation).

3.3 Mathlib’s zeta function

Mathlib defines \[\texttt{hurwitzZetaEven a} = \texttt{Function.update}\ \big(s\mapsto \Lambda_a(s)/\Gamma_{\mathbb R}(s)\big)\ \ 0\ \ (\text{if } a=0 \text{ then } -\tfrac12 \text{ else } 0)\] (HurwitzZetaEven.lean, lines 583–585) and riemannZeta = hurwitzZetaEven 0 (RiemannZeta.lean, line 121). Function.update f 0 v is the function equal to \(f\) at every point except \(0\), where it takes the value \(v\). Write \(Z\) for riemannZeta. Mathlib’s sentence is \[\texttt{RiemannHypothesis} :\ \forall s\in\mathbb C,\ Z(s)=0\ \Rightarrow\ \big(\neg\exists n\in\mathbb N,\ s=-2(n+1)\big)\ \Rightarrow\ s\neq1\ \Rightarrow\ \operatorname{Re}s=\tfrac12\] (RiemannZeta.lean, lines 185–186).

3.4 What \(Z\) carries at \(s=1\)

Proposition 5. \(Z(1)=(\gamma-\log4\pi)/2\approx-0.97690\). This number is the finite part of the completed function \(\Lambda\) at its pole \(s=1\). It differs from the finite part \(\gamma\) of \(\zeta\) by \(-(\gamma+\log4\pi)/2\).

Proof. Mathlib proves (tendsto_hurwitzZetaEven_sub_one_div_nhds_one) that \(Z(1)\) is the limit, as \(s\to1\), of \(Z(s)-\dfrac{1}{(s-1)\,\Gamma_{\mathbb R}(s)}\). For \(s\neq1\) near \(1\), \(Z(s)=\zeta(s)=\dfrac{1}{s-1}+\gamma+O(s-1)\). Since \(\Gamma_{\mathbb R}(1)=1\) and \(\Gamma_{\mathbb R}\) has a complex derivative at \(1\), \[\frac{1}{\Gamma_{\mathbb R}(s)}=1-\frac{\Gamma_{\mathbb R}'(1)}{\Gamma_{\mathbb R}(1)}\,(s-1)+O\big((s-1)^2\big)=1-L\,(s-1)+O\big((s-1)^2\big),\] where \(L=(\Gamma_{\mathbb R}'/\Gamma_{\mathbb R})(1)\) is the logarithmic derivative at \(1\). Dividing by \(s-1\): \[\frac{1}{(s-1)\Gamma_{\mathbb R}(s)}=\frac{1}{s-1}-L+O(s-1).\] Subtracting this from \(Z(s)\) gives \(\gamma+L+O(s-1)\), so \(Z(1)=\gamma+L\). Taking the logarithmic derivative of \(\pi^{-s/2}\Gamma(s/2)\) gives \(L(s)=-\tfrac12\log\pi+\tfrac12\psi(s/2)\), where \(\psi=\Gamma'/\Gamma\). At \(s=1\) this is \(-\tfrac12\log\pi+\tfrac12\psi(\tfrac12)\). The classical value \(\psi(\tfrac12)=-\gamma-2\log2\) follows from the duplication formula of Adrien-Marie Legendre (1752–1833) [14]. Hence \(L=-\tfrac12\log\pi-\tfrac12\gamma-\log2\) and \[Z(1)=\gamma-\tfrac12\gamma-\log2-\tfrac12\log\pi=\tfrac12\big(\gamma-\log4-\log\pi\big)=\tfrac12(\gamma-\log4\pi).\] This agrees with Mathlib’s lemma riemannZeta_one (Mathlib/NumberTheory/Harmonic/ZetaAsymp.lean, line 418). Since \(\Lambda(s)=\Gamma_{\mathbb R}(s)\zeta(s)=\dfrac{1}{s-1}+(\gamma+L)+O(s-1)\), the number \(\gamma+L\) is \(\Lambda\)’s finite part at \(1\). Finally \(Z(1)-\gamma=L=-(\gamma+\log4\pi)/2\). The Supporting Information evaluates both limits numerically: \(\zeta(s)-1/(s-1)\to0.5772\ldots\) and \(\zeta(s)-1/((s-1)\Gamma_{\mathbb R}(s))\to-0.97690\ldots\).

Consequence. The number at \(s=1\) is a property of the formula Mathlib divides through, \(\Lambda/\Gamma_{\mathbb R}\), read under \(1/0=\text{“0.”}\) It is not a property of \(\zeta\), which has the pole there; it is not even \(\zeta\)’s finite part. The next proposition shows the same rule applied to another classical formula for \(\zeta\).

Proposition 6. Let \(\eta(s)=\sum_{n\ge1}(-1)^{n-1}n^{-s}\), the alternating zeta function, which converges for \(\operatorname{Re}s>0\) and has a complex derivative there. Classically \(\zeta(s)=\eta(s)/(1-2^{1-s})\) for every \(s\) with \(\operatorname{Re}s>0\) at which \(1-2^{1-s}\neq0\). Define \(E(s)=d\big(\eta(s),\,1-2^{1-s}\big)\), the same formula with Lean’s division. Then \(E(1)=\text{“0,”}\) and \(E(1+2\pi ik/\log2)=\text{“0”}\) for every nonzero integer \(k\), while \(\zeta(1+2\pi ik/\log2)\neq0\). A sentence of the form of RiemannHypothesis written with \(E\) in place of \(Z\) is refuted at each of these points.

Proof. At \(s_k=1+2\pi ik/\log2\), with \(k\) any integer, \(2^{1-s_k}=e^{(1-s_k)\log2}=e^{-2\pi ik}=1\), so the denominator \(1-2^{1-s_k}\) is \(0\) and \(E(s_k)=d(\eta(s_k),0)=\text{“0”}\) by div_zero. For \(k=0\), \(s_0=1\) and \(\eta(1)=\log2\), so \(E(1)=d(\log2,0)=\text{“0.”}\) For \(k\neq0\), the classical identity \(\eta(s)=(1-2^{1-s})\zeta(s)\) gives \(\eta(s_k)=0\cdot\zeta(s_k)=0\), so \(E(s_k)=d(0,0)=\text{“0”}\) as well. Each \(s_k\) has real part \(1\); by the theorem of Hadamard and de la Vallée Poussin, \(\zeta(s_k)\neq0\) for \(k\neq0\). The sentence’s three exclusions do not remove \(s_k\) for \(k\neq0\): \(s_k\) is not of the form \(-2(n+1)\) and is not \(1\). At \(s_k\) the sentence’s hypothesis \(E(s_k)=0\) holds and its conclusion \(\operatorname{Re}s_k=\tfrac12\) fails.

Consequence. Two classical formulas for \(\zeta\), agreeing at every point where both have values, receive under Lean’s rule the values \(-0.977\) and “0” at \(s=1\), and the second receives “0” at infinitely many points of the line \(\operatorname{Re}s=1\) where \(\zeta\) has no zero. Whether a Lean zeta function satisfies the sentence therefore depends on which formula it was built from. Mathlib’s formula avoids false zeros at \(s=1\) and on the line \(\operatorname{Re}s=1\); the rule does not.

Proposition 7 (the number at the pole depends on how the formula is written). Mathlib’s completed function for Riemann’s case is \[\Lambda(s)=\Lambda_0(s)-\frac1s-\frac1{1-s}\] with \(\Lambda_0\) free of poles (completedRiemannZeta_eq, Mathlib/NumberTheory/LSeries/RiemannZeta.lean, lines 85–86). For every \(s\) other than \(0\) and \(1\), \[\Lambda_0(s)-\frac1s-\frac1{1-s}=\frac{s(1-s)\Lambda_0(s)-1}{s(1-s)} .\] Read under Lean’s rule at \(s=1\), the left side is \(\Lambda_0(1)-1=(\gamma-\log4\pi)/2\) and the right side is “0.” The function built as Mathlib builds \(Z\), with the right side written in the place of the left, equals \(Z\) at every \(s\neq1\) and carries “0” at \(s=1\).

Proof. For \(s\) other than \(0\) and \(1\) the two pole terms have the common denominator \(s(1-s)\): \(\frac1s+\frac1{1-s}=\frac{(1-s)+s}{s(1-s)}=\frac{1}{s(1-s)}\). Writing \(\Lambda_0(s)\) over the same denominator gives the identity. At \(s=1\) the left side is read term by term: \(1/1=1\), and \(1/(1-1)=1/0=\text{“0”}\) by div_zero; so its value is \(\Lambda_0(1)-1\). Dividing by \(\Gamma_{\mathbb R}(1)=1\) gives \(Z(1)\), which is \((\gamma-\log4\pi)/2\) by Proposition 5. The right side at \(s=1\) has the denominator \(1\cdot0=0\), so under div_zero its value is “0,” whatever its numerator, which is \(-1\); dividing by \(\Gamma_{\mathbb R}(1)=1\) leaves “0.” At every \(s\) other than \(0\) and \(1\) the two sides are equal and no denominator vanishes, so the two functions agree there. At \(s=0\) both carry the value \(-\tfrac12\) that Mathlib sets by hand.

Consequence. The number \(-0.977\) at the pole is the result of writing two fractions separately. Written as one fraction, the same classical formula gives the number “0” there, the mark that Lean’s conventions put at every other pole and undefined expression in the census of Section 8. The two ways of writing give the same function of classical mathematics, with the same pole. In Lean they give two different functions, and Section 5 shows that the certified derivation holds for the first and that its central lemma is false for the second.

3.5 What \(Z\) carries at \(s=0\)

Proposition 8. Let \(F(s)=\Lambda(s)/\Gamma_{\mathbb R}(s)\) computed with Lean’s division, that is, Mathlib’s formula for \(Z\) before Function.update. Then \(F(0)=\text{“0,”}\) whereas \(\zeta(0)=-\tfrac12\). The sentence RiemannHypothesis written with \(F\) in place of \(Z\) is refuted at \(s=0\).

Proof. By Proposition 4, \(\Gamma_{\mathbb R}(0)=\text{“0”}\) (the case \(n=0\) of Gammaℝ_eq_zero_iff). Mathlib’s \(\Lambda(0)\) is a finite number, because its pole term \(1/s\) is read at \(s=0\) as “0,” and its other pole term \(1/(1-s)\) equals \(1\) there. So \(F(0)=d(\Lambda(0),0)=\text{“0”}\) by div_zero. Classically, near \(0\), \(\Lambda(s)=-1/s+O(1)\) and \(\Gamma_{\mathbb R}(s)=(2/s)(1+O(s))\), so \(\Lambda(s)/\Gamma_{\mathbb R}(s)=\dfrac{-1/s+O(1)}{(2/s)(1+O(s))}=-\tfrac12+O(s)\) and \(\zeta(0)=-\tfrac12\). In the sentence with \(F\): \(F(0)=0\) holds; \(0\) is not of the form \(-2(n+1)\) because \(-2(n+1)\le-2\); \(0\neq1\); and \(\operatorname{Re}0=0\neq\tfrac12\). So the sentence fails at \(s=0\).

Consequence. At \(s=0\) Lean’s rule meets a ratio of two infinite quantities, reads each as a finite quantity or as “0,” and returns “0” where the classical value is \(-\tfrac12\). Mathlib replaces that value with \(-\tfrac12\) through Function.update, and proves (differentiableAt_update_of_residue) that the replaced function has a complex derivative at \(0\), so the hand-set value is the limit of \(Z\) near \(0\). That proof itself rewrites \(\Gamma(0)\) to “0” and applies div_zero (HurwitzZetaEven.lean, line 574). The kernel accepts the definition with the update and would accept the definition without it; the first makes the Lean sentence agree with the Riemann hypothesis at \(s=0\), the second makes the Lean sentence false there. At \(s=0\) the truth value of the Lean sentence is fixed by the value set by hand. The kernel does not check that a definition is the intended one; the support for the hand-set value is the proof just cited, that it is the limit.

3.6 What \(Z\) carries at the trivial zeros

Mathlib’s proof that \(Z(-2(n+1))=0\) (hurwitzZetaEven_neg_two_mul_nat_add_one, HurwitzZetaEven.lean, lines 603–608) rewrites \(\Gamma_{\mathbb R}(-2(n+1))\) to “0” by Gammaℝ_eq_zero_iff and applies div_zero. Read with classical division, “a nonzero finite number divided by \(0\)” describes a pole, not a zero. The classical value \(0\) comes from the opposite fact, that \(\Gamma_{\mathbb R}\) is infinite there and \(1/\Gamma_{\mathbb R}\) vanishes. Mathlib reaches the classical value through two reversals that cancel: the pole written as “0,” and \(x/0\) written as “0.” The odd Hurwitz function’s trivial zeros are obtained the same way (hurwitzZetaOdd_neg_two_mul_nat_sub_one).

3.7 Reciprocal and logarithmic derivative at \(s=1\)

Proposition 9. In Mathlib, \(Z(1)^{-1}=2/(\gamma-\log4\pi)\approx-1.02364\), whereas \(1/\zeta(s)\to0\) as \(s\to1\); the function \(s\mapsto Z(s)^{-1}\) is discontinuous at \(1\). Mathlib’s derivative of \(Z\) at \(1\) is “0,” so the logarithmic derivative of \(Z\) at \(1\) is “0,” whereas \(-\zeta'(s)/\zeta(s)=1/(s-1)+O(1)\) near \(1\).

Proof. The first value is the reciprocal of Proposition 5. Classically \(1/\zeta(s)=(s-1)/(1+\gamma(s-1)+\cdots)\to0\). A function with a complex derivative at a point is continuous there; \(Z\) is not continuous at \(1\), because \(|Z(s)|\) grows without bound as \(s\to1\) while \(Z(1)\) is finite. So \(Z\) has no derivative at \(1\), and Mathlib’s deriv assigns “0” (deriv_zero_of_not_differentiableAt); then \(Z'(1)/Z(1)=d(0,Z(1))=\text{“0.”}\) Classically \(\zeta'(s)=-1/(s-1)^2+O(1)\) and \(\zeta(s)=1/(s-1)+O(1)\), so \(-\zeta'/\zeta=1/(s-1)+O(1)\).

Consequence. The pole of \(-\zeta'/\zeta\) at \(1\), whose residue \(1\) is the source of the main term \(x\) in the prime number theorem, appears in Mathlib only through limit theorems such as riemannZeta_residue_one; at the point itself the logarithmic derivative carries “0.” Statements that quantify over a region containing \(1\) cover the pole silently. Mathlib’s own documentation of riemannZeta_ne_zero_of_one_le_re records that the theorem needs no hypothesis \(s\neq1\), for the reason that the value at \(s=1\), which it calls junk, turns out not to be zero (Mathlib/NumberTheory/LSeries/Nonvanishing.lean, lines 22–23).

3.8 The mark written for three different things

In the construction just read, the one mark “0” is written for three different things: for a vanishing value, as at the trivial zeros; for an infinite value, as at the poles of \(\Gamma\) and \(\Gamma_{\mathbb R}\), where Gammaℝ_eq_zero_iff certifies that the points where \(\Gamma_{\mathbb R}\) “\(=0\)” are exactly its poles; and for the absence of a value, as in \(x/0\), \(0^{-1}\), and the integral, sum or derivative that does not exist. Lean’s equality cannot tell these apart, because the mark is the same. The trivial zeros of \(Z\) are produced by passing the second into the third. At \(s=0\) the same passage, applied to a ratio of two infinite quantities, produces a false zero. The certified sentence’s clause \(Z(s)=0\) is written with this mark. The census of Section 8 finds the same mark written for two further things: for a quantity that is negatively infinite, as in \(\log 0=\text{“0”}\); and for an infinite count, as in the number of elements of an infinite set, the dimension of a space of infinite dimension and an infinite order of vanishing read as a whole number.

3.9 The record of the assigned value in the library’s own sources

The value at \(s=1\) is recorded as a value without mathematical meaning by the people who built the function and by the people who certified the theorem.

The authors. Loeffler and Stoll describe the construction of riemannZeta in three steps and state that the value at \(s=1\) enters at the second, where Lean reads \(1/(1-1)\) as “0,” and that nobody selected it: it was carried forward from conventions adopted earlier in the construction. They compute it as \(\tfrac12(\gamma-\log4\pi)\), in agreement with Proposition 5. They also record what happened when the first formal statement of the Riemann hypothesis was announced. That statement said that every zero of the function other than the negative even integers has real part \(\tfrac12\), and it had no clause removing \(s=1\). Whether it was the Riemann hypothesis therefore depended on the assigned number: had that number been \(0\), the point \(s=1\) would have refuted the sentence. The authors then proved that the number is not \(0\) (riemannZeta_one_ne_zero). They add a warning about automated proof search: a system can prove a statement that resembles the intended one and is easier because of a gap at such a point, and mathematicians can take the intended statement to be settled [11, Section 5].

The library. At the pinned commit Mathlib’s definition carries the clause \(s\neq1\) (Section 3, displayed sentence). Its documentation says of the theorem riemannZeta_ne_zero_of_one_le_re that it needs no hypothesis \(s\neq1\) because the assigned value at \(s=1\) is nonzero (Mathlib/NumberTheory/LSeries/Nonvanishing.lean, lines 22–23 and 410), and of the function’s values at \(0\) and \(1\) that the construction assigns some values there (RiemannZeta.lean, module documentation).

The certifiers. The working notes of the people who checked the archive record that the statements were read by hand and that Mathlib’s sentence excludes the trivial zeros and the point \(s=1\), where Mathlib’s function has a junk value [4]. The verification record states what a pass shows: that the formal statements, as written against Mathlib’s definitions, follow from the three axioms according to the kernels used, on the condition that Mathlib’s definitions are what they are intended to be [3].

Consequence. That \(Z(1)\) is an assigned number and that the certified sentence is written around it are common ground between this paper and the certification. The paper differs from the certification on what follows. The certification treats the clause \(s\neq1\) as closing the matter. Sections 4 and 5 show that the clause makes the sentence independent of the assigned number and leaves the derivation dependent on it.

4 The certified sentence is a statement about the substitute

The Riemann hypothesis is a statement about \(\zeta\), the function Riemann continued, with its pole at \(1\). The certified sentence is a statement about \(Z\), a function made by replacing that pole with the number \((\gamma-\log4\pi)/2\) and by replacing, at \(s=0\), the value Lean’s rule produced with a value set by hand. The two sentences have different subjects. This section states the argument that connects them, and where it is made.

Theorem 10 (the bridge). Grant the following, which are Mathlib theorems: (i) for \(\operatorname{Re}s>1\), \(Z(s)=\sum_{n\ge1}n^{-s}\); (ii) \(Z\) has a complex derivative at every point other than \(1\); (iii) \(Z(s)-1/(s-1)\) tends to \(\gamma\) as \(s\to1\). Then \(Z(s)=\zeta(s)\) for every complex \(s\neq1\), and the following are equivalent: the sentence RiemannHypothesis holds of \(Z\); the Riemann hypothesis holds of \(\zeta\).

Proof. The set \(U\) of complex numbers other than \(1\) is open and connected. By (ii), \(Z\) restricted to \(U\) has a complex derivative on \(U\); by (i), it agrees with the series on the half-plane \(\operatorname{Re}s>1\), which is a region inside \(U\). Riemann’s \(\zeta\) has the same two properties. By the identity theorem, \(Z(s)=\zeta(s)\) for every \(s\in U\). Now take \(s\) with \(s\neq1\). Then \(Z(s)=0\) exactly when \(\zeta(s)=0\), and the sentence’s remaining clauses, “\(s\) is not of the form \(-2(n+1)\)” and “\(\operatorname{Re}s=\tfrac12\),” are the same for both. So the sentence, which excludes \(s=1\) by its clause \(s\neq1\), holds of \(Z\) exactly when every zero of \(\zeta\) in \(U\) other than the trivial zeros has real part \(\tfrac12\). The Riemann hypothesis concerns every zero of \(\zeta\); it says nothing different at \(s=1\) only because \(\zeta\) has no zero at \(1\). That last fact is the classical fact that \(\zeta\) has a pole at \(1\), where \(|\zeta(s)|\) exceeds every bound, which is (iii) read in classical arithmetic: the term \(1/(s-1)\) at \(s=1\) is \(1/0\), and \(1/0\) there is infinite, not \(0\). With it, the zeros of \(\zeta\) are exactly the zeros of \(Z\) in \(U\), and the two statements are equivalent.

Where the bridge is made. The properties (i)–(iii) are theorems of Mathlib, and the first two, together with Mathlib’s identity theorem for functions with a complex derivative, are constants of the exported proof (Supporting Information, Sections 21 and 29). Mathlib proves that riemannZeta has a complex derivative at every \(s\neq1\) (differentiableAt_riemannZeta, Mathlib/NumberTheory/LSeries/RiemannZeta.lean, line 139) and equals the series where \(\operatorname{Re}s>1\) (zeta_eq_tsum_one_div_nat_cpow, line 207), and it proves the identity theorem (AnalyticOnNhd.eqOn_of_preconnected_of_eventuallyEq, Mathlib/Analysis/Analytic/Uniqueness.lean, line 223). What no kernel-checked statement contains is \(\zeta\) itself. Mathlib at the pinned commit defines no zeta function on the plane without the point \(1\); its only zeta function is \(Z\), and the pole appears in Mathlib as theorems about limits of \(Z\) near \(1\) (riemannZeta_residue_one, tendsto_riemannZeta_sub_one_div). The bridge is therefore thin. Its pieces are machine-checked; what people add is the identification of Riemann’s \(\zeta\) with the function that has the properties (i) and (ii), which is the definition of \(\zeta\), and the reading of Mathlib’s sentence as Riemann’s statement. With a zeta function defined in Lean on the complex numbers other than \(1\), as the restriction of Mathlib’s function, the agreement would be a theorem of Lean of a few lines. The joint statement’s “the statement is correct” rests, for this step, on the judgment of the experts who vetted Mathlib’s definition [2], and the definition it rests on is the function with the pole replaced.

What the bridge needs at \(s=0\). Theorem 10 uses Mathlib’s value \(Z(0)=-\tfrac12\), which is the classical value because Mathlib proves the updated function has a derivative at \(0\). Proposition 8 shows that Mathlib’s formula without the update, read under Lean’s rule, makes the sentence false at \(0\). The bridge holds for the definition Mathlib has, and that definition holds at \(0\) a value set by hand against the output of its own formula.

4.1 What the form of the sentence sees

Proposition 11 (what the sentence form sees). For a function \(f\) from the complex numbers to the complex numbers let \(S(f)\) be the sentence: for every complex \(s\), if \(f(s)=0\), and \(s\) is not of the form \(-2(n+1)\) with \(n\) a whole number, and \(s\neq1\), then \(\operatorname{Re}s=\tfrac12\). So RiemannHypothesis is \(S(Z)\).

  1. (a) If \(f\) and \(g\) agree at every \(s\neq1\), then \(S(f)\) holds exactly when \(S(g)\) holds. In particular, for every complex number \(c\), \(S(Z)\) holds exactly when \(S(Z_c)\) holds, where \(Z_c\) is the function equal to \(Z\) at every point other than \(1\) and to \(c\) at \(1\). This includes \(c=0\).

  2. (b) If \(f(p)=0\) at a point \(p\) that is not of the form \(-2(n+1)\), is not \(1\), and has real part other than \(\tfrac12\), then \(S(f)\) is false. In particular \(S(f)\) is false for every \(f\) with \(f(0)=0\), and so for the function equal to \(Z\) at every point other than \(0\) and to “0” at \(0\).

  3. (c) If \(f(s)=d(N(s),D(s))\) for functions \(N\) and \(D\), where \(d\) is Lean’s division, and \(D(p)=0\) at a point \(p\) as in (b), then \(S(f)\) is false, whatever number \(N(p)\) is.

Proof. (a) Suppose \(S(f)\), and take \(s\) with \(g(s)=0\), \(s\) not of the form \(-2(n+1)\), and \(s\neq1\). Since \(s\neq1\), \(f(s)=g(s)=0\), and \(S(f)\) gives \(\operatorname{Re}s=\tfrac12\). So \(S(g)\) holds. The converse is the same argument with \(f\) and \(g\) exchanged. The functions \(Z\) and \(Z_c\) agree at every \(s\neq1\). (b) At \(s=p\) the three hypotheses of \(S(f)\) hold and its conclusion fails. The point \(0\) is such a point: \(-2(n+1)\le-2\), \(0\neq1\), and \(\operatorname{Re}0=0\). (c) \(f(p)=d(N(p),0)=\text{“0”}\) by the rule \(x/0=\text{“0,”}\) and (b) applies.

The Lean file that accompanies this paper proves (a), (b) and (c) for every type of arguments, every function and every division with \(x/0=\text{“0”}\): the theorems sent_blind_at_one, sent_patch_one, sent_refuted_at, sent_patch_refuted and sent_refuted_of_div, checked with Lean 4.33.1 and importing no library.

Consequence. Part (a) is the whole content of the clause \(s\neq1\): the sentence places no condition on what stands at the pole. Nothing in the certified sentence says that \(\zeta\)’s pole is a pole or that it is not a zero; a function with a zero at \(1\) satisfies the sentence exactly when \(Z\) does. Parts (b) and (c) say that at every other point where Lean’s division meets a vanishing denominator, the sentence is decided by the formula the function was built from: Propositions 8 and 6 are the instances \(p=0\) and \(p=1+2\pi ik/\log2\). The sentence is the Riemann hypothesis only for a function that equals \(\zeta\) at every point other than \(1\), and for Mathlib’s function that equality is, at \(s=0\), set by hand, and proved by Mathlib to be the limit of the function there (Section 3).

Proposition 12 (the encoding at the pole). Let \(Z_0\) be the function equal to \(Z\) at every point other than \(1\) and to “0” at \(1\).

  1. (a) The zeros of \(Z\) are the zeros of \(\zeta\): for every complex \(s\), \(Z(s)=0\) exactly when \(s\neq1\) and \(\zeta(s)=0\).

  2. (b) Part (a) holds because \(Z(1)\neq0\). The zeros of \(Z_0\) are the zeros of \(\zeta\) together with the point \(1\), which is not a zero of \(\zeta\).

  3. (c) Mathlib proves \(Z(1)\neq0\) from the number at \(1\). Its theorem riemannZeta_one_ne_zero rewrites \(Z(1)\) to \((\gamma-\log4\pi)/2\) by riemannZeta_one and shows that number to be negative, from \(\gamma<\tfrac23\) and \(\log4\pi>1\) (Mathlib/NumberTheory/Harmonic/ZetaAsymp.lean, lines 440–450); its documentation line says that the inequality holds “with Mathlib’s particular conventions.” In the exported proof riemannZeta_one is cited by that theorem alone.

Proof. (a) By Theorem 10, \(Z(s)=\zeta(s)\) at every \(s\neq1\), so at those points \(Z(s)=0\) exactly when \(\zeta(s)=0\). The point \(1\) is not a zero of \(\zeta\), since \(\zeta\) has no value there, and it is not a zero of \(Z\), by (c). (b) The argument of (a) used, at the point \(1\), that \(Z(1)\neq0\) and nothing else about the value there. \(Z_0\) agrees with \(\zeta\) away from \(1\), as \(Z\) does, and \(Z_0(1)=0\). (c) is read from the lines cited and from the dependency tables (Supporting Information, Section 29).

Consequence. Statements about \(Z\) bear on \(\zeta\) through this encoding. A statement that \(Z\) has no zero in a region that contains \(1\) encodes the statement that \(\zeta\) has no zero in the region, and the encoding is faithful because \(Z(1)\neq0\). Read by the names of its symbols, the same statement gives \(\zeta\) a value at \(1\) and is not true. Section 5.4 takes up the two readings. What the encoding does not change is where the fact comes from. An argument from the properties of \(\zeta\) obtains “\(1\) is not a zero” from the pole, through the values of \(\zeta\) near \(1\). The derivation obtains “the value at \(1\) is not \(0\)” from the number that one way of writing Mathlib’s formula leaves at \(1\), and \(Z_0\), which the other way of writing gives, is the function for which the encoding fails.

4.2 The other four certified sentences

The archive’s main file proves five sentences, stated in its file Statements.lean. The second, RiemannZetaZerosOnLine, repeats the first. The third, DirichletLNonvanishingRightOfHalf, states that for every modulus \(N\ge1\), every Dirichlet character \(\chi\) of modulus \(N\) and every \(s\) with \(\operatorname{Re}s>\tfrac12\) and (\(\chi\neq1\) or \(s\neq1\)), the \(L\)-function of \(\chi\) does not vanish at \(s\). The fourth and fifth, DirichletLZerosOnLine and PrimitiveDirichletLZerosOnLine, state that every zero of such an \(L\)-function with \(0<\operatorname{Re}s<1\) has real part \(\tfrac12\), for all characters and for primitive ones. A Dirichlet character of modulus \(N\) is a function on the whole numbers that is multiplicative, repeats with period \(N\) and vanishes at the numbers sharing a factor with \(N\); the character written \(1\) is the one equal to \(1\) at every number prime to \(N\), and its \(L\)-function has a pole at \(s=1\) as \(\zeta\) does. Mathlib’s \(L\)-function of that character is a total function and carries a number at \(s=1\). The third sentence removes that point by its clause, and the fourth and fifth by the condition \(\operatorname{Re}s<1\). The certifiers’ notes record that these statements range over every modulus and every character, imprimitive ones included, and that the additional factors of an imprimitive character vanish only on the line \(\operatorname{Re}s=0\), which the conditions exclude [4]. Each of the five sentences is therefore written around the assigned numbers in the same way, by a clause that removes the point, and the argument of Proposition 11(a) applies to each: its truth value does not depend on what stands at \(s=1\).

4.3 Riemann’s own statement covers the point \(1\), through the pole

The hypothesis is commonly stated through \(\zeta\): every zero of \(\zeta\) other than the trivial zeros has real part \(\tfrac12\). In that form the point \(1\) does not arise, because \(\zeta\) is undefined there, and a zero of a function is a point where the function is defined and equal to \(0\). Riemann did not state it in that form. In the memoir of 1859 he formed from \(\zeta\) a second function, \[\xi(s)=\tfrac12\,s\,(s-1)\,\pi^{-s/2}\,\Gamma\!\left(\tfrac s2\right)\zeta(s),\] which he wrote as a function of the number \(t\) with \(s=\tfrac12+ti\), and he said of it that very probably all of its roots \(t\) are real [15]. A root \(t\) is real exactly when the corresponding \(s\) has real part \(\tfrac12\). The hypothesis as its author stated it is therefore the statement that every zero of \(\xi\) has real part \(\tfrac12\).

Proposition 13 (the point \(1\) in Riemann’s statement and under Lean’s rules). The following hold of Riemann’s function \(\xi\).

  1. (a) The function \(\xi\) is defined and has a complex derivative at every point of the plane. Its values at \(1\) and at \(0\) are \(\xi(1)=\xi(0)=\tfrac12\), and at the negative even integers \(\xi(-2m)=\xi(1+2m)>0\) for \(m=1,2,3,\dots\) The value at \(1\) comes from the pole of \(\zeta\): as \(s\) approaches \(1\) the product \((s-1)\,\zeta(s)\) approaches \(1\), the residue.

  2. (b) Riemann’s statement therefore covers the point \(1\), and it holds there because \(\zeta\) has a pole there. It sets no point aside. The zeros of \(\xi\) are the zeros of \(\zeta\) other than the trivial ones, so the statement through \(\xi\) and the statement through \(\zeta\) are equivalent; the proof of the equivalence uses the pole of \(\zeta\) at \(1\), the value \(\zeta(0)=-\tfrac12\) and the poles of \(\Gamma\).

  3. (c) Let \(\xi_L(s)\) be the same product written with Mathlib’s functions and evaluated by Lean’s rules: \(\tfrac12\,s\,(s-1)\,\pi^{-s/2}\) times Mathlib’s gamma function at \(s/2\) times \(Z(s)\). Then \(\xi_L(1)\), \(\xi_L(0)\) and \(\xi_L(-2m)\) for \(m=1,2,3,\dots\) are all “0.” At \(1\) the factor \(s-1\) is \(0\) and the other factors are finite numbers, the number \(Z(1)\) among them. At \(0\) the factor \(s\) is \(0\). At \(-2m\) Mathlib’s gamma function carries “0,” and \(Z\) is \(0\) as well.

  4. (d) The sentence “every zero of \(\xi_L\) has real part \(\tfrac12\)” is refuted by Lean’s rules, whatever is true of \(\zeta\): \(\xi_L(1)\) is “0,” and the real part of \(1\) is not \(\tfrac12\).

  5. (e) Mathlib at the pinned commit contains no definition named for \(\xi\). A function equal to \(\xi\) at every point can be written with Mathlib’s entire function completedRiemannZeta0, here called \(\Lambda_0\): it is \(\tfrac12\bigl(s(s-1)\Lambda_0(s)+1\bigr)\). The summand \(1\) is what the two pole terms of the completed zeta function contribute. Written with Mathlib’s functions and evaluated by Lean’s rules, this formula is \(\tfrac12\) at \(1\) and at \(0\), since no division by \(0\) occurs in it.

Proof. (a) Write the product as \(\tfrac12\cdot s\cdot\bigl[(s-1)\zeta(s)\bigr]\cdot\bigl[\pi^{-s/2}\,\Gamma(s/2)\bigr]\). By the expansion of Section 2, \((s-1)\zeta(s)=1+\gamma(s-1)+\cdots\) near \(1\), which tends to \(1\); and \(\pi^{-1/2}\,\Gamma(\tfrac12)=\pi^{-1/2}\sqrt\pi=1\). So the product tends to \(\tfrac12\cdot1\cdot1\cdot1=\tfrac12\) as \(s\) approaches \(1\), and \(\xi(1)\) is that limit. Near \(0\) write the product as \(\tfrac12\cdot\bigl[s\,\Gamma(s/2)\bigr]\cdot(s-1)\cdot\pi^{-s/2}\,\zeta(s)\); since \(s\,\Gamma(s/2)=2\,\Gamma(s/2+1)\) tends to \(2\) and \(\zeta(0)=-\tfrac12\), the product tends to \(\tfrac12\cdot2\cdot(-1)\cdot1\cdot(-\tfrac12)=\tfrac12\). The functional equation of Section 2 gives \(\xi(s)=\xi(1-s)\), so \(\xi(-2m)=\xi(1+2m)\), and at \(1+2m\) every factor of the product is a positive number. At \(-2m\) itself the pole of \(\Gamma(s/2)\) meets the trivial zero of \(\zeta\) and the product has a finite limit that is not \(0\). (b) A zero of \(\xi\) is a point where the product vanishes. The factors \(s\) and \(s-1\) vanish at \(0\) and \(1\), where by (a) \(\xi\) is \(\tfrac12\); the factor \(\pi^{-s/2}\Gamma(s/2)\) never vanishes; so the zeros of \(\xi\) are zeros of \(\zeta\), and by (a) the trivial zeros are not among them. (c) Lean’s multiplication returns \(0\) when a factor is \(0\), whatever the other factors are. At \(s=1\) the factor \(s-1\) is \(0\), and \(\pi^{-1/2}\), Mathlib’s \(\Gamma(\tfrac12)\) and \(Z(1)=(\gamma-\log4\pi)/2\) are numbers. At \(s=0\) the factor \(s\) is \(0\). At \(s=-2m\) Mathlib’s gamma function at \(-m\) is “0” (Proposition 4). The Lean file checks the form of the step (product_at_pole_is_zero, Appendix A). (d) follows from (c) at \(s=1\). (e) A search of Mathlib’s sources at the pinned commit finds no definition named for \(\xi\) (Supporting Information, Section 27). Mathlib proves that its completed zeta function is \(\Lambda_0(s)-1/s-1/(1-s)\) (completedRiemannZeta_eq, RiemannZeta.lean, lines 85–86). Multiplying by \(s(s-1)\) gives \(s(s-1)\Lambda_0(s)-(s-1)+s=s(s-1)\Lambda_0(s)+1\) at every \(s\) other than \(0\) and \(1\), and the right side is defined at every point. At \(s=1\) and at \(s=0\) the product \(s(s-1)\Lambda_0(s)\) is \(0\), because \(\Lambda_0\) has a value at both points (Mathlib proves \(\Lambda_0(1)=(\gamma-\log4\pi)/2+1\), completedRiemannZeta0_one, Mathlib/NumberTheory/Harmonic/ZetaAsymp.lean, line 435), so the formula gives \(\tfrac12\) there; no denominator in it is \(0\), so Lean’s rules give the same.

what stands at the point \(s=1\)
Riemann’s statement \(\xi(1)=\tfrac12\), the residue of \(\zeta\) at its pole
the certified proof \(Z(1)\approx-0.977\), used as a number that is not \(0\)
the certified sentence an exception: the point is set aside
Riemann’s product, transcribed factor by factor, under Lean’s rules \(\xi_L(1)=\text{“0,”}\) a zero with real part \(1\)
the formula \(\tfrac12\bigl(s(s-1)\Lambda_0(s)+1\bigr)\) under Lean’s rules \(\tfrac12\), the value of \(\xi\)

Consequence. The hypothesis as Riemann stated it does not set the pole aside. It takes the pole in: the factor \(s-1\) is there to meet it, and the value \(\tfrac12\) at \(s=1\) is the residue of \(\zeta\) made into a value. The certified sentence is not that statement and does not treat the point as that statement does. Where Riemann has \(\xi(1)=\tfrac12\), the certified proof has the number \(-0.977\) and the certified sentence has an exception. The certified sentence is equivalent to Riemann’s statement by the theorem of (b), which people prove and which no machine checked. The certified material contains neither Riemann’s function nor Riemann’s statement. Written with Mathlib’s functions, Riemann’s statement is decided at \(1\) by how the formula is written: transcribed factor by factor, as Riemann wrote the product, it is refuted there by Lean’s rules, because the conventions that give \(Z\) a number at \(1\) make the product “0” there; written as \(\tfrac12\bigl(s(s-1)\Lambda_0(s)+1\bigr)\), it is \(\tfrac12\) there, as \(\xi\) is. So the exception \(s\neq1\) is not the classical treatment of the pole. It is a repair for a number that the classical function does not have.

4.4 A statement free of the substitute was available

Nothing in Lean required the certified sentence to be written with a function that carries a number at the pole. Three other ways were open, and Mathlib contains the material for each.

A function without the pole. Mathlib defines, by an explicit case at the point \(1\), the function riemannZeta₁, equal to \((s-1)Z(s)\) at \(s\neq1\) and to \(1\) at \(s=1\) (Mathlib/NumberTheory/Harmonic/ZetaAsymp.lean, lines 532–536), and proves that it has a complex derivative at every point. Classically this is the function \((s-1)\zeta(s)\), which has no pole: its value at \(1\) is the residue of \(\zeta\), the number \(1\). Its zeros are the zeros of \(\zeta\). A sentence “every zero of this function other than \(-2,-4,\dots\) has real part \(\tfrac12\)” needs no clause for the point \(1\), and the function it is written with has, at every point, the value of a function of classical mathematics.

A function on the plane without the point. Lean has types of the form “the complex numbers other than \(1\).” A zeta function defined on that type has no value at \(1\) to assign.

Every continuation at once. The hypothesis can be stated without naming any zeta function of the library: for every function \(f\) from the complex numbers to the complex numbers that has a complex derivative at every point other than \(1\) and equals \(\sum_{n\ge1}n^{-s}\) at every \(s\) with \(\operatorname{Re}s>1\), every zero of \(f\) other than \(1\) and other than \(-2,-4,\dots\) has real part \(\tfrac12\). The sentence constrains \(f\) at no instance where a convention fires: the series is used only where it converges, each of its terms has a nonzero denominator, and nothing is asked of \(f\) at \(1\). By the identity theorem, any two such functions agree at every point other than \(1\), so the sentence says of \(\zeta\)’s values exactly what the Riemann hypothesis says. Inside Lean it follows from the certified theorem together with the three theorems of Theorem 10 and Mathlib’s identity theorem for functions with a complex derivative; the abstract core of that step is the theorem sent_blind_at_one of this paper’s Lean file.

Consequence. The central step of the bridge, that the function of the certified sentence agrees with \(\zeta\) at every point other than the pole, is a short step whose pieces Lean has checked: the two properties of \(Z\) and the identity theorem are theorems of Mathlib and constants of the exported proof (Section 4). What the certified material does not contain is the step itself, a theorem about a function with no value at \(1\), and this paper, for which no part of Mathlib was built, does not supply it either. With that step checked, the premises held by people alone would shrink to the reading of Lean’s complex numbers, derivative and sum, and to the definition of \(\zeta\) as the continuation of the series (Section 12). The certification’s comparison established that the sentence proved is Mathlib’s sentence. It says nothing of whether Mathlib’s sentence is the hypothesis, and the certification stopped there.

5 The derivation’s route through the poles

This section reads the places where the derivation itself uses the values the conventions put at poles and degenerate points. In each, it states the value used, what the classical object has there, and what the classical argument states at the same point.

5.1 The pole and the set of zeros at the step that produces the absence of zeros

The derivation reaches the absence of zeros off the critical line through a criterion of Landau type, in the archive’s directory Development/AutomorphicArithmetic/DedekindLFunctions and its subdirectory LandauTheorems. Edmund Landau (1877–1938) proved in 1905, after Riemann and Hadamard, that a Dirichlet series with nonnegative coefficients has a singularity at the real point where its region of convergence begins [18]. The archive applies a criterion of that kind to a transform \(\Phi\) of a sum over prime powers, whose poles sit at the zeros of the \(L\)-functions under study.

The archive defines a character family \(F\) as a finite list of Dirichlet characters \(\chi_i\) of moduli \(N_i\) with positive weights, each with \(N_i=1\) or \(\chi_i\neq1\) (CharFamily.lean, lines 24–32). The member of modulus \(1\) has \(L\)-function \(Z\). It defines \[\texttt{zeroSet}\ F=\{\rho:\ 0<\operatorname{Re}\rho\ \text{and, for some } i,\ L(\chi_i,\rho)=0\ \text{or}\ L(\chi_i,\bar\rho)=0\}\] (LandauZeroFreeCriterion.lean, lines 11–13), where \(\bar\rho\) is the complex conjugate, and \[\texttt{ZeroFree}\ F\ \theta:\quad\text{for every } i \text{ and every } s \text{ with } \theta<\operatorname{Re}s,\quad L(\chi_i,s)\neq0\] (CharFamily.lean, lines 38–39). Neither definition has a clause removing \(s=1\).

Proposition 14 (the pole is outside the derivation’s zero set because of the assigned number). Let \(F\) be a character family with a member of modulus \(1\), and let \(0<\theta<1\).

  1. (a) The point \(1\) belongs to zeroSet \(F\) exactly when one of the family’s \(L\)-functions carries “0” at \(s=1\). For the member of modulus \(1\) this is the condition \(Z(1)=0\).

  2. (b) The derivation proves that \(1\) is outside zeroSet \(F\) (poleData, file poleData.lean, lines 339–343). It supposes \(\rho=1\) in the set and applies, at \(\rho=1\), the archive’s statement charFamily_LFunction_ne_zero_of_one_le_re: for every member and every \(s\) with \(\operatorname{Re}s\ge1\), \(L(\chi_i,s)\neq0\). For the member of modulus \(1\) the proof of that statement is Mathlib’s riemannZeta_ne_zero_of_one_le_re (file CharFamilyLFunctionNeZeroOfOneLeRe.lean, lines 9–20), whose instance at \(s=1\) is the fact that the assigned number is not \(0\).

  3. (c) The lemma lemmaL (file lemmaL.lean, lines 13–22), which concludes ZeroFree \(F\) \(\theta\) from the bound on windows WindowHyp \(F\) \(\theta\) \(\delta\), closes the case \(\operatorname{Re}s\ge1\) with the same statement. Its conclusion includes \(Z(1)\neq0\).

  4. (d) Let \(Z_0\) be the function equal to \(Z\) at every point other than \(1\) and to “0” at \(1\). The certified sentence holds of \(Z_0\) exactly when it holds of \(Z\). Take \(Z_0\) as the \(L\)-function of the member of modulus \(1\) in the definitions above. Then the point \(1\) belongs to zeroSet \(F\); the conclusion of lemmaL is false at \(s=1\), while its hypothesis is unchanged; and the statement of riemannZeta_ne_zero_of_one_le_re is false of \(Z_0\).

Proof. (a) \(\operatorname{Re}1=1>0\) and \(\bar1=1\), so \(1\) belongs to the set exactly when \(L(\chi_i,1)=0\) for some \(i\). (b) and (c) are read from the lines cited, which the Supporting Information prints: in poleData the lines are intro h (the supposition \(\rho=1\)), a division into the two cases of membership, and exact charFamily_LFunction_ne_zero_of_one_le_re F i0 ρ (by rw [h]; simp) h’, where by rw [h]; simp proves \(1\le\operatorname{Re}\rho\) from \(\rho=1\); in lemmaL the lines are by_cases h1 : 1 ≤ s.re followed by exact charFamily_LFunction_ne_zero_of_one_le_re F i s h1 hzero. (d) The first claim is Proposition 11(a). With \(Z_0\), part (a) puts \(1\) in the set. ZeroFree \(F\) \(\theta\) asserts \(L(\chi_i,s)\neq0\) at every \(s\) with \(\theta<\operatorname{Re}s\); since \(\theta<1\), this includes \(s=1\) for the member of modulus \(1\), where \(Z_0(1)=0\). The hypothesis WindowHyp (CharFamily.lean, lines 41–45) is a bound on integrals of the function Gm \(F\), which is defined (lines 10–36) from sums of the von Mangoldt function against the characters, with the correction \(-y\log y+(1+\gamma)y\) for the member of modulus \(1\) and \(y\,L'(\chi,1)/L(\chi,1)\) for a member with \(\chi\neq1\). The von Mangoldt function is the function equal to \(\log p\) at the powers of a prime \(p\) and to \(0\) elsewhere. The value of the member of modulus \(1\) at \(s=1\) occurs nowhere in that definition: the constant \(\gamma\) is entered as a constant. So the hypothesis is the same statement with \(Z_0\) as with \(Z\). Finally riemannZeta_ne_zero_of_one_le_re asserts nonvanishing at every \(s\) with \(\operatorname{Re}s\ge1\), and \(Z_0(1)=0\).

Consequence. The certified sentence is blind to the number at the pole, and the derivation is not. The derivation is a derivation about the particular substitute \(Z\). It is not, as written, a derivation for the substitute \(Z_0\), although \(Z\) and \(Z_0\) satisfy the same certified sentence, agree at every point other than the pole, and differ from \(\zeta\) at the same single point, where each has a number and \(\zeta\) has none. They differ from each other in that the zeros of \(Z\) are those of \(\zeta\) and the zeros of \(Z_0\) include the point \(1\) (Proposition 12). The step taken at the pole is, in classical mathematics, “\(\zeta\) has a pole at \(1\), so \(1\) is not a zero.” Lean cannot take that step for a set defined by \(L(\chi,\rho)=0\), because at \(\rho=1\) its function has a number, and the number decides membership. This is the situation Loeffler and Stoll recorded for the first formal statement of the hypothesis (Section 3.9), recurring inside the derivation: a statement whose truth depends on the assigned number being different from \(0\).

The archive handles the point in the classical way elsewhere. Its statements that count zeros of \(Z\) carry the clause \(w\neq1\) (for instance logDeriv_riemannZeta_local_zero_sum), and its lemma riemannZeta₁_ne_zero_of_one_le_re treats \(s=1\) separately, through the function \((s-1)Z(s)\) continued to \(1\) by the residue (Formalism/ZeroFreeRegion/ZetaLogDerivativeBounds/SmallHeightLogDeriv.lean, lines 17–24). At the step that produces the absence of zeros it does not. The classical argument has, at this point, the same chain with the clause \(\rho\neq1\) in the zero set. The certified term is not that derivation, and with the clause it would still be a chain of statements about \(Z\) (Section 15).

The function \(Z_0\) of part (d) is not an invention made for the argument. By Proposition 7 it is the function that Mathlib’s own definition gives when the two pole terms of the completed function are written as one fraction. At every other pole and undefined expression in the census the mark that the conventions assign is “0.” At the pole of \(\zeta\) alone the assigned number is something else, because of the way one formula is written, and the lemma that produces the absence of zeros needs exactly that exception.

The statement from which the certified theorems are drawn. The lemma lemmaL is not an isolated case. The statements above it on the line of descent of the certified theorems (Section 8.6) are written in the same way, up to the last step before the certified sentences.

Proposition 15 (the certified theorems are drawn from a statement that asserts a nonzero value at the pole). Let \(Z_0\) be the function of Proposition 14(d), equal to \(Z\) at every point other than \(1\) and to “0” at \(1\).

  1. (a) The archive defines, for a primitive Dirichlet character \(\psi\) with its modulus (a PChar) and a real number \(\theta\), \[\texttt{PChar.ZeroFreeAbove}\ \psi\ \theta:\quad\text{for every complex } s \text{ with } \theta<\operatorname{Re}s,\quad L(\psi,s)\neq0,\] and from it ZeroFreeAll: for every PChar \(\psi\), PChar.ZeroFreeAbove \(\psi\) \(\tfrac12\); and, for a level \(\Lambda\), Level.ZeroFreeAbove \(\Lambda\) \(\theta\): for every \(\psi\) among the characters kept by \(\Lambda\), PChar.ZeroFreeAbove \(\psi\) \(\theta\) (ExplicitFormulaErrorOfHostConditions.lean, lines 11–24). None of these has a clause for \(s=1\).

  2. (b) The character of modulus \(1\) is a PChar (PChar.one), and every level keeps it: the structure KSet, which a level extends, has the field one_mem, stating that PChar.one is among the kept characters (PrimePairSizeCondition.lean, lines 19 and 39–42). So ZeroFreeAll contains the assertion \(Z(1)\neq0\), and so does Level.ZeroFreeAbove \(\Lambda\) \(\theta\) for every level \(\Lambda\) and every \(\theta<1\).

  3. (c) On the line of descent, lemmaL and zeroFree_of_rpow_window conclude ZeroFree \(F\) \(\theta\) for a character family \(F\) and \(0<\theta<1\). formB concludes, for every level \(\Lambda\) and every \(0<\theta<1\), from a bound on windows, Level.ZeroFreeAbove \(\Lambda\) \(\theta\); its proof applies zeroFree_of_rpow_window to the family that level_family forms from the characters kept by \(\Lambda\) (PrimitiveCosets/Imports.lean, lines 8–19; LevelFamily.lean, lines 41–42). zeroFreeAll_of_topG and zero_free_all_of_green_v_win conclude ZeroFreeAll. The theorem imprimitive has the statement \[\texttt{ZeroFreeAll}\ \Rightarrow\ \forall N,\ \forall\chi \bmod N,\ \forall s,\quad \tfrac12<\operatorname{Re}s\ \Rightarrow\ (\chi\neq1\ \text{or}\ s\neq1)\ \Rightarrow\ L(\chi,s)\neq0 ,\] whose conclusion is the archive’s EveryCharacter (Imprimitive.lean, lines 5–7; EveryCharacter.lean, lines 13–14). The clause “\(\chi\neq1\) or \(s\neq1\)” occurs in none of the five statements beneath it. Mathlib’s RiemannHypothesis is obtained from EveryCharacter at the character of modulus \(1\) by rh_of_every (Formalism/GammaFactorNonvanishing/CritLine.lean, lines 29–32).

  4. (d) Take \(Z_0\) as the \(L\)-function of the character of modulus \(1\). Then ZeroFreeAll is false, and Level.ZeroFreeAbove \(\Lambda\) \(\theta\) is false for every level \(\Lambda\) and every \(\theta<1\); EveryCharacter and RiemannHypothesis keep their truth values.

Proof. (a), (b) and (c) are read from the lines cited, which the Supporting Information prints. For (b): the point \(1\) has real part \(1\), which is above \(\tfrac12\) and above every \(\theta<1\), and Mathlib’s \(L\)-function of a character of modulus \(1\) is riemannZeta (LFunction_modOne_eq), so the instance of each statement at the character of modulus \(1\) and \(s=1\) is \(Z(1)\neq0\). (d) With \(Z_0\) that instance is \(0\neq0\), which is false, so each statement that contains it is false. EveryCharacter admits the pair of a character and a point only when \(\chi\neq1\) or \(s\neq1\); the value of the function of modulus \(1\) at \(s=1\) is the value at a pair with \(\chi=1\) and \(s=1\), which the clause removes; so the statement does not consult it and has the same truth value with \(Z_0\) as with \(Z\). For RiemannHypothesis this is Proposition 11(a). The Lean file checks the two forms in general: a statement of the form “no zero in the region,” without exception, is false of every function that has \(0\) at a point of the region, and the same statement with the point set aside has one truth value for all functions that agree away from the point (zeroFree_false_with_zero_at_one, zeroFreeGuarded_blind_at_one, unguarded_turns_on_value_guarded_does_not, Appendix A).

Consequence. What the derivation proves about all Dirichlet \(L\)-functions at once, in the form in which it proves it, is ZeroFreeAll: no zero at any point with real part above \(\tfrac12\), the point \(1\) of the zeta function included. That is a statement about \(Z\). It is true because the number at the pole is not \(0\), and it is false for \(Z_0\). Of \(\zeta\), its instance at \(s=1\) read by the names of its symbols, as a statement about a complex value, is not true, since it gives \(\zeta\) a value where \(\zeta\) has none; read as an encoding, it says that the pole is not a zero, which is true (Proposition 12; Section 1.2 treats the reading in the extended plane). The certified sentences are corollaries of it, obtained through Mathlib’s change-of-level formula, which brings the exception at the last step. The exception makes the certified sentences blind to the number at the pole. It does not reach back into the statement they are drawn from.

Of the twelve archive declarations in the exported proof that cite riemannZeta_ne_zero_of_one_le_re, six use it at \(s=1\) or state a fact that covers that point: charFamily_LFunction_ne_zero_of_one_le_re; poleData_char, which also cites riemannZeta_one_ne_zero at \(w=1\) (Exhibit 2); re_lt_one_of_zero, which states that every zero of the \(L\)-function of a primitive character has real part less than \(1\) and covers \(\rho=1\) for the modulus \(1\); exceptional_zero_real_of_landau_page; a private lemma of ZeroFreePrincipal.lean (line 36), whose hypothesis admits a zero \(\beta+it\) with \(\beta\ge\tfrac23\) real and whose proof excludes \(\beta\ge1\), the point \(\beta=1\), \(t=0\) included, by the theorem (line 84); and zeroFreeBoundedHeight (SmallHeight.lean, line 29), which applies the theorem at every point \(1+iy\), the point \(1\) included, with the clause \(s\neq1\) at hand and unused. The declarations poleData and lemmaL use it through the first of these. The other six apply the theorem at points other than \(1\).

Two further declarations use the assigned number in another way. differentiable_reg (LFunctionConj.lean, line 41) and b_hurzero (Hurzero.lean, line 20) apply at \(s=1\) Mathlib’s theorem differentiableAt_hurwitzZeta_sub_one_div. A Hurwitz zeta function, named after Adolf Hurwitz (1859–1919), who introduced it in 1882, after Riemann’s memoir, is the function \(\sum_{n\ge0}1/(n+a)^s\) for a fixed real number \(a\) with \(0<a\le1\), continued to the complex plane. The function \(\zeta\) is the case \(a=1\), which Mathlib writes as the parameter \(0\). Like \(\zeta\), each Hurwitz function has a pole at \(s=1\), and Mathlib’s version carries at \(s=1\) a number assigned by the same reading of the pole term. The theorem states that the Hurwitz function minus \(1/((s-1)\Gamma_{\mathbb R}(s))\) has a complex derivative at \(1\). At the point \(1\) the subtracted term is read as “0,” so the value of the difference there is the number assigned to the Hurwitz function, and the theorem holds at \(1\) because that number equals the limit of the difference. Here the assigned number carries a classical quantity, the limit. The function whose value it is remains a function with a number where the classical one has a pole, and with any other number at \(1\) the theorem is false.

5.2 A statement that turns on the value at the pole follows from no property of \(\zeta\)

Call a function from the complex numbers to the complex numbers a completion of \(\zeta\) at its pole when it agrees with \(\zeta\) at every point other than \(1\). The function \(Z\) is one, \(Z_0\) is another, and there is one for each complex number put at \(1\). Since \(\zeta\) has no value at \(1\), every property that \(\zeta\) has is a property of its values at the other points. Its pole is such a property: it is the growth of those values as \(s\) approaches \(1\). Every completion has all of these properties. A statement about a function is settled by \(\zeta\) when it has the same truth value for every completion, and it turns on the value at the pole when two completions give it different truth values.

Proposition 16 (statements that turn on the value at the pole are independent of the properties of \(\zeta\)). With the two definitions just given, the following hold.

  1. (a) A statement that turns on the value at the pole is derived by no system of rules that is sound for every completion of \(\zeta\), and neither is its negation. In particular it follows from no collection of properties that \(\zeta\) has.

  2. (b) The sentences RiemannHypothesis and EveryCharacter are settled by \(\zeta\).

  3. (c) The following turn on the value at the pole: Mathlib’s riemannZeta_one, riemannZeta_one_ne_zero and riemannZeta_ne_zero_of_one_le_re; and the archive’s ZeroFreeAll, Level.ZeroFreeAbove \(\Lambda\) \(\theta\) for \(\theta<1\), ZeroFree \(F\) \(\theta\) for \(\theta<1\) and a family with a member of modulus \(1\), and the statement that \(1\) is outside zeroSet \(F\).

Proof. (a) A system of rules sound for every completion derives only statements that are true of every completion. A statement that turns on the value at the pole is false of some completion, so the system does not derive it; its negation is false of another completion, so the system does not derive the negation. A property that \(\zeta\) has is a property of every completion, so rules that draw only on such properties are sound for every completion. The Lean file checks this form of the argument (independent_of_common_properties). (b) is Proposition 11(a) and Proposition 15(d). (c) riemannZeta_one states that the value at \(1\) is \((\gamma-\log4\pi)/2\); it is true of \(Z\) and false of every other completion. Each of the others is true of \(Z\) and false of \(Z_0\), by Propositions 14 and 15.

Consequence. The statements of part (c) are theorems of Lean. As statements about a function with a value at \(1\) they are consequences of nothing that \(\zeta\) has: each reports the number that one way of writing a formula leaves at the point \(1\), or a property of that number. Read as encodings they say true things about \(\zeta\): that the finite part of the completed function at its pole is \((\gamma-\log4\pi)/2\) (Proposition 5), and that \(1\) is not a zero (Proposition 12). The proposition separates the encoding from its source. The derivation proves these statements from the number that Mathlib’s formula leaves at \(1\), and that they are faithful encodings of facts about the pole is a further fact, true here and established outside the checked material. The paper [52] studies this situation in general: where the mathematics gives no value and a rule writes one, a sentence that asks for the value is left open by the mathematics and settled by the rule, and what is proved when such a sentence is proved is the content of the rule. That is the standing of ZeroFreeAll at \(s=1\).

The kernel does not separate the two kinds of statement. Mathlib’s theorem riemannZeta_one, which gives the zeta function a value at its pole, and Mathlib’s theorem riemannZeta_two, which gives its value at \(2\), are accepted by the same act and stand in the library with the same standing. That a derived statement is settled by \(\zeta\) is a further fact about it. No checker tests that fact, and for the certified sentence it is established by the argument made by hand in Section 12.

The certified proof derives a sentence that is settled by \(\zeta\) from statements that turn on the value at the pole. The certified sentence is therefore not reached, step by step, through statements about \(\zeta\) read by their names: the statements beneath it are statements about \(Z\), and what they say at the point \(1\) is proved from the number written there and bears on \(\zeta\) only through the encoding. The warrant that the derivation gives the certified sentence is the soundness of Lean’s rules for the function \(Z\), under the sponsors of Section 11; it is not a chain of facts about \(\zeta\).

5.3 When a theorem about a substitute gives a statement about \(\zeta\): three conditions

The functions \(Z\) and \(\zeta\) are the same function away from \(1\), and the Riemann hypothesis concerns points other than \(1\). From this one may conclude that a theorem about \(Z\) that sets the point \(1\) aside is the hypothesis, and that the number at \(1\) is scaffolding. The conclusion is correct under three conditions. This section states them, because they mark where the certified material ends and where its premises begin.

Proposition 17 (the three conditions). Let \(f\) be a function from the complex numbers to the complex numbers and let \(P\) be a statement about such a function. Suppose that

  1. (T1) \(P\) is settled by \(\zeta\): it has the same truth value for every completion of \(\zeta\) at its pole;

  2. (T2) \(f\) is a completion of \(\zeta\) at its pole: it agrees with \(\zeta\) at every point other than \(1\);

  3. (T3) \(P\) is true of \(f\).

Then \(P\) is true of every completion of \(\zeta\), and so it is a true statement about the values of \(\zeta\). Further, the following hold.

  1. (a) Each condition is needed. Without (T1): ZeroFreeAll is true of \(Z\) and false of \(Z_0\). Without (T2): a statement with one point set aside can be true of one function and false of another function that differs from the first at some other point. Without (T3) there is nothing to carry over.

  2. (b) The statements through which \(P\) is derived need not meet (T1). For a region that contains the point \(1\), the statement “\(f\) has no zero in the region” is two statements joined: “\(f\) has no zero in the region other than at \(1\),” which is settled by \(\zeta\), and “\(f(1)\neq0\),” which turns on the value at the pole. A derivation of the joined statement for one completion therefore contains the first of the two, the one with the point set aside, and that one holds of every completion.

  3. (c) A derivation of \(P\) about \(f\) by a system of rules establishes that the rules derive \(P\). It gives (T3) under the premise that what the rules derive is true.

Proof. By (T2) the function \(f\) is a completion, by (T3) the statement \(P\) holds of it, and by (T1) the statement then holds of every completion. The completions carry every complex number at \(1\), so a statement that holds of all of them says nothing about a value at \(1\): it is a statement about the values at the other points, and those are the values of \(\zeta\). (a) The first example is Proposition 15(d). For the second, the Lean file gives two functions on a set of two elements, with one element set aside, that differ at the other element, and a statement that holds of the first function away from the element set aside and fails of the second (guarded_needs_identification). (b) If \(f\) has no zero in the region, it has none there other than at \(1\), and \(f(1)\neq0\) because \(1\) lies in the region. Conversely, a point of the region either is \(1\) or is not; in the first case \(f\) is not \(0\) there by the second statement, and in the other case by the first. The first statement has one truth value for all functions that agree away from \(1\) (zeroFreeGuarded_blind_at_one); the second is true of \(Z\) and false of \(Z_0\). (c) That the rules derive \(P\) and that \(P\) is true are two statements, and the second follows from the first when the rules derive only truths. The Lean file checks the passage of the first two sentences of this proof and the equivalence of (b) (guarded_transfer, zeroFree_iff_guarded_and_value, Appendix A).

Consequence. For the certified sentence the three conditions stand as follows. (T1) holds: the sentence sets the point \(1\) aside (Proposition 11). (T2) holds: Mathlib’s function agrees with \(\zeta\) away from \(1\) (Theorem 10). The agreement is an identity and not an approximation: away from \(1\), \(\zeta\) is by definition the one function with a complex derivative that agrees with the series where the series converges, and \(Z\) has both properties. The pieces of both are machine-checked: the form of the sentence is checked in general by this paper’s Lean file, and the two properties of \(Z\) and the identity theorem are theorems of Mathlib in the exported proof (Section 4). What people add is the identification of \(\zeta\) with the function that has those properties, which is the definition of \(\zeta\); and neither condition is among the things that the four checks of the certification checked. (T3) is what the certification is taken to supply. The checks supply that the rules derive the sentence. That the sentence is true is the premise about the rules, which Sections 11 and 12 examine.

The findings of this section are bounded accordingly. That every certified theorem is drawn from ZeroFreeAll, a statement that turns on the value at the pole, does not bar the certified sentence from carrying over to \(\zeta\). By (b), the derivation of ZeroFreeAll about \(Z\) contains the statement with the point set aside, and that statement carries over under the three conditions. What the finding establishes is the kind of proof this is and the place where its weight rests. It is a proof for one completion of \(\zeta\). It uses a property that this completion has and another completion lacks: that its value at \(1\) is not \(0\), which is what makes its zeros the zeros of \(\zeta\) (Proposition 12). It does not go through for \(\zeta\) as \(\zeta\) is, with a pole and no value, and a proof that does has not been written. And since the records report no reading of the derivation by a person, and its statements at the pole are facts about \(Z\) that bear on \(\zeta\) only through the encoding, what stands behind its conclusion is (T3): the premise that the rules derive only truths.

The bridge, part by part, with what holds each part. The three conditions, taken apart by what holds each, are five parts. Together they are the bridge between the certified sentence and the Riemann hypothesis.

  1. 1. What the symbol denotes. By Mathlib’s definition the symbol in the sentence denotes a function \(Z\) that is defined at every complex number, the point \(1\) included. People establish this by reading the definition.

  2. 2. Where the sentence looks. The sentence consults \(Z\) only at points where \(\zeta\) is defined: its clause \(s\neq1\) restricts it to the domain of \(\zeta\). This is a property of the form of the sentence (Proposition 11), and it is condition (T1).

  3. 3. That \(Z\) is \(\zeta\) at those points. The function \(Z\) has a complex derivative at every point other than \(1\) and equals the series where the series converges, and by the definition of \(\zeta\) a function with these two properties is \(\zeta\) away from \(1\) (Theorem 10). With part 1 this is condition (T2). The two properties are theorems that Lean derived about \(Z\), so this part, as it is usually given, already uses part 5. It stands apart from part 5 only when a person checks Mathlib’s formula against Riemann’s by hand. Its pieces, the two properties and the identity theorem, are theorems of Mathlib in the exported proof (Section 4).

  4. 4. That the classical statements agree. The statement through \(\zeta\), which the certified sentence matches, is equivalent to the statement that Riemann made through \(\xi\), by an argument that uses the pole (Proposition 13).

  5. 5. That what Lean derives is true of the functions that Mathlib’s definitions define. This is condition (T3). It is assumed, and Section 12 shows what kind of assumption it is.

Parts 1, 2 and 4 are readings of definitions and classical theorems that people make; the form of the sentence in part 2 is also checked in general by this paper’s Lean file. Part 3 is machine-checked in its pieces, and what people add is the definition of \(\zeta\); with a zeta function defined in Lean on the plane without the point \(1\), the identification would be a theorem of Lean of a few lines (Section 4.4). Part 5 is of another kind, since Lean’s rules do not derive it of themselves. The bridge carries one sentence to \(\zeta\), the last. It carries no statement inside the derivation by the names of its symbols: the statements there that consult the point \(1\) are not true of \(\zeta\) by their names, and they bear on \(\zeta\) only through the encoding of Proposition 12.

The transfer argument, and what the derivation runs on. The reply most often made to findings of this kind is the transfer argument: \(Z\) and \(\zeta\) have the same value at every point other than \(1\), the certified sentence consults no other point, and so a proof of the sentence for \(Z\) is a proof of it for \(\zeta\). The argument is valid. It is the passage of Proposition 17 under (T1) and (T2), and the Lean file checks it as guarded_transfer. It takes as its hypothesis that \(Z\) and \(\zeta\) agree away from \(1\), which is part 3 of the bridge: its pieces are theorems of Mathlib, and the definition of \(\zeta\) is added by people, since the certified material contains no \(\zeta\). And what it carries is the last sentence. It does not describe what the derivation uses, and the function \(Z_0\) of Section 1.2 shows this. \(Z_0\) agrees with \(\zeta\) at every point other than \(1\), exactly as \(Z\) does. The certified sentence has the same truth value for \(Z_0\) as for \(Z\), and the transfer argument applies to \(Z_0\) word for word. The derivation does not: ZeroFreeAll, lemmaL and the five statements of Proposition 18(a) are false of \(Z_0\), and so is the theorem of Mathlib that lemmaL cites, that the zeta function is not \(0\) at any \(s\) with \(\operatorname{Re}s\ge1\) (Proposition 14). The Lean file checks the form: for two functions that agree away from \(1\), of which the first is not \(0\) at \(1\) and the second is, the statement with the point set aside holds of both, and the statement without exception holds of the first and fails of the second (same_sentence_different_main_line, Appendix A). Agreement with \(\zeta\) away from \(1\) is what \(Z\) and \(Z_0\) share, and the derivation fails for one of them. What the derivation runs on is what they do not share: that the number at \(1\) is not \(0\), which is what makes the zeros of \(Z\) the zeros of \(\zeta\) (Proposition 12), and which Mathlib proves from the number, a value that \(\zeta\) does not have. The transfer argument and the findings of this paper therefore concern two different things, the first what the last sentence says and the second what the derivation that ends in it uses. Granted in full, the transfer argument leaves the certified result where Proposition 17 puts it: a derivation about \(Z\) whose last sentence carries over to \(\zeta\) under (T3), the premise that what Lean derives is true of \(Z\).

Part 5 is not the premise that the wording of the certification needs. A correct proof of the Riemann hypothesis, taken by the names of its symbols, needs more: that the rule \(x/0=\text{“0”}\) never contradicts the properties of \(\zeta\). That premise is false, and Proposition 20 gives its refutation.

5.4 Statements on the main line untrue of \(\zeta\) by their names: what acceptance by the kernel shows

The lemma and the statements above it bear on more than the route of the proof. They settle a question of logic: what follows from the fact that the kernel accepted a statement. A derivation establishes its conclusion under a reading of its symbols for which the rules are sound, that is, a reading under which every statement the rules derive is true. Two readings are in play. Under the reading by names, Lean’s / is division, Mathlib’s Gamma is \(\Gamma\) and Mathlib’s riemannZeta is \(\zeta\). Under the reading by definitions, each symbol is the function that its definition in Mathlib defines: the division \(d\) with \(d(x,0)=\text{“0,”}\) the gamma function that carries “0” at the poles of \(\Gamma\), and the function \(Z\).

Proposition 18 (the two readings). The following hold of the certified derivation.

  1. (a) Under the reading by names Lean’s rules are not sound. They derive div_zero, Complex.Gamma_zero and riemannZeta_one, none of them true under this reading. On the line of descent of every certified theorem they derive five statements each of which concludes, at the character of modulus \(1\), that the zeta function has at \(s=1\) a complex value other than \(0\): lemmaL, zeroFree_of_rpow_window, formB, zeroFreeAll_of_topG and zero_free_all_of_green_v_win. Under this reading that conclusion is not true: it gives \(\zeta\) a value where \(\zeta\) has none.

  2. (b) Under the reading by names, therefore, “the kernel accepted the statement” does not give “the statement is true.” The inference has counterexamples inside the certified proof, five of them on its main line. Applied to the certified sentence it is the same inference, so under this reading the acceptance of the certified term establishes nothing about \(\zeta\). This holds without any condition.

  3. (c) Under the reading by definitions the rules are sound if the set theory beneath them is (the sponsor S2 of Section 11), each statement of (a) is true, and the certified sentence is a statement about \(Z\). It gives a statement about \(\zeta\) under the three conditions of Proposition 17, and its statements at the point \(1\) are faithful encodings of facts about \(\zeta\) (Proposition 12).

  4. (d) No reading makes the rules sound and makes the statements of the derivation statements about \(\zeta\).

  5. (e) Of the nineteen declarations of the archive that rest on lemmaL, itself counted, the five of (a) are written without an exception for \(s=1\). The other fourteen, the five certified theorems among them, are written with the exception or for points with real part below \(1\). The exception enters at every_character_of_green_v_win, whose proof applies imprimitive to zero_free_all_of_green_v_win.

Proof. (a) The three theorems are those of Proposition 1. The five statements are read from the source. The first two conclude ZeroFree \(F\) \(\theta\); the third concludes Level.ZeroFreeAbove \(\Lambda\) \(\theta\), through the definition FormB; the last two conclude ZeroFreeAll. Each covers the character of modulus \(1\) at the point \(1\) (Proposition 15). Each is stated under hypotheses: a bound on windows for the first three, and for the last two the archive’s conditions TopG, Green and VWin. The certified proof discharges the hypotheses, since the certified theorems are stated without them and are reached by applying imprimitive to the conclusion. A statement that \(\zeta\) has a complex value at \(1\) is not true of \(\zeta\), whatever the value is said to be. (b) An inference from “derived” to “true” is valid for a system under a reading when no statement the system derives is false under that reading. By (a) the system derives statements not true under the reading by names. The Lean file checks the form (acceptance_does_not_give_truth_as_named, Appendix A). (c) Under the reading by definitions div_zero says that \(d(x,0)\) is “0,” riemannZeta_one says that \(Z(1)\) is the number it is, and each of the five statements says that \(Z(1)\neq0\) together with what it says at the other points; all of this is true. (d) is Proposition 1(c): a function from the complex numbers to the complex numbers has a value at \(1\), and \(\zeta\) has none. (e) is computed from the dependency tables and read from the statements (Supporting Information, Section 26).

Consequence: the soundness proof is a proof for the substitutes. A proof that a system of rules is sound under a reading is built as a model. Each symbol is interpreted as an object of a stronger theory; each axiom is shown true of the interpretation; each rule is shown to carry true premises to a true conclusion; and induction on the length of a derivation gives that every derived statement is true. A sound system derives no false statement, so it derives no contradiction, and a soundness proof gives consistency as well. Benjamin Werner built such a model in 1997 for the calculus of inductive constructions, the type theory of the proof assistant Coq, and Mario Carneiro built one in 2019 for Lean’s rules, each in set theory with inaccessible cardinals [25, 40] (Section 12.2). In that model a Lean function of type \(\mathbb C\to\mathbb C\) is interpreted as a set of pairs that gives one value at every complex number, because that is what the type of a function says. Division, \(\Gamma\) and \(\zeta\) are not such functions: each is undefined at some argument. A model can therefore interpret the symbols /, Gamma and riemannZeta only by functions with a value at every argument, and Carneiro’s model interprets them by their definitions, as \(d\), as Mathlib’s gamma function and as \(Z\). Under that interpretation div_zero, Complex.Gamma_zero and riemannZeta_one are true. This is why the soundness of Lean’s rules is soundness under the reading by definitions, the sponsor S2 of Section 11: the type of a function admits no interpretation by a function with no value at a point (no_total_function_is_partial, Appendix A). The soundness proof is the strongest support that the certified term has, and what it supports is that every statement Lean derived is true of the substitutes. The reading by names has no soundness proof, and by Proposition 18(a) it has a refutation of soundness.

That refutation is total. Soundness under a reading is a property of all derived statements at once, and one derived statement that is not true under the reading removes it. Under the reading by names, “derived by Lean” then gives “true” for no statement on the strength of its derivation. A statement of the derivation may still be true of \(\zeta\), but then an argument other than the derivation shows it: for the last sentence, the bridge of Section 5.3.

Proposition 19 (derivation, soundness and truth). Let a system of rules derive statements, and let a reading make each statement true or not true.

  1. (a) A derivation of a statement gives its truth under the reading together with the soundness of the rules under it. Soundness is the statement that the rules derive nothing that is not true under the reading. It fails exactly when some derived statement is not true, so it is a statement about every derivation at once.

  2. (b) Derivability alone gives no truth: for every statement there are rules that derive it and a reading under which it is not true.

  3. (c) A derivation whose conclusion is true is compatible with rules that are not sound. A check that one derivation is accepted, and even a check that its conclusion is true, therefore tests nothing about soundness. Each of the four checks of the certification examines one exported term or the statement it ends in.

  4. (d) No interpretation of Lean’s language reads /, Complex.Gamma and riemannZeta as division, \(\Gamma\) and \(\zeta\), since an interpretation assigns to a symbol of function type a function with a value at every argument, and no such function is division, \(\Gamma\) or \(\zeta\). A theorem that Lean’s rules are sound, of whatever strength, is a theorem about interpretations by functions with a value at every argument, and under every such interpretation Lean’s theorems are theorems about substitutes.

Proof. (a) If every derived statement is true and the statement is derived, it is true. If soundness fails, some derived statement is not true; and if some derived statement is not true, soundness fails. (b) Take the rules that derive every statement and the reading under which no statement is true. (c) Take the rules that derive every statement and the reading under which exactly the given conclusion is true: the conclusion is derived and true, and any other statement is derived and not true, so the rules are not sound. (d) The type \(A\to B\) of a symbol says that the symbol has a value of type \(B\) at every argument of type \(A\), so an interpretation assigns to it a function with a value at every element of the set for \(A\). Division has no value at a zero denominator, and no operation with a value at every argument obeys its law (Proposition 3); \(\Gamma\) has no value at \(0\); \(\zeta\) has none at \(1\) (Proposition 1). The Lean file checks (a) to (d) in general form (not_sound_iff_exists, derivation_gives_truth_with_soundness, derivability_alone_gives_no_truth, accepted_true_and_unsound, no_interpretation_assigns_partial_function, Appendix A).

Consequence. The certification checks derivability. Truth needs soundness, a statement of the form “the rules never derive anything untrue,” which no check of one derivation tests. Under the reading by names soundness is refuted, by Proposition 18(a). Under the reading by definitions it is a theorem of set theory with inaccessible cardinals, and neither Lean’s rules nor ZFC derives it unless Lean’s rules are inconsistent, since it implies their consistency (Proposition 29). A proof is accepted as establishing its conclusion when its rules are sound for what its symbols name; for the certified derivation, read by the names of its symbols, they are not, and read by its definitions, the soundness that holds is a premise that the certified material does not supply.

Proposition 20 (the premise that the announced claim requires, and its refutation). Let \(P\) be the statement that the rule \(x/0=\text{“0”}\) and the values that Mathlib assigns at poles never contradict the properties of division, of \(\Gamma\) and of \(\zeta\); that is, that every statement Lean’s rules derive is true when its symbols are read by their names.

  1. (a) The certification says of the certified term that it is a correct proof of the Riemann hypothesis. Taken by the names of its symbols and with no bridge added, the term is a proof about \(\zeta\) only if each of its steps is true by its name. That is \(P\). The certification names no bridge.

  2. (b) \(P\) is false, and theorems that the same kernel accepted refute it:

    a property of the mathematics what Lean’s rules derive
    division by \(0\) is undefined div_zero: \(x/0\) is “0” for every \(x\)
    \(\zeta\) is undefined at \(1\) riemannZeta_one: the value at \(1\) is \((\gamma-\log4\pi)/2\)
    \((s-1)\,\zeta(s)\) has at \(s=1\) the value \(1\), the residue the product of \(s-1\) and riemannZeta \(s\) is “0” at \(s=1\)
    \(\Gamma\) has no zero Complex.Gamma_zero and Complex.Gamma_neg_nat_eq_zero: the value is “0” at \(0,-1,-2,\dots\)
    \(\xi(1)=\xi(0)=\tfrac12\) Riemann’s product, transcribed factor by factor, is “0” at \(1\) and at \(0\) (Proposition 13)
  3. (c) A rule of inference does not hold in part. “Accepted by the kernel, therefore true by its name” is a rule, and by (b) it has counterexamples, so it is not a valid rule. Acceptance alone therefore warrants no statement by its name, the certified sentence included. The kernel marks no difference between a statement that touches an assigned value and one that does not: riemannZeta_one and riemannZeta_two have the same form and the same standing.

  4. (d) The statements that refute \(P\) lie on the only route to the conclusion. Every certified theorem descends through all five statements of Proposition 18(a), along a single chain.

  5. (e) The falsehood carries weight. With “0” at the pole in the place of \(-0.977\) the derivation stops at lemmaL, so the derivation needs the statement that the zeta function has at \(1\) a number other than \(0\). A proof about \(\zeta\) is therefore not this derivation with the exception \(s\neq1\) written into its statements: the steps beneath those statements use the number, and a proof about \(\zeta\) would put in their place steps that use the pole. That proof has not been written.

  6. (f) No derivation written with Mathlib’s symbol is a proof about \(\zeta\) by the name of the symbol alone, because the symbol is a function defined at every complex number and \(\zeta\) is undefined at \(1\). A derivation none of whose statements consults an assigned value could be read by names, step by step, as a proof about \(\zeta\). The certified derivation is not of that kind, by (d) and (e), and the records name no derivation that is.

  7. (g) None of the four checks of the certification tests \(P\). They test that the term is accepted and that one statement is Mathlib’s definition. None asks of any step whether it is true as it is named.

Proof. (a) A proof establishes its conclusion through its steps. If the steps are taken as statements about \(\zeta\), \(\Gamma\) and division, the conclusion is established only when those statements are true of \(\zeta\), \(\Gamma\) and division; and to take them otherwise is to add a bridge from what they are about to \(\zeta\). The joint statement gives none [2]. (b) The first, second and fourth rows are Propositions 1 and 4. For the third, the factor \(s-1\) is \(0\) at \(s=1\) and Lean’s multiplication returns \(0\) when a factor is \(0\); classically the product has the limit \(1\) at \(s=1\) (Section 2). The fifth is Proposition 13(a) and (c). (c) A rule that leads from true premises to a false conclusion in one case is not a rule by which a conclusion can be asserted in another case without a further ground. Section 5.2 gives the two theorems, and the Lean file checks the form of the step (acceptance_does_not_give_truth_as_named). (d) is Proposition 18(e) with Section 8.6. (e) The first sentence is Proposition 15(d). For the second: lemmaL closes the half-plane \(\operatorname{Re}s\ge1\) with the theorem of Mathlib that has no exception, and the step of Exhibit 2 uses at the point \(1\) that the number there is not \(0\); with the exception written in, each would need another argument, the classical one from the residue. (f) The first sentence is Proposition 1(c). For the second, a statement that consults no assigned value says the same thing of \(Z\) and of \(\zeta\). (g) The four checks are those listed in Section 1: the vetting of Mathlib’s definition, the compilation of the library, the confirmation that the theorem proved is Mathlib’s sentence, and the acceptance of the exported proof [2].

Consequence: the claim as announced fails at its own premise. What was announced is a correct proof of the Riemann hypothesis. Taken by names, that needs \(P\), and \(P\) is false. It is refuted by statements that the kernel accepted, that lie on the only route to the conclusion, and that the derivation cannot do without. This holds without any condition, and no audit of the rest of the seventeen million lines is needed for it. Two things do not follow. It does not follow that the Riemann hypothesis is false. And it does not follow that the certified sentence fails to carry over to \(\zeta\): the derivation read by definitions is a derivation about a substitute, and the bridge of Section 5.3 joins its last sentence to \(\zeta\). What follows is that the route through the substitute is the only one left, that it consists of a derivation that the records report no person to have read, a bridge of which three parts people made and one is machine-checked in its pieces, and a fifth part that is assumed; and that the certification, which announced a proof of the hypothesis, named none of them.

Consequence: what the statements untrue of \(\zeta\) by their names add to the classification. The certification’s sentence speaks by names: the statement and the proof of the Riemann Hypothesis. Its inference is from acceptance by the kernel to correctness. By (b) that inference is invalid in the form in which the sentence states it, and the certified proof itself contains the counterexamples. What is valid is narrower, and it is (c): acceptance gives truth under the reading by definitions, under the premise that the rules are sound, and the result is a statement about a substitute. The classified statement of Proposition 2 is obtained along this second reading and along no other. The statements untrue of \(\zeta\) by their names therefore do not stand beside the classification as a separate complaint. They are the reason the classification has to be made through a translation, and the reason the bare announcement is not available. A kernel that accepts, on the main line of a proof, that the zeta function has a nonzero value at its pole cannot be cited, by names, for the truth of the last line of that proof.

Consequence: the body of the derivation has not been read for this. The five statements were found by following one line of descent. The exported proof has 805,751 declarations of the archive, and which of them are true by their names is not known. What is known is this: 646,337 rest on the statement \(0^{-1}=\text{“0,”}\) 64 cite one of the 23 theorems of Mathlib that give a value at a pole or at a zero denominator, and ten depend on the number at \(s=1\) (this section and Section 8.6). Only the five certified statements were compared, by people, with the mathematics they are named for. The archive is therefore a derivation of five sentences. It is not a body of theorems about \(L\)-functions, modular forms and \(\Gamma\) that can be cited by name: each of its statements would first have to be translated, as the last five were.

Consequence: the term is a derivation under one writing of the formula. Write Mathlib’s formula for the completed zeta function with its two pole terms as one fraction. The function at \(s=1\) is then “0,” every certified sentence has the same meaning and the same truth value as before, and the certified term is no longer a derivation: the theorem of Mathlib that lemmaL cites, that the zeta function is not “0” at any \(s\) with \(\operatorname{Re}s\ge1\), is then false and has no derivation (Propositions 7 and 14). The system in which the term is a derivation is thus Lean with Mathlib’s definitions as they are written at the pinned commit. A change in the writing of one formula, immaterial to every statement about \(\zeta\), turns the term from a derivation into a rejected term. That is the measure of what the term is a proof about. The writing that the term needs is the one under which Mathlib’s function encodes the pole faithfully; under the other writing the function has a zero at \(1\) that \(\zeta\) does not have (Proposition 12).

5.5 Further steps at poles and degenerate points

Exhibit 1 (both derivations of the sentence use the hand-set value at \(s=0\)). The archive’s sentence is proved by rhOfAll through Formalism.VW.rh_of_every (Formalism/GammaFactorNonvanishing/CritLine.lean, line 29) and Formalism.VW.rh_of_right (RhOfRight.lean, line 5, in the same directory). For a zero \(s\) with \(\operatorname{Re}s<\tfrac12\), the proof applies the functional equation at \(1-s\), where a factor \(\cos(\pi(1-s)/2)\) vanishes when \(s\) is \(0\) or a trivial zero. It rules out \(s=0\) at the start, by rw [riemannZeta_zero] at hs (line 13): the hypothesis \(Z(s)=0\) at \(s=0\) contradicts \(Z(0)=-\tfrac12\). The archive contains a second derivation of the same sentence, Claim.zeta (Development/AutomorphicArithmetic/CharacterBoxes/ClaimStrip.lean, lines 75–77). It is in the exported proof as a component of the theorem claimAll, from which the fourth main theorem is taken, and it opens with the same step. Three further declarations use the hand-set value: PI.EF.zeroLocus, GlobalTheory.LFunction_zero_of_re_nonpos and UpperTheory.V.Bern.b_hurzero. Classical object: \(\zeta(0)=-\tfrac12\). Status: the value is correct; in Lean it is a value assigned against the output of Mathlib’s formula (Proposition 8).

Exhibit 2 (the Landau step treats \(s=1\) as an ordinary point). The theorem poleData_char (Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/poleData.lean, line 137) builds, for a Dirichlet character \(\chi\), a function \(\Phi\) (a Mellin transform of a weighted sum over prime powers) and states that \(\Phi\) is analytic at every \(\rho\neq0\) where the \(L\)-function of \(\chi\) is nonzero. For the trivial character of modulus \(1\), whose \(L\)-function is \(Z\), its proof states “\(g(w)\neq0\) if and only if \(Z(w)\neq0\)” for every \(w\), where \(g(s)=(s-1)Z(s)\) away from \(1\) and \(g(1)=1\); at \(w=1\) the right side is supplied by Mathlib’s riemannZeta_one_ne_zero, the nonvanishing of the assigned number (line 196). Proposition 14 treats the set of zeros that poleData then uses. Classical object: \(\zeta\) has a pole at \(1\). True fact with the same content: \(g(1)=1\), the residue of \(\zeta\) at \(1\), which cancels the main term the construction subtracts; \(\Phi\) is analytic at \(1\) for that reason.

Exhibit 3 (a gamma factor equal to “0” at a pole). GroundTheory.Global.HeckeCharacter.gammaFactor_neg_of_forall (GroundTheory/GlobalFields/TateThesis/HeckeTheorem.lean, line 121) states that the gamma factor of a Hecke character equals “0” at a point where it has a pole, using Gammaℝ_eq_zero_iff and Complex.Gamma_zero. It is used six times. Three uses (HeckeTheorem.lean, line 144; DedekindZetaContinuation.lean, line 18; HeckeContinued.lean, line 78) read it as “the reciprocal of the gamma factor vanishes there.” Three (HeckeContinued.lean, lines 172, 193 and 195) use it to turn a hypothesis “the gamma factor at \(s\) is not “0”” into “\(s\) is not that point.” Of the classical gamma factor that hypothesis is always true, since the factor never vanishes; in Lean it means “\(s\) is not a pole.” Classical object: the gamma factor is infinite at the point; the statement as written is false of it. True fact with the same content: \(1/\Gamma\) vanishes at the poles of \(\Gamma\).

Exhibit 4 (fifteen declarations at the poles of \(\Gamma\)). Fifteen distinct archive declarations in the exported proof use Complex.Gamma_zero, Complex.Gamma_neg_nat_eq_zero, Gammaℝ_eq_zero_iff, or Complex.differentiable_one_div_Gamma, the theorem that \(s\mapsto\Gamma(s)^{-1}\) has a complex derivative everywhere, whose proof at the poles runs through \(\Gamma(-n)=\text{“0”}\) and \(0^{-1}=\text{“0.”}\) Among them, inv_Gammaℝ_eq_mul_inv_add_two states \(\Gamma_{\mathbb R}(s)^{-1}=\frac{s}{2\pi}\,\Gamma_{\mathbb R}(s+2)^{-1}\) for every \(s\), and is used as an identity of functions, so at \(s=0\) (CompletedLFunctionNeZeroOfReNonpos.lean, line 7); and exists_differentiable_Gammaℝ_inv_eq_mul is used to show that \(L(\chi,0)=0\) for an even primitive character \(\chi\neq1\). Four of the fifteen were read in detail: they reach classically correct conclusions by reading the reciprocal of the gamma factor through “the pole is “0”” and “the inverse of “0” is “0”” [50]. True fact with the same content: \(1/\Gamma_{\mathbb R}\) has a complex derivative everywhere and vanishes at \(0,-2,-4,\dots\).

Exhibit 5 (certified sums that contain a term \(1/0\)). Among the 108 declarations of the exported proof that the triage of Section 8 left unclassified, thirty-seven are ones in which the work of the convention is to erase an index term. Read one by one: eighteen are statements written over an index set that contains a point where a term has denominator \(0\), and rely on the convention to make that term “0”; two give the Weierstrass function a value at its pole \(z=0\) (wp_eq, weierstrassP_eq_except_zero_add_inv_sq); twelve are written over the classical index set, for instance \(\sum_{n\ge0}1/(n+1)^2\), and cite the convention in their proofs, which pass through a sum that contains the point; and five were not settled from the statement alone. Twenty-two of the zero-branch statements read in Section 8 were classed in the same way. Examples of the first kind:

  • hasSum_int_inv_sq (Development/AbelianVarietyTheory/Proofs/GlobalInterpolation/SummableExpNegMulSq.lean, lines 7–15) states that the sum over all integers \(n\) of \(1/n^2\) is \(\pi^2/3\). Its proof adds two copies of \(\pi^2/6\) and subtracts the term \(1/((0:\mathbb Z):\mathbb R)^2\), evaluated as “0.”

  • harm (TruncatedPerronPsi.lean, line 217) states \(\sum_{k=0}^{N}1/k\le1+\log N\); its \(k=0\) term is \(1/0\).

  • zeta_bound (same file, line 149) states \(\sum_{n\ge0}1/n^{s}\le1+1/(s-1)\) for real \(s>1\); its \(n=0\) term is \(1/0^s=1/0\).

  • sumA (AnalyticIdentityTheorems/Legendre.lean, line 100) states a double sum over all pairs of integers \((m,n)\) of \(1/(mu+nv)^2\), whose \((0,0)\) term is \(1/0\).

Classical object: the classical sums run over \(n\neq0\), \(k\ge1\), \(n\ge1\) and \((m,n)\neq(0,0)\). Read with \(1/0=\infty\), the first sum is infinite, not \(\pi^2/3\). True fact with the same content: the same sums over the classical index sets.

Exhibit 6 (a coefficient that is \(0/0\) at the edge of its range). The archive defines (Formalism/HermitianCurvature/StatementM.lean, lines 88–144) a structure of parameters \(P\) with a whole number \(k\), positive reals \(T,T'\), and real sequences \(u,u'\); bounds \(\mathrm{lo}(i)=\max(u_{i+1},u'_{i+1})+\tfrac12\) and \(\mathrm{hi}(i)=\min(u_i,u'_i)-\tfrac12\); positions \(\rho_i=\mathrm{lo}(i)+\pi_{i-1}\) for a tuple \(\pi\) of whole numbers with \(0\le\pi_{i-1}\le\lfloor\mathrm{hi}(i)-\mathrm{lo}(i)\rfloor\); the polynomial \(q(Y)=-TT'\prod_{i=1}^{k}(Y+\tfrac12+u_i)(Y+\tfrac12+u'_i)\); and the coefficient \[\mathrm{Nrm}(l,\pi)=\frac{-q(-\rho_l-1)}{\prod_{j\neq l}(\rho_j-\rho_l)\cdot\prod_{j\neq l}(\rho_j-\rho_l-1)},\] with \(j\) running over \(1,\dots,k-1\). Suppose \(u_l=u'_l=a\), coordinate \(l\) is at the top of its range, so \(\rho_l=\mathrm{hi}(l)=a-\tfrac12\), and coordinate \(l-1\) is at the bottom of its range, so \(\rho_{l-1}=\mathrm{lo}(l-1)=a+\tfrac12\). The denominator contains the factor \(\rho_{l-1}-\rho_l-1=(a+\tfrac12)-(a-\tfrac12)-1=0\). The numerator contains the factor \((-\rho_l-1)+\tfrac12+u_l=-(a-\tfrac12)-1+\tfrac12+a=0\). So \(\mathrm{Nrm}(l,\pi)\) is \(0/0\). The archive’s theorem nrmFacts (InterlaceSignTwo.lean, line 248) states \(\mathrm{Nrm}=0\) at every configuration where coordinate \(l\) cannot move up, these included, and model_root (CoordinateCommuteRaisingConstant.lean, line 2370; TransferRtt.lean, line 650) uses such values, obtained with div_zero, in a polynomial identity. The Supporting Information exhibits the case \(k=3\), \(u=(5,3,0)\), \(u'=(5,3,1)\), \(l=2\), where numerator and denominator both equal \(0\). Classical object: \(0/0\) has no value. True fact with the same content: the coefficient of a move that leaves the range is \(0\), as a coefficient of the operator, not as a value of the formula.

Exhibit 7 (averages over infinitely many cosets set to “0”). mn_zero (HkIterContOn.lean, line 24) and iop_eq_zero (ThetaPullbackConstantSqEqDet.lean, line 490) state that an average over the cosets of a subgroup (the index inverted, times a finite sum over the cosets) and an operator built from a sum over cosets normalized by the square root of the index, equal “0” when the subgroup has infinite index: Mathlib’s index of an infinite-index subgroup is “0,” its inverse is “0,” and a finite sum over an infinite set is “0.” Classical object: an average over infinitely many cosets has no value. Status: a value assigned at a degenerate input.

6 Facts proved, dropped, and recovered through the conventions

A recurring pattern in the derivation is a read-off step: the derivation proves a fact upstream (a quantity is nonzero, a function is integrable), writes a statement that leaves the fact out and implies it only through a convention, and recovers the fact downstream from that statement by applying the convention to the case where the fact would fail.

Exhibit 8 (the Fock form). bridge_normFock_extremal_holds (Formalism/LocalRingCardinality/RankBoundMonotoneInDimension.lean, line 911) proves that a Fock pairing of an extremal vector with itself is nonzero, from its positivity (fockPos), and then states only that a normalized quotient equals \(1\). fockF_extremal_ne (NormalizedFockFormPureTensorProperties.lean, line 33) recovers the nonvanishing: if the pairing were “0,” the quotient would be \(x/0=\text{“0”}\neq1\).

Exhibit 9 (the formal degree and integrability). The archive’s predicate IsFdeg, of which it holds several copies (Formalism/PeriodIntegrals/UpqRep.lean, line 272; RelevantZeroGramTerms.lean, line 37, the copy that the proof named next reaches), states that matrix coefficients are integrable and that their integrals obey a formula with a positive constant. The statement GlobalTheory.Published.FormalDegreeCompactDual (FormalDegreeCompactDualIff.lean, line 8), proved from IsFdeg, keeps the formula \(\|w\|^4/\int|\langle w,\sigma(g)w\rangle|^2=\text{(positive constant)}\) and leaves integrability out. inv_integral_coef_sq recovers integrability (InvIntegralSqDiscreteSeriesCoefficientCompactDua.lean, lines 112–116): if the function were not integrable its integral would be integral_undef’s “0,” its inverse inv_zero’s “0,” and the formula would fail. Two conventions carry a fact about square-integrability of discrete-series coefficients.

Exhibit 10 (masses). The archive defines the mass of a Hermitian lattice as a sum of \(1/|\mathrm{Aut}|\) over class representatives if representatives exist, and “0” otherwise (Formalism/HermitianLattices/StatementMass.lean, lines 11–16). It proves masses positive (massI_pos, ThickPlacesCorollaryOfAnyTranslate.lean, line 1134), states a ratio of masses as a quotient, and in mass_succ_eq_mul_ratio (line 1813) recovers the nonvanishing of the denominator from the ratio through div_zero.

Exhibit 11 (a condition present only inside a quotient). The definition EmbOK (Formalism/LocalToGlobal/CharacterGerms/HostTraceIdentity.lean, line 37) states that an embedding \(\iota\) of a discretely valued field into a valued field satisfies \(v(\iota x)=\mathrm{val}(x)/\mathrm{val}(\ell)\) for every \(x\neq0\), where \(\ell\) is a prime. The condition \(\mathrm{val}(\ell)\neq0\), that the residue characteristic is \(\ell\), is carried by the statement EmbOK only inside this quotient; embOK_vl_ne (Counterexamples/HeightSurvey/ImaginaryRootConj.lean, line 15) and embOK_exists_ringHom recover it through the convention. EmbOK occurs 86 times outside its definition. At 84 of these it is a premise, 58 times before an arrow and 26 times as a named hypothesis. At two it is concluded: the theorem exists_closed_field_over_place (ExistsClosedCompleteFieldOverPlace.lean, line 49) and its restatement under a second name assert that a field with such an embedding exists. The proof of that theorem establishes \(\mathrm{val}(\ell)=e\,r\) with \(e\,r>0\) (lines 54–56) before the quotient is formed. The fact is therefore proved where EmbOK is produced, is left out of what EmbOK states, and is recovered from the quotient through the convention where EmbOK is used.

Exhibit 12 (discreteness from a series’ value). discrete_of_eisG_ne_zero (LatticeInvariantsPeriodPairDictionary.lean, line 94) derives that a subgroup of \(\mathbb C\) is discrete from the hypothesis that its Eisenstein series has nonzero value: if the subgroup were not discrete the series would diverge and its value would be tsum_eq_zero_of_not_summable’s “0.”

Consequence. In a read-off step the convention stands in for a definedness condition: the statement written with the quotient is true in Lean only if the denominator is nonzero, and the step extracts that. Read-off steps do not fire the convention at the instance the argument uses; they fire it in a supposed case that is then refuted, and the fact they extract is genuine, because in Lean a nonzero quotient forces a nonzero denominator and a nonzero integral forces integrability. What they change is the statements: dozens of certified statements are written so that they imply a nonvanishing or integrability fact through a convention instead of stating it, and under a division that requires \(y\neq0\) before \(x/y\) is written, those statements are ill-formed as written.

7 Certified statements false of mathematics at some instances

The following theorems of the exported proof, recorded previously [50], are certified statements that are false of mathematics at some of their instances; at those instances they hold in Lean through a convention.

The reading of Sections 5 and 8 adds the following.

Statements that are right through two conventions. Some certified statements pass the mark through two conventions and arrive at the classically right value. The trivial zeros of \(Z\) are one case (Section 3). continuousAt_inv_log_zero (IntegrableOnInvMulLogSqNearZero.lean, line 8) states that \(t\mapsto(\log t)^{-1}\) is continuous at \(0\). Lean’s function has the value \((\log0)^{-1}=\text{“0”}^{-1}=\text{“0”}\) there: the negatively infinite \(\log 0\) is written “0,” and the reciprocal of “0” is written “0.” The classical limit of \(1/\log t\) at \(0\) is \(0\). toNat_div_le (LenUnitInvariantsTwistedLatticeLeOfKillingExpone.lean, line 19) bounds a quotient \(A/B\) of extended whole numbers; at \(B=\infty\) Lean writes \(\infty\) as “0” and then \(A/0\) as “0.” For finite \(A\) the classical value of \(A/\infty\) is \(0\); for \(A=\infty\) the quotient has no classical value, and the statement holds there as well. At \(s=0\) the same double passage, applied to a ratio of two infinite quantities, arrives at a false zero (Proposition 8). The kernel does not distinguish the two outcomes.

8 The census of convention use

8.1 Method

The dependency tables list, for every constant of the exported proof, the constants its compiled term refers to [7]. A declaration cites a convention when one of its constants refers to the lemma that states it. Citations made inside tactics such as simp are counted, because the compiled term records them. The census reads each citing declaration’s source and assigns the role the convention plays there. The roles are defined in Table 1. A first assignment was made from the source text by patterns (a case split on a quantity being “0” before the citation; a citation that rewrites a hypothesis followed by a contradiction; and so on), and the uncertain assignments were then read by hand. The Supporting Information contains the pattern code and the hand-read labels. The counts taken from the dependency tables (881, 472, 431, 214, 181, and those of Table 4) were recomputed for this version with separate queries and agree. The division of those totals into roles rests on reading: a second reading of 19 hand labels drawn at random (seed 26 in the Supporting Information) confirmed the role in all 19, and in one of them the division between the two kinds of read-off step could be made either way; the second reading of all thirty-seven statements of Exhibit 5 found that the description version 2 gave of them holds of eighteen. The totals below are therefore exact as totals, and their division into roles is approximate to within a few declarations.

Role What the convention does at the site
zero-branch The statement is proved for every value of a quantity; the convention closes the case where the quantity is “0.”
read-off The convention is applied in a supposed case that is refuted, to extract a nonvanishing or integrability fact from a statement written with a quotient or integral (Section 6).
value used The convention’s value enters the statement or a hypothesis outside a case split.
structural The declaration builds a field or a structure whose axioms include the convention.
omission A sum, series or coefficient written over an index set that includes a point where a denominator is \(0\); the convention makes that term “0.”
value at a degenerate input A quantity divides by something that is “0” at some inputs (an infinite index, a determinant, a parameter), and the statement holds there by the convention.
Table 1. Roles assigned in the census.

8.2 The archive’s own declarations

In the exported proof, 472 of the archive’s declarations cite div_zero and 431 cite inv_zero; 881 distinct declarations cite at least one. Their roles:

Role (after reading) Declarations
zero-branch 585
read-off 104
value used 47
structural 31
two roles at different sites in one declaration 6
left unclassified by the patterns, read by statement 108
total 881
Table 2. The 881 archive declarations that cite div_zero or inv_zero.

Read-off steps (104). After reading: in 26, a proof of the same fact exists upstream or in Mathlib and the step recovers it through the convention (Exhibits 8, 10); in 57, the fact is present only inside a sponsor statement written with the quotient, and a division that required \(y\neq0\) before \(x/y\) is written would require each such statement to be restated (Exhibits 9, 11, 12); in 13, the step rests on a Mathlib lemma that represents an element as a quotient \(y/z\) without stating \(z\neq0\); 8 are not read-off steps. Ten sponsor statements were followed to the proofs that discharge them (the mass ratios, the index ratio, the formal-degree statement, the normalized Fock form, the norm facts of Exhibit 6, the positivity of the constant KVal, the positivity of tVal, the rank parameter of the archive’s structure D7, a radial Lipschitz bound, and the embedding condition of Exhibit 11): each discharge proves the nonvanishing fact before forming the quotient.

Zero-branch statements (585, and 3 with a second role). Every one has at least one caller in the exported proof; 457 have exactly one, 117 have two to five, 14 have six or more; 302 contain a division in their statement. The 22 in the zeta, \(L\)-function, Perron-formula and Weierstrass core were read together with their callers: 17 omit an index term (the term \(n=0\) or \(n=1\) of a Dirichlet series or a Perron sum, the degree-\(0\) term of a function-field sum, the origin of a lattice), 2 give \(1/\Gamma_{\mathbb R}\) its value at a pole, and 3 are used by callers at nonzero values or have an unreachable zero case. A random sample of 24 of the remaining statements with a division in the statement (seed 11 in the Supporting Information) was read with its callers: 5 omit an index term, 11 are called at nonzero values, 7 name the zero case in the statement or close it inside the proof, and 1 gives a quotient a value at a pole of its denominator. No caller in the 46 read uses a zero-branch statement where its denominator vanishes in a way other than these two: omitting a term the classical text excludes, or supplying a value at a pole. From \(0\) such callers in a random sample of \(24\), the share of such callers among the sampled class is below \(0.118\) with confidence \(95\%\) (the bound is \(1-0.05^{1/24}=0.1173\)).

The 108 read by statement. In thirty-seven the work of the convention is to erase an index term, in the statement or in its proof (Exhibit 5 gives the division); sixteen assign values at degenerate inputs (Exhibit 7; a weight of “0” where a determinant vanishes; residue_logDeriv_eq_untopD); eleven are read-off steps; in forty-four the convention fires inside a tactic and the statement does not carry it.

8.3 Mathlib’s declarations in the exported proof

Two hundred fourteen Mathlib constants (theorems and definitions) in the exported proof cite div_zero or inv_zero. By statement: 29 build fields and field-like structures or state the convention itself; 26 concern \(\zeta\), \(\Gamma\), \(L\)-series and theta functions, of which 10 assign or use values at the poles of \(\Gamma\) or at \(\zeta\)’s points \(0\) and \(1\) (among them Complex.Gamma_zero, Complex.Gamma_mul_Gamma_one_sub, Complex.GammaSeq_tendsto_Gamma, hurwitzZetaEven_neg_two_mul_nat_add_one, tendsto_hurwitzZetaEven_sub_one_div_nhds_one), 11 omit the \(n=0\) term of a series, and 5 omit the lattice origin in sums for \(\wp\); 11 give values to other functions where they are undefined (the logarithm to base \(0\) or \(1\), the derivative of the logarithm at \(0\), the slope of a function between a point and itself, Stirling’s sequence at \(0\)); 4 are read-off steps; and 144 are identities and inequalities stated with no nonzero hypothesis because the zero case closes under the convention.

Theorems at poles that the archive cites directly. A second count was made from the side of the archive. Its declarations in the exported proof cite directly 218 theorems from Mathlib’s files on the gamma function, on \(\zeta\), on \(L\)-series and on Dirichlet and Hurwitz \(L\)-functions. The statements of all of them were read, apart from 26 that are generated automatically (lemmas that unfold a definition, auxiliary proofs and fields of structures). Twenty-three give a value at a pole or at a zero denominator (Table 3), and 64 declarations of the archive cite at least one of the twenty-three.

Theorem of Mathlib What it states at the instance Cited by
A value at a pole of \(\Gamma\) or of \(\Gamma_{\mathbb R}\) (5 theorems, 12 declarations)
Complex.Gamma_zero \(\Gamma(0)=\text{“0”}\) 3
Complex.Gamma_neg_nat_eq_zero \(\Gamma(-n)=\text{“0”}\) 1
Complex.Gammaℝ_eq_zero_iff \(\Gamma_{\mathbb R}(s)=\text{“0”}\) exactly at \(s=0,-2,-4,\dots\) 9
Complex.Gamma_mul_Gamma_one_sub \(\Gamma(z)\Gamma(1-z)=\pi/\sin\pi z\) at every \(z\), the integers included 1
Complex.Gammaℝ_div_Gammaℝ_one_sub a quotient of gamma factors at \(s=0,-2,\dots\) 1
A reciprocal that reaches the classical value through two conventions (3 theorems, 13 declarations)
Complex.differentiable_one_div_Gamma, differentiable_Gammaℝ_inv, differentiable_Gammaℂ_inv \((\Gamma(s))^{-1}\) at a pole: \(\Gamma\) read as “0,” then \(0^{-1}\) read as “0” 5, 8, 1
A value at the pole of \(\zeta\), of a completed function or of a Hurwitz function (8 theorems, 29 declarations)
riemannZeta_one_ne_zero the number at \(s=1\) is not “0” 1
riemannZeta_ne_zero_of_one_le_re no zero with \(\operatorname{Re}s\ge1\), the point \(1\) included 12
riemannZeta_def_of_ne_zero \(Z=\Lambda/\Gamma_{\mathbb R}\) at every \(s\neq0\), the poles included 1
completedRiemannZeta_one_sub \(\Lambda(1-s)=\Lambda(s)\) at every \(s\), the poles \(0\) and \(1\) included 1
WeakFEPair.functional_equation the same for the general pair 1
IsPrimitive.completedLFunction_one_sub the functional equation at every \(s\), for the modulus \(1\) as well 10
LFunction_eq_completed_div_gammaFactor \(L=\Lambda/\text{gamma factor}\) at the poles of both 13
differentiableAt_hurwitzZeta_sub_one_div the number assigned at \(s=1\) is the limit (Section 5) 2
A series with a term of denominator \(0\) (7 theorems, 17 declarations)
hasSum_zeta_two \(\sum_{n\ge0}1/n^2=\pi^2/6\), the term \(n=0\) included 12
zeta_nat_eq_tsum_of_gt_one \(Z(k)=\sum_{n\ge0}1/n^k\) 1
two_mul_riemannZeta_eq_tsum_int_inv_pow_of_even a sum over all integers of \((n^k)^{-1}\) 1
four further theorems on series a term \(n=0\) with denominator \(0\) 1 each
Table 3. The 23 theorems of Mathlib on \(\Gamma\), \(\zeta\) and \(L\)-functions, cited directly by the archive’s declarations in the exported proof, whose statement gives a value at a pole or at a zero denominator. The last column counts the citing declarations of the archive.

These are the statements of reading (a) of Proposition 1, counted. Read of \(\Gamma\), of \(\zeta\) and of division, the first, third and fourth groups are not true statements at the instances named, and the second group reaches a true statement about \(1/\Gamma\) by passing through two that are not.

8.4 Other value-assigning conventions

The archive’s declarations in the exported proof use integral_undef 95 times (and its interval and non-measurable forms 1 and 7 times), tsum_eq_zero_of_not_summable 26 times, deriv_zero_of_not_differentiableAt 23 times and fderiv_zero_of_not_differentiableAt 29 times. Of these 181 uses, 131 close the case where the integral, sum or derivative does not exist, and 50 are read-off steps that extract integrability, summability or differentiability from a nonzero value. The fallbacks for infinite supports and infinite cardinalities are used by 89 and 30 declarations respectively.

8.5 Further conventions

Mathlib assigns values of the same kind to other expressions, and the derivation cites the lemmas that state them. Table 4 lists the lemmas found in the dependency tables, with the classical status of the expression and the number of the archive’s declarations in the exported proof that cite the lemma. A lemma of this list is cited both where the convention fires and where the lemma states a classical fact: \(0^x=0\) is classical for \(x>0\) and a convention for \(x<0\). The counts are counts of citations.

What Lean writes (Mathlib lemma) Classical status Declarations
\(\log0=\text{“0”}\) (Real.log_zero) negatively infinite 252
\(\log(-x)=\log x\) (Real.log_neg_eq_log) no real value 6
\(\log_b 0=\text{“0”}\) (Real.logb_zero) negatively infinite 35
\(\sqrt{x}=\text{“0”}\) for \(x<0\) (Real.sqrt_eq_zero’, Real.sqrt_eq_zero_of_nonpos) no real value 30
\(0^{x}=\text{“0”}\) for \(x\neq0\), negative \(x\) included (Real.zero_rpow, Complex.zero_cpow) infinite for negative \(x\) 104
supremum of an empty or unbounded set of reals \(=\text{“0”}\) no value, or infinite 5
\(a-b=\text{“0”}\) for whole numbers \(a\le b\); whole part of a negative integer \(=\text{“0”}\) a negative number 96
\(n/0=\text{“0”}\) for whole numbers (Nat.div_zero) no value 7
finite sum over an infinite support \(=\text{“0”}\); product \(=1\) no value 93
number of elements of an infinite set \(=\text{“0”}\); index of a subgroup of infinite index \(=\text{“0”}\) infinite 37
infinite value read as a whole number or a real \(=\text{“0”}\) (ENat.toNat_top, WithTop.untopD_top, ENNReal.toReal_top) infinite 10
order of a function where it is not meromorphic \(=\text{“0”}\) no value 1
dimension of a space of infinite dimension \(=\text{“0”}\) (Module.finrank_of_not_finite) infinite 22
degree of the zero polynomial \(=\text{“0”}\) (Polynomial.natDegree_zero) no value 52
inverse of a matrix of determinant \(0\), or of a non-invertible element, \(=\text{“0”}\) no value 62
Table 4. Further value-assigning conventions cited by the archive’s declarations in the exported proof.

Together the lemmas of Table 4 are cited 813 times by 798 distinct declarations (the count includes one citation of Complex.log_zero). A pattern pass over the source of each citing declaration found the citation closing a case of a case split in 482 citations, inside a refuted supposition in 27, inside a tactic with no line of its own in 230, and in another position in 74. The following were then read by hand: every citation outside the first and third pattern classes for infinite supports, cardinalities and infinite values (14 declarations); a sample of 16 of the citations of Real.log_zero; and samples of 5, 5, 3, 3, 3 and 3 for powers of \(0\), complex powers of \(0\), square roots, subtraction, matrix inverses and dimension (random selections with seed 11; the Supporting Information prints each). The reading found:

The order of vanishing. The lemmas on an infinite order of vanishing are of two kinds. Two of them, analyticOrderAt_eq_top and meromorphicOrderAt_eq_top_iff, cited by 51 declarations, are characterizations and not conventions: an infinite order of vanishing at a point means that the function vanishes at every point near it, which is a classical notion. The 24 citations read use them classically, to show that an order is finite because the function is not identically zero near the point. The convention is the reading of an infinite order as the whole number “0” (analyticOrderNatAt), to which 127 declarations refer, 63 of them in their statement. In a sample of 12 of the 63 (seed 11) every statement carries a hypothesis under which the order is finite (a nonvanishing derivative, a factorization with a nonvanishing factor, a point where the function does not vanish), or concerns the zeros of \(Z\) with the clause \(w\neq1\), or the zeros of an \(L\)-function with \(\chi\neq1\) or inside the strip \(0<\operatorname{Re}s<1\); in each the order is finite and the convention does not fire. It fires in the elliptic statements of Section 7.

8.6 How far the dependence reaches

The counts above are of declarations that cite a convention directly. The dependency tables also record what rests on what. A declaration rests on a constant when its compiled term refers to that constant, or refers to a constant that refers to it, and so on through any number of steps; a term cannot be checked without the constants it rests on. The exported proof holds 1,270,184 constants of the archive, which the tables attribute to 805,751 declarations of the archive’s source. The README of the tables, counting differently, gives 804,912 of the archive’s 1,061,400 declarations as used by the proof terms [7]. Table 5 counts, for several constants and sets of constants, the declarations of the archive that rest on them.

Constant or set of constants Declarations Share
The statements \(0^{-1}=0\) and \(x/0=0\): Mathlib’s theorems inv_zero and div_zero, and the clause \(0^{-1}=0\) in its definitions of a field, of a division ring and of a group with zero 646,337 80.2%
The theorem div_zero alone 417,005 51.8%
The definitions of the inverse on the real numbers and on the complex numbers 414,435 51.4%
The 23 theorems of Table 3, which give a value at a pole or at a zero denominator 6,108 0.76%
Complex.Gamma_zero, the theorem \(\Gamma(0)=0\) 5,816 0.72%
The ten declarations that depend on the number at the pole of \(\zeta\) (Section 5), themselves counted 195 0.02%
riemannZeta_one, the theorem that states the number at the pole 170 0.02%
lemmaL, itself counted 19
Table 5. Declarations of the archive, among the 805,751 in the exported proof, that rest on the constants named. All five certified theorems are in every one of these sets.

The line of descent through the lemma. The last rows are small, and they lie on the one line by which every certified theorem descends. The file Supplements/Kernels/MainTheorems.lean defines allChi as everyCharacter, and from allChi it obtains rhOfAll, claimAll and critAll; each of the five certified theorems of Main.lean is one of these four, or a part of one, under its certified name. Below allChi the tables show a single chain: everyCharacter, everyCharacter_of_row, every_character_of_literature_of_vWin, every_character_of_theta_integrals_local_matching, every_character_of_green_v_win, zero_free_all_of_green_v_win, zeroFreeAll_of_topG, formB, zeroFree_of_rpow_window, lemmaL. Each declaration in the chain refers to the next and to no other of the nineteen, and the body of zeroFree_of_rpow_window is lemmaL applied to a bound on windows (ZeroFreeOfRpowWindow.lean, lines 11–14). The five lowest of these, lemmaL, zeroFree_of_rpow_window, formB, zeroFreeAll_of_topG and zero_free_all_of_green_v_win, conclude statements with no exception for \(s=1\); the exception enters at every_character_of_green_v_win, whose body is imprimitive applied to the statement below it (Proposition 15). So eighteen declarations rest on lemmaL: the nine above it in the chain, allChi, the three theorems obtained from allChi, and the five certified theorems. Beneath it, lemmaL rests on 82 other declarations of the archive and on 53,162 constants of Mathlib, among them riemannZeta_one, Complex.Gamma_zero and div_zero. The other declarations of the archive enter the chain above the lemma, in the hypotheses to which it is applied, the bound on windows among them. The passage from that bound to the absence of zeros is made by this lemma, on the line of descent of every certified theorem; and the lemma is the one that Proposition 14 shows to be false for the substitute carrying “0” at the pole.

What the first three rows measure. The dependence counted here is formal: a declaration rests on a constant when its compiled term cannot be checked without that constant. The first three rows therefore include declarations that reach div_zero through a general lemma and apply it at a denominator other than “0,” and declarations that use the real or complex numbers as a field and take no quotient at all; in Mathlib a field is by definition a structure with \(0^{-1}=0\) (Section 2), and the real numbers enter such a declaration as that structure. These rows do not count the places where a quotient by “0” is taken; the census above counts those. They measure how much of the derivation is carried out with Lean’s division and inside number systems defined with the clause \(0^{-1}=0\): half of its declarations for the division of the real and complex numbers, and four fifths for the clause. On reading (a) of Proposition 1, each declaration of the first two rows rests on a statement that is untrue of division. On reading (b), each declaration of the three rows is made with a division, or inside a number system, that is not the classical one, and a field in which a quotient by \(0\) has no value occurs nowhere beneath the certified theorems: a derivation about such a field would have to be built again from the definition of a field upward.

Consequence. The dependence of the certified theorems on the values that the substitutes carry is not confined to a few steps that a clause could set aside. It has two forms. At the pole of \(\zeta\) it is concentrated: a few declarations whose truth turns on the assigned number, standing on the single line by which every certified theorem descends. For division it runs through the whole: all five certified theorems, and four fifths of the declarations under them, rest on the statement \(0^{-1}=0\).

8.7 What the census shows

Across every class read, the conventions do three kinds of work. They omit terms that classical texts exclude, by writing the term and letting “0” erase it. They supply values at poles and degenerate points, where the classical object has an infinite value or none. And they carry facts: a fact proved upstream is dropped from a statement and recovered downstream through the convention. Two further marks run through the archive: 46,204 lines of the form first | exact @X | exact X | …, a tactic that tries several spellings of the same lemma until one compiles, and 219 theorems whose names end in _alt_alt. These are marks of automated assembly.

9 The announced argument and the certified term

The following were reported in the author’s earlier note [49] and are recorded here with the evidence re-read for this paper.

These bear on whether the certified term carries out the announced argument. They do not bear on whether the kernel accepted the term.

10 The arithmetic theorems checked on 24 November

The verification record lists a second exported proof, whose checks ran on 24 November 2026 [3]. It joins the archive to Robin1984, a Lean formalization of the criteria of Robin and Lagarias (Section 2) by the author who publishes as kimihiro64 [8]. That formalization proves, among others, the two equivalences \[\begin{aligned} &\texttt{robin\_inequality\_iff\_riemannHypothesis},\\ &\texttt{riemann\_hypothesis\_iff\_lagarias\_elementary\_criterion} \end{aligned}\] (stated in Challenge.lean, lines 208 and 225, and proved in Solution.lean, lines 30 and 41), each between Mathlib’s RiemannHypothesis and an inequality about whole numbers. Joined to the archive’s riemannHypothesis, they give three theorems with no hypothesis: Robin’s inequality at every \(n>5040\), Lagarias’s inequality at every \(n>0\), and an inequality of the same kind for ideals of cyclotomic fields, derived from the archive’s fourth sentence. The record reports that the three rest on the same three axioms and that con-leche, con-ron and nanoda accepted the joined proof of 61,801,392,638 bytes. It adds that the first two were first checked on 20 and 21 November against an earlier commit of the formalization, with the same outcome. The formalization’s own account of its production says that agents of a language model assisted with the proofs and that the kernel and the comparison tools are gates of correctness and not a replacement for review by experts; in its words, “No such expert review is claimed” [8].

The Lean sentence for Lagarias’s criterion is \[\begin{aligned} &\texttt{LagariasElementaryCriterion}:\\ &\qquad\forall n\in\mathbb N,\quad 0<n\ \Rightarrow\ \sigma_1(n)\le H_n+\exp(H_n)\cdot\log(H_n), \end{aligned}\] where \(\sigma_1\) is Mathlib’s ArithmeticFunction.sigma 1, a whole number, \(H_n\) is Mathlib’s harmonic n, a rational number, and each is passed to the same number as a real before the comparison (Challenge.lean, lines 57–62).

Proposition 21 (no convention fires in the Lagarias sentence). At every instance \(n\ge1\) of LagariasElementaryCriterion, every symbol is evaluated at arguments where Mathlib’s function equals the classical one. The same holds of Robin’s sentence at every instance \(n>5040\).

Proof. Fix \(n\ge1\). The number \(\sigma_1(n)\) is the finite sum of the whole numbers dividing \(n\); a finite sum of whole numbers involves no convention. Mathlib defines harmonic n as the sum over \(i=0,\dots,n-1\) of \((i+1)^{-1}\) in the rational numbers (Mathlib/NumberTheory/Harmonic/Defs.lean, line 23); each \(i+1\) is at least \(1\), so no inverse of “0” is taken, and the sum is the classical \(H_n\). The passage of a whole or rational number to the reals is exact. Mathlib’s exponential is the classical exponential at every real argument. Mathlib’s logarithm equals the classical logarithm at every positive argument and differs from it only at arguments \(\le0\); the argument here is \(H_n\ge1\). Sums, products and the order relation of real numbers are defined for all arguments. So the instance is the classical inequality \(\sigma(n)\le H_n+e^{H_n}\log H_n\). For Robin’s sentence, robinInequality n is \(\sigma_1(n)<\exp(\gamma)\cdot n\cdot\log(\log n)\) (lines 40–43); for \(n>5040\), \(\log n>8\) is positive, so both logarithms are taken at positive arguments, and Mathlib’s Real.eulerMascheroniConstant is the classical \(\gamma\).

How the sentence is derived: computation below a bound, the sentence about \(Z\) above it. The record states that the theorems robin_inequality and lagarias_inequality of the joined proof follow from riemannHypothesis through the two equivalences [3]. The proof of the second equivalence shows what that passage consists of (Robin1984/Lagarias/Theorem.lean, lines 22–35; Robin1984/Equivalence/Equivalence.lean, lines 22–27). It divides the whole numbers into four ranges.

The number \(e^{74500}\) has 32,355 digits. Within the repository of the formalization, no file on which the first three ranges rest mentions riemannZeta or RiemannHypothesis: 97 files for the certificates, 88 for the range below \(e^{74500}\), and 5 for the comparison (the files of Mathlib that these import are not followed in this count). Of the 48 files on which the fourth range rests, 18 mention one of the two (Supporting Information, Section 25).

So Lean derived one sentence, and the sentence says that the inequality holds at every whole number. Below \(e^{74500}\) the derivation computes: those instances are established by arithmetic in which the zeta function does not occur. From \(e^{74500}\) on, which is every whole number but finitely many, nothing is computed and no instance is examined. The inequality at all of those numbers is obtained in one step from the sentence about \(Z\). For them, “Lean derived the inequality” means that Lean derived it from the theorem about the substitute.

Consequence. The Lagarias sentence is the one place in the certified material where the Lean sentence and the classical sentence coincide symbol for symbol at every instance. It is a sentence about whole numbers. It contains no zeta function. For every whole number from \(e^{74500}\) on, its derivation in Lean passes through \(Z\) twice: through riemannHypothesis, the theorem about \(Z\) examined in Sections 4–8, and through the formalized equivalence, which is an equivalence between the inequality and the sentence \(S(Z)\) about the substitute, derived with the same library and its conventions. Section 11 states what this sentence gives.

11 The sponsors between the certified theorems and the Riemann hypothesis

A theorem with a hypothesis is a theorem whose hypothesis is its sponsor. The certified material offers two routes to the Riemann hypothesis. This section states the sponsors of each, proves that the hypothesis follows under them, states which of them the certification supplies, and states what the findings of the earlier sections establish given both routes.

11.1 Two properties of a system of rules: consistent, and true of \(\zeta\)

The sponsors below use two properties of Lean’s rules. They are different properties, and the earlier sections bear on one of them and not on the other.

A system of rules is consistent when it derives no statement together with the negation of that statement. Consistency concerns the rules among themselves. It does not mention what any symbol stands for.

A system of rules is true of a subject under a reading when, once each symbol is read as a named object of that subject, every statement the rules derive is a true statement about those objects. Logicians call this soundness. It is a property of the rules together with a reading, and one system can have it under one reading and lack it under another.

Two readings of Lean’s symbols occur in this paper; they are the readings (a) and (b) of Proposition 1. In the classical reading, the symbol “/” is the division of classical mathematics, which has no value at a zero denominator; Mathlib’s gamma function is \(\Gamma\), infinite at \(0,-1,-2,\dots\); and Mathlib’s zeta function is \(\zeta\), with its pole at \(1\). In the stand-in reading, “/” is the function \(d\) of Section 2, which returns “0” at a zero denominator; the gamma function is the function with “0” at the poles of \(\Gamma\); and the zeta function is \(Z\).

Lean’s rules are not true of \(\zeta\) under the classical reading. They derive “\(1/0=0\)” (div_zero), “\(\Gamma(0)=0\)” (Complex.Gamma_zero) and “the zeta function at \(1\) equals \((\gamma-\log4\pi)/2\)” (riemannZeta_one, Mathlib/NumberTheory/Harmonic/ZetaAsymp.lean, line 418). Read classically, the first is not true on either classical account of \(1/0\), as an expression with no value or as infinite at a pole: on neither account is it \(0\). The second and third are not true, since \(\Gamma\) is infinite at \(0\) and \(\zeta\) is infinite at \(1\). Sections 3–8 are the record of this failure: at the poles and at vanishing denominators, Lean derives of its functions statements that are not true of \(\Gamma\), of \(\zeta\) and of division. This is the sense in which the rules treat \(\zeta\) wrongly, and it is established.

This failure is not an inconsistency, and nothing found in this paper is one. The rules derive “\(1/0=0\)”; an inconsistency would require that they also derive “\(1/0\neq0\),” and they do not. The rule has a model, and it holds together with the law of division at every nonzero denominator in a field (Proposition 3(b)). The law at a zero denominator is refuted by \(x\cdot0=0\) alone, whatever value is written there (Proposition 3(a)), and Lean’s rules do not contain that law at a zero denominator. The reason is that the symbol “/” in Lean is defined to be the function \(d\). The statement “\(d(1,0)=0\)” is true of \(d\), by the definition of \(d\). A definition names an object and fixes its values; any derivation that uses the name can be rewritten with the defining expression in its place, so a definition brings a contradiction into the rules only if the rules already had one. Every convention of Section 2 enters Lean in one of three ways: as a definition with a case for the degenerate input; as the clause \(0^{-1}=0\) in Mathlib’s definition of a field, which each particular field, the real and the complex numbers among them, is then proved to satisfy from the definition of its inverse; or as a theorem proved from these. Under the stand-in reading each statement examined in Sections 3–8 is true: \(d(1,0)\) is “0,” the stand-in for \(\Gamma\) carries “0” at \(0\), and \(Z(1)\) is the number stated. The rules are wrong about \(\zeta\) because they hold a different function in its place. Holding a different function in its place is not deriving a statement together with its negation.

The Lean file that accompanies the paper checks the two halves in one theorem (standin_true_classical_false, Appendix A). Take any division with \(x/0=\text{“0”}\) and any multiplication with \(x\cdot0=\text{“0,”}\) in a setting where \(1\neq0\). Then the statement that the quotient of \(1\) by \(0\) equals “0” holds, and the value it names, multiplied by \(0\), does not give \(1\). The first half is the statement read of the stand-in. The second half is the failure of the same statement read of classical division, in which a quotient of \(1\) by \(0\) would be a number \(q\) with \(q\cdot0=1\); the theorem no_quotient_by_zero of the same file shows that no number is one. Lean derives both halves together, from no axiom, so the second does not contradict the first.

What consistency gives and what it does not. A consistent system can derive statements that are false of the subject a reader takes them to be about; “\(\Gamma(0)=0\)” is one. Consistency therefore does not make a derivation about the stand-ins a proof about \(\zeta\): rules can be consistent and wrong about \(1/0\), and Lean’s rules, if they are consistent, are both. Consistency passes truth to a narrower kind of statement: one whose failure, if it failed, would be shown by a finite computation that the rules themselves can carry out. If the rules derived such a statement and it were false, the rules would also derive the computation that refutes it, and so derive a statement together with its negation. Lagarias’s inequality at a given whole number is of this kind, and Proposition 21 shows that at every instance of it Lean’s symbols carry their classical values, so that the statement Lean derives and the statement classical mathematics makes are the same statement. A statement about the value of a function at its pole is not of this kind: “the zeta function at \(1\) equals \((\gamma-\log4\pi)/2\)” is derivable, not true of \(\zeta\), and no computation inside the rules refutes it, because inside the rules the function is \(Z\).

Consequence. The two statements “Lean’s rules are wrong about \(\zeta\) at its pole” and “if Lean’s rules are consistent, the Riemann hypothesis holds” are both established in this paper, and they do not conflict. The first says what the symbols stand for. The second says what the rules do not derive together, and it reaches the Riemann hypothesis only through a sentence about whole numbers at which the two readings coincide, joined to \(\zeta\) by a theorem proved outside Lean (Theorem 24). The second statement does not say that the derivation proves the hypothesis: it is an argument made outside Lean that uses the derivation through its acceptance alone (Proposition 25). Because the rules are not true of \(\zeta\) under the classical reading, no derived sentence can be taken as a statement about \(\zeta\) on the strength of its derivation, and each route needs a sponsor that carries the truth across. On the analytic route that sponsor is the truth of the rules under the stand-in reading together with the bridge from \(Z\) to \(\zeta\), whose last step is the classical fact, \(1/0\) infinite at a pole, that Lean’s rule replaces. On the arithmetic route it is consistency together with the theorem of Robin and Lagarias.

11.2 The sponsors and the two routes

Definition 22. S1 (correct checking). The kernels and the independent checkers accepted exactly the exported terms, and accept only terms that follow Lean’s rules.

C (consistency). Lean’s rules, with the three axioms, derive no contradiction.

S2 (soundness under the stand-in reading). Every theorem derivable by Lean’s rules is true when Lean’s division is read as the function \(d\) of Section 2, Mathlib’s gamma function as the function equal to \(\Gamma\) away from \(0,-1,-2,\dots\) and to \(0\) at those points, Mathlib’s zeta function as \(Z\), and every other convention as the explicit assignment it states. S2 implies C.

S3 (the bridge). Mathlib’s theorems (i)–(iii) of Theorem 10 are true of \(Z\), and the point \(1\), where \(\zeta\) has its pole, is not a zero of \(\zeta\).

S4 (excluded middle). For every complex number \(y\), either \(y=0\) or \(y\neq0\); for every complex \(s\), either \(s=1\) or \(s\neq1\).

R (the theorem of Robin and Lagarias). The Riemann hypothesis for \(\zeta\) holds exactly when \(\sigma(n)\le H_n+e^{H_n}\log H_n\) at every whole number \(n\ge1\).

Theorem 23 (the analytic route). Under S1, S2, S3 and S4, the Riemann hypothesis holds.

Proof. By S1, the term riemannHypothesis follows Lean’s rules, so the sentence RiemannHypothesis is derivable by Lean’s rules. By S2, the sentence is true when its symbols are read as \(d\), Mathlib’s gamma function and \(Z\); read so, it states: for every complex \(s\) with \(Z(s)=0\), \(s\) not of the form \(-2(n+1)\), and \(s\neq1\), the real part of \(s\) is \(\tfrac12\). The reading of the convention values as explicit assignments uses S4, because the assignment \(d(x,y)\) is defined by the case split “\(y=0\) or \(y\neq0\),” and \(Z\) is defined by the case split “\(s=0\) or \(s\neq0\)” and contains \(d\). By S3 and Theorem 10, whose proof uses the case split “\(s=1\) or \(s\neq1\)” of S4, the sentence so read is equivalent to the Riemann hypothesis for \(\zeta\). So the Riemann hypothesis holds.

Theorem 24 (the arithmetic route). Under S1, C and R, the Riemann hypothesis holds.

Proof. By S1, the theorem lagarias_inequality of the joined proof follows Lean’s rules, so the sentence LagariasElementaryCriterion is derivable. Suppose that at some whole number \(n_0\ge1\) the classical inequality failed, so that \(\sigma(n_0)>H_{n_0}+e^{H_{n_0}}\log H_{n_0}\). The left side is a whole number. The right side is a real number given by a rational number \(H_{n_0}\) and by the series for the exponential and the logarithm, each with explicit bounds for the remainder after finitely many terms. A strict inequality between the two sides is therefore confirmed by a finite computation with rational numbers: compute the right side to an accuracy finer than half the difference. Lean’s rules derive each step of such a computation, since the arithmetic of rational numbers and the remainder bounds are theorems of the library at positive arguments; and by Proposition 21 the Lean symbols at the instance \(n_0\) are the classical ones, so the computation derives, in Lean, the negation of the instance \(n_0\) of LagariasElementaryCriterion. With lagarias_inequality this is a derivation of a contradiction, against C. So no such \(n_0\) exists: at every whole number \(n\ge1\) the quantity \(\sigma(n)\) does not exceed \(H_n+e^{H_n}\log H_n\), which for real numbers is the statement \(\sigma(n)\le H_n+e^{H_n}\log H_n\). By R, the Riemann hypothesis holds.

Proposition 25 (the arithmetic route uses the derivation only through its acceptance). Let \(D\) be any term that the checkers accept as a derivation of LagariasElementaryCriterion, whatever statements about \(Z\), about Mathlib’s gamma function and about Lean’s division it contains. Under S1, C and R the Riemann hypothesis holds, by the proof of Theorem 24 word for word. That proof uses one fact about \(D\): that Lean’s rules derive the sentence. It uses no statement that \(D\) makes about \(Z\), about the gamma function or about division, and it does not use that any such statement is true of \(\zeta\), of \(\Gamma\) or of division.

Proof. The first sentence of the proof of Theorem 24 takes from S1 that the sentence LagariasElementaryCriterion is derivable. Every later step concerns a whole number \(n_0\), a finite computation with rational numbers, the premise C and the premise R. The term that witnesses derivability is not mentioned again, and no statement inside it is used. The proof is therefore a proof for every accepted term \(D\). The Lean file checks this form of the argument (any_accepted_term_suffices, Appendix A): the conclusion is obtained for every accepted term from the bare fact of its acceptance, and the conclusion does not mention the term.

Consequence: the derivation and the argument from its acceptance are two things. The first is the certified derivation: seventeen million lines about \(Z\), about Mathlib’s gamma function and about Lean’s division. The second is the argument of Theorem 24: three steps made in classical mathematics, outside Lean. First, Lean’s rules derive one sentence, which says that the inequality holds at every whole number; from \(e^{74500}\) on they derive it from the sentence about \(Z\), and from no examination of a whole number (Section 10). Second, if what that sentence says failed at some whole number, the failure would be a finite computation, which the rules also derive, so that the rules would derive a statement together with its negation; under C they do not. Third, the inequality at every whole number gives the hypothesis by the theorem of Robin and Lagarias.

The second reaches the Riemann hypothesis. It does not reach it because the first is a correct argument about \(\zeta\). It would reach it in the same way if the first contained any other statements about \(\zeta\), provided that the checkers accepted it and the rules are consistent; and by Proposition 30 below it reaches it, with nothing derived at all, for a system that has the hypothesis among its axioms. Rules that hold a different function in the place of division cannot defeat the second argument, because it never consults what the rules say about division: a failing instance of the inequality would be a finite computation with whole and rational numbers in which no denominator is \(0\) (Proposition 21). For the same reason the conclusion of the second argument returns nothing to the first. From “the Riemann hypothesis holds” it does not follow that any statement of the derivation is true of \(\zeta\), and consistent rules that are wrong about \(1/0\) remain wrong about \(1/0\).

The arithmetic route is therefore a reduction of the Riemann hypothesis to the consistency of Lean’s rules. It is not the certified derivation proving the hypothesis. And the consistency of the rules is established neither by the derivation nor by the certification (Proposition 27).

Proposition 26 (the premise C is the general form of the conclusion). For universal checkable sentences, the following two conditions on Lean’s rules are one condition:

  1. (i) the rules are consistent;

  2. (ii) every universal checkable sentence that the rules derive is true.

Proof. Suppose (i), and let the rules derive a universal checkable sentence “for every whole number \(n\), \(P(n)\).” If \(P\) failed at some \(n_0\), the failure would be a finite computation, the rules would derive it, and they would derive a statement together with its negation, against (i). So the sentence is true, which is (ii). Suppose now that (i) fails. Rules that derive a statement together with its negation derive every sentence, and among the universal checkable sentences some are false, for instance “for every whole number \(n\), \(n+1=n\).” The rules then derive a false sentence of this kind, so (ii) fails. The Lean file checks this form of the argument (consistency_is_reflection, Appendix A).

Consequence: what the implication from consistency says. By the proposition, “if Lean’s rules are consistent, Lagarias’s inequality holds at every whole number” is the statement: the sentence that Lean derived is true if the sentences of its kind that Lean derives are true. The premise is not a fact about \(\zeta\), about the inequality, or about this derivation. It is the reliability of the rules for sentences of this kind, stated in general, and the conclusion is one case of it. The step “consistent rules cannot derive the sentence together with a failing instance” is the proof that reliability and consistency are one condition. It does not establish that no failing instance exists; it establishes that under the premise. An implication of this form stands under the output of every formal derivation of a sentence of this kind, whatever the derivation contains. Section 12 shows what granting the premise amounts to: a step of the \(\omega\)-completion of the rules, which the rules do not take (Proposition 31).

The proposition also marks what consistency vouches for and what it does not. For a sentence about whole numbers it vouches for everything, if it holds: a wrong instance would be contradicted by a computation, and no rule about division can prevent the rules from carrying out a computation with whole numbers. For a statement that turns on the value at the pole it vouches for nothing. With a definition that puts \(0\) at the pole in place of \(-0.977\), the rules are exactly as consistent as before, since a definition cannot make consistent rules inconsistent, and they derive at once, of the function so defined, the negation of ZeroFreeAll. Where the mathematics gives no value, nothing can contradict the number that is written in, so any number written there is consistent, and consistency is indifferent between a theorem of that kind and its negation (Proposition 16).

Proposition 27 (the premise about the rules is the stronger statement). Grant S1. Then C implies Lagarias’s inequality at every whole number. If Lean’s rules are consistent, they derive that inequality at every whole number and they do not derive C; nor do they derive that the inequality at every whole number implies C.

Proof. The first claim is the first part of the proof of Theorem 24. The rules derive the inequality at every whole number by S1. By the second incompleteness theorem of Kurt Gödel (1906–1978) of 1931, a consistent system of rules that contains arithmetic and whose derivations a program can check does not derive the statement of its own consistency [22]; Lean’s rules are such a system. If the rules derived “the inequality at every whole number implies C,” then with the inequality, which they derive, they would derive C.

S1. The verification record lists the runs of Section 2; the certifiers’ notes list what a pass relies on [3, 4]. The exported proofs were made by Lean 4.33.1 and judged by the kernel of Lean 4.36.0, which the notes call not the common path; a successful build under version 4.33.1 alone is counted there as limited evidence. The versions of con-leche and con-ron shipped with Lean 4.36.0 declined the proof for want of support for one kind of inductive type, and the versions of their development branches accepted it. In one end-to-end run of the comparison tool the build step was met by a stub, and the statement file compared was a compilation, made by those who ran the check, of the statement file in the certifiers’ repository.

The notes also record the recent history of the kernel itself [4]. A flaw that allowed a proof of False from no axioms, through projections applied to the wrong structure, was corrected in versions 4.32.2 and 4.33.0; the version that built the archive, 4.33.1, has that correction. Two corrections of version 4.34.1 are not in version 4.33.1, and the notes say of them that, with input constructed for the purpose, they could potentially be turned into a proof of False in the official kernel; they add that kernels not built on Lean’s runtime are unaffected. One further correction was made one day after version 4.36.0, the version that judged the export, and is not in it. The notes do not describe it.

These records bear on S1 in a particular way for this archive. It was assembled by a process that keeps what the kernel accepts. In 46,204 lines a tactic tries several spellings of a lemma until one compiles (Section 8); in 67 files a tactic assigns a term for which, as the notes put it, the kernel is the only check (Section 9); and the author’s note says that he has little mastery of part of the argument and presents the Lean files in the place of a written proof [1]. The records report no reading of the derivation by a person. When acceptance by the kernel is the only test a step has passed, a flaw in the kernel is exposed in a way it is not when each step was first believed by a person who wrote it. The independent checkers answer that exposure for a flaw in one program. A flaw in the rules themselves would be shared by every checker, and that is premise C.

With those records the verification shows acceptance by Lean’s kernel and by four checkers written independently of it. S1 is the sponsor the certification addresses directly. This paper grants it for Theorems 23 and 24, and records here what the grant covers.

C and S2. The certification addresses these as well: the joint statement says that the checkers con-leche and con-ron come with a formal proof, relative to set theory, that they accept no false proof [2]. Section 12 examines what such a proof gives, in which theory it is carried out, and what that theory rests on in turn. In the model of Lean’s rules in set theory, Lean’s division is the function \(d\): the soundness that such a proof establishes is soundness under the stand-in reading and under no other, which is S2 as stated here (Proposition 19(d)). It has been objected that, since a set theory with inaccessible cardinals proves C, C is easier to prove than the Riemann hypothesis. That is so, and it leaves Proposition 27 standing: the proposition concerns which statement follows from which, and the ease of a proof in a stronger theory is the ease of assuming more. The author’s earlier note treats this premise at length [49].

S3. The theorems (i)–(iii) are Lean theorems about \(Z\) in the exported proof, so they carry S1 and S2 again. The last clause of S3 holds because \(\zeta\) is undefined at \(1\); its counterpart in Lean is the statement \(Z(1)\neq0\), which Mathlib proves from the number at \(1\) (Proposition 12). The identification of \(\zeta\) with the function that has the properties (i) and (ii) is the definition of \(\zeta\), applied outside the kernel (Section 4). The certification addresses it through the experts’ vetting of Mathlib’s definition, which is the definition of \(Z\).

R. The theorem of Robin and Lagarias is a theorem of classical analysis about \(\zeta\) with its pole, proved and published by people in 1984 and 2002 [20, 21]. It has been formalized, in Robin1984, as an equivalence between the inequality and the sentence \(S(Z)\): in Lean it exists only in the form that speaks of the substitute, for the reason given in Section 4, that Lean holds no \(\zeta\) to speak of. On the arithmetic route the passage from whole numbers to \(\zeta\) is therefore the published theorem, taken on the authority of its proof in classical mathematics. The certification of 21 November does not mention it; the verification record lists the joined proof, checked three days later.

S4. Without excluded middle, the case split “\(y=0\) or \(y\neq0\)” is not available for real or complex numbers: a real number can be given by a sequence of rational approximations for which no finite computation decides whether it is \(0\), for instance \(\sum_n a_n2^{-n}\) with \(a_n=1\) exactly when \(n\) is a counterexample to a statement checked number by number. The reading of the conventions as explicit assignments then fails, and the derivation does not transfer to a derivation about \(\zeta\) on the analytic route. The first half of the proof of Theorem 24 does not use excluded middle; the published proofs of R do. The derivation rests on Classical.choice, from which excluded middle follows.

Theorem 28 (what the stand-in values cannot do). Under S1 and S2, no use of a convention in the derivation makes the sentence RiemannHypothesis hold of \(Z\) while some zero of \(Z\) at a point \(s\neq1\), other than \(-2(n+1)\), has real part different from \(\tfrac12\).

Proof. Under S1 the sentence is derivable; under S2 every derivable sentence is true under the stand-in reading. The sentence’s clauses concern the values of \(Z\) at points \(s\neq1\), which are values of \(Z\) as a function, and the truth of the sentence under the reading is the statement that every such zero of \(Z\) other than \(-2(n+1)\) has real part \(\tfrac12\). So a zero of \(Z\) off the line at such a point would make a derivable sentence false under the reading, contradicting S2.

What the findings establish, given both routes. The findings of Sections 3–8 establish, without any condition, that the certified derivation is not an argument about \(\zeta\): its sentences are about the stand-ins (Proposition 1), and it depends on values that the stand-ins have and that \(\zeta\), \(\Gamma\) and division do not have (Sections 5 and 8.6). The two routes do not alter this. They are arguments from the acceptance of the derivation to the hypothesis, each under sponsors. The findings are bounded in two respects. They do not show the Riemann hypothesis false. And they do not show that the hypothesis fails to follow under the sponsors: the arithmetic route does not consult the pole, its kernel-checked endpoint is a sentence in which no convention fires, and its sponsors are S1, C and R; and Theorem 28 shows that under S1 and S2 the stand-in values do not make a false sentence about \(Z\) derivable. With both routes in view, the findings show the following.

  1. (i) On neither route is any kernel-checked sentence a statement about \(\zeta\) with its pole. On the analytic route the endpoint is a sentence about \(Z\). On the arithmetic route the endpoint is a sentence about whole numbers, and the statement that ties it to \(\zeta\) is R, which Lean holds only in substitute form.

  2. (ii) Everything between the axioms and either endpoint is a derivation about the stand-ins. It contains steps that hold of the stand-ins and are not true of \(\zeta\) and \(\Gamma\) at their poles by their names (Section 5), and a central lemma whose truth depends on the number assigned at the pole (Proposition 14), through which every certified theorem descends (Section 8.6). The truth of the endpoints is therefore not inherited step by step from true statements about \(\zeta\). It is inherited from the rules as a whole: from S2 on the analytic route and from C on the arithmetic route.

  3. (iii) The certified derivation is not what carries the hypothesis on the arithmetic route. That route is the argument of Theorem 24, which takes from the derivation the single fact of its acceptance (Proposition 25). It reduces the Riemann hypothesis to a premise: granted the checking (S1) and the published theorem of Robin and Lagarias (R), the hypothesis holds if Lean’s rules are consistent. The premise is a statement the rules, if consistent, do not derive; it is stronger than the conclusion (Proposition 27); and its best support is a proof in a set theory whose own consistency is a further premise of the same kind. A reduction of the hypothesis to such a premise establishes the hypothesis for whoever grants the premise, and the certified material contains no ground for granting it (Proposition 31).

  4. (iv) The premise is consistency and not truth of \(\zeta\) (Section 11.1). The findings of Sections 3–8 show that the rules are not true of \(\zeta\) under the classical reading; they do not show the rules inconsistent, and the implication of (iii) is unaffected by them. What they remove is the reading of the certified derivation as a chain of true statements about \(\zeta\).

The statement “Alpöge proved the Riemann hypothesis” does not describe what was certified. What the certified material shows is that checkers accepted a derivation about substitutes for \(\zeta\), \(\Gamma\) and division, and that from this acceptance, together with the consistency of Lean’s rules and a published classical theorem, the hypothesis follows.

12 The bridge, premise by premise, and what stands under it

The certified sentence is about \(Z\). The Riemann hypothesis is about \(\zeta\). Whatever joins them is a further argument, and on both routes of Section 11 such an argument is needed. This section lists every premise that argument uses, says where each is proved, if anywhere, and says which kind of check has ever examined it. It then follows the one premise that no check inside the system can examine, the premise about the rules, down to the theory it rests on and to what that theory rests on in turn.

12.1 The premises, and what holds each

Table 6 lists the premises of both routes. A premise is held by a machine check when a kernel or an independent checker examined a term for it. It is held by people when it rests on a reading or an argument made by hand. It is held by a stronger theory when its only proofs are carried out in a theory that derives more than the system the premise is about.

Premise What holds it
Both routes
The checkers accepted only terms that follow the rules (S1). Machine checks by several programs written separately. The certifiers’ notes state that a pass still trusts the checkers themselves, Mathlib’s definitions, Mathlib’s build cache, the program that writes the export, and the sandboxes [4].
The rules derive no contradiction (C); on the analytic route, the rules derive only statements true of the stand-ins (S2). A stronger theory. The rules are consistent exactly when set theory with infinitely many inaccessible cardinals is (Section 12.2), and a proof of either consistency needs a theory stronger again. No check inside Lean can hold it (Proposition 27).
Analytic route
\(Z\) has a complex derivative at every \(s\neq1\); \(Z\) equals the series \(\sum 1/n^s\) where \(\operatorname{Re}s>1\); \((s-1)Z(s)\to1\) at \(1\). Machine checks: the three Mathlib theorems are among the 204,488 Mathlib constants of the exported proof. They are theorems about \(Z\), derived through the conventions; the proof of the first at \(s=0\) rewrites \(\Gamma(0)\) to “0” and applies \(x/0=\text{“0”}\) (Section 3).
Lean’s real and complex numbers, its derivative, its infinite sum and its complex power are the classical ones at the instances used. People. The verification record states that the result relies on Mathlib’s definitions meaning what they are intended to mean [3]; the notes list the meaning of the statement as read by hand [4].
\(\zeta\) is the one function with a complex derivative on the plane without \(1\) that equals the series where it converges; hence \(\zeta=Z\) at every \(s\neq1\). Machine checks for the pieces: Mathlib proves the identity theorem, and the identity theorem and the two properties of \(Z\) are in the exported proof. People for the identification itself, which is the definition of \(\zeta\): Lean holds no \(\zeta\) to state it for.
The point \(1\) is not a zero of \(\zeta\), because \(\zeta\) has its pole there. People: \(\zeta\) is undefined at \(1\). Its counterpart in Lean, \(Z(1)\neq0\), is a machine-checked theorem proved from the number at \(1\) (Proposition 12).
Excluded middle (S4). An axiom of the derivation, through Classical.choice.
Arithmetic route
At every instance of Lagarias’s sentence, Lean’s symbols carry their classical values. People: Proposition 21 of this paper, by reading Mathlib’s definitions. The verification record states that the arithmetic consequences rely on those definitions [3].
If the inequality failed at some \(n\), Lean’s rules would derive the failure. People: the argument in the proof of Theorem 24.
The inequality at every \(n\) implies the Riemann hypothesis for \(\zeta\) (R). People: the published proofs of Robin (1984) and Lagarias (2002). In Lean the theorem exists only as a statement about \(Z\).
Table 6. The premises between the certified theorems and the Riemann hypothesis, and what holds each.

Consequence. On each route, every premise in which \(\zeta\) itself appears is held by people, because Lean holds no \(\zeta\); each such premise is the identification of \(\zeta\) with a function whose properties Mathlib proves, or a classical theorem about \(\zeta\). The machine checks hold statements about \(Z\) and about whole numbers. The certification’s four checks (Section 14) therefore reach the Riemann hypothesis only through premises they did not test, and one of those premises, the premise about the rules, cannot be tested by any check made inside the system. How much is read by hand. The meaning of the certified sentence is fixed by the definitions it is written with, by the definitions those are written with, and so on down to Lean’s primitives. Following the dependency tables from RiemannHypothesis through the bodies of definitions and the statements of theorems, and not through the proofs of theorems, which do not affect what a definition means, reaches 4,864 constants: 2,104 definitions, 356 inductive types, 2,052 theorems to which definitions refer, and the axioms Classical.choice and Quot.sound. Among the definitions are the integral, the infinite sum, the complex power, Mathlib’s gamma function, Function.update, and the inverse on the real numbers, which is defined with a separate case that returns “0” where a quotient would have the denominator \(0\) (Mathlib/Algebra/Order/CauSeq/Completion.lean, lines 192–194). The rule \(x/0=\text{“0”}\) is therefore part of what the certified sentence means, before any proof begins. That a sentence built from these 2,104 definitions says what the Riemann hypothesis says is the premise that the certification covers with the words that the definition was vetted by experts.

12.2 The premise about the rules, stated in set theory

Lean arranges its types in levels called universes. The level Type 0 holds the ordinary objects of mathematics: numbers, functions, particular spaces. The level Type 1 holds collections whose members are structures of Type 0, such as the collection of all schemes built from Type 0; Type 2 holds collections of those; and so on without end.

Set theory in the form due to Ernst Zermelo (1871–1953) in 1908 and Abraham Fraenkel (1891–1965) in 1922, with the axiom of choice, is written ZFC. An inaccessible cardinal is an infinite size, larger than the size of the set of whole numbers, that cannot be reached from smaller sizes by forming sets of all subsets or by collecting fewer smaller sizes than itself. The sets that can be built below an inaccessible cardinal satisfy all the axioms of ZFC. Benjamin Werner showed in 1997 for the calculus of inductive constructions, the type theory of the proof assistant Coq, and Mario Carneiro showed in 2019 for Lean’s rules, that each universe of the type theory can be interpreted by one inaccessible cardinal of set theory [25, 40]. The set theory that results has one axiom for each whole number \(n\), saying that at least \(n\) inaccessible cardinals exist. This paper calls it ZFC with infinitely many inaccessible cardinals. Lean’s rules derive a contradiction exactly when that theory does. A single derivation is a finite object and uses finitely many universes, so each derivation of Lean corresponds to a derivation in ZFC with some finite number of inaccessible cardinals. Bresolin and Mamino state the correspondence sentence by sentence: a statement about whole numbers and sets of whole numbers is derivable in Lean exactly when it is derivable in ZFC with infinitely many inaccessible cardinals [41]. Their abstract describes the set theory in those words and does not settle whether it has one axiom for each \(n\) or the single axiom that infinitely many exist. The single axiom gives the stronger theory: it derives that the theory with one axiom for each \(n\) is consistent.

Three things follow.

First, what was certified is a derivation in a theory stronger than ZFC. Granting S1, the certified term shows that Lean’s rules derive Lagarias’s sentence; by the correspondence, that is the statement that ZFC with infinitely many inaccessible cardinals derives it. It is not the statement that ZFC derives it, and it is not the statement that arithmetic derives it. The application of the correspondence itself needs one more step that the records do not contain: a derivation inside Lean that Mathlib’s sentence about real numbers, exponentials and logarithms is equivalent to a sentence about whole numbers of the kind the correspondence covers.

Second, ZFC cannot supply the premise. The sets below an inaccessible cardinal form a model of ZFC, so ZFC with one inaccessible cardinal derives “ZFC is consistent.” By Gödel’s second theorem ZFC, if consistent, does not derive that statement; so ZFC, if consistent, does not derive that an inaccessible cardinal exists. More than that: ZFC does not derive “if ZFC is consistent, then ZFC with an inaccessible cardinal is consistent,” unless ZFC with an inaccessible cardinal is itself inconsistent. For if ZFC derived it, then ZFC with an inaccessible cardinal, which derives “ZFC is consistent,” would derive its own consistency, and by Gödel’s theorem only an inconsistent system does that. The consistency of the theory in which the certified derivation lives is therefore a hypothesis that ordinary set theory can justify neither outright nor relative to its own consistency.

Third, no one has shown that the derivation needs less. The derivation is written across the universes. The dependency tables report the universe levels that occur in the exported terms: the highest level in the archive’s own constants is Type 2, at which 711 constants stand, and the highest in all constants as they are used is Type 6, in two constants of Lean’s core. The tables trace the highest levels to Mathlib’s lemmas on cardinal and ordinal numbers and to the encoding of structural recursion in Lean’s core, and they state that these are the levels that occur in the terms and not a set-theoretic bound [7, README, lines 219--227]. Of the 1,270,184 archive constants in the exported proof, 176,304 carry universe parameters, up to nineteen in a single constant, and the exported proof contains 25,978 Mathlib constants of category theory and of algebraic geometry, the subjects for which the universes are used. These figures show where the derivation is written. They do not show that the Riemann hypothesis has no derivation in ZFC or in arithmetic. How many inaccessible cardinals a model of this term in set theory needs is fixed by the levels at which the term forms products and sums of arbitrary families of types of the level, not by the highest level it mentions. From Shore’s lists of the levels of each use of a constant, the companion paper computes that the standard model of the term requires exactly six, under the sponsor that Carneiro’s model covers the rules of Lean 4 that the term uses [55]. No one has given a reduction of the derivation to ZFC of the kind that McLarty gave for the large structures used in the proof of Fermat’s Last Theorem [36]. The joint statement, the verification record and the certifiers’ notes contain no account of which universes the derivation needs [2, 3, 4].

Consequence. In classical terms the certified result reads: set theory with infinitely many inaccessible cardinals derives a sentence about whole numbers that is equivalent, by a published theorem, to the Riemann hypothesis. To pass from “that theory derives it” to “it is true” one needs that the theory derives no false sentence of this kind, which for a sentence whose failures are finite computations is the consistency of the theory. That consistency is the sponsor under the certified result. It concerns a theory of infinite sizes whose consistency ZFC cannot show.

Proposition 29 (the certified result relative to ZFC). Grant S1, and grant that Lean’s sentence for Lagarias’s inequality says at every whole number what the classical inequality says (Proposition 21).

  1. (a) ZFC derives: if Lean’s rules are consistent, the Riemann hypothesis holds.

  2. (b) ZFC does not derive that Lean’s rules are consistent, unless they are inconsistent.

  3. (c) Relative to ZFC, therefore, the certified material gives the Riemann hypothesis with the sponsor “Lean’s rules are consistent,” and it gives the hypothesis from ZFC alone only if a derivation of the hypothesis in ZFC, which the certified term is not, is supplied.

Proof. (a) By S1 a finite object exists, a derivation by Lean’s rules of Lagarias’s sentence, and ZFC derives that it exists, as it derives every true statement that some finite object has a property decided by a finite computation. The argument of Theorem 24, from the consistency of the rules and that derivation to the inequality at every whole number, uses only finite computations and derivations of them, and it is carried out in ZFC; so is the proof of the theorem of Robin and Lagarias, a theorem of classical analysis [20, 21]. (b) Bresolin and Mamino state that Lean’s type theory is equiconsistent with ZFC together with infinitely many inaccessible cardinals, and that a formula of second-order arithmetic is derivable in that set theory exactly when, read as a type, it is inhabited in Lean [41]. The statement that Lean’s rules are consistent is a sentence about whole numbers, so a formula of that kind. If ZFC derived it, the stronger set theory would derive it, and by the correspondence Lean’s rules would derive their own consistency, which by Gödel’s second theorem consistent rules do not [22]. (c) follows from (a) and (b), and the certified term is a derivation by Lean’s rules and not in ZFC (this section).

Consequence. This is the form in which mathematics states a result that uses more than ZFC: with the further axiom, or the statement of consistency, as its sponsor, as Solovay’s theorem is stated with an inaccessible cardinal (Section 1.3). The certified material establishes the implication of (a), under correct checking. It does not establish its sponsor, and by (b) no argument in ZFC does, unless Lean’s rules are inconsistent. A proof of the Riemann hypothesis from ZFC alone would be a different derivation, in a different system, and none has been given.

12.3 An implication from consistency to the hypothesis is available without any derivation

Call a statement universal and checkable when it has the form “for every whole number \(n\), \(P(n)\),” and a failure of \(P\) at a given \(n\) is confirmed by a finite computation. Lagarias’s inequality at every \(n\) is such a statement (proof of Theorem 24). Peano arithmetic, written PA, is the system of axioms for the whole numbers given by Giuseppe Peano (1858–1932) in 1889, with induction for every property that its language can state.

Proposition 30 (for a universal checkable statement, consistency yields truth, whatever the system). Let \(\varphi\) be a universal checkable statement, and let PA\({}+\varphi\) be Peano arithmetic with \(\varphi\) added as an axiom. If PA\({}+\varphi\) is consistent, then \(\varphi\) is true. Peano arithmetic derives this implication.

Proof. Suppose \(\varphi\) is false. Then \(P\) fails at some whole number \(n_0\), and a finite computation confirms the failure. Each step of a finite computation with whole numbers is an equality or an inequality between explicitly given numbers, and PA derives every true statement of that kind. So PA derives “\(P\) fails at \(n_0\).” The system PA\({}+\varphi\) derives \(\varphi\), which is one of its axioms, and \(\varphi\) says that \(P\) holds at \(n_0\). So PA\({}+\varphi\) derives a statement together with its negation, and is inconsistent. Hence if PA\({}+\varphi\) is consistent, \(\varphi\) is true. The argument used one fact about PA: that it derives every correct finite computation. David Hilbert (1862–1943) and Paul Bernays (1888–1977) showed in 1939 that a system of this kind derives this fact about itself [26]; so the whole implication is a theorem of PA. The Lean file checks the logical form of the argument (universal_from_consistency, Appendix A).

Consequence. Take for \(\varphi\) Lagarias’s inequality at every \(n\). Then “if PA with the Riemann hypothesis as an axiom is consistent, the Riemann hypothesis holds” is a theorem, obtained without proving anything about \(\zeta\). An implication of the form “if system \(X\) is consistent, the Riemann hypothesis holds” is therefore not, by its form, evidence for the hypothesis. It carries exactly the weight of the grounds one has, apart from the hypothesis itself, for the consistency of \(X\). For PA with the hypothesis as an axiom there are no such grounds. For Lean’s rules the grounds are those of Section 12.2: the consistency of ZFC with infinitely many inaccessible cardinals. What the certified derivation accomplishes, measured this way, is to exchange the system “PA with the hypothesis as an axiom” for a system that does not have the hypothesis among its axioms and whose consistency is believed for other reasons. The Riemann hypothesis then stands exactly as firmly as that belief, and as the checking. This is a reduction of the hypothesis to a statement of consistency. It is not a derivation of the hypothesis from properties of \(\zeta\), and the certified derivation enters it only as an accepted term (Proposition 25).

12.4 The ladder

By Gödel’s second theorem a consistent system that contains arithmetic does not derive its own consistency. The consistency of Lean’s rules is not derived in ZFC with infinitely many inaccessible cardinals, unless that theory is inconsistent, since the two are consistent together or not at all. It is derived in a stronger theory, for instance ZFC with the single axiom that infinitely many inaccessible cardinals exist. The consistency of the stronger theory is derived in a theory stronger again; and so on. Each rung is vouched for by the rung above it and by nothing below.

Alan Turing (1912–1954) studied this ladder in 1939 [23]. Begin with a system for arithmetic. At each step add the statement that the system reached so far is consistent. Continue past the finite steps, taking at each limit the union of what came before, and name the steps by notations for the transfinite ordinal numbers. Turing proved that every true universal checkable statement is derivable at a step named by some notation for the ordinal \(\omega+1\), the step after the first limit. It is no method of proof, and Turing said why: for a given statement one can write down a candidate notation, but the candidate names a genuine step exactly when the statement is true, and the notations used “will not be ones which can easily be seen intuitively to be ordinals.” To know that one is on the ladder at the right rung, one must already know the statement. The same paper takes the Riemann hypothesis as its example of a problem that can be written as a statement about whole numbers (its Section 3). Solomon Feferman (1928–2016) proved in 1962 that, with stronger statements added at each step, every true statement of arithmetic is reached along some path, and with Clifford Spector (1930–1961) that along other paths some true universal checkable statements are never reached [28, 29]. The truth of such a statement is thus fed in from outside the ladder, through the recognition of which path is a path.

The \(\omega\)-rule and \(\omega\)-completion. The \(\omega\)-rule passes from the statements \(P(0)\), \(P(1)\), \(P(2)\) and so on, one for each whole number, to the statement “for every whole number \(n\), \(P(n)\).” The letter \(\omega\) names the whole numbers \(0,1,2,\dots\) taken all together in their order. The rule has infinitely many premises, so no derivation of finite length applies it and no proof checker checks an application of it. David Hilbert (1862–1943) proposed a rule of this kind in 1931, the year of Gödel’s theorems [30]. A system of rules is \(\omega\)-complete when it derives the universal statement whenever it derives every one of the instances, and the \(\omega\)-completion of a system is the system with the \(\omega\)-rule added.

Proposition 31 (the consistency of Lean’s rules is reached by the \(\omega\)-rule and not by the rules). For a whole number \(n\) let \(D(n)\) be the statement “\(n\) is not the code of a derivation, by Lean’s rules, of a statement together with its negation.”

  1. (a) Lean’s rules derive \(D(n)\) for each whole number \(n\).

  2. (b) The premise C is the statement “for every whole number \(n\), \(D(n)\).” If Lean’s rules are consistent, they do not derive it. Consistent, Lean’s rules are therefore not \(\omega\)-complete, and C is a theorem of their \(\omega\)-completion and not of the rules.

  3. (c) C is the same condition as the \(\omega\)-rule for checkable properties, read as a statement of truth: “if the rules derive \(P(n)\) for each whole number \(n\), then \(P(n)\) holds for every whole number \(n\).”

Proof. (a) Whether \(n\) is the code of such a derivation is settled by a finite computation, the one that a proof checker carries out. If \(n\) is not such a code, the computation shows it, and the rules derive the result of a finite computation. If some number is such a code, the rules derive a statement together with its negation, and then they derive every statement, each \(D(n)\) among them. (b) The rules are consistent exactly when no whole number is the code of such a derivation, and that is the universal statement. By Gödel’s second theorem consistent rules do not derive it (Proposition 27). By (a) they derive each of its instances. So they derive every instance of a universal statement that they do not derive, which is what it is to fail to be \(\omega\)-complete; and the \(\omega\)-rule, applied to the instances, gives C. (c) Suppose C, let \(P\) be a checkable property, and let the rules derive \(P(n)\) for each \(n\). If \(P\) failed at some \(n_0\), the failure would be a finite computation, the rules would derive it together with \(P(n_0)\), and that is against C; so \(P\) holds at every \(n\). Conversely, suppose the rule in the stated form. By (a) the rules derive \(D(n)\) for each \(n\), so \(D(n)\) holds for every \(n\), which is C. The Lean file checks the form of both directions (omega_rule_from_consistency, consistency_from_omega_rule, Appendix A). Feferman proved the general form in the paper of 1962 already cited: to add to a system the statement that what it derives at every instance holds at every instance comes to the same as to add the \(\omega\)-rule once [28].

Consequence: the consistency of the rules is assumed, by a step that the rules do not take. Each thing that a checker examines is one instance: this term is a derivation of this sentence; this term is not a derivation of a contradiction. The four checks of the certification are instances of this kind. The statement that the rules derive no falsehood about whole numbers is the universal statement over all derivations, and by the proposition it is reached from the instances only by the \(\omega\)-rule. Whoever passes from “Lean derived the sentence” to “the sentence is true” therefore assumes a step of the \(\omega\)-completion of Lean’s rules. The assumption is not in the certified term. It is not among the four checks. A derivation of it is a derivation in a stronger system, and for that system the same step is a premise again. It is condition (T3) of Proposition 17, and on the arithmetic route it is the sponsor C. With that step assumed, and with the checking and the theorem of Robin and Lagarias granted, the certified derivation establishes the Riemann hypothesis. With the step set aside, the certified derivation establishes that a term was accepted.

Two bounds belong with this. First, the conventions carry no burden of their own in the premise. In Lean the division for which \(x/0=\text{“0”}\) is a function defined by cases, and a definition can be unfolded out of every derivation that uses it, so it brings no contradiction that the rules could not reach without it. The premise concerns the rules as a whole. Second, the same premise, each time for its own rules, stands under every theorem of set theory and of arithmetic that is taken to be true of the whole numbers. Mathematics does not ignore the premise on that account. It records it, by stating a theorem together with the system that derives it, and the study of which system derives which sentence is itself mathematics, carried out in the arithmetic of finite objects and independent of the premise (Section 1.3). What is particular to the certified derivation is that this record was not made (Proposition 2), together with what Section 12.7 states.

Two further theorems close the routes by which a system might vouch for itself. Martin Löb (1921–2006) proved in 1955 that a system derives “if this statement is derivable, it is true” only for statements it derives outright [24]. Alfred Tarski (1901–1983) proved in 1933 that a consistent system containing arithmetic cannot define, in its own language, which of its sentences are true [27]. The statement on which the bridge rests, “what Lean derives is true of the objects named,” cannot therefore be stated and derived inside Lean. A machine check of it has to be made in a second system that speaks both of Lean’s sentences and of the objects. The sentences of the second system then need a reading of their own, held by people or by a third system. The book [53] states this barrier for schemes of certification in general and follows the ladder it forces (Section 12.5).

The three conditions and the ladder. Each way of completing by proof the passage from “Lean derived the sentence” to “the sentence is true of \(\zeta\)” leads onto the ladder. The passage has the three parts of Proposition 17. The third, that what the rules derive is true, is the ladder itself: by Proposition 31 it is a step that the rules do not take, a derivation of it lies in a stronger system, and for that system the same step is a premise again. The first two, that the sentence does not consult the value at the pole and that Mathlib’s function agrees with \(\zeta\) elsewhere, are theorems of ordinary mathematics. Held by people, they rest on the acceptance of the system in which people prove them, which is the same step taken for a weaker system. Checked by a machine, they need a second system that speaks both of Lean’s sentences and of \(\zeta\) itself, by Tarski’s theorem, and the sentences of that second system need a reading in their turn. The translation therefore ends where a system is accepted as true, and at no point where a system is proved true. What metatheory provides in the place of such a proof is the classification of Section 1.3: the statement of which system derives the sentence, which holds whatever is accepted.

What a search by a machine can do. A universal checkable sentence that is false is shown false by a finite search, which finds the whole number at which the sentence fails. A universal checkable sentence that is true is shown true by no search, since the search runs without end and reports nothing. Turing proved in 1936 that no machine decides, for every search, whether it ends [38]. This holds of every kind of machine built or proposed. David Deutsch (born 1953) showed in 1985 that a quantum computer computes the same functions as Turing’s machines; what it changes is the time that some computations take [39]. A faster machine can carry further a search for a failure of Lagarias’s inequality, and it can carry further a search for a contradiction in ZFC with inaccessible cardinals; if either exists, a search finds it. Neither search can report that there is none. The size of the numbers is not the obstacle: a whole number of 32,355 digits is handled at once by an ordinary computer. The obstacle is that no bound is known beyond which a failure, or a contradiction, need no longer be sought.

Consequence. The premise about the rules is not a gap that a further run of the checkers can close. Every proof of it is a proof in a stronger theory, and the Riemann hypothesis, as far as the certified material carries it, stands at one rung of that ladder: it follows if ZFC with infinitely many inaccessible cardinals is consistent. Read through the standard model of the term the rung is named: the hypothesis follows if ZFC with six inaccessible cardinals is consistent, a premise that ZFC with seven derives and that every theory deriving it exceeds [55]. The certified derivation does not remove the hypothesis from the ladder. It places it there.

12.5 Independence: what the certified derivation excludes and what it leaves open

A sentence is independent of a system of rules when the system derives neither the sentence nor its negation. Independence is relative to a named system: one sentence can be independent of one system and derivable in a stronger one. The best-known case is the continuum hypothesis of Georg Cantor (1845–1918), the statement of 1878 that every infinite set of real numbers has either the size of the set of whole numbers or the size of the set of all real numbers. Gödel showed in 1938 that ZFC does not derive its negation, and Paul Cohen (1934–2007) showed in 1963 that ZFC does not derive it, in each case if ZFC is consistent [42, 43]. This subsection states what the certified derivation says about the independence of the Riemann hypothesis and what it cannot say.

Proposition 32 (for a universal checkable statement, independence yields truth). Let \(\varphi\) be a universal checkable statement, “for every whole number \(n\), \(P(n)\),” and let \(X\) be a system of rules that derives “\(P\) fails at \(n_0\)” for every whole number \(n_0\) at which \(P\) does fail. If \(X\) does not derive the negation of \(\varphi\), then \(\varphi\) is true. In particular, if \(\varphi\) is independent of \(X\), then \(\varphi\) is true.

Proof. Suppose \(\varphi\) is false. Then \(P\) fails at some whole number \(n_0\), and \(X\) derives “\(P\) fails at \(n_0\).” From that statement one step of logic gives “it is not the case that \(P\) holds at every \(n\),” which is the negation of \(\varphi\); so \(X\) derives the negation of \(\varphi\), against the supposition. Hence \(\varphi\) is true. If \(\varphi\) is independent of \(X\), then \(X\) does not derive its negation, and the first part applies. The Lean file checks this form of the argument (independence_gives_truth, Appendix A).

Peano arithmetic is a system \(X\) of this kind for every universal checkable statement (proof of Proposition 30), and so is every system that contains it. Lean’s rules are a system of this kind for Lagarias’s inequality (proof of Theorem 24).

Consequence. For the Riemann hypothesis in the form of Lagarias’s inequality, a finding of independence is not a finding against the hypothesis. It would establish the hypothesis, by an argument that uses no derivation of it. This is the difference from the continuum hypothesis, which is not a universal checkable statement: no finite computation would confirm a failure of it, and its independence from ZFC leaves its truth open. The author’s paper [51] proves the proposition for the whole-number form of the hypothesis and every sound system that derives the correct finite computations (its theorem on the one-sided truth of the arithmetic shadow, its name for the whole-number form), and [54] uses independence, for this reason, as an affirmative method. One further consequence follows from the proposition. A proof, carried out in some theory, that \(X\) does not derive the negation of the hypothesis is at the same time a proof in that theory of the hypothesis, provided the theory can carry out the argument of the proposition, as Peano arithmetic can. A finding of independence from \(X\) can therefore be made only in a theory that itself establishes the hypothesis, and it shows in addition that \(X\) does not.

What the certified derivation excludes. Grant S1. Then Lean’s rules derive Lagarias’s sentence, so that sentence is not independent of Lean’s rules. This is all that the certified derivation says about independence, and it holds as far as S1 holds. A demonstration that Lean’s rules do not derive the sentence would contradict no theorem; it would contradict S1, by showing that the term the checkers accepted is not a derivation by the rules. S1 is a statement about programs and a file of 61 gigabytes, and the records list corrections to the kernel made before and after the run (Section 11). The certification excludes independence from Lean’s rules by the record of those runs and by nothing else.

What it leaves open: every weaker system. The derivation is written in Lean’s rules, which correspond to ZFC with inaccessible cardinals (Section 12.2). A derivation in a stronger system shows nothing about derivability in a weaker one, and for universal checkable sentences this is known by example. The sentence “ZFC derives no contradiction” is universal and checkable: it says of every finite list of formulas that the list is not a derivation of a contradiction from the axioms of ZFC; the finite lists can be numbered by the whole numbers, and whether a given list is such a derivation is settled by a finite computation. ZFC with one inaccessible cardinal derives the sentence (Section 12.2). ZFC, if consistent, does not derive it, by Gödel’s second theorem; and if ZFC derives no false statement about a finite computation, it does not derive the negation either, so that the sentence is then independent of ZFC. A universal checkable sentence can thus be derivable with an inaccessible cardinal and independent of ordinary set theory.

The certified derivation therefore leaves the following exactly as they were before it: whether ZFC derives Lagarias’s sentence; whether Peano arithmetic derives it; whether any system weaker than the one in which the term is written derives it. Section 12.2 showed that the certified term is written across the universes, that the levels reported for it fix no set-theoretic bound, and that no reduction of it to ZFC has been given. A later demonstration that the sentence is independent of ZFC, or of Peano arithmetic, would contradict nothing in the certified material. By Proposition 32 it would itself establish the hypothesis, and it would show that the certified term uses its inaccessible cardinals in an essential way: the hypothesis would be true, and it would not be a theorem of the set theory in which number theory is ordinarily carried out. This paper does not assert that the hypothesis is independent of ZFC or of Peano arithmetic. It asserts that the certified derivation does not exclude it. To exclude it one must exhibit a derivation in the weaker system, and the certified term is not one.

What it leaves open: its own premise. The premise C of the arithmetic route is itself a universal checkable statement about Lean’s rules: it says of every finite list of formulas that the list is not a derivation of a contradiction by the rules. By Gödel’s second theorem the rules, if consistent, do not derive C. If the rules also derive no false statement about a finite computation, which S2 implies, they do not derive the negation of C, since the negation of C says that some finite list is a derivation of a contradiction, and that statement is then false. Under those conditions C is independent of Lean’s rules. The arithmetic route thus obtains the hypothesis from a premise that the system in which the derivation is written leaves undecided. Independence does not wait on a later finding to enter the certified result. It stands at the premise.

What no derivation excludes: a later finding of inconsistency. A derivation made inside a system cannot exclude that the system derives a contradiction, because a system that derived one would derive every sentence, that assurance included. Systems of logic proposed by careful authors have been found inconsistent after publication. Gottlob Frege (1848–1925) published his system in 1893, and Bertrand Russell (1872–1970) wrote to him in 1902 that it derives a contradiction [44]. Alonzo Church (1903–1995) published a system for the foundation of logic in 1932 and 1933, and Stephen Kleene (1909–1994) and J. Barkley Rosser (1907–1989) showed in 1935 that it is inconsistent [45]. Per Martin-Löf (born 1942) proposed in 1971 a theory of types in which the type of all types is itself a type, and Jean-Yves Girard (born 1947) showed in 1972 that it is inconsistent [46]. Lean’s rules descend from that line of type theories. They arrange the types in levels, so that Girard’s argument does not apply, and their consistency rests on the model in set theory with inaccessible cardinals (Section 12.2), that is, on the consistency of that set theory. If a contradiction were found in that set theory or in Lean’s rules, the certified term would show nothing about the hypothesis. This paper has found no contradiction and does not suggest that there is one (Section 11.1). It records that no check made inside the system can exclude one, and that the arithmetic route weighs exactly what that exclusion weighs.

Findings of independence on record. Independence of the hypothesis from named sets of premises weaker than the theory of \(\zeta\) is already on record in three forms, and the certified derivation is consistent with each.

Independence from the data that form the sentence. Take as premises what the statement of the hypothesis itself supplies: the series \(\sum 1/n^s\) where it converges, the requirement that the function agree with the series there, and the form of the sentence. A function that agrees with the series wherever it converges can have its zeros in the critical strip anywhere. There is one with no zero at all, of which the sentence is true, and for each point of the strip off the critical line there is one with a zero at that point, of which the sentence is false. Every system of rules sound for all such functions therefore derives neither the sentence nor its negation [52, 51]. The Lean files of [52] check this for the series as Mathlib defines it: every set of points of the strip is the set of zeros there of some function that agrees with the series where it converges, and every sound system of rules derives neither the sentence nor its negation. The truth value of the sentence enters with a further premise, the continuation: differentiability at every point other than \(1\), which by the identity theorem leaves one function on the plane without \(1\). The certified derivation does not contradict this finding, because it has the continuation among its premises. What the finding says of the certified derivation is where its content comes from. Every value of which the certified sentence speaks, in the strip, is supplied by the continuation and by nothing in the series; and in Lean the continuation is Mathlib’s construction of \(Z\), the construction of Section 3. The finding has a counterpart at the pole. Differentiability away from \(1\) fixes nothing at \(1\), so in the Lean files of [52] the clause that selects one function on the whole plane has two parts: differentiability at every point other than \(1\), and an equation that sets the value at \(1\) equal to Mathlib’s value there (the definition analyticAdmissible, whose documentation line says that the value at the pole is “assigned by a clause”). There too the value at the pole is supplied by a clause and not by analysis.

Independence of the law of the axis from the symmetry. The functional equation gives the zeros of the completed function a mirror symmetry about the line \(\operatorname{Re}s=\tfrac12\). The paper [51] proves that a base theory which fixes that symmetry, together with the operations on finite sets of roots, and leaves the placement of the roots free derives neither the statement that every root lies on the line nor its negation. It exhibits both models: one with the roots \(\tfrac12\pm2i\) and \(\tfrac12\pm5i\), and one with the roots \(\tfrac45\pm5i\) and \(\tfrac15\pm5i\). That theorem concerns the class of structures with the symmetry; the volume in which it first appeared states that it does not by itself prove independence for \(\zeta\) or independence in arithmetic [54]. Its consequence for any derivation of the hypothesis is the classical one that Harold Davenport (1907–1969) and Hans Heilbronn (1908–1975) established in 1936 with a function that satisfies a functional equation of the same kind and has zeros off the line [47]: a derivation of the law for \(\zeta\) draws on properties that separate \(\zeta\) from such functions, and cannot be had from the symmetry.

The barrier to certification inside one theory. The book [53] proves that a consistent theory containing arithmetic, whose derivations a program can list, does not derive the principle “every universal checkable sentence that this theory derives is true,” because that principle implies the theory’s consistency; a scheme that certifies results of this kind uniformly inside one fixed theory is therefore driven to a ladder of stronger theories. The premise C of the arithmetic route is that principle for Lean’s rules. For universal checkable sentences, “derivable, hence true” holds exactly when the rules are consistent: if they are consistent, the argument in the proof of Theorem 24 applies to each such sentence, since the rules derive every correct finite computation; and if they are not, they derive every sentence, the false ones included. The same book states of its own diagnosis that it does not show the hypothesis independent of Peano arithmetic or of ZFC, and none of the three findings is cited here as showing that.

Consequence. The certified derivation, with the checking granted, settles one question of derivability: Lean’s rules derive Lagarias’s sentence. It does not settle whether ordinary set theory or arithmetic derives it. Its premise of consistency is a sentence that the rules themselves leave undecided, and no check excludes a later finding against that premise. A finding that the hypothesis is independent of ZFC or of Peano arithmetic would be compatible with everything that was certified, and would itself establish the hypothesis. The certification’s sentence, that the proof of the Riemann hypothesis is correct, names no system, and so it says nothing on any of these points.

12.6 The proof that the checkers accept no false proof

The joint statement says that the checkers con-leche and con-ron have a formal proof, made relative to set theory, that they cannot accept a false proof, and that this answers the concern that Lean’s logic might be flawed [2]. Three points about that sentence can be read from the records, and a fourth follows from what such a proof is. First, the qualification that the proof is relative to set theory is the condition of Section 12.2: such a proof shows that the checkers accept no false proof if the set theory in which it is carried out derives no falsehood. It moves the question to the set theory. Second, the verification record lists the runs of both checkers and says nothing of a soundness proof or of which version of a checker it covers, and the certifiers’ notes give none [3, 4]. Third, the versions of con-leche and con-ron distributed with Lean 4.36.0 declined the exported proof, because they did not support one kind of inductive type that the proof uses; the versions that accepted it are later builds that do support it [3]. The records do not say whether the formal proof covers those later builds. Fourth, a proof that a checker accepts no false proof is a soundness proof: it shows, in a model built in set theory, that every statement the checker accepts is true in the model. In the model Lean’s symbols are interpreted by their definitions, because the type of a function admits no other interpretation (Section 5.4), so the proof gives that every accepted statement is true of \(d\), of Mathlib’s gamma function and of \(Z\). It answers the concern that Lean’s rules derive a contradiction. It does not bear on whether a statement written with riemannZeta is true of \(\zeta\), and the five statements of Proposition 18(a), accepted by the same checkers, are not true of \(\zeta\) by their names.

12.7 What the certification establishes about \(\zeta\)

Put together, the certified material and its records establish the following about the zeta function of Riemann. The first three items hold without any condition: they are read from the certified material itself, and no premise about Lean’s rules, about the checkers or about set theory enters them.

  1. (a) No certified sentence is about \(\zeta\). The certified sentence is written with a function that has a number where \(\zeta\) has its pole, and with a division that returns “0” at the denominator \(0\) (Proposition 1, Section 4).

  2. (b) The certified derivation depends on properties that the substitutes have and that \(\zeta\), \(\Gamma\) and division do not have. Every certified theorem is drawn from a statement that asserts a nonzero value at the pole of \(\zeta\), and descends through a lemma whose truth turns on the number there (Propositions 15 and 16); every certified theorem rests on the theorems that give \(\zeta\) a value at \(1\) and \(\Gamma\) a value at \(0\); and all five, with four fifths of the archive’s declarations, rest on the statement \(0^{-1}=0\) (Proposition 14, Section 8.6).

  3. (c) The certified derivation is therefore not by itself a proof of the Riemann hypothesis. Read as an argument about \(\zeta\), \(\Gamma\) and division, it has untrue steps. Read so that its steps are true, it is an argument about other functions, and an argument about other functions gives a statement about \(\zeta\) only under three conditions: the statement does not consult the value at the pole, the substitute agrees with \(\zeta\) at every other point, and what the rules derive is true (Proposition 17). The certified sentence meets the first two, by short arguments from theorems of Mathlib, made outside the certified material. The third is not derived. It is a step of the \(\omega\)-completion of the rules, and whoever takes the derivation as a proof assumes it (Proposition 31).

  4. (d) A bridge is necessary, and on each route the premises in which \(\zeta\) appears are held by people: the reading of Mathlib’s definitions, the identification of \(\zeta\) with the function that has the properties Mathlib proves of \(Z\), the fact that \(\zeta\) has no zero at its pole, and the published theorem of Robin and Lagarias.

  5. (e) The one argument that reaches the hypothesis without the readings at the pole is the arithmetic route, and it uses the derivation only through the fact of its acceptance (Proposition 25). It reduces the hypothesis to the consistency of Lean’s rules, a premise that is the general form of its conclusion (Proposition 26) and that the rules reach only by the \(\omega\)-rule (Proposition 31). That premise is equivalent to the consistency of a theory stronger than ZFC; ZFC cannot justify it even relative to its own consistency; no one has exhibited a weaker theory in which the derivation can be carried out; and an implication from a consistency statement to the hypothesis exists for every system, the system with the hypothesis as an axiom included (Proposition 30). The reduction weighs what the independent grounds for that consistency weigh, and what the checking weighs. Relative to ZFC it is the implication of Proposition 29, whose sponsor ZFC does not derive unless Lean’s rules are inconsistent.

  6. (f) The certified derivation leaves independence open. It shows nothing about derivability in ZFC or in arithmetic; its premise of consistency is a sentence the rules leave undecided; and no check excludes a later finding against that premise (Section 12.5).

  7. (g) Stated with its system, what the checks establish is that Lean’s rules derive a sentence about Mathlib’s function. Granted that the checkers ran correctly, and with the first four parts of the bridge, which are made outside the checked material from readings, classical theorems and theorems of Mathlib (Section 5.3), this gives that ZFC with \(k\) inaccessible cardinals derives the hypothesis. The universe levels of the term are reported, and from them the companion paper computes \(k=6\) for the standard model [55]; whether fewer cardinals, none, or arithmetic would do has not been examined (Proposition 2). The premise of the truth of the hypothesis is then the consistency of ZFC with six inaccessible cardinals, and every theory that derives it is stronger than ZFC with six. Relative to ZFC the certified material gives the hypothesis with the sponsor that Lean’s rules are consistent, which ZFC does not derive unless they are inconsistent (Proposition 29).

What was certified is therefore the following. Checkers accepted a term as a derivation, by Lean’s rules, of a sentence about substitutes for \(\zeta\), \(\Gamma\) and division, and of a sentence about whole numbers. The term is not by itself a proof of the Riemann hypothesis: it is not about \(\zeta\), and it depends on values that \(\zeta\) does not have. From its acceptance the hypothesis follows only with a premise that the certification does not supply and that no check can test, the consistency of the rules, together with a classical theorem proved outside Lean. That premise is assumed and not derived: it is a step of the \(\omega\)-completion of the rules. The certification’s sentence, that both the statement and the proof of the Riemann hypothesis are correct, names none of this. The statement certified is a statement about a substitute, and the term certified gives the hypothesis only under premises that the certification does not name.

The bound of this finding. Premises of the kinds named in items (d) to (f) stand under every theorem formalized in Lean, and a premise of consistency, for ZFC, stands under every theorem of set theory that is taken to be true of the whole numbers. The step of \(\omega\)-completion of Proposition 31 is a premise of this kind. Mathematical practice counts a derivation in such a system as a proof on the understanding that its sentences are about the objects they name. The finding does not single out the certified derivation as worse founded in its rules than other formal mathematics, and it does not say that the reduction of item (e) is without weight. It says what the certified object is, and where that understanding fails for it. Three things distinguish this case. The sentence certified is about a substitute, and the derivation uses the values in which the substitute differs from \(\zeta\). The theory is stronger than the one in which number theory is ordinarily carried out, and no reduction to a weaker one has been exhibited. And the records report no reading of the derivation by a person: for a published proof that people read, the argument about \(\zeta\) is in front of the reader, who can see what it uses, whereas here nothing but the premises holds the result.

13 The numeral in the sentence

The certified sentence quantifies over the \(s\) with riemannZeta s = 0. In Lean, the complex numeral \(0\) is the count of the list with no items, Nat.zero, carried into \(\mathbb C\) by the cast from the natural numbers. The author’s kernel-checked paper [48] proves, under the reading of numerals as counts: the count of the empty list stands for no item; the clause that it represents an item derives False in every classical counting notation; and, modelling derivations with the marks they carry, the derivations whose reading is met in no counting notation are exactly those that carry that count, while every one of them stays derivable. The certified sentence carries the mark in its defining clause, and the derivation carries it at every site of Section 8. Section 3.8 shows the same mark written, in Mathlib’s construction of \(\zeta\), for a vanishing value, for an infinite value and for the absence of a value. These results concern the reading of the sentence as a statement about counted things; they are independent of Theorems 23 and 24, which concern its classical reading.

14 What the certification claims and what its checks test

The joint statement certifies that “both the statement and the proof of the Riemann Hypothesis are correct” and expresses full confidence in the proof [2]. It lists four checks. (1) Mathlib’s RiemannHypothesis was vetted by experts in Lean and in number theory; the statement gives no account of the vetting, which concerns a sentence resting on 2,104 definitions (Section 12). (2) Dozens of people compiled the library and reproduced the same exported proof. (3) A file that isolates the statement and imports only Mathlib was compared with the proved theorem by two tools, and both confirmed that they match. (4) The exported proof was accepted by Lean’s kernel, by con-leche and con-ron, and by further independent checkers. The statement does not mention the value at \(s=1\), the clause \(s\neq1\), the conventions, or the axioms; the certifiers’ notes and the verification record do (Section 3.9).

Checks (2)–(4) test derivability and the identity of a sentence with Mathlib’s definition. Check (1) is a reading of the definition by people. The checks do not test:

The word “correct” in the certification covers S1. Applied to the statement, it covers the identity of the sentence with Mathlib’s definition and a reading of that definition by experts. Applied to the Riemann hypothesis, the statement about \(\zeta\), it is not true as written on either reading of the symbols (Proposition 1): on the first the proof depends on untrue statements, and on the second the statement certified is a sentence about another function. What the checks give is the acceptance of a term. The hypothesis follows from that acceptance only by the arguments of Theorems 23 and 24, whose premises of soundness and of consistency no check tests (Sections 11 and 12, Proposition 19).

15 What clauses at the poles would and would not change, and the test by changed values

Section 5 lists steps of the derivation that state something untrue of the actual object: Proposition 14 (the pole kept out of the zero set by the assigned number); Exhibits 2 (the assigned \(Z(1)\) at \(s=1\)), 3 (a gamma factor equal to “0” at its pole), 4 (the reciprocal of \(\Gamma_{\mathbb R}\) at \(s=0\) through \(\Gamma_{\mathbb R}(0)=\text{“0”}\)), 5 (the eighteen sums written over an index set with a term \(1/0\); read with \(1/0=\infty\), the sum over all integers of \(1/n^2\) is infinite), 6 (\(0/0\) read as \(0\)) and 7 (averages over infinitely many cosets).

For each of these steps the classical argument has, at the same point, a statement that is true of the actual object: that \(\zeta\)’s pole is not a zero, which in Lean requires the clause \(\rho\neq1\) in the definition of the zero set and in the statements that cover the point; the residue of \(\zeta\) at \(1\); the vanishing of \(1/\Gamma\) at the poles of \(\Gamma\); the same sums over the classical index sets; and, for two of the exhibits, a statement that rests on this paper’s reading alone, namely the coefficient of a move that leaves the range, taken as an operator coefficient, and the finite-index case of the averages.

What such clauses would and would not change. These classical statements are recorded here to show what an argument about \(\zeta\) does at each point. They are not properties of the certified derivation, and writing them into it would not make it an argument about \(\zeta\). Three things are to be kept apart.

First, a derivation with those statements in the place of the certified steps would be a different derivation. It has not been written, and nothing has checked it. The existence of such statements counts neither for the certified proof nor against it.

Second, such a derivation would still be a derivation about \(Z\) and about Lean’s division. A clause \(\rho\neq1\) in the definition of the zero set ends the use of the number that \(Z\) carries at \(1\). It does not change what the symbol names: the function is still Mathlib’s function from the complex numbers to the complex numbers, with its number at \(1\) and its value set by hand at \(0\), and every quotient in the derivation is still the function \(d\). A clause at ten declarations leaves untouched the four fifths of the archive’s declarations that rest on \(0^{-1}=0\) (Section 8.6).

Third, a statement about \(Z\) made with the point \(1\) set aside passes to \(\zeta\) only through the identification of \(Z\) with \(\zeta\) at the points other than \(1\), and that identification is the bridge of Section 12, made by people from theorems of Mathlib. The Lean file checks the form of this. For a function with no value at a point and a function with a value at every point, a statement about the second with that point set aside gives the same statement about the first when the two agree at every other point (guarded_transfer); without the agreement it does not, and the file gives an instance in which it fails (guarded_needs_identification, Appendix A). A derivation with every clause in place would therefore reach \(\zeta\) by the same sponsor as the certified one.

What the steps establish is that the certified derivation is not an argument about \(\zeta\) at those points. Clauses would not make it one. They would make it an argument about \(Z\) at the points other than \(1\), joined to \(\zeta\) by the same bridge.

What was read and what was not. The steps above are those found by reading. The classes read in full and the classes read by sample are stated in Section 8 and at the end of this section; steps of the same kind in the part not read are not excluded.

The test by changed values. The values at the poles can be changed and the archive rebuilt; every declaration that stops compiling depended on the specific value. For the value at \(s=1\) part of the outcome can be read from the dependency tables and from the lines cited in Section 5. Put “0” at \(s=1\) in place of the assigned number. In Mathlib three kinds of theorem become false: riemannZeta_one, which states the assigned number; riemannZeta_one_ne_zero and riemannZeta_ne_zero_of_one_le_re, which state that it is not “0”; and the theorems that the function minus its pole term has a complex derivative at \(1\) (differentiableAt_hurwitzZeta_sub_one_div, the theorem for the even part on which it rests, and the limit theorem tendsto_hurwitzZetaEven_sub_one_div_nhds_one derived from it), which hold at \(1\) because the assigned number is the limit. In the archive, the six declarations of Section 5 that use the nonvanishing theorem at \(s=1\) or cover that point fail as written, in their statement or at the cited step of their proof; poleData and lemmaL fail through the first of them; and the two declarations that use the derivative at \(1\) fail. The other six that cite the nonvanishing theorem apply it at points other than \(1\) and stand once the theorem carries the clause \(s\neq1\). The sentence RiemannHypothesis keeps its truth value (Proposition 11).

So, as far as the tables and the reading show, the derivation depends on the number at the pole at ten of the archive’s declarations. Removing the dependence takes three restatements: the clause \(\rho\neq1\) in the definitions of the zero set and of ZeroFree; the same clause in the statements of the other declarations that cover the point, and in zeroFreeBoundedHeight the use of the clause its proof already has at hand; and, for the two that use the derivative, a function given at \(1\) by the limit and not by the convention. Each restatement has a true classical counterpart. None has been carried out; a derivation that contained them would not be the certified one, and by the paragraphs above it would still be a derivation about \(Z\); and whether further declarations depend on the value through Mathlib theorems not read here is settled by the build and not by this reading.

For the other values a build is needed, and it has not been run here: give \(\Gamma\) the value \(1\) at \(0,-1,-2,\dots\); change the value written for an infinite order, for an infinite cardinality and for a sum over an infinite support. The change to \(\Gamma\) will first break Mathlib’s own proofs that \(\zeta\) has a derivative at the trivial zeros, which pass through \(\Gamma\)’s value at its poles; a reciprocal of \(\Gamma\) defined without that value has to be supplied before the archive can be tested. The division conventions cannot be varied this way, because \(0^{-1}=\text{“0”}\) is part of Mathlib’s definition of a field; their sites are covered by the census of Section 8.

What the census leaves. Every class of Section 8 has now been read in full or by a random sample. The classes read by sample carry a sampling bound and not a complete reading: for the zero-branch statements, a share below \(0.118\) at confidence \(95\%\). One class is outside the census: evaluations of \(0/0\) reached through algebra that holds for every value of \(0^{-1}\) and so cites no convention by name, of which Exhibit 6 is one. The lemma zero_div, which states \(0/x=0\) and is a convention only at \(x=0\), is cited by 2,423 declarations; those sites are settled by the build with changed values and not by reading.

16 Conclusion

The certified theorem is not about the zeta function, and the library it depends on derives \(x/0=0\). If Mathlib’s symbols are read as division, \(\Gamma\) and \(\zeta\), then the theorems \(x/0=0\), \(\Gamma(0)=0\) and “the zeta function at \(1\) equals \(-0.977\ldots\)” are untrue, and the certified proof depends on them. If the symbols are read so that those theorems are true, they name other functions, and the certified sentence is about a function that is not \(\zeta\). No function from the complex numbers to the complex numbers is \(\zeta\), because \(\zeta\) has no value at \(1\); so there is no third reading, and on neither is it true that the statement and the proof of the Riemann hypothesis were certified correct.

On the second reading, which is the certifiers’ own, the following remains. The certified theorem is a statement about a substitute for the zeta function: a function made by reading \(\zeta\)’s pole term \(1/(s-1)\) at \(s=1\) as “0,” so that it carries \((\gamma-\log4\pi)/2\) where \(\zeta\) has its pole, and by overriding at \(s=0\) the false zero its own formula produces under the same rule. The authors of the function, the library’s documentation and the certifiers’ notes record the value at \(s=1\) as an assigned one. The same rule writes the poles of \(\Gamma\) as “0,” the opposite of what they are, writes their reciprocals as “0” too, and produces the trivial zeros by passing an infinite value written as “0” through \(x/0=\text{“0.”}\) Applied to the classical formula \(\eta(s)/(1-2^{1-s})\), the rule produces false zeros at infinitely many points of the line \(\operatorname{Re}s=1\); whether a Lean zeta function satisfies the sentence depends on the formula it was built from.

The certified sentence is blind to the number at the pole and is decided at \(s=0\) by a value set by hand. The derivation is not blind to it. At the step that produces the absence of zeros, the set of zeros has no clause for the pole, the pole is outside the set because the assigned number is not \(0\), and the lemma that concludes the absence of zeros is false for the substitute that carries “0” at the pole, although that substitute satisfies the same certified sentence and is what Mathlib’s own formula gives when its two pole terms are written as one fraction. Every one of the five certified theorems descends through that lemma, along a single chain of declarations. The statements on that chain are written without exception up to the last step before the certified sentences: the statement from which the certified theorems are drawn, ZeroFreeAll, says of the zeta function, among the other \(L\)-functions, that its value at \(1\) is not \(0\). Of Mathlib’s function that is true. Read by the names of its symbols it is not true of \(\zeta\), because \(\zeta\) has no value at \(1\). Read as an encoding it says that \(1\) is not a zero of \(\zeta\), which is true, and the encoding is faithful because the number Mathlib writes at \(1\) is not \(0\); the derivation proves that from the number. A proof from the properties of \(\zeta\) uses the pole as a pole and never asks for a value at it; the certified proof asks for one and uses the number it is given. The same dependence on the assigned number occurs at ten declarations in all. Clauses that set the pole aside, written into the definition of the set of zeros and into the statements that cover the point, would end the use of that number. They would not make the derivation an argument about \(\zeta\): with every clause in place it would still be a derivation about Mathlib’s function and Lean’s division, joined to \(\zeta\) by an identification made by hand. The certified term does not contain the clauses, and no derivation that does has been written.

The derivation’s route passes through further statements true of the stand-ins and not true of \(\zeta\) and \(\Gamma\) at their poles by their names, and the census of its 881 declarations citing the division conventions, of 214 Mathlib constants, of 181 uses for integrals, sums and derivatives, and of 813 citations of the further conventions finds the conventions omitting terms that classical texts exclude, supplying values at poles and degenerate points, and carrying facts proved upstream and dropped from statements. Of the 805,751 declarations of the archive in the exported proof, 646,337, and all five certified theorems, rest directly or through other declarations on the statement \(0^{-1}=0\).

These findings hold without any condition. The certified sentence is not about \(\zeta\). The certified derivation depends, from the definition of its number system to the lemma through which every certified theorem descends, on properties that the substitutes have and that \(\zeta\), \(\Gamma\) and division do not have. It is therefore not by itself a proof of the Riemann hypothesis, which is a statement about \(\zeta\) with its pole. No premise about the consistency of Lean’s rules, about the checkers or about set theory alters what the symbols name. What premises can do is carry a true statement about the substitute over to \(\zeta\), and they do so under three conditions: the statement does not consult the value at the pole, the substitute agrees with \(\zeta\) at every other point, and what the rules derive is true. The certified sentence meets the first and Mathlib’s function meets the second; both follow by short arguments from theorems of Mathlib, made outside the checked material. The third is a premise about the rules.

Whatever joins the certified material to the hypothesis is a further argument, made outside the checked material. There are two. The analytic route ends at the sentence about the substitute and crosses to \(\zeta\) by a bridge argued outside the kernel, under the soundness of Lean’s rules in the reading where its division is a different function. The arithmetic route ends at Lagarias’s inequality, a sentence about whole numbers in which no convention fires, and crosses to \(\zeta\) by the published theorem of Robin and Lagarias, under the consistency of Lean’s rules. On neither route is a kernel-checked sentence a statement about \(\zeta\), and every premise in which \(\zeta\) itself appears is held by people: the reading of Mathlib’s definitions, the identification of \(\zeta\) with the function whose properties Mathlib proves, the fact that \(\zeta\) has no zero at its pole, the published theorem of Robin and Lagarias.

Two properties of the rules have been kept apart. The rules are not true of \(\zeta\) under the classical reading of their symbols: they derive, of the functions they hold in place of division, \(\Gamma\) and \(\zeta\), statements that are not true of those three at the poles. The rules have not been shown inconsistent, and nothing here suggests they are: each such statement is true of the stand-in, by a definition. Rules can be consistent and wrong about \(1/0\), and consistency does not make a derivation about the stand-ins a proof about \(\zeta\). What consistency gives is narrower. If the hypothesis were false, Lagarias’s inequality would fail at some whole number, by a finite computation in which no denominator is \(0\), and consistent rules could not derive that computation together with the inequality at every whole number. This implication holds, and it is not the derivation. Lean derives the inequality by computation below \(e^{74500}\) and, for every whole number above, from the sentence about the substitute and from no examination of a number. The premise of consistency is the same condition as “every sentence of this kind that the rules derive is true,” so the implication says that the sentence Lean derived is true if the sentences Lean derives are true. It takes from the seventeen million lines one fact, that the checkers accepted them. It would run unchanged for any accepted derivation, whatever that derivation said about \(\zeta\), and it runs with nothing derived at all for a system that has the hypothesis as an axiom. It reduces the hypothesis to the consistency of Lean’s rules. The rules, if consistent, do not derive the premise. They derive, one number at a time, that no number is the code of a derivation of a contradiction; the statement about all numbers at once is reached from these only by the \(\omega\)-rule, which has infinitely many premises and which no checker applies. The consistency of the rules is therefore assumed, by a step of their \(\omega\)-completion, wherever the certified derivation is taken to establish a truth. It is equivalent to the consistency of set theory with infinitely many inaccessible cardinals, which ordinary set theory does not derive unless Lean’s rules are inconsistent and cannot justify even relative to its own consistency, and every proof of it lies one rung higher on a ladder that, by the theorems of Gödel, Turing, Löb, Tarski and Feferman, no system climbs for itself.

The certified derivation also leaves independence open. With the checking granted, it settles that Lean’s rules derive one sentence about whole numbers. It does not settle whether ordinary set theory or arithmetic derives that sentence, and the universe levels reported for the term fix no set-theoretic bound by themselves; read through the standard model they require six inaccessible cardinals [55]. A later finding that the sentence is independent of those systems would contradict nothing that was certified; for a sentence of this kind such a finding would itself establish the hypothesis. The premise of consistency is a sentence that the rules leave undecided, and no check made inside a system excludes a later finding that the system is inconsistent, as has happened to systems of logic before.

Riemann stated the hypothesis for the function \(\xi\), in which the pole is taken in: \(\xi\) is defined at \(1\), and its value there, \(\tfrac12\), is the residue of \(\zeta\). His statement sets no point aside. The certified sentence excludes the point, and the certified proof puts \(-0.977\) there. Riemann’s product, transcribed factor by factor with Mathlib’s functions, is “0” at \(s=1\) under Lean’s rules, while the formula \(\tfrac12\bigl(s(s-1)\Lambda_0(s)+1\bigr)\) gives \(\tfrac12\) there; which formula represents \(\xi\) at the pole depends on how it is written. The certified material contains neither Riemann’s function nor his statement, and the equivalence that joins them is proved by people.

What was announced is a correct proof of the Riemann hypothesis. Taken by the names of its symbols, that requires that Lean’s rule \(x/0=\text{“0”}\) never contradict the properties of \(\zeta\), and the requirement fails: the kernel itself accepted the statements that refute it, they lie on the only route to the conclusion, and the derivation stops without them. The claim as announced therefore fails at its own premise, and this holds without any condition. What is left is the derivation read by its definitions, about a substitute, and a bridge of five parts between its last sentence and \(\zeta\). Three parts are readings and classical theorems that people make. One is machine-checked in its pieces, with the identification of \(\zeta\) made by its definition. The fifth, that what Lean derives is true of the functions it defines, is assumed.

Two supports are offered for the certified result, and the findings fix what each bears on. The first is the soundness of Lean’s rules, proved in set theory with inaccessible cardinals. That proof interprets every function as defined at every argument, so it interprets Lean’s symbols as the substitutes, and it gives that everything Lean derived is true of them. The second is the transfer argument, that Mathlib’s function agrees with \(\zeta\) away from \(1\). It is valid for the last sentence, and it applies equally to the substitute with “0” at \(1\), of which the main line of the derivation is false; what the derivation uses is the one fact by which Mathlib’s function encodes the pole, that its number at \(1\) is not “0,” proved from that number. Both bear on the last sentence and on the substitutes. Neither makes the derivation an argument about \(\zeta\): no operation with a value at every argument obeys the law \(z\cdot y=x\) that defines division at a zero denominator, whatever value it writes there; the rule \(1/0=0\) writes \(0\) there, which is not a quotient of \(1\) by \(0\); and the derivation uses the value that the rule puts at a zero denominator. Stated as mathematics states its results, with the system named, what the checks establish is that Lean’s rules derive Mathlib’s sentence, a sentence about Mathlib’s function. With correct checking, the model of those rules in set theory and the first four parts of the bridge, which are made outside the checked material, this gives that ZFC with \(k\) inaccessible cardinals derives the Riemann hypothesis. That statement needs no premise about consistency, and it shows what is missing: an examination of whether ordinary set theory or arithmetic suffices, and any reading of the term by a person. For the standard model of the term the number \(k\) is \(6\) [55], and the premise of the truth of the hypothesis is then the consistency of ZFC with six inaccessible cardinals, which every theory that derives it exceeds. Relative to ZFC the result is that the hypothesis holds if Lean’s rules are consistent, and ZFC does not derive that they are, unless they are not. The certification dropped the words “the system derives.” The statements on the main line that are untrue of \(\zeta\) by their names show why those words cannot be dropped by appeal to the kernel. Under the reading by names the rules derive statements that are not true, so acceptance is no warrant of truth by names. Under the reading by definitions the result is about a substitute, and it reaches \(\zeta\) by a translation whose last part is the premise that the rules derive only truths.

The certification states that both the statement and the proof of the Riemann hypothesis are correct. The statement certified is a sentence about a substitute for \(\zeta\). The term certified is a derivation about substitutes that depends on values \(\zeta\) does not have. This paper does not show the Riemann hypothesis false, and it does not show Lean’s rules inconsistent. It shows that what was certified is not by itself a proof of the Riemann hypothesis, and that the hypothesis follows from the acceptance of the certified term only under a premise of consistency that nothing certified establishes, that is assumed by a step of \(\omega\)-completion, that ordinary set theory does not derive unless Lean’s rules are inconsistent, and that the certification does not name.

A The Lean file

The file A_Certified_Theorem_about_a_Substitute_for_the_Zeta_Function_v15.lean imports no library and was checked with Lean 4.33.1, the version to which the archive is pinned. It defines the sentence form Sent of Proposition 11 for an arbitrary type of arguments, an arbitrary function and arbitrary marks for “0,” \(1\), the trivial zeros, the real part and \(\tfrac12\), and proves:

The file has forty-one theorems, and the log reports the axioms of each. Thirty-three depend on no axiom: all except patch_at, patch_off, sent_patch_one, sent_patch_refuted, zeroFree_false_with_zero_at_one, unguarded_turns_on_value_guarded_does_not, zeroFree_iff_guarded_and_value and not_sound_iff_exists. The first seven use the three axioms of Section 2 through the case split that defines the changed function, and the eighth through the argument by contradiction of classical logic. The file is written without Mathlib, so its theorems are about every function and every division with \(x/0=\text{“0”}\); that Mathlib’s division and Mathlib’s zeta function are instances is read from Mathlib’s definitions (Section 3) and is not checked by this file. The Supporting Information prints the file and the log of the check.

Data Availability

The executed Supporting Information notebook, its two label files, the Lean file and the log of its check accompany this paper as supplementary files. The archive, the libraries and the dependency tables that they read are public, and the paragraph on sources in the Introduction cites each at the commit or version used. The same files, with the audit toolkit built on this paper (a protocol, a program that runs its checks on the archive, Mathlib and the dependency tables, and two Lean files), are in the repository https://github.com/sphereofrealization/a-certified-theorem-about-a-substitute-for-the-zeta-function [56].

Conflicts of Interest

The author declares no conflicts of interest.

References