The Standard Set-Theoretic Model of the Certified Lean Derivation of the Riemann Hypothesis Requires Exactly Six Inaccessible Cardinals

Their Sources in the Libraries, Whether the Derivation Needs Them, the Consistency Premise One Rung Above, and Why the Hypothesis Remains Open

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

Companion papers:

Abstract

On 21 November 2026 a Lean derivation of the Riemann hypothesis was certified. Lean arranges its types in levels, and the standard reading of Lean in set theory, due to Benjamin Werner (1997) and Mario Carneiro (2019), reads each level as a set \(V_\kappa\) of the cumulative hierarchy of sets. This paper determines how many inaccessible cardinals that reading of the certified term requires, finds where each one comes from, and places the premise of truth on the ladder of theories that the cardinals form. A level of types requires an inaccessible cardinal when the derivation forms, at that level, products or sums over arbitrary families indexed by types of the same level (Theorems 15 and 16); a level without such constructions can be read by a strong limit cardinal of suitable cofinality, which ZFC supplies. In the dependency dataset of the certified term, such constructions occur at every level from Type 0 to Type 5 and at no higher level; the highest level the term reaches is Type 6 (Theorem 17). The model therefore requires exactly six inaccessible cardinals: it is built in set theory with six, and every theory that builds it proves that six exist (Theorem 18). The archive’s own declarations reach Type 2. The three levels above are demanded by library proofs. The chief one derives the rank of a product of finite modules through infinite-cardinal and ordinal arithmetic, and the bookkeeping of a tactic deep inside that proof reaches the top level. The others construct injective objects transfinitely and build the category of the abelian groups in Type 2. Each source has an established counterpart in mathematics that uses no universe. Set theory with \(k+1\) inaccessible cardinals proves that every arithmetic sentence derivable with \(k\) of them is true, which is the \(\omega\)-completion step of the rung below; the converse fails (Theorems 10 and 12). The truth of the hypothesis on the strength of the certified term is sponsored by the consistency of set theory with six inaccessible cardinals, a premise at the seventh rung (Theorem 19). No general procedure removes universes from Lean derivations (Theorem 21), and a derivation of the hypothesis in a weaker theory would move the premise down the ladder and leave it one rung above that theory (Proposition 23). The Meta Theory of Riemann’s Hypothesis, by the author and R. J. Buchanan, proves that every operational form of the hypothesis is a ladder of stages, that any proof of the hypothesis derives a statement about all of its stages at once, and that a consistent theory does not derive its own reflection principle, the statement that every universal arithmetic sentence it derives is true, so that a uniform certification of such statements drives the certifier onto a ladder of stronger theories. On this barrier hierarchy the book bases its diagnosis that the hypothesis is formally irresolvable in a precise structural sense: the exact witness package of the hypothesis forces, uniformly, none of the labels true, false, provable, refutable or independent. The certified derivation is an instance of that ladder. It derives its statement about all stages on the sixth rung, and the certification of its truth stands on the seventh. A refutation of the hypothesis would be a whole number at which a computation fails, valid in every theory and resting on nothing besides the computation; an affirmation has no such finite certificate, since whatever a finite check establishes, the passage from it to the hypothesis is a universal sentence of the hypothesis’s own kind (Proposition 25). Quantum algorithms with computable settings compute exactly what Turing machines compute, axioms about transfinite numbers enlarge what can be derived without changing any computation, and deciding the hypothesis takes one infinite step whose answer “true” admits no finite check (Propositions 26, 27 and 28). The paper therefore holds that the hypothesis remains open: the one settlement that needs no premise, a refutation, has not occurred, and the certified affirmation rests on a consistency premise of the seventh rung and on a model sponsor not yet proved for Lean 4. That premise does not stand in the same place for all of mathematics. Every derivation of a universal sentence has a consistency premise one rung above its theory, but Fermat’s Last Theorem, a sentence of the same form, is derived in finite-order arithmetic, below ZFC, with no consistency statement or reflection principle among its axioms, and ZFC derives the premise of its truth, while ZFC does not derive the premise of the certified derivation (Proposition 32). The universes of Fermat’s published proof were expected to be replaceable by sets that ZFC supplies because a refereed proof showed how they were used, and the replacement has been carried out; for the certified derivation the sources of its cardinals are traced, no replacement has been carried out, and two of its sponsors are open, so nothing places the hypothesis on a lower rung. The certified derivation moves the difficulty of the hypothesis and does not settle it. Under its sponsors it turns every whole number at which the computation of the hypothesis would fail into a derivation of \(0=1\) from set theory with six inaccessible cardinals, so that the universal quantifier of the hypothesis reappears, in the same logical form, in the consistency of that theory, and the hypothesis follows from three premises, none of them about \(\zeta\): that consistency, the soundness of the rules of Lean 4 for their model, and the agreement of Mathlib’s sentence with Riemann’s hypothesis; the kernel’s check settles none of them (Proposition 35). The reduction exchanges a sentence whose derivability in ZFC is open for one that ZFC does not derive, and no theory whose consistency ZFC derives derives the premise, so that every certification of it passes it to a system that ZFC does not vouch for (Theorem 36). Neither the limit of all the finite rungs nor Turing’s progression, whose notation for the closing stage cannot be recognized without knowing the answer, closes the ladder; removing the universes, the route downward, would require a reading of Lean’s levels other than the standard model, with a bound on every family that the term’s products and sums receive, rebuilt and re-measured terms, and universe-free tools inside the archive, which nothing in the certified term shows to exist, and its end point is the premise one rung above ZFC (Section 10.8). The least rung at which the hypothesis is derivable is unknown, its derivability in ZFC and in Peano arithmetic is open, and a proof of its independence from a theory would itself be a derivation of it in a stronger theory, with its premise of truth one rung higher (Proposition 29); the problem is unresolved.

Keywords: Riemann hypothesis; Lean proof assistant; Mathlib; universe levels; inaccessible cardinals; Grothendieck universes; set-theoretic model of type theory; consistency strength; reflection principles; ω-rule; laddered non-closure; quantum computation; hypercomputation; independence; Fermat's Last Theorem; finite-order arithmetic; relative consistency; Turing progressions; open problems

1 What this paper establishes

The Lean archive released by Levent Alpöge on 20 November 2026 contains, in its file src/Main.lean, five theorems; the first, riemannHypothesis, is Mathlib’s statement of the Riemann hypothesis. On 21 November 2026 the Lean Focused Research Organization and the Mathlib Initiative certified the statement and the proof [1, 2]. Andrew Sutherland exported the proof terms of the five theorems from a build made with Lean version 4.33.1 into a file of 61,570,595,788 bytes [3]. This paper calls that exported term the certified term. James Shore traced every constant on which the five proof terms rest, and published the results as a dataset, version 0.2.1 [4]. The set of those constants is called here the cone: it holds 1,484,729 kernel constants, of which 1,270,184 belong to the archive, 204,488 to Mathlib, 9,796 to Lean’s core library, 258 to the library Batteries and 3 to the library Aesop.

Lean is a system of rules for deriving statements, in the line of the calculus of inductive constructions, and its types are arranged in levels called universes [6, 8]. The question this paper answers is how much set theory the certified term uses, read through the standard model of Lean in set theory, and what follows from that for the passage from “Lean derived the sentence” to “the sentence is true.” The author’s paper [33] states the certified result with its system: under its sponsors, set theory with \(k\) inaccessible cardinals derives the hypothesis, with \(k\) not reported in the records. Here \(k\) is determined, its sources are located, and its place on the ladder of consistency statements is proved.

The ladder in the Meta Theory of Riemann’s Hypothesis. The phenomenon measured in this paper is established for the Riemann hypothesis in The Meta Theory of Riemann’s Hypothesis by the author and R. J. Buchanan [34], and it is part of the book’s account of why the hypothesis is open. In the book’s part on the logical stratification of RH-type propositions, the hypothesis is proved equivalent to each of several all-stage statements, statements that a decidable condition holds at every stage \(n=0,1,2,\dots\) of a search. One of them says that for every stage \(n\) there is a finite certificate for the \(n\)-th stage window (Theorem 21.2 of that part). The positive side of the hypothesis thus needs one certificate for every stage, while its negative side, if the hypothesis fails, has a single finite witness (the book’s introduction). Every operational form of the hypothesis is therefore a ladder of stages, and an argument that reaches finitely many stages settles the hypothesis only together with a further theorem that closes the ladder (Remark 21.3). No finite initial part of such a ladder implies the hypothesis (Proposition 21.28). No fixed finite list of linear measurements certifies it either, because a function with the symmetry of the completed zeta function and the same measurements can have a zero off the critical line (Theorem 21.19(ii) of that part, and Theorem 3.4 of the part on analytic incompleteness and ordinal closure depth). Any proof of the hypothesis derives at least one of its selected closure channels, the statements that the decidable condition of a selected ladder holds at all of its stages at once (Definition 21.25 and Theorems 21.26 and 21.31 of the part on logical stratification). For a decidable condition, Robinson arithmetic \(\mathsf{Q}\) derives that the all-stage statement is equivalent to the statement that every finite initial part holds. The passage from the derivations of the finite initial parts, one for each length, to the all-stage statement is the \(\omega\)-rule, the rule that infers “for every \(x\), \(\varphi(x)\)” from the infinitely many premises \(\varphi(0),\varphi(1),\varphi(2),\dots\) (Proposition 4.4 and Theorem 4.6 of the part on bridge necessity and the barrier hierarchy). That passage is the genuinely infinitary step.

A consistent theory \(T\) that contains Peano arithmetic does not derive its own reflection principle for \(\Pi_1\) sentences, the statement that every sentence of the form “for every \(n\), a decidable condition holds of \(n\)” that \(T\) derives is true. A scheme that certifies all-stage claims uniformly inside a fixed theory is therefore driven onto a new ladder of stronger meta-theories (Theorem 21.17 and Remark 21.18 of the part on logical stratification, and Theorem 6.14, the internal certification collapse, of the part on bridge necessity). A uniform bridge broad enough to settle every coded instance of this kind would make a fixed consistent theory derive every true \(\Pi_1\) sentence, its own consistency among them, which Gödel’s second theorem excludes (Theorem 21.55 of the part on logical stratification). The \(\omega\)-closure of a \(\Pi_1\) sentence is the semantic external completion obtained once its truth is fixed; it is not a finitary bridge (Theorem 21.59 and Remark 21.60).

In the book’s part on a truncated quasiconformal energy for the completed zeta function, the Turing progression is the sequence of theories that starts from a theory \(T_0\) and passes from each theory \(T_n\) to \(T_{n+1}=T_n+\mathrm{Con}(T_n)\), the theory \(T_n\) with the statement of its own consistency added. No stage \(T_N\) of it derives the reflection principles of all the stages \(T_n\), so every attempt to prove a universal soundness statement generates an unbounded ladder of strictly stronger assumptions (Definition 21.3, Theorem 21.4 and Remark 21.5 of that part). The trichotomy theorem of that part, named for resolution, distortion and reflection (Theorem 22.5), shows under its explicit bridge hypotheses that an argument for the hypothesis which keeps its finite resolution fixed, keeps the distortion of its quasiconformal maps bounded, and certifies itself uniformly in one fixed theory gives way in at least one of the three: its resolution grows, its distortion grows, or the strength of its meta-theory grows. The third quantity, the strength of the theory in which an argument is certified, is what this paper measures for the certified term. The book’s parts on analytic incompleteness measure the analytic ladders by an ordinal closure depth: unbounded refinement along one axis has depth \(\omega\), and two or three independent unbounded axes have depth at least \(\omega^2\) or \(\omega^3\) (Section 6 of the part beginning on page 888).

On these theorems the book bases its principal result, that the hypothesis is formally irresolvable in a precise structural sense. For every consistent recursively axiomatizable theory \(T\) that contains \(\mathsf{Q}\), the exact witness package of the hypothesis (its decidable predicates for a finite witness of failure and for the certificates of each stage), with every consequence common to all exact witness packages admitted, forces uniformly none of the labels true, false, provable in \(T\), refutable in \(T\), unprovable in \(T\), unrefutable in \(T\) and independent of \(T\) (the book’s introduction, and Theorem 12.18 of its part on selected witness fibres and uniform logical nullity). The book does not claim to prove the hypothesis, to refute it, or to prove that a chosen arithmetic form of it is independent of a particular theory (its introduction, and Remark 21.20 of the part on logical stratification). Its diagnosis of why the hypothesis is open is that every route to a terminal settlement meets one of these barriers. A route that reaches no selected closure channel is nonterminal; a route that claims a broad universal bridge would force completeness and is impossible; the \(\omega\)-rule is semantic saturation and supplies no finitary bridge. The ladder is therefore not a contingent feature of present ignorance: at the generic and uniform level it is protected by impossibility theorems (Corollary 21.40 and Remarks 21.41 and 21.63 of the part on logical stratification). A bridge that resolves the hypothesis, if one exists, is singular to the hypothesis’s own selected ladder and does not extend to a broad universal closure principle (Remark 21.62). The recurring false hopes of work on the hypothesis come from mistaking progress on a rung of the ladder for the closure of the ladder itself (Remark 21.21).

The certification of 21 November 2026 establishes that Lean’s kernel accepts a derivation of the hypothesis, and the records do not report the theory in which that derivation is read. In the book’s terms the derivation, under its sponsors, derives a selected closure channel inside one fixed theory, and the uniform certification of that theory’s all-stage derivations lies above the theory. This paper names the theory and measures both rungs for the certified term: its selected closure channel is derived on the sixth rung of the ladder of set theories with inaccessible cardinals, and the certification of its truth stands on the seventh.

The results are these.

  1. (1) A level requires an inaccessible cardinal when it carries a full former (Definition 14, Theorems 15 and 16). A full former is a construction that forms, at some level, the product or the sum of an arbitrary family of types of that level indexed by an arbitrary type of that level. Consequence: the levels carrying full formers can be read off a list of constants and their levels, and each of them costs one inaccessible cardinal; a level that carries none, as the top level of the certified term, is read by a strong limit cardinal of suitable cofinality, which ZFC supplies (Theorem 18).

  2. (2) The certified term carries full formers at the six levels Type 0 to Type 5 and at no other level; its highest level is Type 6 (Theorem 17). The witnesses are the dependent sums Sigma and PSigma, the principle of function extensionality funext, and the recursors of lists and options of Lean’s core library. Every one of them is reached from riemannHypothesis alone.

  3. (3) The standard model of the certified term requires exactly six inaccessible cardinals (Theorem 18). It is built in ZFC with six inaccessible cardinals, under the sponsor that Carneiro’s soundness argument covers the rules of Lean 4 that the cone uses. Every theory that builds it proves that six inaccessible cardinals exist, so ZFC with five, if consistent, does not build it. Consequence: the number \(k\) is \(6\).

  4. (4) The six come from identified places (Section 6). The archive’s own declarations reach Type 2, through its categories of étale sheaves. Levels 4 to 6 are demanded only by library proofs. At level 6, in the dataset’s tree of first discoveries, the demand comes from one chain: a lemma on the rank of a product of finite modules is proved by way of infinite cardinals, ordinals, Zorn’s lemma and the tactic ac_rfl, whose internal lists bring the core recursors to level 6 and the encoding of recursion to level 7. At levels 4 and 5 it comes from that chain, from the transfinite construction of injective objects, and from the abelian category of the groups in Type 2. Each source has a counterpart in mathematics that uses no universe (Table 8).

  5. (5) An inaccessible cardinal contains the \(\omega\)-completion step of the rung below it (Theorems 10 and 12). ZFC with \(k+1\) inaccessible cardinals proves that every arithmetic sentence derivable in ZFC with \(k\) of them is true. Adding that statement to ZFC with \(k\) inaccessible cardinals does not yield the \((k+1)\)-th. Consequence: the certified term, read in set theory, stands on six rungs taken as axioms in this strong form.

  6. (6) The premise of truth lies at the seventh rung (Theorem 19). The Riemann hypothesis is equivalent to a sentence of the form “for every whole number \(n\), a computation checks a property of \(n\).” For such a sentence, the consistency of a theory that derives it suffices for its truth. The truth of the hypothesis on the strength of the certified term is therefore sponsored by the consistency of ZFC with six inaccessible cardinals. ZFC with seven proves that consistency, and ZFC with six, if consistent, does not.

  7. (7) Whether the derivation needs its six cardinals is a property of the derivation and of the hypothesis, not of the form of the conclusion (Theorem 21, Propositions 22 and 23). Lean derives the consistency of ZFC, which ZFC does not derive, so no general procedure removes universes. For the chain that reaches the top level, the statement used has a proof at the level of the modules, given in full. A derivation of the hypothesis in a weaker theory \(T\) would replace the premise by the consistency of \(T\), again one rung above \(T\).

  8. (8) The hypothesis remains open (Section 10). A refutation would be a whole number at which a computation fails; it would hold in every theory and rest on nothing besides the computation. An affirmation has no such finite certificate: whatever a finite check establishes, the passage from it to the hypothesis is a universal sentence of the hypothesis’s own kind (Proposition 25). Quantum algorithms with computable settings compute exactly what Turing machines compute (Proposition 26); axioms about transfinite numbers enlarge what can be derived and change no computation (Proposition 27); deciding the hypothesis takes one infinite step, and the answer “true” from that step admits no finite check (Proposition 28). The least rung at which the hypothesis is derivable is unknown, its derivability in ZFC and in Peano arithmetic is open, and a proof of its independence from a theory would itself be a derivation of it in a stronger theory (Proposition 29). Consequence: the one settlement that needs no premise, a refutation, has not occurred, and the certified affirmation rests on a consistency premise of the seventh rung and on a model sponsor not yet proved for Lean 4; the problem is unresolved.

  9. (9) Fermat’s Last Theorem stands on the bottom rung (Section 10.6, Propositions 32 and 33). Fermat’s statement is a \(\Pi_1\) sentence of the same form as the hypothesis. The argument of Frey, Serre, Ribet, Wiles, and Taylor and Wiles carries every hypothetical solution, whatever its size, to the space of cusp forms of weight \(2\) and level \(2\), whose dimension is \(0\), and reaches its conclusion about all exponents within a finite derivation. McLarty’s foundation of Grothendieck’s tools puts that derivation in finite-order arithmetic, whose consistency \(\mathsf{ZFC}\) derives, and no consistency statement or reflection principle is among its axioms. \(\mathsf{ZFC}\) does not derive the premise of the certified derivation, and some true \(\Pi_1\) sentences lie on no rung reached in finitely many steps. The universes of Fermat’s published proof were replaced on the strength of a proof that had been refereed and read; for the certified derivation, Section 9 traces where its cardinals enter, no replacement has been carried out, and two of its sponsors are open, so nothing places the hypothesis on a lower rung. Consequence: a consistency premise one rung above its theory is shared by every derivation of a universal sentence, and its place is not; the observation that the premise applies to all of mathematics does not answer the measurement of where a particular derivation’s premise lies.

  10. (10) The certified derivation moves the difficulty of the hypothesis out of number theory and does not close it (Sections 10.7 and 10.8; Proposition 35, Theorem 36). Under its sponsors, the certified derivation turns every whole number at which the computation \(\theta\) of the hypothesis fails into a derivation of \(0=1\) from \(\mathsf{ZFC}_6\), by a computation that Peano arithmetic verifies. The universal quantifier of the hypothesis is therefore not discharged: it reappears, in the same logical form, in \(\mathrm{Con}(\mathsf{ZFC}_6)\). With the model and bridge sponsors, the hypothesis rests on three premises, about large cardinals, about the rules of a proof assistant and about definitions, and the kernel’s check settles none of them (Table 11). \(\mathsf{ZFC}\) does not derive the consistency premise, while whether it derives the hypothesis is open; and no theory whose consistency \(\mathsf{ZFC}\) derives derives the premise, so that every certification of it, on any rung, in Lean or in any other system, passes it to a system that \(\mathsf{ZFC}\) does not vouch for. Neither the limit of all the finite rungs nor Turing’s progression, whose notation for the closing stage is recognized only by knowing the answer, closes the ladder. Removing the universes would require an argument specific to the term, a reading of Lean’s levels other than the standard model with a bound on every family that its full formers receive, rebuilt terms measured again, and universe-free tools inside the archive; the one precedent took fifteen and twenty-five years on a proof that people had read, and the end point is a premise one rung above \(\mathsf{ZFC}\). Consequence: the certified affirmation cannot be completed, by further checking or by further rungs, into a proof that stands where Fermat’s Last Theorem stands; the difficulty of the hypothesis has been relocated, and the problem is unresolved.

The paper uses the word sponsor for a hypothesis under which a theorem is stated. Section 2 defines every term used. Section 3 proves the facts about the ladder of inaccessible cardinals. Section 4 defines the standard model and proves result (1). Section 5 gives the measurements and proves (2) and (3). Section 6 locates the sources. Sections 7 and 8 prove (6) and (5). Section 9 proves (7). Section 10 proves (8), (9) and (10) and states the position of the paper. The Supporting Information is a Jupyter notebook that recomputes every count and table from the dataset. Sections 3, 7, 8, 9 and 10 state how their results stand to the theorems of [34].

2 Terms

Sets and ZFC. Set theory in the form of Ernst Zermelo (1871–1953) of 1908 and Abraham Fraenkel (1891–1965) of 1922, with the axiom of choice that Zermelo stated in 1904, is written \(\mathsf{ZFC}\). Its objects are sets, and its one relation is membership, written \(x\in y\). The whole numbers \(0,1,2,\dots\) are the finite ordinals of John von Neumann (1903–1957): \(0=\emptyset\), \(1=\{0\}\), \(2=\{0,1\}\), and so on. Their set is written \(\omega\). For a set \(X\), the set of all its subsets is its power set \(\mathcal{P}(X)\).

Cardinals. Two sets have the same cardinal, or size, when a one-to-one correspondence between them exists. With the axiom of choice, every set \(X\) has as its cardinal \(|X|\) the least ordinal in one-to-one correspondence with it. Cardinals are compared by size. \(\aleph_0=|\omega|\) is the least infinite cardinal, and \(2^\mu\) denotes \(|\mathcal{P}(X)|\) for a set \(X\) with \(|X|=\mu\). Georg Cantor (1845–1918) proved in 1891 that \(2^\mu>\mu\) for every cardinal \(\mu\).

Definition 1 (strong limit, cofinality, regular, inaccessible). Let \(\lambda\) be an infinite cardinal.

  1. (a) \(\lambda\) is a strong limit when \(2^\mu<\lambda\) for every cardinal \(\mu<\lambda\). Example: write \(\beth_0=\aleph_0\) and \(\beth_{n+1}=2^{\beth_n}\), and let \(\beth_\omega\) be the least cardinal above all \(\beth_n\); then \(\beth_\omega\) is a strong limit, because every \(\mu<\beth_\omega\) is below some \(\beth_n\), and then \(2^\mu\le\beth_{n+1}<\beth_\omega\). The cardinal \(\aleph_1\), the least uncountable one, is not a strong limit, because \(2^{\aleph_0}\ge\aleph_1\). For every ordinal \(\alpha\) the same construction continued through \(\alpha\) gives \(\beth_\alpha\), and \(\beth_\delta\) is a strong limit for every limit ordinal \(\delta\).

  2. (b) The cofinality \(\mathrm{cf}(\lambda)\) is the least cardinal \(\mu\) for which there is a function from \(\mu\) to \(\lambda\) whose values are not bounded by any ordinal below \(\lambda\). Example: \(\mathrm{cf}(\beth_\omega)=\aleph_0\), by the function \(n\mapsto\beth_n\).

  3. (c) \(\lambda\) is regular when \(\mathrm{cf}(\lambda)=\lambda\). Example: \(\aleph_0\) and \(\aleph_1\) are regular; \(\beth_\omega\) is not.

  4. (d) \(\lambda\) is inaccessible when it is uncountable, regular and a strong limit. (These are the cardinals called strongly inaccessible.)

Felix Hausdorff (1868–1942) studied regular limit cardinals in 1908 [17]. Wacław Sierpiński (1882–1969) and Alfred Tarski (1901–1983) introduced the strong form in 1930 [16], and Zermelo showed in the same year that the sets below such a cardinal form a model of his axioms [15]. In words: an inaccessible cardinal is a size that the operations of set theory cannot reach from below. Forming power sets of smaller sets stays below it (strong limit). Collecting fewer than \(\lambda\) sizes each below \(\lambda\) also stays below it (regularity).

Definition 2 (the cumulative hierarchy and rank). For each ordinal \(\alpha\) the set \(V_\alpha\) is defined by \(V_0=\emptyset\), \(V_{\alpha+1}=\mathcal{P}(V_\alpha)\), and \(V_\delta=\bigcup_{\alpha<\delta}V_\alpha\) for every limit ordinal \(\delta\). Every set belongs to some \(V_\alpha\), by the axiom of foundation of \(\mathsf{ZFC}\). The rank of a set \(x\), written \(\mathrm{rank}(x)\), is the least \(\alpha\) with \(x\subseteq V_\alpha\). Each \(V_\alpha\) is transitive: every member of a member of \(V_\alpha\) is a member of \(V_\alpha\). Example: \(V_1=\{\emptyset\}\), \(V_2=\{\emptyset,\{\emptyset\}\}\); the set \(\omega\) has rank \(\omega\) and belongs to \(V_{\omega+1}\).

Definition 3 (Grothendieck universe). A set \(U\) is a Grothendieck universe when (i) every member of a member of \(U\) is a member of \(U\); (ii) if \(x,y\in U\) then \(\{x,y\}\in U\); (iii) if \(x\in U\) then \(\mathcal{P}(x)\in U\); (iv) if \(I\in U\) and \(f\) is a function from \(I\) to \(U\), then \(\bigcup_{i\in I}f(i)\in U\).

Alexander Grothendieck (1928–2014) introduced universes in the seminars SGA 1 (1960–1961) and SGA 4 (1963–1964); the appendix on universes in SGA 4, Exposé I, is signed by N. Bourbaki [18]. Their purpose was to treat collections such as “all abelian groups” as sets, by taking the groups that are members of a fixed universe. Theorem 7 below shows that a universe containing \(\omega\) is the same thing as \(V_\kappa\) for an inaccessible cardinal \(\kappa\). So the existence of a universe containing \(\omega\) is the existence of an inaccessible cardinal.

Definition 4 (the ladder of theories). For each whole number \(k\), \(\mathsf{ZFC}_k\) is \(\mathsf{ZFC}\) together with the axiom “there are inaccessible cardinals \(\kappa_1<\kappa_2<\dots<\kappa_k\).” \(\mathsf{ZFC}_0\) is \(\mathsf{ZFC}\). The theory \(\mathsf{ZFC}_k\) is called the rung \(k\). The theory \(\mathsf{ZFC}_\infty\) is \(\mathsf{ZFC}\) together with the axioms of every rung: for each whole number \(k\), the axiom “there are \(k\) inaccessible cardinals.” Lorenzo Bresolin and Marcello Mamino use the name \(\mathsf{ZFC}_\infty\) for the set theory with infinitely many inaccessible cardinals that is equiconsistent with Lean [10]; their translation codes \(\mathsf{ZFC}\) with \(n\) inaccessible cardinals into the type theory with \(n+2\) universes, one \(n\) at a time, and so concerns this theory. The single axiom that infinitely many inaccessible cardinals exist gives a stronger theory: with such cardinals \(\kappa_1<\kappa_2<\cdots\), each set \(V_{\kappa_{k+1}}\) satisfies \(\mathsf{ZFC}_k\), so every finite part of \(\mathsf{ZFC}_\infty\) has a model, and that theory derives \(\mathrm{Con}(\mathsf{ZFC}_\infty)\).

