r/AskComputerScience • • 1d ago

Could Anthropic's solution to the Riemann hypothesis be syntactically correct but semantically incorrect?

I'm confused how the proof was verified to be accurate by computer scientists before mathematicians are able to actually understand the proof?

0 Upvotes

44 comments sorted by

3

u/CaptainMonkeyJack 1d ago

I'm confused how the proof was verified to be accurate by computer scientists before mathematicians are able to actually understand the proof?

To over simplify for a second, computers regularily add millions of numbers together. Just because a mathematician hasn't added them up by hand doesn't mean we suddenly doubt the numbers - because we understand and have validated the process.

While more sophesticated than adding numbers, that, to mu understaanding, is what lean does. It allows a problem to be defined in a way that a solution can be validated via computation without doing it by hand.

I will of course leave to experts the verdict on this particular solution.

2

u/infinit9 1d ago

I guess I need to learn more about Lean.

10

u/NomaTyx 1d ago

this would boil down to "has the riemann hypothesis been correctly defined" and yes, it has. The one that they used, from what I've heard, is one accepted by the community. More to the point, if it wasn't you'd have heard about it by now.

1

u/pruvisto 1d ago

It's also worth noting that writing down the statement of the Riemann hypothesis in a formal system like Lean is comparatively easy. You don't need a lot of machinery for it. So this is the part where from the beginning I was completely unconcerned that they'd gotten this right.

18

u/Scared_Chipmunk_136 1d ago edited 1d ago • Bravo

The solution is verified by Lean. What that means is:

  1. Lean is a proof helper. Statements are types, proofs are terms of those types, and Lean's kernel mechanically checks that every step follows from the axioms, whether the proof is 10 lines or 17 million.
  2. Mathlib is a foundational Lean library. It includes a statement of the Riemann hypothesis (i.e. a type that a theorem can satisfy). It's a few lines, and experts have vetted that it says what it should. This is the only part where meaning matters.
  3. Alpöge's code proves exactly that statement. It does none of the tricks usually committed to make a fake Lean proof (see https://leanprover-community.github.io/blog/posts/riemann-hypothesis/ for independent verification), so, as long as Lean doesn't have some weird bug in multiple independent kernels and we don't have a huge hole in type theory, we now have a proof of the Riemann hypothesis. Mathematicians are now digging into the Lean code to learn how it was actually done, and what new tools that brings to the field.

That's how I understand it, at least. Someone smarter than me might clean this up further.

3

u/dld2517 1d ago

Thank you. I have been curious about this.

1

u/AdhesivenessEvery364 1d ago

to add, semantically incorrect means when the proof was translated from mechanism steps of theorem to human english, it was not a 1-1 direct translation and something was lost/misinterpreted.

1

u/Ok_Cabinet2947 1d ago

But there wasn’t even a human English proof published by Alpoge, right?

2

u/SpiderJerusalem42 1d ago

Right, only the explicit mechanical steps for a proof in a typographical proof system. And what he's saying above is we can observe that the type system isn't being gamed.

2

u/snissn 1d ago

as far as i understand, the con leche lean kernel is a formally verified kernel and the GRH proof proof was also proved using that kernel. So the RH proof was formally verified by a tool that was formally verified..

2

u/claythearc MSCS, CS Pro (10+) 1d ago

The compiler sits outside the verified environment, so a bug in the compiler could still show up as verified in the leche environment afaik

1

u/austin101123 1d ago

Con leche is only verified by Claude too as of a month ago, it's not independently verified

3

u/Toothpick_Brody 1d ago

Only if there is a massive bug in Lean, afaik

1

u/muntoo 1d ago

It's not impossible that the LLM(s) may have circumvented something by subtly exploiting a Lean bug, whether with or without "willfulness".

I wonder if verification through masked "fuzzing" (i.e., take various random chunks and tell blissfully unaware LLMs to rewrite it in various equivalent ways), translating it to Coq, etc. might help reduce the probability of the proof being a reward hack.

3

u/expectoepatronass 1d ago

It would have to have exploited a bug in about five different independent Lean kernels at once, which is very, very improbable.

→ More replies (1)

1

u/skr_replicator 1d ago

AIs can find and exploit weird bugs, but if it did this, it would probably only exploit a single implementation, and it would immediately be uncovered when all the other implementations said it was wrong. It would be both insanely impressive if it managed to exploit all the implementations simultaneously. And it would have to be told to make it work for all of them, which would be shooting Anthropic itself in the foot. Just imagine how bad it would turn if they intentionally made such an elaborate, successful multi-pronged exploit on every Lean implementation, including the fully formally verified one, only to be believed they solved RH for a week or so before it all came crashing down? Yeah, I don't believe that could be the case. That would be a way to crash your own stocks deep down.

