| ▲ | Much shorter version of GRH Lean verification from Anthropic(github.com) |
| 345 points by nb-t 7 hours ago | 154 comments |
| |
|
| ▲ | spootydooty 6 hours ago | parent | next [-] |
| Nice! The more readable 300kloc proof even has a clear "known math" vs "new math" split and human-readable documentation all over the place. This should greatly aid with digesting it. |
| |
| ▲ | tito 3 hours ago | parent [-] | | You can verify it yourself at home in a couple of hours. Inspired by SETI@home, we have a leaderboard and 18 independent validators so far who ran the 17M line proof. Now up and running with the 300k line proof! https://riemann-at-home.github.io/riemann-at-home | | |
| ▲ | neuronexmachina an hour ago | parent | next [-] | | Wow, that visual at the top really took me back. https://setiathome.berkeley.edu/sah_graphics.php | | | |
| ▲ | post-it an hour ago | parent | prev [-] | | I don't think anyone doubts that the lean code itself is valid. Though I guess it would be pretty silly if it turned out it wasn't, so verifying isn't a bad idea. | | |
| ▲ | tito 20 minutes ago | parent | next [-] | | Yeah it turns out to be a bit of a fun exercise in “what is trust”. With the first big version it was “yes so and so Lean mathematician said it compiles”…but I want to see for myself. The first lean proof took multiple days to build and export. | |
| ▲ | awesome_dude 37 minutes ago | parent | prev | next [-] | | My personal feel is that the first shot was bloated - meaning that although it (appears to) proves the conjecture, it was doing a hang of a lot more too - which could have been interfering with the result Note that I qualify whether it does or doesn't do the job, not because I don't think AI should or shouldn't be awarded such an award, but because I, a mere random on the interwebs who is suddenly being bombarded with explanations of the Rieman hypothesis via Tik Tok/Reels, have no actual idea if it does hold up or not, and just have to go on what I am being told. Note also - I do feel (based on the aforementioned reels) that this is more accessible for celebration than the discovery of the Higgs Boson particle which had people writing things up on my workplace whiteboard that, when I asked for explanation, they had no idea about. (A win for reels/tik tok science educators I think) | | |
| ▲ | tito 19 minutes ago | parent [-] | | Agree on the “what I’m being told”. I can at least check off one thing. I’m being told the Lean proof compiles, and with this tool I’ve validated it, and other people with Github accounts have said they did too. |
| |
| ▲ | steve_adams_86 an hour ago | parent | prev [-] | | Like 75% of the people in my Bluesky feed think it’s an AI bubble cope-fest and anyone who believes it is dumb as rocks. Well, maybe it would be reasonable to say it’s a mix of that and people who somehow think an AI proof doesn’t qualify as ‘real’. None of those threads have panned out to define what real is in this context. I have plenty of reservations about AI in various forms but I’m starting to think people engaged in this kind of denial are actually in a pretty bad place and actively sabotaging themselves by not facing reality. I don’t know. These are strange times. I have no idea why my feed is like this, either. I don’t intentionally follow any AI doomers or deniers. It’s a hot topic over there | | |
| ▲ | tito 18 minutes ago | parent | next [-] | | Just come run Riemann@home and vibe with us | |
| ▲ | whatshisface an hour ago | parent | prev [-] | | I'll bite. A discovery is a form of "first education," such as Columbus's education of Europe about the inhabited Americas. If there's no education happening there wasn't ever a discovery. My standards are machine - reachable but clearly the work is not done yet - it's being done in this very article. I look forward to the day I actually learn from any of this! | | |
| ▲ | perching_aix 42 minutes ago | parent | next [-] | | This reminds me to a distinction an old teacher of mine hammered on about sometimes, data vs information. He insisted that despite being called informatics, machines work with data, not information. Data only becomes information once it informs somebody; that it is people who deal in information, it formulates in one's mind, and machines only ever deal in data. Time is a flat circle I suppose. I found this to be an interesting proposal, but also kind of forced, if not even nascent. Could not really appreciate it at the time either (as in e.g. why this mattered), matter of fact, just typing this out now is also me kind of understanding it for the first time where he was coming from. If something has the potential to inform, I'd already consider that information. I'd preferred simply thinking of data as persisted information, something that has been instrumentally measured or recorded, so that it could be space and/or timeshifted, to become information again in some other context. Bit of an aside I appreciate. Regarding the slop proofs, I think we're slowly approaching a better place with this idea of only publishing the Lean, especially if they could restrain themselves to only publishing an optimized Lean. This would leave exposition to experts until the models catch up in quality, perhaps retaining some of the social effects they're afraid of losing. The optimization did have to sacrifice some of the "richness" though that Alpöge was beaming about, which mathematicians may yet again despair over. Though if one really internalizes Tao's idea of a prospective era of "proof abundance", where these capabilities would no longer be restricted to these labs with their gigantic budgets and unconstrained secret models, I think that might open up the possibility of re-proving the same theorems in distinct ways, potentially identifying new maths that way, or simpler (or harder, more inter-disciplinary) arguments, even ones that'd have been already available at the time the hypotheses were formulated. Maybe a lot of already long existing proofs can also be optimized, or "ported over" to different subfields of mathematics, illuminating those from there-new perspectives. I think there's plenty to explore still. What becomes the "deliverable" that people can get credit and wages for though, I indeed also struggle to fathom. | | |
| ▲ | awesome_dude 33 minutes ago | parent [-] | | > Data only becomes information once it informs somebody I like that - from a Statistics point of view, the raw data is just that, until statistical analysis looks closer at the data and provides information about relationships within | | |
| ▲ | perching_aix 29 minutes ago | parent [-] | | Yes, but then data can inform a statistical model (an algorithm), which machines do host. This is why I didn't find his idea illuminating, and why I preferred mine at the time. It formed a dependence on the human aspect, even though that was not the key bit, but the mechanism of informing, which does not require a person per se. Saying this out loud does make me wonder whether this is just my mind playing tricks on me though, and subtly adjusting the memories recalled to fit the context. It's been a long time, take it with a grain of salt. |
|
| |
| ▲ | tito 17 minutes ago | parent | prev [-] | | I knew zero about Lean proofs when I started building Riemann@home. Now I know more than zero. Err Slightly more… I…at least didn’t…go backwards. heh |
|
|
|
|
|
|
| ▲ | bananaflag 6 hours ago | parent | prev | next [-] |
| From ~17M lines to just ~76k lines, a 99.56% reduction. |
| |
| ▲ | gregdeon 3 hours ago | parent | next [-] | | It's worth noting that the 76k line version is heavily "golfed" (e.g., cramming the same content into fewer lines), which heavily hurts readability for the sake of a smaller line count. A more sane version is around 300k lines. Still, a massive reduction! The proof also still contains a few unused intermediate results. Sounds like these were neat findings where the proof of RH ultimately only needed a weaker version of the result, but folks at Anthropic thought it would be worthwhile to finish fleshing out the details. | | |
| ▲ | DonsDiscountGas 3 hours ago | parent [-] | | > The proof also still contains a few unused intermediate results. This is exactly the type of thing that moves a field forward, that many people were (inexplicably IMHO) saying we wouldn't get with an AI proof | | |
| ▲ | stingraycharles 2 hours ago | parent [-] | | To be fair, since it’s only a few days later, it would have been better if Anthropic did that simplification before releasing it to the public. It was massive ammo that fed the trolls to just call it “slop” and a trash proof. | | |
| ▲ | pishpash 2 hours ago | parent [-] | | So why did they feel like rushing it? Was OpenAI close? | | |
| ▲ | randallsquared an hour ago | parent [-] | | Alpöge was personally impatient and they’d already made him wait until after the IPO. | | |
| ▲ | awesome_dude 26 minutes ago | parent [-] | | > they’d already made him wait until after the IPO. Odd - I would have thought releasing it before the IPO would have been in their interests - people have posited that the work is only being done to increase shareholder value, therefore releasing before IPO would have pushed the price per share up (surely) (edit: nope, I was way off) edit: SEC "Quiet Period" & Liability Risks: During an IPO registration window, companies face strict restrictions on promotional publicity ("gun-jumping"). Dropping a massive, unverified scientific claim right before listing invites intense regulatory scrutiny, potential IPO delays, and massive shareholder lawsuit liability if a bug were found in the 17M-line proof a week later. Lock-up Periods & Post-IPO Momentum: Founders and insiders cannot sell shares on Day 1—they are typically locked up for 90 to 180 days. Releasing a major catalyst after the IPO sustains institutional momentum, keeps the stock from suffering the classic post-IPO dip, and supports the share price closer to when insiders and early investors can actually realize value. Audit & Credibility Risk: Because the initial 17M-line release had not yet been simplified or broadly audited by the wider math community, holding it until post-IPO insulated the listing itself from any immediate "slop" backlash or technical controversy. So even if maximizing enterprise value was a primary driver, holding a high-profile, high-risk announcement until after the IPO bell rings is textbook capital-markets risk management rather than a contradiction. | | |
| ▲ | stingraycharles 23 minutes ago | parent [-] | | it was stated explicitly that they didn't want to release it before IPO to avoid "hyping up" the IPO Edit: looks like you also found that right before my answer | | |
| ▲ | awesome_dude 22 minutes ago | parent [-] | | Thanks, yeah I self checked and realised that I should stick to things I am better acquainted with :) |
|
|
|
|
|
|
| |
| ▲ | w-m 6 hours ago | parent | prev | next [-] | | Meanwhile, the community-driven compression with a hundred contributors and thousands of pull requests sits at a mere 33% reduction. Why this huge discrepancy? https://riemann.verifytask.cn/ | | |
| ▲ | jychang 5 hours ago | parent | next [-] | | 1. That chinese website might be the wrong dashboard, I think there's a chinese group that's doing the same thing. The main Lean community work is at https://github.com/leanprover-community/riemann-hypothesis 2. I disagree with the methods used by the Lean community repo, which is to try and shrink the original 17 million line Lean proof down. Instead, I believe it was much better to try and formalize the proof from scratch. I was in the process of doing that greenfield formalization by myself. I am about maybe ~70% done, and I am currently at ~35k lines of Lean right now. Unfortunately, I do not have access to Anthropic's compute; this is all done with a $100 ChatGPT plan running GPT-6.2 Sol. Since Anthropic has the resources to beat me to the punch, I guess I will just publish my current progress here: https://github.com/jamesyc/riemann-hypothesis Note that this is not my first rodeo; I have previously formalized a proof of the smallest Turing Machine that cannot be proven to halt in ZFC https://github.com/jamesyc/BusyBeaver/tree/main/ZF192 | | |
| ▲ | lwarfield 3 hours ago | parent | next [-] | | As somebody who tried the other way around, I think you made the right decision. I was able to condense down the proof by a lot, but in retrospect, it would have been much faster to just build it from scratch again. | |
| ▲ | jwpapi 5 hours ago | parent | prev [-] | | I praise people like you! |
| |
| ▲ | rtpg 5 hours ago | parent | prev | next [-] | | The "obvious" thing is a mathematician with a proper understanding of both the tooling, math in itself, and good strategies. Useful tactics and thought processes are still a helpful skill. Maybe the model can come up with those, but if you already have a strategy with high chances of success then you can already do that! | | |
| ▲ | seizethecheese 3 hours ago | parent [-] | | There’s someone in this thread who is doing it on a $100 per month plan and claims to be under the Anthropic size so far. It looks like they are a software developer | | |
| ▲ | rtpg 2 hours ago | parent [-] | | Sure, I just mean like.... someone who isn't just asking a robot to "make it smaller and cleaner". Like just a bit of direction can make you spend an order of magnitude less time on this kind of stuff |
|
| |
| ▲ | kccqzy 5 hours ago | parent | prev | next [-] | | The community-driven one is here: https://rh-shrink.github.io/ Edit: they just switched to the version in this repo. | |
| ▲ | dyauspitr 30 minutes ago | parent | prev | next [-] | | I assume the in house models are significantly more powerful. | |
| ▲ | traes 5 hours ago | parent | prev | next [-] | | I unfortunately can't recall the exact source but I saw some Lean experts early on commenting that those efforts appeared to be a poorly organized dead end that were focusing on cheap "easy wins" that don't actually reduce the fundamental complexity of the proof, like inlining imports. | | |
| ▲ | pishpash an hour ago | parent [-] | | This does bring all sorts of weirdos out of the woodwork making it seem like anyone can do math. I mean yes it's more accessible now, but you need some skill. It has gone the other extreme towards pseudo intellectualism, or maybe a kind of anti-academic populism. | | |
| ▲ | dyauspitr 29 minutes ago | parent [-] | | Yes anyone can do it just like anyone can decompile GTA6. Humans are doing very little in all of this. |
|
| |
| ▲ | bananaflag 6 hours ago | parent | prev [-] | | The internal models are smarter. | | |
| ▲ | jeltz 5 hours ago | parent [-] | | Or they just have access to way more compute. | | |
| ▲ | conradkay 5 hours ago | parent [-] | | Nah, you can see how little progress that project has been making recently. Even with 1000x compute I doubt it'd hit 80% These hill climb-y tasks tends to hit a limit based on model capability (and getting stuck making tiny improvements in bad directions) | | |
|
|
| |
| ▲ | josephg 5 hours ago | parent | prev | next [-] | | 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. | | |
| ▲ | perching_aix 5 hours ago | parent [-] | | 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. |
| |
| ▲ | 6thbit 6 hours ago | parent | prev | next [-] | | That's interesting. If the method used to reduce is applicable to arbitrary software libraries, we could be able to simplify a lot of cruft that may help making some systems easier to understand. | |
| ▲ | chubot 4 hours ago | parent | prev | next [-] | | That is some ratio! I picture Alpoge just hacking like crazy on Claude and not looking at the code! I guess he has a strong intuition and just keeps piling stuff on in parallel. Then he makes it "go green", and doesn't care about cleaning it up I only did CTF once or twice, long ago, pre-AI ... but that's how I felt: just keep writing code and trying things. No cleanup. Whereas when I write code I plan to maintain, I probably do too much cleanup and refactoring. | | |
| ▲ | tyre 2 hours ago | parent [-] | | He admitted to including a bunch of crap to troll people. It was unprofessional, especially with how much attention this got and the amount of people’s time he wasted. Still an incredible result! Not taking away from it. And with how much he poured into it, I can understand going a bit crazy and not empathizing with the eventual reviewers. But, it’s able to be optimized to such an extent because it was purposefully long before. | | |
| ▲ | gus_massa an hour ago | parent [-] | | > He admitted to including a bunch of crap to troll people. I don't think he said that. He admitted to publish the fist version that compiled (or something close to that) instead of taking a few days/weeks to cleanup it. Not ideal, but I don't mind it. IIUC he notice the English proof he would get was going to be too long and no human would be able to read it, so he decided to drop the English version and publish only the Lean version. The "joke" was pretending that the Lean version printed in A4 paper counts as an English version. Note: I expect that after some cleanup and a few years of study, we will get a "short" proof that enters in one or two books. But the guy didn't have a few years to sit on the proof and clean it. |
|
| |
| ▲ | seizethecheese 6 hours ago | parent | prev [-] | | 76k lines sounds like it would just about fit into a 1m token context window. Cool. | | |
| ▲ | jychang 6 hours ago | parent [-] | | It doesn't quite fit with the o200k tokenizer, I just checked. |
|
|
|
| ▲ | dward 6 hours ago | parent | prev | next [-] |
| Zulip discussion here: https://leanprover.zulipchat.com/#narrow/channel/658556-Riem... |
| |
|
| ▲ | gre 6 hours ago | parent | prev | next [-] |
| Does this challenge Tao's point from a month ago that getting huge proofs with no insight is a problem? Are we already past that with smarter LLMs that can golf the proofs and explain them? |
| |
| ▲ | colechristensen 5 hours ago | parent | next [-] | | >Does this challenge Tao's point from a month ago that getting huge proofs with no insight is a problem? It's reducing the proof to make it more likely that insights are possible. But no it doesn't reduce Tao's point. | | |
| ▲ | drusepth 5 hours ago | parent | next [-] | | Am I misreading/missing something? Why doesn't [the proved capability of reducing the proof size (by 99%!) to make it more likely that insights are possible] reduce the criticism of [no insights are possible from huge proofs]? | | |
| ▲ | traes 5 hours ago | parent [-] | | All that means is that this particular proof wasn't ACTUALLY impossibly huge, just very poorly written. Tao's thought experiment concerns proofs that are fundamentally gigantic. | | |
| ▲ | apetresc 3 hours ago | parent [-] | | Well presumably those problems were outside of human reach to begin with. So there’s no “opportunity cost” to having an AI proof vs no proof at all. | | |
| ▲ | traes an hour ago | parent [-] | | There's still an opportunity cost. If the problem is solved, people will no longer try to solve it, and won't discover anything along the way. |
|
|
| |
| ▲ | objektif 4 hours ago | parent | prev [-] | | His point was never valid anyways. We will eventually understand what was going on it is not a secret. It is just that he did not come up with it. |
| |
| ▲ | traes 5 hours ago | parent | prev | next [-] | | Not really. There's no guarantee that all proofs remain golfable. | | |
| ▲ | jgord 5 hours ago | parent [-] | | does golf-able mean understandable by a human well trained in the domain ? | | |
| ▲ | traes 5 hours ago | parent [-] | | Golf-able in the sense of code golf; writing a program in a minimal amount of characters, like how you try to get a golf ball in the hole in a minimal amount of strokes. My point is that not all long AI generated proofs are going to be possible to compress in the way this one was. | | |
| ▲ | objektif 4 hours ago | parent [-] | | Why do we care as long as it works? We will understand it though even if it’s lacrossable. | | |
| ▲ | animal_spirits 2 hours ago | parent | next [-] | | We should understand the equations if we are going to be using them in critical applications; you don't want to base an economic model off of an AI generated equation no economist understands | |
| ▲ | measurablefunc 3 hours ago | parent | prev [-] | | It works until it doesn't and then whatever you thought you understood might turn out to be an illusion. There is a certain amount of complexity that people can deal with and 17M lines of Lean is beyond that threshold. |
|
|
|
| |
| ▲ | c7b 6 hours ago | parent | prev [-] | | That was never a serious take to begin with. If there's one thing that LLMs are good at, it's taking stuff at any level of difficulty and explaining it to an audience with any level of expertise. It's just a matter of whether someone puts in the effort to produce a prettified version, which the big AI labs seem to have deprioritized against being first so far. My guess is that as soon as the list of impressive, open problems (like Millennium problems) is exhausted, we'll see more and more beautiful explanations of the results. | | |
| ▲ | ipdashc 5 hours ago | parent [-] | | > If there's one thing that LLMs are good at, it's taking stuff at any level of difficulty and explaining it to an audience with any level of expertise. I don't agree with this, personally. They're a great research tool, I certainly appreciate having them, but they can't compare to a well-written document or video. And interestingly this doesn't really seem to be getting better, while they're much better these days at writing code, retrieving information, etc. their ability to communicate that information is still about where it was a year ago. Claudlish sucks to read, it's better than nothing, but I certainly wouldn't say it's the one thing they're good at. | | |
| ▲ | senderista 4 hours ago | parent | next [-] | | Not all models are as bad at technical writing as Claude. | |
| ▲ | c7b 2 hours ago | parent | prev | next [-] | | Terrence Tao himself has used AI to understand one of the first results in this wave that was published as a tweet with no explanations (counterexample to the Jacobian conjecture). Which we know because he published it. It's clear that he considered the discussion useful. I think it's a misrepresentation to say that he thinks that LLM-driven math research fundamentally cannot produce papers that aid understanding. I think the better representation of his intervention was that he was complaining about the form, specifically of the several-hundred papers drop by OpenAI, some with atrocious writing quality. I think it was a point well taken, and OpenAI has visibly tried to incorporate his feedback in the subsequent release. But right now their focus seems to be more on the perceived race with Anthropic. | | |
| ▲ | ipdashc 2 hours ago | parent [-] | | They can help aid understanding, I don't disagree at all. An LLM is certainly the first tool I would reach for to start wading through (ironically?) LLM-generated code or math, or really anything where you're swamped with a large number of noisy/wordy documents. I just disagree that they're somehow going to make human explanation obsolete, as the parent comment was somewhat implying. Given the choice (which of course, isn't often available) I'd almost always want to read decent human writing over LLM writing, it's just better at keeping one's attention and conveying info |
| |
| ▲ | chasd00 4 hours ago | parent | prev [-] | | Idk I point Claude at a mountain of bad code and ask it to produce docs + diagrams and exec summmaries regularly. It does better than any human I’ve ever worked with and effectively instantly too. | | |
| ▲ | foltik 3 hours ago | parent [-] | | It only looks like it does a better job. If you haven’t spent the time to deeply understand and form your own mental model about the system it’s documenting, you won’t notice all the inconsistencies, contradictions, omissions, overcomplication, etc. in the AI output. | | |
| ▲ | lgas 2 hours ago | parent [-] | | This was certainly true a year ago, but it seems to be less and less true with every passing day. I've had Claude successfully complete a number of tasks like this which all held up to thorough vetting. |
|
|
|
|
|
|
| ▲ | AIShill101 an hour ago | parent | prev | next [-] |
| Man at this point I wish somebody or a group of mathematicians actually managed to grok the core argument and write like an actual proof about it. Lean code is good and all ig but I'd really like to see an actual mathematical paper about this with someone who understands it presenting it at a conference. |
| |
|
| ▲ | delegate 6 hours ago | parent | prev | next [-] |
| I don't know Lean.. But looking at the code, I can't help but wonder: Who on Earth can understand that ? Random example: https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr... Genuine question for people who know Lean:
How realistic is it for a human to read this code, 'grok' it and verify that it is correct ? |
| |
| ▲ | ngruhn 6 hours ago | parent | next [-] | | Lean syntax is alright. You can get used to it. The hardcore part is the jargon. > Scaled Hecke operators repair divisibility at inert primes pairing tops Literally every word here has a precise definition. Probability takes forever to get an intuition for all of that. But that's always the problem with math. | | |
| ▲ | red75prime an hour ago | parent [-] | | I'd say the hardcore part is the complex concepts that are compactly described with the jargon. |
| |
| ▲ | Paracompact 5 hours ago | parent | prev | next [-] | | Most of the hard-to-grok code there is proof bodies rather than theorem statements. Assuming you can parse the statements, you can follow the proof pretty loosely and reconstruct it yourself. Such is the tradition in math generally Plus, these proofs are actually quite tame compared to human-written Lean proofs. > How realistic is it for a human to read this code, 'grok' it and verify that it is correct ? You don't need to verify any of this, but for the final theorem statements. That's the point of formal methods. | |
| ▲ | nextaccountic an hour ago | parent | prev | next [-] | | This is just programming To properly understand a proof you need to run it interactively (or at least I do), which is kind of running in a debugger I mean the here's the gist of what takes to understand a proof To prove a theorem in Lean (or similar theorem provers; I'm actually more familiar with Rocq) you have goals, which are the things that are left to prove. The "main goal" is what you want to prove right now, and the other goals are other things you also need to prove When the list of goals becomes empty, you have proved the theorem. You start with a single goal: the theorem itself It proceeds like a game. Depending on what the main goal looks like, you can eliminate it calling some piece of code (there's more to it but let's say it's a tactic). But more often than not, eliminating a complex goal just pushes more, hopefully simpler goals into the goal list. So you need to be, well, strategic in what tactics you employ - you need to go into the direction of making things easier to prove, not harder So what looks like to run a proof interactively? You can go through the proof step by step, all the while you observe how the goal list changes. That's analogous to run a C program in a debugger, watching the local variables of each stack frame Ok so that's how you (or at least I would) understand a proof - run it interactively, which is like watching a professor write down each step of the proof in a white board, all the while she carefully keeps track of what's left to prove But anyway. The innovative thing about theorem provers in general is that to verify a proof you run a program (a kernel) which is just a trusted type checker. Unfortunately the official kernel is written in C++ and agents found bugs before (that made the kernel accept theorems that were false). However, there's multiple kernels, so if all of them type checks the proof (and the proof doesn't contain stuff like "sorry", which means it's not proved at all), there's a high confidence in the result | |
| ▲ | IsTom 5 hours ago | parent | prev | next [-] | | Besides this being the compact version, a decent chunk of it (typically everything after the first `by` in each declaration) is proof tactics, which are not really needed to verify that it's correct because they're mechanically checked by the compiler. | |
| ▲ | greenknight 3 hours ago | parent | prev | next [-] | | Just for your reference. you linked to the compact version https://github.com/lsernau/grh-lean/blob/main/grh/src/New/Up... This is the non-compact 'Human Readable' version. Still pretty intense! | |
| ▲ | kachnuv_ocasek 5 hours ago | parent | prev | next [-] | | For me, this is more readable than many "human-language" paper proofs. | |
| ▲ | aeonik 5 hours ago | parent | prev | next [-] | | I don't understand the math or logic here, but the syntax is not half bad. | |
| ▲ | colechristensen 5 hours ago | parent | prev | next [-] | | Code in the sciences often looks like that. You have to have domain-specific knowledge to read it and there's no escaping that. >How realistic is it for a human to read this code, 'grok' it and verify that it is correct ? Data presented this way isn't simply read and understood, it often has to be studied. | |
| ▲ | spootydooty 6 hours ago | parent | prev | next [-] | | The grh-compact version is not very readable (it is deliberately minimized), I'd read the 300kloc version in the grh folder instead, which looks fairly clean to me. | |
| ▲ | rvba 4 hours ago | parent | prev [-] | | This is nearly as ugly as ABAP, only misses the comments in German Something that I wonder where is the "eureka" part of this proof, or perhaps the top 10 "eureka" moments. |
|
|
| ▲ | galoisrepresent 2 hours ago | parent | prev | next [-] |
| This (https://github.com/tzu-chen/slim) can be used to navigate the lean source and take a look at the shape of the project without setting up lean or building. |
|
| ▲ | gus_massa 4 hours ago | parent | prev | next [-] |
| > and using only the axioms propext, Classical.choice and Quot.sound Is there an ELI35 explanation for mathematicians that don't speak Lean? |
| |
| ▲ | raincole an hour ago | parent | next [-] | | In short: the keyword here is only. One of the possible sources of LLM hallucination is that it would invent new axiom and therefore "prove" anything in a meaningless way (RH is true because RH is true is an axiom). Only here means it didn't do that. Longer answer: in layman's terms: propext - treat "if and only if" as "is" Classical.choice - allow to pick an element from any known non-empty type, even you don't know what the element is Quot.sound - Quotient ("quot") means to split a type's elements into groups. It's called quotient because, for example, you can split all integers into two groups - odds and evens - by dividing them by 2. Quot.sound means you can go the opposite way: you can say "since 9 % 2 = 13 % 2, the group where 9 is the group where 13 is." If all these three sound very trivial to you, that's because they are. Our everyday math already assumes these hold. (Edit: I didn't realize you meant to ask for explanation for mathematicians. These might be "too layman" for you, sorry. I'll leave this comment here for future non-mathematicians passing by.) | |
| ▲ | kccqzy 4 hours ago | parent | prev | next [-] | | Just read the official documentation. https://lean-lang.org/theorem_proving_in_lean4/Axioms-and-Co... The summary is that these are the axiom of propositional extensionality, choice, and a quotient construction (which implies function extensionality, i.e. what makes two functions equal). | |
| ▲ | kennethallen 4 hours ago | parent | prev | next [-] | | The Generalized Riemann Hypothesis is proved making no assumptions and accepting no axioms except the basic tenets of the type theory Lean is based on. No "todo"s, no "assume this is true while I debug", no escape hatches used. | | |
| ▲ | gus_massa an hour ago | parent [-] | | So ... in this new version they added three well known axioms to get a shorter proof in exchange of purity? Are they necessary to use some libraries instead of rewriting them? Are they used in the original proof and I just didn't pay attention? | | |
| ▲ | raincole an hour ago | parent [-] | | No, the original super long version uses the exact three axioms too. |
|
| |
| ▲ | nialv7 4 hours ago | parent | prev [-] | | propext is propositional extensionality. extensionality is basically "what does it mean for things to be equal?". propositional extensionality is saying two propositions are equal if they imply each other. Classical.choice is the axiom of choice. idk what Quot.sound is. |
|
|
| ▲ | eggsome 3 hours ago | parent | prev | next [-] |
| Have any of the labs pointed a internal model at foundational lean proofs made by humans to see if they could be simplified? |
|
| ▲ | formerly_proven 5 hours ago | parent | prev | next [-] |
| Why do they even bother putting a copyright license in a repo like this? The contained materials are clearly not copyrightable. |
|
| ▲ | aborsy 6 hours ago | parent | prev | next [-] |
| I have no experience with Lean. How difficult is it to learn to use Lean? Any similar example to see the level of difficulty? |
| |
| ▲ | kccqzy 5 hours ago | parent | next [-] | | All Lean Books And Where To Find Them: https://lakesare.brick.do/all-lean-books-and-where-to-find-t... Depending on what you want to use Lean for. Do you want to prove math, or do you want to do software with some theorems sprinkled in? | |
| ▲ | ajs1998 5 hours ago | parent | prev | next [-] | | Start with the natural number game. https://adam.math.hhu.de/#/g/leanprover-community/nng4 Lean is like a universal DSL. Learning the syntax is one thing, but learning the background domains of a Lean proof is another. | | | |
| ▲ | conradkay 5 hours ago | parent | prev [-] | | I think by the time you go from 0->1 learning it, the internal models will have gone from 1000->2000. I'm guessing you can get pretty far just using the models as almost a translator to/from Lean. (ofc it can still can be interesting to learn, I'd just treat it more like learning Latin) | | |
| ▲ | traes 4 hours ago | parent | next [-] | | Still useful to be able to accurately state and read theorems in Lean IMO if you want to have any concrete idea what you're having your computer work on. For example, the recent statement from the Yang-Mills group[0] said that OpenAI's formal proofs establishing a Yang-Mills theory were actually too weak to do so and needed to be updated. [0] https://www.kitp.ucsb.edu/sites/default/files/4th-Statement-... | |
| ▲ | schiffern an hour ago | parent | prev [-] | | "Why bother thinking for yourself? Offload it to (soon) a for-profit ad company." That's not quite what you said, your version is more nuanced, but I expect that's how some will take it. Hopefully the potential risks are obvious. |
|
|
|
| ▲ | tescreal 4 hours ago | parent | prev | next [-] |
| The people complaining that the LLM "cheated" are running out of places to hide their magical belief. Quite an accomplishment on the proof. With two different proofs on the table, it'll make for a lot of wonderful insights going forward. |
| |
| ▲ | pixl97 4 hours ago | parent [-] | | Don't worry, they'll say the AI cheated when millions of micro-drones descend from the sky and exterminate us too. I'd rather they wake up and prevent a world where that happens rather than adamantly denying it could ever happen. | | |
| ▲ | shimman an hour ago | parent | next [-] | | Interesting thought, this would be the Exterminism future (Scarcity + Hierarchy) as envisioned by Peter Frase. Basically culling the lower classes because the elites don't need them any more. Four Futures is the book I'm referring to. | |
| ▲ | phoghed 3 hours ago | parent | prev [-] | | Final human dies muttering something about it not actually being AGI | | |
|
|
|
| ▲ | efitz 2 hours ago | parent | prev | next [-] |
| Just smiling to myself that GitHub (not Arxiv) has replaced the gatekeeping academic journals. You ca fake diagrams and make writing incomprehensible, but the code works or it doesn’t. |
|
| ▲ | eamag 6 hours ago | parent | prev | next [-] |
| From comments > it's super absurdly funny how much time and resources have been put into tiny incremental gains to reducing the proof and Anthropic can just throw compute and better internal models at it and get a reduction of this magnitude in days |
| |
| ▲ | jychang 6 hours ago | parent | next [-] | | I'm actually a little bit miffed about this announcement, because I was working on this in parallel. I'm about 70% done with the proof and it's at 35k lines of Lean right now. However, Anthropic beat me to the punch. This is PURELY with GPT-6.2 Sol, by the way. On a $100 ChatGPT plan, using only one agent, no subagents. My implementation plan could use subagents, but it ate up my weekly usage too quickly. Anthropic engineers with access to {way more usage, fast mode, and can afford to use subagents} obviously can move a lot faster than me. Also, CLEARLY 17 million lines is overkill. At my current rate of progress, I'm pretty sure that I can do it in even less lines of Lean than Anthropic. This is with most the work being done by AI, with me giving it nudges (in ways that helps avoid the common pitfalls that happen if you fully give AI the reins). | | |
| ▲ | buzzy_hacker 6 hours ago | parent | next [-] | | Please keep up your effort and write up your approach in a blog post, people would love to read it still! | | |
| ▲ | jychang 5 hours ago | parent | next [-] | | The most important thing is to take regular Software Engineering skills and apply it to Lean. The basic concepts like DRY still hold. You also want to reuse Mathlib as much as possible. When you formalize a proof with Lean, you want to start off with the Challenge.lean statement file, which is good standard practice (which is surprising to me that the original proof by Alpoge lacked one). Make sure that's correct, and just replace the proof with a `sorry` statement. If your Challenge.lean is correct, then that means nobody can complain about you "proving the wrong thing". Then, counterintuitively, you want to liberally use `sorry` statements in your proof as you go. For software engineers, just think of `sorry` statements as NotImplemented exceptions. Track all the sorry statements in a centralized location, and have the AI build out the proof with breadth first search, not depth first. That's the biggest rookie mistake; most people tell their AI to do one component at a time, DFS style. You will get a much cleaner codebase if you do BFS. The other counterintuitive thing is that you DON'T want to compile the Lean code all that often. If you let the AI do what it wants to do, it will try to compile the Lean code after every little change to some random function. That means your entire context is littered with dealing with that. Instead, have the AI do a solid chunk of work without compiling the Lean code, then do a build occasionally. Accept that fact that the AI occasionally will make mistakes and the build will fail and will need to be fixed, but fixing the mistakes is pretty quick and the AI is much smarter if you make it focused on math, rather than handling Lean compiles and checking it. | |
| ▲ | thirtygeo 5 hours ago | parent | prev [-] | | Yes and what if it is different!!? |
| |
| ▲ | bigmadshoe 5 hours ago | parent | prev | next [-] | | Keep going! It's good to have both. | |
| ▲ | vatsachak 6 hours ago | parent | prev | next [-] | | I mean this just means that in the future we will have to pursue what we want without caring for whether a big lab scoops us. You did a great job and you should be proud regardless | |
| ▲ | fcoury 4 hours ago | parent | prev | next [-] | | Please keep going! | |
| ▲ | seizethecheese 5 hours ago | parent | prev | next [-] | | Doing this with GPT 6.2 Sol is insane. My hat is off! The GPT-6.2 series seems to truly be bad when it comes to real people doing real stuff. So far we're seeing Sol 6.2 underperform even Mimo v2.6 Flash, a super cheap model that's completing tasks at $0.03 each vs. ~$2. Sol is in last place except for Grok 4.7 (which is a truly bad model). (Data from https://github.com/bottomless/agent-duel.) | | |
| ▲ | jychang 4 hours ago | parent [-] | | Yeah, and I do have a Claude subscription too. That being said, I picked GPT-6.2 Sol because: 1. I cannot afford Astra 2. I found that GPT-6.2 Sol and Astra are better than Opus 5.5 for mathematics, even though I use Opus 5.5 as my main workhorse for coding. I suspect this is because 6.2 was posttrained a lot on mathematics and not coding... because OpenAI threw a lot of RL for math at 6.2 after Navier Stokes a few months ago, which is why it shines better than Claude at mathematics. 3. Sol has much faster tokens/sec than Astra | | |
| |
| ▲ | sunir 5 hours ago | parent | prev [-] | | You can’t fight city hall. But you can learn something by doing. |
| |
| ▲ | hax0ron3 6 hours ago | parent | prev [-] | | Anthropic also has the AI context from the work that created the original proof. I wonder if that might have helped. | | |
| ▲ | jychang 6 hours ago | parent [-] | | No, I'm working on it with ChatGPT and I am creating a proof that is roughly the same order of magnitude in size. | | |
|
|
|
| ▲ | lelandfe 6 hours ago | parent | prev | next [-] |
| > This repository is a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude. If this were “from Anthropic” surely it would be hosted on an Anthropic account? |
| |
| ▲ | perching_aix 6 hours ago | parent | next [-] | | The username resolves to Luke Sernau. His GitHub seems lively, but all his activity is constrained to private repos, all the way back to 2013, so it's not possible to check what he works on. On his LinkedIn, without being logged in, I can see Anthropic in the "current company" section, though most everywhere else I see him to be associated with Google DeepMind. Fed the repo to Astra and told it to hunt for malware concerns, came up clean. Definitely a thing to watch out for though, Lean is just arbitrary code after all, with metaprogramming facilities. I know this is circumstantial. It is not possible to prove identity matching like this, and the repo may contain novel prompt injection attacks to defend against LLM security audits (though I'm pretty sure Astra just ran some well directed rg commands). I did not have it sanitize the code before it ran its scan. If real, using the original 14.7M lines to 250K pages metric, this would imply a <1300 page exposition being well possible. Edit: actually, the core proof in this new minimized release is only 35 kloc, so the majority of the 76 kloc is still for formalizing pre-existing math: https://math.mit.edu/~drew/grhexplorer/#g=New | |
| ▲ | conradkay 6 hours ago | parent | prev [-] | | Anthropic hasn't even acknowledged the Riemann proof yet, Levent just posted it on his own website (after asking Dario for permission) | | |
| ▲ | londons_explore 6 hours ago | parent [-] | | Perhaps because it was not exclusively made with Claude, or because it was done as a weekend project? | | |
|
|
|
| ▲ | keyle 5 hours ago | parent | prev | next [-] |
| Is anyone going through this stuff? [1] It looks like a miserable job; reading LLM produced code is bad enough but I feel lean could have been named 'thick'. [1] https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr... |
| |
| ▲ | Paracompact 5 hours ago | parent [-] | | There are only two theorem statements here. When vetting a (trusted) theory as a mathematician, scrutinizing proof bodies tends to be the very last thing on the checklist. Top-down learning beats bottom-up. Plus, this big proof really isn't that bad. What a line like simp_rw [invDFT_apply, ← nsmul_eq_mul', AddChar.map_nsmul_eq_pow, ← smul_sum, @sum_comm _ _ ℕ,
← sum_smul, hψ.fourierTransform_eq_inv_mul_gaussSum] really means to say is simply, "simplify and rewrite the goal statement iteratively according to these equalities, in the specified directions." Understanding this in an interactive proof assistant just comes down to comparing the before-and-after of the goal state, only referring to the specific equalities mentioned if it's not obvious to you. The `grw` tactic used all over is similarly a rewriter. | | |
| ▲ | keyle 2 hours ago | parent [-] | | I read what you wrote and I have absolutely no idea about what you're talking about! :-) In this, I appreciate you and quietly envy you. Maybe this is my 2026 xmas-break project... |
|
|
|
| ▲ | pfdietz 4 hours ago | parent | prev | next [-] |
| Amusing comment from HN, Aug 1, 2018: > Is the Fields Medal going to still be relevant in 10 years, when most of the the major mathematical discoveries are made by deep learning and deep reinforcement learning systems? Already systems are learning to reason about concepts [1] and of course there is classical work on proof checkers [2]. It's very likely that the 2028 Fields medal will be awarded to a programmer, not some mathematical super-genius (assuming that the committee is fair, and not biased against machines). https://news.ycombinator.com/item?id=17662219 The responses have aged like fine milk. |
| |
| ▲ | CamperBob2 3 hours ago | parent [-] | | I also liked the comment from one of the medal winners that was related in one of the thread comments, concluding that he wasn't good enough for mathematics: Accustomed to meeting the highest of standards, he
saw his dissertation as mediocre. Quietly, Venkatesh
started eyeing the exit ramps, even taking a job at
his uncle’s machine learning startup one summer to
make sure he had a fallback option.
| | |
|
|
| ▲ | contron 6 hours ago | parent | prev | next [-] |
| Whatever model did this we are not getting. Can't make that hella cash flow without pumping those output tokens. Alas, one day. |
|
| ▲ | jwpapi 5 hours ago | parent | prev | next [-] |
| It‘s really interesting. I just want to add that if there’s any bug with Lean or any library, AI would be as good in finding it as finding the proof. I don’t think so, but would be a nice plot twist. |
| |
| ▲ | geysersam 3 hours ago | parent | next [-] | | Sure but if it found one, why wouldn't it tell us? I'd imagine it would be enough for the anthropic employees working on this to ask a hundred agents: "is this (part of the) proof utilizing any bugs in lean, if it is, demonstrate the bug with a minimal reproducible example" and since, as you say, the models are good at finding bugs they would likely find them quickly. | |
| ▲ | pixl97 4 hours ago | parent | prev [-] | | I guess it depends on a number of factors. In one particular domain they may be hard to find. Said bug may be covered by other bugs or weird behaviors. I'd think where you have two different branches of maths that have typically not been used together is where these things may stand out. Like axioms or values that should ether be equal, or should not be equal violate those conditions. |
|
|
| ▲ | minraws 5 hours ago | parent | prev | next [-] |
| This just proves my previous point that this is how it should have been released not the nonsense memo and 17M line proof and claim. I feel like actual understanding be damned, we will ship slop as fast as possible until everyone who cared has drowned in it. Is basically the subtext of all AI companies now. |
|
| ▲ | xqcgrek2 6 hours ago | parent | prev [-] |
| Really, at this point University trustees should disband math departments, and give their staff transition grants for retraining to do other stuff |
| |
| ▲ | keithnz 3 hours ago | parent | next [-] | | This is a lack of imagination, what it means for math is now you don't need to be a once in 100 year mind, a lot more mathematicians should be able to tackle much much harder problems. We should be able to enter a golden age of math where we do vastly more than ever before. Things like the GRH should become mundane and the path forward should open up to even more interesting things. | |
| ▲ | randompartytime 5 hours ago | parent | prev | next [-] | | This is a terrible take. Mathematicians should now turn to tackling more interesting, richer problems. | | |
| ▲ | traes 5 hours ago | parent | next [-] | | I don't even understand what people mean when they say this. Prompting ChatGPT to tackle more interesting, richer problems? We couldn't even solve the ones that ChatGPT got, what meaningful contributions are we expected to make over it? | | |
| ▲ | techpression 5 hours ago | parent [-] | | Until LLM's can find the problems themselves, someone has to do that, I really hope science isn't done and we're just waiting for what we have so far to be solved. | | |
| ▲ | traes 5 hours ago | parent [-] | | So we get to sit around all day trying to come up with interesting problems and plugging them into ChatGPT? It isn't even that "science is done," I just don't see how humans are going to be able to offer any meaningful intellectual value to the process. | | |
| ▲ | pixl97 4 hours ago | parent [-] | | I mean, that day may happen unless of course we go extinct first, not out of the realm of possibility. With that said, if AI just provided us a life of hedonism would you take it? With all the Calvinism in the US it would be hard for a lot of us to accept. Some people just want to work until they die. | | |
| ▲ | solyin 3 hours ago | parent | next [-] | | There's levels between unrestricted hedonism for all and destitution for you unless you're blowing someone rich. We can argue what level between those two extremes we want for society, arguably where we're at isn't great, but hedonism for all, I don't think is gonna work either. Not just for practical "who's gonna pay for it" reasons but also I just honestly don't think people can handle that. Not without a spirituality program which, well, the war on drugs is a failure, so I have no faith that we could do a successful spirituality program. I don't know shit though, but I vote every chance I can and I'm willing to be convinced. | |
| ▲ | traes 3 hours ago | parent | prev [-] | | Of course if UBI was established I would feel fine. More likely than not, AI is not going to provide a life of hedonism, it is just going to take away the fun jobs that had a degree of mental stimulation to them. | | |
| ▲ | chews an hour ago | parent [-] | | I think taste-making will never be part of the AI. Sure it can replicate all tastes, but it's the discovery that is magic. |
|
|
|
|
| |
| ▲ | bemtevi 5 hours ago | parent | prev [-] | | Such as? There aren't too many interesting problems left in math. | | |
| ▲ | rvba 4 hours ago | parent [-] | | "Everything that can be invented has been invented" |
|
| |
| ▲ | charamis 5 hours ago | parent | prev [-] | | I wonder how that comment will age | | |
|