move some thms to HOL, make inferSound not depend on bytecode