invoke Variable.export/import_term on the entire formula, to make sure that schematic variables don't get different indices in different subterms;
this resulted in a subtle soundness bug in Sledgehammer -- introduced by the transition to FOF
structure Codegen =
struct
val arbitrary_option : 'a option = NONE;
fun dummy_option [] = arbitrary_option
| dummy_option (x :: xs) = SOME x;
end; (*struct Codegen*)