Zulip Chat Archive
Stream: general
Topic: Alleged Collatz Conjecture proof
Alex Sweeney (Jul 13 2025 at 19:41):
I saw someone claim they've proved the Collatz Conjecture in Lean 4 with no sorry. I'm not experienced enough to check it, but it looks like a pretty short proof. I'm skeptical but would love if this was real.
Alex Sweeney (Jul 13 2025 at 19:41):
https://github.com/kaiarasanen/lean4-collatz-proof-template
Michael Rothgang (Jul 13 2025 at 19:46):
My first impression of the README is "this looks LLM-generated". A proof of only 140 lines in Lean feels impossible to me: that cannot be true.
Michael Rothgang (Jul 13 2025 at 19:47):
Trying the code on the playground, it appears the line endings are unusual --- the server doesn't even start. Could this be why?
Kyle Miller (Jul 13 2025 at 19:47):
For some reason they removed mathlib from the lakefile in a commit that says "corrected lakefile.lean" https://github.com/kaiarasanen/lean4-collatz-proof-template/blob/main/lakefile.lean
Aaron Liu (Jul 13 2025 at 19:47):
definitely false, since they forgot to exclude zero
Aaron Liu (Jul 13 2025 at 19:47):
collatz doesn't reach one starting from zero
Kyle Miller (Jul 13 2025 at 19:47):
Has the module Mathlib.Data.Real.Log ever existed?
Tristan Figueroa-Reid (Jul 13 2025 at 19:47):
Kyle Miller said:
Has the module
Mathlib.Data.Real.Logever existed?
That's what I've been trying to figure out.
Kyle Miller (Jul 13 2025 at 19:49):
Apparently "mathlib4‑nightly (2025‑07‑13)" works on Lean 4.4.0 https://github.com/kaiarasanen/lean4-collatz-proof-template/blob/main/lean-toolchain
Tristan Figueroa-Reid (Jul 13 2025 at 19:50):
If I ignore some other errors, it seems that some of the norm_nums in this proof evaluate to False.
Michael Rothgang (Jul 13 2025 at 19:52):
Indeed, the very first one already does: 2 ≤ 3/2 (in real numbers) is not true. Oh wow.
Michael Rothgang (Jul 13 2025 at 19:53):
Another thing: once the imports are fixed, there are 32 errors in this file - this was clearly not built at all.
Michael Rothgang (Jul 13 2025 at 19:53):
This is even worse than the other LLM slop proofs that just stated a trivial definition, but at least built.
Tristan Figueroa-Reid (Jul 13 2025 at 19:55):
I'm surprised that this messed up the definition given that there's now a standard definition of these open problems. I was hoping that formal-conjectures would make proofs like this easier to ignore...
Alex Sweeney (Jul 13 2025 at 19:55):
Yikes. In their reddit thread they claimed to not use AI
suhr (Jul 13 2025 at 20:00):
Tristan Figueroa-Reid said:
I was hoping that formal-conjectures would make proofs like this easier to ignore...
That's not how it works. You need too add popular conjectures to mathlib + write some guidelines on how to use these definitions for proofs. (And even this won't really work, but at least makes it easier to filter such stuff...)
Right now there's only https://leanprover-community.github.io/mathlib4_docs/Mathlib/NumberTheory/LSeries/RiemannZeta.html#RiemannHypothesis in mathlib. That's not enough!
Ruben Van de Velde (Jul 13 2025 at 20:08):
There's one good thing about this evolution. Not long ago, people would post inscrutable PDFs or blogs with their claims, and you'd need to actually read them to figure out it's nonsense. Now you can just point out that the code doesn't compile
Eric Wieser (Jul 13 2025 at 21:14):
Alex Sweeney said:
Yikes. In their reddit thread they claimed to not use AI
Maybe their AI was just claiming that it did not call out to any other AI system
Eric Wieser (Jul 13 2025 at 21:15):
Ruben Van de Velde said:
Now you can just point out that the code doesn't compile
Annoyingly these users often claim their code does compile, and then you have to explain "no, lake build didn't build your files because you didn't tell it about them"
Notification Bot (Jul 13 2025 at 21:35):
5 messages were moved from this topic to #general > Changing the default behavior of `lake build` by Eric Wieser.
Last updated: Dec 20 2025 at 21:32 UTC