let set_src = DB.retrieve_unifiables db_src infty in
let set_tgt = DB.retrieve_unifiables db_tgt expty in
let candidates = CoercionSet.inter set_src set_tgt in
- prerr_endline "aaaaaaaaaaaaa";
List.map
(fun (t,arity,arg) ->
let ty = NCicTypeChecker.typeof ~metasenv:[] ~subst:[] [] t in
let ty, metasenv, args =
NCicMetaSubst.saturate ~delta:max_int metasenv subst context ty arity
in
- prerr_endline (
+(* prerr_endline (
NCicPp.ppterm ~metasenv ~subst:[] ~context:[] ty ^ " --- " ^
NCicPp.ppterm ~metasenv ~subst ~context
(NCicUntrusted.mk_appl t args) ^ " --- " ^
- string_of_int (List.length args) ^ " == " ^ string_of_int arg);
+ string_of_int (List.length args) ^ " == " ^ string_of_int arg); *)
metasenv, NCicUntrusted.mk_appl t args, ty, List.nth args arg)
(CoercionSet.elements candidates)
;;