An unofficial, read-only Hacker News reader. Join the beta →

Much shorter version of GRH Lean verification from Anthropic (opens external site)

565 points by nb-t 2 days ago | github.com | 368 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. Does anyone have any tips for simplifying llm output like this using LLMs? I’ve never had any luck getting Claude to simplify code unless I just reprompt.
    Replies (2)
    1. Consider: https://news.ycombinator.com/item?id=50611593

      Left a comment under it that may be more directly relevant for you: https://news.ycombinator.com/item?id=50648003

      Also relevant are the topic-specific comments from the Lean Zulip thread (linked elsewhere here) on how this was done:

      Luke Sernau:

      > Yes, it's based on the same proof. I'm not able to say very much about methods, unfortunately, but I had some luck with unrolling definitions to get a long, flat proof, looking for simplifications there, and then rolling them back up again. That way I could simplify across boundaries. Some stuff just needed entirely new arguments though, like getting rid of Vandiver.

      Devin Watson:

      > For RH I took the millions of lines of Lean from Alpöge and fully decomposed it into atomic binary math functions. Decomposing it to the atomic functions enabled structural deduplication, hash-consing, direct binary term reduction, DAG theorem inlining, and shift-aliasing and binary packing. I am sure there are other strategies for essentially compression that could be applied. Using a custom framework on top of Lean I have gotten it down to 528,681 lines of Lean since starting around lunch yesterday. Obviously I haven't been dumping this directly into the main GitHub repo but it has been guiding my work. I was hoping to have a fully condensed RH Lean package and paper some time tomorrow.

      Luke Sernau:

      > sounds cool! And way more aggressive than what I was doing. I would bet that there are some big wins still to be had doing that on the shorter version.

    2. Show Claude the before and after and then get it to work out a repeatable method :)