Lurker News
Related: Hurried Announcement: Alessandro Masullo GRH - https://news.ycombinator.com/item?id=50579568

Comments (2,121) 275 threads

Show all comments

Showing thread 1 of 275

djoldman17 replies#
These proofs really are quite huge. The proof is 1.3GB, ~15M lines of code:

  mkdir -p riemann_proof && cd riemann_proof

  # fetch parts 01–14
  for i in {01..14}; do
    curl -fSL -o lean.tar.gz.part$i https://alpo.ge/lean.tar.gz.part$i || { echo "failed: part$i"; break; }
  done

  # join and decompress (creates ./lean)
  cat lean.tar.gz.part{01..14} > lean.tar.gz
  tar xzf lean.tar.gz

  # size, file count, line counts
  du -sh lean | cut -f1 | xargs printf '%s on disk (lean folder)\n'
  find lean -name '*.lean' | wc -l | xargs printf '%s .lean files\n'
  find lean -name '*.lean' -print0 | xargs -0 cat | wc -l | xargs printf '%s lines total\n'
  find lean -name '*.lean' -print0 | xargs -0 cat | grep -cv '^[[:space:]]*$' | xargs printf '%s non-blank lines\n'
stabbles3 replies#
And presumably you need hundreds of GBs of RAM to compile it. Would be nice if someone with a beefy machine could confirm?
igleria#
some randos on twitter I've seen are on it as we speak, but the real deal would be other mathematicians confirming the proof is written correctly.
sva_#
You could run it with limited RAM, just not many Lean processes in parallel. Just need some disk space for the compiled files.
pama1 reply#
About 1 1/2 hour in, my estimate is it takes about one day on a single DGX spark. We will see.
pama#
Proof verified. Less than a day on one spark.
itsthecourier4 replies#
why a lean proof is so big? it needs to be compiled and tested with a lot of cases or what may it be?
ht-syseng#
judging by claudes review because it actually rebuilds and proves a bunch of stuff in mathlib that wasn't sufficiently formalized, but were required dependencies.
killerstorm1 reply#
Five years ago very few proofs (outside of logic) were formalized.

Proof assistants existed for 50 years - they are not new. But it's REALLY hard to formalize something which is not just logic.
Even just logic is not trivial. Russel's Principia Mathematica needed 360 pages before it can prove 1+1=2.

cowlevel#
prove that (Russell's definition of 1 as a set) (Russell's definition of + in terms of set operations) (Russell's definition of 1 as a set) = (Russell's definition of 2 as a set), that is

He did not prove one apple and one apple make two apples, he proved that his complicated definitions of arithmetic using sets were not completely broken.

wasabi991011#
I suspect it includes a lot of formalization of existing, peer-reviewed mathematics. Including these bloats the code but makes the verification more self-contained (less AI-written unverified inputs to lean).
pretzellogician2 replies#
For whatever reason, the LLMs currently generate very long proofs of results. For example, they often rephrase earlier arguments rather than citing them, or repeat their own arguments. (I've experienced these myself.)

It'll just take some work to simplify this.
From Alpoge himself: "My intuition insists it will be massively simplified, likely immediately.”

coffeebeqn#
Sounds like a massively parallel search of all possible paths since they have so much compute now
VirusNewbie#
This is true for code, even frontier models, they will often not use a library, or not modify the library but rewrite an almost identical function(s), etc. It's very interesting and needs constant vigilance
causal6 replies#
Whoa.

One real problem with depending on Lean is that if there are any real bugs, then sufficiently-large swarms of agents are guaranteed to eventually come up with proofs that depend on the bug.

red75prime#
...if it's tasked to find proofs of False assuming that there are still bugs left.
striking3 replies#
This comes up frequently in threads but it's actually a much less impactful issue than you might think. There are actually several entirely disjoint implementations of Lean, each with different bugs; it is incredibly unlikely an agent would be able to exercise the same bug in every single implementation.
tomjakubowski13 replies#
Does a malicious proof need to exercise the same bug in all the engines necessarily? Why couldn't it exercise a different bug in each engine?

Continue this thread — 13 replies

javra#
Some of the reimplementations are actually verified, so guaranteed to be free from the sort of bugs found in the main kernel recently.
TZubiri#
All implementations built upon the same spec no?
empath75#
I found a bug in Lean a couple of weeks ago with an LLM, in fact, but it was in its 'macro' system that expands code into statements, not the actual proof system. It wouldn't have proven anything false, but it could have produced statements that aren't what you intended.
causal2 replies#
Yeah maybe even more important point

Continue this thread — 2 replies

thomasahle#
It would have to also be really sneaky about it. A proof that's trying to invoke some bug will look very different from a proof that's the real thing.
gpvos#
Yes, this is starting to look like the infinite monkey theorem.

Continue this thread — 14 more replies