Is it possible to build a formally verified GC for OCaml that can be plugged into the compiler? We should how to in:
"A Mechanically Verified GC for OCaml"
https://kcsrk.info/papers/verifiedgc_feb_25.pdf
This has been accepted to the Journal of Automated Reasoning.
Code: https://github.com/prismlab/verified_ocaml_gc
"A Mechanically Verified GC for OCaml"
https://kcsrk.info/papers/verifiedgc_feb_25.pdf
This has been accepted to the Journal of Automated Reasoning.
Code: https://github.com/prismlab/verified_ocaml_gc
Comments
I saw last week that we just got an FStar on opam that will work with OCaml 5+ https://github.com/ocaml/opam-repository/pull/27476 :))
If we can get Pulse to target concurrent/parallel OCaml, we’d be able to prove and generate verified concurrent OCaml code.
I believe this would be the complement of all the cases DRFcaml wouldn’t cover such as lockfree concurrent programs(?).
That said, we prove it correct and support enough features (closures, infix objs) to be able to run reasonably big programs.
Did you run into like issues with slow proofs or did you have to rewrite things for efficiency at any point>