Remix.run Logo
▲ adrianN 2 hours 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.

▲freeopinion an hour ago | parent [-]

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.

▲eru 30 minutes ago | parent | next [-]

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.

▲adrianN 30 minutes ago | parent | prev [-]

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.