That's only true in a technical sense:
You can base all of math on set theory, but you could also base all of math on Turing machines, or on integers, or a variety of other pretty much equivalent foundations.
Reducing the correctness of the lean code here to set theory is then also reducing it to everything you can reduce the correctness of set theory to.
> It's not a system with some special powers that let us prove more things, it's a system that only lets us prove things that are intuitively true under "any" proof system (not actually any of course - but as you say a variety of equivalent foundations).
Not quite. The 20th century is full of people poking holes at early attempts at set theory. Those early attempts looked very intuitively true. See eg Russell's paradox.
Completely unrelated to RH discussion but this particular line is how Atheists think they can grill theists.
cAn YoU pRovE GOD eXists?
> The checkers con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof, thus addressing concerns that Lean’s logic itself might have flaws that the proof could exploit.
All of modern math - outside logicians whose entire job is to study set theory and its alternatives - is based on set theory. If you're prepared to accept normal mathematical proofs you shouldn't be rejecting this proof on the basis that you're not confident in leans underlying mathematical theory.
Of course incompleteness means we can never prove that set theory itself is correct (consistent). But that's not something mathematicians worry about on a day to day basis. Proving it inconsistent would be a order of magnitudes larger result than the riemann hypothesis. Generally everyone believes it is consistent despite not being able to prove it.