News for hackers. Stuff that matters.
Re:Lean Verification of the Riemann Hypothesis by rcr-anti on Saturday November 21, 2026 @11:40AM (#50590943)
While still possible, the proof exploiting a bug is vanishingly small now. Following a few bugs and bad proofs this year, there are a number of different implementations, in different languages, and with different levels of proofs of their consistency. con-leche and con-ron are the heavy hitters, with consistency proofs of themselves. So for RH to be false, there'd have to be a bug in all the kernels that affects both the consistency proofs and the RH proof itself.
Re:Lean Verification of the Riemann Hypothesis by whimsicalism on Saturday November 21, 2026 @12:31PM (#50591514)
is it still possible absent a flaw in the hardware model for con-leche?
Re:Lean Verification of the Riemann Hypothesis by layer8 on Saturday November 21, 2026 @12:44PM (#50591674)
The underlying type theory could theoretically turn out to be unsound.
Re:Lean Verification of the Riemann Hypothesis by bwestergard on Saturday November 21, 2026 @02:36PM (#50592839)
Which is perhaps not such a far-fetched possibility?

While I have not studied this topic enough to really understand _how_, but I've been told that type systems laid out in frequently cited papers by the likes of Girard and Martin-Löf were found to be unsound more than a decade after publication. These issues were then "patched", so to speak.

Can anyone better versed in type theory explain how likely that is for the type system of Lean?

Re:Lean Verification of the Riemann Hypothesis by NoahZuniga on Saturday November 21, 2026 @03:46PM (#50593466)
Con leche has been proved to be consistent if zfc is, so if it turns out to be inconsistent the entire foundation of modern day math turns out to be broken
Re:Lean Verification of the Riemann Hypothesis by bwestergard on Saturday November 21, 2026 @03:53PM (#50593532)
Wait, but wasn't that only "proven" with Claude, in Lean 4 itself? So that doesn't help us establish the soundness of the Lean 4 type system.
Re:Lean Verification of the Riemann Hypothesis by pfdietz on Saturday November 21, 2026 @08:36PM (#50595376)
I believe it's consistent if zfc + existence of an inaccessible cardinal is consistent. Is that equiconsistent with zfc?
Re:Lean Verification of the Riemann Hypothesis by Ohentis on Sunday November 22, 2026 @02:39PM (#50603120)
I could be wrong, but I thought con leche was a subset that shown to be equiconsistant with zfc (and this won't verify all valid lean programs).
Re:Lean Verification of the Riemann Hypothesis by luke5441 on Saturday November 21, 2026 @12:43PM (#50591665)
"This year" hints at them all being created this year. Does that mean they have all been created via LLM from the same corpus?
Re:Lean Verification of the Riemann Hypothesis by davidguetta on Saturday November 21, 2026 @12:54PM (#50591774)
how unreasonable is it to think that during the ai assited claude bruteforce process, it bruteforced also the kernel and built on a randomly found logical inconsistency
Re:Lean Verification of the Riemann Hypothesis by whimsicalism on Saturday November 21, 2026 @01:11PM (#50591926)
unreasonable
Re:Lean Verification of the Riemann Hypothesis by quantumspandex on Saturday November 21, 2026 @01:55PM (#50592372)
As unreasonable as assuming all human's peer reviewed proofs to be incorrect due to an error collectively missed by all humans.
Re:Lean Verification of the Riemann Hypothesis by awesome_dude on Saturday November 21, 2026 @04:53PM (#50594022)
Which isn't actually unreasonable. The chance of it happening is vanishing small, but collective errors have existed before in software and humans (usually stemming from some shared misunderstanding)

FTR I am not saying this is an example, just that it's always possible.

Re:Lean Verification of the Riemann Hypothesis by davidguetta on Saturday November 21, 2026 @06:09PM (#50594555)
Godel theorem kinda adresses one form of that. Its not an super far fetched idea on the first place
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:13PM (#50595261)
Wrong and wrong.
Re:Lean Verification of the Riemann Hypothesis by inglor_cz on Sunday November 22, 2026 @05:35AM (#50598281)
I would classify this supervague utterance as "nicht einmal falsch".
Re:Lean Verification of the Riemann Hypothesis by grandpa on Saturday November 21, 2026 @02:18PM (#50592639)
This is covered in point 4 of the linked post. The exported raw proof has been checked by several different kernels, not just one.
Re:Lean Verification of the Riemann Hypothesis by dev_dan_2 on Saturday November 21, 2026 @02:22PM (#50592708)
very, due to the precautions explained in the link. For example, they used multiple kernels with different implementations etc.
Re:Lean Verification of the Riemann Hypothesis by anon291 on Saturday November 21, 2026 @03:50PM (#50593504)
Highly unlikely. The lean kernel has been heavily scrutinized
Re:Lean Verification of the Riemann Hypothesis by 8note on Saturday November 21, 2026 @04:10PM (#50593671)
couldn't you similarly brute force claude to find and point out that inconsistency?
Re:Lean Verification of the Riemann Hypothesis by throw310822 on Saturday November 21, 2026 @04:36PM (#50593882)
Who said that Claude bruteforced anything, btw?
Re:Lean Verification of the Riemann Hypothesis by Levitz on Saturday November 21, 2026 @06:05PM (#50594532)
>claude bruteforce process

I keep seeing people referring to bruteforcing, and I don't see how the concept makes any sense at all in this context. If one was to "bruteforce" a lean proof, why would that require AI at all?

Re:Lean Verification of the Riemann Hypothesis by davidguetta on Saturday November 21, 2026 @06:08PM (#50594549)
10000+ agents in parallel sounds like a form of bruteforcing to me even if not the original meaning
Re:Lean Verification of the Riemann Hypothesis by Levitz on Saturday November 21, 2026 @06:49PM (#50594804)
Linux development was bruteforced then I guess
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:12PM (#50595258)
Everything sounds like a form of something else by that logic.
Re:Lean Verification of the Riemann Hypothesis by cchance on Saturday November 21, 2026 @11:02PM (#50596119)
But 100000 scientists doing it isn't?
Re:Lean Verification of the Riemann Hypothesis by NetMageSCW on Sunday November 22, 2026 @04:46PM (#50604234)
Is the Monte Carlo method brute forcing?
Re:Lean Verification of the Riemann Hypothesis by riedel on Sunday November 22, 2026 @05:08AM (#50598058)
In empirical research you would call that p-value hacking. The improbable becomes more probable. However, IMHO, randomly hitting a bug seems still quite improbable but certainly more probable as if this was a single human. LLMs rather being optimistic than doubtful certainly does not help in this case. But I guess like in other software development running other agents to find those bits in the proof seems equally feasible.
Re:Lean Verification of the Riemann Hypothesis by inglor_cz on Sunday November 22, 2026 @05:29AM (#50598241)
That is not what bruteforcing means. Parallel work is basically how modern science operates - there is approximately 10 million active human scientists across science, which means thousands studying the same thing globally.

For an analogy ... imagine 10000 lockpickers studying the same type of lock and trying to unlock it. That is what it is.

Bruteforcing would mean smashing the lock with a sledgehammer. You don't even need 10000 sledgehammers for that. The difference is that you don't try to understand the lock, you just overwhelm its construction by sheer force.

Re:Lean Verification of the Riemann Hypothesis by shunted22 on Sunday November 22, 2026 @07:24AM (#50598993)
That is basically what brute forcing is in computer science.

Imagine I'm try to guess a key design that works and spin up an insane amount of compute to keep trying different designs and eventually find the needle in the haystack. That's basically bruteforcing it because you find it due to compute power instead of any particularly elegant solutions.

Re:Lean Verification of the Riemann Hypothesis by inglor_cz on Sunday November 22, 2026 @07:37AM (#50599099)
I guess this is similar to judging at what point a heap of sand starts being a heap. There is somewhat of a spectrum for bruteforcing.

Trying the entire solution space out blindly - definitely brute forcing.

Reducing the tries by half using some primitive reasoning - still brute forcing.

(somewhere here, brute forcing stops being true brute forcing, but everyone's criterion is a bit different)

Reducing the tries logarithmically - not really a bruteforcing anymore, a good reduction.

Re:Lean Verification of the Riemann Hypothesis by smalltime-eel on Saturday November 21, 2026 @07:03PM (#50594885)
Because LLMs are trained on a massive corpus, require hundreds of billions of dollars of resources, have billions of parameters and run on manhattan-sized datacenters.

So yes it's not the traditional definition of bruteforce, but yeah. LLMs are brute forcing stuff

Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:17PM (#50595279)
They aren't, AND that's not the question in the comment you responded to.
Re:Lean Verification of the Riemann Hypothesis by inglor_cz on Sunday November 22, 2026 @05:34AM (#50598270)
You're getting confused by your own words.

LLMs indeed wield huge cognitive force, bigger than our brains can, but being really smart is not the same as bruteforcing stuff. If it was, we would call Einstein or von Neumann bruteforce scientists. They weren't, they were just very, very smart.

Re:Lean Verification of the Riemann Hypothesis by rcxdude on Saturday November 21, 2026 @07:41PM (#50595095)
It's a vague bit of terminology. Perhaps "guided fuzzing" might be a better term (such fuzzing still often being considered a kind of brute forcing). You're still throwing a ton of stuff at the wall and seeing what sticks but you're been much smarter about it than just generating completely random strings and checking each of them. Generally it's intractable to generate a Lean proof by 'pure' brute force: the space of possible proofs quickly dwarfs the universe, so you are really depending on the intelligence to do most of the work: the raw number of attempts is what pushes something that's currently barely possible over the finish line.

(Also, it's not obvious how much raw compute was spent on this: the claim of the proof mentions fairly close engagement as opposed to OpenAI's 'massive unattended swarm' approach to the Navier-Stoke's problem. Obviously quite a lot would have been available but I don't think there's public information on how this was actually done)

Re:Lean Verification of the Riemann Hypothesis by bigDinosaur on Saturday November 21, 2026 @09:36PM (#50595669)
You just described all of research which uses the scientific method which when it comes down to it is making educated guesses (fine, hypotheses) and then validating them in some logical or empirical way.
Re:Lean Verification of the Riemann Hypothesis by ShinyLeftPad on Saturday November 21, 2026 @11:27PM (#50596233)
When you can have 100 Claude instances going at it in parallel at 100x speed each without requiring food or sleep it def helps;)
Re:Lean Verification of the Riemann Hypothesis by aleksiy123 on Sunday November 22, 2026 @12:02PM (#50601477)
It’s really guided search.
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:15PM (#50595268)
Infinitely unreasonable.
Re:Lean Verification of the Riemann Hypothesis by psychoslave on Saturday November 21, 2026 @12:59PM (#50591832)
Even exploiting bugs would be interesting and constructive, as it would reveal some things to fix.
Re:Lean Verification of the Riemann Hypothesis by Timwi on Saturday November 21, 2026 @01:42PM (#50592222)
Well yeah, if we can find the bug(s). The big worry is that we might overlook the bug and go on our merry way assuming the claimed results are true when they're not. (I don't see that happening in the case of the Riemann hypothesis, but the same worry exists for all proofs that exist only in the form of Lean code, such as the massive dump from OpenAI.)
Re:Lean Verification of the Riemann Hypothesis by TeMPOraL on Saturday November 21, 2026 @03:48PM (#50593490)
It's math. Presumably if it's wrong after all, sooner or later it'll be found out because stuff built on top of this result will not add up.
Re:Lean Verification of the Riemann Hypothesis by soVeryTired on Saturday November 21, 2026 @03:59PM (#50593579)
I wouldn’t be so sure - people have assumed both the Riemann hypothesis and its negation for 150 years and haven’t been able to derive a contraction in either case.

What would be interesting is if we challenged an LLM to prove a known false statement close to the Riemann hypothesis. If it manages to do that, we know it’s exploiting a bug.

Re:Lean Verification of the Riemann Hypothesis by Timwi on Sunday November 22, 2026 @05:28AM (#50598227)
That would be interesting indeed, but it would be difficult to control for the circumstance that the LLM likely knows that the statement in question is known to be false (while it certainly knew Riemann to be an unsolved problem).
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:18PM (#50595292)
It's the opposite ... anything built upon an erroneous premise "adds up".
Re:Lean Verification of the Riemann Hypothesis by geysersam on Saturday November 21, 2026 @04:28PM (#50593813)
While it's possible there is a bug, the models are better at finding bugs than they are at proving theorems. I find it hard to believe a model can deliberately exploit a bug to obtain a proof, but the same model cannot find and demonstrate the bug if tasked to do so. That leaves the option that there is a bug that accidentally let us incorrectly prove GRH, without having any know impact on any other proofs, and having exactly the same effect in all lean implementations. It seems too unlikely to be a reasonable concern at this point, except perhaps for the people responsible for administering the price money.
Re:Lean Verification of the Riemann Hypothesis by gus_massa on Saturday November 21, 2026 @04:50PM (#50593995)
I agree, but I expect the models to reuse the bugs to prove any crap. Like:

fake quote> In section 1 we prove that the RH, in section 2 we prove ¬RH, and in section 3 we use the previous results to prove that 2+2=5.

It is possible that the bugs are so subtle that are only useful to make a fake proof RH but not other false stuff.

But from my experience adding bugs to Racket (and cleaning them mostly before sending the PR or before the release), once you find a bug, it's posible to minimize the code, isolate the bug and create a regresion test that is almost comical because it's obviously wrong.

Re:Lean Verification of the Riemann Hypothesis by magicalhippo on Saturday November 21, 2026 @01:36PM (#50592163)
Since I'm not terribly familiar with Lean, math folks are generally satisfied the provided proof encodes the RH correctly I presume?
Re:Lean Verification of the Riemann Hypothesis by brooke2k on Saturday November 21, 2026 @01:42PM (#50592224)
The statement of RH that it proves is taken directly from Mathlib, so it's extremely well-vetted and longstanding (from my understanding).
Re:Lean Verification of the Riemann Hypothesis by jychang on Saturday November 21, 2026 @06:11PM (#50594571)
Correct.

They don't use some random definition of RiemannHypothesis, they use the version here: https://leanprover-community.github.io/mathlib4_docs/Mathlib...

Note that this definition is years old. It's very well vetted. It's not a case of "the proof works, it just doesn't actually prove what you think it proves".

If you read the blog post, it says they added a "Challenge.lean" file. What that means is that instead of taking for granted the proof is trying to prove Riemann, they added a small file which reads RiemannHypothesis from the Mathlib library mentioned above, and forces the proof to match that.

They also mention running comparator, which is important because it checks for all the ways a proof might "cheat". For example, if you are trying to prove 1+2=5, and you redefine 2 as 4, then your bad proof would actually compile in Lean at first, but then comparator checks would discover all the tricks like that and declare the proof invalid.

Additionally, they mention compiling the proof with different Lean kernels, not just the mainline one. This means the proof cannot just take advantage of a bug in the mainline Lean kernel. Importantly, they mention compiling the proof with con-leche, which uses a kernel that has been mathematically verified. Using con-leche is a lot slower, but the fact that the proof works on multiple kernels including con-leche means that it's not taking advantage of some bug in Lean.

At this point, I would say the proof is almost certainly true. The only obvious way it could be false is if ZFC itself is inconsistent or something wild like that, and the proof took advantage of it. But if ZFC is inconsistent, all of mathematics is in trouble.

Re:Lean Verification of the Riemann Hypothesis by xeonmc on Saturday November 21, 2026 @06:41PM (#50594763)
Given such a massive proof, is there any possibility of accidental tautology inadvertently hiding inside the mess to the effect of "Assume A is true. A million lines later: therefore A is true"?
Re:Lean Verification of the Riemann Hypothesis by johncolanduoni on Saturday November 21, 2026 @06:54PM (#50594829)
Lean keeps track of any such assumptions when constructing the proof term, and would not allow them to line up with an unconditional statement like RH.
Re:Lean Verification of the Riemann Hypothesis by runarberg on Sunday November 22, 2026 @03:23PM (#50603516)
[delayed]
Re:Lean Verification of the Riemann Hypothesis by acoustics on Sunday November 22, 2026 @03:34PM (#50603598)
This is addressed in TFA.

> The Lean proof is valid. The exported raw proof has been checked by several proof checkers, including Lean’s official kernel, the con-leche and con-ron checkers, and several independent checkers contributed by third parties and implemented in different programming languages. The checkers con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof, thus addressing concerns that Lean’s logic itself might have flaws that the proof could exploit.

Re:Lean Verification of the Riemann Hypothesis by runarberg on Sunday November 22, 2026 @04:13PM (#50603967)
[delayed]
Re:Lean Verification of the Riemann Hypothesis by acoustics on Sunday November 22, 2026 @07:38PM (#50605835)
There is a non-zero chance of anything. But this proof is about as certain as mathematics has ever gotten. The evidence here is much stronger than we had for basically any result that has ever been accepted through human refereeing.

As a litmus test, whatever probability you held for the math-consensus proof of Fermat's Last Theorem being correct five years ago, you should be significantly more confident in this proof.

Re:Lean Verification of the Riemann Hypothesis by johncolanduoni on Monday November 23, 2026 @12:34AM (#50607853)
That doesn’t eliminate the possibility either, unless you’re positing that we can find a human which can infallibly check 17 million lines of proof tactics. Humans miss mistakes in proofs with some regularity, it has led to retracted results in peer reviewed work before.
Re:Lean Verification of the Riemann Hypothesis by jibalt on Saturday November 21, 2026 @08:07PM (#50595230)
Of course it's possible that the proof is flawed, in that or numerous other ways. That's why it's being formally verified in multiple independent ways.
Re:Lean Verification of the Riemann Hypothesis by gpm on Saturday November 21, 2026 @08:35PM (#50595366)
That there are tautology's in the billions of line? Yes, absolutely. There's every chance that the proof isn't efficient and includes lines that can be removed.

That the end result relies on those tautologies? No. All lean would derive from doing that is "a implies a" (which it would let you introduce directly) and not the statement "a". This is what computers are perfect at, keeping millions of different records straight and not accidentally forgetting the first half of the implication.

Re:Lean Verification of the Riemann Hypothesis by wging on Saturday November 21, 2026 @09:47PM (#50595727)
I think they intended to ask about whether the proof could effectively introduce unproven statements equivalent to RH as axioms (i.e. unintentionally proving "RH implies RH" rather than just "RH" by assuming RH at some point within the body of the proof; or the same, but instead of assuming RH, assuming some other statement necessary to the proof).

I believe the blog post does answer that question, though. They say in the article above that "The four criteria in https://xenaproject.wordpress.com/2026/11/12/and-the-proof-i... are all satisfied", and Question 3 in that linked post covers such cases. ("How do we know for sure that there is no trick hidden in the millions of lines of proof files which [some words omitted]... adds a new axiom to mathematics saying that the theorem is true?")

Re:Lean Verification of the Riemann Hypothesis by cyanite on Saturday November 21, 2026 @06:55PM (#50594842)
If ZFC is inconsistent, every well-formed closed formula is s theorem, and thus has a proof.
[dead]
Re:Lean Verification of the Riemann Hypothesis by mcherm on Sunday November 22, 2026 @04:48AM (#50597897)
I don't think that's precisely correct.

> the Lean proof of the Riemann Hypothesis depends on Lean's type theory, not ZFC's consistency.

I believe it depends on Lean's type theory which itself depends on ZFC and that if ZFC were inconsistent then Lean's type theory would also be inconsistent.

> It's an explicit machine-checked proof term, not a non-constructive consequence of logical explosion.

It is possible to make "constructive proofs" that make sure never to use an argument saying "not-foo is false, therefore foo must be true". Such a proof really would survive even if ZFC were inconsistent (at least inconsistent in certain ways). However, I don't believe this proof of the Reimann Hypothesis is constructive. (I haven't read the proof, but if it were, that would be remarkable and people would be discussing it: most proofs are not constructive.)

Re:Lean Verification of the Riemann Hypothesis by NonHyloMorph on Sunday November 22, 2026 @05:20AM (#50598158)
So what is the exact relation of zfc and leans type-theory? Are they proofably aequivalent or what does that depends on say?
Re:Lean Verification of the Riemann Hypothesis by gottheUIblues on Sunday November 22, 2026 @09:39AM (#50600135)
People seem to say that Lean's type theory is strictly stronger (in consistency strength) than ZFC and assuming the existence of any finite number of inaccessible cardinals and strictly weaker than ZFC and assuming the existence of a countably infinite number of inaccessible cardinals.
Re:Lean Verification of the Riemann Hypothesis by zajio1am on Sunday November 22, 2026 @02:05PM (#50602809)
If the theory is inconsistent, then proofs from it have no value, regardless whether they are proven directly from logical explosion or not. That is because such theory is semantically empty - has no mathematical model.

But in that case proofs could be recovered if you reformulate them in some restricted theory that is not inconsistent - most proofs in math does not need full power of ZFC. For example the mentioned Euclid's proof could be proven just in PA.

Re:Lean Verification of the Riemann Hypothesis by intuitionist on Saturday November 21, 2026 @09:01PM (#50595497)
Isn’t Lean stronger than ZFC? I thought you could prove Con(ZFC) within Lean. So it’s possible that the formal system encoded by Lean is inconsistent but ZFC is not. (I don’t consider this that likely, though.)
Re:Lean Verification of the Riemann Hypothesis by tkz1312 on Saturday November 21, 2026 @11:29PM (#50596244)
Yes, Lean is stronger than ZFC. lean has been shown to be consistent with ZFC + infinitely many inaccessible cardinals.
Re:Lean Verification of the Riemann Hypothesis by cowlevel on Sunday November 22, 2026 @10:26AM (#50600534)
isn't ZFC also consistent with ZFC + infinitely many inaccessible cardinals (I assume so or you wouldn't have even said it) which means by the same reasoning ZFC is stronger than ZFC?
Re:Lean Verification of the Riemann Hypothesis by tkz1312 on Sunday November 22, 2026 @12:45PM (#50601966)
no. if ZFC + infinitely many inaccessible cardinals is consistent, then so is ZFC (and lean), but the converse is not true: the consistency of ZFC implies nothing about the consistency of ZFC + infinitely many inaccessible cardinals.
Re:Lean Verification of the Riemann Hypothesis by btilly on Saturday November 21, 2026 @11:37PM (#50596292)
Yes, Lean is stronger than ZFC. But two of the checkers, con=leche and con-ron, don't just verify based on Lean. They come with a formal proof from set theory that they cannot wind up accepting an incorrect proof.

In other words you can ignore Lean. We have a proof from ZFC, of the Riemann Hypothesis. We have a proof, acceptable in ZFC, that this proof is correct.

In other words Lean's dependent type theory is used to arrange its understanding of the proof. But the actual reasoning that you wind up with for this proof does not need anything that doesn't follow from ZFC.

Re:Lean Verification of the Riemann Hypothesis by hazenut on Sunday November 22, 2026 @12:09AM (#50596488)
why is the verification is so fast this time while last time (a few weeks ago? and I can't remember name of that theorem) it took a few weeks and they finally found an error in Claude's proof?
Re:Lean Verification of the Riemann Hypothesis by mcherm on Sunday November 22, 2026 @04:36AM (#50597828)
I am not certain which "last time" you are thinking of, but I suspect that the answer IS the Lean verification.

If an AI writes a paper with an argument that X is true, it might be that X is true, or it might be that the argument in the paper is subtly flawed and X isn't true

On the other hand, if an AI generates a step-by-step proof in which each step can be mechanically verified, then people might have problems understanding the underlying ideas, but once it has been verified we know it won't have subtle errors. And that is basically what Lean is.

In this case, they not only have a Lean proof, they've verified it with more than one verification tool (so it's unlikely to be a bug in the verification tool) and double-checked whether the thing being proved really is what we intended to prove. That's rock solid.

Getting an UNDERSTANDING of the proof is another challenge, but at this point we can be quite certain it doesn't have errors.

Re:Lean Verification of the Riemann Hypothesis by hazenut on Sunday November 22, 2026 @11:44AM (#50601276)
Navier-Stokes that is. Claimed proof in September, found an error in October, mainly that the formal language proof does not correspond to the natural language description. But this time it took one day. that's 30x speedup not explained.
Re:Lean Verification of the Riemann Hypothesis by gus_massa on Sunday November 22, 2026 @04:40AM (#50597849)
The guy waited until he has the verification before anouncing it. I'll quote myself from the pararell universe were he announced it with a English only proof:

> Meh. Lean or it didn't happen.

Re:Lean Verification of the Riemann Hypothesis by BariumBlue on Sunday November 22, 2026 @08:56AM (#50599758)
This time the WHOLE proof formalized in lean, but iirc some recent AI generated proofs only had supplemental pieces lean that didn't cover the whole argument
Re:Lean Verification of the Riemann Hypothesis by meowface on Sunday November 22, 2026 @06:30AM (#50598645)
I wonder if in N years, when we (might) have crazy ASIs that make Fable 5.2 look like a nematode, maybe we'll see things like this as completely trivial and banal.

A machine intelligence might devise something as (seemingly) difficult as the Riemann hypothesis, but checking if what it posits is correct might be like a fast test command in a git repo, and so it can keep iterating on many ideas without being bottlenecked by waiting centuries or, perhaps even hours, to know if the ideas are true.

But then one could even imagine they'll one day be so powerful they could do this and more without ever using a formal system. They will just naturally be that comprehensive and rigorous internally, with something like Lean making them 100% instead of 99.99..% confident.

And eventually this would extend to almost everything, besides maybe biology where it may only be able to compress a human century into a day rather than into a second.

Re:Lean Verification of the Riemann Hypothesis by idiotsecant on Sunday November 22, 2026 @10:12AM (#50600406)
I think caring about things like the riemann hypothesis is something humans from the before times did. Once we have ASI, there is no incentive to push the bounds of knowledge, or even to try.

I think we're looking at the long dark teatime of the soul of biological human science, mathematics, and engineering.

I guess we will maybe be happier making art and being pets, best case scenario. Or maybe those of us with the most resources will be able to merge into a machine substrate and continue to contribute in some way.

Re:Lean Verification of the Riemann Hypothesis by thesmtsolver2 on Sunday November 22, 2026 @10:48AM (#50600731)
Why? With neural implants that these god like AIs can design worn we also become smart as the AIs?

Or do we believe that the AI will never get to a point where it can build implants that make humans that intelligent?

Re:Lean Verification of the Riemann Hypothesis by LoganDark on Sunday November 22, 2026 @10:54AM (#50600793)
I think it's because you no longer need to release knowledge if everyone can re-derive it independently. Work and learning lose its value because anyone can reproduce it without you, and they can do it more trivially even than searching for your version. We're starting to reach the point where certain types of projects are just pointless now, because anyone who wants it can make their own even better tailored to themselves. This isn't absolutely true of course, but the general discourse is heading in this direction.
Re:Lean Verification of the Riemann Hypothesis by mrandish on Sunday November 22, 2026 @02:14PM (#50602887)
> become smart as the AIs

Treating "intelligence" as a single trait that can be cranked up like an RPG stat bar is a category error built on an ill-defined term.

"Intelligence" is a broad umbrella label for a variety of different capabilities: working memory, pattern matching, sensory integration, long-term recall, and domain-specific knowledge. LLMs running on designed digital silicon are fundamentally different from human minds running on evolved analog biology. They operate on separate substrates with divergent architectures, trade-offs, constraints and failure modes.

LLMs are fantastically useful tools that already beat humans at specific tasks. We built them to simulate specific human intellectual output we find valuable, but they do so using mechanisms which have almost nothing in common with how a brain works. Scaling up the the number and depth of simulated tasks doesn't mean the underlying process is on a path to replace human cognition and reasoning.

Re:Lean Verification of the Riemann Hypothesis by axmebhe on Sunday November 22, 2026 @11:30AM (#50601102)
Mathematics could stall in some ways if the AIs continue to use brute force to prove these. Normally a mathematician would invent powerful new frameworks to solve a difficult problem (like Newton and calculus - there are many recent examples, as well).

As an outsider to the field, the strongest motivation for top mathematicians seems to be pride. I think the educational pipeline for top-level math will weaken if AIs are getting the credit for mathematical work.

Re:Lean Verification of the Riemann Hypothesis by tito on Saturday November 21, 2026 @10:04PM (#50595800)
I made a tool so anyone can run the proof on their computer, and you don't even need to understand Lean. And there's a global leaderboard too!

https://riemann-at-home.github.io/riemann-at-home/

Re:Lean Verification of the Riemann Hypothesis by john_alan on Sunday November 22, 2026 @03:01PM (#50603323)
super cool!
Re:Lean Verification of the Riemann Hypothesis by philipwhiuk on Saturday November 21, 2026 @04:08PM (#50593655)
What about GRH? The post doesn't really address that bit.
Re:Lean Verification of the Riemann Hypothesis by ComplexSystems on Saturday November 21, 2026 @04:23PM (#50593774)
For those of us who grew up on Gödel's incompleteness theorem, can someone explain how these kernels can prove their own consistency?
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.
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
Re:Lean Verification of the Riemann Hypothesis by dev_dan_2 on Saturday November 21, 2026 @05:43PM (#50594374)
I am sure you will get some more detailed answers; I am a bit lazy today; so I will give you the very high level / informal version of the answer:

Gödel's two incompleteness theorems basically amount to "As soon as your system is can do a ridicolously little amount of things, then either of two things is true in this system: 1) You can express facts in your system that you cannot prove within your system or 2) your system falsely claims that something is true, which isn't."

Now, because 2) is way way worse than 1), you design your systems so that you are firmly in the 1) camp - that way, we gain full confidence in the results our systems proofs, and the price we pay is that our system is less powerfull than it could be.

With Lean, it's similar. The foundation of Lean comes from type theory. There, we do something that is familar to above: We restrict our power (i.e. "which Lean statements do get verified by lean?", and we gain absolute confidence in its proofs (ignoring implementation errors, hardware limitations etc. for now). Intuitively: We have to work harder to satisfy the typechecker/prover, but when it is satisfied, then we have confidence in it.

-------------- Deeper down the rabbit hole

You might have noticed that I seem to muddle the waters a bit with programs, proofs, types and so on... There is a deep reason behind it! In a very strong sense, programs = types = proofs... So, here is how it is all connected Including the RH):

- Lean is a programming language (like Haskell, Rust, ... There is nothing stopping you from writing a server in Lean and deploying that binary somewhere in the cloud. Regarding developer experience, you could think of it like a modern Haskell without lazy evaluation and without its historical warts)

- programs can be tied to types: We first check if the whole program as such has a type ("do all of its parts fit together in a strictly defined way?"). Only if it does, we proceed (and for example, run it). If it does not, then the compiler declares "this program is not good! here is a type error!". Now, here is the price hat Gödel proved we cannot avoid. There are programs that don't type check, but behave perfectly fine at runtime. (That's the "we limit our power" part - those are perfectly good programs where the compiler throws their hand in the air and gives up!)

- Enter the Riemann Hypothesis: types are actually proofs too...! And the RH is a hypothesis we would like to prove...

- So here is how it all ties together: RH is written so that it can be used as a type, in the Lean programming language. The "main program" is basically just another ordinary function with some input types, and returns the type version of the RH being true. Because the function needs an implementation, we are forced to implement that function body - which are many small functions that correspond to mathematical theorems/lemmas if you look at it with the proof glasses on. From the programming pov, it is just functions that call functions that call functions and so on. And from the typechecking point of view; we compose a bunch of functions and check whether input types and output types match up.

Finally, the payoff: If that whole program typechecks, then we know RH is true; which is what just happened.

(PS: The same principle is behind the computational proof of the four-color-theorem. The proof of the four color theorem is "simply" a program that typechecks, where the final type happens to correspond to "can we color any planar graph with at most 4 colors?")

Re:Lean Verification of the Riemann Hypothesis by vbezhenar on Saturday November 21, 2026 @10:33PM (#50595968)
So while I'm not going to question if that's good approach, because if it's so popular, it must be good enough.

But on intuitive level it looks so weird to encode math in types.

When I was taught math, the proofs were more like sequence of statements. So if I would decide to implement proof checker, I'd invent formal language, which looks very close to commonly used math language and which allows to just write proof like it's written in book. Probably a lot more verbose, without skips and implied statements, but in the end, it'd look just like a verbose and formal proof.

Why did math gone this lean type way and not the way I described?

Re:Lean Verification of the Riemann Hypothesis by still_grokking on Saturday November 21, 2026 @11:46PM (#50596340)
It's the most natural thing possible to encode math in a programming language like LEAN.

Because logical propositions are types (in such a language). That's just a very fundamental part of math itself.

Watch this and you'll be enlightened:

https://www.youtube.com/watch?v=IOiZatlZtGU

LEAN code looks actually exactly like you propose; it supports most conventional (Unicode-linearizable) math notation, and you just write expressions like in any other functional language. Close to the textbook, but more verbose and stiff as it's a formal language, while math notation isn't.

Re:Lean Verification of the Riemann Hypothesis by NonHyloMorph on Sunday November 22, 2026 @05:15AM (#50598118)
That lack of relative verbosity and stiffness of mathnotation (what a thing to say haha) to be considered as a proper strength evtly. I'm consider myself as layity in this, but is an interface thinkable?
Re:Lean Verification of the Riemann Hypothesis by dnautics on Sunday November 22, 2026 @02:22PM (#50602964)
> It's the most natural thing possible

It's not intuitive. In isolation, if you took practical computer science and got a theoretical math background and didn't know about curry-howard correspondence, you would not intuitively figure out that propositions are types and proofs are terms. I would have guessed that propositions are functions, sets/classes are types, and elements are terms.

Re:Lean Verification of the Riemann Hypothesis by alethic on Saturday November 21, 2026 @11:48PM (#50596346)
This is a very good question! There are two answers.

First off, you can absolutely do what you are describing. There are systems like Metamath that assume nothing beyond first-order logic and the axioms of set theory, and apply these verbose rewrites. See https://en.wikipedia.org/wiki/Metamath for more. However, Lean (and many past theorem provers, too) have 1) preferred to represent mathematical objects as types rather than sets, and 2) built a large amount of interactive tooling rather than the blind rewriting of Metamath. The first choice is essentially of elegance -- the Curry-Howard correspondence indeed lets you write propositions as types and proofs as terms inhabiting those types, which is a connection of deep beauty. Ontologically, there is also an argument to be made that representing a mathematical object as a type is more "correct". We don't really think of ex. two as "{{},{{}}}" or "{{{}}}". We think of it as "Two", or maybe "Zero +1 +1". This is a win for types. Mathematical objects are not grocery bags.

Second, the historical approach to theorem proving has been interactive theorem proving. Theorem provers were supposed to be a second brain for students and computer scientists and mathematicians... keeping track of assumptions, suggesting possible tactics to take... aiding the human in the process of proof (and subsequently understanding), rather than replacing them. The path of uncritical adoption of AI that Lean has taken, sadly, much replaces the human. There is no real pragmatic reason for Lean to retain its interactive (human) elements any more (besides inertia). It might as well be Metamath indeed.

Re:Lean Verification of the Riemann Hypothesis by dnautics on Sunday November 22, 2026 @08:19PM (#50606240)
Lean also does a lot of things under the hood that make the process of checking a proof tricky, (but make writing the proof easier), it strikes me that maybe in 2026 we should be making writing the proof a bit harder at the expense of making reading the proof easier.
Re:Lean Verification of the Riemann Hypothesis by dev_dan_2 on Sunday November 22, 2026 @05:35AM (#50598274)
To add to the other answers, let me address the experience of "a series of steps" versus "a big single expression with a type" - real life is calling, so I have to make this quicker than I would like to; feel free to ask any followup questions / for clarification! I am sure others or later, I when I am back on the screen can answer :)

So the very short version: There is no difference between those two worlds if you squint your eyes hard enough! They are equally powerfull; just different ways of expressing the same truth. This is the whole declarative ("WHAT should the end result be") vs. implerative ("HOW to achieve the end result")stuff, but it's all the same at the end. Some examples:

  - SQL is declarative; but under the hood, it will get translated to a sequence of operations on the database by the query engine (or however it's called)
  - HTML is declarative; but there is no theoretical reason stopping you from building some sort of "imperative" HTML where you just add elements and stuff in a sequence of steps and at the end; are shown the same webpage (in fact, there are GUI frameworks that build up the GUI in an imperative manner; for the web, transmitting a declaration of what you want rather than a program that constructs it was the more practical choice I assume)
  - Haskell is often considered declarative (for good reasons), but if you think about the IO type as ("Hey I am a wrapper type and all I do is to enforce that step A happens before step B"), then you are pretty close to a imperative way of doing things again
  - Go/Java/C#/Python with types are almost always considered imperative; but you can also put on the type checking hat and pretend that the program is just one big function that will - if written correctly - have a final type. How does composition happen here? It's basically the line break, line :103 is executed before line :104, so lines :103-:104 can be viewed as: "the function that does whatever :103 does, then whatever :104 does", and it has the type "whatever input type :103 has and whatever input type :104 has", and type checking ensures that all those pieces fit together neatly.
They can even be mixed; in the proof assistant Rocq (formerly known as coq), there where both styles used often. In Lean, as I vaguely remember, you can pick both style too, so to say.

I think the pragmatic answer is that most such languages originated from the "one big function" school, and so it is more natural to program/proove in that way.

---------------------------

*Wait, does this mean that every proof I learned can also be done in this "one big function" way, instead of "a series of steps"?*

Yep! But you will find that it is not really practical to do so. A good exercise for sure though; and something I did (by that I mean: infering types on paper; not really taking proofs I know and doing them be type inference on paper) by hand when diving deeper into this topic in grad school.

Re:Lean Verification of the Riemann Hypothesis by rramadass on Sunday November 22, 2026 @07:42AM (#50599156)
The main issue is on how you define a "Type". There are two different logics here;

1) Classical Logic/Set Theory (this is the one you are talking about). Here Type = Set of values defined by membership rules (extensional/intensional).

2) Intuitionistic Constructive Logic/Type Theory (this is what is preferred for proof assistants). Here Type = Set of constructive (often inductive) proofs where the proof itself is the value.

As an example, think of defining the Type "Even_t"; under (1) it can be a predicate "x % 2 == 0", while under (2) it is defined inductively as "0 is Even_t; if construct(n) is Even_t so is construct(n+2)".

Notice that in the latter case a Type maps nicely into the idea of "a computation" and the fact that the very act of generation of one of its inhabitants constitutes "the proof" that the value has that property!

Whereas in Set theory Types are just subsets. But because you can mix anything into a set, an untyped term can be nonsense and will only get caught when you try to use it. Type Theory disallows it by construction.

This leads to the "Curry-Howard Correspondence" so you get a mapping between logic and type theory concepts - https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...

This idea of "Typing" can further be extended (with additions of Dependent Types etc.) giving a complex matrix of powerful Type Theories represented by what is known as "Lambda Cube" (https://en.wikipedia.org/wiki/Lambda_cube) and their implementations in proof assistants eg. Calculus of Constructions (CoC), Calculus of Inductive Constructions (CIC) etc.

Finally, note that not all proof assistants use constructive logic, several use straight ZFC/HOL. Amongst those that use constructive logic it is usually only the kernel (containing the Type System) which models it while the rest of the system still uses classical logic.

PS: See also the previous discussion Why is dependent type theory more suitable than set theory for proof assistants? - https://news.ycombinator.com/item?id=25167468

Re:Lean Verification of the Riemann Hypothesis by dnautics on Sunday November 22, 2026 @02:15PM (#50602895)
> When I was taught math, the proofs were more like sequence of statements. So if I would decide to implement proof checker, I'd invent formal language, which looks very close to commonly used math language and which allows to just write proof like it's written in book. Probably a lot more verbose, without skips and implied statements, but in the end, it'd look just like a verbose and formal proof.

Yes, one can build it, and it's a hell of a lot more verbose:

https://github.com/ityonemo/2b4m

sorry for the AI slop readmes, etc. This is very much a side project and I don't really feel the need to necessarily clean it up unless someone takes a real interest in it.

Re:Lean Verification of the Riemann Hypothesis by matltc on Sunday November 22, 2026 @03:25AM (#50597457)
Thank you very much for this explanation and the list of sources.
Re:Lean Verification of the Riemann Hypothesis by dev_dan_2 on Sunday November 22, 2026 @05:14AM (#50598111)
Sure, and I am very glad to hear that you liked it! :> (I really want to start blogging soon! Then I can simply link it / paste from it haha)
Re:Lean Verification of the Riemann Hypothesis by dwohnitmok on Saturday November 21, 2026 @11:50PM (#50596356)
They prove its consistency relative to another mathematical theory we assume to be consistent. That is if that mathematical theory is consistent then so is the kernel. In the case of Lean's con-leche and con-ron, it is proved consistent relative to ZFC + infinitely many inaccessible cardinals.

ZFC + infinitely many inaccessible cardinals is a fairly weak extension of ZFC widely thought by set theorists to be consistent. This is especially the case if ZFC is consistent (although by Godel we can't know for sure!).

ZFC + infinitely many inaccessible cardinals being inconsistent would be a really big deal! Given how confident set theorists are about inaccessible cardinals most likely it would mean that ZFC itself is inconsistent.

Re:Lean Verification of the Riemann Hypothesis by ComplexSystems on Sunday November 22, 2026 @01:14AM (#50596794)
I feel like the real answer has gotten buried here, so I will answer my own question. The kernels are not "proven consistent" in any absolute sense. They are proven equiconsistent with ZFC plus inaccessible cardinals. This means it is "as consistent as everything else we have been doing for the last century," which is good enough.
Re:Lean Verification of the Riemann Hypothesis by orblivion on Saturday November 21, 2026 @08:03PM (#50595205)
Thinking more - as more such redundant tools are developed, surely someone will run all the existing big proofs against them, including this one. So we'll have more confirmations over time.
Re:Lean Verification of the Riemann Hypothesis by jgalt212 on Saturday November 21, 2026 @08:54PM (#50595470)
> the proof exploiting a bug is vanishingly small now.

Why do you say this? LLMs have been very recently finding all sorts of heretofore unknown bugs and exploits for languages and applications that have been around for decades.

Re:Lean Verification of the Riemann Hypothesis by LPisGood on Saturday November 21, 2026 @08:56PM (#50595475)
If multiple implementations have proven each other to be consistent, that would mean the consistency proves themselves would have to have a bug
Re:Lean Verification of the Riemann Hypothesis by jgalt212 on Saturday November 21, 2026 @09:38PM (#50595677)
I hear what you're saying, but you can't be too careful these days.
Re:Lean Verification of the Riemann Hypothesis by stouset on Sunday November 22, 2026 @12:14AM (#50596532)
There’s being careful and there’s being conspiratorial. At this point, believing that there’s multiple soundness errors in every Lean kernel that could all be exploited simultaneously leans heavily toward the latter.

To be clear, that doesn’t mean it isn’t possible. It just means that it’s extremely unlikely and we have no a priori reason to to believe it’s plausible or even possible to do.

Re:Lean Verification of the Riemann Hypothesis by bannister7 on Saturday November 21, 2026 @10:52PM (#50596061)
> While still possible, the proof exploiting a bug is vanishingly small now

That's not how mathematical proofs work, though. What you have proven is not RH but rather the statement "either Lean has a bug or RH is true". So at this point you might as well be celebrating a Lean fuzzer.

Re:Lean Verification of the Riemann Hypothesis by stouset on Sunday November 22, 2026 @12:16AM (#50596541)
There are multiple independent implementations of the Lean kernel.

“Either RH is true or every separate Lean implementation—some of which have their own soundness proofs—has a soundness error that can be independently exploited without triggering errors in any of the other Lean implementations.”

Re:Lean Verification of the Riemann Hypothesis by gus_massa on Sunday November 22, 2026 @04:57AM (#50597962)
For traditional proof, it means "either X is true, or the author and the editor and the peer reviewer missed the mistake". I've seen errors in math articles published in serious journals, mostly at the typo level.
Re:Lean Verification of the Riemann Hypothesis by bannister7 on Sunday November 22, 2026 @07:01AM (#50598843)
There's also https://emeraldbook.org/news/nov-2126/

people will believe any bullshit the most fascist companies put out

Re:Lean Verification of the Riemann Hypothesis by acchow on Sunday November 22, 2026 @12:57AM (#50596710)
My understanding is that the Lean kernels only demonstrate that the Lean expression is correct.

The actual Lean proof (written by human + AI) still goes through a compiler to generate the Lean expression. So it’s still possible there are compiler bugs.

I’m hoping someone with a deeper understanding of this system can dive in.

Re:Lean Verification of the Riemann Hypothesis by havnagiggle on Sunday November 22, 2026 @08:53AM (#50599725)
Do we need to attach some sigma confidence interval to math proofs now?
Re:Lean Verification of the Riemann Hypothesis by dudeinjapan on Sunday November 22, 2026 @09:33AM (#50600071)
More likely he's exploiting a bug in the universe itself. Gonna raise a ticket to report that my integers are acting like polynomials.
Re:Lean Verification of the Riemann Hypothesis by fspeech on Sunday November 22, 2026 @12:27PM (#50601777)
Also these AI proofs aren't exactly unreadable. There are many well known results embedded, which account for the bulk of the Lean code that you could ignore if you are comfortable with the well accepted theories. Then there is the high order AI construction. You may not understand how AI came up with it, like Ramanujan, but you could appreciate that it could have the properties claimed for it. You may even be able to check some for yourself. I don't know the high theories, but I do know that, for example at a few points, Anthropic model stuffed polynomials with hundreds of terms into proofs, like https://github.com/anthropics/fermats-last-theorem/blob/main... Out of sheer annoyance at how large the compiled olean files are and how long it takes my puny laptop to elaborate them, I asked the flash model I use to use sympy to factor and reduce and it didn't take much effort to get them to a more reasonable size. Of course these are trivial exercises but the point is to not be intimidated. If you do understand high theories you could fire up your favorite model and try to build a theory that we the mere mortals could actually follow, at least in principle.
Re:Lean Verification of the Riemann Hypothesis by sillysaurusx on Sunday November 22, 2026 @12:54PM (#50602065)
Please do this. And make a website explainer on it.
Re:Lean Verification of the Riemann Hypothesis by nosman on Sunday November 22, 2026 @06:10PM (#50605024)
This is awesome, thanks for making this much more approachable. Why do you think Anthropic doesn't already do this themselves? Maybe just to get the result out there first?
Re:Lean Verification of the Riemann Hypothesis by fspeech on Sunday November 22, 2026 @07:22PM (#50605694)
If you are interested in the details you can read the section 7 here https://github.com/htzh/flt_for_human/blob/main/math/029-ord...

I have a few theories: agents might have used a computer algebra system or external solver so they are indifferent; they are not sensitive to how much time it takes to elaborate or just time in general; they are not good at building abstractions because they truly can attend to many things at the same time unlike us mortals. The last observation is a wide-spread phenomenon (beyond these memory/time blow-up cases). They write lemmas treating them as proof steps, like go-to statements, carrying full contexts with a lot of very specific premises. On their own (without prompts) they apparently think that is reducing complexity, when it just transfers complexity and creates layers that make it even harder for a human to follow. I typically ask my model to inline these go-to lemmas and isolate the truly generic facts to factor out. I am just limited by my ability to handle that kind of complexity, which drives me to naturally look for symmetry and small API surfaces, anything that truly isolates and compartmentalizes complexities. So in summary I believe we do things our way out of necessity. But this really defines math for us: there are infinitely many more true statements in the Boolean logic sense that we are not interested in. We are interested in those that can lessen our mental load over comprehending some phenomenon.

Re:Lean Verification of the Riemann Hypothesis by gewetensleegte on Monday November 23, 2026 @06:19AM (#50610225)
> Also for their top math talent this would be a waste of time

Except, no it's literally one of the top most important open questions in math. Which they claim to have solved and then just dead stopped working on, before any of the major benefits to the field of mathematics that were expected to be gained from finding this proof, even materialized.

Which is why the question is posed. Why do Anthropic (and also OpenAI), basically leave this stuff as homework for the field of mathematics?

You can answer this one yourself better maybe:

Why is it more important to Anthropic (and OpenAI) to be the first one to claim they solved that problem, but they still consider it a waste of time for their top math talent they employ, to actually finalize it and make it useful to anyone besides the one being able to claim "FIRST" ?

I do think that question answers itself, and it's not really to the benefit of humanity, science or even mathematics itself.

Re:Lean Verification of the Riemann Hypothesis by adamontherun on Sunday November 22, 2026 @11:50PM (#50607618)
great idea! just added this to my featured projects on https://better-together.fun/ looking for people's extra tokens.