Remix.run Logo
▲ SpicyLemonZest a day ago

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?

▲solomonb a day ago | parent | next [-]

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.

▲SpicyLemonZest 11 hours ago | parent [-]

> 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".

▲skybrian a day ago | parent | prev | next [-]

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...

▲coderenegade a day ago | parent | prev [-]

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.

▲d0liver a day ago | parent | next [-]

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.

▲coderenegade a day ago | parent [-]

Yes, the statement being proven has to be correct. You can have the right math for the wrong argument.

▲ a day ago | parent | prev [-]
[deleted]