Verified Garbage: An experimental formally verified cryptography library

30 points by nelhage


kraxen72

just self-aware enough for me to not dismiss it as slop. i will not use it, but good luck!

the issue is, i do not believe/understand formal verification enough: to me, lean is (just) a kind of programming language and it's implementation(s) or the lean code being verified may have bugs, like any other program, even if it compiles or is tested. even if itself is "bug free", it may be built on fundamentally incorrect assumptions such as how some particular cpu microcode or ISA works and interacts (in this case) - to perfectly model it would require something close to re-implementaiton, no?

feel free to correct me and explain it better, please!

tomsmeding

I think this is pretty neat. LLMs are great at producing stuff that is mostly right but not always, in large quantities. For most purposes this is problematic since it means you need to code-review slop and get depressed etc. Once you have a specification of what you want, and you can formally, and automatically, check generated code against that spec, you can use LLMs for what they're good at without having to deal much with the things they're not. (Pending, I guess, increased trust in their trusted computing base.)

If we're going to have LLMs, let's use them in this kind of way.