Re:Lean Verification of the Riemann Hypothesis
by ComplexSystems on Sunday November 22, 2026 @01:08AM
(#50596762)
That makes sense, but what is this model of ZFC, and how does one specify it in first-order logic?
These independent kernels do not prove their own consistency -- rather, their function is to act as slower but more idiomatic/simpler implementations of Lean's meta-theory. It doesn't matter that they don't correspond 1:1 with Lean's official kernel at either a theoretical or an implementation level, because the independent kernels are not for proving Lean correct -- they're for auditing complex proofs, in a simpler system.
What is particularly interesting is that then these independent kernels are "proven correct"! This notion of correctness is specifically that con-leche (et al) will only accept theorems that are also correct with regards to a particular model of set theory, with membership / extensionality / other standard ZF axioms, and an infinite hierarchy of universes. This is (vaguely speaking) a set-theoretic model of Lean. It is here that Gödel's incompleteness theorems come into play. Lean indeed cannot verify that this set-theoretic model is "correct": what it can verify, however, is that the type-theoretic machinery is correct with respect to the set-theoretic machinery. This removes the possibility of an invalid proof slipping by by way Lean's comparator (which can run alternative kernels) by way of an implementation bug.
It leaves the possibility that Lean's metatheory is inconsistent. This is quite unlikely. The foundations of mathematics have been well-studied, and Lean builds directly on the huge amount of work that has been done, particularly by the Coq community, in figuring out what is and isn't consistent. The Coq theorem prover was really developed in conjunction with modern type theory... Lean came in after a lot of meta-theoretic issues had been ironed out, thanks to them.