This is a function that instantiates a thm with the instantiations provided by trace_schematic_insts.
This allows us to explicitly record the bound variables from the subgoal so that they can be more easily handled. We also now drop binders when constructing typ instantiations.