News for hackers. Stuff that matters.
Re:Lean Verification of the Riemann Hypothesis by sunshowers on Saturday November 21, 2026 @04:41PM (#50593920)
They can't — any kind of formal verification is always with respect to a TCB — but you can get pretty high assurance through making the TCBs smaller and smaller, and making multiple independent TCBs. The Lean community has done both. I think at this point the chance of there being an error is smaller than the chance that aliens show up in the next year or similar.
Re:Lean Verification of the Riemann Hypothesis by wavemode on Saturday November 21, 2026 @06:19PM (#50594620)
[delayed]
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:48PM (#50595439)
The chance that the polymarket is an accurate Bayesian evaluation is 0%
Re:Lean Verification of the Riemann Hypothesis by wavemode on Saturday November 21, 2026 @10:34PM (#50595976)
[delayed]
Re:Lean Verification of the Riemann Hypothesis by yen223 on Saturday November 21, 2026 @09:22PM (#50595595)
polymarket doesnt replace lean, it replaces surveymonkey
Re:Lean Verification of the Riemann Hypothesis by odo1242 on Saturday November 21, 2026 @10:34PM (#50595975)
There’s a pretty big difference between “the US confirms that extraterrestrial life / aliens exist” and “aliens show up”
Re:Lean Verification of the Riemann Hypothesis by yard2010 on Sunday November 22, 2026 @03:45AM (#50597544)
Imagine 300 millions ago, something living on a not far planet, thinking, is there anybody out there? Doesn't know that space and time are entwined meaning it's not a question of where, but a question of when
Re:Lean Verification of the Riemann Hypothesis by odo1242 on Sunday November 22, 2026 @11:30AM (#50601095)
Keep in mind aliens in this context could also be, like, single-celled algae though
Re:Lean Verification of the Riemann Hypothesis by wizzwizz4 on Saturday November 21, 2026 @07:22PM (#50594982)
When the same bugs show up in multiple "independent" implementations of the "trusted computing base", I start suspecting that they're all ports of each other, making the same unforced choices of algorithm etc. Many folk from the LCF school will point and laugh at the description of Lean's TCB as "smaller". (Does the Lean kernel still contain an entire copy of GMP?) If reimplementing the kernel is much more than a weekend project, I'm certainly not willing to bet against the existence of errors.
Re:Lean Verification of the Riemann Hypothesis by sunshowers on Saturday November 21, 2026 @08:11PM (#50595253)
Sure, and aliens could show up tomorrow as well.
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:52PM (#50595457)
> When the same bugs show up in multiple "independent" implementations of the "trusted computing base"

Let us know when, because that hasn't happened.

Re:Lean Verification of the Riemann Hypothesis by alethic on Saturday November 21, 2026 @09:10PM (#50595539)
This did happen, in late July. https://leodemoura.github.io/blog/2026-8-1-postmortem-for-ke....

The "Summer of Soundness Bugs" was the main motivation for the development of con-leche. https://leodemoura.github.io/blog/2026-10-15-lean-now-ships-... con-leche makes this pretty unlikely to occur again, though. It's a formally verified kernel with respect to a set-theoretical model of Lean, that's been implemented in both Lean and Rust, and also has a version that's been compiled using a formally verified compiler with regards to the Kraken x86 semantics. The set-theoretic model theoretically could be inconsistent, but it's quite reasonably designed (ZFC w/o infinity or choice and w/ a universe hierarchy), so that's unlikely.

Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @10:27PM (#50595930)
> checking with an independent kernel still works, since it required two distinct bugs in two implementations

So no, it ("the same bugs") didn't happen.

Re:Lean Verification of the Riemann Hypothesis by alethic on Saturday November 21, 2026 @10:46PM (#50596029)
That line is not correct -- likely AI slop. I have no idea why he does this, but Leo de Moura appears to slop out about half of his blog posts. Not like, half of his overall blog posts, but half of each blog post -- every one is this weird mixture between AI prose and his own prose, from what I can tell from the tone (and the factual issues, like this one). It's really unpleasant. Sadly, they're also canonical reports, as far as the history of Lean goes.

The same bug (in the handling of nested inductive types) was indeed present in two kernels. It was present in Lean's standard kernel, and it was present in the independent lean4lean kernel. The "Collatz proof" using it actually slipped by three kernels in total, because the construction it used just-so-happened to also exploit a different bug in nomeda.

Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @11:14PM (#50596178)
I quoted your own source. If you think it is AI slop then don't post it.
Re:Lean Verification of the Riemann Hypothesis by alethic on Saturday November 21, 2026 @11:23PM (#50596211)
Buddy, read the source better! The contradiction is obvious.
Re:Lean Verification of the Riemann Hypothesis by Ohentis on Sunday November 22, 2026 @02:30PM (#50603037)
Isn't lean4lean explicitly not independent (I thought it was heavily based on the c++ implementation)
Re:Lean Verification of the Riemann Hypothesis by haberman on Saturday November 21, 2026 @08:58PM (#50595488)
Does this mean that the aspirations of Principia Mathematica are now in effect achievable? Whitehead and Russell were just a century too early?
Re:Lean Verification of the Riemann Hypothesis by bobson381 on Saturday November 21, 2026 @09:12PM (#50595547)
Ask the next gen of LLMs. We shall see
Re:Lean Verification of the Riemann Hypothesis by btilly on Saturday November 21, 2026 @11:19PM (#50596199)
No. Those aspirations are not possible. Mathematics cannot be reduced to pure logic alone - you have to assume something.

However we are now extremely clear on what you need to assume. And why some assumptions are necessary. And we have collections of assumptions that are very reasonable indeed.

The result is that there is a step of faith. But it is a step that people are very comfortable and confident with.

That said, I would be fascinated to know if this proof can be transformed into a proof that does not need all of the power of Lean. Can it be turned into a proof using the Peano Axioms alone? I think that has a good shot of being true. But it would take a lot of work.

Re:Lean Verification of the Riemann Hypothesis by stouset on Sunday November 22, 2026 @12:11AM (#50596509)
Is it even true that there is a step of faith?

We have many proofs given a set of axioms. But those axioms aren’t even taken on faith as much as they are assumed to be true. In a universe where they are true, the conclusions are true. We could assume they are false and prove other things about universes for which they are false.

I’m thinking along the lines of Euclidean vs. non-Euclidean geometry. Euclid made certain assumptions about geometry that were instrumental in proving various theorems. But you can also find geometries where those axioms are not true! And the existence of other geometries doesn’t invalidate Euclid’s conclusions, it just means that they’re only true when its axioms are taken.

Re:Lean Verification of the Riemann Hypothesis by tga_d on Sunday November 22, 2026 @01:13AM (#50596786)
Assuming we're not going down the route of paraconsistent logics (which ZFC etc. are not), consistency isn't really something you can do anything interesting with if it's violated. If it turns out you can also prove the Riemann Hypothesis false under ZFC (which would take out every other theorem along with it), that's just bad for math. So we have to take the leap of faith that won't happen.
Re:Lean Verification of the Riemann Hypothesis by bmitc on Saturday November 21, 2026 @10:56PM (#50596088)
What is a TCB in Lean or formal verification?
Re:Lean Verification of the Riemann Hypothesis by sunshowers on Saturday November 21, 2026 @11:08PM (#50596148)
The core set of things that, if you assume they are correct, the proof holds.

For a non-Lean example, a memory-safe language like Rust has unsafe code that forms its TCB. Assuming that the unsafe code is correct, safe Rust can't cause undefined behavior.

Re:Lean Verification of the Riemann Hypothesis by alethic on Saturday November 21, 2026 @11:16PM (#50596186)
To be clear, formal verification is both with respect to a trusted computing base, and with respect to a theoretical framework. Any such guarantees from formal verification are contingent on the theorem statement being correct, the implementation of whatever framework you're using being trustable, and the meta-theory being sound.

Rust doesn't actually have a theoretical framework, as far as I'm aware. It's obvious that there can be one, but I don't think that existing work ex. RustBelt come close to capturing the full extent of Rust yet.

Re:Lean Verification of the Riemann Hypothesis by sunshowers on Saturday November 21, 2026 @11:46PM (#50596341)
True — thanks!
Re:Lean Verification of the Riemann Hypothesis by gpvos on Sunday November 22, 2026 @02:04AM (#50597031)
TCB = trusted computing base