finish compile_val
finish updating toBytecodeProofsTheory