News for hackers. Stuff that matters.
Re:Translation of the Rust's core and alloc crates to Coq fo... by cccbbbaaa on Wednesday May 15, 2024 @05:09AM (#40364677)
You can write programs in Coq and extract them in OCaml with the `Extraction' command: https://coq.inria.fr/doc/v8.19/refman/addendum/extraction.ht...

This is used by compcert: https://compcert.org/

Re:Translation of the Rust's core and alloc crates to Coq fo... by user2342 on Wednesday May 15, 2024 @06:57AM (#40365242)
Yes, I know, I mentioned the extraction.

My question was whether it can help detecting translation errors from the first step.

Re:Translation of the Rust's core and alloc crates to Coq fo... by cccbbbaaa on Wednesday May 15, 2024 @07:39AM (#40365543)
I'm not sure which first step you are talking about. Typically, one would write the program directly in Coq and use the extracted code as-is.