Remix.run Logo
▲ freeopinion an hour ago

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