let apply_subst _ t =
let t' = CicMetaSubst.apply_subst subst1 t in
CicMetaSubst.apply_subst_reducing
- subst2 (Some (emeta,List.length fargs)) t'
+ (Some (emeta,List.length fargs)) subst2 t'
in
let old_uninstantiatedmetas,new_uninstantiatedmetas =
classify_metas newmeta in_subst_domain apply_subst
let apply_subst' t =
let t' = CicMetaSubst.apply_subst subst1 t in
CicMetaSubst.apply_subst_reducing
- ((metano,bo')::subst2)
- (Some (emeta,List.length fargs)) t'
+ (Some (emeta,List.length fargs))
+ ((metano,bo')::subst2) t'
in
subst_meta_and_metasenv_in_proof
proof metano apply_subst' newmetasenv'''