News for hackers. Stuff that matters.
Re:Lean Verification of the Riemann Hypothesis by mathisfun123 on Saturday November 21, 2026 @04:26PM (#50593795)
They don't - the lean kernel isn't written in lean.
Re:Lean Verification of the Riemann Hypothesis by koolala on Saturday November 21, 2026 @04:50PM (#50593991)
"Con-leche is the first kernel for Lean written in Lean and proven consistent."
Re:Lean Verification of the Riemann Hypothesis by aniou on Sunday November 22, 2026 @03:59PM (#50603821)
It is very bold statement, in my opinion. Lean is a programming language. Nothing more, nothing less. Very specialized language, but not novel (we already had a number of functional languages).

In general there is a consensus that a logic of language cannot be proved by language itself, there is metalanguage required. If Lean can guarantee a correctness of algorithms then world would switch to functional languages, and the hell of bugs and vulnerabilities would vanish.

Re:Lean Verification of the Riemann Hypothesis by alethic on Saturday November 21, 2026 @04:52PM (#50594010)
This is just a performance issue. In theory, the Lean kernel could be written in Lean.

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.

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?
Re:Lean Verification of the Riemann Hypothesis by alethic on Sunday November 22, 2026 @01:26AM (#50596850)
Re:Lean Verification of the Riemann Hypothesis by cloudbonsai on Saturday November 21, 2026 @08:55PM (#50595474)
This is incorrect. There are multiple kernels that are written in Lean: con-leche (written in Lean) and lean4lean (written in Lean 4). They both agreed that the proof is sound. See https://math.mit.edu/~drew/grh/ for details.