Formulas, derivations and codes. An arithmetic formula is built from the symbols \(0\) (zero), \(S\) (the successor \(n\mapsto n+1\)), \(+\), \(\cdot\), \(=\) and \(<\), the connectives “not,” “and,” “or,” “implies,” and quantifiers “for every whole number” and “for some whole number.” The numeral \(\overline{n}\) is the term \(S(S(\cdots S(0)\cdots))\) with \(n\) copies of \(S\). A formula is bounded when each of its quantifiers has the form “for every \(x<t\)” or “for some \(x<t\)” with \(t\) a term. A \(\Pi_1\) sentence has the form “for every \(x\), \(\theta(x)\)” with \(\theta\) bounded; a \(\Sigma_1\) sentence has the form “for some \(x\), \(\theta(x)\)” with \(\theta\) bounded. A bounded formula with numerals in place of its free variables is decided by a finite computation. So a \(\Pi_1\) sentence says that a computation succeeds at every whole number. The author’s earlier papers call such sentences universal and checkable [33]. Kurt Gödel (1906–1978) showed in 1931 how to give every formula and every finite list of formulas a number, its code, written \(\ulcorner\varphi\urcorner\) for the formula \(\varphi\) [25]. For a theory \(T\) whose axioms are recognized by a computation, “\(y\) is the code of a formula derivable from \(T\)” is then a \(\Sigma_1\) formula \(\mathrm{Prov}_T(y)\). Its content is “some whole number is the code of a derivation from \(T\) of the formula coded by \(y\).”

Definition 5 (consistency and reflection). Let \(T\) be a theory whose axioms are recognized by a computation.

  1. (a) \(\mathrm{Con}(T)\) is the sentence “not \(\mathrm{Prov}_T(\ulcorner 0=1\urcorner)\)”: no derivation from \(T\) ends in \(0=1\). It is a \(\Pi_1\) sentence. \(T\) is consistent when \(\mathrm{Con}(T)\) is true.

  2. (b) The uniform reflection principle \(\mathrm{RFN}(T)\) is the collection of the sentences \[\text{for every whole number } n:\ \ \mathrm{Prov}_T(\ulcorner\varphi(\overline{n})\urcorner)\ \text{implies}\ \varphi(n),\] one for each arithmetic formula \(\varphi(x)\) with one free variable \(x\). In words: whatever \(T\) derives about a particular number is true of that number.

Inside set theory an arithmetic formula is read with its variables ranging over \(\omega\) and with \(+\) and \(\cdot\) the functions on \(\omega\) defined by the usual recursion equations. \(\mathsf{ZFC}\) defines, by recursion on codes, the arithmetic satisfaction relation \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\), “the arithmetic formula with code \(\ulcorner\varphi\urcorner\) is true of \(n\).” For each fixed \(\varphi\), \(\mathsf{ZFC}\) proves that \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\) holds exactly when \(\varphi(n)\) does. This is the condition on truth stated by Tarski in 1933 [27].

Definition 6 (the \(\omega\)-rule and the \(\omega\)-completion, as in [33]). The \(\omega\)-rule passes from the statements \(P(0),P(1),P(2),\dots\), one for each whole number, to “for every whole number \(n\), \(P(n)\).” The \(\omega\)-completion of a system of rules is the system with the \(\omega\)-rule added. The principle \(\mathrm{RFN}(T)\) is the \(\omega\)-rule for \(T\) stated as a single statement of truth: if \(T\) derives each instance, every instance holds. In this form uniform reflection has served as the formalized \(\omega\)-rule since the work of Solomon Feferman (1928–2016) of 1962 on progressions of theories [30].

Lean’s levels. Lean writes Sort 0, also written Prop, for the level of propositions. It writes Sort (n+1), also written Type n, for the level \(n+1\) of types. The type \(\mathbb N\) of whole numbers and the type \(\mathbb R\) of real numbers are in Type 0, which is Sort 1. The type of all groups whose underlying type is in Type 0 is in Type 1, which is Sort 2; and so on. Each level is itself a type of the next: Sort n has type Sort (n+1). A constant can be stated with universe parameters \(u,v,\dots\) and used at many levels. Each use fixes the parameters to whole numbers, and that fixing is an instantiation, written here with the numbers in brackets. Example: List.rec[6,5] is the recursor of lists with its first parameter at \(6\) and its second at \(5\). Lean’s kernel checks a constant with parameters once, with the parameters as symbols [4]. The level of a type is the \(n\) of the Sort n it belongs to; “level \(n\)” always means Sort n in this paper, so Type u is level \(u+1\). The number \(u\) in Type u, or in an instantiation such as Cardinal[u], is a universe parameter, and “one universe above” means one step up in it.

Sponsors. Three hypotheses recur. They are named once here.

Sponsor A (checking). The term that Lean’s kernel and the independent checkers accepted is a derivation by Lean’s rules of the sentences stated in src/Main.lean [33] (there called S1).

Sponsor B (model). Carneiro’s soundness theorem for the set-theoretic model of Lean [8] holds for the rules of Lean 4 that the certified term uses: the model validates every judgment of the term as soon as, at each level \(n\), the set \(U_n\) assigned to Sort n (Definition 13) contains the interpretation of every type that the term places in Sort n.

Sponsor C (bridge). Inside \(\mathsf{ZFC}\), the sentence riemannHypothesis, read in the model, is equivalent to the Riemann hypothesis. This is the content of parts 1 to 4 of the bridge set out in [33], made by people from Mathlib’s definitions.

Sponsor B is discussed in Section 4.3. Sponsor C carries the disagreement between Mathlib’s function at the point \(1\) and Riemann’s \(\zeta\), which the paper [33] treats in full. Nothing in the present paper depends on how that disagreement is weighed: the count of inaccessible cardinals is a property of the certified term, whatever its sentence is taken to mean.

3 The ladder of inaccessible cardinals

This section proves the facts about the rungs \(\mathsf{ZFC}_k\) that the later sections use.

Theorem 7 (Williams 1969; Zermelo 1930). A set \(U\) is a Grothendieck universe with \(\omega\in U\) if and only if \(U=V_\kappa\) for an inaccessible cardinal \(\kappa\). In that case \(\kappa\) is the set of ordinals that belong to \(U\), every member of \(U\) has fewer than \(\kappa\) elements, and the union of the values of any function from a member of \(U\) into \(U\) belongs to \(U\).

Proof. From an inaccessible cardinal to a universe. Let \(\kappa\) be inaccessible.

First, \(|V_\alpha|<\kappa\) for every \(\alpha<\kappa\), by induction on \(\alpha\). \(V_0\) is empty. If \(|V_\alpha|=\mu<\kappa\) then \(|V_{\alpha+1}|=|\mathcal{P}(V_\alpha)|=2^\mu<\kappa\), because \(\kappa\) is a strong limit. If \(\delta<\kappa\) is a limit ordinal and every \(|V_\alpha|\) with \(\alpha<\delta\) is below \(\kappa\), then the values \(|V_\alpha|\) for \(\alpha<\delta\) are fewer than \(\kappa\) cardinals below \(\kappa\). Because \(\kappa\) is regular, they are bounded by some cardinal \(\nu<\kappa\). Then \(|V_\delta|\le|\delta|\cdot\nu<\kappa\).

Second, every member \(x\) of \(V_\kappa\) lies in some \(V_{\alpha+1}\) with \(\alpha<\kappa\), so \(x\subseteq V_\alpha\) and \(|x|<\kappa\).

Now the four conditions. (i) If \(x\in V_\kappa\) then \(x\subseteq V_\alpha\subseteq V_\kappa\) for some \(\alpha<\kappa\). (ii) If \(x,y\in V_\kappa\), both are subsets of one \(V_\alpha\) with \(\alpha<\kappa\), so \(\{x,y\}\subseteq V_{\alpha+1}\) and \(\{x,y\}\in V_{\alpha+2}\subseteq V_\kappa\), as \(\kappa\) is a limit ordinal. (iii) If \(x\subseteq V_\alpha\) then every subset of \(x\) is a subset of \(V_\alpha\), so \(\mathcal{P}(x)\subseteq V_{\alpha+1}\) and \(\mathcal{P}(x)\in V_{\alpha+2}\). (iv) Let \(I\in V_\kappa\) and let \(f\) map \(I\) into \(V_\kappa\). Each \(f(i)\) has a rank below \(\kappa\). There are \(|I|<\kappa\) of them, so by regularity they are bounded by some \(\beta<\kappa\). Then each \(f(i)\subseteq V_\beta\), so \(\bigcup_i f(i)\subseteq V_\beta\) and \(\bigcup_i f(i)\in V_{\beta+1}\subseteq V_\kappa\). Finally \(\omega\in V_{\omega+1}\) and \(\omega+1<\kappa\) because \(\kappa\) is uncountable.

From a universe to an inaccessible cardinal. Let \(U\) be a Grothendieck universe with \(\omega\in U\).

(a) \(U\) contains every subset of each of its members: if \(y\subseteq x\in U\), then \(y\in\mathcal{P}(x)\in U\), and \(y\in U\) by (i).

(b) Let \(\kappa\) be the set of ordinals belonging to \(U\). A member of an ordinal is an ordinal, and by (i) it lies in \(U\). So \(\kappa\) is a transitive set of ordinals, that is, an ordinal. \(\kappa\notin U\), for otherwise \(\kappa\in\kappa\). If \(\alpha\in\kappa\) then \(\{\alpha\}=\{\alpha,\alpha\}\in U\) by (ii) and \(\{\alpha,\{\alpha\}\}\in U\). Applying (iv) to the identity function on this last set gives \(\alpha\cup\{\alpha\}=\alpha+1\in U\). So \(\kappa\) is a limit ordinal, and \(\omega\in\kappa\).

(c) Every \(x\in U\) has \(|x|<\kappa\). Suppose instead \(|x|\ge|\kappa|\). Then there is a function \(g\) from \(x\) onto \(\kappa\): take a one-to-one map from \(\kappa\) into \(x\), send each point of its image back to the ordinal it came from, and send every other point to \(0\). The values of \(g\) are ordinals in \(U\). By (iv) the union of the values, which is the union of all ordinals below \(\kappa\), belongs to \(U\). That union is \(\kappa\) itself, because \(\kappa\) is a limit ordinal; this contradicts (b). Applied to the ordinals \(\alpha\in\kappa\), (c) gives \(|\alpha|<|\kappa|\), so \(\kappa\) is in one-to-one correspondence with no smaller ordinal: \(\kappa\) is a cardinal.

(d) \(\kappa\) is a strong limit. Let \(\mu<\kappa\) be a cardinal. Then \(\mu\in U\) and \(\mathcal{P}(\mu)\in U\), so \(2^\mu=|\mathcal{P}(\mu)|<\kappa\) by (c).

(e) \(\kappa\) is regular. Let \(\mu<\kappa\) and let \(g\) map \(\mu\) into \(\kappa\). Then \(\mu\in U\), and \(g\) maps \(\mu\) into \(U\). By (iv) the union of its values belongs to \(U\), so it is an ordinal below \(\kappa\), and it bounds every value of \(g\). So no function from a smaller cardinal has values unbounded in \(\kappa\).

(f) \(\kappa\) is uncountable, since \(\omega\in\kappa\) and \(\kappa\) is a limit ordinal above \(\omega\), and \(2^{\aleph_0}<\kappa\) by (d). With (d) and (e), \(\kappa\) is inaccessible.

(g) \(V_\kappa\subseteq U\). By induction, \(V_\alpha\in U\) for every \(\alpha<\kappa\). \(V_0=\emptyset\) is a subset of \(\omega\), so it lies in \(U\) by (a). \(V_{\alpha+1}=\mathcal{P}(V_\alpha)\in U\) by (iii). For a limit \(\delta<\kappa\), the function \(\alpha\mapsto V_\alpha\) maps \(\delta\in U\) into \(U\), so \(V_\delta=\bigcup_{\alpha<\delta}V_\alpha\in U\) by (iv). Every \(x\in V_\kappa\) is a subset of some \(V_\alpha\) with \(\alpha<\kappa\), so \(x\in U\) by (a).

(h) \(U\subseteq V_\kappa\). By induction along membership, which the axiom of foundation permits, \(\mathrm{rank}(x)\in U\) for every \(x\in U\). Indeed \(\mathrm{rank}(x)\) is the union over \(y\in x\) of the ordinals \(\mathrm{rank}(y)+1\). For \(y\in x\) we have \(y\in U\), so \(\mathrm{rank}(y)\in U\) by the inductive hypothesis and \(\mathrm{rank}(y)+1\in U\) by (b). The function \(y\mapsto\mathrm{rank}(y)+1\) maps \(x\) into \(U\), and (iv) gives \(\mathrm{rank}(x)\in U\). So \(\mathrm{rank}(x)<\kappa\) and \(x\in V_{\mathrm{rank}(x)+1}\subseteq V_\kappa\).

The last two sentences of the theorem are (b), (c) and condition (iv).

Consequence. N. H. Williams published the proof in 1969 [14]. The theorem turns Grothendieck’s device into a number. Each universe used as a set, with \(\omega\) in it, is one inaccessible cardinal, and a tower of \(k\) universes, each a member of the next, is \(k\) inaccessible cardinals. Everything below about Lean’s levels is counted in these units.

Theorem 8 (the sets below an inaccessible cardinal satisfy ZFC; Zermelo 1930). Let \(\kappa\) be inaccessible. The structure \((V_\kappa,\in)\) satisfies every axiom of \(\mathsf{ZFC}\). For every ordinal \(\lambda<\kappa\), \((V_\kappa,\in)\) satisfies “\(\lambda\) is an inaccessible cardinal” exactly when \(\lambda\) is one. In particular, if exactly \(k\) inaccessible cardinals lie below \(\kappa\), \((V_\kappa,\in)\) satisfies \(\mathsf{ZFC}_k\) and “there are no \(k+1\) inaccessible cardinals.”

Proof. Satisfaction of a formula in a structure that is a set is defined in \(\mathsf{ZFC}\) by recursion on the formula, as Tarski defined it [27]; a quantifier ranges over \(V_\kappa\). The axioms are checked one at a time, using Theorem 7. Extensionality and foundation. \(V_\kappa\) is transitive, so two of its members with the same members in \(V_\kappa\) have the same members; membership is well-founded on all sets. Pairing, union, power set. By conditions (ii), (iv) and (iii); and the power set computed inside \(V_\kappa\) is the true power set, because by (a) of the previous proof every subset of a member is a member. Infinity. \(\omega\in V_\kappa\), and “\(\omega\) is the least set containing \(0\) and closed under \(x\mapsto x\cup\{x\}\)” means the same inside \(V_\kappa\). Separation. For a formula \(\varphi\) and \(x,p\in V_\kappa\), the set of \(y\in x\) that satisfy \(\varphi(y,p)\) in \(V_\kappa\) is a subset of \(x\), hence a member of \(V_\kappa\). Replacement. Suppose that for each \(y\in x\) there is exactly one \(z\in V_\kappa\) with \(\varphi(y,z,p)\) satisfied in \(V_\kappa\), and call it \(F(y)\). Then \(y\mapsto\{F(y)\}\) maps \(x\) into \(V_\kappa\), and the union of its values, the image of \(F\), is in \(V_\kappa\) by (iv). Choice. For \(x\in V_\kappa\) a set of non-empty sets, a function picking a member from each member of \(x\) is a subset of the product of \(x\) with \(\bigcup x\), which is a member of \(V_\kappa\), so the function is in \(V_\kappa\), and being such a function means the same inside. Inaccessibility. For \(\lambda<\kappa\), the statement “\(\lambda\) is an inaccessible cardinal” speaks of the subsets of \(\lambda\), of the functions from ordinals below \(\lambda\) into \(\lambda\), and of the power sets of ordinals below \(\lambda\) and their sizes. All of these are members of \(V_\kappa\), and \(V_\kappa\) contains every subset of its members and every function between them. So the statement is satisfied in \(V_\kappa\) exactly when it is true. The last sentence of the theorem follows: the inaccessible cardinals of \(V_\kappa\) are the inaccessible cardinals below \(\kappa\).

Consequence. Each rung contains, as a set, a model of every rung below it: in \(\mathsf{ZFC}_{k+1}\) the set \(V_\kappa\) for the \((k+1)\)-th inaccessible cardinal \(\kappa\) is a structure in which all of \(\mathsf{ZFC}_k\) holds. Theorem 10 turns this model into a statement about derivations.

The next theorem gives the reason why a consistent theory that derives a \(\Pi_1\) sentence derives only a true one. Raphael Robinson (1911–1995) proposed in 1950 the system \(\mathsf{Q}\) of arithmetic with seven axioms [28]: (Q1) \(S(x)\neq0\); (Q2) \(S(x)=S(y)\) implies \(x=y\); (Q3) \(x\neq0\) implies \(x=S(y)\) for some \(y\); (Q4) \(x+0=x\); (Q5) \(x+S(y)=S(x+y)\); (Q6) \(x\cdot0=0\); (Q7) \(x\cdot S(y)=x\cdot y+x\). In \(\mathsf{Q}\), \(x<y\) abbreviates “\(S(z)+x=y\) for some \(z\).” Every theory considered here derives these axioms, read in \(\omega\) when the theory is a set theory.

Theorem 9 (\(\Sigma_1\)-completeness; consistency gives truth for \(\Pi_1\) sentences).

  1. (a) \(\mathsf{Q}\) derives every true \(\Sigma_1\) sentence.

  2. (b) Let \(T\) be a theory that derives the axioms of \(\mathsf{Q}\), and let \(\varphi\) be a \(\Pi_1\) sentence that \(T\) derives. If \(T\) is consistent, \(\varphi\) is true.

Proof. (a) Four facts about \(\mathsf{Q}\) are proved first, each for all whole numbers \(m,n\), by induction on \(n\) carried out outside \(\mathsf{Q}\). (L1) \(\mathsf{Q}\) derives \(\overline{m}+\overline{n}=\overline{m+n}\) and \(\overline{m}\cdot\overline{n}=\overline{m\cdot n}\). For \(n=0\) these are (Q4) and (Q6). From \(n\) to \(n+1\): \(\overline{m}+S(\overline{n})=S(\overline{m}+\overline{n})\) by (Q5), and this is \(S(\overline{m+n})=\overline{m+n+1}\); likewise \(\overline{m}\cdot S(\overline{n})=\overline{m}\cdot\overline{n}+\overline{m}\) by (Q7), and this is \(\overline{mn}+\overline{m}=\overline{mn+m}\) by the case of addition already proved. (L2) If \(m\neq n\), \(\mathsf{Q}\) derives \(\overline{m}\neq\overline{n}\). Say \(m<n\). If \(\overline{m}=\overline{n}\), then (Q2) applied \(m\) times gives \(0=\overline{n-m}\), which is \(S(\overline{n-m-1})=0\), against (Q1). (L3) \(\mathsf{Q}\) derives \(\overline{k}<\overline{n}\) for every \(k<n\), and derives “if \(x<\overline{n}\) then \(x=\overline{0}\) or \(x=\overline{1}\) or … or \(x=\overline{n-1}\).” The first: \(S(\overline{n-k-1})+\overline{k}=\overline{n-k}+\overline{k}=\overline{n}\) by (L1). The second, by induction on \(n\). For \(n=0\): \(S(z)+x=0\) is impossible. If \(x=0\), the left side is \(S(z)\) by (Q4), against (Q1). Otherwise \(x=S(w)\) by (Q3), and the left side is \(S(S(z)+w)\) by (Q5), against (Q1). From \(n\) to \(n+1\): let \(S(z)+x=S(\overline{n})\). If \(x=0\) there is nothing to prove. Otherwise \(x=S(w)\) by (Q3), so \(S(S(z)+w)=S(\overline{n})\) by (Q5), so \(S(z)+w=\overline{n}\) by (Q2), that is, \(w<\overline{n}\). By the inductive hypothesis \(w\) is one of \(\overline{0},\dots,\overline{n-1}\), and \(x=S(w)\) is one of \(\overline{1},\dots,\overline{n}\). (L4) Every true bounded sentence is derivable in \(\mathsf{Q}\), and the negation of every false one is. This is proved by induction on the construction of the sentence. A closed term evaluates by (L1) to a numeral, so an equation between closed terms is decided by (L1) and (L2). Negations, conjunctions and disjunctions follow from their parts. For “for every \(x<\overline{n}\), \(\theta(x)\)”: if it is true, each \(\theta(\overline{k})\) with \(k<n\) is true and derivable, and (L3) turns these \(n\) derivations into one of the sentence; if it is false, some \(\theta(\overline{k})\) with \(k<n\) is false, its negation is derivable, and with \(\overline{k}<\overline{n}\) from (L3) the negation of the sentence follows. “For some \(x<\overline{n}\)” is treated the same way. Now let “for some \(x\), \(\theta(x)\)” be a true \(\Sigma_1\) sentence. Then \(\theta(\overline{m})\) is true for some \(m\), it is derivable by (L4), and the sentence follows in one step.

(b) Let \(\varphi\) be “for every \(x\), \(\theta(x)\)” with \(\theta\) bounded, and suppose \(\varphi\) is false. Then \(\theta(\overline{m})\) is false for some \(m\), and \(\mathsf{Q}\), hence \(T\), derives its negation by (L4). From \(\varphi\), \(T\) also derives \(\theta(\overline{m})\). So \(T\) derives a statement and its negation, and is inconsistent. Hence if \(T\) is consistent, \(\varphi\) is true.

Consequence. For a \(\Pi_1\) sentence, consistency of a theory that derives it is exactly the condition for its truth. The author’s paper [33] gives this argument for Peano arithmetic (its Proposition on universal checkable statements); here it is given for every theory containing the seven axioms of \(\mathsf{Q}\). Part (a) also gives the converse that Theorem 12 uses. A contradiction derived from a theory is a finite object, so the statement that it exists is a true \(\Sigma_1\) sentence, and every theory containing \(\mathsf{Q}\) derives it.

Theorem 10 (each rung proves that the arithmetic theorems of the rung below are true). Let \(k\) be a whole number. \(\mathsf{ZFC}_{k+1}\) derives the statement: for every arithmetic formula \(\varphi\) with one free variable and every whole number \(n\), if \(\mathsf{ZFC}_k\) derives \(\varphi(\overline{n})\), then \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\). Consequently \(\mathsf{ZFC}_{k+1}\) derives every sentence of \(\mathrm{RFN}(\mathsf{ZFC}_k)\), and it derives \(\mathrm{Con}(\mathsf{ZFC}_k)\).

Proof. Argue in \(\mathsf{ZFC}_{k+1}\). Let \(\kappa_1<\dots<\kappa_{k+1}\) be inaccessible and put \(\kappa=\kappa_{k+1}\). Below \(\kappa\) lie the \(k\) inaccessible cardinals \(\kappa_1,\dots,\kappa_k\), so by Theorem 8, \((V_\kappa,\in)\) satisfies every axiom of \(\mathsf{ZFC}_k\).

The soundness theorem of first-order logic states that a formula derivable from a set of axioms is satisfied in every structure that satisfies the axioms. It is proved in \(\mathsf{ZFC}\) by induction on the length of the derivation. Each logical axiom is satisfied in every structure, and each rule of inference, from a formula and an implication to its conclusion, or from a formula to its generalization, passes from satisfied formulas to satisfied formulas. So if \(\mathsf{ZFC}_k\) derives the set-theoretic form of \(\varphi(\overline{n})\), that form is satisfied in \(V_\kappa\).

The set-theoretic form of an arithmetic formula has its quantifiers over \(\omega\) and uses the addition and multiplication functions of \(\omega\). The set \(\omega\), these functions, and all subsets of \(\omega\) and of its finite powers are members of \(V_\kappa\). Their defining properties mean the same inside \(V_\kappa\) as outside, since \(V_\kappa\) contains every subset of its members. By induction on the construction of \(\varphi\), the set-theoretic form of \(\varphi(\overline{n})\) is satisfied in \(V_\kappa\) exactly when \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\) holds. Combining, a derivation of \(\varphi(\overline{n})\) from \(\mathsf{ZFC}_k\) gives \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\), uniformly in \(\varphi\) and \(n\).

For a fixed formula \(\varphi\), \(\mathsf{ZFC}\) derives that \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\) is equivalent to \(\varphi(n)\), so \(\mathsf{ZFC}_{k+1}\) derives the sentence of \(\mathrm{RFN}(\mathsf{ZFC}_k)\) for \(\varphi\). For \(\mathrm{Con}(\mathsf{ZFC}_k)\), take for \(\varphi\) the formula \(0=1\), which no whole number satisfies. Then \(\mathsf{ZFC}_k\) does not derive it.

Theorem 11 (the rungs are distinct; from Gödel’s second theorem). Gödel’s second incompleteness theorem states that a consistent theory whose axioms are recognized by a computation and which derives the axioms of Peano arithmetic does not derive its own consistency statement [25, 26]. For every whole number \(k\):

  1. (a) if \(\mathsf{ZFC}_k\) is consistent, it does not derive \(\mathrm{Con}(\mathsf{ZFC}_k)\);

  2. (b) if \(\mathsf{ZFC}_k\) is consistent, it does not derive that \(k+1\) inaccessible cardinals exist;

  3. (c) if \(\mathsf{ZFC}_{k+1}\) is consistent, \(\mathsf{ZFC}_k\) does not derive “if \(\mathsf{ZFC}_k\) is consistent then \(\mathsf{ZFC}_{k+1}\) is consistent.”

Proof. \(\mathsf{ZFC}\) derives the axioms of Peano arithmetic read in \(\omega\), so (a) is Gödel’s theorem. Its proof, in outline: a sentence \(G\) is built that says of itself “I am not derivable from \(T\)”; the conditions that David Hilbert (1862–1943) and Paul Bernays (1888–1977) isolated in 1939 [26] let \(T\) derive “\(\mathrm{Con}(T)\) implies \(G\)”; so a derivation of \(\mathrm{Con}(T)\) would give one of \(G\), and that would make \(G\)’s claim false and \(T\) inconsistent. (b) If \(\mathsf{ZFC}_k\) derived that \(k+1\) inaccessible cardinals exist, it would derive every axiom of \(\mathsf{ZFC}_{k+1}\), hence every theorem of \(\mathsf{ZFC}_{k+1}\). Among these is \(\mathrm{Con}(\mathsf{ZFC}_k)\), by Theorem 10, against (a). (c) If \(\mathsf{ZFC}_k\) derived the implication, so would \(\mathsf{ZFC}_{k+1}\), which contains it. \(\mathsf{ZFC}_{k+1}\) derives the premise \(\mathrm{Con}(\mathsf{ZFC}_k)\) by Theorem 10, so it would derive \(\mathrm{Con}(\mathsf{ZFC}_{k+1})\), and by (a), applied to \(k+1\), it would be inconsistent.

Consequence. The rungs form a strictly rising ladder. Each rung derives the consistency of the rung below, no consistent rung derives its own, and no rung derives that the next is consistent even relative to its own consistency. Each rung is vouched for from above and by nothing below it. This ladder dominates the Turing progression of [34], the sequence of theories in which each theory is followed by the same theory with the statement of its own consistency added (Definition 21.3 of the book’s part on the truncated quasiconformal energy): each rung here adds an inaccessible cardinal, which yields the consistency of the rung below, its reflection principle, and more (Theorems 10 and 12). The regress that the book proves for the progression, that no stage derives the reflection principles of all later stages (Theorem 21.4 of that part), holds on this ladder by the same argument from Gödel’s second theorem (Theorem 11).

Theorem 12 (an inaccessible cardinal exceeds the \(\omega\)-completion step of the rung below). Let \(k\) be a whole number and suppose \(\mathsf{ZFC}_{k+1}\) is consistent. Then the theory \(\mathsf{ZFC}_k+\mathrm{RFN}(\mathsf{ZFC}_k)\) does not derive that \(k+1\) inaccessible cardinals exist. More precisely, \(\mathsf{ZFC}_{k+1}\) derives the consistency of \(\mathsf{ZFC}_k+\mathrm{RFN}(\mathsf{ZFC}_k)\) together with “there are no \(k+1\) inaccessible cardinals.”

