Haskell is in a similar boat with regards to a missing formal spec.
There is some work on that: https://www.youtube.com/watch?v=qk_P8piUclI
There is some work on that: https://www.youtube.com/watch?v=qk_P8piUclI