aboutsummaryrefslogtreecommitdiff
path: root/tactics/auto.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tactics/auto.ml')
-rw-r--r--tactics/auto.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tactics/auto.ml b/tactics/auto.ml
index 5c17291088..9911e449f9 100644
--- a/tactics/auto.ml
+++ b/tactics/auto.ml
@@ -190,7 +190,7 @@ let (inAutoHint,outAutoHint) =
(**************************************************************************)
let rec nb_hyp c = match kind_of_term c with
- | Prod(_,_,c2) -> if dependent (mkRel 1) c2 then nb_hyp c2 else 1+(nb_hyp c2)
+ | Prod(_,_,c2) -> if noccurn 1 c2 then 1+(nb_hyp c2) else nb_hyp c2
| _ -> 0
(* adding and removing tactics in the search table *)