Proof. Argue in \(\mathsf{ZFC}_{k+1}\). There are at least \(k+1\) inaccessible cardinals. Let \(\kappa\) be the \((k+1)\)-th, the least inaccessible cardinal with exactly \(k\) inaccessible cardinals below it. By Theorem 8, \((V_\kappa,\in)\) satisfies \(\mathsf{ZFC}_k\) and “there are no \(k+1\) inaccessible cardinals.”

Each sentence of \(\mathrm{RFN}(\mathsf{ZFC}_k)\) is the set-theoretic form of an arithmetic sentence. As in the proof of Theorem 10, it is satisfied in \(V_\kappa\) exactly when the corresponding arithmetic statement holds, namely: for every \(n\), if \(\mathsf{ZFC}_k\) derives \(\varphi(\overline{n})\), then \(\mathrm{Sat}(\ulcorner\varphi\urcorner,n)\). That statement holds for every \(\varphi\) at once, by Theorem 10. So \((V_\kappa,\in)\) satisfies \(S=\mathsf{ZFC}_k+\mathrm{RFN}(\mathsf{ZFC}_k)+\)“there are no \(k+1\) inaccessible cardinals,” and by the soundness theorem no derivation from \(S\) ends in \(0=1\): \(\mathrm{Con}(S)\).

Now suppose, outside the argument, that \(\mathsf{ZFC}_k+\mathrm{RFN}(\mathsf{ZFC}_k)\) derived that \(k+1\) inaccessible cardinals exist. Then \(S\) would derive a contradiction. The existence of that derivation is a true \(\Sigma_1\) sentence, derivable in \(\mathsf{Q}\) by Theorem 9 and so in \(\mathsf{ZFC}_{k+1}\). Since \(\mathsf{ZFC}_{k+1}\) also derives \(\mathrm{Con}(S)\), it would be inconsistent, contrary to the sponsor of the theorem.

Consequence. Theorems 10 and 12 fix the relation between an inaccessible cardinal and the \(\omega\)-completion of Definition 6. The axiom of the \((k+1)\)-th inaccessible cardinal contains, for every arithmetic sentence, the \(\omega\)-completion step of the rung below it, namely \(\mathrm{RFN}(\mathsf{ZFC}_k)\). It asserts more: a set \(V_\kappa\) in which all of \(\mathsf{ZFC}_k\) holds, which the step alone does not supply. Section 8 applies this to the certified term.

4 Lean’s levels read as sets

4.1 The standard model

Benjamin Werner gave in 1997 a model of the calculus of inductive constructions in set theory, with one inaccessible cardinal for each level of types [7]. Mario Carneiro constructed the corresponding model for the rules of Lean 3 in 2019 and proved that it validates every derivable judgment, which gives the consistency of Lean relative to \(\mathsf{ZFC}\) with \(n\) inaccessible cardinals for every \(n\) [8]. Bresolin and Mamino state the model in a form with an increasing sequence of strong limit cardinals, of which only an initial segment is required to be inaccessible [10]. The following definition is that form, restricted to the levels a given derivation uses.

Definition 13 (standard model). Let \(N\ge1\), and let \(\kappa_1<\kappa_2<\dots<\kappa_N\) be strong limit cardinals with \(\kappa_1>\aleph_0\). Put \(U_0=\{\emptyset,\{\emptyset\}\}\) and \(U_n=V_{\kappa_n}\) for \(1\le n\le N\). The standard model assigns to every type and term \(e\) of Lean, in a context \(\Gamma\) of typed variables and under an environment \(\gamma\) that gives each variable a value, a set \([\![e]\!]_\gamma\), as follows.

  1. (a) \([\![\texttt{Sort }n]\!]_\gamma=U_n\). In particular Prop is the set \(\{\emptyset,\{\emptyset\}\}\) of two truth values: \(\emptyset\) stands for a false proposition and \(\{\emptyset\}\) for a true one, and every proof of a true proposition is the set \(\emptyset\), the one member of \(\{\emptyset\}\).

  2. (b) A variable \(x\) is its value \(\gamma(x)\).

  3. (c) A product type \((x:A)\to B\) whose values are types is the set of all functions \(f\) with domain \([\![A]\!]_\gamma\) such that \(f(a)\in[\![B]\!]_{\gamma[x:=a]}\) for each \(a\); here \(\gamma[x:=a]\) is \(\gamma\) with \(a\) as the value of \(x\). A product whose values are propositions is \(\{\emptyset\}\) if every \([\![B]\!]_{\gamma[x:=a]}\) is \(\{\emptyset\}\) and \(\emptyset\) otherwise.

  4. (d) A function \(\lambda x{:}A.\,e\) is the function \(a\mapsto[\![e]\!]_{\gamma[x:=a]}\) on \([\![A]\!]_\gamma\), and an application \(f\,a\) is the value of the function \([\![f]\!]_\gamma\) at \([\![a]\!]_\gamma\) (proofs are \(\emptyset\) throughout).

  5. (e) An inductive type is the least set closed under its constructors, each constructor being a one-to-one function, and its recursor is the function defined on that set by recursion along the construction. Carneiro carries this out by reducing Lean’s inductive types to well-founded trees, the W-types [8].

  6. (f) A quotient is the set of equivalence classes of the least equivalence relation containing the given relation; the axiom Classical.choice is a function that picks a member of each non-empty set of the model, given by the axiom of choice.

A judgment \(\Gamma\vdash e:T\) (“in context \(\Gamma\), \(e\) has type \(T\)”) holds in the model when \([\![e]\!]_\gamma\in[\![T]\!]_\gamma\) for every environment \(\gamma\) of \(\Gamma\), that is, every assignment to the variables of \(\Gamma\) of members of the interpretations of their types. The model validates a set of judgments when each of them holds.

The set of judgments considered for the certified term is the set \(J\) of all typing judgments in the kernel’s derivations of the types and values of the instantiated constants of the cone, with the universe parameters replaced by the numbers of each instantiation. A standard model of the certified term is a standard model that validates \(J\). Among the judgments of \(J\) are those stating that the proofs of the five theorems have the stated types. So in such a model the sentence riemannHypothesis is true, read as a statement of set theory, which Sponsor C relates to the Riemann hypothesis. Theorem 18 shows in which theory such a model exists.

4.2 Full formers

Definition 14 (full former). Let \(n\ge1\). A judgment of \(J\) is a full former at level \(n\) when it has one of the following four forms, in which \(\alpha\) and \(\beta\) (or \(M\)) are variables of the context:

  1. (i) \(\alpha:\texttt{Sort }n,\ \beta:\alpha\to\texttt{Sort }n\ \vdash\ ((x:\alpha)\to\beta\,x):\texttt{Sort }n\) (the product of the family \(\beta\));

  2. (ii) \(\alpha:\texttt{Sort }n,\ \beta:\alpha\to\texttt{Sort }n\ \vdash\ \texttt{PSigma}\ \beta:\texttt{Sort }n\) (the sum of the family \(\beta\): the type of pairs \(\langle a,b\rangle\) with \(a\) in \(\alpha\) and \(b\) in \(\beta\,a\));

  3. (iii) \(\alpha:\texttt{Type }(n-1),\ \beta:\alpha\to\texttt{Type }(n-1)\ \vdash\ \texttt{Sigma}\ \beta:\texttt{Type }(n-1)\) (the same sum for types);

  4. (iv) \(\alpha:\texttt{Type }(n-1),\ M:L\,\alpha\to\texttt{Sort }n\ \vdash\ ((t:L\,\alpha)\to M\,t):\texttt{Sort }n\), where \(L\) is List or Option (the product of a family indexed by the lists of elements of \(\alpha\), or by the elements of \(\alpha\) with one point added).

In each form the index type is an arbitrary type of level \(n\), or is built from one, and the family is an arbitrary function from it into the types of level \(n\). The constants of Lean’s libraries that contain such judgments are familiar ones. Function extensionality funext\([u,v]\), the statement that two functions agreeing at every argument are equal, contains form (i) for its functions \((x:\alpha)\to\beta\,x\) with \(\alpha\) in Sort u and \(\beta\) into Sort v, at level \(n\) when \(u=v=n\). The dependent sums PSigma\([u,v]\) and Sigma\([u,v]\), with their constructors, projections and recursors, contain forms (ii) and (iii) when \(u=v\). The recursors List.rec\([m,u]\) and Option.rec\([m,u]\), which state the principle of definition by recursion on lists and options of elements of \(\alpha\) in Type u with values in a family \(M\) of types of Sort m, contain form (iv) at level \(m\) when \(m=u+1\). The same holds for their companions casesOn, brecOn and brecOn.go.

Theorem 15 (a full former forces the cardinal of its level to be inaccessible). Let a standard model, with cardinals \(\kappa_1<\dots<\kappa_N\), validate a full former at level \(n\). Then \(\kappa_n\) is inaccessible.

Proof. \(\kappa_n\) is an uncountable strong limit by Definition 13, so it remains to show that it is regular. Two facts are used. The rank of an ordinal \(\beta\) is \(\beta\) itself. And \(U_n=V_{\kappa_n}\) is transitive, so a set that has a member outside \(V_{\kappa_n}\) is not itself a member of \(V_{\kappa_n}\).

Suppose \(\mathrm{cf}(\kappa_n)=\mu<\kappa_n\), and let \(g\) be a function from \(\mu\) to \(\kappa_n\) whose values are unbounded below \(\kappa_n\). For each \(\xi<\mu\) the ordinal \(g(\xi)+1\) is below \(\kappa_n\) and has \(g(\xi)\) as its largest member. The ordinal \(\mu\) and every \(g(\xi)+1\) are members of \(U_n\).

Form (i). The environment that gives \(\alpha\) the value \(\mu\) and \(\beta\) the value \(\xi\mapsto g(\xi)+1\) is an environment of the context, since \(\mu\in U_n\) and the function maps \(\mu\) into \(U_n\). In it, the product \((x:\alpha)\to\beta\,x\) is the set \(P\) of all functions \(f\) on \(\mu\) with \(f(\xi)\in g(\xi)+1\) for each \(\xi\). The function \(f_0\) with \(f_0(\xi)=g(\xi)\) belongs to \(P\). As a set of ordered pairs, \(f_0\) contains for each \(\xi\) a pair having \(g(\xi)\) as a component, so \(\mathrm{rank}(f_0)>g(\xi)\) for every \(\xi\), and \(\mathrm{rank}(f_0)\ge\sup_\xi g(\xi)=\kappa_n\). So \(f_0\notin V_{\kappa_n}\), and therefore \(P\notin U_n\). The judgment requires \(P\in U_n\): a contradiction.

Forms (ii) and (iii). With the same environment, the sum is the set of the elements \(\langle\xi,c\rangle\) with \(\xi<\mu\) and \(c\in g(\xi)+1\). In the model, each such element is built by the one-to-one constructor of pairs and contains \(c\) as a component, so its rank exceeds that of \(c\). The elements \(\langle\xi,g(\xi)\rangle\) have ranks unbounded below \(\kappa_n\), so the sum has a member outside \(V_{\kappa_n}\) and is not in \(U_n\), while the judgment requires it to be: a contradiction. For form (iii), \(\alpha\) and \(\beta\) range over Type \((n-1)\), which is Sort \(n\), so the same environment applies.

Form (iv). Give \(\alpha\) the value \(\mu\), a member of \([\![\texttt{Type }(n-1)]\!]=U_n\). The interpretation of List\(\,\alpha\) is then the set of finite sequences of ordinals below \(\mu\), and that of Option\(\,\alpha\) is \(\mu\) with one point added; both have exactly \(\mu\) members, \(\mu\) being infinite. Fix a function \(h\) from that set onto \(\mu\) and give \(M\) the value \(t\mapsto g(h(t))+1\), a function into \(U_n\). The product \((t:L\,\alpha)\to M\,t\) contains the function \(t\mapsto g(h(t))\), whose rank is at least \(\sup_\xi g(\xi)=\kappa_n\) as before. So the product is not in \(U_n\), while the judgment requires it to be: a contradiction.

So in every case \(\mathrm{cf}(\kappa_n)=\kappa_n\), and \(\kappa_n\) is inaccessible.

The theorem does not depend on reading level \(n\) as a set of the form \(V_\kappa\). Whatever set a model assigns to a level, the same constructions bring an inaccessible cardinal with them.

Theorem 16 (the same for any set assigned to a level). Let \(U\) be a set that has an infinite member, contains every subset of each of its members, contains the set of all functions from \(X\) to \(\{\emptyset,\{\emptyset\}\}\) for each member \(X\), and contains, for every member \(A\) and every function \(F\) from \(A\) to \(U\), the set of functions \(f\) on \(A\) with \(f(a)\in F(a)\) for each \(a\) (or, in place of that set, the set of pairs \(\langle a,c\rangle\) with \(c\in F(a)\)). Then \(\lambda=\sup\{|X|:X\in U\}\) is an inaccessible cardinal.

Proof. No member \(X\) of \(U\) has \(|X|=\lambda\). Otherwise the set of functions from \(X\) to the two truth values, which is in \(U\), would have \(2^\lambda>\lambda\) members, by Cantor’s theorem. So \(\lambda\) is not attained, and it is a limit of the sizes of members of \(U\). Because \(U\) contains all subsets of its members, it contains a member of each size \(\nu<\lambda\): take any member of size at least \(\nu\) and a subset of size exactly \(\nu\). It also contains an infinite member, so \(\lambda>\aleph_0\).

\(\lambda\) is a strong limit. For \(\nu<\lambda\), take \(X\in U\) with \(|X|=\nu\); the set of functions from \(X\) to two truth values lies in \(U\) and has \(2^\nu\) members, so \(2^\nu<\lambda\). It follows that \(\lambda>2^{\aleph_0}\), so \(\lambda\) is uncountable.

\(\lambda\) is regular. Suppose \(\mathrm{cf}(\lambda)=\mu<\lambda\), with a function \(g\) from \(\mu\) to the cardinals below \(\lambda\), unbounded below \(\lambda\). Take \(A\in U\) with \(|A|=\mu\), a one-to-one correspondence \(e\) between \(A\) and \(\mu\), and for each \(a\in A\) a non-empty member \(F(a)\) of \(U\) with \(|F(a)|\ge g(e(a))\), by the axiom of choice. The set of functions \(f\) on \(A\) with \(f(a)\in F(a)\), or the set of pairs, lies in \(U\) and has at least \(|F(a)|\) members for every \(a\), hence at least \(\lambda\) members. This contradicts the fact that no member has \(\lambda\) members.

Consequence. The inaccessible cardinals of a standard model are fixed by the levels at which the derivation forms products or sums of arbitrary families of types of the level, not by the number of levels that the derivation mentions. A level whose products and sums are all indexed by types of lower levels, or have values of bounded rank, is served by a strong limit cardinal of suitable cofinality, and \(\mathsf{ZFC}\) proves that such cardinals exist above every cardinal; Theorem 18 carries this out for the top level of the certified term. Theorem 16 shows that the count is not an artefact of reading levels as sets \(V_\kappa\). Any set that serves as a level carrying a full former, and is closed under subsets and under functions into the truth values, as Lean’s impredicative Prop requires, bounds an inaccessible cardinal.

4.3 The rules of Lean 4 and Sponsor B

Carneiro’s soundness proof was written for Lean 3. Lean 4, by Leonardo de Moura and Sebastian Ullrich [6], rewrote most of the system and extended the kernel. In Carneiro’s account of 2024 and 2025, most of the new features can be treated as abbreviations. Nested inductive types and the rule \(\eta\) for structures, however, change the theory, so that the soundness proof of 2019 is no longer directly applicable [9]. Bresolin and Mamino take Carneiro’s model as the basis for the variant of the calculus of inductive constructions implemented by Lean 4 [10]. Sponsor B is the statement that Carneiro’s argument covers the rules of Lean 4 used by the certified term, with the cardinals entering only through the closure of each \(U_n\) under the types placed at its level.

Two measurements bear on how much of Lean 4 the cone uses. An inductive type is nested when its own name occurs, in a constructor’s argument, inside another inductive type, as the syntax trees of Lean occur in arrays of syntax trees. It is reflexive when a constructor takes a function whose values are of the type being defined. The cone contains exactly one nested inductive type, Lean.Syntax of Lean’s core library, at level 1. It contains eleven reflexive ones (Table 1); all but WType and the archive’s two certificate types are families of propositions, which the model reads as truth values. In 2026 a defect of the kernel’s checking of projections and of nested inductive declarations was published, by which a program could register an ill-typed nested inductive type and obtain a proof of a false statement. It affected Lean up to version 4.31.0 and was corrected in version 4.32.2 [11]. The export was made with version 4.33.1 [4]. The certified term thus meets nested inductive types at one place, a type of the core library.

kind origin inductive type highest sort
nested core Lean.Syntax 1
reflexive core Acc (accessibility, a proposition) 5
reflexive Mathlib ChainClosure (a proposition, used for Zorn’s lemma) 5
reflexive Mathlib CategoryTheory.Precoverage.Saturate, Coverage.Saturate 3
reflexive Mathlib TopologicalSpace.GenerateOpen 2
reflexive Mathlib WType; MeasurableSpace.GenerateMeasurable; 1
DynkinSystem.GenerateHas; Filter.CountableGenerateSets
reflexive archive two certificate types of FunctorialResolution.EmbeddedResolution 1
Table 1. Inductive types of the cone that are nested or reflexive (Supporting Information, Section 9).

5 The levels of the certified term

5.1 The measurement

Shore’s dataset records, for each constant of the cone, the instantiations at which the proof terms use it. It records these by evaluating the universe arguments of every occurrence of a constant under the instantiation of the constant that contains it, starting from the five theorems, until no new pair of a constant and a list of levels appears [4]. For each instantiation it records the largest Sort occurring in the instantiated type and value; this paper calls it the highest sort of the instantiation. The dataset lists separately every instantiation whose highest sort is at least \(3\) or which has a universe argument of \(2\) or more, together with the instantiation in which it was first reached, its discovery parent. The method note of the dataset states that these levels include artefacts of compilation: the encoding of structural recursion by below and brecOn raises the universe of the motive by one [4].

highest sort all archive Mathlib core Batteries Aesop
0 493,898 463,702 24,985 5,186 22 3
1 919,345 790,279 127,009 1,983 74 0
2 42,753 10,587 31,016 1,056 94 0
3 16,576 711 14,966 838 61 0
4 4,149 0 3,982 167 0 0
5 1,443 0 1,078 363 2 0
6 77 0 0 77 0 0
7 2 0 0 2 0 0
Table 2. The 1,478,243 constants of the cone that have a concrete instantiation, by the highest sort over all their instantiations and by origin. Sort 1 is Type 0; Sort 7 is Type 6. Supporting Information, Section 2.
highest sort instantiations archive Mathlib core Batteries
3 35,838 712 33,054 2,000 72
4 8,399 0 7,541 847 11
5 1,909 0 1,368 535 6
6 88 0 0 88 0
7 2 0 0 2 0
Table 3. Instantiations whose highest sort is \(3\) or more, by the origin of the constant. All 10,398 instantiations at sort \(4\) or more are instantiations of library constants with universe parameters. Supporting Information, Section 3.
directory of the archive, under Development at Type 2 without parameters
AbelianVarietyTheory.Proofs 245 54
EtaleCohomology.EtaleSheaves 192 37
AutomorphicArithmetic.CommutativeAlgebra 64 10
EtaleCohomology.KummerTheory 58 7
EtaleCohomology.CohomologicalPurity 46 12
AbelianVarietyTheory.Definitions 39 15
EtaleCohomology.TateTwists 25 12
AutomorphicArithmetic.Foundations 21 5
WeilBound.CoreStatements 15 4
AutomorphicArithmetic.ThetaCorrespondence 3 3
AutomorphicSpectrum.Proofs 3 1
total 711 160
Table 4. The archive’s constants whose highest sort is \(3\), that is, which reach Type 2, by directory. They are 559 theorems, 117 definitions, 31 inductive types, two recursors and two constructors. Among the definitions without parameters are the categories of étale sheaves GlobalTheory.Et.Shv and GlobalTheory.EtC.Shv, the complexes GlobalTheory.EtC.Cx and GlobalTheory.EtC.AbCx, and the sheaves LateralTheory.E.EtaleTopologySheaves.SShv. Supporting Information, Section 4.
level witnesses (examples) count reached from the archive constant
1 (Type 0) Sigma.rec[2,0,0], PSigma.rec[2,1,1] 6 LateralTheory.KummerTheory.LHCut.coneObj_of
2 (Type 1) funext[2,2], PSigma[2,2], List.rec[2,1] 22 GlobalTheory.PlugPt.side_eq_upd
3 (Type 2) Sigma[2,2], PSigma[3,3], funext[3,3] 27 PositivityTheory.PrwZar.Z2.two_cls_eMap
4 (Type 3) PSigma[4,4], funext[4,4], List.rec[4,3] 13 LateralTheory.KummerTheory.NatLESPf.NatLES_of
5 (Type 4) PSigma[5,5], funext[5,5], List.rec[5,4] 13 GlobalTheory.EtC.res._proof_1
6 (Type 5) List.rec[6,5], Option.rec[6,5], List.brecOn[6,5] 6 GlobalTheory.allPrim_of_abelianDeRhamFree
7 (Type 6) none 0
Table 5. Full formers in the cone, level by level. “Count” is the number of full-former instantiations recorded in the dataset’s list of instantiations at high levels; at level 1 the instantiations Sigma[0,0], funext[1,1] and PSigma[1,1] are present as well, by the count of Supporting Information, Section 5. The last column names an archive constant without universe parameters from which one witness of the level is reached along the chain of first discoveries. Each of these constants lies in the closure of each of the five theorems, riemannHypothesis included. Supporting Information, Sections 5 and 7b.

Theorem 17 (the levels of the certified term).

  1. (a) The highest sort of any instantiation in the cone is \(7\), that is, Type 6. Exactly two instantiations contain Sort 7: outParam[7] and List.rec[7,5]. The instantiations that contain Sort 6 or Sort 7 number 90; they are instantiations of 79 constants of Lean’s core library (lists, options, finite ordinals, whole numbers, equality, the false proposition, binary products, the unit type, inhabited types, indexing classes, the marker outParam, the function panic, and the namespace Lean.Data.AC of the tactic ac_rfl).

  2. (b) The highest sort of any constant of the archive is \(3\), that is, Type 2, reached by 711 archive constants, 160 of them without universe parameters.

  3. (c) The cone contains a full former at each of the levels \(1,2,3,4,5,6\) (Table 5), and at each level one of them is reached from riemannHypothesis alone.

  4. (d) The cone contains no full former at level \(7\).

Proof. (a), (b) and (c) are computations on the dataset, carried out in the Supporting Information, Sections 2 to 7b. For (c), each full former in Table 5 is one of the instantiations listed after Definition 14, whose types contain the judgment of the stated form. The column “reached from” follows the chain of first discoveries from the witness to an archive constant without universe parameters. Such a constant has a single instantiation, so every instantiation on the chain below it is fixed by its body. That constant lies in the closure of riemannHypothesis (bit 1 of the column thm_mask of the dataset). For level 6 the chain passes through Ordinal.lift_iSup_add_one_lt_of_lt_cof[1,1], which is step 25 of the dataset’s chain to the highest sort (Table 6), and that chain begins in the closure of the archive constant named.

(d) A full former at level \(7\) needs a family of types of Sort 7, a variable \(\beta\) or \(M\) whose type ends in Sort 7, so the instantiation containing it contains Sort 7. By (a), only outParam[7] and List.rec[7,5] do. The constant outParam is the identity function on a sort, \(\texttt{outParam}\ \alpha=\alpha\), used to mark the binders of a class, and has no family. In List.rec[7,5] the family is the motive \(M:\texttt{List}\,\alpha\to\texttt{Sort 7}\) with \(\alpha:\texttt{Type 5}\), whose index List\(\,\alpha\) is a type of level \(6\). Form (iv) at level \(7\) would need \(\alpha:\texttt{Type 6}\). So neither is a full former at level \(7\).

5.2 The count

Theorem 18 (exactly six inaccessible cardinals).

  1. (a) In every standard model of the certified term, \(\kappa_1,\dots,\kappa_6\) are inaccessible cardinals. Consequently every theory that derives the existence of a standard model of the certified term derives that six inaccessible cardinals exist; and \(\mathsf{ZFC}_5\), if consistent, derives neither.

  2. (b) Under Sponsor B, \(\mathsf{ZFC}_6\) derives the existence of a standard model of the certified term. One is obtained from inaccessible cardinals \(\kappa_1<\dots<\kappa_6\) by putting \(\kappa_7=\beth_{\kappa_6^+}\) and \(\kappa_8=\beth_{\kappa_7+\omega}\), where \(\kappa_6^+\) is the least cardinal above \(\kappa_6\).

Proof. (a) By Theorem 17(c) the certified term contains a full former at each level from \(1\) to \(6\), and a standard model of the certified term validates them. By Theorem 15, \(\kappa_1,\dots,\kappa_6\) are inaccessible. The argument is carried out in \(\mathsf{ZFC}\), so a theory that derives the existence of such a model derives that six inaccessible cardinals exist. \(\mathsf{ZFC}_5\), if consistent, does not derive that, by Theorem 11(b).

(b) Argue in \(\mathsf{ZFC}_6\) with \(\kappa_1<\dots<\kappa_6\) inaccessible. The cardinal \(\kappa_6^+\) is regular, as every successor cardinal is under the axiom of choice. \(\kappa_7=\beth_{\kappa_6^+}\) is a strong limit, being \(\beth\) of a limit ordinal. Its cofinality is \(\kappa_6^+\): it is the supremum of the increasing values \(\beth_\xi\) with \(\xi<\kappa_6^+\), and fewer than \(\kappa_6^+\) cardinals below it are bounded by one of these values, since \(\kappa_6^+\) is regular. \(\kappa_8\) is a strong limit above \(\kappa_7\). By Sponsor B, it is enough to show that each \(U_n=V_{\kappa_n}\) contains the interpretation of every type that \(J\) places at level \(n\).

Levels 1 to 6. \(U_n\) is a Grothendieck universe by Theorem 7. It is closed under products and sums of families indexed by its members, under sets of functions and power sets, and under least sets closed under constructors whose arguments range over members, since such a set is reached by an iteration of length below \(\kappa_n\) and regularity keeps it inside. It is also closed under quotients, whose classes are subsets of members.

Level 7. A type that \(J\) places in Sort 7 is formed from Sort 6 and from constants and variables whose declarations contain Sort 7, by products, applications and function sets. The reason is that a product lies in Sort 7 only if its domain or its values do, and so on back to a sort or a declaration. By Theorem 17(a) and the list of the 90 instantiations in the Supporting Information, Section 6, the declarations containing Sort 7 are those of outParam[7], whose variable \(\alpha\) ranges over \(U_7\) and is returned unchanged, and of List.rec[7,5], whose motive \(M\) is the only family into Sort 7, indexed by the lists of a member \(A\) of \(U_6\). Every other ingredient is \(U_6\) itself, a member of \(U_6\), or a set built from these by finitely many products and function sets; such a set has rank below \(\kappa_6+\omega<\kappa_7\). A product in Sort 7 whose values vary over \(U_7\) is a product of values of \(M\), indexed by lists of \(A\) or by \(A\). It has fewer than \(\kappa_6\) factors, fewer than \(\mathrm{cf}(\kappa_7)=\kappa_6^+\), so the ranks of its factors are bounded below \(\kappa_7\), and it lies in \(U_7\). A set of functions between two members of \(U_7\) lies in \(U_7\), because \(\kappa_7\) is a limit ordinal. The inductive types of the 90 instantiations are declared at levels \(6\) or below. So \(U_7\) contains every type placed at level \(7\).

