tweak env_rs to expose the genv and gtagenv as parameters

rather than hidden as existentials. because probably need to refer to
them in the correctness statement for compile_top, since they seem
required for v_to_i1 and v_to_i2.
attempt at statement of compile_top_thm

started from the old version and modified substantially to make it type
correct...