aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/locusops.ml11
-rw-r--r--pretyping/locusops.mli1
2 files changed, 12 insertions, 0 deletions
diff --git a/pretyping/locusops.ml b/pretyping/locusops.ml
index cc19f01f80..c5b9c67904 100644
--- a/pretyping/locusops.ml
+++ b/pretyping/locusops.ml
@@ -107,6 +107,17 @@ let clause_with_generic_occurrences cls =
| None -> true
| Some hyps ->
List.for_all
+ (function ((AllOccurrences,_),_) -> true | _ -> false) hyps in
+ let concl = match cls.concl_occs with
+ | AllOccurrences | NoOccurrences -> true
+ | _ -> false in
+ hyps && concl
+
+let clause_with_generic_context_selection cls =
+ let hyps = match cls.onhyps with
+ | None -> true
+ | Some hyps ->
+ List.for_all
(function ((AllOccurrences,_),InHyp) -> true | _ -> false) hyps in
let concl = match cls.concl_occs with
| AllOccurrences | NoOccurrences -> true
diff --git a/pretyping/locusops.mli b/pretyping/locusops.mli
index 1d7c6b72eb..3892271a53 100644
--- a/pretyping/locusops.mli
+++ b/pretyping/locusops.mli
@@ -43,3 +43,4 @@ val occurrences_of_goal : clause -> occurrences
val in_every_hyp : clause -> bool
val clause_with_generic_occurrences : 'a clause_expr -> bool
+val clause_with_generic_context_selection : 'a clause_expr -> bool