constructor_args_no
(CicMetaSubst.apply_subst subst instance)
in
-debug_print ("PRIMA subst:\n" ^ CicMetaSubst.ppsubst subst ^ "\nmetasenv:\n" ^ CicMetaSubst.ppmetasenv metasenv subst);
let subst,metasenv,ugraph =
fo_unif_subst subst context metasenv
instance' ty ugraph
in
-debug_print ("DOPO subst:\n" ^ CicMetaSubst.ppsubst subst ^ "\nmetasenv:\n" ^ CicMetaSubst.ppmetasenv metasenv subst);
candidate_oty,ugraph,metasenv,subst
-(* CSC: XXX
- let b,ugraph1 =
- CicReduction.are_convertible context
- instance' ty ugraph
- in
- if b then
- candidate_oty,ugraph1,metasenv
- else
- None,ugraph,metasenv
-*)
with
Failure _
| CicUnification.UnificationFailure _