Level 8. The types placed in Sort 8 are the types of outParam[7] and List.rec[7,5] and the type \(\texttt{List}\,\alpha\to\texttt{Sort 7}\) of the motive. They are sets of functions over \(U_7\) or over functions into \(U_7\), with ranks below \(\kappa_7+\omega<\kappa_8\). So \(U_8\) contains them.

Consequence. The number \(k\) that the author’s paper [33] found unreported is \(6\). Read through the standard model, the certified term is a derivation in \(\mathsf{ZFC}_6\), set theory with six inaccessible cardinals. Six is the least number for that reading. The highest level of the term, Type 6, needs no inaccessible cardinal of its own, because the term forms no product or sum of an arbitrary family of types of that level. This is the fencepost by which the count of inaccessible cardinals is one less than the number of type levels, \(7\), from Type 0 to Type 6. Carneiro anticipated it in 2025, observing that a count of levels gives an upper bound and that a level can be read by less than a full universe [12]. The count of levels gives seven; the count of full formers gives six.

6 Where the six cardinals come from

6.1 The chain to the top level

The dataset records one chain of first discoveries from a main theorem to the instantiation of highest sort [4]. Its part below the archive is set out in Table 6, with what each step is. The archive constant at which it starts, GlobalTheory.allPrim_of_abelianDeRhamFree, has no universe parameters and lies in the closure of every one of the five theorems, so the whole chain belongs to the derivation of riemannHypothesis.

step sort instantiation what it is
10 1 GlobalTheory.allPrim_of_abelianDeRhamFree archive theorem; uses ranks of modules at the points of a spectrum
11 2 Module.rankAtStalk_prod[0,1,1] the rank at each prime of a product of two finite flat modules is the sum of the ranks; ring in Type 0, modules in Type 1
12 2 Module.finrank_prod[0,1,1] the same for finite free modules; proved from the next step
13 2 rank_prod[0,1,1] the rank of a product of free modules of any size, as a member of Cardinal[1], the cardinals of the types in Type 1
14–16 2 rank_eq_card_chooseBasisIndex, mk_eq_rank”, linearIndependent_le_basis the rank is the cardinal of any basis
17 2 linearIndependent_le_infinite_basis[0,1,1] the case of an infinite basis, by the infinite pigeonhole principle
18–21 2 Cardinal.exists_infinite_fiber, infinite_pigeonhole (universe parameter 1) a map from a large set to a smaller infinite one has a large fibre
22–25 2 Ordinal.iSup_lt_of_lt_cof, lift_iSup_add_one_lt_of_lt_cof[1,1] a supremum of fewer ordinals than the cofinality stays below
26 4 Ordinal.sSup_add_one_lt_of_lt_cof[1] its hypothesis compares the cardinal of a set of members of Ordinal[1], a member of Cardinal[2], with a cofinality; the proof lifts both to Cardinal[3]
27 4 Order.cof[3] cofinality of an order on a type in Type 3
28–30 5 Cardinal.lt_wf[3] the order of Cardinal[3], a type in Type 4, is well-founded
31 5 Function.Embedding.min_injective[4,3] in every family of types in Type 3 indexed by a type in Type 4 one member embeds into all; proved by Zorn’s lemma
32–36 5 Maximal.eq_of_subset[4], BooleanAlgebra.toBiheytingAlgebra[4], sdiff_sup_self’[4] Boolean algebras of subsets of a type in Type 4; the identity \((y\setminus x)\sqcup x=y\sqcup x\), proved with the tactic ac_rfl
37–39 5 Lean.Data.AC.Context.eq_of_norm[5], Context.var[5] the proof by reflection of ac_rfl: the terms become lists of variables of a context, a structure in Type 5
40 6 List.length[5] length of a list of elements of Type 5
41–42 6 List.brecOn[1,5], List.below[1,5] structural recursion compiled with below, whose values lie in Sort 6
43 7 List.rec[7,5] the recursor that defines below, with values in Sort 7
Table 6. The chain of first discoveries to the highest sort, below the archive (dataset file universes-witness.tsv; Supporting Information, Section 8). “Sort” is the highest sort of the instantiation.

The chain shows seven devices by which the levels rise without any change of mathematical content.

  1. (D1) The ordinals and the cardinals of the types in Type u form types in Type (u+1): Ordinal[u] and Cardinal[u] lie in Type (u+1). A set of such ordinals is therefore one universe above the types whose ordinals they are, and its cardinal one universe above that.

  2. (D2) Cardinals of different universes are compared by lifting them to a common higher universe; the proof of step 26 lifts to Cardinal[u+2].

  3. (D3) The tactic ac_rfl stores the terms it rearranges in a structure, declared for a type of any sort Sort u, that lies in Type u, one universe above that type.

  4. (D4) The encoding of structural recursion by below and brecOn places the recursive results in Sort (max (u+1) m) and defines them by a recursor whose values lie one sort higher, as the dataset’s method note records [4].

  5. (D5) The marker outParam on a binder of a class takes the sort of that binder, one universe above the types it ranges over.

  6. (D6) A category whose objects are the structures in Type u, such as the category of abelian groups AddCommGrpCat[u], is a type in Type (u+1), and categories of sheaves, complexes and derived categories built over it lie in Type (u+1) or higher.

  7. (D7) Transfinite constructions, such as the construction of injective objects in a Grothendieck abelian category by transfinite composition, index their stages by ordinals one universe above the category.

6.2 Where the high levels are entered

Follow each instantiation of highest sort \(4\) or more back along its discovery parents while the parent is itself of high level. The last instantiation reached is the root of the chain, the place where the derivation enters the high levels. Table 7 gives the roots.

from sort instantiations principal roots (instantiations under each; where the root is entered)
4 10,398 87 roots. Ordinal.sSup_add_one_lt_of_lt_cof[1] 3,530 (Mathlib, step 25 of Table 6);
AddCommGrpCat.instAbelian[2] 1,326 (archive: LateralTheory.KummerTheory.NatLESPf.NatLES_of);
CategoryTheory.Functor.op_comp_isSheaf_of_isSheaf 1,316 (Mathlib: sheaves on the Zariski site);
CategoryTheory.IsGrothendieckAbelian.enoughInjectives[1,1,2] 1,217 (archive: GlobalTheory.EtC.res._proof_1);
homology sequences of functors at levels \([2,2,2,3]\) 904 (archive: NatLES_of)
5 1,999 7 roots. Ordinal.sSup_add_one_lt_of_lt_cof[1] 1,885; enoughInjectives[1,1,2] 83;
AddCommGrpCat.instAbelian[2] 22; three roots in homology sequences and triangulated shifts, 8; Cardinal.lt_wf[1] 1
6 90 2 roots. Ordinal.sSup_add_one_lt_of_lt_cof[1] 89; enoughInjectives[1,1,2] 1
7 2 1 root. Ordinal.sSup_add_one_lt_of_lt_cof[1] 2
Table 7. Roots of the chains of first discoveries into the high levels (Supporting Information, Section 7).

The full formers of Table 5 have the following roots, by the same tracing. At level 6, all six descend from Ordinal.sSup_add_one_lt_of_lt_cof[1], that is, from the chain of Table 6. At level 5, seven descend from that root and six from enoughInjectives[1,1,2], entered from the archive’s injective resolutions GlobalTheory.EtC.res. At level 4, six descend from Cardinal.lt_wf[1] and six from Ordinal.sSup_add_one_lt_of_lt_cof[0], both cardinal and ordinal arithmetic at lower universe parameters. The last, funext[4,4], descends from AddCommGrpCat.instAbelian[2], entered from the archive’s long exact sequences in Kummer theory. At level 3 they descend from eight roots, four of them entered directly from the archive: its use of ac_rfl on an object of Type 1, a finiteness lemma for function types, injective resolutions and abelian groups at Type 2. At levels 1 and 2 they are everywhere, in the archive’s own declarations as in the libraries. The archive’s structure constructor GlobalTheory.Mem.R3.TwArgs.mk uses PSigma[2,2] directly, for instance.

Consequence. The six cardinals divide into two groups. The first three, at Type 0, Type 1 and Type 2, belong to the levels at which the archive itself is written: its schemes and modules, and its categories of étale sheaves at Type 2 (Table 4). The last three, at Type 3, Type 4 and Type 5, are demanded only by library proofs reached from the archive at a few places, and the devices (D1) to (D7) raise the level at each step of those proofs. The single most consequential step is the library’s derivation of the rank of a product of finite free modules from the theory of arbitrary cardinals. That derivation passes through the infinite pigeonhole principle, cofinalities of ordinals and the well-ordering of cardinals by Zorn’s lemma, to a Boolean-algebra identity proved by ac_rfl. In the dataset’s tree of first discoveries, that derivation alone carries the term to its sixth inaccessible cardinal and to its highest sort.

7 The premise of truth and its rung

The Riemann hypothesis, stated by Bernhard Riemann (1826–1866) in 1859, is equivalent to a \(\Pi_1\) sentence. Martin Davis (1928–2023), Yuri Matiyasevich (born 1947) and Julia Robinson (1919–1985) gave such a sentence in 1976, in the form of a Diophantine equation that has no solution exactly when the hypothesis holds [31]. The author’s paper with R. J. Buchanan proves that a literal arithmetization of a finite verifier for the hypothesis is a \(\Pi_1\) sentence true exactly when the hypothesis holds [35]. The equivalence is a theorem of ordinary mathematics, derivable in \(\mathsf{ZFC}\). Write \(\mathrm{RH}_{\Pi_1}\) for such a sentence.

Theorem 19 (the rung of the truth premise). Under Sponsors A, B and C:

  1. (a) \(\mathsf{ZFC}_6\) derives the Riemann hypothesis, and so derives \(\mathrm{RH}_{\Pi_1}\);

  2. (b) if \(\mathsf{ZFC}_6\) is consistent, \(\mathrm{RH}_{\Pi_1}\) is true;

  3. (c) \(\mathsf{ZFC}_7\) derives \(\mathrm{Con}(\mathsf{ZFC}_6)\), and \(\mathsf{ZFC}_6\), if consistent, does not.

Proof. (a) By Sponsor A, the certified term is a derivation by Lean’s rules of the five theorems. By Theorem 18(b), under Sponsor B, \(\mathsf{ZFC}_6\) derives the existence of a standard model validating the judgments of the term. In it, the proof of riemannHypothesis is a member of the interpretation of its statement. The interpretation of a proposition is \(\emptyset\) or \(\{\emptyset\}\), and only \(\{\emptyset\}\) has a member. So \(\mathsf{ZFC}_6\) derives that the interpretation of the statement is \(\{\emptyset\}\): the sentence riemannHypothesis holds in the model. By Sponsor C, \(\mathsf{ZFC}\) derives that this is equivalent to the Riemann hypothesis, and by the theorem of Davis, Matiyasevich and Robinson, to \(\mathrm{RH}_{\Pi_1}\). (b) Write \(\mathrm{RH}_{\Pi_1}\) as “for every \(x\), \(\theta(x)\)” with \(\theta\) bounded. \(\mathsf{ZFC}_6\) derives the seven axioms of \(\mathsf{Q}\), read in \(\omega\). If \(\mathrm{RH}_{\Pi_1}\) were false, \(\theta\) would fail at some whole number \(m\). That failure is a finite computation, so \(\mathsf{Q}\), and with it \(\mathsf{ZFC}_6\), would derive the negation of \(\theta(\overline{m})\) (Theorem 9(a)). \(\mathsf{ZFC}_6\) also derives \(\theta(\overline{m})\), by taking the instance \(m\) of \(\mathrm{RH}_{\Pi_1}\). So \(\mathsf{ZFC}_6\) would derive a statement and its negation. Hence, if \(\mathsf{ZFC}_6\) is consistent, \(\mathrm{RH}_{\Pi_1}\) is true. (c) \(\mathsf{ZFC}_7\) asserts seven inaccessible cardinals. Below the seventh, \(\kappa_7\), lie six, so \(V_{\kappa_7}\) satisfies every axiom of \(\mathsf{ZFC}_6\) (Theorem 8). By the soundness theorem, a formula derivable from \(\mathsf{ZFC}_6\) holds in \(V_{\kappa_7}\), and \(0=1\) does not, so no derivation from \(\mathsf{ZFC}_6\) ends in \(0=1\): \(\mathsf{ZFC}_7\) derives \(\mathrm{Con}(\mathsf{ZFC}_6)\) (Theorem 10). \(\mathsf{ZFC}_6\), if consistent, does not derive its own consistency statement, by Gödel’s second theorem (Theorem 11(a)).

Consequence. The certified result, stated with its system and its count, reads: set theory with six inaccessible cardinals derives the Riemann hypothesis, under the sponsors of checking, of the model and of the bridge. The passage from that result to “the Riemann hypothesis is true” is sponsored by the consistency of \(\mathsf{ZFC}_6\). That premise is not a theorem of \(\mathsf{ZFC}_6\) unless \(\mathsf{ZFC}_6\) is inconsistent, and it is a theorem of \(\mathsf{ZFC}_7\). The premise of truth therefore sits at the seventh rung. A proof of it in \(\mathsf{ZFC}_7\) rests in turn on the consistency of \(\mathsf{ZFC}_7\), which sits at the eighth, and so on up the ladder that Alan Turing (1912–1954) studied in 1939 [29]. The paper [33] placed the certified result at an unnamed rung \(k\) with the premise at \(k+1\); the rungs are \(6\) and \(7\). In the terms of [34], the certified derivation, under its sponsors, is a derivation of the hypothesis in \(\mathsf{ZFC}_6\), and therefore a derivation in \(\mathsf{ZFC}_6\) of at least one selected closure channel of the hypothesis, a statement that a decidable condition holds at every stage of one of its selected ladders: by the book’s bridge-necessity theorem, a theory that derives a proposition with an exact selected representation derives one of its selected closure channels (Theorems 21.26 and 21.31 of the book’s part on logical stratification). The uniform certification of the all-stage statements that \(\mathsf{ZFC}_6\) derives is the reflection principle of \(\mathsf{ZFC}_6\) for \(\Pi_1\) sentences, which \(\mathsf{ZFC}_6\) does not derive if it is consistent (Theorem 21.17 of that part). The book shows that, once a proposition has an exact selected representation, the foundational machinery determines where its truth can and cannot enter a theory (Remark 21.42 of that part). Theorem 19 measures that place for the certified term: the truth of its selected closure channel enters on the seventh rung, which derives the consistency of \(\mathsf{ZFC}_6\) and its reflection principle.

8 The six cardinals and the \(\omega\)-completion

Corollary 20 (six rungs and the seventh step).

  1. (a) For each \(j=0,1,\dots,5\), \(\mathsf{ZFC}_6\) derives \(\mathrm{RFN}(\mathsf{ZFC}_j)\): the \(\omega\)-completion step of each of the six rungs below it.

  2. (b) For each \(j=0,1,\dots,5\), if \(\mathsf{ZFC}_{j+1}\) is consistent, the step \(\mathrm{RFN}(\mathsf{ZFC}_j)\) added to \(\mathsf{ZFC}_j\) does not yield the \((j+1)\)-th inaccessible cardinal.

  3. (c) The premise of Theorem 19(b), \(\mathrm{Con}(\mathsf{ZFC}_6)\), is the sentence of \(\mathrm{RFN}(\mathsf{ZFC}_6)\) for the formula \(0=1\). \(\mathsf{ZFC}_6\) does not derive it if consistent, and \(\mathsf{ZFC}_7\) derives the whole of \(\mathrm{RFN}(\mathsf{ZFC}_6)\).

Proof. (a) Fix \(j\le5\). \(\mathsf{ZFC}_6\) asserts six inaccessible cardinals, hence the \(j+1\) that \(\mathsf{ZFC}_{j+1}\) asserts, so it derives everything \(\mathsf{ZFC}_{j+1}\) derives. \(\mathsf{ZFC}_{j+1}\) derives each sentence of \(\mathrm{RFN}(\mathsf{ZFC}_j)\) by the argument of Theorem 10: for the \((j+1)\)-th inaccessible cardinal \(\kappa\), the set \(V_\kappa\) satisfies \(\mathsf{ZFC}_j\); by the soundness theorem every formula derivable from \(\mathsf{ZFC}_j\) holds in \(V_\kappa\); and an arithmetic formula holds in \(V_\kappa\) exactly when it is true, because \(V_\kappa\) contains \(\omega\) and all its subsets. (b) The \((j+1)\)-th inaccessible cardinal \(\kappa\) gives a set \(V_\kappa\) in which \(\mathsf{ZFC}_j\), \(\mathrm{RFN}(\mathsf{ZFC}_j)\) and “there are no \(j+1\) inaccessible cardinals” all hold. So the first two together do not derive the \((j+1)\)-th inaccessible cardinal unless \(\mathsf{ZFC}_{j+1}\) is inconsistent; this is Theorem 12 with \(k=j\). (c) The sentence of \(\mathrm{RFN}(\mathsf{ZFC}_6)\) for the formula \(0=1\) reads “if \(\mathsf{ZFC}_6\) derives \(0=1\), then \(0=1\).” Since \(0=1\) is false, it says that \(\mathsf{ZFC}_6\) does not derive \(0=1\), which is \(\mathrm{Con}(\mathsf{ZFC}_6)\). \(\mathsf{ZFC}_6\), if consistent, does not derive it, by Gödel’s second theorem. \(\mathsf{ZFC}_7\) derives the whole of \(\mathrm{RFN}(\mathsf{ZFC}_6)\) by the argument of (a) with \(j=6\).

Consequence. The author’s paper [33] proved that whoever passes from “Lean derived the sentence” to “the sentence is true” assumes a step of the \(\omega\)-completion of Lean’s rules, a step the rules do not take (its Proposition on the \(\omega\)-rule). The book [34] proves that the passage from the derivations of the finite initial parts of a decidable ladder, one for each length, to its all-stage statement is the \(\omega\)-rule (Theorem 4.6 of its part on bridge necessity and the barrier hierarchy). It identifies the \(\omega\)-closure of a \(\Pi_1\) sentence as the semantic external completion obtained once its truth is fixed, and proves that neither a computable classifier nor a schema inside one consistent theory can replace it across a broad class of such sentences (Theorem 21.59 and Remark 21.60 of its part on logical stratification). The present results locate that step on the ladder of set theory. Each inaccessible cardinal contains the \(\omega\)-completion step of the rung below it, for every arithmetic sentence (Theorem 10). It also asserts a completed universe of sets, \(V_\kappa\), in which the whole rung below holds, and that is more than the step (Theorem 12). An inaccessible cardinal is in this exact sense the strong, set-theoretic form of an \(\omega\)-completion step. Read through the standard model, the certified term stands on six such rungs, taken as axioms. Its passage to truth takes a seventh step, the \(\omega\)-completion step of the sixth rung, which the six rungs do not take.

9 Whether the derivation needs its six cardinals

9.1 No general procedure removes universes

In this paper, to remove the universes of a derivation means to replace them by sets whose existence a weaker theory proves, so that the same argument is carried out in that weaker theory. Nothing infinite is given up by such a replacement: \(\mathsf{ZFC}\), and finite-order arithmetic as well (Definition 30), proves the existence of the infinite set of whole numbers and of the sets of every finite level built on it. What is given up is the assumption of an inaccessible cardinal, a size that \(\mathsf{ZFC}\) does not prove to exist. The ladder of consistency premises is not given up either: the premise of truth of the replaced derivation stands one rung above the weaker theory (Proposition 23).

Theorem 21 (universes are not removable in general). For every whole number \(k\) the \(\Pi_1\) sentence \(\mathrm{Con}(\mathsf{ZFC}_k)\) is derivable in Lean, and, if \(\mathsf{ZFC}_k\) is consistent, it is not derivable in \(\mathsf{ZFC}_k\). In particular Lean derives \(\mathrm{Con}(\mathsf{ZFC})\), which \(\mathsf{ZFC}\), if consistent, does not derive.

Proof. \(\mathsf{ZFC}_{k+1}\) derives \(\mathrm{Con}(\mathsf{ZFC}_k)\) by Theorem 10. Bresolin and Mamino prove that every arithmetic sentence derivable in \(\mathsf{ZFC}_\infty\) has a Lean derivation; their translation codes \(\mathsf{ZFC}\) with \(n\) inaccessible cardinals into the type theory with \(n+2\) universes [10]. \(\mathsf{ZFC}_\infty\) contains \(\mathsf{ZFC}_{k+1}\), so Lean derives \(\mathrm{Con}(\mathsf{ZFC}_k)\). For \(k=0\) a derivation also exists in a public formalization. Jesse Michael Han and Floris van Doorn proved in Lean 3 in 2020 the theorem independence_of_CH: independent ZFC CH_f, with no hypothesis [13]. A theory in which some sentence is independent derives neither that sentence nor its negation, so it is consistent, since an inconsistent theory derives every sentence. That \(\mathsf{ZFC}_k\), if consistent, does not derive \(\mathrm{Con}(\mathsf{ZFC}_k)\) is Theorem 11(a).

Consequence. No procedure turns every Lean derivation of a \(\Pi_1\) sentence into a derivation in \(\mathsf{ZFC}\), or into one in \(\mathsf{ZFC}_k\) for a fixed \(k\). Such a procedure, applied to the derivation of \(\mathrm{Con}(\mathsf{ZFC}_k)\), would give \(\mathsf{ZFC}_k\) a derivation of its own consistency. Whether a particular derivation needs the inaccessible cardinals that its standard model requires is therefore a property of that derivation, and whether a particular sentence needs them is a property of the set of all its derivations. Neither is settled by the form of the sentence, and in particular neither is settled by the fact that the Riemann hypothesis is \(\Pi_1\).

9.2 The chain to the top level, at its own level

The chain of Table 6 enters the high levels from step 11, the rank at each prime of a product of two finite flat modules. At a prime \(\mathfrak p\) of the ring \(R\), the rank is that of the localizations at \(\mathfrak p\), which are finite flat modules over the local ring \(R_{\mathfrak p}\). Finite flat modules over a local ring are free, and localization carries a product of two modules to the product of their localizations. The Mathlib proof of step 11 consists of that isomorphism of localizations followed by step 12 [5]. What remains is the statement of step 12 for free modules with finite bases, and it has the following proof, which stays at the level of the modules.

Proposition 22 (the rank of a product of finite free modules). Let \(R\) be a commutative ring in which \(0\neq1\), and let \(M\) and \(N\) be modules over \(R\) with bases \(e_1,\dots,e_m\) and \(f_1,\dots,f_n\). Then:

  1. (a) the \(m+n\) elements \((e_1,0),\dots,(e_m,0),(0,f_1),\dots,(0,f_n)\) form a basis of \(M\times N\);

  2. (b) any two finite bases of a module over \(R\) have the same number of elements;

  3. (c) consequently the rank of \(M\times N\), the common number of elements of its finite bases, is \(m+n\), the sum of the ranks of \(M\) and \(N\).

Proof. (a) Every element \((x,y)\) of \(M\times N\) is a combination of the given elements. Write \(x=a_1e_1+\dots+a_me_m\) and \(y=b_1f_1+\dots+b_nf_n\) with coefficients in \(R\); then \((x,y)=a_1(e_1,0)+\dots+a_m(e_m,0)+b_1(0,f_1)+\dots+b_n(0,f_n)\). They are independent. If such a combination equals \((0,0)\), then its first coordinate \(a_1e_1+\dots+a_me_m\) is \(0\) in \(M\) and its second \(b_1f_1+\dots+b_nf_n\) is \(0\) in \(N\). By the independence of the two given bases every \(a_i\) and every \(b_j\) is \(0\).

