aboutsummaryrefslogtreecommitdiff
path: root/tactics/tactics.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tactics/tactics.ml')
-rw-r--r--tactics/tactics.ml9
1 files changed, 7 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index 2a4fc6a0f5..f4262d731a 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -80,6 +80,11 @@ let dloc = dummy_loc
(* Option for 8.2 compatibility *)
open Goptions
let dependent_propositions_elimination = ref true
+
+let use_dependent_propositions_elimination () =
+ !dependent_propositions_elimination
+ && Flags.version_strictly_greater Flags.V8_2
+
let _ =
declare_bool_option
{ optsync = true;
@@ -2581,8 +2586,8 @@ let guess_elim isrec hyp0 gl =
if isrec then lookup_eliminator mind s
else
let case =
- if !dependent_propositions_elimination &&
- dependent_no_evar (mkVar hyp0) (pf_concl gl)
+ if use_dependent_propositions_elimination () &&
+ dependent_no_evar (mkVar hyp0) (pf_concl gl)
then make_case_dep
else make_case_gen in
pf_apply case gl mind s in