Formalizing the OCaml runtime in Lean finds 100+ bugs as agents join proof workflows

neurocy · x · 2026-12-02

Marc Brooker's new blog post, "A Correctness Approach for Modern Systems Software," walks through building a Rust client-side lease/lock manager with correctness front and center: proof, model checking, simulation, mutation testing, and more. In the thread, @kcsrk reports a strikingly similar Lean model of the OCaml runtime that surfaced 100+ bugs; with Veil no longer scaling at 256 actions × 180 clauses, he switched to native Lean proofs instead of model checking, with agents helping find more issues.

Original post →

More from coding & agent

coding & agent channel →