fix the compile_prog theorems