SafeJIT: A Speculating JIT Engine Verified Down to the Machine Code
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
SafeJIT is a small JavaScript engine with a speculating JIT, deoptimization and on-stack replacement. Its author gives a Lean 4 proof that the RISC-V and x86-64 binaries never crash on any input, in a model of a Linux user process, without trusting the C toolchain. The theorem covers safety, not functional correctness. About 6,500 lines of C and 485,000 lines of Lean were written mostly by AI agents in four weeks. The engine is small, the code is unreleased, and the "first such theorem" claim is the author's own.