aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tactics/tactics.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index 63afd3a5b0..3a0baf2946 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -3583,7 +3583,9 @@ let find_induction_type isrec elim hyp0 gl =
let scheme,elim =
match elim with
| None ->
- let _, (elimc,elimt),_ = guess_elim isrec (* dummy: *) true (* dummy: *) InProp hyp0 gl in
+ let sort = Tacticals.New.elimination_sort_of_goal gl in
+ let _, (elimc,elimt),_ =
+ guess_elim isrec (* dummy: *) true sort hyp0 gl in
let scheme = compute_elim_sig ~elimc elimt in
(* We drop the scheme waiting to know if it is dependent *)
scheme, ElimOver (isrec,hyp0)