Vibeproving finds 124 OCaml 5 runtime bugs

kcsrk.info18 min read

The author reports on using coding agents assisted by formal proofs in Lean to find 124 concurrency and runtime bugs in the OCaml 5 shared-memory parallel runtime. Although none of the bugs were found directly by proofs, the modelling process and invariant checks uncovered numerous defects and forced corrections to the C implementation. Open article →