File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -426,9 +426,6 @@ let get_instance_prio gr env sigma (hint_priority : int option) : tc_priority =
426
426
match hint_priority with
427
427
| Some p -> UserGiven p
428
428
| None ->
429
- let rec nb_hyp sigma c = match EConstr. kind sigma c with
430
- | Prod (_ ,_ ,c2 ) -> if EConstr.Vars. noccurn sigma 1 c2 then 1 + (nb_hyp sigma c2) else nb_hyp sigma c2
431
- | _ -> 0 in
432
429
let merge_context_set_opt sigma ctx =
433
430
match ctx with
434
431
| None -> sigma
@@ -443,9 +440,8 @@ let get_instance_prio gr env sigma (hint_priority : int option) : tc_priority =
443
440
let cty = Reductionops. nf_betaiota env sigma cty in
444
441
let sigma' = merge_context_set_opt sigma ctx in
445
442
let ce = Clenv. mk_clenv_from env sigma' (c,cty) in
446
- let miss = Clenv. clenv_missing ce in
443
+ let miss, hyps = Clenv. clenv_missing ce in
447
444
let nmiss = List. length miss in
448
- let hyps = nb_hyp sigma' cty in
449
445
Computed (hyps + nmiss)
450
446
451
447
(* TODO: this algorithm is quite inefficient since we have not yet the
You can’t perform that action at this time.
0 commit comments