aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2015-05-16 12:33:32 +0200
committerPierre-Marie Pédrot2015-05-16 12:33:32 +0200
commitb14d88c8cd17ad524898b31c1772a0e8f70f19f8 (patch)
tree64cf2c55d16871504b30fc8969ea1a0eda9f6fa7 /tactics
parentcd6e8689abff88f03872840d12f177d06fccda05 (diff)
Fixing bug #2814: "Anomaly: Uncaught exception Option.IsNone".
Diffstat (limited to 'tactics')
-rw-r--r--tactics/tactics.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index 2791d7c484..402a9e88a1 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -3597,8 +3597,11 @@ let find_induction_type isrec elim hyp0 gl =
if Option.is_empty scheme.indarg then error "Cannot find induction type";
let indsign = compute_scheme_signature scheme hyp0 ind_guess in
let elim = ({elimindex = Some(-1); elimbody = elimc; elimrename = None},elimt) in
- scheme, ElimUsing (elim,indsign) in
- (Option.get scheme.indref,scheme.nparams, elim)
+ scheme, ElimUsing (elim,indsign)
+ in
+ match scheme.indref with
+ | None -> error_ind_scheme ""
+ | Some ref -> ref, scheme.nparams, elim
let get_elim_signature elim hyp0 gl =
compute_elim_signature (given_elim hyp0 elim gl) hyp0