logoalt Hacker News

well_ackshually • today at 3:35 PM • 6 replies • view on HN

No. A lean codebase that certifies that whatever definition of the Riemann hypothesis their LLM wrote is correct.

I can write Lean that certifies that 2 + 2 = 5 is correct, by redefining every axiom about natural numbers on the way. Or abusing bugs in Lean. Stop believing Lean is the response to everything.


Replies

latent-person • today at 3:48 PM

Just like Navier stokes etc they use independently written Lean statements written by humans; formal conjectures [1]. Indeed, they have one for the Generalized Riemann Hypothesis too [2].

> I can write Lean that certifies that 2 + 2 = 5 is correct, by redefining every axiom about natural numbers on the way.

Which you would catch using comparator?

> Or abusing bugs in Lean.

And just like all the other ones, people check with multiple independent kernels, so you need to abuse bug(s) in all of them.

> Stop believing Lean is the response to everything.

Stop believing Lean is so flawed.

[1]: https://google-deepmind.github.io/formal-conjectures/

[2]: https://google-deepmind.github.io/formal-conjectures/theorem...

math_dandy • today at 4:02 PM

The statement of the Riemann hypothesis is included in the Mathlib library which is a human written and highly regarded foundation for formalization. See https://github.com/leanprover-community/mathlib4/blob/master... for the two-line statement.

For a discussion of how to check that the untrusted proof isn't playing fast-and-loose with the axioms of mathematics or exploiting kernel bugs, see Kevin Buzzard's recent post "...and the proof is checked in Lean" at https://xenaproject.wordpress.com/2026/11/12/and-the-proof-i....

astrange • today at 3:48 PM

It imports a standard definition of RiemannHypothesis. It could be wrong in other ways, but not that one.

quchen • today at 3:52 PM

The axioms would be a given to the theorem prover of course, as is the norm for theorem proving. This then reduces a complex proof to checking whether the theorem is stated correctly and the proof kernel is correct. This may not be (provably) easier, but it is so far removed from yet equivalent to the original problem that you get a machine-verifiable independent audit as a result.

And don't reduce "is not the answer to everything" to "is the answer to nothig", there is tremendous value in automated verification, especially in the AI age where the moat to it going mainstream is shrinking by the day.

stale2002 • today at 3:50 PM

> whatever definition of the Riemann hypothesis

Do you... think that there might be existing definitions for one of the most famous math problems of all time and that maybe they used that?

Or do you think that they just vibe coded up a different definition, for kicks?

This kinda feels.... easily provable either way.

steinwinde • today at 3:50 PM

>whatever definition of the Riemann hypothesis their LLM wrote

Given that the proof is provided by Levent Alpöge, who is known to be more than familiar with Lean, is it not unlikely he made up his own definition of the problem?

https://leanprover-community.github.io/mathlib4_docs/Mathlib...