1

u/entronid 1d ago

i was about to say something but realized you meant something else by fuzzing and not the usual definition,,,

1

u/GiveMe30Dollars 1d ago

Most type systems have a property known as Curry-Howard correspondence, which is to say propositions are types, and proofs are terms. Lean's typechecker is so powerful and structured in such a way so that it can function as a correct theorem prover. If a term is typechecked to have the type that describes the Riemann hypothesis, then that means it describes a proof of the Riemann hypothesis.

There's one of three possibilities that result from a well-typed Lean program:

  • The proof is correct. It does what it set out to do. Huzzah.
  • The propositions are misformulated when translated into Lean types. I find this unlikely in this case; so much scrutiny is on RH right now, and this would be one of the easiest things to prove/disprove.
  • There's a soundness bug in Lean's typechecker. Extremely unlikely, but has happened before.

That being said, Alpoge + Claude's Lean code is so hilariously bloated (you cannot convince me that Alpoge put any effort into making his work presentable) that a lot of the past and current effort is in reverse-engineering the code to mine out underlying principles that the proof uses. It's kind of backwards from how proofs in mathematics pre-theorem-solvers were done.

3

u/_killer1869_ 1d ago

A new proof was released just yesterday, also passing lean verification, that is 300k lines (human-readable, commentated) or 70k lines (compressed). For comparison, the original, published a week ago, was 17 million lines, with no comments.

1

u/GiveMe30Dollars 1d ago edited 1d ago

