r/math • u/Sad_Dimension423 • Jul 29 '26
LLMs/AI Lean 4 Bug Found Incidentally by AI, "Proving" Collatz
https://x.com/gro_tsen/status/2082483878480977959
737
Upvotes
r/math • u/Sad_Dimension423 • Jul 29 '26
387
u/Sad_Dimension423 Jul 29 '26
Generating masses of inputs to Lean 4 turns out to be a good way to find bugs in Lean 4. More effort should go into stress testing the implementation, and formalization efforts need to be ready to revalidate all their proofs when a Lean bug is found.
29
u/Stabile_Feldmaus Jul 29 '26
Can someone explain like I'm 5 how this is possible with Lean? I thought the whole point is that proofs are verifiable.
10
u/ObliviousRounding Jul 29 '26
That comma in the title is doing so much illegitimate work.
521
u/flat5 Jul 29 '26 •
How do we prove correctness of Lean?
154
u/Laavilen Jul 29 '26
apparently the bug was known, and this was intentional , for the joke
313
u/cloudsandclouds Jul 29 '26 edited Jul 29 '26
PSA, it does not seem to have been found incidentally. The person who created this fake proof is an ITP expert who knows what theyāre doing, and apparently deliberately framed this soundness bug playfully (or as a troll, depending on your perspective!) as a fake ādisproof of the Collatz conjectureā.
It seems LLMs were indeed involved, but quite possibly directed with expert knowledge to perform this exploit.
123
u/lowestgod Jul 29 '26
AI using any means necessary to legitimize a proof is a nice way to find bugs
21
u/elliotglazer Set Theory Jul 29 '26
Look I might be biased here (see my flair) but this is why the gold standard of formal verification of mathematics is a minimal proof assistant that directly corresponds to ZFC, the most popular by far being Metamath. Lean has many advantages for practical use but its far greater complexity makes it less trustworthy for absolute verification.
1
u/vwibrasivat Jul 31 '26
I feel like this thread is better suited to /r/compsci
1
u/joyofresh Jul 29 '26
š„Ā
1
u/raresaturn Jul 30 '26
Thatās nearly as good as a Collatz solution
1
u/fridofrido Jul 30 '26
I thought there are multiple independently developed Lean4 kernels... (for exactly this type of situation)
-6
u/howtogun Jul 29 '26
Fuck that title. Thought you just wrote AI proved Collatz. That would have been doomer.
-2
u/Sea_Abroad_6573 Jul 29 '26
This reminds me of a question I had. If say some random person prompts AI to come up with a counterexample to Collatz, and say it does come up with one, then who gets the credit? Obviously the math community will credit the AI and previous researchers more (if their work was used) if all that person did was prompt, but who gets the financial credit? This question isn't collatz specific, but for any conjecture with money, prestige, and some award attached to it.Ā