build_newtarget_time := !build_newtarget_time +. (time2 -. time1);
let res =
- (C.Implicit None, (eq_ty, left, right, ordering), newmetasenv, newargs)
+ let w = Utils.compute_equality_weight eq_ty left right in
+ (w, (eq_ty, left, right, ordering), newmetasenv, newargs)
in
Inference.store_proof res newproof;
newmeta, res
let time2 = Unix.gettimeofday () in
build_newtarget_time := !build_newtarget_time +. (time2 -. time1);
- let res = (C.Implicit None, (eq_ty, left, right, neworder), [], []) in
+ let res =
+ let w = Utils.compute_equality_weight eq_ty left right in
+ (w, (eq_ty, left, right, neworder), [], [])
+ in
Inference.store_proof res newproof;
res
in
and newmenv = newmetas @ menv'
and newargs = args @ args' in
let eq' =
- (C.Implicit None, (eq_ty, left, right, neworder), newmenv, newargs)
+ let w = Utils.compute_equality_weight eq_ty left right in
+ (w, (eq_ty, left, right, neworder), newmenv, newargs)
and env = (metasenv, context, ugraph) in
let newm, eq' = Inference.fix_metas !maxmeta eq' in
newm, eq'