An unofficial, read-only Hacker News reader.

Holy shit holy shit holy shit holy shit: The magnitude of what’s now happening (opens external site)

2048 points by Kotlopou 3 days ago | scottaaronson.blog | 1890 comments on HN

View full thread · View on Hacker News

Comment thread (19)

  1. > From what I've understood, a good part of the work the agents did was to formalize huge chunks of previously "unformalized" math into Lean.

    That sounds scary and makes me question the foundations of all of this.

    Replies (5)
    1. With "formalize", I mean turn into a "machine-readable" representation that can be processed by a proof checker. It was formalized enough for humans to understand and verify, but not for automated (non-LLM) reasoning.
      Replies (1)
      1. The question is, how do humans know that the Lean formalization of these pieces of math matches their understanding of what the math means? As a programmer in 2026, I routinely encounter situations where an AI takes my informal ideas and formalizes them into something that's close to what I had in mind. If a mathematician has some complex field they want to reason about, and they see a Lean formalization of a field that has a few extra elements from some esoteric edge case, is it easy in general for them to tell the difference?
        Replies (3)
        1. Mathematicians do need to verify that the statement (in Lean) of what's being proved is correct. For other things they need to check, see:

          https://xenaproject.wordpress.com/2026/11/12/and-the-proof-i...

        2. Think of it like compilation. Compilation doesn't tell you if a program is good, bad, or even sound, but it does tell you that what's been written is technically a valid program if it's passed all of the structural checks that are part of the language definition. A proof is a binary outcome in the same way that a program either compiles or it doesn't; it's either true or it's not. The idea (at least as I understand it) is that your axioms become your rules, and you use a checker that enforces that none of those rules have been broken. As long as you do that, and the final statement is correct, then everything up to (and including) that point is a valid "program". What's inside could be spaghetti, but the benchmark for success isn't "the program is bug free", it's "it compiled", which is a vastly easier benchmark.

          Put another way, it's essentially a type checker running on the AST.

          Replies (1)
          1. You have the right idea, but there's a huge (very infinite) domain of "things that can be proven" that aren't what you wanted to prove. So, even if "it compiles" you still need to make sure that you proved the right thing.
            Replies (1)
            1. Yes, the statement being proven has to be correct. You can have the right math for the wrong argument.
        3. The problem statement (the Riemann Hypothesis) has been stated formally as a type. This was already done by humans in mathlib and has been checked over.

          The goal of the AI is then to write a term (a program) of this type. If the AI can write such a piece of code and it typechecks against the problem statement type then problem statement has been proven.

          It doesn't matter if any of the subroutines correspond to existing mathematical knowledge, so long as the AI doesn't cheat the type system. There are many tools to assert that the AI didn't cheat the type system and so far everything has checked out.

          Due to the nature of domain it is more or less guaranteed that any subroutine necessary to build a /valid/ proof statement for the Riemann Hypothesis will end up being encodings of existing mathematical structures or novel new ones.

          Replies (1)
          1. > Due to the nature of domain it is more or less guaranteed that any subroutine necessary to build a /valid/ proof statement for the Riemann Hypothesis will end up being encodings of existing mathematical structures or novel new ones.

            But that's where I don't agree. I would say that the four-color theorem has a longstanding example of a valid proof that nevertheless fails to do this; despite our best efforts, one of the critical steps remains "the computer told me none of these 633 configurations work for some reason".

    2. As in the OP, don't fall into the trap of dismissing those results. The statement of the Riemann hypothesis that was proven was taken from Mathlib, a very simple, standard and well-vetted formulation of the problem. Barring compiler bugs, there's no way the statement would have compiled without supplying an actual proof. And the probability of compiler bugs is vanishingly small in that case, as the proof compiles in multiple different compiler versions, including formally verified and deliberately 'slow-but-reliable' ones. The probability of mistakes physically cannot go to exactly zero, but you're quickly approaching crackpot territory if you don't update your prior of it being true to within a rounding error of 1.
      Replies (1)
      1. How does that work. Is it not possible to write malicious Lean code?
        Replies (1)
        1. It's Turing-complete, so you should be able to write anything. But it's fully functional, so you can't hide side effects in what by its signature should be a proof of A. More practically, there's tooling to check whether a proof does anything it shouldn't (like assuming the conclusion somewhere, which in itself wouldn't work as it'd only give A-> A instead of A, but along those lines). So with those tools, checking a Lean proof really isn't much more than checking the statement and compiling.

          Again, no tool is 100% reliable, but the community really has gone the extra mile to get as much certainty as possible. If you believe that the Higgs Boson exists, or the HI Virus, or that the Roman Empire existed, or Dinosaurs, then you should believe that the Riemann hypothesis is true (and that's factoring in that math has a different standard of evidence than empirical disciplines).

    3. Why is formally proving lemmas and theorems scary?
      Replies (1)
      1. For someone who's used LLM-based agents for software development, and who doesn't the guarantees a lean certificate provides, it sounds scary because who knows what weird misunderstandings crept into the autoformalization?
        Replies (1)
        1. The whole point is it doesn’t matter if you vetted the spec, which isn’t that hard for math pros. Lean is at heart a type checker. If you think types help LLMs write 50% more correct code, lean makes them write 100% corect code.
    4. > That sounds scary and makes me question the foundations of all of this.

      I'm not a mathematician, just a computer programmer who occasionally tries to read maths papers. Every time I do, I want to scream in frustration. What meaning did they assign to ω this time? What operation is this weird new 2D arrangement of dots, oversized odd-looking brackets and lines meant to impart? Where is the F12 button that takes me to the definition of their newfangled concepts?

      Over and over again, you hear they stuff it up. (The Fields medallist Voevodsky, for example, turned to proof assistants after finding errors in his own published work.) Perhaps the logic didn't follow, or the operations didn't combine as they thought. Of course they didn't! If computer programmers had to get the logic perfect without type checking, we may as well be writing assembler.

      You only get automated checks if you formalise your notation and languages. To do that you have to give up brevity. A simple hand-wave like "without loss of generality" can become pages of proof. The freedom to name and structure things however you damned well please disappears. It's undoubtedly harder to write that way - I'm sure every Rust programmer sometimes feels like most of their effort went into escaping a jail so they could get the job done. In return you get automated checking and a near-universal language that can be reused. And it's easier to read. The old adage that code will be read far more times than it's written applies to maths papers too.

      To me, decrying the use of formal languages is at the same level as passing laws saying a car must follow a man waving a red flag, so the car doesn't scare the horses. Rewriting maths in a formal language isn't scary - it's a technological breakthrough in the productivity and accessibility of maths.

    5. If the headline statement is known to be formalized correctly, whether the formalizations of other concepts the model gave in order to use them in its proof of the headline statement, are correct/“correct”, doesn’t really matter for the correctness of the overall proof. Like, they might not match the human concept that it names the defined symbols after, and so they might be “wrong” in that sense, but this doesn’t cause an issue for the proof checker. And, I don’t mean this in a “well, the concept the model formalized is just as good/useful, and it is just a human bias that blah blah blah”, no. I mean, it is possible that it defines some terms in a way which is genuinely worse, and not what the definition should be. But, if it does that, then if the proof checker is working properly and validates the proof that uses these flawed definitions in its arguments, then the proof must have worked around the flaws in those definitions, and the overall conclusion (the statement which people have confirmed to be correctly formalized) is true.
      Replies (1)
      1. If you're formalizing existing stuff, then there's probably not much point in formalizing the proofs themselves. You'd just put in the theorems and tell the compiler that it's known to be true so that it can be used with other proofs. So, if we're using AI to formalize existing math, then we're either using AI to check that the humans got it right or we're asking AI to make up theorem statements, which creates shakey foundations for everything that follows.
        Replies (1)
        1. If you want to use a certain mathematical technique in a new proof, you might need to use definitions (or theorems) that have already been given but not yet formalized in Lean. That’s what I was describing. Not just translating an existing proof/definition as the whole thing, but as part of a new proof of an existing conjecture.