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/
This is used by compcert: https://compcert.org/
My question was whether it can help detecting translation errors from the first step.