Hacker News new | ask | show | jobs
by adrianN 11 days ago
Why would you read all that generated code when it’s enough to read the formalization of the theorem and trust the verification engines? The whole point of having the clanker generate Lean is that you don’t have to read it.
1 comments

I can get Claude to create a random number generator for me. It might compile without any errors. The result might be compact and super fast.

But I won't know if it generates https://xkcd.com/221/ unless I read the code it generated. And while that might be valid C code and 4 is indeed a random number, the resulting program is not fit for purpose. Even if I wouldn't know that by running it.

You know that's why we are separating 'theorem' statements from the 'proofs'.

You'll want to read the theorem that was proven, but you don't care how it was proven.

When writing a pseudo-random-number-generator, hopefully you have some specs about eg linear independence or what tests it needs to pass.

You do not care how the roof is build, only that it is. Except if you are the roof builder, than you very much do care, because that is your job.

An engineer does not care how the theorem is proven, just that it is and that he can apply it to his domain. A mathematician very much cares about this, because that is what makes him a mathematician.

I'm a mathematician. I reject such reductionist definitions.
You reject the idea that a mathematician cares about how you arrive at a conclusion, not just that you arrive at a conclusion? This was supposed to be a necessary condition, not a sufficient one.

To me a mathematician is basically someone who is able to construct models about anything and derive truth. How truth is derived is, in my understanding, a core skill of a mathematician. But yeah I am not a mathematician and this could be wrong and reductionist.

Different mathematicians care about different things. And I don't care about every little proof of every little theorem. I care about some of them.

In any case, I was specifically replying to https://news.ycombinator.com/item?id=50608566 earlier.

You should look up what Lean does. In your example you would formalize the properties you want your random number generator to have, then the clanker would construct one that provably satisfies the requirements. You’d have a higher level of assurance than you’d get from just reading the code.
There’s no reading code anymore.