Basis makes LLMs prove their language rules match the real interpreter
Ship Your Interpreter

Basis researchers had LLMs write formal semantics for a small language, then used Lean to prove the rules match a C interpreter compiled to RISC-V for every program. Testing alone missed a real bug: the semantics ignored a 64-byte buffer limit in stringifying functions, so long names broke. The proof forced the fix. The full development is on GitHub.
A semantics can pass every test and still be wrong.
- ngruhn
This is great. Many people online who "verify their software" seem to just tell an LLM "verify dis" and have no idea what comes out. The model could be proving 1+1=2 for all they know.
These guys actually show some Lean theorems they proved. Also interesting approach to compile the existing interpreter into the de-facto spec.
- ISackKnights
I am not sure what I have read here, I couldn't finish it, due to the AI writing. But you do have to wonder - Isn't this (just) a subset of Rust?
- jupitr
This is the same idea as the fixed point of the meta-circular evaluator - the abstract ideal language that lisp models almost exactly.