(b) First a fact about vector spaces: if \(q\) vectors \(v_1,\dots,v_q\) span a vector space over a field, then any \(q+1\) vectors \(w_1,\dots,w_{q+1}\) in it are dependent. The proof is by induction on \(q\). For \(q=0\) the space is \(\{0\}\) and \(w_1=0\). For \(q\ge1\) write \(w_i=c_{i1}v_1+\dots+c_{iq}v_q\). If every \(c_{iq}\) is \(0\), the vectors \(w_1,\dots,w_q\) lie in the span of \(v_1,\dots,v_{q-1}\) and are dependent by the inductive hypothesis. Otherwise renumber so that \(c_{q+1,q}\neq0\), and put \(w_i'=w_i-(c_{iq}/c_{q+1,q})\,w_{q+1}\) for \(i\le q\). These \(q\) vectors lie in the span of \(v_1,\dots,v_{q-1}\), so by the inductive hypothesis \(d_1w_1'+\dots+d_qw_q'=0\) with some \(d_i\neq0\). Expanded, this is a relation among \(w_1,\dots,w_{q+1}\) in which \(w_i\) has the coefficient \(d_i\) for \(i\le q\), so the \(w\)’s are dependent. Now let a module \(P\) over \(R\) have bases of \(p\) and of \(q\) elements. Let \(I\) be a maximal ideal of \(R\). It exists because \(0\neq1\), by Zorn’s lemma applied to the proper ideals of \(R\), which are subsets of \(R\). Then \(F=R/I\) is a field. The quotient \(P/IP\), with \(IP\) the set of combinations of elements of \(P\) with coefficients in \(I\), is a vector space over \(F\). The images of either basis form a basis of it: they span because the basis spans \(P\), and they are independent because a combination \(c_1u_1+\dots+c_pu_p\) of basis elements that lies in \(IP\) has all its coefficients in \(I\): it equals some \(r_1x_1+\dots+r_sx_s\) with every \(r_j\in I\) and \(x_j\in P\), and writing each \(x_j\) in the basis and comparing coordinates, which are unique, shows that each \(c_i\) is a combination of the \(r_j\) with coefficients in \(R\), hence lies in \(I\). By the fact just proved, \(p\le q\) and \(q\le p\).

(c) follows from (a) and (b).

Consequence. The proof uses the ring, the modules, finite lists of their elements and whole numbers. It uses no cardinal and no ordinal of any type, and its one use of Zorn’s lemma concerns subsets of \(R\). Written in Lean, it lies at the level of the modules, Sort 2 for modules in Type 1. At step 11 of Table 6, therefore, the content of the steps 12 to 43 is this proposition. Those steps raise the term from Sort 2 to Sort 7 and carry its six full formers at level 6, without adding to what is proved there. In the tree of first discoveries, all six full formers at level 6 and both instantiations at Sort 7 descend from this one chain. What the closure would contain after the replacement of its proof is computed by the method of the dataset [4] on the replaced term; the tree records one parent for each instantiation and does not settle that by itself.

9.3 Counterparts without universes

Table 8 sets beside each source of a cardinal the established mathematics that carries the same content without universes.

level source in the certified term counterpart without universes
6 ranks of products of modules derived from arbitrary cardinals (Table 6) Proposition 22: finite bases and the invariant number of basis elements over a commutative ring
5 injective objects of Grothendieck abelian categories by transfinite composition, entered from the archive’s injective resolutions Grothendieck proved in 1957, in set theory without universes, that an abelian category with exact filtered colimits and a generator has enough injective objects [20]; sheaves on an essentially small site form such a category
4 the abelian category of groups of Type 2 and homology sequences, entered from the archive’s Kummer theory; well-ordering of Cardinal[1] homological algebra of abelian groups as carried out in \(\mathsf{ZFC}\) (Saunders Mac Lane (1909–2005), 1963 [21]); Feferman showed in 1969 that category theory with a symbol for a universe of small sets can be carried out conservatively over \(\mathsf{ZFC}\) [22]
3 the archive’s categories of étale sheaves at Type 2; its use of ac_rfl at Type 1; ordinal and sheaf lemmas the comparison lemma of SGA 4, Exposé III, Théorème 4.1, replaces a site by a small generating subsite with the same sheaves [18]; Pierre Deligne (born 1944) presented étale cohomology in SGA 4\(\frac12\) (1977) [19]; Colin McLarty (born 1951) founded all the theorems of SGA, with derived categories, on finite-order arithmetic, far below \(\mathsf{ZFC}\) [24]
1–2 Type 0 and Type 1 themselves: dependent sums, function extensionality, list recursion, in the archive and in all of Mathlib the mathematics of these levels is ordinary mathematics of sets; the demand comes from the standard model, which requires a universe for every level carrying a full former (Theorem 15), whatever the content of the derivation
Table 8. The sources of the six cardinals and their counterparts without universes.

Consequence. Each of the six cardinals is accounted for. The top three are the bookkeeping of library proofs of statements whose content lies at lower levels. The bottom three are the levels of the tools in which the archive is written, schemes, modules and étale sheaves, and those tools have been founded on finite-order arithmetic, far below \(\mathsf{ZFC}\); the archive’s arguments built from these tools are carried along with them. As far as the dataset’s tree of first discoveries records their sources, the cardinals of the certified term are thus those of its tools and of its libraries’ bookkeeping, and the term contains no indication that the Riemann hypothesis itself needs an inaccessible cardinal. The question has a precedent. Andrew Wiles (born 1953) published his proof of Fermat’s Last Theorem in 1995, and it cites results written with Grothendieck’s universes. McLarty examined in 2010 what the proof needs and in 2020 founded the large structures on finite-order arithmetic [23, 24]. Kevin Buzzard (born 1968) stated in 2025 that the proof draws its étale cohomology from SGA 4\(\frac12\), which uses no universes, while a Lean formalization of it will use them because of the software [12]. A Lean derivation of the theorem was released in September 2026 [84], and Section 10.6 places the theorem and that derivation on the ladder. The first half of that distinction applies here. The universes are in the certified term, and the term shows that six of them suffice for its standard model. It does not show that the hypothesis needs them. Nor does it show that the hypothesis can be derived with fewer: for Fermat’s Last Theorem the replacement was carried out on a proof that had been refereed and read, and for the certified term no replacement has been carried out (Section 10.6).

9.4 What a derivation in a weaker theory would change

Proposition 23 (the premise moves down the ladder and stays one rung above). Let \(T\) be a theory whose axioms are recognized by a computation and which derives the axioms of Peano arithmetic, read in \(\omega\) if \(T\) is a set theory. Suppose \(T\) derives \(\mathrm{RH}_{\Pi_1}\). Then:

  1. (a) if \(T\) is consistent, \(\mathrm{RH}_{\Pi_1}\) is true;

  2. (b) if \(T\) is consistent, \(T\) does not derive \(\mathrm{Con}(T)\);

  3. (c) if \(T\) is \(\mathsf{ZFC}_j\), then \(\mathsf{ZFC}_{j+1}\) derives \(\mathrm{Con}(T)\); if \(T\) is Peano arithmetic, \(\mathsf{ZFC}\) derives \(\mathrm{Con}(T)\).

Proof. (a) Write \(\mathrm{RH}_{\Pi_1}\) as “for every \(x\), \(\theta(x)\)” with \(\theta\) bounded. If it were false, \(\theta\) would fail at some \(m\). \(\mathsf{Q}\), whose axioms \(T\) derives, would derive that failure, because it is a finite computation (Theorem 9(a)). \(T\) would also derive \(\theta(\overline{m})\) from \(\mathrm{RH}_{\Pi_1}\), and so it would be inconsistent. (b) This is Gödel’s second theorem for \(T\). (c) For \(\mathsf{ZFC}_j\): in \(\mathsf{ZFC}_{j+1}\) the \((j+1)\)-th inaccessible cardinal \(\kappa\) gives a set \(V_\kappa\) that satisfies \(\mathsf{ZFC}_j\) (Theorem 8), and by the soundness theorem no derivation from \(\mathsf{ZFC}_j\) ends in \(0=1\). For Peano arithmetic, \(\mathsf{ZFC}\) proves that the structure \(\omega\), with its addition and multiplication, satisfies every axiom of Peano arithmetic, the induction axioms because every subset of \(\omega\) with \(0\) that is closed under successor is \(\omega\). By the soundness theorem no derivation from those axioms ends in \(0=1\).

Consequence. Suppose a derivation of the hypothesis is produced in \(\mathsf{ZFC}_j\) with \(j<6\), in \(\mathsf{ZFC}\), or in Peano arithmetic. Its truth premise becomes the consistency of that theory. The premise moves down the ladder; it is not removed. It remains one rung above the theory in which the derivation is written, as it is for every formal derivation of a \(\Pi_1\) sentence. The cardinals of the certified term decide which rung carries the premise. They do not decide whether a rung carries it. This is the regress of [34]: a universal certification of soundness is in effect a reflection principle, and each such certification moves to a strictly stronger theory (Theorem 21.4 and Remark 21.5 of its part on the truncated quasiconformal energy).

9.5 What determines the least numbers

Two least numbers are in question, and each is determined by a definite construction.

The least levels at which the certified term itself checks are determined by a computation on the exported term. Replace every concrete level written in a declaration without universe parameters by an unknown. Collect the inequalities between levels that the kernel’s checks impose. Compute the least solution. Then count, by Theorem 15, the levels carrying full formers in the result. This determines how many of the six cardinals survive with every proof left as it is. Around 2019 Carneiro wrote, for Lean 3, a program that counts the universe levels used by a proof, and, as Buzzard recalled in 2025, the counts were higher than its users expected [12]. James E. Hanson proposed in 2025 a semi-automatic interpretation of the levels by approximate universes, built from the sets of hereditary size below a cardinal together with forcing [12].

The least rung at which the Riemann hypothesis is derivable is determined by derivations. A derivation in \(\mathsf{ZFC}_j\), in \(\mathsf{ZFC}\), or in Peano arithmetic fixes an upper bound, and by Proposition 23 fixes the rung of its premise. The author’s paper [33] gives the other route (its Proposition that independence yields truth). A proof that the \(\Pi_1\) form of the hypothesis is independent of a system that derives the correct finite computations establishes the hypothesis, and shows that the system’s rung is passed. Harvey Friedman (born 1948) conjectured that every theorem of this kind published in the Annals of Mathematics is derivable in elementary arithmetic, far below Peano arithmetic. Jeremy Avigad set out in 2003 the evidence for that conjecture from number theory [32]. The conjecture is a measure of what proof theorists expect; it is not a derivation. The book [34] records in its introduction the same implication from independence to truth for the arithmetic form of the hypothesis, and observes that such implications about a single instance are consistent with its uniform diagnosis, which concerns what the exact form of the hypothesis forces across all of its exact witness packages. That diagnosis answers a different question from the least rung. The book proves that the exact witness package of the hypothesis forces uniformly none of the labels true, false, provable, refutable, unprovable, unrefutable or independent (Theorem 12.18 of its part on selected witness fibres and uniform logical nullity), and that a bridge resolving the hypothesis, if one exists, is singular to the hypothesis’s own selected ladder, since no generic, uniform, computable or same-theory bridge schema dissolves the ladder in one stroke (Corollary 21.61 and Remark 21.62 of its part on logical stratification). For a derivation of the hypothesis in a particular theory, the conjunction of the axioms it uses is a bridge in the book’s sense, a statement that implies a selected closure channel (Definition 21.29 of that part), and by Proposition 23 the certification of its truth stands one rung above that theory.

10 Refutation, affirmation, and why the hypothesis remains open

The preceding sections measured where the certified derivation stands. This section determines what kind of settlement the hypothesis admits, and by what means one could be reached: a finite computation, a derivation on a rung of the ladder, a quantum computer, new axioms about transfinite numbers, or a device that completes infinitely many steps. It also sets the hypothesis beside Fermat’s Last Theorem, a sentence of the same form that is derived on the bottom rung, and it determines what the certified derivation reduces the hypothesis to, what removing its universes would require, and why no rung above its premise closes the ladder. The two possible answers are of different kinds. The answer “false” would be settled by one whole number and a computation that anyone can repeat. The answer “true” has no such certificate, and none of these means supplies one. On that asymmetry the section bases the position of the paper: the hypothesis remains open.

10.1 What a finite check certifies

Definition 24 (finite certificate). Let \(\sigma\) be a \(\Sigma_1\) sentence “for some \(y\), \(\psi(y)\),” with \(\psi\) bounded. A whole number \(n\) is a finite certificate for \(\sigma\) when \(\psi(\overline{n})\) is true. Checking the certificate means deciding \(\psi(\overline{n})\), which is a finite computation. A sentence is finitely certified when it is a \(\Sigma_1\) sentence for which a finite certificate has been exhibited and checked.

A finitely certified sentence is true on the strength of the computation that checks it: anyone can repeat that computation, and no axiom, theory or consistency statement enters. By Theorem 9(a), Robinson arithmetic \(\mathsf{Q}\) derives every such sentence, and so does every theory that derives the axioms of \(\mathsf{Q}\).

Proposition 25 (refutation is finite; affirmation is sponsored). Write \(\mathrm{RH}_{\Pi_1}\) as “for every \(x\), \(\theta(x)\),” with \(\theta\) bounded (Section 7).

  1. (a) If the hypothesis is false, its negation “for some \(x\), not \(\theta(x)\)” has a finite certificate, and every theory that derives the axioms of \(\mathsf{Q}\) derives the negation of \(\mathrm{RH}_{\Pi_1}\).

  2. (b) Let \(\sigma\) be any \(\Sigma_1\) sentence. The sentence “\(\sigma\) implies \(\mathrm{RH}_{\Pi_1}\)” is equivalent to a \(\Pi_1\) sentence, and when \(\sigma\) is true it is true exactly when the hypothesis is true.

  3. (c) Let \(T\) be a theory whose axioms are recognized by a computation and which derives the axioms of Peano arithmetic, and suppose that \(T\) derives \(\mathrm{RH}_{\Pi_1}\). If \(T\) is consistent, \(\mathrm{RH}_{\Pi_1}\) is true. If \(T\) is consistent, \(T\) derives neither \(\mathrm{Con}(T)\) nor the sentence of its reflection principle \(\mathrm{RFN}(T)\) for the formula “\(x=1\)”; in particular \(T\) does not derive all of \(\mathrm{RFN}(T)\).

Proof. (a) If the hypothesis is false, then \(\mathrm{RH}_{\Pi_1}\) is false, so there is a whole number \(m\) at which \(\theta\) fails. Since \(\theta\) is bounded, deciding \(\theta(\overline{m})\) is a finite computation, and its result is “false.” So \(m\) is a finite certificate for the \(\Sigma_1\) sentence “for some \(x\), not \(\theta(x)\).” By Theorem 9(a), \(\mathsf{Q}\) derives “not \(\theta(\overline{m})\),” and from it, by the rule that passes from an instance to “for some \(x\),” the sentence “for some \(x\), not \(\theta(x)\),” which is the negation of \(\mathrm{RH}_{\Pi_1}\). A theory that derives the axioms of \(\mathsf{Q}\) derives everything that \(\mathsf{Q}\) derives.

(b) Write \(\sigma\) as “for some \(y\), \(\psi(y)\),” with \(\psi\) bounded. The sentence “\(\sigma\) implies \(\mathrm{RH}_{\Pi_1}\)” says: if some \(y\) satisfies \(\psi\), then every \(x\) satisfies \(\theta\). Equivalently: for every \(y\) and every \(x\), either \(\psi(y)\) fails or \(\theta(x)\) holds. A statement holds for every pair of whole numbers \(y,x\) exactly when, for every whole number \(z\), it holds for every \(y<z\) and every \(x<z\), because every pair lies below some \(z\). So the implication is equivalent to “for every \(z\): for every \(y<z\) and every \(x<z\), not \(\psi(y)\) or \(\theta(x)\).” The part after “for every \(z\)” is bounded, so this is a \(\Pi_1\) sentence. If \(\sigma\) is true, “not \(\sigma\)” is false, so the implication is true exactly when \(\mathrm{RH}_{\Pi_1}\) is true, which is exactly when the hypothesis is true.

(c) Let \(\mathrm{RH}_{\Pi_1}\) be false while \(T\) derives it. By (a), \(\mathsf{Q}\) derives the negation of \(\mathrm{RH}_{\Pi_1}\), and \(T\) derives the axioms of \(\mathsf{Q}\), so \(T\) derives both \(\mathrm{RH}_{\Pi_1}\) and its negation, and \(T\) is not consistent. Hence, if \(T\) is consistent, \(\mathrm{RH}_{\Pi_1}\) is true. By Gödel’s second theorem, as stated in Theorem 11, a consistent \(T\) does not derive \(\mathrm{Con}(T)\). Among the sentences of \(\mathrm{RFN}(T)\) (Definition 5) is the one for the formula “\(x=1\),” where \(1\) is the numeral \(S(0)\): for every whole number \(n\), if \(T\) derives \(\overline{n}=1\), then \(n=1\). At \(n=0\) it says: if \(T\) derives \(0=1\), then \(0=1\). The first axiom of \(\mathsf{Q}\) states that \(0\) is the successor of no number, so \(\mathsf{Q}\), and with it \(T\), derives “not \(0=1\).” From this sentence of \(\mathrm{RFN}(T)\) and “not \(0=1\),” \(T\) would derive “\(T\) does not derive \(0=1\),” which is \(\mathrm{Con}(T)\). Since a consistent \(T\) does not derive \(\mathrm{Con}(T)\), it does not derive this sentence of \(\mathrm{RFN}(T)\).

Consequence. The two answers to the hypothesis are not on the same footing. The answer “false” would be settled by one whole number and a computation that anyone can repeat. That settlement holds in every theory that contains elementary arithmetic, and it rests on nothing besides the computation. The answer “true” is settled by no finite check: whatever a check certifies, the passage from it to the hypothesis is a universal sentence of the hypothesis’s own kind, true exactly when the hypothesis is true. A derivation in a theory \(T\) supplies that passage. The warrant that turns the derivations of \(T\) into truths, its consistency or its reflection principle, lies outside \(T\), on the next rung (Theorem 10). This is the asymmetry that [34] places at the base of its diagnosis: if the hypothesis is false, a single finite certificate witnesses it; if it is true, an infinite family of stagewise certificates is needed, one for every stage (the book’s introduction).

10.2 Accepted proofs and the ladder

Table 9 sorts accepted results, together with the certified derivation, by what stands between their checks and their truth.

Kind Example Between the check and the truth
A finite certificate Leonhard Euler (1707–1783) conjectured in 1769 that at least \(n\) \(n\)-th powers are needed to add up to an \(n\)-th power. L. J. Lander and T. R. Parkin found by a direct computer search in 1966 that \(27^5+84^5+110^5+133^5=144^5\) [36]. Nothing: the equation is checked by multiplication.
Every one of finitely many cases The numbers \(1,\dots,7824\) can be coloured in two colours so that no Pythagorean triple \(a^2+b^2=c^2\) has one colour, and the numbers \(1,\dots,7825\) cannot (M. J. H. Heule, O. Kullmann and V. W. Marek, 2016). The certificate is a proof of almost 200 terabytes, checked by a program [37]. The correctness of the checking program, which can itself be checked.
An infinite claim reduced to finitely many cases Keller’s conjecture on tilings by cubes in dimension 7, reduced in 2017 to the absence of a set of 128 vertices joined to one another in a finite graph, and settled in 2020 by a program that decides finitely many cases [38]. Every 30 points in the plane with no three on a line contain six of them forming a convex hexagon with none of the others inside (Heule and M. Scheucher, 2024, after 17,300 hours of processor time), with the reduction to finitely many cases verified in Lean [39, 40]. The Kepler conjecture on packing equal balls, established by S. P. Ferguson and T. C. Hales in 1998 and formally proved in HOL Light and Isabelle in 2017 [41]. The Riemann hypothesis up to height \(3\cdot10^{12}\) (D. Platt and T. Trudgian, 2021) [42]. For the finite part, nothing. For the reduction, the soundness of the theory in which it is proved.
A complete, decidable theory The whole numbers with addition alone (Mojżesz Presburger, 1904–1943, in 1929), and the real numbers with addition, multiplication and order, which contain elementary algebra and Euclidean geometry (Alfred Tarski, 1901–1983, published in 1948) [43, 44]. In each, an algorithm decides every sentence. The correctness of the decision algorithm, a theorem of elementary arithmetic.
A universal sentence derived below \(\mathsf{ZFC}\) The prime number theorem holds in every model of the weak arithmetic \(I\Delta_0+\exp\) (C. Cornaros and C. Dimitracopoulos, 1994) [45]. Reuben Goodstein (1912–1985) proved his theorem on sequences in 1944 by induction along the infinite ordinals below \(\varepsilon_0\), the least ordinal \(\varepsilon\) with \(\omega^\varepsilon=\varepsilon\), and L. Kirby and J. Paris showed in 1982 that Peano arithmetic does not derive it [46, 47]. Fermat’s Last Theorem, proved by Andrew Wiles (born 1953) and by Richard Taylor (born 1962) and Wiles in 1995, and derived in finite-order arithmetic (Section 10.6) [75, 76, 24]. The consistency of the theory used, a premise one rung above it, which \(\mathsf{ZFC}\) derives.
A universal sentence derived above \(\mathsf{ZFC}\) Harvey Friedman presented in 2004 a combinatorial universal sentence about finite objects that is derivable from Mahlo cardinals of finite order and not from \(\mathsf{ZFC}\) [56]. The certified derivation of the Riemann hypothesis, read in set theory with six inaccessible cardinals under Sponsors A–C (Theorem 18). The consistency of the theory used, a premise above \(\mathsf{ZFC}\), which \(\mathsf{ZFC}\) does not derive if that theory is consistent.
A “for some” sentence without its witness The Mertens conjecture, a bound on the running sum of the Möbius function by the square root, was refuted in 1985 by A. M. Odlyzko and H. J. J. te Riele through computations with the zeros of \(\zeta\), without an explicit counterexample; none is known [48]. The soundness of the analytic theorems used.
Table 9. Accepted results and the certified derivation, sorted by what stands between their checks and their truth.

Consequence. The results that rest on nothing besides a computation are those whose content is finitely certified: the first two kinds of the table, and the finite parts of the third. Every affirmation of a universal statement, from the prime number theorem to Fermat’s Last Theorem and the Kepler conjecture, rests on the soundness of the axioms that its derivation uses, and mathematicians count it as a theorem because they accept those axioms. The fifth and sixth kinds differ in where that premise stands. For the fifth it is a theorem of \(\mathsf{ZFC}\); for the sixth it lies above \(\mathsf{ZFC}\), and \(\mathsf{ZFC}\) does not derive it unless the theory used is inconsistent. A “for some” sentence rests on nothing besides a computation only when its witness is in hand, as the first and last rows of the table show. A refutation of the hypothesis would be of the first kind. The certified derivation is of the sixth kind, on the sixth rung; Fermat’s Last Theorem, a sentence of the same logical form, is of the fifth (Section 10.6).

10.3 Quantum computation

A qubit is a quantum system with two basic states, written \(0\) and \(1\). The state of \(q\) qubits is a list of \(2^q\) complex numbers, the amplitudes, one for each string of \(q\) bits, whose squared absolute values add up to \(1\). The length \(\|w\|\) of a list \(w\) of complex numbers is the square root of the sum of the squared absolute values of its entries. A gate on one or two named qubits is a unitary matrix of size \(2\) or \(4\), that is, a matrix that preserves the length of every list. Applied to the state of all \(q\) qubits, it acts on the named qubits and leaves the others as they are; as a matrix of size \(2^q\), each of its rows and each of its columns has at most four entries different from zero. Reading the first \(r\) qubits yields the \(r\)-bit string \(y\) with probability equal to the sum of the squared absolute values of the amplitudes of the \(q\)-bit strings that begin with \(y\). A complex number is computable when a program, given a whole number \(k\), prints a complex number with rational real and imaginary parts, each within \(2^{-k}\) of the corresponding part of the number.

A quantum algorithm with computable settings is a program that, given an input string \(x\), prints a number \(q\) of qubits, a list of gates \(G_1,\dots,G_L\) whose matrix entries are computable, each entry given by a program, and a number \(r\le q\). Its run starts from the state with amplitude \(1\) at the string consisting of \(x\) followed by zeros, applies \(G_1,\dots,G_L\) in order, and reads the first \(r\) qubits. It computes a function \(f\) from strings to strings when, on every input \(x\), it reads \(f(x)\) with probability at least \(2/3\).

Proposition 26 (quantum algorithms with computable settings compute what Turing machines compute). If a quantum algorithm with computable settings computes a function \(f\), an ordinary Turing machine computes \(f\).

Proof. Fix an input \(x\). The Turing machine first runs the program on \(x\) and obtains \(q\), the gates \(G_1,\dots,G_L\), each extended to all \(q\) qubits, and \(r\). Let \(v_0\) be the starting state and \(v_j\) the state after \(j\) gates, so that \(v_j=G_jv_{j-1}\). Since each \(G_j\) preserves length, \(\|v_j\|=1\) for every \(j\).

Choose a whole number \(k\), and replace each entry of each \(G_j\) by the approximation within \(2^{-k}\) that its program prints; call the resulting matrix \(H_j\), and put \(E_j=H_j-G_j\). Each entry of \(E_j\) has absolute value at most \(c=\sqrt2\cdot2^{-k}\), and each row and each column of \(E_j\) has at most four entries different from zero. For a list \(w\), each entry of \(E_jw\) is a sum of at most four products \(e\,w_i\) with \(|e|\le c\). By the Cauchy–Schwarz inequality, its squared absolute value is at most \(4c^2\) times the sum of the four values \(|w_i|^2\) that occur. Adding over all entries of \(E_jw\) counts each \(|w_i|^2\) at most four times, because each column of \(E_j\) has at most four entries different from zero. Hence \(\|E_jw\|^2\le16c^2\|w\|^2\), that is, \(\|E_jw\|\le\varepsilon\|w\|\) with \(\varepsilon=4c<6\cdot2^{-k}\).

Let \(u_0=v_0\) and \(u_j=H_ju_{j-1}\), and let \(d_j=\|u_j-v_j\|\). Then \[u_j-v_j=H_ju_{j-1}-G_jv_{j-1}=G_j(u_{j-1}-v_{j-1})+E_ju_{j-1}.\] Since \(G_j\) preserves length, and \(\|u_{j-1}\|\le\|v_{j-1}\|+d_{j-1}=1+d_{j-1}\), \[d_j\le d_{j-1}+\varepsilon(1+d_{j-1})=(1+\varepsilon)\,d_{j-1}+\varepsilon .\] With \(d_0=0\), induction on \(j\) gives \(d_j\le(1+\varepsilon)^j-1\): if \(d_{j-1}\le(1+\varepsilon)^{j-1}-1\), then \(d_j\le(1+\varepsilon)\bigl((1+\varepsilon)^{j-1}-1\bigr)+\varepsilon=(1+\varepsilon)^j-1\). Choose \(k\) so large that \(L\varepsilon\le1/100\), which holds when \(2^k\ge600L\). By induction on \(j\le L\), \((1+\varepsilon)^j\le1+2j\varepsilon\): multiplying \(1+2j\varepsilon\) by \(1+\varepsilon\) gives \(1+(2j+1)\varepsilon+2j\varepsilon^2\), and \(2j\varepsilon^2\le\varepsilon\) because \(2j\varepsilon\le2L\varepsilon\le1\). Hence \(d_L\le2L\varepsilon\le1/50\).

For an \(r\)-bit string \(y\), let \(p(y)\) be the probability of reading \(y\) from \(v_L\), and \(\tilde p(y)\) the same sum computed from \(u_L\). Let \(a\) and \(b\) be the parts of \(v_L\) and \(u_L\) on the \(q\)-bit strings that begin with \(y\). Then \(p(y)=\|a\|^2\) and \(\tilde p(y)=\|b\|^2\). The list \(a-b\) is part of the list \(v_L-u_L\), so \(\|a-b\|\le d_L\); moreover \(\|a\|\le1\) and \(\|b\|\le\|a\|+d_L\le1+d_L\). Therefore \[|p(y)-\tilde p(y)|=(\|a\|+\|b\|)\,\bigl|\|a\|-\|b\|\bigr|\le(2+d_L)\,\|a-b\|\le\frac{2.02}{50}<\frac1{12}.\] The machine computes \(u_L\) exactly, in the arithmetic of rational numbers, computes \(\tilde p(y)\) for each of the \(2^r\) strings \(y\), and prints the string \(y\) with \(\tilde p(y)>1/2\). Since \(p(f(x))\ge2/3\) and the probabilities add up to \(1\), every other string has \(p(y)\le1/3\). Hence \(\tilde p(f(x))>2/3-1/12=7/12>1/2\), while \(\tilde p(y)<1/3+1/12=5/12<1/2\) for every \(y\ne f(x)\). Exactly one string passes, and it is \(f(x)\). Every step is a finite computation, so the Turing machine computes \(f\).

Consequence. A quantum computer with computable settings computes nothing that a Turing machine does not; it may compute faster. Ethan Bernstein and Umesh Vazirani proved in 1997 that the problems such machines solve in polynomial time with bounded error lie within the problems that an ordinary machine solves in polynomial space [49], in the framework that David Deutsch laid down in 1985 [50]. The same argument, with probabilities in place of amplitudes, shows that machines that toss fair coins compute nothing that a Turing machine does not, as K. de Leeuw, E. F. Moore, C. E. Shannon and N. Shapiro proved in 1956 [51]. The condition that the settings be computable cannot be dropped: Leonard Adleman, Jonathan DeMarrais and Ming-Deh Huang showed in 1997 that with arbitrary complex amplitudes the problems solved in polynomial time with bounded error include every language [52]. Such a machine answers from the digits of its settings, which no one can know without already knowing the answers, so its outputs carry no certificate. A quantum computer can run finite parts of the ladder faster, the search for a refutation among them. It does not complete the infinite check.

The strongest quantum method of verification known reaches the answer “false” and not the answer “true.” In 2020 Zhengfeng Ji, Anand Natarajan, Thomas Vidick, John Wright and Henry Yuen proved that a verifier running a short randomized computation, and exchanging messages with several provers that cannot communicate with one another but share quantum entanglement, can verify exactly the statements of the form “a given search halts” [53]. Among the consequences, a conjecture of Alain Connes (born 1947) of 1976 on operator algebras is false. The statement that the hypothesis is false has that form: the search for an \(m\) at which \(\theta\) fails halts exactly when the hypothesis is false. The statement that the hypothesis is true has the opposite form, “a given search never halts.” By the theorem of Alan Turing of 1936, no single program lists exactly the true statements of that form [54], and the method does not reach them. In 2021 a trapped-ion qubit driven by a periodic field was used to measure the positions of the lowest zeros of \(\zeta\); its authors state that proving the hypothesis was not their aim [55].

10.4 Axioms about transfinite numbers, and machines that run through them

Proposition 27 (axioms about transfinite numbers add derivations, not computations).

  1. (a) If a computation halts with result \(y\), every theory that derives the axioms of \(\mathsf{Q}\) derives that it halts with result \(y\).

  2. (b) Proposition 26 is derivable in Peano arithmetic. A consistent theory that derives the axioms of Peano arithmetic, whatever axioms about transfinite numbers it adds, therefore does not derive that a quantum algorithm with computable settings computes a function that no Turing machine computes.

  3. (c) For every whole number \(k\), \(\mathsf{ZFC}_{k+1}\) derives the \(\Pi_1\) sentence \(\mathrm{Con}(\mathsf{ZFC}_k)\), which \(\mathsf{ZFC}_k\), if consistent, does not derive.

Proof. (a) Fix a program, an input, and the number \(s\) of the step at which the program halts. The sentence “the program, run on the input, halts at step \(s\) with result \(y\)” is a \(\Sigma_1\) sentence: some whole number is the code of the list of the program’s configurations up to step \(s\), the last of them a halting configuration with result \(y\). It is true. By Theorem 9(a), \(\mathsf{Q}\) derives it, and so does every theory that derives the axioms of \(\mathsf{Q}\).

(b) The proof of Proposition 26 represents each rational number by a pair of whole numbers and each computable entry by its program. It consists of finite sums, products and comparisons of rational numbers, and of two inductions on whole numbers, one for the bound on \(d_j\) and one for the bound \((1+\varepsilon)^j\le1+2j\varepsilon\). Peano arithmetic contains induction for every arithmetic formula, and so carries out the proof. A theory that derives the axioms of Peano arithmetic therefore derives Proposition 26; if it also derived the negation, it would derive a statement and its negation, and would not be consistent. Axioms about transfinite numbers do not alter this, because the argument uses none of them.

(c) \(\mathsf{ZFC}_{k+1}\) asserts \(k+1\) inaccessible cardinals; let \(\kappa\) be the largest of them. The set \(V_\kappa\) satisfies every axiom of \(\mathsf{ZFC}\), because \(\kappa\) is inaccessible (Theorem 8). The \(k\) inaccessible cardinals below \(\kappa\) belong to \(V_\kappa\) and are inaccessible there, because \(V_\kappa\) contains every subset of \(V_\lambda\) for each \(\lambda<\kappa\), so that the conditions of Definition 1 hold in \(V_\kappa\) as they do in the universe of sets. So \(V_\kappa\) satisfies every axiom of \(\mathsf{ZFC}_k\). By the soundness theorem, every formula derivable from \(\mathsf{ZFC}_k\) holds in \(V_\kappa\). The formula \(0=1\) does not hold there. So no derivation from \(\mathsf{ZFC}_k\) ends in \(0=1\), and \(\mathsf{ZFC}_{k+1}\) derives \(\mathrm{Con}(\mathsf{ZFC}_k)\). If \(\mathsf{ZFC}_k\) is consistent, it does not derive \(\mathrm{Con}(\mathsf{ZFC}_k)\), by Gödel’s second theorem, because \(\mathsf{ZFC}_k\) derives the axioms of Peano arithmetic.

Consequence. Axioms about transfinite numbers, once adopted, enlarge what can be derived about whole numbers. Each new rung derives universal sentences that the rung below does not derive, its consistency statement first among them. Harvey Friedman presented in 2004 an explicitly combinatorial universal sentence about finite objects that is derivable from Mahlo cardinals of finite order and not from \(\mathsf{ZFC}\) [56]; a Mahlo cardinal is an inaccessible cardinal \(\kappa\) below which the inaccessible cardinals meet every closed unbounded set of ordinals below \(\kappa\). A future derivation of the hypothesis may use such axioms. It then stands on its own rung, with its premise of truth on the next (Proposition 23). What the axioms do not change is what any computation does: the result of every halting computation is already derived in \(\mathsf{Q}\), and the equality of quantum and Turing computability is derived in Peano arithmetic. Nor do they bear on the hypothesis by the method that settled the continuum hypothesis. The forcing of Paul Cohen (1934–2007), by which he showed in 1963 that the continuum hypothesis is independent of \(\mathsf{ZFC}\) [57], enlarges the universe of sets without changing the whole numbers, and so leaves the truth of every arithmetic sentence, \(\mathrm{RH}_{\Pi_1}\) among them, as it was. If the hypothesis were shown independent of a theory that derives the axioms of \(\mathsf{Q}\), it would follow that the hypothesis is true, because a false hypothesis is refuted in every such theory (Proposition 25(a); [34], introduction).

A supertask is a run of a machine through the steps \(0,1,2,\dots\), one step for each whole number, followed by a report at the first stage after all of them. That stage is \(\omega\), the first infinite ordinal, the position that comes after all the whole numbers.

Proposition 28 (one infinite step decides the hypothesis).

  1. (a) A supertask decides the hypothesis: at step \(m\) it decides \(\theta(\overline{m})\), and at stage \(\omega\) it reports “false, at \(m\)” if it has found an \(m\) at which \(\theta\) fails, and “true” otherwise.

  2. (b) Its report “false, at \(m\)” carries the finite certificate \(m\).

  3. (c) No finite record of its run is a finite certificate for its report “true.”

Proof. (a) Each step is a finite computation, because \(\theta\) is bounded. After all the steps, either some \(m\) at which \(\theta\) fails has been found or none has. The report is “false” exactly when \(\mathrm{RH}_{\Pi_1}\) is false, which is exactly when the hypothesis is false.

(b) As in Proposition 25(a), the number \(m\) is a finite certificate for the negation of \(\mathrm{RH}_{\Pi_1}\), and anyone can check it by deciding \(\theta(\overline{m})\).

(c) A finite record of the run shows the results of finitely many steps. If they all show that \(\theta\) holds, the record certifies at most the sentence “\(\theta\) holds at every \(x<N\)” for some whole number \(N\), which is a bounded sentence and so a \(\Sigma_1\) sentence. By Proposition 25(b), the passage from it to the hypothesis is a \(\Pi_1\) sentence that is true exactly when the hypothesis is true. The record therefore certifies the report “true” only together with a premise that says what the report says.

Consequence. Deciding the hypothesis takes exactly one step past the finite: the first infinite ordinal \(\omega\). No inaccessible cardinal is needed for it. Inaccessible cardinals enter derivations, as in Section 5; they do not enter this decision. A device that took the step would leave the asymmetry of Proposition 25 as it is. Its “false” would come with a whole number that anyone can check. Its “true” would be accepted on trust in the device and in the physics that let it complete infinitely many steps. That trust is the external completion that [34] identifies: the \(\omega\)-closure of a \(\Pi_1\) sentence is the semantic completion obtained once its truth is fixed (Remark 21.60 of the book’s part on logical stratification), and the passage from the finite prefixes of a ladder to its all-stage statement is the \(\omega\)-rule (Theorem 4.6 of its part on bridge necessity).

Machines beyond Turing machines. Mark Hogarth showed in 1992 that general relativity admits spacetimes, now named after David Malament and Hogarth, in which an observer receives in finite time the result of a computation that runs through infinitely many steps along another path; in a suitable such spacetime every universal statement, Goldbach’s conjecture among them, could be resolved [58, 60]. Gábor Etesi and István Németi proposed rotating black holes as instances in 2002 [59]. Philip Welch proved in 2008 that each such spacetime has an upper bound to what it can compute, reaching in suitable cases the hyperarithmetic predicates, those obtained by iterating the halting problem along computable infinite ordinals [60]. Joel David Hamkins and Andy Lewis gave in 2000 the mathematical theory of machines that run through transfinite ordinal time: they decide every \(\Pi^1_1\) set, a set defined by one quantifier over all infinite sequences of whole numbers, far beyond arithmetic, and they have halting problems of their own [61]. Turing’s argument of 1936 applies to every kind of machine whose programs are finite strings and which can run any program of its own kind. If a program \(D\) of that kind decided, for each program \(e\), whether \(e\) halts when given its own code, the program that on input \(e\) runs \(D\) and halts exactly when \(D\) reports that \(e\) does not halt would halt on its own code exactly when it does not. A stronger kind of machine therefore moves up the ladder; it does not end it.

10.5 Unprovability and the least rung

The certified derivation fixes an upper bound for the rung at which the hypothesis is derivable: set theory with six inaccessible cardinals, under its three sponsors. It fixes no lower bound. Section 9 showed that nothing in the derivation indicates that the hypothesis itself needs an inaccessible cardinal. Whether \(\mathsf{ZFC}\) derives the hypothesis, and whether Peano arithmetic derives it, is unknown. Saharon Shelah (born 1945) listed among his “logical dreams” of 2003 a proof that the hypothesis is unprovable in Peano arithmetic but provable in some higher theory [62]. For other natural statements, results of this kind have been obtained: Goodstein’s theorem, and a variant of Ramsey’s theorem given by Jeff Paris and Leo Harrington in 1977, are derivable in stronger theories and not in Peano arithmetic [46, 47, 63], and Fermat’s Last Theorem has been placed below \(\mathsf{ZFC}\) since its proof (Section 10.6). For the hypothesis, no such result has been obtained. A record that states the hypothesis as proved, without naming its rung and its premises, gives no reason to ask these questions.

Proposition 29 (what a proof of unprovability would establish). Let \(T\) and \(M\) be theories whose axioms are recognized by a computation and which derive the axioms of Peano arithmetic, and suppose that a proof about \(T\) is carried out in \(M\).

  1. (a) If \(M\) derives “\(T\) does not derive \(\mathrm{RH}_{\Pi_1}\),” then \(M\) derives \(\mathrm{Con}(T)\).

  2. (b) If \(M\) derives “\(T\) does not derive the negation of \(\mathrm{RH}_{\Pi_1}\),” then \(M\) derives \(\mathrm{RH}_{\Pi_1}\). In particular, a proof in \(M\) that the hypothesis is independent of \(T\) is a derivation of the hypothesis in \(M\).

  3. (c) If the hypothesis is false, every consistent theory that derives the axioms of \(\mathsf{Q}\) refutes it, and none of them derives it.

  4. (d) If \(\mathsf{ZFC}_6\) does not derive the hypothesis, at least one of Sponsors A, B and C fails.

Proof. (a) The first axiom of \(\mathsf{Q}\) states that \(0\) is the successor of no number, so \(T\) derives “not \(0=1\).” From a derivation of \(0=1\) one therefore obtains, by appending finitely many steps, a derivation of any sentence whatever, because a sentence and its negation together yield every sentence. Appending these steps is an operation on codes carried out by a computation, and Peano arithmetic derives that it turns derivations from \(T\) into derivations from \(T\). So \(M\) derives “if \(T\) derives \(0=1\), then \(T\) derives \(\mathrm{RH}_{\Pi_1}\).” Together with “\(T\) does not derive \(\mathrm{RH}_{\Pi_1}\),” this gives in \(M\) the sentence “\(T\) does not derive \(0=1\),” which is \(\mathrm{Con}(T)\).

(b) The negation of \(\mathrm{RH}_{\Pi_1}\) is the \(\Sigma_1\) sentence “for some \(x\), not \(\theta(x)\).” Theorem 9(a) states that \(\mathsf{Q}\) derives every true \(\Sigma_1\) sentence. Its proof proceeds by induction on the construction of a bounded formula, and Peano arithmetic carries out that induction about codes. So Peano arithmetic derives, for this sentence: if for some \(x\) not \(\theta(x)\), then \(\mathsf{Q}\) derives “for some \(x\), not \(\theta(x)\).” This formalized form of the theorem goes back to David Hilbert (1862–1943) and Paul Bernays (1888–1977) [26]. Since \(T\) derives the axioms of \(\mathsf{Q}\), \(M\) derives: if not \(\mathrm{RH}_{\Pi_1}\), then \(T\) derives not \(\mathrm{RH}_{\Pi_1}\). If \(M\) also derives “\(T\) does not derive not \(\mathrm{RH}_{\Pi_1}\),” then by contraposition \(M\) derives \(\mathrm{RH}_{\Pi_1}\). A proof that the hypothesis is independent of \(T\) shows in particular that \(T\) does not derive its negation, and so it is a derivation of the hypothesis in \(M\).

(c) By Proposition 25(a), if the hypothesis is false, every theory that derives the axioms of \(\mathsf{Q}\) derives the negation of \(\mathrm{RH}_{\Pi_1}\). A consistent theory that derives the negation of a sentence does not derive the sentence.

(d) Under the three sponsors, \(\mathsf{ZFC}_6\) derives the hypothesis. By Sponsor A, the certified term is a derivation by Lean’s rules. By Sponsor B, the standard model built in \(\mathsf{ZFC}_6\) validates it, so that \(\mathsf{ZFC}_6\) derives that the sentence riemannHypothesis holds in the model. By Sponsor C, that sentence is equivalent to the hypothesis. This is the argument of Theorem 19(a). So if \(\mathsf{ZFC}_6\) does not derive the hypothesis, one of the three sponsors fails.

Consequence. Unprovability is an open route to the problem, not a third answer beside true and false. A proof that the hypothesis is independent of a theory \(T\) would be a derivation of the hypothesis in the stronger theory \(M\) that carries the proof, and the premise of its truth, the consistency of \(M\), would lie one rung above \(M\) (Proposition 23): an affirmation of the kind that the certified derivation already is, located elsewhere on the ladder. A proof that \(T\) merely fails to derive the hypothesis is carried out a rung above \(T\), in a theory that derives the consistency of \(T\). A proof that \(\mathsf{ZFC}_6\) fails to derive the hypothesis would show that a sponsor of the certified derivation fails. If the hypothesis is false, its unprovability in every consistent theory follows from its finite refutation. Every one of these routes is open, and the hypothesis is unresolved along each of them.

Climbing the ladder does not settle the question by itself either. Alan Turing proved in 1939 that every true \(\Pi_1\) sentence is derivable at the stage \(\omega+1\) of a progression of theories, each obtained from the one below by adding its consistency statement, when the progression runs along a suitable notation for \(\omega+1\) [29]. The notation is built from the sentence itself. Recognizing that it is a genuine notation requires knowing that the sentence is true; if the sentence is false, the theory built at stage \(\omega\) along that notation derives its own consistency and is therefore inconsistent [65]. Solomon Feferman and Clifford Spector (died 1961) showed in 1962 that along some paths through the constructive ordinals the progression built by iterating uniform reflection does not reach every true \(\Pi_1\) sentence [64]. A rung that derives the hypothesis is therefore found by a derivation, or, along Turing’s route, by a notation whose recognition presupposes the answer. This is the external completion of [34] (Remark 21.60 of its part on logical stratification) in the form in which Turing first met it.

10.6 Fermat’s Last Theorem: a universal sentence of the same form, derived on the bottom rung

It may be replied that the premise located in this paper belongs to all of mathematics: every derivation of a universal sentence rests on the consistency of the theory it uses, so that locating the premise of the certified derivation says nothing particular about it. The first half of the reply is proved above. A consistency premise stands one rung above every formal derivation of a \(\Pi_1\) sentence (Theorem 9(b) and Proposition 23). The second half does not follow from the first. Three things vary from sentence to sentence: the rung on which the lowest established derivation stands; whether \(\mathsf{ZFC}\), the theory in which mathematics is ordinarily read, derives the premise of that derivation; and whether any rung reached in finitely many steps derives the sentence at all. Fermat’s Last Theorem is a \(\Pi_1\) sentence of the same logical form as \(\mathrm{RH}_{\Pi_1}\), and it stands at the far end on all three. Its lowest established derivation is in finite-order arithmetic, a theory below \(\mathsf{ZFC}\). That derivation takes no step of the Turing progression, the ladder on which each theory is followed by itself with its own consistency statement added (Section 1): no consistency statement, no reflection principle and no rule with infinitely many premises enters it. \(\mathsf{ZFC}\) derives the premise of its truth. This subsection proves these facts and sets them beside the certified derivation.

The statement. Pierre de Fermat (died 1665) wrote, around 1637, in the margin of his copy of the Arithmetica of Diophantus, that no \(n\)-th power of a positive whole number with \(n\ge3\) is the sum of two such powers [66]. For whole numbers \(a\) and \(n\), the power \(a^n\) is defined by \(a^0=1\) and \(a^{n+1}=a^n\cdot a\). Gödel’s coding of finite lists by whole numbers [25] makes “\(d\) codes the list \(a^0,a^1,\dots,a^n\)” a condition that a computation bounded by \(d\) decides. Fermat’s statement is therefore equivalent, in Peano arithmetic, to the following sentence \(\mathrm{FLT}_{\Pi_1}\): for all whole numbers \(a,b,c,n\) and all codes \(d,e,f\) of the lists of the powers of \(a\), of \(b\) and of \(c\) up to the \(n\)-th, if \(a,b,c\ge1\) and \(n\ge3\), then the last entry of the list coded by \(f\) differs from the sum of the last entries of the lists coded by \(d\) and \(e\). Collecting the seven quantifiers into one, as in the proof of Proposition 25(b), makes it a \(\Pi_1\) sentence: a computation succeeds at every whole number, each instance checking one quadruple \(a,b,c,n\) by finite arithmetic. If it is false, one such quadruple refutes it on every rung, by the argument of Proposition 25(a) applied to it word for word.

The ladder of cases. For three and a half centuries the statement was settled one family of exponents at a time [66]. Fermat’s method of infinite descent settles \(n=4\); Euler settled \(n=3\); the exponents \(5\) and \(7\) were settled by 1825 and by 1839, the second by Gabriel Lamé (1795–1870). Every \(n\ge3\) is divisible by \(4\) or by an odd prime, and a solution for an exponent \(n=dm\) gives the solution \((a^m)^d+(b^m)^d=(c^m)^d\) for the exponent \(d\), so it suffices to treat \(n=4\) and the odd primes. On 1 March 1847 Lamé announced to the Paris Académie a proof for every exponent. It factored \(a^p+b^p\) into linear factors with complex coefficients and assumed that such numbers factor uniquely into primes. Joseph Liouville (1809–1882) doubted the assumption, and Ernst Eduard Kummer (1810–1893) had shown in 1844 that it fails, the first failure occurring for \(p=23\). In 1847 Kummer proved the theorem for every regular prime, a prime \(p\) that divides the numerator of none of the Bernoulli numbers \(B_2,B_4,\dots,B_{p-3}\), the rational numbers defined by \(x/(e^x-1)=\sum_{k\ge0}B_kx^k/k!\). By 1993, computations along Kummer’s lines had settled every prime exponent below four million [67]. Gerd Faltings (born 1954) proved in 1983 that for each \(n\ge4\) there are only finitely many solutions without a common factor [68], and D. R. Heath-Brown (born 1952) deduced in 1985 that the theorem holds for almost all exponents, in the sense of density, at a time when it was not known to hold for infinitely many prime exponents [69]. Each of these results settles more cases, and none settles all of them, as the finite-prefix theorem of [34] requires (Proposition 21.28 of its part on logical stratification). Lamé’s announcement is the pattern that the book describes for the Riemann hypothesis, progress on a rung taken for the closure of the ladder (Remark 21.21 of that part), and its correction founded Kummer’s theory of ideal numbers.

The bridge that closed it. The argument that settled every exponent at once is that of Gerhard Frey (born 1944), Jean-Pierre Serre (born 1926), Kenneth Ribet (born 1948), and Andrew Wiles (born 1953) with Richard Taylor (born 1962) [71, 72, 73, 75, 76]; Henri Darmon, Fred Diamond and Richard Taylor set it out in full in 1994 [77]. Let \(p\ge5\) be prime and let \(a,b,c\ge1\) be whole numbers without a common factor such that \(a^p+b^p=c^p\). Then no two of \(a,b,c\) have a common factor, since a prime that divides two of them divides the third.

  1. (1) Frey’s curve. Following Yves Hellegouarch (1975) [70], Frey proposed in 1984, and published in 1986, the equation \(y^2=x(x-a^p)(x+b^p)\) in two unknowns \(x\) and \(y\). Its solutions, with one further point at infinity, form an elliptic curve \(E\), a set on which an addition of points is defined. The cubic on the right has the roots \(0\), \(a^p\) and \(-b^p\), whose differences are \(a^p\), \(b^p\) and \(a^p+b^p=c^p\). The discriminant of the cubic, \(16\) times the product of the squares of these differences, is \(16(abc)^{2p}\), so every odd prime enters it to an exponent divisible by \(p\). Modulo an odd prime \(\ell\) that divides \(abc\), exactly one of \(a,b,c\) is divisible by \(\ell\), so exactly two of the three roots coincide, which is the mildest way in which such a curve can degenerate. After a standard change of variables at the prime \(2\), the curve degenerates in this mildest way at every prime at which it degenerates at all: it is semistable, and its conductor \(N\), the number that records the primes of degeneration, is the product of the primes that divide \(abc\) [72, 77].

  2. (2) Modular forms. For a positive whole number \(N\), a cusp form of weight \(2\) and level \(N\) is a function \(f(\tau)=\sum_{m\ge1}\lambda_m e^{2\pi i m\tau}\) of the complex numbers \(\tau\) with positive imaginary part that satisfies \(f\bigl((\alpha\tau+\beta)/(\gamma\tau+\delta)\bigr)=(\gamma\tau+\delta)^2f(\tau)\) whenever \(\alpha,\beta,\gamma,\delta\) are integers with \(\alpha\delta-\beta\gamma=1\) and \(\gamma\) divisible by \(N\). These functions form a complex vector space of finite dimension. A newform is such a function that does not arise from a smaller level, scaled so that \(\lambda_1=1\), and carried to a multiple of itself by each of the Hecke operators, the standard averaging operators on these functions [78].

  3. (3) Modularity (Wiles, and Taylor and Wiles, 1995). For every semistable elliptic curve \(E\) with conductor \(N\) there is a newform \(f\) of weight \(2\) and level \(N\) such that, for every prime \(\ell\) not dividing \(N\), the number \(\#E(\ell)\) of solutions of the equation of \(E\) modulo \(\ell\), together with the point at infinity, equals \(\ell+1-\lambda_\ell\) [75, 76]. One function thus governs infinitely many counts, one for each prime \(\ell\).

  4. (4) Lowering the level (Ribet, 1990, proving a conjecture that Serre published in 1987). Let \(p\ge3\) be prime, and let \(E\) be a modular elliptic curve with conductor \(N\) that has no isogeny of degree \(p\) defined over the rational numbers, that is, no map of degree \(p\) onto another elliptic curve that respects the addition and is given by rational functions with rational coefficients. Remove from \(N\) every prime \(q\) that divides \(N\) exactly once and whose exponent in the discriminant is divisible by \(p\), and call the result \(N_p\). Then there is a newform of weight \(2\) and level \(N_p\) whose coefficients \(\lambda_\ell\) are congruent to \(\ell+1-\#E(\ell)\), modulo a prime divisor of \(p\) in the field that the coefficients generate, for every prime \(\ell\) not dividing \(pN\) [73, 72]. For Frey’s curve, a theorem of Barry Mazur (born 1937) of 1978 on rational isogenies supplies the hypothesis [74], and every odd prime of \(N\) is removed, so that \(N_p=2\).

  5. (5) The finite object. The dimension of the space of cusp forms of weight \(2\) and level \(N\) is the genus of the modular curve \(X_0(N)\), the closed surface obtained from the upper half-plane by identifying the points related by the substitutions of (2) and adding finitely many points at its edge, the cusps; the genus is the number of handles of that surface. It is given by \(g=1+\mu/12-\nu_2/4-\nu_3/3-\nu_\infty/2\) [78]. Here \(\mu=N\prod_{q\mid N}(1+1/q)\), the product running over the primes \(q\) that divide \(N\), is the number of copies of the basic region of the full modular group, the substitutions of (2) with \(N=1\), that make up \(X_0(N)\); \(\nu_2\) and \(\nu_3\) count the points of \(X_0(N)\) fixed by substitutions of order \(2\) and of order \(3\); and \(\nu_\infty\) counts the cusps. For \(N=2\), \(\mu=2\cdot\tfrac32=3\), \(\nu_2=1\), \(\nu_3=0\) and \(\nu_\infty=2\), so that \[g=1+\frac{3}{12}-\frac14-\frac03-\frac22=0.\] The space of cusp forms of weight \(2\) and level \(2\) is \(\{0\}\), and it contains no newform.

A solution would yield a newform of weight \(2\) and level \(2\), and there is none. So no solution exists.

Consequence. The sizes of \(a\), \(b\), \(c\) and \(p\) enter the curve and its conductor, and the lowering of the level removes every odd prime from the conductor. Every hypothetical solution, on every rung of the ladder of cases, is carried to the same space, whose dimension is a whole number given by a formula of fixed shape. The ladder of cases is not climbed: the argument makes the size of the exponent irrelevant. It reaches “for all \(a,b,c,p\)” by an argument about arbitrary \(a,b,c,p\), which is the ordinary rule of generalization in a finite derivation, and not by the \(\omega\)-rule, which would need one premise for each case (Definition 6). In the terms of [34], the conjunction of the theorems used is a bridge, a statement that implies a selected closure channel (Definition 21.29 of its part on logical stratification), and it is of the kind that the book says an actual bridge for the Riemann hypothesis would have to be: singular to its problem, not a uniform schema that closes every ladder at once (Remark 21.62). The method has since been carried to Fermat’s equation over other fields of numbers [79]. It remains a method for equations that admit a curve of Frey’s kind, not a principle that decides sentences of this logical form in general.

The rung. The proof as published in 1995 cites results written with Grothendieck’s universes. Grothendieck’s axiom that every set lies in a universe is equivalent over \(\mathsf{ZFC}\) to the statement that every cardinal lies below an inaccessible cardinal, and it yields a proper class of inaccessible cardinals [23, 80]. Read literally, the published proof stood above every rung \(\mathsf{ZFC}_k\). Number theorists, Grothendieck among them, held that universes could be replaced in such proofs, at the cost of effort, by sets that \(\mathsf{ZFC}\) supplies [80], and the theorem was accepted in 1995 on a proof whose use of universes they expected to be replaceable. The replacement has since been carried out. The étale cohomology that the proof uses is available in Deligne’s SGA 4\(\frac12\), which uses no universes, as Buzzard observed (Section 9; [12, 19]), and McLarty founded the large structures of Grothendieck on finite-order arithmetic.

Definition 30 (finite-order arithmetic). Finite-order arithmetic, written \(\mathsf{FOA}\), has variables of type \(0\) for whole numbers and of type \(j+1\) for sets of objects of type \(j\), for every whole number \(j\), and the relation of membership between objects of type \(j\) and sets of type \(j+1\). Its axioms are of three forms: the axioms of Peano arithmetic for type \(0\), with induction for every formula of the whole language; extensionality at each type, two sets of type \(j+1\) with the same members being equal; and comprehension at each type, which states, for every formula \(\varphi(x)\) with \(x\) of type \(j\) and possibly further variables of any types, that there is a set of type \(j+1\) whose members are exactly the objects of type \(j\) that satisfy \(\varphi\). Its rules are those of logic, each with finitely many premises. For a whole number \(n\ge1\), \(n\)-th order arithmetic is the part with the types below \(n\); second-order arithmetic is the part with the types \(0\) and \(1\). This is the system of Gaisi Takeuti (1926–2017) [81], simple type theory with an infinite type, in the form that McLarty uses [24].

Theorem 31 (McLarty 2010, 2020).

  1. (a) The theorems of Grothendieck’s EGA and SGA, with derived categories, are derivable in finite-order arithmetic.

  2. (b) The proof of Fermat’s Last Theorem by Wiles and by Taylor and Wiles can be carried out in finite-order arithmetic, indeed in \(n\)-th order arithmetic for a fixed \(n\). Consequently \(\mathsf{FOA}\) derives \(\mathrm{FLT}_{\Pi_1}\).

Part (a) is proved in [24]. McLarty replaces Grothendieck’s universes by a weaker notion of universe in a theory of classes and collections that is conservative over set theory, defines categories relative to it, derives there the theorems of EGA and SGA and the derived categories, and shows that all of it can be formalized in finite-order arithmetic; since one elementary topos of sets with an infinite object is already as strong as finite-order arithmetic, no weaker foundation carries these tools [24]. Part (b) is McLarty’s analysis of how the proof uses those works, which he states as holding in principle once the proof is understood [23], with (a) supplying the large structures; William Wheeler set out the result in 2023 [80].

Proposition 32 (Fermat’s Last Theorem on the ladder).

  1. (a) \(\mathsf{ZFC}\) derives \(\mathrm{Con}(\mathsf{FOA})\).

  2. (b) Every derivation from \(\mathsf{FOA}\) is carried, formula by formula, into a derivation from \(\mathsf{ZFC}\) of the translated conclusion. Consequently \(\mathsf{ZFC}\) derives \(\mathrm{FLT}_{\Pi_1}\).

  3. (c) The derivation of Theorem 31(b) has as its premise of truth \(\mathrm{Con}(\mathsf{FOA})\), which \(\mathsf{ZFC}\), the bottom rung of the ladder of Definition 4, derives. None of its axioms is a consistency statement or a reflection principle, and none of its rules has infinitely many premises.

  4. (d) If \(\mathsf{ZFC}_6\) is consistent, \(\mathsf{ZFC}\) does not derive \(\mathrm{Con}(\mathsf{ZFC}_6)\), the premise of truth of the certified derivation (Theorem 19).

Proof. (a) Argue in \(\mathsf{ZFC}\). Put \(D_0=\omega\) and \(D_{j+1}=\mathcal{P}(D_j)\) for every whole number \(j\); the sequence of the sets \(D_j\) exists by recursion on \(\omega\) and the axiom of replacement. Read a variable of type \(j\) as ranging over \(D_j\), the arithmetic of type \(0\) as the arithmetic of \(\omega\), and membership between types \(j\) and \(j+1\) as membership. This is a structure that is a set, and its satisfaction relation is defined by recursion on formulas, as in the proof of Theorem 8. Every axiom of \(\mathsf{FOA}\) is satisfied in it. The axioms of Peano arithmetic other than induction hold in \(\omega\) by the recursion equations of \(+\) and \(\cdot\). Induction holds for every formula \(\varphi\) of the language: the set of the \(n\in\omega\) that satisfy \(\varphi\) in the structure is a subset of \(\omega\) by separation, and a subset of \(\omega\) that contains \(0\) and is closed under successor is \(\omega\). Extensionality holds at each type, because the members of \(D_{j+1}\) are sets, and sets with the same members are equal. Comprehension holds at each type: the set of the members of \(D_j\) that satisfy \(\varphi\) in the structure is a subset of \(D_j\), by separation, and so a member of \(D_{j+1}=\mathcal{P}(D_j)\). By the soundness theorem, proved in \(\mathsf{ZFC}\) by induction on the length of derivations as in the proof of Theorem 10, every formula derivable from \(\mathsf{FOA}\) is satisfied in the structure. The formula \(0=1\) is not satisfied there, so no derivation from \(\mathsf{FOA}\) ends in \(0=1\).

(b) A derivation from \(\mathsf{FOA}\) uses finitely many types, say those below \(n\). Translate each of its formulas into a formula of set theory by reading a quantifier over type \(j\) as a quantifier over the set \(D_j\), which for each fixed \(j\) is defined by a formula of set theory, the \(j\)-fold power set of \(\omega\). The translation of each axiom used is a theorem of \(\mathsf{ZFC}\), by the argument of (a) carried out for that axiom, and the translation of each step of logic is a step of logic. So the translated formulas, preceded by derivations of the translated axioms, form a derivation from \(\mathsf{ZFC}\). A sentence of type \(0\), such as \(\mathrm{FLT}_{\Pi_1}\), translates into its set-theoretic form read in \(\omega\). By Theorem 31(b), \(\mathsf{ZFC}\) therefore derives \(\mathrm{FLT}_{\Pi_1}\).

(c) \(\mathsf{FOA}\) derives the axioms of \(\mathsf{Q}\) at type \(0\). By Theorem 9(b), if \(\mathsf{FOA}\) is consistent, every \(\Pi_1\) sentence it derives is true; so \(\mathrm{Con}(\mathsf{FOA})\) suffices for the truth of \(\mathrm{FLT}_{\Pi_1}\), and \(\mathsf{ZFC}\) derives \(\mathrm{Con}(\mathsf{FOA})\) by (a). The axioms of \(\mathsf{FOA}\) are of the three forms listed in Definition 30, Peano arithmetic, extensionality and comprehension, and no axiom of any of these forms states that a theory is consistent or that whatever a theory derives is true, which is what consistency statements and reflection principles state (Definition 5). Its rules are those of logic.

(d) If \(\mathsf{ZFC}\) derived \(\mathrm{Con}(\mathsf{ZFC}_6)\), so would \(\mathsf{ZFC}_6\), which contains \(\mathsf{ZFC}\), and by Theorem 11(a) \(\mathsf{ZFC}_6\) would be inconsistent.

Consequence. Fermat’s Last Theorem is derived on the bottom rung. Its established derivation is in finite-order arithmetic, a theory whose consistency \(\mathsf{ZFC}\) derives. It takes no step of the Turing progression, uses no consistency statement or reflection principle as an axiom, and reaches its conclusion about all exponents within a finite derivation. The premise of its truth is a theorem of \(\mathsf{ZFC}\). The bottom rung here is that of the ladder of Definition 4, whose base is \(\mathsf{ZFC}\). Finite-order arithmetic is itself stronger than Peano arithmetic, since second-order arithmetic already derives the consistency of Peano arithmetic, so on a ladder that starts from Peano arithmetic the established derivation does not stand on the bottom rung. Angus Macintyre (born 1941) proposed and sketched in 2011 a derivation in Peano arithmetic [82], and Friedman conjectured that one exists in elementary arithmetic [32]; of that conjecture McLarty wrote in 2019 that “belief is not proof” [83]. This paper uses the derivation that has been established.

The Lean derivation of 2026. On 4 September 2026 Anthropic released a Lean derivation of Fermat’s Last Theorem, written by Claude largely autonomously over eleven days, with Tianyi Peng setting the goal and giving occasional direction [84]. It has about thirteen million lines, is built with Lean version 4.33.1 on Mathlib, rests on Lean’s three standard axioms, and follows the argument of Frey, Serre, Ribet, Wiles and Taylor and Wiles in the simplified form of the exposition of Darmon, Diamond and Taylor [84, 85, 77]. Its theorem states that \(a^n+b^n\neq c^n\) for whole numbers \(n\ge3\) and \(a,b,c>0\). The statement is written with Lean’s built-in whole numbers and their \(+\), \(\le\), \(<\) and \(\neq\); its one ingredient from Mathlib is the power \(a^n\) of whole numbers, which Mathlib defines as Lean’s built-in exponentiation. A comparison program confirmed that the statement and every constant it mentions are those of Mathlib, and the build derives Mathlib’s own statement, FermatLastTheorem, from it [85]. Kevin Buzzard, who reviewed it, said that it proves the theorem with no assumptions beyond the axioms of mathematics [84].

Set beside the certified derivation of the hypothesis, this derivation has a sponsor of checking of the same kind as Sponsor A and a model sponsor of the same kind as Sponsor B. Its reading in set theory needs Carneiro’s soundness argument to cover the rules of Lean 4 that its term uses, and its standard model needs one inaccessible cardinal for each level at which its term carries a full former (Theorem 15), a finite number that the argument of this subsection does not use. Its counterpart of Sponsor C is of another kind. The statement mentions only whole numbers and operations defined on them by recursion; the standard model reads the type of whole numbers as \(\omega\) and these operations as the operations on \(\omega\) defined by the same recursions [7, 8]; and no value in the statement is fixed by convention. The statement of the certified derivation mentions Mathlib’s function riemannZeta, which Lean defines at every complex number, including the point \(1\), where Riemann’s \(\zeta\) has its pole, and Sponsor C carries the disagreement there (Section 2; [33]). The truth of Fermat’s Last Theorem does not depend on its Lean derivation, since Proposition 32 secures it in \(\mathsf{ZFC}\). On the derivations known today, the truth of the hypothesis depends on the certified one. Table 10 sets the two side by side.

Fermat’s Last Theorem The Riemann hypothesis
Logical form \(\Pi_1\): a computation succeeds at every whole number \(\Pi_1\): a computation succeeds at every whole number
Cases settled one at a time every prime exponent below four million, by 1993 [67] every zero up to height \(3\cdot10^{12}\), by 2021 [42]
An argument for every case Frey, Serre, Ribet, Wiles, and Taylor and Wiles, 1984–1995; read and checked by number theorists since 1995 the certified term of 2026, with Alpöge’s note [1]
Size of the objects that carry the cases fixed: one space, of cusp forms of weight \(2\) and level \(2\), of dimension \(0\), for every case growing: the zeros of \(\zeta\) between heights \(T\) and \(2T\) number \((T/2\pi)\log T+O(T)\) (Remark 34)
Lowest established derivation in finite-order arithmetic, below \(\mathsf{ZFC}\) (Theorem 31) in \(\mathsf{ZFC}_6\), under Sponsors A–C (Theorems 18 and 19)
Grounds for a lower rung a proof refereed in 1995 and read since; versions of its tools without universes from 1957 and 1977; replacement carried out (Theorem 31) a trace of where the term’s cardinals are first reached (Section 6); no replacement carried out; Sponsors B and C open
Premise of truth \(\mathrm{Con}(\mathsf{FOA})\) \(\mathrm{Con}(\mathsf{ZFC}_6)\)
Does \(\mathsf{ZFC}\) derive the premise? yes (Proposition 32(a)) no, if \(\mathsf{ZFC}_6\) is consistent (Proposition 32(d))
Lean derivation 4 September 2026, Lean 4.33.1; sponsors of the kinds of Sponsors A and B 20–21 November 2026, Lean 4.33.1; Sponsors A and B
The formal statement whole numbers and operations defined by recursion; no value fixed by convention Mathlib’s riemannZeta, defined at the pole of \(\zeta\); Sponsor C
Truth depends on the Lean derivation no yes
Derived on a rung reached in finitely many steps yes, on the bottom rung on the sixth, if Sponsors A–C hold; otherwise unknown (Proposition 33)
Table 10. Fermat’s Last Theorem and the certified derivation of the Riemann hypothesis on the ladder.

Proposition 33 (the form of a sentence does not guarantee a rung reached in finitely many steps). Let \(T_0=\mathsf{ZFC}\), let \(T_{n+1}=T_n+\mathrm{Con}(T_n)\) for every whole number \(n\), and let \(T_\omega\) be the theory whose axioms are those of all the \(T_n\).

  1. (a) If \(T_\omega\) is consistent, \(\mathrm{Con}(T_\omega)\) is a true \(\Pi_1\) sentence that no \(T_n\) derives.

  2. (b) If \(\mathsf{ZFC}_\infty\) is consistent, \(\mathrm{Con}(\mathsf{ZFC}_\infty)\) is a true \(\Pi_1\) sentence that no rung \(\mathsf{ZFC}_k\) derives.

  3. (c) Under the sponsors of (a) and (b), some true \(\Pi_1\) sentences are derived by no theory reached in finitely many steps of either ladder, while others, \(\mathrm{FLT}_{\Pi_1}\) among them, are derived on the bottom rung. The \(\Pi_1\) form of a sentence therefore does not settle whether a rung reached in finitely many steps derives it.

Proof. (a) The axioms of \(T_\omega\) are recognized by a computation, since from \(n\) one computes the sentence \(\mathrm{Con}(T_n)\). So \(\mathrm{Con}(T_\omega)\) is a \(\Pi_1\) sentence (Definition 5), and it is true by the sponsor. Fix \(n\). Every axiom of \(T_n\) is an axiom of \(T_\omega\), so every derivation from \(T_n\) is a derivation from \(T_\omega\). This is a fact about codes that Peano arithmetic derives, and so \(T_n\), which derives the axioms of Peano arithmetic read in \(\omega\), derives “\(\mathrm{Con}(T_\omega)\) implies \(\mathrm{Con}(T_n)\).” If \(T_n\) derived \(\mathrm{Con}(T_\omega)\), it would therefore derive \(\mathrm{Con}(T_n)\). But \(T_n\) is consistent, since a derivation of \(0=1\) from it would be one from \(T_\omega\), and by Gödel’s second theorem (Theorem 11) a consistent \(T_n\) does not derive \(\mathrm{Con}(T_n)\).

(b) The same argument applies with \(\mathsf{ZFC}_k\) in place of \(T_n\) and \(\mathsf{ZFC}_\infty\) in place of \(T_\omega\). Here \(\mathsf{ZFC}_\infty\) derives the axiom of \(\mathsf{ZFC}_k\) that \(k\) inaccessible cardinals exist by one fixed derivation, so that a derivation of \(0=1\) from \(\mathsf{ZFC}_k\) becomes one from \(\mathsf{ZFC}_\infty\) when that derivation is placed in front of it. Peano arithmetic derives that this operation on codes does so, and \(\mathsf{ZFC}_k\) therefore derives “\(\mathrm{Con}(\mathsf{ZFC}_\infty)\) implies \(\mathrm{Con}(\mathsf{ZFC}_k)\).”

(c) The first part is (a) and (b). The second is Proposition 32(b), since \(\mathsf{ZFC}\) is \(T_0\) and \(\mathsf{ZFC}_0\).

Consequence. The reply that the premise belongs to all of mathematics is true of the existence of a premise and false of its place. Every derivation of a universal sentence has a premise of truth one rung above its theory, and the rung differs. For Fermat’s Last Theorem it is reached inside \(\mathsf{ZFC}\): the theorem is derived in finite-order arithmetic by a finite derivation in which no step of the Turing progression, no reflection principle and no rule with infinitely many premises occurs, and \(\mathsf{ZFC}\) derives the consistency of finite-order arithmetic. Its Lean derivation of 2026 stands on a rung of the ladder of inaccessible cardinals under a model sponsor of the same kind as Sponsor B, and the truth of the theorem does not depend on that reading. For the hypothesis, the one derivation known is read on the sixth rung. Its premise stands on the seventh, and \(\mathsf{ZFC}\) does not derive it unless set theory with six inaccessible cardinals is inconsistent. Its model sponsor is unproved, and its bridge sponsor carries a disagreement at the pole of \(\zeta\). No derivation on a lower rung is known, and the form of the hypothesis does not guarantee that one exists (Proposition 33). The two sentences have one logical form and opposite places on the ladder, and the place is what this paper measures. When Fermat’s Last Theorem was accepted in 1995, its proof, read literally, rested on universes, and number theorists expected that they could be replaced by sets that \(\mathsf{ZFC}\) supplies; the replacement has since been carried out, and the record now names a rung inside \(\mathsf{ZFC}\). Section 9 traces where the six cardinals of the certified term enter. That trace is not an expectation of the same kind, for the reasons set out in the next paragraphs, and it does not place the hypothesis on a lower rung. Not all of mathematics stands where the certified derivation stands, and the observation that every derivation has a premise does not answer the measurement of where a particular derivation’s premise lies. In the terms of [34], Fermat’s Last Theorem is a ladder of cases closed by a singular bridge and then read on the bottom rung; the hypothesis is a ladder of stages whose one claimed closure is read on the sixth rung, under sponsors not yet discharged.

Why the expectation of 1995 does not carry over to the certified derivation. The logical reason behind expectations of this kind is the reflection theorem of Azriel Lévy, of 1960, and Richard Montague (1930–1971), of 1961 [90, 91]: for every finite list of formulas of set theory, \(\mathsf{ZFC}\) proves that there are arbitrarily large ordinals \(\alpha\) such that each formula of the list holds in \(V_\alpha\), for any values taken from \(V_\alpha\), exactly when it holds among all sets. A derivation is finite and uses only finitely many properties of its universes. If it uses a universe only as a container closed under the finitely many constructions that it performs, such a set \(V_\alpha\) serves in place of the universe, and a conclusion about whole numbers is derived in \(\mathsf{ZFC}\). If it uses a universe as a model in which every axiom of \(\mathsf{ZFC}\) holds at once, no such replacement exists, and that is how Lean derives \(\mathrm{Con}(\mathsf{ZFC})\) (Theorem 21). Which of the two a derivation does is learned from the derivation. The expectation that the universes of Fermat’s proof could be replaced, and the trace of Section 9 for the certified term, differ in four respects.

  1. (i) What was in question. In 1995 the theorem was accepted on a proof that had been refereed and read by number theorists. The expectation concerned only how much set theory that accepted proof uses, and its truth did not wait on the answer. For the hypothesis, the certified derivation is the only derivation, and whether it is a derivation of the hypothesis at all rests on Sponsors B and C. A replacement of its universes would move its premise of truth down the ladder (Proposition 23) and would leave both sponsors where they stand: the replaced derivation would still be read through Carneiro’s model of Lean 4, and its statement would still mention Mathlib’s function at the pole of \(\zeta\).

  2. (ii) The evidence. Fermat’s proof is written to be read. Number theorists could see, and McLarty’s analysis of 2010 confirms, that universes entered it only through the foundations of general tools, étale cohomology, derived functors and categories of sheaves, and not through any step of the argument about elliptic curves and modular forms, whose objects are attached to one curve and one level and have bounded size [23, 12]. The tools themselves had versions without universes before 1995: Grothendieck’s construction of injective objects of 1957 [20] and Deligne’s account of étale cohomology of 1977 [19]. The proof had been refereed in 1995 and studied for fifteen years when McLarty examined its foundations. The certified term, exported into a file of \(61{,}570{,}595{,}788\) bytes [3], comes from the archive released with Alpöge’s note on 20 November 2026 [1]. The evidence about its universes is a trace through the dataset of its constants, which records, for each instantiation of a high level, the instantiation in which it was first reached (Section 6). The trace names one source for each instantiation. It does not show that replacing that source leaves no other route to the same level; only a recomputation on the replaced term shows that (Section 9). The archive’s own declarations reach Type 2 through its categories of étale sheaves. Counterparts without universes exist for these tools (Table 8), but whether the archive’s argument uses its categories only as those counterparts do is a question about that argument, and it has not been examined as the use of the tools in Fermat’s proof was examined.

  3. (iii) What has been carried out. For Fermat’s Last Theorem the replacement has been carried out: McLarty founded on finite-order arithmetic the tools that the proof uses (Theorem 31). For the certified term no derivation on a lower rung has been produced. Proposition 22 replaces the content of one step of one chain, and the term with that replacement has not been built.

  4. (iv) The statement. Fermat’s statement mentions whole numbers alone, so on whatever rung its derivation is read, the statement read there is Fermat’s. The certified statement mentions Mathlib’s riemannZeta, and on every rung its reading as the Riemann hypothesis passes through Sponsor C.

Consequence. The expectation of 1995 was an expectation about the foundations of an accepted proof. It rested on a proof that people could read, on versions of its tools without universes, and on the reflection theorem applied to a proof whose universes were seen to serve as containers, and it has been confirmed. The trace of Section 9 locates the first sources of the universes of a derivation whose model and bridge sponsors are open. It is evidence about that term, and not a ground for expecting the hypothesis on a lower rung. Nothing established places the hypothesis on a rung below the sixth, or, if the sponsors of the certified derivation fail, on any rung reached in finitely many steps (Proposition 33).

Remark 34 (a fixed finite object and a growing one). The argument for Fermat’s Last Theorem ends in one space of fixed finite dimension, the same for every hypothetical solution. The analogue of the Riemann hypothesis for curves over finite fields ends in the same way. Helmut Hasse (1898–1979) proved it for elliptic curves in 1934, André Weil (1906–1998) for all curves in 1948, and Deligne for all varieties in 1974 [86, 87, 88]. Let \(X\) be a curve of genus \(g\) over the field with \(q\) elements, and let \(N_n\) be the number of its points with coordinates in the field with \(q^n\) elements. Its zeta function \(Z(T)=\exp\bigl(\sum_{n\ge1}N_nT^n/n\bigr)\) equals \(P(T)/\bigl((1-T)(1-qT)\bigr)\) with \(P(T)=(1-a_1T)\cdots(1-a_{2g}T)\) for \(2g\) complex numbers \(a_i\), and the hypothesis for \(X\) is that \(|a_i|=q^{1/2}\) for every \(i\) [88]. Comparing the coefficients of \(T^n/n\) in the logarithms of the two sides, with \(\log\bigl(1/(1-cT)\bigr)=\sum_{n\ge1}c^nT^n/n\) for every number \(c\), gives \(N_n=q^n+1-(a_1^n+\dots+a_{2g}^n)\) for every \(n\). Infinitely many counts are governed by \(2g\) numbers, the eigenvalues of the Frobenius map on a cohomology space of dimension \(2g\) [88], and that fixed finite list closes the ladder of the exponents \(n\). Suppose only that \(|N_n-q^n-1|\le Kq^{n/2}\) for every \(n\), with some constant \(K\). The power series \(\sum_{n\ge0}(a_1^n+\dots+a_{2g}^n)z^n\) equals \(\sum_i1/(1-a_iz)\), as the expansion of each fraction as a geometric series shows. Its terms have size at most \(K(q^{1/2}|z|)^n\) for \(n\ge1\), so it converges where \(|z|<q^{-1/2}\), and a convergent power series has no pole inside its disk of convergence. Each fraction \(1/(1-a_iz)\) has its pole at \(z=1/a_i\), and fractions with equal \(a_i\) add rather than cancel, so \(|1/a_i|\ge q^{-1/2}\), that is, \(|a_i|\le q^{1/2}\). The functional equation \(Z(1/(qT))=q^{1-g}T^{2-2g}Z(T)\) leaves the list \(a_1,\dots,a_{2g}\) unchanged when each \(a_i\) is replaced by \(q/a_i\), so also \(|q/a_i|\le q^{1/2}\), that is, \(|a_i|\ge q^{1/2}\) [88]. A bound off by any fixed factor becomes the exact statement, because the list is finite and fixed. In the terms of [34]: on a finite set of size \(D\), passing from averages of order \(r\) to every point costs the factor \(D^{1/r}\), and a fixed factor \(C>1\) is reached exactly when \(r\ge\log D/\log C\) (Lemma 10.2 and Corollary 10.3 of its part on resolution ladders, Teichmüller pinching and pointwise upgrade mechanisms). For the curve, \(D=2g\) is fixed. For Riemann’s \(\zeta\) the zeros are infinitely many. The number \(D(T)\) of those with heights between \(T\) and \(2T\) is \((T/2\pi)\log T+O(T)\), where \(O(T)\) stands for a quantity at most a constant times \(T\) (Proposition 9.6 of that part), and the order needed grows like \(\log T\). A space on which all the zeros are eigenvalues of one map would be infinite-dimensional. The idea associated with David Hilbert and George Pólya (1887–1985), whose earliest published statement appears to be that of Hugh Montgomery (born 1944) in 1973, asks for a self-adjoint operator on such a space [89]; none has been constructed. The contrast is a fact about the mathematics known now. It shows where Fermat’s Last Theorem found its closure, and it does not show that the hypothesis cannot find one, which the book leaves open in the form of a singular bridge (Remark 21.62 of its part on logical stratification).

10.7 What the certified derivation reduces the hypothesis to

In number theory the Riemann hypothesis is a question about one function. A nontrivial zero of \(\zeta\) is a complex number \(s\) with real part strictly between \(0\) and \(1\) at which \(\zeta(s)=0\), and the hypothesis asks whether every nontrivial zero has real part exactly \(\tfrac12\). Its \(\Pi_1\) form \(\mathrm{RH}_{\Pi_1}\), “for every \(x\), \(\theta(x)\)” with \(\theta\) bounded (Section 7), says that one computation succeeds at every whole number. This subsection determines what the certified derivation puts in the place of that question. Under its sponsors the hypothesis follows from the consistency of \(\mathsf{ZFC}_6\), and the derivation joins the two sentences by an explicit computation.

Proposition 35 (the certified derivation turns every failure of the hypothesis into a contradiction on the sixth rung). Under Sponsors A, B and C there is a computation \(g\), defined on the whole numbers, with this property: whenever \(\theta\) fails at a whole number \(m\), \(g(m)\) is the code of a derivation of \(0=1\) from \(\mathsf{ZFC}_6\). Peano arithmetic derives that \(g\) has this property. Consequently Peano arithmetic derives the sentence “if \(\mathsf{ZFC}_6\) is consistent, then \(\mathrm{RH}_{\Pi_1}\).”

Proof. Under the three sponsors \(\mathsf{ZFC}_6\) derives \(\mathrm{RH}_{\Pi_1}\). The argument is that of Theorem 19(a): the standard model, which \(\mathsf{ZFC}_6\) builds under Sponsor B, validates the judgments of the certified term, so \(\mathsf{ZFC}_6\) derives that the sentence riemannHypothesis holds in the model; Sponsor C carries that sentence to the Riemann hypothesis, and the theorem of Davis, Matiyasevich and Robinson carries the Riemann hypothesis to \(\mathrm{RH}_{\Pi_1}\). Fix one such derivation \(D\). It is a finite list of formulas, and its code is one particular whole number.

Given a whole number \(m\), the computation \(g\) first decides \(\theta(\overline{m})\), which takes finitely many steps because \(\theta\) is bounded. If \(\theta(\overline{m})\) is true, \(g(m)\) is \(0\). If it is false, \(g\) writes out a derivation \(E_m\) of “not \(\theta(\overline{m})\)” from the axioms of Robinson arithmetic \(\mathsf{Q}\). Such a derivation exists by Theorem 9(a), and it is built by following the evaluation of the bounded formula: a bounded quantifier “for every \(y<t\)” or “for some \(y<t\),” whose bound \(t\) evaluates to a number \(k\), is replaced by the \(k\) cases \(y=0,1,\dots,k-1\), and each atomic case, an equation or an inequality between numerals, is derived from the axioms of \(\mathsf{Q}\) by the recursion equations for \(+\) and \(\cdot\). So \(E_m\) is computed from \(m\). \(\mathsf{ZFC}_6\) derives the axioms of \(\mathsf{Q}\) read in \(\omega\), and a fixed computation turns every derivation from \(\mathsf{Q}\) into a derivation from \(\mathsf{ZFC}_6\) of the same formula read in \(\omega\). Then \(g(m)\) is the code of the list that consists of \(D\); the instance \(\theta(\overline{m})\) of its last formula, obtained by the rule that passes from “for every \(x\)” to one particular \(x\); the translation of \(E_m\); and the steps that pass from a formula and its negation to \(0=1\). This list is a derivation of \(0=1\) from \(\mathsf{ZFC}_6\).

Each part of this description is an operation on codes carried out by a computation, and each claim made about it is a claim about finite lists of symbols. Peano arithmetic derives these claims by induction on the length of the lists, as it derives the formalized form of Theorem 9(a) that goes back to Hilbert and Bernays [26] and is used in the proof of Proposition 29(b). Hence Peano arithmetic derives: for every \(m\), if \(\theta(m)\) fails, then \(g(m)\) is the code of a derivation of \(0=1\) from \(\mathsf{ZFC}_6\). The contrapositive reads: if no whole number is the code of a derivation of \(0=1\) from \(\mathsf{ZFC}_6\), then \(\theta(m)\) holds for every \(m\). That is the sentence “\(\mathrm{Con}(\mathsf{ZFC}_6)\) implies \(\mathrm{RH}_{\Pi_1}\).”

Consequence. The certified derivation ties two searches through the whole numbers together: the search for a whole number at which \(\theta\) fails, and the search for a derivation of \(0=1\) from \(\mathsf{ZFC}_6\). The computation \(g\) turns a success of the first into a success of the second. The hypothesis says that the first search never succeeds; the derivation reduces this to the statement that the second never succeeds, which is \(\mathrm{Con}(\mathsf{ZFC}_6)\). Both statements are \(\Pi_1\) sentences. The universal quantifier over the whole numbers that makes the hypothesis hard is therefore not discharged by the derivation. It reappears, with the same logical form, as the universal quantifier of \(\mathrm{Con}(\mathsf{ZFC}_6)\), now ranging over the codes of derivations from set theory with six inaccessible cardinals in place of the arguments of \(\theta\), and nothing about \(\zeta\) enters the sentence in which it reappears. The difficulty of the hypothesis has moved out of number theory, into the question whether the axiom of six inaccessible cardinals, added to \(\mathsf{ZFC}\), ever leads to \(0=1\).

Theorem 36 (the premise lies beyond \(\mathsf{ZFC}\), and so does every certification of it). Let \(S\) and \(T\) be theories whose axioms are recognized by a computation and which derive the axioms of \(\mathsf{Q}\), read in \(\omega\) if they are set theories.

  1. (a) If \(T\) derives a \(\Pi_1\) sentence \(\pi\), Peano arithmetic derives “if \(T\) is consistent, then \(\pi\).” In particular, if \(T\) derives \(\mathrm{Con}(S)\), Peano arithmetic derives “if \(T\) is consistent, then \(S\) is consistent.”

  2. (b) Peano arithmetic derives “if \(\mathsf{ZFC}_6\) is consistent, then \(\mathsf{ZFC}\) is consistent.” If \(\mathsf{ZFC}\) is consistent, \(\mathsf{ZFC}\) does not derive \(\mathrm{Con}(\mathsf{ZFC}_6)\).

  3. (c) If \(T\) derives \(\mathrm{Con}(\mathsf{ZFC}_6)\) and \(\mathsf{ZFC}\) derives \(\mathrm{Con}(T)\), then \(\mathsf{ZFC}\) is inconsistent.

  4. (d) Let \(T_1,\dots,T_n\) be theories of the same kind such that \(T_1\) derives \(\mathrm{Con}(\mathsf{ZFC}_6)\) and \(T_{i+1}\) derives \(\mathrm{Con}(T_i)\) for each \(i<n\). If \(\mathsf{ZFC}\) is consistent, \(\mathsf{ZFC}\) derives none of the sentences \(\mathrm{Con}(T_1),\dots,\mathrm{Con}(T_n)\).

Proof. (a) Write \(\pi\) as “for every \(x\), \(\psi(x)\)” with \(\psi\) bounded, and fix a derivation of \(\pi\) from \(T\). That it is a derivation of \(\pi\) from \(T\) is decided by a computation, so \(\mathsf{Q}\), and with it Peano arithmetic, derives that it is one (Theorem 9(a)). Now argue inside Peano arithmetic. Suppose \(\psi\) fails at some \(m\). By the formalized form of Theorem 9(a), \(\mathsf{Q}\) derives “not \(\psi(\overline{m})\),” and so does \(T\), which derives the axioms of \(\mathsf{Q}\). From the fixed derivation of \(\pi\), by the rule that passes from “for every \(x\)” to one particular \(x\), \(T\) derives \(\psi(\overline{m})\). So \(T\) derives a formula and its negation, and from these \(0=1\): \(T\) is inconsistent. Hence, if \(T\) is consistent, \(\psi\) holds at every \(m\), which is \(\pi\). The argument is that of Proposition 35, with \(T\) and \(\pi\) in the places of \(\mathsf{ZFC}_6\) and \(\mathrm{RH}_{\Pi_1}\). The particular case is \(\pi=\mathrm{Con}(S)\), which is a \(\Pi_1\) sentence (Definition 5).

(b) Every axiom of \(\mathsf{ZFC}\) is an axiom of \(\mathsf{ZFC}_6\), so every derivation from \(\mathsf{ZFC}\) is a derivation from \(\mathsf{ZFC}_6\). Peano arithmetic derives this fact about codes, and with it “if \(\mathsf{ZFC}\) derives \(0=1\), so does \(\mathsf{ZFC}_6\),” whose contrapositive is the first claim. Suppose \(\mathsf{ZFC}\) derived \(\mathrm{Con}(\mathsf{ZFC}_6)\). \(\mathsf{ZFC}\) derives the axioms of Peano arithmetic read in \(\omega\), and so every theorem of Peano arithmetic; by the first claim it would derive \(\mathrm{Con}(\mathsf{ZFC})\). By Gödel’s second theorem (Theorem 11(a) with \(k=0\)), \(\mathsf{ZFC}\) would then be inconsistent.

(c) By (a) with \(S=\mathsf{ZFC}_6\), Peano arithmetic, and therefore \(\mathsf{ZFC}\), derives “if \(T\) is consistent, then \(\mathsf{ZFC}_6\) is consistent.” If \(\mathsf{ZFC}\) also derives \(\mathrm{Con}(T)\), it derives \(\mathrm{Con}(\mathsf{ZFC}_6)\), and by (b) it is inconsistent.

(d) Suppose \(\mathsf{ZFC}\) is consistent and derives \(\mathrm{Con}(T_i)\) for some \(i\). If \(i>1\), then \(T_i\) derives \(\mathrm{Con}(T_{i-1})\), so by (a) \(\mathsf{ZFC}\) derives “if \(T_i\) is consistent, then \(T_{i-1}\) is consistent,” and hence derives \(\mathrm{Con}(T_{i-1})\). After \(i-1\) such steps \(\mathsf{ZFC}\) derives \(\mathrm{Con}(T_1)\), and by (c), with \(T=T_1\), \(\mathsf{ZFC}\) is inconsistent, contrary to the supposition.

Consequence. The reduction of Proposition 35 exchanges \(\mathrm{RH}_{\Pi_1}\), whose derivability in \(\mathsf{ZFC}\) is open (Section 10.5), for \(\mathrm{Con}(\mathsf{ZFC}_6)\), which \(\mathsf{ZFC}\) does not derive unless it is inconsistent. The reduction therefore does not place the hypothesis among the theorems of \(\mathsf{ZFC}\), and the sentence that it puts in the hypothesis’s place is beyond \(\mathsf{ZFC}\) in a way that the hypothesis is not known to be: it leads from a sentence that \(\mathsf{ZFC}\) may derive to one that \(\mathsf{ZFC}\) does not. The barrier is not confined to \(\mathsf{ZFC}\) and the rungs \(\mathsf{ZFC}_k\). Every certification of the premise is a derivation of it in some system whose axioms a computation recognizes: \(\mathsf{ZFC}_7\), Lean with further universes, Peano arithmetic with \(\mathrm{Con}(\mathsf{ZFC}_6)\) added as an axiom, or any other. By (c), \(\mathsf{ZFC}\) does not derive the consistency of that system. By (d), the same holds for every system in the chain of certifications above it, however long the chain is. A kernel’s acceptance of a derivation of the premise is a finite fact about such a system, and by (a) it yields the premise only together with that system’s consistency. The certification of the premise climbs, and it does not reach a system whose consistency \(\mathsf{ZFC}\) derives. Fermat’s Last Theorem stands otherwise: \(\mathsf{FOA}\) derives it, and \(\mathsf{ZFC}\) derives \(\mathrm{Con}(\mathsf{FOA})\) (Proposition 32), so its chain of certification ends inside \(\mathsf{ZFC}\) at the first step.

The four premises. Under the reduction, the affirmation of the hypothesis on the strength of the certified term rests on four premises. Table 11 sets out what each one concerns, what would settle it, and where it stands.

Premise What it concerns What would settle it Where it stands
Sponsor A, checking a finite object, the exported term of \(61{,}570{,}595{,}788\) bytes, and the rules of Lean’s kernel repeating the check, a finite computation settled as a finite fact: the kernel and the independent checkers accepted the term, and anyone can repeat the check [2, 3]
Sponsor B, the model the rules of Lean 4 and their reading in sets: the metatheory of a proof assistant a proof in \(\mathsf{ZFC}\) that Carneiro’s soundness argument covers the rules of Lean 4 that the term uses open: nested inductive types and the rule \(\eta\) for structures lie outside the proof of 2019 (Section 4.3)
Sponsor C, the bridge Mathlib’s definitions and Riemann’s \(\zeta\): the correspondence between formal definitions and classical objects a derivation, checked by machine or written by hand, that riemannHypothesis, read in the model, is equivalent to a sentence about whole numbers alone, such as that of Davis, Matiyasevich and Robinson open: made by people from Mathlib’s definitions, and carrying the disagreement at the pole [33]
\(\mathrm{Con}(\mathsf{ZFC}_6)\) the derivations from set theory with six inaccessible cardinals: the consistency of axioms of large cardinals no derivation settles it outright; a derivation in a stronger system hands it on to the consistency of that system beyond \(\mathsf{ZFC}\), and beyond every system whose consistency \(\mathsf{ZFC}\) derives (Theorem 36)
Table 11. The four premises of the affirmation of the hypothesis on the strength of the certified term.

Consequence. The difficulty of the hypothesis, which in number theory is the question about the nontrivial zeros of \(\zeta\), has been moved by the certified derivation into the four places of Table 11, and none of them is a question about \(\zeta\). The kernel’s check settles the first, which is a finite fact. The second and third are open problems of ordinary kinds, in the metatheory of a proof assistant and in the correspondence between formal definitions and classical objects; proofs carried out in \(\mathsf{ZFC}\) could settle them, and neither has been given. The fourth is of another kind. \(\mathsf{ZFC}\) does not derive it, no system whose consistency \(\mathsf{ZFC}\) derives derives it, and a derivation of it anywhere else hands it on to the consistency of the system used (Theorem 36). The derivation does not settle the hypothesis. It moves the universal quantifier of the hypothesis, unchanged in form, to the one place of the table that no work inside \(\mathsf{ZFC}\) reaches.

10.8 What removing the universes would require, and why no rung above closes the ladder

Two routes would change the standing of the certified affirmation. Going down, a derivation of the hypothesis in \(\mathsf{ZFC}\) or below would put its premise where the premise of Fermat’s Last Theorem stands. Going up, a derivation of the premise \(\mathrm{Con}(\mathsf{ZFC}_6)\) would discharge it. This subsection measures both routes for the certified derivation.

What removing the universes would require. The results established above determine what a derivation of the hypothesis in \(\mathsf{ZFC}\), obtained from the certified term, would require.

  1. (i) An argument for this term, since none exists for all terms. Lean derives \(\mathrm{Con}(\mathsf{ZFC}_k)\) for every \(k\), which \(\mathsf{ZFC}_k\), if consistent, does not derive (Theorem 21). A procedure that brought every Lean derivation down to a fixed rung would give that rung a derivation of its own consistency. Whatever lowers the certified term must use properties of this term that other Lean derivations lack, and those properties have to be found in the term and proved.

  2. (ii) A reading other than the standard model. Every standard model of the certified term has six inaccessible cardinals, and every theory that builds one derives that six exist (Theorem 18(a)). The standard reading of the term cannot be lowered at all. A derivation in \(\mathsf{ZFC}\) obtained from the term needs a changed term, or a reading of Lean’s levels by sets that \(\mathsf{ZFC}\) supplies, proved to validate every judgment of the term.

  3. (iii) A bound on every family that the full formers receive. The reflection theorem of Lévy and Montague lets a set \(V_\alpha\) that \(\mathsf{ZFC}\) supplies serve in place of a universe that a derivation uses only as a container closed under finitely many constructions, and which use a derivation makes is learned from the derivation (Section 10.6). At each of its six levels the certified term contains constants that form the product or the sum of an arbitrary family of types of that level, indexed by an arbitrary type of that level (Theorem 17). A reading by sets that \(\mathsf{ZFC}\) supplies has to bound every family to which these constants are applied, through all of the \(1{,}484{,}729\) constants of the cone. At the levels Sort 1 and Sort 2 the constants are the dependent sums, function extensionality and the recursion of lists, which run through the archive and through all of Mathlib (Table 8). There the demand is not the contribution of one lemma that a counterpart could replace. It is the standard model’s reading of constructions that are used everywhere, which requires a universe at every level that carries a full former, whatever the content of the derivation (Theorem 15). James E. Hanson proposed in 2025 a semi-automatic interpretation of Lean’s levels by approximate universes, built from the sets of hereditary size below a cardinal together with forcing [12]. No such interpretation has been applied to the certified term.

  4. (iv) Rebuilt terms, checked and measured again. For the levels \(3\) to \(6\) the dataset’s tree of first discoveries records, for each instantiation of a high level, the one instantiation from which it was first reached. A replacement at that source shows that a level is gone only when the replaced term has been built, accepted by the kernel and measured again, since other routes through the cone may reach the same level (Section 9). For the top level, Proposition 22 supplies the content of one step of one chain, and the term with that replacement has not been built.

  5. (v) Universe-free tools inside the archive. The archive’s own declarations reach Type 2 through its categories of étale sheaves. Mathematics that carries these tools without universes exists in writing: Grothendieck’s construction of injective objects of 1957, the comparison lemma of SGA 4, Deligne’s account of étale cohomology of 1977, and McLarty’s foundation of SGA on finite-order arithmetic of 2020 [20, 18, 19, 24]. Whether the archive’s argument uses its categories only as these counterparts do has not been examined (Section 10.6), and carrying the counterparts into the \(1{,}270{,}184\) constants that the archive contributes to the cone is a formalization of its own.

  6. (vi) A precedent of fifteen and twenty-five years. For Fermat’s Last Theorem the corresponding work was done on a proof that had been refereed and read, whose universes were seen to enter only through general tools, and whose tools had versions without universes from 1957 and 1977. McLarty determined in 2010 what the proof needs, and founded its large structures on finite-order arithmetic in 2020, fifteen and twenty-five years after the proof was published [23, 24].

  7. (vii) An end point one rung above \(\mathsf{ZFC}\). If every step succeeds, the result is a derivation of the hypothesis in \(\mathsf{ZFC}\), and its premise of truth is \(\mathrm{Con}(\mathsf{ZFC})\), one rung above \(\mathsf{ZFC}\) (Proposition 23). That is the place of Fermat’s Last Theorem and of the mathematics that \(\mathsf{ZFC}\) founds. The ladder above it remains, as it remains above every derivation.

Consequence. Removing the universes is not bookkeeping left over from the certification. It requires an argument specific to the certified term; a reading of Lean’s levels other than the standard model, with a bound on every family that the full formers of the six levels receive, including those of the constructions used throughout Mathlib; rebuilt terms, accepted by the kernel and measured again, at the higher levels; and a formalization of universe-free foundations for the archive’s tools. The one precedent took fifteen and twenty-five years, on a proof that people had refereed and read. Nothing in the certified term shows that the result exists, and if it is achieved, it places the premise at \(\mathrm{Con}(\mathsf{ZFC})\), where accepted mathematics stands; it does not remove the premise.

The ladder above the premise. The other route discharges the premise by deriving it. Theorem 36 shows that every such derivation lies in a system whose consistency \(\mathsf{ZFC}\) does not derive, and that the same holds for every system in the chain of certifications above it. Three further facts show that no stage of the ladder, finite or infinite, closes it.

  1. (i) Rung by rung. \(\mathsf{ZFC}_7\) derives \(\mathrm{Con}(\mathsf{ZFC}_6)\), and, if consistent, does not derive \(\mathrm{Con}(\mathsf{ZFC}_7)\); \(\mathsf{ZFC}_8\) derives that, and so on (Theorems 10 and 11). Each rung’s premise stands on the next.

  2. (ii) At the limit. \(\mathsf{ZFC}_\infty\) derives \(\mathrm{Con}(\mathsf{ZFC}_k)\) for each \(k\), one \(k\) at a time; the single sentence that every \(\mathsf{ZFC}_k\) is consistent is \(\mathrm{Con}(\mathsf{ZFC}_\infty)\) itself. If \(\mathsf{ZFC}_\infty\) is consistent, its own consistency is a true \(\Pi_1\) sentence that no rung \(\mathsf{ZFC}_k\) derives (Proposition 33(b)), and \(\mathsf{ZFC}_\infty\) does not derive it either, by Gödel’s second theorem. The same holds for the theory \(T_\omega\) obtained by adding consistency statements to \(\mathsf{ZFC}\) once for every whole number (Proposition 33(a)). Taking all the rungs at once places a new premise above all of them.

  3. (iii) Past the limit, along Turing’s route. Turing proved in 1939 that every true \(\Pi_1\) sentence is derived at the stage \(\omega+1\) of a progression of theories built by adding consistency statements, along a suitable notation for \(\omega+1\) [29]. The notation is built from the sentence itself, and recognizing it as a genuine notation requires knowing that the sentence is true; if the sentence is false, the theory at the stage \(\omega\) along it derives its own consistency and is inconsistent [65]. Feferman and Spector showed in 1962 that along some paths through the constructive ordinals the progression built by iterating uniform reflection does not reach every true \(\Pi_1\) sentence [64]. The one step that closes the ladder of a \(\Pi_1\) sentence at once is the \(\omega\)-rule, which has infinitely many premises and is a rule of no system whose derivations a computation checks; its statement as the reflection principle \(\mathrm{RFN}(T)\) stands one rung above \(T\) (Corollary 20).

Consequence. For the certified derivation the ladder of Gödel and Turing is a barrier, and not a step that remains to be taken. Upward, no rung closes it: the premise passes from each rung to the next, past the limit of all the finite rungs, and to the stage \(\omega+1\) only along a notation whose recognition presupposes the answer, and none of the systems that certify it is one whose consistency \(\mathsf{ZFC}\) derives. Downward, removing the universes requires new mathematics that nothing in the certified term shows to exist, and its end point is a premise one rung above \(\mathsf{ZFC}\). The certified affirmation therefore cannot be completed, by further checking or by further rungs, into a proof that stands where Fermat’s Last Theorem stands. Only a derivation of the hypothesis in \(\mathsf{ZFC}\) or below would stand there, and none is known. In the terms of [34], this is the internal certification collapse and the non-closure of the Turing progression, realized for one derivation: a scheme that certifies all-stage claims uniformly inside a fixed theory is driven onto a ladder of stronger meta-theories, and no stage of the progression derives the reflection principles of all its stages (Theorem 6.14 of the book’s part on bridge necessity, and Theorem 21.4 and Remark 21.5 of its part on the truncated quasiconformal energy).

10.9 The position of this paper

This paper holds that the Riemann hypothesis is unresolved and remains open. The grounds are these.

  1. (i) The certification of 21 November 2026 established that Lean’s kernel, and the independent checkers, accept a derivation of the hypothesis. That is a finite fact, which anyone can check again (Sponsor A).

  2. (ii) The passage from that fact to the truth of the hypothesis runs through three further premises. Sponsor B, that Carneiro’s soundness argument covers the rules of Lean 4 used by the term, has not been proved: nested inductive types and the rule \(\eta\) for structures change the theory covered by the proof of 2019, and in 2026 a defect in the kernel’s checking of nested inductive declarations, by which a false statement could be proved, was found and corrected before the version used for the export (Section 4.3). Sponsor C, that Mathlib’s sentence is equivalent to the hypothesis, rests on arguments made by people and checked by no machine. The consistency of \(\mathsf{ZFC}_6\) lies on the seventh rung, above the theory in which the derivation is read (Theorem 19).

  3. (iii) No means of computation supplies a finite certificate for the answer “true.” Quantum algorithms with computable settings compute what Turing machines compute (Proposition 26). Axioms about transfinite numbers add derivations, each on its own rung, and leave every computation as it is (Proposition 27). A device that completed the one infinite step that decides the hypothesis would return a “true” that no finite check confirms (Proposition 28).

  4. (iv) The one settlement that rests on nothing besides a computation is a refutation, a whole number at which \(\theta\) fails (Proposition 25(a)). None has been found. The hypothesis has been verified with rigorous error bounds up to height \(3\cdot10^{12}\) [42]; that is a finite part of its ladder, and no finite part implies the rest (Proposition 21.28 of [34]).

  5. (v) Whether the hypothesis is derivable in \(\mathsf{ZFC}\) or in Peano arithmetic is unknown, and no proof of its independence from any theory has been given. Such a proof would itself be a derivation of the hypothesis in a stronger theory, with the premise of its truth one rung higher (Proposition 29).

  6. (vi) The premise of the seventh rung is not one that every theorem shares. Fermat’s Last Theorem, a sentence of the same logical form, is derived in finite-order arithmetic, below \(\mathsf{ZFC}\), with no consistency statement or reflection principle among its axioms, and \(\mathsf{ZFC}\) derives the premise of its truth; \(\mathsf{ZFC}\) does not derive the premise of the certified derivation unless set theory with six inaccessible cardinals is inconsistent (Proposition 32). Some true universal sentences lie on no rung reached in finitely many steps (Proposition 33), so the form of the hypothesis does not guarantee it a lower rung. The trace of Section 9 locates the sources of the certified term’s cardinals; it does not place the hypothesis on a lower rung, for the reasons set out in Section 10.6.

  7. (vii) The certified derivation moves the difficulty of the hypothesis and does not settle it. It turns every failure of the computation \(\theta\) into a contradiction of \(\mathsf{ZFC}_6\), so that the hypothesis rests on three premises outside number theory, of which the kernel’s check settles none (Proposition 35, Table 11). The consistency premise is derived by no theory whose consistency \(\mathsf{ZFC}\) derives, so every certification of it passes it upward (Theorem 36); neither the limit of the rungs nor Turing’s progression along a notation that can be recognized without the answer closes the ladder; and removing the universes would require new mathematics that nothing in the certified term shows to exist, with a premise one rung above \(\mathsf{ZFC}\) as its end point (Section 10.8).

The hypothesis is therefore unresolved in both directions in which it could be settled. The direction that a finite check could close, refutation, has not been closed. The direction that the certified derivation addresses, affirmation, is closed only relative to premises, one of which is unproved and one of which lies a rung above the derivation; no computation, quantum or transfinite, turns that closure into a finite certificate; no rung, finite or at the limit of the rungs, discharges the premise above it; and every certification of that premise lies in a system whose consistency \(\mathsf{ZFC}\) does not derive (Theorem 36).

The position does not rest on the standard of finite certification, which, applied by itself, classes as open every universal statement that has not been refuted. Mathematicians count such a statement as a theorem when it is derived from axioms that mathematics accepts, and this paper leaves that acceptance standing. Fermat’s Last Theorem is counted so: it is derived in finite-order arithmetic, and \(\mathsf{ZFC}\) derives the premise of its truth (Proposition 32). The certified derivation does not stand there. Accepting it as a proof of the hypothesis accepts three sponsors, of which the model sponsor is unproved and the bridge sponsor carries the disagreement at the pole, and the consistency of set theory with six inaccessible cardinals, a premise of the seventh rung, which \(\mathsf{ZFC}\) does not derive if that theory is consistent. The reply that such a premise belongs to all of mathematics does not meet this. What belongs to every derivation of a universal sentence is a premise one rung above its theory; where that rung stands differs, and Fermat’s Last Theorem and the hypothesis stand at opposite places (Section 10.6). The record of the hypothesis should name its sponsors and its rung, together with the questions that remain. It reads: derived in set theory with six inaccessible cardinals, under the sponsors of checking, of the model and of the bridge; true if that theory is consistent, a premise that \(\mathsf{ZFC}\) does not derive and that no system whose consistency \(\mathsf{ZFC}\) derives derives; refuted by no whole number found so far; the least rung at which it is derivable unknown; its derivability in \(\mathsf{ZFC}\) and in Peano arithmetic open; its independence from any theory unproved. On that record the hypothesis is unresolved. This is the form that the diagnosis of [34] takes for the certified derivation: it derives a selected closure channel of the hypothesis on the sixth rung, the certification of its truth stands on the seventh, and on the seventh the same barrier recurs.

11 Conclusion

Read in set theory through the standard model of Werner and Carneiro, the certified Lean derivation of the Riemann hypothesis requires exactly six inaccessible cardinals. A level of Lean’s types needs an inaccessible cardinal when the derivation forms products or sums over arbitrary families of types of that level. The certified term does so at Type 0 through Type 5, and its highest level, Type 6, carries no such construction. The archive’s own declarations reach Type 2. The cardinals at the three levels above are demanded by library proofs whose levels rise through bookkeeping. In the dataset’s tree of first discoveries, one chain carries the term to its sixth cardinal and its highest sort; it derives the rank of a product of finite modules through the theory of arbitrary cardinals and a Boolean-algebra identity proved by ac_rfl. Each source has a counterpart in mathematics that uses no universe: as far as the dataset’s tree of first discoveries records their sources, the cardinals are those of the archive’s tools and of the libraries’ bookkeeping, and the term contains no indication that the hypothesis itself needs any inaccessible cardinal; no derivation shows that it can do with fewer. No general procedure removes universes, so whether the hypothesis needs them is a property of its derivations.

On the ladder, each inaccessible cardinal contains the \(\omega\)-completion step of the rung below it and asserts a completed universe of sets besides. The certified result, with its system and its count, is that set theory with six inaccessible cardinals derives the hypothesis. Its passage to truth is sponsored by the consistency of that theory, which is the seventh step and which the six rungs do not take. A derivation in a weaker theory would move that premise down the ladder and keep it one rung above the theory. These measurements realize, for one object, the laddered non-closure that [34] proves for the hypothesis and on which the book bases its account of why the hypothesis is open: the certified term derives a selected closure channel of the hypothesis on the sixth rung, the certification of its truth stands on the seventh, and on the seventh the same barrier recurs.

The premise one rung above does not stand in the same place for all of mathematics. Fermat’s Last Theorem, a sentence of the same logical form, was closed by an argument that carries every hypothetical solution to one space of fixed finite dimension, and its derivation stands in finite-order arithmetic, below \(\mathsf{ZFC}\), which derives the premise of its truth. The certified derivation of the hypothesis stands on the sixth rung, and its premise on the seventh, which \(\mathsf{ZFC}\) does not derive if set theory with six inaccessible cardinals is consistent. The difference is a difference of place on the ladder, and it is what the measurements of this paper record. The universes of Fermat’s published proof were expected to be replaceable because a proof that people could read showed how they were used, and the replacement has been carried out. For the certified derivation the sources of its cardinals are traced, no replacement has been carried out, and its model and bridge sponsors are open, so nothing places the hypothesis below the sixth rung.

The certified derivation moves the difficulty of the hypothesis rather than settling it. Under its sponsors it turns every whole number at which the computation of the hypothesis would fail into a derivation of \(0=1\) from set theory with six inaccessible cardinals, so that the universal quantifier of the hypothesis reappears, unchanged in form, in the consistency of that theory, beside two further premises, about the rules of Lean 4 and about Mathlib’s definitions; the kernel’s check settles none of the three. \(\mathsf{ZFC}\) does not derive the consistency premise, and no theory whose consistency \(\mathsf{ZFC}\) derives derives it: every certification of it passes it to a system that \(\mathsf{ZFC}\) does not vouch for, past the limit of all the finite rungs, and to Turing’s stage \(\omega+1\) only along a notation whose recognition presupposes the answer. Removing the universes would require a reading of Lean’s levels other than the standard model, with a bound on every family that the term’s full formers receive, rebuilt terms above them and universe-free tools inside the archive, which nothing in the term shows to exist, and it would end with the premise one rung above \(\mathsf{ZFC}\), where Fermat’s Last Theorem stands.

The hypothesis remains open. A refutation would be a whole number at which a computation fails, a settlement that holds in every theory and rests on nothing besides the computation; none has been found. An affirmation has no finite certificate. Quantum algorithms with computable settings compute what Turing machines compute; axioms about transfinite numbers add derivations, each on its own rung, and change no computation; and the one infinite step that decides the hypothesis would return a “true” that no finite check confirms. The certified derivation affirms the hypothesis on the sixth rung, under a model sponsor not yet proved for Lean 4, and the certification of its truth stands on the seventh. The least rung at which the hypothesis is derivable is unknown, its derivability in ZFC and in Peano arithmetic is open, and a proof of its independence from any theory would itself be a derivation of it one rung higher. The problem is unresolved.

Data availability

The counts and tables are computed from the public dataset [4], version 0.2.1: the repository files data/universes-pairs-ge2.tsv.gz, data/universes-witness.tsv and data/universes-by-sort.tsv, and the release assets universes.tsv.gz and constants.csv.gz. The Supporting Information, a Jupyter notebook named after this paper, downloads the release assets when they are absent, prints their checksums, and recomputes every number of Sections 4 to 9. The Mathlib sources quoted are those of commit 0df444a360eaa60ab8c11dca51a86af692955474 [5].

Conflicts of interest

The author declares no conflict of interest.

References