aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <mattam@mattam.org>2016-11-04 14:55:40 +0100
committerGravatar Matthieu Sozeau <mattam@mattam.org>2016-11-04 14:55:40 +0100
commit6bb352a6743c7332b9715ac15e95c806a58d101c (patch)
tree9a8fce93b14e99b33efbf0ed4bc180fb22fc43d1
parent1d637f15de540c82289d6b3a16181a625a0d9cdf (diff)
Fix refine in compatibility mode
-rw-r--r--tactics/tactics.ml10
1 files changed, 8 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index d2e5d8525..548d2a81f 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -4973,9 +4973,15 @@ module New = struct
open Locus
let reduce_after_refine =
+ let onhyps =
+ (** We reduced everywhere in the hyps before 8.6 *)
+ if Flags.version_less_or_equal Flags.V8_5 then None
+ else Some []
+ in
reduce
- (Lazy {rBeta=true;rMatch=true;rFix=true;rCofix=true;rZeta=false;rDelta=false;rConst=[]})
- {onhyps=None; concl_occs=AllOccurrences }
+ (Lazy {rBeta=true;rMatch=true;rFix=true;rCofix=true;
+ rZeta=false;rDelta=false;rConst=[]})
+ {onhyps; concl_occs=AllOccurrences }
let refine ?unsafe c =
Refine.refine ?unsafe c <*>