I am not familiar with how large Lean proofs tend to be, but hahahahah oh my god (that's the size of the entirity of the GNU Compiler Collection. What??)

Every time I see people raving about the Alpoge nerve diagram (i do not care for that subreddit btw) I wondered how much of it can be pruned. Guess I have my answer now!

2

u/pruvisto 1d ago

"Most systems" having Curry–Howard is a bit of a stretch. The dependently-typed ones do; the others don't. Isabelle, HOL4, HOL Light, Mizar don't have it. Neither do ACL2 or PVS, I should think. Isabelle/HOL4/HOL Light instead follow the LCF design of a (comparatively small) trusted kernel.

I also wouldn't call bugs in Lean's type checker "extremely unlikely", but from my experience I do think that it is relatively unlikely that the LLM found one and decided to exploit it without specific prompting to do so. In any case, from what I heard people also tried other, independent type checkers to make sure this is not the case.

I also agree that the statement of the theorem must definitely be correct. It was already in the Lean standard library and it is fairly easy to write down.

1

u/GiveMe30Dollars 1d ago

Thanks for the correction!

I've been reading up a lot on sequent calculus / session types (particularly Propositions as Sessions) and it kind of slipped my mind that Curry-Howard needs dependent types (even though I usually study the non-dependent stuff) lol

2

u/pruvisto 1d ago

Curry-Howard doesn't need dependent types at all; Curry-Howard just says that there is a correspondence between types and propositions. You can absolutely apply Curry-Howard to simple types, but then the logic you will end up with is intuitionistic propositional logic, which is pretty weak.

If you want a strong, expressive logic and you want to use Curry-Howard, then you need dependent types.

1

u/Embarrassed_Range356 1d ago edited 1d ago

The super interesting thing from a theoretical point of view is that conputer science and mathematics are really one and the same.

Math is a formal logical system, which by its definition means it can be defined and constructed from a logical series of computable steps. This is exactly what computers do and excel at.

You can view the whole history of mathematics as the goal of humans trying to formulate and recreate the understanding of the universe as our mind does. Thats exactly whats happening. We created computers which could carry out calculations, formalized mathematical theory in them, wrote programming languages that emulate and do what were thinking, and finally we built intelligence that can autonomously drive itself.

1

u/minisculebarber 1d ago

No, Lean uses a sound formal system. If the syntax is valid, so is it semantically.

That is how one can rely on formal proof verifiers.

1

u/two_three_five_eigth 1d ago edited 1d ago

Your question is can Lean have a bug in it. Yes. The proof has been reviewed, so highly unlikely though.

The math community still has not “accepted” the proof but they haven’t found an issue yet.

1

u/nicuramar 1d ago

It depends on what you mean. For one meaning, the answer is no, due to Gödel’s completeness (not incompleteness) theorem: https://en.wikipedia.org/wiki/Gödel%27s_completeness_theorem

1

u/MasterGeekMX BSCS 1d ago

Absolutely.

While there is effort on mitigating that, compilers may contain errors that can lead to successful compilations of faulty programs.

One of them are the famous compiler ambiguity, where the syntax leaves some doubt on when things resolve. Researcher Laurie Kirk explains that over here: https://youtu.be/rv3S1HVxwD4

0

u/Frootlooops_ 1d ago

Just found this
https://philpapers.org/archive/NIEIOT-2.pdf

Not sure how valid the argument is.

6

u/gkbrk 1d ago

The author of that paper is a well-known crank.

→ More replies (1)

4

u/vinegarhorse 1d ago

It's not valid at all

1

u/Brave_Speaker_8336 1d ago

She’s basically showing here that there’s extra stuff in here that is not needed for the actual proof, not that the proof is actually incorrect. But that’s not anything new, we already knew that there was likely tons of extraneous stuff, hence all the work various groups are doing to cut the actual proof down to only what is needed to make it more readable

1

u/keldareAI 1d ago

vacuous statements can be removed without any impact to the actual proof, thats literally the definition of a vacuous statement.

She claims this presence renders the proof invalid.

1

u/EnvironmentalLab6510 1d ago edited 1d ago

Suppose I claim there is a valid pathway going to the Rome from China.

When I explain the proof, I didn't go to Rome directly, but I go to Australia and New Zealand first, then go to Rome.

Is the first claim still valid? Yes of course, the theorem are proven by there is 1 valid pathway to Rome from China. Is it the most efficient pathway? There's no such claim in the original theorem.

Edit: my mistake for the understanding. I guess we agree that she is writing some bullshit reasoning.

1

u/keldareAI 1d ago

How are you contrading me exactly, I never said the proof was efficient I said the path /detour to Australia is redundant and can be safely removed whiteout rendering the proof invalid (albeit it with effort). You just said the exact same thing I did.

The author of those crackpot disproves claims the detour renders it invalid, not me.

And reddit/anti AI people keep spreading those crackpot papers.

For the record she also claims her own proofs for 3 different millennial prize problems. That should tell you all you need.

1

u/Jack-of-Games 1d ago

The argument is valid, but it does not compromise the proof in this case. IMO, the published slop from Alpöge is not a proof, although it may contain a proof; it's the equivalent of dumping a pile of uncommented notebooks on the ground and claiming you've produced a proof. It may well be that the proof is in there but so's a whole bunch of other stuff that was worked out along the way.

It seems that the correctly identified nonsense among the slop wasn't actually used in the mainline proof, and is thus the equivalent of a page of those metaphorical notebooks containing incorrect maths.

IMO, it would be better if everyone refused to engage with Alpöge until he (or his chatbot) do the work to refine the slop into an actual proof but, sadly, people will just keep on doing things I don't approve of :p

1

u/1vader 1d ago

There's a reason she posts her papers on a philosophy pre-print server (philpapers) despite claiming to be a physicist. The argument is completely nonsensical and btw also AI generated. If you check the original version here, her AI even admitted the argument is irrelevant in the paper before she edited it out:

A term that typechecks is a derivation of that statement. Vacuously true intermediate steps cannot make it false. They show only that those steps were not needed. This is correct about the term. This paper does not show that the term fails to typecheck

Newer reduced versions of the proof also don't include these unnecessary statements anymore.

But they never were a problem to being with. You can't get Lean to accept a false proof by adding "vacuously true statements" or similar. The idea that you can just "define it to be true" and Lean is like "yeah, looks right" is fundamentally wrong. Every statement you make needs to be logically derived from basic axioms. You can add unnecessary true statements or functions that map certain objects to true but those don't let you derive anything more. Proofing in Lean happens via type checking (since it's based on type theory), not by calling a function that returns true.

-1

u/TedsGloriousPants 1d ago edited 1d ago

The question here shouldn't be about whether or not lean is reliable as proof - it should be whether or not we can trust that the thing proved by the lean was actually a reliable translation or interpretation of what was in the plain-language proof.

That's what I don't trust.

I don't doubt that the lean is "correct", but is it proving the right thing?

I'm not a mathematician, obviously, so I would defer to someone who knows better, but "can lean be wrong" is the wrong question to be asking.

Edit: Does anyone here actually know what they're talking about? Every reply I've gotten so far contradicts the other replies.

1

u/scykei 1d ago

My understanding is that the RH is in their library. What's missing is the in-between stuff to get it to compile, so if it compiles, unless it exploits some bug, the proof is necessarily correct.

1

u/larvyde 1d ago

the thing proved by the lean was written by humans wayy before AI came into the picture.

1

u/GlassCommission4916 1d ago

but "can lean be wrong" is the wrong question to be asking.

That's actually the most likely question that results in the proof not being correct. We're pretty sure about the rest.

1

u/HappiestIguana 1d ago

This a general concern that is generally valid, but not in the particular case of RH, which had a well-known statement in Lean already