C.MutConstruct (uri,tyno,consno,exp_named_subst')
| _ -> [],newmeta,[],term
in
- let metasenv' = newmetasenvfragment@metasenv in
+ let metasenv' = metasenv@newmetasenvfragment in
prerr_endline ("^^^^^TERM': " ^ CicPp.ppterm term') ;
let termty =
CicSubstitution.subst_vars exp_named_subst_diff
let (consthead,newmetas,arguments,_) =
new_metasenv_for_apply newmeta' proof context termty
in
- let newmetasenv = newmetas@metasenv' in
+ let newmetasenv = metasenv'@newmetas in
let subst,newmetasenv' =
CicUnification.fo_unif newmetasenv context consthead ty
in