Open
Description
This issue is about speeding up prototyping of code that is (to be) verified using the translator and/or CF.
Currently, the process I used is roughly:
- write HOL definitions (to be translated)
- write CakeML code (to be verified by CF)
- do the standard boilerplate to extract a full program
- compile in the logic
Now, to optimize the resulting code, one does:
- Go back to Step 1 and/or 2, make changes, repeat.
Overall, this process is rather tedious because one has to wait for compilation in the logic for each prototype.
One way to speed this process is to use the binary compiler. However, this requires concrete syntax.
It would be nice to provide a facility/library so that Step 1-3 above can easily be made to dump the full program in concrete syntax using e.g.: astPP (https://github.com/CakeML/cakeml/blob/master/semantics/astPP.sml)